]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
Peaceful solution to wxCheckListBox inheritance in WinCE and wxListBox::Clear() ambig...
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* 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
3098
3099 return (wxWindow*)self->m_mainWin;
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_GetCurrentSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6166 PyObject *resultobj = 0;
6167 wxComboBox *arg1 = (wxComboBox *) 0 ;
6168 int result;
6169 void *argp1 = 0 ;
6170 int res1 = 0 ;
6171 PyObject *swig_obj[1] ;
6172
6173 if (!args) SWIG_fail;
6174 swig_obj[0] = args;
6175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_GetCurrentSelection" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6178 }
6179 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 result = (int)((wxComboBox const *)arg1)->GetCurrentSelection();
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 resultobj = SWIG_From_int(static_cast< int >(result));
6187 return resultobj;
6188 fail:
6189 return NULL;
6190 }
6191
6192
6193 SWIGINTERN PyObject *_wrap_ComboBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6194 PyObject *resultobj = 0;
6195 wxComboBox *arg1 = (wxComboBox *) 0 ;
6196 wxString *arg2 = 0 ;
6197 bool result;
6198 void *argp1 = 0 ;
6199 int res1 = 0 ;
6200 bool temp2 = false ;
6201 PyObject * obj0 = 0 ;
6202 PyObject * obj1 = 0 ;
6203 char * kwnames[] = {
6204 (char *) "self",(char *) "string", NULL
6205 };
6206
6207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
6208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetStringSelection" "', expected argument " "1"" of type '" "wxComboBox *""'");
6211 }
6212 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6213 {
6214 arg2 = wxString_in_helper(obj1);
6215 if (arg2 == NULL) SWIG_fail;
6216 temp2 = true;
6217 }
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
6221 wxPyEndAllowThreads(__tstate);
6222 if (PyErr_Occurred()) SWIG_fail;
6223 }
6224 {
6225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6226 }
6227 {
6228 if (temp2)
6229 delete arg2;
6230 }
6231 return resultobj;
6232 fail:
6233 {
6234 if (temp2)
6235 delete arg2;
6236 }
6237 return NULL;
6238 }
6239
6240
6241 SWIGINTERN PyObject *_wrap_ComboBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj = 0;
6243 wxComboBox *arg1 = (wxComboBox *) 0 ;
6244 int arg2 ;
6245 wxString *arg3 = 0 ;
6246 void *argp1 = 0 ;
6247 int res1 = 0 ;
6248 int val2 ;
6249 int ecode2 = 0 ;
6250 bool temp3 = false ;
6251 PyObject * obj0 = 0 ;
6252 PyObject * obj1 = 0 ;
6253 PyObject * obj2 = 0 ;
6254 char * kwnames[] = {
6255 (char *) "self",(char *) "n",(char *) "string", NULL
6256 };
6257
6258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6260 if (!SWIG_IsOK(res1)) {
6261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetString" "', expected argument " "1"" of type '" "wxComboBox *""'");
6262 }
6263 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6264 ecode2 = SWIG_AsVal_int(obj1, &val2);
6265 if (!SWIG_IsOK(ecode2)) {
6266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetString" "', expected argument " "2"" of type '" "int""'");
6267 }
6268 arg2 = static_cast< int >(val2);
6269 {
6270 arg3 = wxString_in_helper(obj2);
6271 if (arg3 == NULL) SWIG_fail;
6272 temp3 = true;
6273 }
6274 {
6275 PyThreadState* __tstate = wxPyBeginAllowThreads();
6276 (arg1)->SetString(arg2,(wxString const &)*arg3);
6277 wxPyEndAllowThreads(__tstate);
6278 if (PyErr_Occurred()) SWIG_fail;
6279 }
6280 resultobj = SWIG_Py_Void();
6281 {
6282 if (temp3)
6283 delete arg3;
6284 }
6285 return resultobj;
6286 fail:
6287 {
6288 if (temp3)
6289 delete arg3;
6290 }
6291 return NULL;
6292 }
6293
6294
6295 SWIGINTERN PyObject *_wrap_ComboBox_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj = 0;
6297 wxComboBox *arg1 = (wxComboBox *) 0 ;
6298 bool arg2 ;
6299 void *argp1 = 0 ;
6300 int res1 = 0 ;
6301 bool val2 ;
6302 int ecode2 = 0 ;
6303 PyObject * obj0 = 0 ;
6304 PyObject * obj1 = 0 ;
6305 char * kwnames[] = {
6306 (char *) "self",(char *) "editable", NULL
6307 };
6308
6309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
6310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6311 if (!SWIG_IsOK(res1)) {
6312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetEditable" "', expected argument " "1"" of type '" "wxComboBox *""'");
6313 }
6314 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6315 ecode2 = SWIG_AsVal_bool(obj1, &val2);
6316 if (!SWIG_IsOK(ecode2)) {
6317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_SetEditable" "', expected argument " "2"" of type '" "bool""'");
6318 }
6319 arg2 = static_cast< bool >(val2);
6320 {
6321 PyThreadState* __tstate = wxPyBeginAllowThreads();
6322 (arg1)->SetEditable(arg2);
6323 wxPyEndAllowThreads(__tstate);
6324 if (PyErr_Occurred()) SWIG_fail;
6325 }
6326 resultobj = SWIG_Py_Void();
6327 return resultobj;
6328 fail:
6329 return NULL;
6330 }
6331
6332
6333 SWIGINTERN PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6334 PyObject *resultobj = 0;
6335 wxComboBox *arg1 = (wxComboBox *) 0 ;
6336 void *argp1 = 0 ;
6337 int res1 = 0 ;
6338 PyObject *swig_obj[1] ;
6339
6340 if (!args) SWIG_fail;
6341 swig_obj[0] = args;
6342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6343 if (!SWIG_IsOK(res1)) {
6344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxComboBox *""'");
6345 }
6346 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 (arg1)->SetInsertionPointEnd();
6350 wxPyEndAllowThreads(__tstate);
6351 if (PyErr_Occurred()) SWIG_fail;
6352 }
6353 resultobj = SWIG_Py_Void();
6354 return resultobj;
6355 fail:
6356 return NULL;
6357 }
6358
6359
6360 SWIGINTERN PyObject *_wrap_ComboBox_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6361 PyObject *resultobj = 0;
6362 wxComboBox *arg1 = (wxComboBox *) 0 ;
6363 long arg2 ;
6364 long arg3 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 long val2 ;
6368 int ecode2 = 0 ;
6369 long val3 ;
6370 int ecode3 = 0 ;
6371 PyObject * obj0 = 0 ;
6372 PyObject * obj1 = 0 ;
6373 PyObject * obj2 = 0 ;
6374 char * kwnames[] = {
6375 (char *) "self",(char *) "from",(char *) "to", NULL
6376 };
6377
6378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6380 if (!SWIG_IsOK(res1)) {
6381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Remove" "', expected argument " "1"" of type '" "wxComboBox *""'");
6382 }
6383 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6384 ecode2 = SWIG_AsVal_long(obj1, &val2);
6385 if (!SWIG_IsOK(ecode2)) {
6386 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ComboBox_Remove" "', expected argument " "2"" of type '" "long""'");
6387 }
6388 arg2 = static_cast< long >(val2);
6389 ecode3 = SWIG_AsVal_long(obj2, &val3);
6390 if (!SWIG_IsOK(ecode3)) {
6391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ComboBox_Remove" "', expected argument " "3"" of type '" "long""'");
6392 }
6393 arg3 = static_cast< long >(val3);
6394 {
6395 PyThreadState* __tstate = wxPyBeginAllowThreads();
6396 (arg1)->Remove(arg2,arg3);
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_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6408 PyObject *resultobj = 0;
6409 wxComboBox *arg1 = (wxComboBox *) 0 ;
6410 bool result;
6411 void *argp1 = 0 ;
6412 int res1 = 0 ;
6413 PyObject *swig_obj[1] ;
6414
6415 if (!args) SWIG_fail;
6416 swig_obj[0] = args;
6417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6418 if (!SWIG_IsOK(res1)) {
6419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_IsEditable" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6420 }
6421 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6422 {
6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
6424 result = (bool)((wxComboBox const *)arg1)->IsEditable();
6425 wxPyEndAllowThreads(__tstate);
6426 if (PyErr_Occurred()) SWIG_fail;
6427 }
6428 {
6429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6430 }
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 SWIGINTERN PyObject *_wrap_ComboBox_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6438 PyObject *resultobj = 0;
6439 wxComboBox *arg1 = (wxComboBox *) 0 ;
6440 void *argp1 = 0 ;
6441 int res1 = 0 ;
6442 PyObject *swig_obj[1] ;
6443
6444 if (!args) SWIG_fail;
6445 swig_obj[0] = args;
6446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6447 if (!SWIG_IsOK(res1)) {
6448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Undo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6449 }
6450 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 (arg1)->Undo();
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 resultobj = SWIG_Py_Void();
6458 return resultobj;
6459 fail:
6460 return NULL;
6461 }
6462
6463
6464 SWIGINTERN PyObject *_wrap_ComboBox_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6465 PyObject *resultobj = 0;
6466 wxComboBox *arg1 = (wxComboBox *) 0 ;
6467 void *argp1 = 0 ;
6468 int res1 = 0 ;
6469 PyObject *swig_obj[1] ;
6470
6471 if (!args) SWIG_fail;
6472 swig_obj[0] = args;
6473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6474 if (!SWIG_IsOK(res1)) {
6475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_Redo" "', expected argument " "1"" of type '" "wxComboBox *""'");
6476 }
6477 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6478 {
6479 PyThreadState* __tstate = wxPyBeginAllowThreads();
6480 (arg1)->Redo();
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_Py_Void();
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 SWIGINTERN PyObject *_wrap_ComboBox_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6492 PyObject *resultobj = 0;
6493 wxComboBox *arg1 = (wxComboBox *) 0 ;
6494 void *argp1 = 0 ;
6495 int res1 = 0 ;
6496 PyObject *swig_obj[1] ;
6497
6498 if (!args) SWIG_fail;
6499 swig_obj[0] = args;
6500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6501 if (!SWIG_IsOK(res1)) {
6502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_SelectAll" "', expected argument " "1"" of type '" "wxComboBox *""'");
6503 }
6504 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6505 {
6506 PyThreadState* __tstate = wxPyBeginAllowThreads();
6507 (arg1)->SelectAll();
6508 wxPyEndAllowThreads(__tstate);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 resultobj = SWIG_Py_Void();
6512 return resultobj;
6513 fail:
6514 return NULL;
6515 }
6516
6517
6518 SWIGINTERN PyObject *_wrap_ComboBox_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6519 PyObject *resultobj = 0;
6520 wxComboBox *arg1 = (wxComboBox *) 0 ;
6521 bool result;
6522 void *argp1 = 0 ;
6523 int res1 = 0 ;
6524 PyObject *swig_obj[1] ;
6525
6526 if (!args) SWIG_fail;
6527 swig_obj[0] = args;
6528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6529 if (!SWIG_IsOK(res1)) {
6530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCopy" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6531 }
6532 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 result = (bool)((wxComboBox const *)arg1)->CanCopy();
6536 wxPyEndAllowThreads(__tstate);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 {
6540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6541 }
6542 return resultobj;
6543 fail:
6544 return NULL;
6545 }
6546
6547
6548 SWIGINTERN PyObject *_wrap_ComboBox_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6549 PyObject *resultobj = 0;
6550 wxComboBox *arg1 = (wxComboBox *) 0 ;
6551 bool result;
6552 void *argp1 = 0 ;
6553 int res1 = 0 ;
6554 PyObject *swig_obj[1] ;
6555
6556 if (!args) SWIG_fail;
6557 swig_obj[0] = args;
6558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6559 if (!SWIG_IsOK(res1)) {
6560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanCut" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6561 }
6562 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6563 {
6564 PyThreadState* __tstate = wxPyBeginAllowThreads();
6565 result = (bool)((wxComboBox const *)arg1)->CanCut();
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 {
6570 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6571 }
6572 return resultobj;
6573 fail:
6574 return NULL;
6575 }
6576
6577
6578 SWIGINTERN PyObject *_wrap_ComboBox_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6579 PyObject *resultobj = 0;
6580 wxComboBox *arg1 = (wxComboBox *) 0 ;
6581 bool result;
6582 void *argp1 = 0 ;
6583 int res1 = 0 ;
6584 PyObject *swig_obj[1] ;
6585
6586 if (!args) SWIG_fail;
6587 swig_obj[0] = args;
6588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6589 if (!SWIG_IsOK(res1)) {
6590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanPaste" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6591 }
6592 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6593 {
6594 PyThreadState* __tstate = wxPyBeginAllowThreads();
6595 result = (bool)((wxComboBox const *)arg1)->CanPaste();
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 {
6600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6601 }
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_ComboBox_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6609 PyObject *resultobj = 0;
6610 wxComboBox *arg1 = (wxComboBox *) 0 ;
6611 bool result;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 PyObject *swig_obj[1] ;
6615
6616 if (!args) SWIG_fail;
6617 swig_obj[0] = args;
6618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6619 if (!SWIG_IsOK(res1)) {
6620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanUndo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6621 }
6622 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 result = (bool)((wxComboBox const *)arg1)->CanUndo();
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 {
6630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6631 }
6632 return resultobj;
6633 fail:
6634 return NULL;
6635 }
6636
6637
6638 SWIGINTERN PyObject *_wrap_ComboBox_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6639 PyObject *resultobj = 0;
6640 wxComboBox *arg1 = (wxComboBox *) 0 ;
6641 bool result;
6642 void *argp1 = 0 ;
6643 int res1 = 0 ;
6644 PyObject *swig_obj[1] ;
6645
6646 if (!args) SWIG_fail;
6647 swig_obj[0] = args;
6648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxComboBox, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ComboBox_CanRedo" "', expected argument " "1"" of type '" "wxComboBox const *""'");
6651 }
6652 arg1 = reinterpret_cast< wxComboBox * >(argp1);
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 result = (bool)((wxComboBox const *)arg1)->CanRedo();
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 {
6660 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6661 }
6662 return resultobj;
6663 fail:
6664 return NULL;
6665 }
6666
6667
6668 SWIGINTERN PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6669 PyObject *resultobj = 0;
6670 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
6671 SwigValueWrapper<wxVisualAttributes > result;
6672 int val1 ;
6673 int ecode1 = 0 ;
6674 PyObject * obj0 = 0 ;
6675 char * kwnames[] = {
6676 (char *) "variant", NULL
6677 };
6678
6679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
6680 if (obj0) {
6681 ecode1 = SWIG_AsVal_int(obj0, &val1);
6682 if (!SWIG_IsOK(ecode1)) {
6683 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ComboBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
6684 }
6685 arg1 = static_cast< wxWindowVariant >(val1);
6686 }
6687 {
6688 if (!wxPyCheckForApp()) SWIG_fail;
6689 PyThreadState* __tstate = wxPyBeginAllowThreads();
6690 result = wxComboBox::GetClassDefaultAttributes(arg1);
6691 wxPyEndAllowThreads(__tstate);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 SWIGINTERN PyObject *ComboBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6702 PyObject *obj;
6703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6704 SWIG_TypeNewClientData(SWIGTYPE_p_wxComboBox, SWIG_NewClientData(obj));
6705 return SWIG_Py_Void();
6706 }
6707
6708 SWIGINTERN PyObject *ComboBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 return SWIG_Python_InitShadowInstance(args);
6710 }
6711
6712 SWIGINTERN int GaugeNameStr_set(PyObject *) {
6713 SWIG_Error(SWIG_AttributeError,"Variable GaugeNameStr is read-only.");
6714 return 1;
6715 }
6716
6717
6718 SWIGINTERN PyObject *GaugeNameStr_get(void) {
6719 PyObject *pyobj = 0;
6720
6721 {
6722 #if wxUSE_UNICODE
6723 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6724 #else
6725 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
6726 #endif
6727 }
6728 return pyobj;
6729 }
6730
6731
6732 SWIGINTERN PyObject *_wrap_new_Gauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6733 PyObject *resultobj = 0;
6734 wxWindow *arg1 = (wxWindow *) 0 ;
6735 int arg2 = (int) -1 ;
6736 int arg3 = (int) 100 ;
6737 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6738 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6739 wxSize const &arg5_defvalue = wxDefaultSize ;
6740 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6741 long arg6 = (long) wxGA_HORIZONTAL ;
6742 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6743 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6744 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
6745 wxString *arg8 = (wxString *) &arg8_defvalue ;
6746 wxGauge *result = 0 ;
6747 void *argp1 = 0 ;
6748 int res1 = 0 ;
6749 int val2 ;
6750 int ecode2 = 0 ;
6751 int val3 ;
6752 int ecode3 = 0 ;
6753 wxPoint temp4 ;
6754 wxSize temp5 ;
6755 long val6 ;
6756 int ecode6 = 0 ;
6757 void *argp7 = 0 ;
6758 int res7 = 0 ;
6759 bool temp8 = false ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 PyObject * obj2 = 0 ;
6763 PyObject * obj3 = 0 ;
6764 PyObject * obj4 = 0 ;
6765 PyObject * obj5 = 0 ;
6766 PyObject * obj6 = 0 ;
6767 PyObject * obj7 = 0 ;
6768 char * kwnames[] = {
6769 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6770 };
6771
6772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
6773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
6774 if (!SWIG_IsOK(res1)) {
6775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Gauge" "', expected argument " "1"" of type '" "wxWindow *""'");
6776 }
6777 arg1 = reinterpret_cast< wxWindow * >(argp1);
6778 if (obj1) {
6779 ecode2 = SWIG_AsVal_int(obj1, &val2);
6780 if (!SWIG_IsOK(ecode2)) {
6781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Gauge" "', expected argument " "2"" of type '" "int""'");
6782 }
6783 arg2 = static_cast< int >(val2);
6784 }
6785 if (obj2) {
6786 ecode3 = SWIG_AsVal_int(obj2, &val3);
6787 if (!SWIG_IsOK(ecode3)) {
6788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Gauge" "', expected argument " "3"" of type '" "int""'");
6789 }
6790 arg3 = static_cast< int >(val3);
6791 }
6792 if (obj3) {
6793 {
6794 arg4 = &temp4;
6795 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6796 }
6797 }
6798 if (obj4) {
6799 {
6800 arg5 = &temp5;
6801 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6802 }
6803 }
6804 if (obj5) {
6805 ecode6 = SWIG_AsVal_long(obj5, &val6);
6806 if (!SWIG_IsOK(ecode6)) {
6807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_Gauge" "', expected argument " "6"" of type '" "long""'");
6808 }
6809 arg6 = static_cast< long >(val6);
6810 }
6811 if (obj6) {
6812 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
6813 if (!SWIG_IsOK(res7)) {
6814 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6815 }
6816 if (!argp7) {
6817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Gauge" "', expected argument " "7"" of type '" "wxValidator const &""'");
6818 }
6819 arg7 = reinterpret_cast< wxValidator * >(argp7);
6820 }
6821 if (obj7) {
6822 {
6823 arg8 = wxString_in_helper(obj7);
6824 if (arg8 == NULL) SWIG_fail;
6825 temp8 = true;
6826 }
6827 }
6828 {
6829 if (!wxPyCheckForApp()) SWIG_fail;
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6832 wxPyEndAllowThreads(__tstate);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 }
6835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_NEW | 0 );
6836 {
6837 if (temp8)
6838 delete arg8;
6839 }
6840 return resultobj;
6841 fail:
6842 {
6843 if (temp8)
6844 delete arg8;
6845 }
6846 return NULL;
6847 }
6848
6849
6850 SWIGINTERN PyObject *_wrap_new_PreGauge(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6851 PyObject *resultobj = 0;
6852 wxGauge *result = 0 ;
6853
6854 if (!SWIG_Python_UnpackTuple(args,"new_PreGauge",0,0,0)) SWIG_fail;
6855 {
6856 if (!wxPyCheckForApp()) SWIG_fail;
6857 PyThreadState* __tstate = wxPyBeginAllowThreads();
6858 result = (wxGauge *)new wxGauge();
6859 wxPyEndAllowThreads(__tstate);
6860 if (PyErr_Occurred()) SWIG_fail;
6861 }
6862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGauge, SWIG_POINTER_OWN | 0 );
6863 return resultobj;
6864 fail:
6865 return NULL;
6866 }
6867
6868
6869 SWIGINTERN PyObject *_wrap_Gauge_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6870 PyObject *resultobj = 0;
6871 wxGauge *arg1 = (wxGauge *) 0 ;
6872 wxWindow *arg2 = (wxWindow *) 0 ;
6873 int arg3 = (int) -1 ;
6874 int arg4 = (int) 100 ;
6875 wxPoint const &arg5_defvalue = wxDefaultPosition ;
6876 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
6877 wxSize const &arg6_defvalue = wxDefaultSize ;
6878 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
6879 long arg7 = (long) wxGA_HORIZONTAL ;
6880 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6881 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6882 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
6883 wxString *arg9 = (wxString *) &arg9_defvalue ;
6884 bool result;
6885 void *argp1 = 0 ;
6886 int res1 = 0 ;
6887 void *argp2 = 0 ;
6888 int res2 = 0 ;
6889 int val3 ;
6890 int ecode3 = 0 ;
6891 int val4 ;
6892 int ecode4 = 0 ;
6893 wxPoint temp5 ;
6894 wxSize temp6 ;
6895 long val7 ;
6896 int ecode7 = 0 ;
6897 void *argp8 = 0 ;
6898 int res8 = 0 ;
6899 bool temp9 = false ;
6900 PyObject * obj0 = 0 ;
6901 PyObject * obj1 = 0 ;
6902 PyObject * obj2 = 0 ;
6903 PyObject * obj3 = 0 ;
6904 PyObject * obj4 = 0 ;
6905 PyObject * obj5 = 0 ;
6906 PyObject * obj6 = 0 ;
6907 PyObject * obj7 = 0 ;
6908 PyObject * obj8 = 0 ;
6909 char * kwnames[] = {
6910 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
6911 };
6912
6913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
6914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
6915 if (!SWIG_IsOK(res1)) {
6916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_Create" "', expected argument " "1"" of type '" "wxGauge *""'");
6917 }
6918 arg1 = reinterpret_cast< wxGauge * >(argp1);
6919 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
6920 if (!SWIG_IsOK(res2)) {
6921 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Gauge_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
6922 }
6923 arg2 = reinterpret_cast< wxWindow * >(argp2);
6924 if (obj2) {
6925 ecode3 = SWIG_AsVal_int(obj2, &val3);
6926 if (!SWIG_IsOK(ecode3)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Gauge_Create" "', expected argument " "3"" of type '" "int""'");
6928 }
6929 arg3 = static_cast< int >(val3);
6930 }
6931 if (obj3) {
6932 ecode4 = SWIG_AsVal_int(obj3, &val4);
6933 if (!SWIG_IsOK(ecode4)) {
6934 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Gauge_Create" "', expected argument " "4"" of type '" "int""'");
6935 }
6936 arg4 = static_cast< int >(val4);
6937 }
6938 if (obj4) {
6939 {
6940 arg5 = &temp5;
6941 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
6942 }
6943 }
6944 if (obj5) {
6945 {
6946 arg6 = &temp6;
6947 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
6948 }
6949 }
6950 if (obj6) {
6951 ecode7 = SWIG_AsVal_long(obj6, &val7);
6952 if (!SWIG_IsOK(ecode7)) {
6953 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "Gauge_Create" "', expected argument " "7"" of type '" "long""'");
6954 }
6955 arg7 = static_cast< long >(val7);
6956 }
6957 if (obj7) {
6958 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
6959 if (!SWIG_IsOK(res8)) {
6960 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6961 }
6962 if (!argp8) {
6963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Gauge_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
6964 }
6965 arg8 = reinterpret_cast< wxValidator * >(argp8);
6966 }
6967 if (obj8) {
6968 {
6969 arg9 = wxString_in_helper(obj8);
6970 if (arg9 == NULL) SWIG_fail;
6971 temp9 = true;
6972 }
6973 }
6974 {
6975 PyThreadState* __tstate = wxPyBeginAllowThreads();
6976 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6977 wxPyEndAllowThreads(__tstate);
6978 if (PyErr_Occurred()) SWIG_fail;
6979 }
6980 {
6981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6982 }
6983 {
6984 if (temp9)
6985 delete arg9;
6986 }
6987 return resultobj;
6988 fail:
6989 {
6990 if (temp9)
6991 delete arg9;
6992 }
6993 return NULL;
6994 }
6995
6996
6997 SWIGINTERN PyObject *_wrap_Gauge_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6998 PyObject *resultobj = 0;
6999 wxGauge *arg1 = (wxGauge *) 0 ;
7000 int arg2 ;
7001 void *argp1 = 0 ;
7002 int res1 = 0 ;
7003 int val2 ;
7004 int ecode2 = 0 ;
7005 PyObject * obj0 = 0 ;
7006 PyObject * obj1 = 0 ;
7007 char * kwnames[] = {
7008 (char *) "self",(char *) "range", NULL
7009 };
7010
7011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) SWIG_fail;
7012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7013 if (!SWIG_IsOK(res1)) {
7014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetRange" "', expected argument " "1"" of type '" "wxGauge *""'");
7015 }
7016 arg1 = reinterpret_cast< wxGauge * >(argp1);
7017 ecode2 = SWIG_AsVal_int(obj1, &val2);
7018 if (!SWIG_IsOK(ecode2)) {
7019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetRange" "', expected argument " "2"" of type '" "int""'");
7020 }
7021 arg2 = static_cast< int >(val2);
7022 {
7023 PyThreadState* __tstate = wxPyBeginAllowThreads();
7024 (arg1)->SetRange(arg2);
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_Py_Void();
7029 return resultobj;
7030 fail:
7031 return NULL;
7032 }
7033
7034
7035 SWIGINTERN PyObject *_wrap_Gauge_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7036 PyObject *resultobj = 0;
7037 wxGauge *arg1 = (wxGauge *) 0 ;
7038 int result;
7039 void *argp1 = 0 ;
7040 int res1 = 0 ;
7041 PyObject *swig_obj[1] ;
7042
7043 if (!args) SWIG_fail;
7044 swig_obj[0] = args;
7045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7046 if (!SWIG_IsOK(res1)) {
7047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetRange" "', expected argument " "1"" of type '" "wxGauge const *""'");
7048 }
7049 arg1 = reinterpret_cast< wxGauge * >(argp1);
7050 {
7051 PyThreadState* __tstate = wxPyBeginAllowThreads();
7052 result = (int)((wxGauge const *)arg1)->GetRange();
7053 wxPyEndAllowThreads(__tstate);
7054 if (PyErr_Occurred()) SWIG_fail;
7055 }
7056 resultobj = SWIG_From_int(static_cast< int >(result));
7057 return resultobj;
7058 fail:
7059 return NULL;
7060 }
7061
7062
7063 SWIGINTERN PyObject *_wrap_Gauge_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj = 0;
7065 wxGauge *arg1 = (wxGauge *) 0 ;
7066 int arg2 ;
7067 void *argp1 = 0 ;
7068 int res1 = 0 ;
7069 int val2 ;
7070 int ecode2 = 0 ;
7071 PyObject * obj0 = 0 ;
7072 PyObject * obj1 = 0 ;
7073 char * kwnames[] = {
7074 (char *) "self",(char *) "pos", NULL
7075 };
7076
7077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
7078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7079 if (!SWIG_IsOK(res1)) {
7080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetValue" "', expected argument " "1"" of type '" "wxGauge *""'");
7081 }
7082 arg1 = reinterpret_cast< wxGauge * >(argp1);
7083 ecode2 = SWIG_AsVal_int(obj1, &val2);
7084 if (!SWIG_IsOK(ecode2)) {
7085 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetValue" "', expected argument " "2"" of type '" "int""'");
7086 }
7087 arg2 = static_cast< int >(val2);
7088 {
7089 PyThreadState* __tstate = wxPyBeginAllowThreads();
7090 (arg1)->SetValue(arg2);
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 resultobj = SWIG_Py_Void();
7095 return resultobj;
7096 fail:
7097 return NULL;
7098 }
7099
7100
7101 SWIGINTERN PyObject *_wrap_Gauge_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7102 PyObject *resultobj = 0;
7103 wxGauge *arg1 = (wxGauge *) 0 ;
7104 int result;
7105 void *argp1 = 0 ;
7106 int res1 = 0 ;
7107 PyObject *swig_obj[1] ;
7108
7109 if (!args) SWIG_fail;
7110 swig_obj[0] = args;
7111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7112 if (!SWIG_IsOK(res1)) {
7113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetValue" "', expected argument " "1"" of type '" "wxGauge const *""'");
7114 }
7115 arg1 = reinterpret_cast< wxGauge * >(argp1);
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = (int)((wxGauge const *)arg1)->GetValue();
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 resultobj = SWIG_From_int(static_cast< int >(result));
7123 return resultobj;
7124 fail:
7125 return NULL;
7126 }
7127
7128
7129 SWIGINTERN PyObject *_wrap_Gauge_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7130 PyObject *resultobj = 0;
7131 wxGauge *arg1 = (wxGauge *) 0 ;
7132 bool result;
7133 void *argp1 = 0 ;
7134 int res1 = 0 ;
7135 PyObject *swig_obj[1] ;
7136
7137 if (!args) SWIG_fail;
7138 swig_obj[0] = args;
7139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7140 if (!SWIG_IsOK(res1)) {
7141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_IsVertical" "', expected argument " "1"" of type '" "wxGauge const *""'");
7142 }
7143 arg1 = reinterpret_cast< wxGauge * >(argp1);
7144 {
7145 PyThreadState* __tstate = wxPyBeginAllowThreads();
7146 result = (bool)((wxGauge const *)arg1)->IsVertical();
7147 wxPyEndAllowThreads(__tstate);
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 {
7151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7152 }
7153 return resultobj;
7154 fail:
7155 return NULL;
7156 }
7157
7158
7159 SWIGINTERN PyObject *_wrap_Gauge_SetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7160 PyObject *resultobj = 0;
7161 wxGauge *arg1 = (wxGauge *) 0 ;
7162 int arg2 ;
7163 void *argp1 = 0 ;
7164 int res1 = 0 ;
7165 int val2 ;
7166 int ecode2 = 0 ;
7167 PyObject * obj0 = 0 ;
7168 PyObject * obj1 = 0 ;
7169 char * kwnames[] = {
7170 (char *) "self",(char *) "w", NULL
7171 };
7172
7173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7175 if (!SWIG_IsOK(res1)) {
7176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetShadowWidth" "', expected argument " "1"" of type '" "wxGauge *""'");
7177 }
7178 arg1 = reinterpret_cast< wxGauge * >(argp1);
7179 ecode2 = SWIG_AsVal_int(obj1, &val2);
7180 if (!SWIG_IsOK(ecode2)) {
7181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetShadowWidth" "', expected argument " "2"" of type '" "int""'");
7182 }
7183 arg2 = static_cast< int >(val2);
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 (arg1)->SetShadowWidth(arg2);
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = SWIG_Py_Void();
7191 return resultobj;
7192 fail:
7193 return NULL;
7194 }
7195
7196
7197 SWIGINTERN PyObject *_wrap_Gauge_GetShadowWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7198 PyObject *resultobj = 0;
7199 wxGauge *arg1 = (wxGauge *) 0 ;
7200 int result;
7201 void *argp1 = 0 ;
7202 int res1 = 0 ;
7203 PyObject *swig_obj[1] ;
7204
7205 if (!args) SWIG_fail;
7206 swig_obj[0] = args;
7207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7208 if (!SWIG_IsOK(res1)) {
7209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetShadowWidth" "', expected argument " "1"" of type '" "wxGauge const *""'");
7210 }
7211 arg1 = reinterpret_cast< wxGauge * >(argp1);
7212 {
7213 PyThreadState* __tstate = wxPyBeginAllowThreads();
7214 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
7215 wxPyEndAllowThreads(__tstate);
7216 if (PyErr_Occurred()) SWIG_fail;
7217 }
7218 resultobj = SWIG_From_int(static_cast< int >(result));
7219 return resultobj;
7220 fail:
7221 return NULL;
7222 }
7223
7224
7225 SWIGINTERN PyObject *_wrap_Gauge_SetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7226 PyObject *resultobj = 0;
7227 wxGauge *arg1 = (wxGauge *) 0 ;
7228 int arg2 ;
7229 void *argp1 = 0 ;
7230 int res1 = 0 ;
7231 int val2 ;
7232 int ecode2 = 0 ;
7233 PyObject * obj0 = 0 ;
7234 PyObject * obj1 = 0 ;
7235 char * kwnames[] = {
7236 (char *) "self",(char *) "w", NULL
7237 };
7238
7239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) SWIG_fail;
7240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7241 if (!SWIG_IsOK(res1)) {
7242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_SetBezelFace" "', expected argument " "1"" of type '" "wxGauge *""'");
7243 }
7244 arg1 = reinterpret_cast< wxGauge * >(argp1);
7245 ecode2 = SWIG_AsVal_int(obj1, &val2);
7246 if (!SWIG_IsOK(ecode2)) {
7247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Gauge_SetBezelFace" "', expected argument " "2"" of type '" "int""'");
7248 }
7249 arg2 = static_cast< int >(val2);
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 (arg1)->SetBezelFace(arg2);
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_Py_Void();
7257 return resultobj;
7258 fail:
7259 return NULL;
7260 }
7261
7262
7263 SWIGINTERN PyObject *_wrap_Gauge_GetBezelFace(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7264 PyObject *resultobj = 0;
7265 wxGauge *arg1 = (wxGauge *) 0 ;
7266 int result;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGauge, 0 | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Gauge_GetBezelFace" "', expected argument " "1"" of type '" "wxGauge const *""'");
7276 }
7277 arg1 = reinterpret_cast< wxGauge * >(argp1);
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (int)((wxGauge const *)arg1)->GetBezelFace();
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_From_int(static_cast< int >(result));
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj = 0;
7293 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7294 SwigValueWrapper<wxVisualAttributes > result;
7295 int val1 ;
7296 int ecode1 = 0 ;
7297 PyObject * obj0 = 0 ;
7298 char * kwnames[] = {
7299 (char *) "variant", NULL
7300 };
7301
7302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7303 if (obj0) {
7304 ecode1 = SWIG_AsVal_int(obj0, &val1);
7305 if (!SWIG_IsOK(ecode1)) {
7306 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Gauge_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7307 }
7308 arg1 = static_cast< wxWindowVariant >(val1);
7309 }
7310 {
7311 if (!wxPyCheckForApp()) SWIG_fail;
7312 PyThreadState* __tstate = wxPyBeginAllowThreads();
7313 result = wxGauge::GetClassDefaultAttributes(arg1);
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 SWIGINTERN PyObject *Gauge_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7325 PyObject *obj;
7326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7327 SWIG_TypeNewClientData(SWIGTYPE_p_wxGauge, SWIG_NewClientData(obj));
7328 return SWIG_Py_Void();
7329 }
7330
7331 SWIGINTERN PyObject *Gauge_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7332 return SWIG_Python_InitShadowInstance(args);
7333 }
7334
7335 SWIGINTERN int StaticBitmapNameStr_set(PyObject *) {
7336 SWIG_Error(SWIG_AttributeError,"Variable StaticBitmapNameStr is read-only.");
7337 return 1;
7338 }
7339
7340
7341 SWIGINTERN PyObject *StaticBitmapNameStr_get(void) {
7342 PyObject *pyobj = 0;
7343
7344 {
7345 #if wxUSE_UNICODE
7346 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7347 #else
7348 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
7349 #endif
7350 }
7351 return pyobj;
7352 }
7353
7354
7355 SWIGINTERN int StaticBoxNameStr_set(PyObject *) {
7356 SWIG_Error(SWIG_AttributeError,"Variable StaticBoxNameStr is read-only.");
7357 return 1;
7358 }
7359
7360
7361 SWIGINTERN PyObject *StaticBoxNameStr_get(void) {
7362 PyObject *pyobj = 0;
7363
7364 {
7365 #if wxUSE_UNICODE
7366 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7367 #else
7368 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
7369 #endif
7370 }
7371 return pyobj;
7372 }
7373
7374
7375 SWIGINTERN int StaticTextNameStr_set(PyObject *) {
7376 SWIG_Error(SWIG_AttributeError,"Variable StaticTextNameStr is read-only.");
7377 return 1;
7378 }
7379
7380
7381 SWIGINTERN PyObject *StaticTextNameStr_get(void) {
7382 PyObject *pyobj = 0;
7383
7384 {
7385 #if wxUSE_UNICODE
7386 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7387 #else
7388 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
7389 #endif
7390 }
7391 return pyobj;
7392 }
7393
7394
7395 SWIGINTERN PyObject *_wrap_new_StaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7396 PyObject *resultobj = 0;
7397 wxWindow *arg1 = (wxWindow *) 0 ;
7398 int arg2 = (int) -1 ;
7399 wxString const &arg3_defvalue = wxPyEmptyString ;
7400 wxString *arg3 = (wxString *) &arg3_defvalue ;
7401 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7402 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7403 wxSize const &arg5_defvalue = wxDefaultSize ;
7404 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7405 long arg6 = (long) 0 ;
7406 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
7407 wxString *arg7 = (wxString *) &arg7_defvalue ;
7408 wxStaticBox *result = 0 ;
7409 void *argp1 = 0 ;
7410 int res1 = 0 ;
7411 int val2 ;
7412 int ecode2 = 0 ;
7413 bool temp3 = false ;
7414 wxPoint temp4 ;
7415 wxSize temp5 ;
7416 long val6 ;
7417 int ecode6 = 0 ;
7418 bool temp7 = false ;
7419 PyObject * obj0 = 0 ;
7420 PyObject * obj1 = 0 ;
7421 PyObject * obj2 = 0 ;
7422 PyObject * obj3 = 0 ;
7423 PyObject * obj4 = 0 ;
7424 PyObject * obj5 = 0 ;
7425 PyObject * obj6 = 0 ;
7426 char * kwnames[] = {
7427 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7428 };
7429
7430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7432 if (!SWIG_IsOK(res1)) {
7433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBox" "', expected argument " "1"" of type '" "wxWindow *""'");
7434 }
7435 arg1 = reinterpret_cast< wxWindow * >(argp1);
7436 if (obj1) {
7437 ecode2 = SWIG_AsVal_int(obj1, &val2);
7438 if (!SWIG_IsOK(ecode2)) {
7439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBox" "', expected argument " "2"" of type '" "int""'");
7440 }
7441 arg2 = static_cast< int >(val2);
7442 }
7443 if (obj2) {
7444 {
7445 arg3 = wxString_in_helper(obj2);
7446 if (arg3 == NULL) SWIG_fail;
7447 temp3 = true;
7448 }
7449 }
7450 if (obj3) {
7451 {
7452 arg4 = &temp4;
7453 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7454 }
7455 }
7456 if (obj4) {
7457 {
7458 arg5 = &temp5;
7459 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7460 }
7461 }
7462 if (obj5) {
7463 ecode6 = SWIG_AsVal_long(obj5, &val6);
7464 if (!SWIG_IsOK(ecode6)) {
7465 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBox" "', expected argument " "6"" of type '" "long""'");
7466 }
7467 arg6 = static_cast< long >(val6);
7468 }
7469 if (obj6) {
7470 {
7471 arg7 = wxString_in_helper(obj6);
7472 if (arg7 == NULL) SWIG_fail;
7473 temp7 = true;
7474 }
7475 }
7476 {
7477 if (!wxPyCheckForApp()) SWIG_fail;
7478 PyThreadState* __tstate = wxPyBeginAllowThreads();
7479 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_NEW | 0 );
7484 {
7485 if (temp3)
7486 delete arg3;
7487 }
7488 {
7489 if (temp7)
7490 delete arg7;
7491 }
7492 return resultobj;
7493 fail:
7494 {
7495 if (temp3)
7496 delete arg3;
7497 }
7498 {
7499 if (temp7)
7500 delete arg7;
7501 }
7502 return NULL;
7503 }
7504
7505
7506 SWIGINTERN PyObject *_wrap_new_PreStaticBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507 PyObject *resultobj = 0;
7508 wxStaticBox *result = 0 ;
7509
7510 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBox",0,0,0)) SWIG_fail;
7511 {
7512 if (!wxPyCheckForApp()) SWIG_fail;
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 result = (wxStaticBox *)new wxStaticBox();
7515 wxPyEndAllowThreads(__tstate);
7516 if (PyErr_Occurred()) SWIG_fail;
7517 }
7518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBox, SWIG_POINTER_OWN | 0 );
7519 return resultobj;
7520 fail:
7521 return NULL;
7522 }
7523
7524
7525 SWIGINTERN PyObject *_wrap_StaticBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj = 0;
7527 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
7528 wxWindow *arg2 = (wxWindow *) 0 ;
7529 int arg3 = (int) -1 ;
7530 wxString const &arg4_defvalue = wxPyEmptyString ;
7531 wxString *arg4 = (wxString *) &arg4_defvalue ;
7532 wxPoint const &arg5_defvalue = wxDefaultPosition ;
7533 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
7534 wxSize const &arg6_defvalue = wxDefaultSize ;
7535 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
7536 long arg7 = (long) 0 ;
7537 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
7538 wxString *arg8 = (wxString *) &arg8_defvalue ;
7539 bool result;
7540 void *argp1 = 0 ;
7541 int res1 = 0 ;
7542 void *argp2 = 0 ;
7543 int res2 = 0 ;
7544 int val3 ;
7545 int ecode3 = 0 ;
7546 bool temp4 = false ;
7547 wxPoint temp5 ;
7548 wxSize temp6 ;
7549 long val7 ;
7550 int ecode7 = 0 ;
7551 bool temp8 = false ;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj1 = 0 ;
7554 PyObject * obj2 = 0 ;
7555 PyObject * obj3 = 0 ;
7556 PyObject * obj4 = 0 ;
7557 PyObject * obj5 = 0 ;
7558 PyObject * obj6 = 0 ;
7559 PyObject * obj7 = 0 ;
7560 char * kwnames[] = {
7561 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7562 };
7563
7564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
7565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBox, 0 | 0 );
7566 if (!SWIG_IsOK(res1)) {
7567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBox_Create" "', expected argument " "1"" of type '" "wxStaticBox *""'");
7568 }
7569 arg1 = reinterpret_cast< wxStaticBox * >(argp1);
7570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7571 if (!SWIG_IsOK(res2)) {
7572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7573 }
7574 arg2 = reinterpret_cast< wxWindow * >(argp2);
7575 if (obj2) {
7576 ecode3 = SWIG_AsVal_int(obj2, &val3);
7577 if (!SWIG_IsOK(ecode3)) {
7578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBox_Create" "', expected argument " "3"" of type '" "int""'");
7579 }
7580 arg3 = static_cast< int >(val3);
7581 }
7582 if (obj3) {
7583 {
7584 arg4 = wxString_in_helper(obj3);
7585 if (arg4 == NULL) SWIG_fail;
7586 temp4 = true;
7587 }
7588 }
7589 if (obj4) {
7590 {
7591 arg5 = &temp5;
7592 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
7593 }
7594 }
7595 if (obj5) {
7596 {
7597 arg6 = &temp6;
7598 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
7599 }
7600 }
7601 if (obj6) {
7602 ecode7 = SWIG_AsVal_long(obj6, &val7);
7603 if (!SWIG_IsOK(ecode7)) {
7604 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBox_Create" "', expected argument " "7"" of type '" "long""'");
7605 }
7606 arg7 = static_cast< long >(val7);
7607 }
7608 if (obj7) {
7609 {
7610 arg8 = wxString_in_helper(obj7);
7611 if (arg8 == NULL) SWIG_fail;
7612 temp8 = true;
7613 }
7614 }
7615 {
7616 PyThreadState* __tstate = wxPyBeginAllowThreads();
7617 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
7618 wxPyEndAllowThreads(__tstate);
7619 if (PyErr_Occurred()) SWIG_fail;
7620 }
7621 {
7622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7623 }
7624 {
7625 if (temp4)
7626 delete arg4;
7627 }
7628 {
7629 if (temp8)
7630 delete arg8;
7631 }
7632 return resultobj;
7633 fail:
7634 {
7635 if (temp4)
7636 delete arg4;
7637 }
7638 {
7639 if (temp8)
7640 delete arg8;
7641 }
7642 return NULL;
7643 }
7644
7645
7646 SWIGINTERN PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7647 PyObject *resultobj = 0;
7648 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7649 SwigValueWrapper<wxVisualAttributes > result;
7650 int val1 ;
7651 int ecode1 = 0 ;
7652 PyObject * obj0 = 0 ;
7653 char * kwnames[] = {
7654 (char *) "variant", NULL
7655 };
7656
7657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7658 if (obj0) {
7659 ecode1 = SWIG_AsVal_int(obj0, &val1);
7660 if (!SWIG_IsOK(ecode1)) {
7661 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7662 }
7663 arg1 = static_cast< wxWindowVariant >(val1);
7664 }
7665 {
7666 if (!wxPyCheckForApp()) SWIG_fail;
7667 PyThreadState* __tstate = wxPyBeginAllowThreads();
7668 result = wxStaticBox::GetClassDefaultAttributes(arg1);
7669 wxPyEndAllowThreads(__tstate);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7673 return resultobj;
7674 fail:
7675 return NULL;
7676 }
7677
7678
7679 SWIGINTERN PyObject *StaticBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7680 PyObject *obj;
7681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7682 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBox, SWIG_NewClientData(obj));
7683 return SWIG_Py_Void();
7684 }
7685
7686 SWIGINTERN PyObject *StaticBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7687 return SWIG_Python_InitShadowInstance(args);
7688 }
7689
7690 SWIGINTERN PyObject *_wrap_new_StaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7691 PyObject *resultobj = 0;
7692 wxWindow *arg1 = (wxWindow *) 0 ;
7693 int arg2 = (int) -1 ;
7694 wxPoint const &arg3_defvalue = wxDefaultPosition ;
7695 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
7696 wxSize const &arg4_defvalue = wxDefaultSize ;
7697 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
7698 long arg5 = (long) wxLI_HORIZONTAL ;
7699 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
7700 wxString *arg6 = (wxString *) &arg6_defvalue ;
7701 wxStaticLine *result = 0 ;
7702 void *argp1 = 0 ;
7703 int res1 = 0 ;
7704 int val2 ;
7705 int ecode2 = 0 ;
7706 wxPoint temp3 ;
7707 wxSize temp4 ;
7708 long val5 ;
7709 int ecode5 = 0 ;
7710 bool temp6 = false ;
7711 PyObject * obj0 = 0 ;
7712 PyObject * obj1 = 0 ;
7713 PyObject * obj2 = 0 ;
7714 PyObject * obj3 = 0 ;
7715 PyObject * obj4 = 0 ;
7716 PyObject * obj5 = 0 ;
7717 char * kwnames[] = {
7718 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7719 };
7720
7721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
7722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
7723 if (!SWIG_IsOK(res1)) {
7724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticLine" "', expected argument " "1"" of type '" "wxWindow *""'");
7725 }
7726 arg1 = reinterpret_cast< wxWindow * >(argp1);
7727 if (obj1) {
7728 ecode2 = SWIG_AsVal_int(obj1, &val2);
7729 if (!SWIG_IsOK(ecode2)) {
7730 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticLine" "', expected argument " "2"" of type '" "int""'");
7731 }
7732 arg2 = static_cast< int >(val2);
7733 }
7734 if (obj2) {
7735 {
7736 arg3 = &temp3;
7737 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
7738 }
7739 }
7740 if (obj3) {
7741 {
7742 arg4 = &temp4;
7743 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
7744 }
7745 }
7746 if (obj4) {
7747 ecode5 = SWIG_AsVal_long(obj4, &val5);
7748 if (!SWIG_IsOK(ecode5)) {
7749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_StaticLine" "', expected argument " "5"" of type '" "long""'");
7750 }
7751 arg5 = static_cast< long >(val5);
7752 }
7753 if (obj5) {
7754 {
7755 arg6 = wxString_in_helper(obj5);
7756 if (arg6 == NULL) SWIG_fail;
7757 temp6 = true;
7758 }
7759 }
7760 {
7761 if (!wxPyCheckForApp()) SWIG_fail;
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_NEW | 0 );
7768 {
7769 if (temp6)
7770 delete arg6;
7771 }
7772 return resultobj;
7773 fail:
7774 {
7775 if (temp6)
7776 delete arg6;
7777 }
7778 return NULL;
7779 }
7780
7781
7782 SWIGINTERN PyObject *_wrap_new_PreStaticLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7783 PyObject *resultobj = 0;
7784 wxStaticLine *result = 0 ;
7785
7786 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticLine",0,0,0)) SWIG_fail;
7787 {
7788 if (!wxPyCheckForApp()) SWIG_fail;
7789 PyThreadState* __tstate = wxPyBeginAllowThreads();
7790 result = (wxStaticLine *)new wxStaticLine();
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticLine, SWIG_POINTER_OWN | 0 );
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 SWIGINTERN PyObject *_wrap_StaticLine_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj = 0;
7803 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7804 wxWindow *arg2 = (wxWindow *) 0 ;
7805 int arg3 = (int) -1 ;
7806 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7807 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7808 wxSize const &arg5_defvalue = wxDefaultSize ;
7809 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7810 long arg6 = (long) wxLI_HORIZONTAL ;
7811 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
7812 wxString *arg7 = (wxString *) &arg7_defvalue ;
7813 bool result;
7814 void *argp1 = 0 ;
7815 int res1 = 0 ;
7816 void *argp2 = 0 ;
7817 int res2 = 0 ;
7818 int val3 ;
7819 int ecode3 = 0 ;
7820 wxPoint temp4 ;
7821 wxSize temp5 ;
7822 long val6 ;
7823 int ecode6 = 0 ;
7824 bool temp7 = false ;
7825 PyObject * obj0 = 0 ;
7826 PyObject * obj1 = 0 ;
7827 PyObject * obj2 = 0 ;
7828 PyObject * obj3 = 0 ;
7829 PyObject * obj4 = 0 ;
7830 PyObject * obj5 = 0 ;
7831 PyObject * obj6 = 0 ;
7832 char * kwnames[] = {
7833 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
7834 };
7835
7836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
7837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7838 if (!SWIG_IsOK(res1)) {
7839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_Create" "', expected argument " "1"" of type '" "wxStaticLine *""'");
7840 }
7841 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7842 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
7843 if (!SWIG_IsOK(res2)) {
7844 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticLine_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
7845 }
7846 arg2 = reinterpret_cast< wxWindow * >(argp2);
7847 if (obj2) {
7848 ecode3 = SWIG_AsVal_int(obj2, &val3);
7849 if (!SWIG_IsOK(ecode3)) {
7850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticLine_Create" "', expected argument " "3"" of type '" "int""'");
7851 }
7852 arg3 = static_cast< int >(val3);
7853 }
7854 if (obj3) {
7855 {
7856 arg4 = &temp4;
7857 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7858 }
7859 }
7860 if (obj4) {
7861 {
7862 arg5 = &temp5;
7863 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7864 }
7865 }
7866 if (obj5) {
7867 ecode6 = SWIG_AsVal_long(obj5, &val6);
7868 if (!SWIG_IsOK(ecode6)) {
7869 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "StaticLine_Create" "', expected argument " "6"" of type '" "long""'");
7870 }
7871 arg6 = static_cast< long >(val6);
7872 }
7873 if (obj6) {
7874 {
7875 arg7 = wxString_in_helper(obj6);
7876 if (arg7 == NULL) SWIG_fail;
7877 temp7 = true;
7878 }
7879 }
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
7883 wxPyEndAllowThreads(__tstate);
7884 if (PyErr_Occurred()) SWIG_fail;
7885 }
7886 {
7887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7888 }
7889 {
7890 if (temp7)
7891 delete arg7;
7892 }
7893 return resultobj;
7894 fail:
7895 {
7896 if (temp7)
7897 delete arg7;
7898 }
7899 return NULL;
7900 }
7901
7902
7903 SWIGINTERN PyObject *_wrap_StaticLine_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7904 PyObject *resultobj = 0;
7905 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
7906 bool result;
7907 void *argp1 = 0 ;
7908 int res1 = 0 ;
7909 PyObject *swig_obj[1] ;
7910
7911 if (!args) SWIG_fail;
7912 swig_obj[0] = args;
7913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticLine, 0 | 0 );
7914 if (!SWIG_IsOK(res1)) {
7915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticLine_IsVertical" "', expected argument " "1"" of type '" "wxStaticLine const *""'");
7916 }
7917 arg1 = reinterpret_cast< wxStaticLine * >(argp1);
7918 {
7919 PyThreadState* __tstate = wxPyBeginAllowThreads();
7920 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 {
7925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7926 }
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 SWIGINTERN PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7934 PyObject *resultobj = 0;
7935 int result;
7936
7937 if (!SWIG_Python_UnpackTuple(args,"StaticLine_GetDefaultSize",0,0,0)) SWIG_fail;
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (int)wxStaticLine::GetDefaultSize();
7941 wxPyEndAllowThreads(__tstate);
7942 if (PyErr_Occurred()) SWIG_fail;
7943 }
7944 resultobj = SWIG_From_int(static_cast< int >(result));
7945 return resultobj;
7946 fail:
7947 return NULL;
7948 }
7949
7950
7951 SWIGINTERN PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7952 PyObject *resultobj = 0;
7953 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
7954 SwigValueWrapper<wxVisualAttributes > result;
7955 int val1 ;
7956 int ecode1 = 0 ;
7957 PyObject * obj0 = 0 ;
7958 char * kwnames[] = {
7959 (char *) "variant", NULL
7960 };
7961
7962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
7963 if (obj0) {
7964 ecode1 = SWIG_AsVal_int(obj0, &val1);
7965 if (!SWIG_IsOK(ecode1)) {
7966 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticLine_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
7967 }
7968 arg1 = static_cast< wxWindowVariant >(val1);
7969 }
7970 {
7971 if (!wxPyCheckForApp()) SWIG_fail;
7972 PyThreadState* __tstate = wxPyBeginAllowThreads();
7973 result = wxStaticLine::GetClassDefaultAttributes(arg1);
7974 wxPyEndAllowThreads(__tstate);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
7978 return resultobj;
7979 fail:
7980 return NULL;
7981 }
7982
7983
7984 SWIGINTERN PyObject *StaticLine_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7985 PyObject *obj;
7986 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7987 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticLine, SWIG_NewClientData(obj));
7988 return SWIG_Py_Void();
7989 }
7990
7991 SWIGINTERN PyObject *StaticLine_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7992 return SWIG_Python_InitShadowInstance(args);
7993 }
7994
7995 SWIGINTERN PyObject *_wrap_new_StaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7996 PyObject *resultobj = 0;
7997 wxWindow *arg1 = (wxWindow *) 0 ;
7998 int arg2 = (int) -1 ;
7999 wxString const &arg3_defvalue = wxPyEmptyString ;
8000 wxString *arg3 = (wxString *) &arg3_defvalue ;
8001 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8002 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8003 wxSize const &arg5_defvalue = wxDefaultSize ;
8004 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8005 long arg6 = (long) 0 ;
8006 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
8007 wxString *arg7 = (wxString *) &arg7_defvalue ;
8008 wxStaticText *result = 0 ;
8009 void *argp1 = 0 ;
8010 int res1 = 0 ;
8011 int val2 ;
8012 int ecode2 = 0 ;
8013 bool temp3 = false ;
8014 wxPoint temp4 ;
8015 wxSize temp5 ;
8016 long val6 ;
8017 int ecode6 = 0 ;
8018 bool temp7 = false ;
8019 PyObject * obj0 = 0 ;
8020 PyObject * obj1 = 0 ;
8021 PyObject * obj2 = 0 ;
8022 PyObject * obj3 = 0 ;
8023 PyObject * obj4 = 0 ;
8024 PyObject * obj5 = 0 ;
8025 PyObject * obj6 = 0 ;
8026 char * kwnames[] = {
8027 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8028 };
8029
8030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8032 if (!SWIG_IsOK(res1)) {
8033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticText" "', expected argument " "1"" of type '" "wxWindow *""'");
8034 }
8035 arg1 = reinterpret_cast< wxWindow * >(argp1);
8036 if (obj1) {
8037 ecode2 = SWIG_AsVal_int(obj1, &val2);
8038 if (!SWIG_IsOK(ecode2)) {
8039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticText" "', expected argument " "2"" of type '" "int""'");
8040 }
8041 arg2 = static_cast< int >(val2);
8042 }
8043 if (obj2) {
8044 {
8045 arg3 = wxString_in_helper(obj2);
8046 if (arg3 == NULL) SWIG_fail;
8047 temp3 = true;
8048 }
8049 }
8050 if (obj3) {
8051 {
8052 arg4 = &temp4;
8053 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8054 }
8055 }
8056 if (obj4) {
8057 {
8058 arg5 = &temp5;
8059 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8060 }
8061 }
8062 if (obj5) {
8063 ecode6 = SWIG_AsVal_long(obj5, &val6);
8064 if (!SWIG_IsOK(ecode6)) {
8065 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticText" "', expected argument " "6"" of type '" "long""'");
8066 }
8067 arg6 = static_cast< long >(val6);
8068 }
8069 if (obj6) {
8070 {
8071 arg7 = wxString_in_helper(obj6);
8072 if (arg7 == NULL) SWIG_fail;
8073 temp7 = true;
8074 }
8075 }
8076 {
8077 if (!wxPyCheckForApp()) SWIG_fail;
8078 PyThreadState* __tstate = wxPyBeginAllowThreads();
8079 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8080 wxPyEndAllowThreads(__tstate);
8081 if (PyErr_Occurred()) SWIG_fail;
8082 }
8083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_NEW | 0 );
8084 {
8085 if (temp3)
8086 delete arg3;
8087 }
8088 {
8089 if (temp7)
8090 delete arg7;
8091 }
8092 return resultobj;
8093 fail:
8094 {
8095 if (temp3)
8096 delete arg3;
8097 }
8098 {
8099 if (temp7)
8100 delete arg7;
8101 }
8102 return NULL;
8103 }
8104
8105
8106 SWIGINTERN PyObject *_wrap_new_PreStaticText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8107 PyObject *resultobj = 0;
8108 wxStaticText *result = 0 ;
8109
8110 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticText",0,0,0)) SWIG_fail;
8111 {
8112 if (!wxPyCheckForApp()) SWIG_fail;
8113 PyThreadState* __tstate = wxPyBeginAllowThreads();
8114 result = (wxStaticText *)new wxStaticText();
8115 wxPyEndAllowThreads(__tstate);
8116 if (PyErr_Occurred()) SWIG_fail;
8117 }
8118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticText, SWIG_POINTER_OWN | 0 );
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 SWIGINTERN PyObject *_wrap_StaticText_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj = 0;
8127 wxStaticText *arg1 = (wxStaticText *) 0 ;
8128 wxWindow *arg2 = (wxWindow *) 0 ;
8129 int arg3 = (int) -1 ;
8130 wxString const &arg4_defvalue = wxPyEmptyString ;
8131 wxString *arg4 = (wxString *) &arg4_defvalue ;
8132 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8133 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8134 wxSize const &arg6_defvalue = wxDefaultSize ;
8135 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8136 long arg7 = (long) 0 ;
8137 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
8138 wxString *arg8 = (wxString *) &arg8_defvalue ;
8139 bool result;
8140 void *argp1 = 0 ;
8141 int res1 = 0 ;
8142 void *argp2 = 0 ;
8143 int res2 = 0 ;
8144 int val3 ;
8145 int ecode3 = 0 ;
8146 bool temp4 = false ;
8147 wxPoint temp5 ;
8148 wxSize temp6 ;
8149 long val7 ;
8150 int ecode7 = 0 ;
8151 bool temp8 = false ;
8152 PyObject * obj0 = 0 ;
8153 PyObject * obj1 = 0 ;
8154 PyObject * obj2 = 0 ;
8155 PyObject * obj3 = 0 ;
8156 PyObject * obj4 = 0 ;
8157 PyObject * obj5 = 0 ;
8158 PyObject * obj6 = 0 ;
8159 PyObject * obj7 = 0 ;
8160 char * kwnames[] = {
8161 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8162 };
8163
8164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8166 if (!SWIG_IsOK(res1)) {
8167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Create" "', expected argument " "1"" of type '" "wxStaticText *""'");
8168 }
8169 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8170 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8171 if (!SWIG_IsOK(res2)) {
8172 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticText_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8173 }
8174 arg2 = reinterpret_cast< wxWindow * >(argp2);
8175 if (obj2) {
8176 ecode3 = SWIG_AsVal_int(obj2, &val3);
8177 if (!SWIG_IsOK(ecode3)) {
8178 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticText_Create" "', expected argument " "3"" of type '" "int""'");
8179 }
8180 arg3 = static_cast< int >(val3);
8181 }
8182 if (obj3) {
8183 {
8184 arg4 = wxString_in_helper(obj3);
8185 if (arg4 == NULL) SWIG_fail;
8186 temp4 = true;
8187 }
8188 }
8189 if (obj4) {
8190 {
8191 arg5 = &temp5;
8192 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8193 }
8194 }
8195 if (obj5) {
8196 {
8197 arg6 = &temp6;
8198 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8199 }
8200 }
8201 if (obj6) {
8202 ecode7 = SWIG_AsVal_long(obj6, &val7);
8203 if (!SWIG_IsOK(ecode7)) {
8204 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticText_Create" "', expected argument " "7"" of type '" "long""'");
8205 }
8206 arg7 = static_cast< long >(val7);
8207 }
8208 if (obj7) {
8209 {
8210 arg8 = wxString_in_helper(obj7);
8211 if (arg8 == NULL) SWIG_fail;
8212 temp8 = true;
8213 }
8214 }
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 }
8221 {
8222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8223 }
8224 {
8225 if (temp4)
8226 delete arg4;
8227 }
8228 {
8229 if (temp8)
8230 delete arg8;
8231 }
8232 return resultobj;
8233 fail:
8234 {
8235 if (temp4)
8236 delete arg4;
8237 }
8238 {
8239 if (temp8)
8240 delete arg8;
8241 }
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_StaticText_Wrap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxStaticText *arg1 = (wxStaticText *) 0 ;
8249 int arg2 ;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 int val2 ;
8253 int ecode2 = 0 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char * kwnames[] = {
8257 (char *) "self",(char *) "width", NULL
8258 };
8259
8260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticText_Wrap",kwnames,&obj0,&obj1)) SWIG_fail;
8261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticText, 0 | 0 );
8262 if (!SWIG_IsOK(res1)) {
8263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticText_Wrap" "', expected argument " "1"" of type '" "wxStaticText *""'");
8264 }
8265 arg1 = reinterpret_cast< wxStaticText * >(argp1);
8266 ecode2 = SWIG_AsVal_int(obj1, &val2);
8267 if (!SWIG_IsOK(ecode2)) {
8268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StaticText_Wrap" "', expected argument " "2"" of type '" "int""'");
8269 }
8270 arg2 = static_cast< int >(val2);
8271 {
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 (arg1)->Wrap(arg2);
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 resultobj = SWIG_Py_Void();
8278 return resultobj;
8279 fail:
8280 return NULL;
8281 }
8282
8283
8284 SWIGINTERN PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8285 PyObject *resultobj = 0;
8286 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8287 SwigValueWrapper<wxVisualAttributes > result;
8288 int val1 ;
8289 int ecode1 = 0 ;
8290 PyObject * obj0 = 0 ;
8291 char * kwnames[] = {
8292 (char *) "variant", NULL
8293 };
8294
8295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8296 if (obj0) {
8297 ecode1 = SWIG_AsVal_int(obj0, &val1);
8298 if (!SWIG_IsOK(ecode1)) {
8299 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticText_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8300 }
8301 arg1 = static_cast< wxWindowVariant >(val1);
8302 }
8303 {
8304 if (!wxPyCheckForApp()) SWIG_fail;
8305 PyThreadState* __tstate = wxPyBeginAllowThreads();
8306 result = wxStaticText::GetClassDefaultAttributes(arg1);
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8311 return resultobj;
8312 fail:
8313 return NULL;
8314 }
8315
8316
8317 SWIGINTERN PyObject *StaticText_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8318 PyObject *obj;
8319 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8320 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticText, SWIG_NewClientData(obj));
8321 return SWIG_Py_Void();
8322 }
8323
8324 SWIGINTERN PyObject *StaticText_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8325 return SWIG_Python_InitShadowInstance(args);
8326 }
8327
8328 SWIGINTERN PyObject *_wrap_new_StaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8329 PyObject *resultobj = 0;
8330 wxWindow *arg1 = (wxWindow *) 0 ;
8331 int arg2 = (int) -1 ;
8332 wxBitmap const &arg3_defvalue = wxNullBitmap ;
8333 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
8334 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8335 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8336 wxSize const &arg5_defvalue = wxDefaultSize ;
8337 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8338 long arg6 = (long) 0 ;
8339 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
8340 wxString *arg7 = (wxString *) &arg7_defvalue ;
8341 wxStaticBitmap *result = 0 ;
8342 void *argp1 = 0 ;
8343 int res1 = 0 ;
8344 int val2 ;
8345 int ecode2 = 0 ;
8346 void *argp3 = 0 ;
8347 int res3 = 0 ;
8348 wxPoint temp4 ;
8349 wxSize temp5 ;
8350 long val6 ;
8351 int ecode6 = 0 ;
8352 bool temp7 = false ;
8353 PyObject * obj0 = 0 ;
8354 PyObject * obj1 = 0 ;
8355 PyObject * obj2 = 0 ;
8356 PyObject * obj3 = 0 ;
8357 PyObject * obj4 = 0 ;
8358 PyObject * obj5 = 0 ;
8359 PyObject * obj6 = 0 ;
8360 char * kwnames[] = {
8361 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8362 };
8363
8364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
8365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8366 if (!SWIG_IsOK(res1)) {
8367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StaticBitmap" "', expected argument " "1"" of type '" "wxWindow *""'");
8368 }
8369 arg1 = reinterpret_cast< wxWindow * >(argp1);
8370 if (obj1) {
8371 ecode2 = SWIG_AsVal_int(obj1, &val2);
8372 if (!SWIG_IsOK(ecode2)) {
8373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_StaticBitmap" "', expected argument " "2"" of type '" "int""'");
8374 }
8375 arg2 = static_cast< int >(val2);
8376 }
8377 if (obj2) {
8378 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
8379 if (!SWIG_IsOK(res3)) {
8380 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8381 }
8382 if (!argp3) {
8383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_StaticBitmap" "', expected argument " "3"" of type '" "wxBitmap const &""'");
8384 }
8385 arg3 = reinterpret_cast< wxBitmap * >(argp3);
8386 }
8387 if (obj3) {
8388 {
8389 arg4 = &temp4;
8390 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8391 }
8392 }
8393 if (obj4) {
8394 {
8395 arg5 = &temp5;
8396 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8397 }
8398 }
8399 if (obj5) {
8400 ecode6 = SWIG_AsVal_long(obj5, &val6);
8401 if (!SWIG_IsOK(ecode6)) {
8402 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_StaticBitmap" "', expected argument " "6"" of type '" "long""'");
8403 }
8404 arg6 = static_cast< long >(val6);
8405 }
8406 if (obj6) {
8407 {
8408 arg7 = wxString_in_helper(obj6);
8409 if (arg7 == NULL) SWIG_fail;
8410 temp7 = true;
8411 }
8412 }
8413 {
8414 if (!wxPyCheckForApp()) SWIG_fail;
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
8417 wxPyEndAllowThreads(__tstate);
8418 if (PyErr_Occurred()) SWIG_fail;
8419 }
8420 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_NEW | 0 );
8421 {
8422 if (temp7)
8423 delete arg7;
8424 }
8425 return resultobj;
8426 fail:
8427 {
8428 if (temp7)
8429 delete arg7;
8430 }
8431 return NULL;
8432 }
8433
8434
8435 SWIGINTERN PyObject *_wrap_new_PreStaticBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8436 PyObject *resultobj = 0;
8437 wxStaticBitmap *result = 0 ;
8438
8439 if (!SWIG_Python_UnpackTuple(args,"new_PreStaticBitmap",0,0,0)) SWIG_fail;
8440 {
8441 if (!wxPyCheckForApp()) SWIG_fail;
8442 PyThreadState* __tstate = wxPyBeginAllowThreads();
8443 result = (wxStaticBitmap *)new wxStaticBitmap();
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStaticBitmap, SWIG_POINTER_OWN | 0 );
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 SWIGINTERN PyObject *_wrap_StaticBitmap_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj = 0;
8456 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8457 wxWindow *arg2 = (wxWindow *) 0 ;
8458 int arg3 = (int) -1 ;
8459 wxBitmap const &arg4_defvalue = wxNullBitmap ;
8460 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
8461 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8462 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8463 wxSize const &arg6_defvalue = wxDefaultSize ;
8464 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8465 long arg7 = (long) 0 ;
8466 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
8467 wxString *arg8 = (wxString *) &arg8_defvalue ;
8468 bool result;
8469 void *argp1 = 0 ;
8470 int res1 = 0 ;
8471 void *argp2 = 0 ;
8472 int res2 = 0 ;
8473 int val3 ;
8474 int ecode3 = 0 ;
8475 void *argp4 = 0 ;
8476 int res4 = 0 ;
8477 wxPoint temp5 ;
8478 wxSize temp6 ;
8479 long val7 ;
8480 int ecode7 = 0 ;
8481 bool temp8 = false ;
8482 PyObject * obj0 = 0 ;
8483 PyObject * obj1 = 0 ;
8484 PyObject * obj2 = 0 ;
8485 PyObject * obj3 = 0 ;
8486 PyObject * obj4 = 0 ;
8487 PyObject * obj5 = 0 ;
8488 PyObject * obj6 = 0 ;
8489 PyObject * obj7 = 0 ;
8490 char * kwnames[] = {
8491 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
8492 };
8493
8494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8496 if (!SWIG_IsOK(res1)) {
8497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_Create" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8498 }
8499 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8500 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8501 if (!SWIG_IsOK(res2)) {
8502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8503 }
8504 arg2 = reinterpret_cast< wxWindow * >(argp2);
8505 if (obj2) {
8506 ecode3 = SWIG_AsVal_int(obj2, &val3);
8507 if (!SWIG_IsOK(ecode3)) {
8508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "StaticBitmap_Create" "', expected argument " "3"" of type '" "int""'");
8509 }
8510 arg3 = static_cast< int >(val3);
8511 }
8512 if (obj3) {
8513 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
8514 if (!SWIG_IsOK(res4)) {
8515 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8516 }
8517 if (!argp4) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_Create" "', expected argument " "4"" of type '" "wxBitmap const &""'");
8519 }
8520 arg4 = reinterpret_cast< wxBitmap * >(argp4);
8521 }
8522 if (obj4) {
8523 {
8524 arg5 = &temp5;
8525 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8526 }
8527 }
8528 if (obj5) {
8529 {
8530 arg6 = &temp6;
8531 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8532 }
8533 }
8534 if (obj6) {
8535 ecode7 = SWIG_AsVal_long(obj6, &val7);
8536 if (!SWIG_IsOK(ecode7)) {
8537 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "StaticBitmap_Create" "', expected argument " "7"" of type '" "long""'");
8538 }
8539 arg7 = static_cast< long >(val7);
8540 }
8541 if (obj7) {
8542 {
8543 arg8 = wxString_in_helper(obj7);
8544 if (arg8 == NULL) SWIG_fail;
8545 temp8 = true;
8546 }
8547 }
8548 {
8549 PyThreadState* __tstate = wxPyBeginAllowThreads();
8550 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
8551 wxPyEndAllowThreads(__tstate);
8552 if (PyErr_Occurred()) SWIG_fail;
8553 }
8554 {
8555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8556 }
8557 {
8558 if (temp8)
8559 delete arg8;
8560 }
8561 return resultobj;
8562 fail:
8563 {
8564 if (temp8)
8565 delete arg8;
8566 }
8567 return NULL;
8568 }
8569
8570
8571 SWIGINTERN PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8572 PyObject *resultobj = 0;
8573 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8574 wxBitmap result;
8575 void *argp1 = 0 ;
8576 int res1 = 0 ;
8577 PyObject *swig_obj[1] ;
8578
8579 if (!args) SWIG_fail;
8580 swig_obj[0] = args;
8581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8582 if (!SWIG_IsOK(res1)) {
8583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_GetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8584 }
8585 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 result = (arg1)->GetBitmap();
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 SWIGINTERN PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj = 0;
8601 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8602 wxBitmap *arg2 = 0 ;
8603 void *argp1 = 0 ;
8604 int res1 = 0 ;
8605 void *argp2 = 0 ;
8606 int res2 = 0 ;
8607 PyObject * obj0 = 0 ;
8608 PyObject * obj1 = 0 ;
8609 char * kwnames[] = {
8610 (char *) "self",(char *) "bitmap", NULL
8611 };
8612
8613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
8614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8615 if (!SWIG_IsOK(res1)) {
8616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8617 }
8618 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8620 if (!SWIG_IsOK(res2)) {
8621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8622 }
8623 if (!argp2) {
8624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8625 }
8626 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8627 {
8628 PyThreadState* __tstate = wxPyBeginAllowThreads();
8629 (arg1)->SetBitmap((wxBitmap const &)*arg2);
8630 wxPyEndAllowThreads(__tstate);
8631 if (PyErr_Occurred()) SWIG_fail;
8632 }
8633 resultobj = SWIG_Py_Void();
8634 return resultobj;
8635 fail:
8636 return NULL;
8637 }
8638
8639
8640 SWIGINTERN PyObject *_wrap_StaticBitmap_SetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8641 PyObject *resultobj = 0;
8642 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
8643 wxIcon *arg2 = 0 ;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 void *argp2 = 0 ;
8647 int res2 = 0 ;
8648 PyObject * obj0 = 0 ;
8649 PyObject * obj1 = 0 ;
8650 char * kwnames[] = {
8651 (char *) "self",(char *) "icon", NULL
8652 };
8653
8654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
8655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStaticBitmap, 0 | 0 );
8656 if (!SWIG_IsOK(res1)) {
8657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StaticBitmap_SetIcon" "', expected argument " "1"" of type '" "wxStaticBitmap *""'");
8658 }
8659 arg1 = reinterpret_cast< wxStaticBitmap * >(argp1);
8660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
8661 if (!SWIG_IsOK(res2)) {
8662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8663 }
8664 if (!argp2) {
8665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "StaticBitmap_SetIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
8666 }
8667 arg2 = reinterpret_cast< wxIcon * >(argp2);
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 (arg1)->SetIcon((wxIcon const &)*arg2);
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
8674 resultobj = SWIG_Py_Void();
8675 return resultobj;
8676 fail:
8677 return NULL;
8678 }
8679
8680
8681 SWIGINTERN PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj = 0;
8683 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
8684 SwigValueWrapper<wxVisualAttributes > result;
8685 int val1 ;
8686 int ecode1 = 0 ;
8687 PyObject * obj0 = 0 ;
8688 char * kwnames[] = {
8689 (char *) "variant", NULL
8690 };
8691
8692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
8693 if (obj0) {
8694 ecode1 = SWIG_AsVal_int(obj0, &val1);
8695 if (!SWIG_IsOK(ecode1)) {
8696 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StaticBitmap_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
8697 }
8698 arg1 = static_cast< wxWindowVariant >(val1);
8699 }
8700 {
8701 if (!wxPyCheckForApp()) SWIG_fail;
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = wxStaticBitmap::GetClassDefaultAttributes(arg1);
8704 wxPyEndAllowThreads(__tstate);
8705 if (PyErr_Occurred()) SWIG_fail;
8706 }
8707 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
8708 return resultobj;
8709 fail:
8710 return NULL;
8711 }
8712
8713
8714 SWIGINTERN PyObject *StaticBitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8715 PyObject *obj;
8716 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8717 SWIG_TypeNewClientData(SWIGTYPE_p_wxStaticBitmap, SWIG_NewClientData(obj));
8718 return SWIG_Py_Void();
8719 }
8720
8721 SWIGINTERN PyObject *StaticBitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8722 return SWIG_Python_InitShadowInstance(args);
8723 }
8724
8725 SWIGINTERN int ListBoxNameStr_set(PyObject *) {
8726 SWIG_Error(SWIG_AttributeError,"Variable ListBoxNameStr is read-only.");
8727 return 1;
8728 }
8729
8730
8731 SWIGINTERN PyObject *ListBoxNameStr_get(void) {
8732 PyObject *pyobj = 0;
8733
8734 {
8735 #if wxUSE_UNICODE
8736 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8737 #else
8738 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
8739 #endif
8740 }
8741 return pyobj;
8742 }
8743
8744
8745 SWIGINTERN PyObject *_wrap_new_ListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8746 PyObject *resultobj = 0;
8747 wxWindow *arg1 = (wxWindow *) 0 ;
8748 int arg2 = (int) -1 ;
8749 wxPoint const &arg3_defvalue = wxDefaultPosition ;
8750 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
8751 wxSize const &arg4_defvalue = wxDefaultSize ;
8752 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
8753 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
8754 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
8755 long arg6 = (long) 0 ;
8756 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8757 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8758 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
8759 wxString *arg8 = (wxString *) &arg8_defvalue ;
8760 wxListBox *result = 0 ;
8761 void *argp1 = 0 ;
8762 int res1 = 0 ;
8763 int val2 ;
8764 int ecode2 = 0 ;
8765 wxPoint temp3 ;
8766 wxSize temp4 ;
8767 bool temp5 = false ;
8768 long val6 ;
8769 int ecode6 = 0 ;
8770 void *argp7 = 0 ;
8771 int res7 = 0 ;
8772 bool temp8 = false ;
8773 PyObject * obj0 = 0 ;
8774 PyObject * obj1 = 0 ;
8775 PyObject * obj2 = 0 ;
8776 PyObject * obj3 = 0 ;
8777 PyObject * obj4 = 0 ;
8778 PyObject * obj5 = 0 ;
8779 PyObject * obj6 = 0 ;
8780 PyObject * obj7 = 0 ;
8781 char * kwnames[] = {
8782 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8783 };
8784
8785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
8786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
8787 if (!SWIG_IsOK(res1)) {
8788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
8789 }
8790 arg1 = reinterpret_cast< wxWindow * >(argp1);
8791 if (obj1) {
8792 ecode2 = SWIG_AsVal_int(obj1, &val2);
8793 if (!SWIG_IsOK(ecode2)) {
8794 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListBox" "', expected argument " "2"" of type '" "int""'");
8795 }
8796 arg2 = static_cast< int >(val2);
8797 }
8798 if (obj2) {
8799 {
8800 arg3 = &temp3;
8801 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
8802 }
8803 }
8804 if (obj3) {
8805 {
8806 arg4 = &temp4;
8807 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
8808 }
8809 }
8810 if (obj4) {
8811 {
8812 if (! PySequence_Check(obj4)) {
8813 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8814 SWIG_fail;
8815 }
8816 arg5 = new wxArrayString;
8817 temp5 = true;
8818 int i, len=PySequence_Length(obj4);
8819 for (i=0; i<len; i++) {
8820 PyObject* item = PySequence_GetItem(obj4, i);
8821 wxString* s = wxString_in_helper(item);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 arg5->Add(*s);
8824 delete s;
8825 Py_DECREF(item);
8826 }
8827 }
8828 }
8829 if (obj5) {
8830 ecode6 = SWIG_AsVal_long(obj5, &val6);
8831 if (!SWIG_IsOK(ecode6)) {
8832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ListBox" "', expected argument " "6"" of type '" "long""'");
8833 }
8834 arg6 = static_cast< long >(val6);
8835 }
8836 if (obj6) {
8837 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
8838 if (!SWIG_IsOK(res7)) {
8839 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8840 }
8841 if (!argp7) {
8842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
8843 }
8844 arg7 = reinterpret_cast< wxValidator * >(argp7);
8845 }
8846 if (obj7) {
8847 {
8848 arg8 = wxString_in_helper(obj7);
8849 if (arg8 == NULL) SWIG_fail;
8850 temp8 = true;
8851 }
8852 }
8853 {
8854 if (!wxPyCheckForApp()) SWIG_fail;
8855 PyThreadState* __tstate = wxPyBeginAllowThreads();
8856 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8857 wxPyEndAllowThreads(__tstate);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 }
8860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_NEW | 0 );
8861 {
8862 if (temp5) delete arg5;
8863 }
8864 {
8865 if (temp8)
8866 delete arg8;
8867 }
8868 return resultobj;
8869 fail:
8870 {
8871 if (temp5) delete arg5;
8872 }
8873 {
8874 if (temp8)
8875 delete arg8;
8876 }
8877 return NULL;
8878 }
8879
8880
8881 SWIGINTERN PyObject *_wrap_new_PreListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8882 PyObject *resultobj = 0;
8883 wxListBox *result = 0 ;
8884
8885 if (!SWIG_Python_UnpackTuple(args,"new_PreListBox",0,0,0)) SWIG_fail;
8886 {
8887 if (!wxPyCheckForApp()) SWIG_fail;
8888 PyThreadState* __tstate = wxPyBeginAllowThreads();
8889 result = (wxListBox *)new wxListBox();
8890 wxPyEndAllowThreads(__tstate);
8891 if (PyErr_Occurred()) SWIG_fail;
8892 }
8893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListBox, SWIG_POINTER_OWN | 0 );
8894 return resultobj;
8895 fail:
8896 return NULL;
8897 }
8898
8899
8900 SWIGINTERN PyObject *_wrap_ListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8901 PyObject *resultobj = 0;
8902 wxListBox *arg1 = (wxListBox *) 0 ;
8903 wxWindow *arg2 = (wxWindow *) 0 ;
8904 int arg3 = (int) -1 ;
8905 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8906 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8907 wxSize const &arg5_defvalue = wxDefaultSize ;
8908 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8909 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
8910 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
8911 long arg7 = (long) 0 ;
8912 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8913 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8914 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
8915 wxString *arg9 = (wxString *) &arg9_defvalue ;
8916 bool result;
8917 void *argp1 = 0 ;
8918 int res1 = 0 ;
8919 void *argp2 = 0 ;
8920 int res2 = 0 ;
8921 int val3 ;
8922 int ecode3 = 0 ;
8923 wxPoint temp4 ;
8924 wxSize temp5 ;
8925 bool temp6 = false ;
8926 long val7 ;
8927 int ecode7 = 0 ;
8928 void *argp8 = 0 ;
8929 int res8 = 0 ;
8930 bool temp9 = false ;
8931 PyObject * obj0 = 0 ;
8932 PyObject * obj1 = 0 ;
8933 PyObject * obj2 = 0 ;
8934 PyObject * obj3 = 0 ;
8935 PyObject * obj4 = 0 ;
8936 PyObject * obj5 = 0 ;
8937 PyObject * obj6 = 0 ;
8938 PyObject * obj7 = 0 ;
8939 PyObject * obj8 = 0 ;
8940 char * kwnames[] = {
8941 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
8942 };
8943
8944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
8945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
8946 if (!SWIG_IsOK(res1)) {
8947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Create" "', expected argument " "1"" of type '" "wxListBox *""'");
8948 }
8949 arg1 = reinterpret_cast< wxListBox * >(argp1);
8950 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
8951 if (!SWIG_IsOK(res2)) {
8952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
8953 }
8954 arg2 = reinterpret_cast< wxWindow * >(argp2);
8955 if (obj2) {
8956 ecode3 = SWIG_AsVal_int(obj2, &val3);
8957 if (!SWIG_IsOK(ecode3)) {
8958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Create" "', expected argument " "3"" of type '" "int""'");
8959 }
8960 arg3 = static_cast< int >(val3);
8961 }
8962 if (obj3) {
8963 {
8964 arg4 = &temp4;
8965 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8966 }
8967 }
8968 if (obj4) {
8969 {
8970 arg5 = &temp5;
8971 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8972 }
8973 }
8974 if (obj5) {
8975 {
8976 if (! PySequence_Check(obj5)) {
8977 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
8978 SWIG_fail;
8979 }
8980 arg6 = new wxArrayString;
8981 temp6 = true;
8982 int i, len=PySequence_Length(obj5);
8983 for (i=0; i<len; i++) {
8984 PyObject* item = PySequence_GetItem(obj5, i);
8985 wxString* s = wxString_in_helper(item);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 arg6->Add(*s);
8988 delete s;
8989 Py_DECREF(item);
8990 }
8991 }
8992 }
8993 if (obj6) {
8994 ecode7 = SWIG_AsVal_long(obj6, &val7);
8995 if (!SWIG_IsOK(ecode7)) {
8996 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ListBox_Create" "', expected argument " "7"" of type '" "long""'");
8997 }
8998 arg7 = static_cast< long >(val7);
8999 }
9000 if (obj7) {
9001 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
9002 if (!SWIG_IsOK(res8)) {
9003 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9004 }
9005 if (!argp8) {
9006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
9007 }
9008 arg8 = reinterpret_cast< wxValidator * >(argp8);
9009 }
9010 if (obj8) {
9011 {
9012 arg9 = wxString_in_helper(obj8);
9013 if (arg9 == NULL) SWIG_fail;
9014 temp9 = true;
9015 }
9016 }
9017 {
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
9020 wxPyEndAllowThreads(__tstate);
9021 if (PyErr_Occurred()) SWIG_fail;
9022 }
9023 {
9024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9025 }
9026 {
9027 if (temp6) delete arg6;
9028 }
9029 {
9030 if (temp9)
9031 delete arg9;
9032 }
9033 return resultobj;
9034 fail:
9035 {
9036 if (temp6) delete arg6;
9037 }
9038 {
9039 if (temp9)
9040 delete arg9;
9041 }
9042 return NULL;
9043 }
9044
9045
9046 SWIGINTERN PyObject *_wrap_ListBox_Insert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj = 0;
9048 wxListBox *arg1 = (wxListBox *) 0 ;
9049 wxString *arg2 = 0 ;
9050 int arg3 ;
9051 PyObject *arg4 = (PyObject *) NULL ;
9052 void *argp1 = 0 ;
9053 int res1 = 0 ;
9054 bool temp2 = false ;
9055 int val3 ;
9056 int ecode3 = 0 ;
9057 PyObject * obj0 = 0 ;
9058 PyObject * obj1 = 0 ;
9059 PyObject * obj2 = 0 ;
9060 PyObject * obj3 = 0 ;
9061 char * kwnames[] = {
9062 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
9063 };
9064
9065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9067 if (!SWIG_IsOK(res1)) {
9068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Insert" "', expected argument " "1"" of type '" "wxListBox *""'");
9069 }
9070 arg1 = reinterpret_cast< wxListBox * >(argp1);
9071 {
9072 arg2 = wxString_in_helper(obj1);
9073 if (arg2 == NULL) SWIG_fail;
9074 temp2 = true;
9075 }
9076 ecode3 = SWIG_AsVal_int(obj2, &val3);
9077 if (!SWIG_IsOK(ecode3)) {
9078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_Insert" "', expected argument " "3"" of type '" "int""'");
9079 }
9080 arg3 = static_cast< int >(val3);
9081 if (obj3) {
9082 arg4 = obj3;
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
9087 wxPyEndAllowThreads(__tstate);
9088 if (PyErr_Occurred()) SWIG_fail;
9089 }
9090 resultobj = SWIG_Py_Void();
9091 {
9092 if (temp2)
9093 delete arg2;
9094 }
9095 return resultobj;
9096 fail:
9097 {
9098 if (temp2)
9099 delete arg2;
9100 }
9101 return NULL;
9102 }
9103
9104
9105 SWIGINTERN PyObject *_wrap_ListBox_InsertItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj = 0;
9107 wxListBox *arg1 = (wxListBox *) 0 ;
9108 wxArrayString *arg2 = 0 ;
9109 unsigned int arg3 ;
9110 void *argp1 = 0 ;
9111 int res1 = 0 ;
9112 bool temp2 = false ;
9113 unsigned int val3 ;
9114 int ecode3 = 0 ;
9115 PyObject * obj0 = 0 ;
9116 PyObject * obj1 = 0 ;
9117 PyObject * obj2 = 0 ;
9118 char * kwnames[] = {
9119 (char *) "self",(char *) "items",(char *) "pos", NULL
9120 };
9121
9122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9124 if (!SWIG_IsOK(res1)) {
9125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_InsertItems" "', expected argument " "1"" of type '" "wxListBox *""'");
9126 }
9127 arg1 = reinterpret_cast< wxListBox * >(argp1);
9128 {
9129 if (! PySequence_Check(obj1)) {
9130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9131 SWIG_fail;
9132 }
9133 arg2 = new wxArrayString;
9134 temp2 = true;
9135 int i, len=PySequence_Length(obj1);
9136 for (i=0; i<len; i++) {
9137 PyObject* item = PySequence_GetItem(obj1, i);
9138 wxString* s = wxString_in_helper(item);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 arg2->Add(*s);
9141 delete s;
9142 Py_DECREF(item);
9143 }
9144 }
9145 ecode3 = SWIG_AsVal_unsigned_SS_int(obj2, &val3);
9146 if (!SWIG_IsOK(ecode3)) {
9147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_InsertItems" "', expected argument " "3"" of type '" "unsigned int""'");
9148 }
9149 arg3 = static_cast< unsigned int >(val3);
9150 {
9151 PyThreadState* __tstate = wxPyBeginAllowThreads();
9152 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 resultobj = SWIG_Py_Void();
9157 {
9158 if (temp2) delete arg2;
9159 }
9160 return resultobj;
9161 fail:
9162 {
9163 if (temp2) delete arg2;
9164 }
9165 return NULL;
9166 }
9167
9168
9169 SWIGINTERN PyObject *_wrap_ListBox_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9170 PyObject *resultobj = 0;
9171 wxListBox *arg1 = (wxListBox *) 0 ;
9172 wxArrayString *arg2 = 0 ;
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 bool temp2 = false ;
9176 PyObject * obj0 = 0 ;
9177 PyObject * obj1 = 0 ;
9178 char * kwnames[] = {
9179 (char *) "self",(char *) "items", NULL
9180 };
9181
9182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) SWIG_fail;
9183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9184 if (!SWIG_IsOK(res1)) {
9185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Set" "', expected argument " "1"" of type '" "wxListBox *""'");
9186 }
9187 arg1 = reinterpret_cast< wxListBox * >(argp1);
9188 {
9189 if (! PySequence_Check(obj1)) {
9190 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
9191 SWIG_fail;
9192 }
9193 arg2 = new wxArrayString;
9194 temp2 = true;
9195 int i, len=PySequence_Length(obj1);
9196 for (i=0; i<len; i++) {
9197 PyObject* item = PySequence_GetItem(obj1, i);
9198 wxString* s = wxString_in_helper(item);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 arg2->Add(*s);
9201 delete s;
9202 Py_DECREF(item);
9203 }
9204 }
9205 {
9206 PyThreadState* __tstate = wxPyBeginAllowThreads();
9207 (arg1)->Set((wxArrayString const &)*arg2);
9208 wxPyEndAllowThreads(__tstate);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 resultobj = SWIG_Py_Void();
9212 {
9213 if (temp2) delete arg2;
9214 }
9215 return resultobj;
9216 fail:
9217 {
9218 if (temp2) delete arg2;
9219 }
9220 return NULL;
9221 }
9222
9223
9224 SWIGINTERN PyObject *_wrap_ListBox_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9225 PyObject *resultobj = 0;
9226 wxListBox *arg1 = (wxListBox *) 0 ;
9227 int arg2 ;
9228 bool result;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 int val2 ;
9232 int ecode2 = 0 ;
9233 PyObject * obj0 = 0 ;
9234 PyObject * obj1 = 0 ;
9235 char * kwnames[] = {
9236 (char *) "self",(char *) "n", NULL
9237 };
9238
9239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
9240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9241 if (!SWIG_IsOK(res1)) {
9242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSelected" "', expected argument " "1"" of type '" "wxListBox const *""'");
9243 }
9244 arg1 = reinterpret_cast< wxListBox * >(argp1);
9245 ecode2 = SWIG_AsVal_int(obj1, &val2);
9246 if (!SWIG_IsOK(ecode2)) {
9247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_IsSelected" "', expected argument " "2"" of type '" "int""'");
9248 }
9249 arg2 = static_cast< int >(val2);
9250 {
9251 PyThreadState* __tstate = wxPyBeginAllowThreads();
9252 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
9253 wxPyEndAllowThreads(__tstate);
9254 if (PyErr_Occurred()) SWIG_fail;
9255 }
9256 {
9257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9258 }
9259 return resultobj;
9260 fail:
9261 return NULL;
9262 }
9263
9264
9265 SWIGINTERN PyObject *_wrap_ListBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9266 PyObject *resultobj = 0;
9267 wxListBox *arg1 = (wxListBox *) 0 ;
9268 int arg2 ;
9269 bool arg3 = (bool) true ;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 int val2 ;
9273 int ecode2 = 0 ;
9274 bool val3 ;
9275 int ecode3 = 0 ;
9276 PyObject * obj0 = 0 ;
9277 PyObject * obj1 = 0 ;
9278 PyObject * obj2 = 0 ;
9279 char * kwnames[] = {
9280 (char *) "self",(char *) "n",(char *) "select", NULL
9281 };
9282
9283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9285 if (!SWIG_IsOK(res1)) {
9286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9287 }
9288 arg1 = reinterpret_cast< wxListBox * >(argp1);
9289 ecode2 = SWIG_AsVal_int(obj1, &val2);
9290 if (!SWIG_IsOK(ecode2)) {
9291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
9292 }
9293 arg2 = static_cast< int >(val2);
9294 if (obj2) {
9295 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9296 if (!SWIG_IsOK(ecode3)) {
9297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetSelection" "', expected argument " "3"" of type '" "bool""'");
9298 }
9299 arg3 = static_cast< bool >(val3);
9300 }
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 (arg1)->SetSelection(arg2,arg3);
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_Py_Void();
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 SWIGINTERN PyObject *_wrap_ListBox_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9315 PyObject *resultobj = 0;
9316 wxListBox *arg1 = (wxListBox *) 0 ;
9317 int arg2 ;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 int val2 ;
9321 int ecode2 = 0 ;
9322 PyObject * obj0 = 0 ;
9323 PyObject * obj1 = 0 ;
9324 char * kwnames[] = {
9325 (char *) "self",(char *) "n", NULL
9326 };
9327
9328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) SWIG_fail;
9329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9330 if (!SWIG_IsOK(res1)) {
9331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Select" "', expected argument " "1"" of type '" "wxListBox *""'");
9332 }
9333 arg1 = reinterpret_cast< wxListBox * >(argp1);
9334 ecode2 = SWIG_AsVal_int(obj1, &val2);
9335 if (!SWIG_IsOK(ecode2)) {
9336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Select" "', expected argument " "2"" of type '" "int""'");
9337 }
9338 arg2 = static_cast< int >(val2);
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 (arg1)->Select(arg2);
9342 wxPyEndAllowThreads(__tstate);
9343 if (PyErr_Occurred()) SWIG_fail;
9344 }
9345 resultobj = SWIG_Py_Void();
9346 return resultobj;
9347 fail:
9348 return NULL;
9349 }
9350
9351
9352 SWIGINTERN PyObject *_wrap_ListBox_Deselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9353 PyObject *resultobj = 0;
9354 wxListBox *arg1 = (wxListBox *) 0 ;
9355 int arg2 ;
9356 void *argp1 = 0 ;
9357 int res1 = 0 ;
9358 int val2 ;
9359 int ecode2 = 0 ;
9360 PyObject * obj0 = 0 ;
9361 PyObject * obj1 = 0 ;
9362 char * kwnames[] = {
9363 (char *) "self",(char *) "n", NULL
9364 };
9365
9366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) SWIG_fail;
9367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9368 if (!SWIG_IsOK(res1)) {
9369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_Deselect" "', expected argument " "1"" of type '" "wxListBox *""'");
9370 }
9371 arg1 = reinterpret_cast< wxListBox * >(argp1);
9372 ecode2 = SWIG_AsVal_int(obj1, &val2);
9373 if (!SWIG_IsOK(ecode2)) {
9374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_Deselect" "', expected argument " "2"" of type '" "int""'");
9375 }
9376 arg2 = static_cast< int >(val2);
9377 {
9378 PyThreadState* __tstate = wxPyBeginAllowThreads();
9379 (arg1)->Deselect(arg2);
9380 wxPyEndAllowThreads(__tstate);
9381 if (PyErr_Occurred()) SWIG_fail;
9382 }
9383 resultobj = SWIG_Py_Void();
9384 return resultobj;
9385 fail:
9386 return NULL;
9387 }
9388
9389
9390 SWIGINTERN PyObject *_wrap_ListBox_DeselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9391 PyObject *resultobj = 0;
9392 wxListBox *arg1 = (wxListBox *) 0 ;
9393 int arg2 = (int) -1 ;
9394 void *argp1 = 0 ;
9395 int res1 = 0 ;
9396 int val2 ;
9397 int ecode2 = 0 ;
9398 PyObject * obj0 = 0 ;
9399 PyObject * obj1 = 0 ;
9400 char * kwnames[] = {
9401 (char *) "self",(char *) "itemToLeaveSelected", NULL
9402 };
9403
9404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) SWIG_fail;
9405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9406 if (!SWIG_IsOK(res1)) {
9407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_DeselectAll" "', expected argument " "1"" of type '" "wxListBox *""'");
9408 }
9409 arg1 = reinterpret_cast< wxListBox * >(argp1);
9410 if (obj1) {
9411 ecode2 = SWIG_AsVal_int(obj1, &val2);
9412 if (!SWIG_IsOK(ecode2)) {
9413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_DeselectAll" "', expected argument " "2"" of type '" "int""'");
9414 }
9415 arg2 = static_cast< int >(val2);
9416 }
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 (arg1)->DeselectAll(arg2);
9420 wxPyEndAllowThreads(__tstate);
9421 if (PyErr_Occurred()) SWIG_fail;
9422 }
9423 resultobj = SWIG_Py_Void();
9424 return resultobj;
9425 fail:
9426 return NULL;
9427 }
9428
9429
9430 SWIGINTERN PyObject *_wrap_ListBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9431 PyObject *resultobj = 0;
9432 wxListBox *arg1 = (wxListBox *) 0 ;
9433 wxString *arg2 = 0 ;
9434 bool arg3 = (bool) true ;
9435 bool result;
9436 void *argp1 = 0 ;
9437 int res1 = 0 ;
9438 bool temp2 = false ;
9439 bool val3 ;
9440 int ecode3 = 0 ;
9441 PyObject * obj0 = 0 ;
9442 PyObject * obj1 = 0 ;
9443 PyObject * obj2 = 0 ;
9444 char * kwnames[] = {
9445 (char *) "self",(char *) "s",(char *) "select", NULL
9446 };
9447
9448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9450 if (!SWIG_IsOK(res1)) {
9451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetStringSelection" "', expected argument " "1"" of type '" "wxListBox *""'");
9452 }
9453 arg1 = reinterpret_cast< wxListBox * >(argp1);
9454 {
9455 arg2 = wxString_in_helper(obj1);
9456 if (arg2 == NULL) SWIG_fail;
9457 temp2 = true;
9458 }
9459 if (obj2) {
9460 ecode3 = SWIG_AsVal_bool(obj2, &val3);
9461 if (!SWIG_IsOK(ecode3)) {
9462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListBox_SetStringSelection" "', expected argument " "3"" of type '" "bool""'");
9463 }
9464 arg3 = static_cast< bool >(val3);
9465 }
9466 {
9467 PyThreadState* __tstate = wxPyBeginAllowThreads();
9468 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 {
9473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9474 }
9475 {
9476 if (temp2)
9477 delete arg2;
9478 }
9479 return resultobj;
9480 fail:
9481 {
9482 if (temp2)
9483 delete arg2;
9484 }
9485 return NULL;
9486 }
9487
9488
9489 SWIGINTERN PyObject *_wrap_ListBox_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9490 PyObject *resultobj = 0;
9491 wxListBox *arg1 = (wxListBox *) 0 ;
9492 PyObject *result = 0 ;
9493 void *argp1 = 0 ;
9494 int res1 = 0 ;
9495 PyObject *swig_obj[1] ;
9496
9497 if (!args) SWIG_fail;
9498 swig_obj[0] = args;
9499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_GetSelections" "', expected argument " "1"" of type '" "wxListBox *""'");
9502 }
9503 arg1 = reinterpret_cast< wxListBox * >(argp1);
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (PyObject *)wxListBox_GetSelections(arg1);
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 resultobj = result;
9511 return resultobj;
9512 fail:
9513 return NULL;
9514 }
9515
9516
9517 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9518 PyObject *resultobj = 0;
9519 wxListBox *arg1 = (wxListBox *) 0 ;
9520 int arg2 ;
9521 void *argp1 = 0 ;
9522 int res1 = 0 ;
9523 int val2 ;
9524 int ecode2 = 0 ;
9525 PyObject * obj0 = 0 ;
9526 PyObject * obj1 = 0 ;
9527 char * kwnames[] = {
9528 (char *) "self",(char *) "n", NULL
9529 };
9530
9531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) SWIG_fail;
9532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9533 if (!SWIG_IsOK(res1)) {
9534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItem" "', expected argument " "1"" of type '" "wxListBox *""'");
9535 }
9536 arg1 = reinterpret_cast< wxListBox * >(argp1);
9537 ecode2 = SWIG_AsVal_int(obj1, &val2);
9538 if (!SWIG_IsOK(ecode2)) {
9539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetFirstItem" "', expected argument " "2"" of type '" "int""'");
9540 }
9541 arg2 = static_cast< int >(val2);
9542 {
9543 PyThreadState* __tstate = wxPyBeginAllowThreads();
9544 (arg1)->SetFirstItem(arg2);
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 resultobj = SWIG_Py_Void();
9549 return resultobj;
9550 fail:
9551 return NULL;
9552 }
9553
9554
9555 SWIGINTERN PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9556 PyObject *resultobj = 0;
9557 wxListBox *arg1 = (wxListBox *) 0 ;
9558 wxString *arg2 = 0 ;
9559 void *argp1 = 0 ;
9560 int res1 = 0 ;
9561 bool temp2 = false ;
9562 PyObject * obj0 = 0 ;
9563 PyObject * obj1 = 0 ;
9564 char * kwnames[] = {
9565 (char *) "self",(char *) "s", NULL
9566 };
9567
9568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) SWIG_fail;
9569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9570 if (!SWIG_IsOK(res1)) {
9571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetFirstItemStr" "', expected argument " "1"" of type '" "wxListBox *""'");
9572 }
9573 arg1 = reinterpret_cast< wxListBox * >(argp1);
9574 {
9575 arg2 = wxString_in_helper(obj1);
9576 if (arg2 == NULL) SWIG_fail;
9577 temp2 = true;
9578 }
9579 {
9580 PyThreadState* __tstate = wxPyBeginAllowThreads();
9581 (arg1)->SetFirstItem((wxString const &)*arg2);
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 resultobj = SWIG_Py_Void();
9586 {
9587 if (temp2)
9588 delete arg2;
9589 }
9590 return resultobj;
9591 fail:
9592 {
9593 if (temp2)
9594 delete arg2;
9595 }
9596 return NULL;
9597 }
9598
9599
9600 SWIGINTERN PyObject *_wrap_ListBox_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj = 0;
9602 wxListBox *arg1 = (wxListBox *) 0 ;
9603 int arg2 ;
9604 void *argp1 = 0 ;
9605 int res1 = 0 ;
9606 int val2 ;
9607 int ecode2 = 0 ;
9608 PyObject * obj0 = 0 ;
9609 PyObject * obj1 = 0 ;
9610 char * kwnames[] = {
9611 (char *) "self",(char *) "n", NULL
9612 };
9613
9614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9616 if (!SWIG_IsOK(res1)) {
9617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_EnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9618 }
9619 arg1 = reinterpret_cast< wxListBox * >(argp1);
9620 ecode2 = SWIG_AsVal_int(obj1, &val2);
9621 if (!SWIG_IsOK(ecode2)) {
9622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_EnsureVisible" "', expected argument " "2"" of type '" "int""'");
9623 }
9624 arg2 = static_cast< int >(val2);
9625 {
9626 PyThreadState* __tstate = wxPyBeginAllowThreads();
9627 (arg1)->EnsureVisible(arg2);
9628 wxPyEndAllowThreads(__tstate);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 resultobj = SWIG_Py_Void();
9632 return resultobj;
9633 fail:
9634 return NULL;
9635 }
9636
9637
9638 SWIGINTERN PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj = 0;
9640 wxListBox *arg1 = (wxListBox *) 0 ;
9641 wxString *arg2 = 0 ;
9642 void *argp1 = 0 ;
9643 int res1 = 0 ;
9644 bool temp2 = false ;
9645 PyObject * obj0 = 0 ;
9646 PyObject * obj1 = 0 ;
9647 char * kwnames[] = {
9648 (char *) "self",(char *) "s", NULL
9649 };
9650
9651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
9652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9653 if (!SWIG_IsOK(res1)) {
9654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_AppendAndEnsureVisible" "', expected argument " "1"" of type '" "wxListBox *""'");
9655 }
9656 arg1 = reinterpret_cast< wxListBox * >(argp1);
9657 {
9658 arg2 = wxString_in_helper(obj1);
9659 if (arg2 == NULL) SWIG_fail;
9660 temp2 = true;
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 resultobj = SWIG_Py_Void();
9669 {
9670 if (temp2)
9671 delete arg2;
9672 }
9673 return resultobj;
9674 fail:
9675 {
9676 if (temp2)
9677 delete arg2;
9678 }
9679 return NULL;
9680 }
9681
9682
9683 SWIGINTERN PyObject *_wrap_ListBox_IsSorted(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9684 PyObject *resultobj = 0;
9685 wxListBox *arg1 = (wxListBox *) 0 ;
9686 bool result;
9687 void *argp1 = 0 ;
9688 int res1 = 0 ;
9689 PyObject *swig_obj[1] ;
9690
9691 if (!args) SWIG_fail;
9692 swig_obj[0] = args;
9693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9694 if (!SWIG_IsOK(res1)) {
9695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_IsSorted" "', expected argument " "1"" of type '" "wxListBox const *""'");
9696 }
9697 arg1 = reinterpret_cast< wxListBox * >(argp1);
9698 {
9699 PyThreadState* __tstate = wxPyBeginAllowThreads();
9700 result = (bool)((wxListBox const *)arg1)->IsSorted();
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 {
9705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9706 }
9707 return resultobj;
9708 fail:
9709 return NULL;
9710 }
9711
9712
9713 SWIGINTERN PyObject *_wrap_ListBox_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9714 PyObject *resultobj = 0;
9715 wxListBox *arg1 = (wxListBox *) 0 ;
9716 wxPoint *arg2 = 0 ;
9717 int result;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 wxPoint temp2 ;
9721 PyObject * obj0 = 0 ;
9722 PyObject * obj1 = 0 ;
9723 char * kwnames[] = {
9724 (char *) "self",(char *) "pt", NULL
9725 };
9726
9727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
9728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9729 if (!SWIG_IsOK(res1)) {
9730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_HitTest" "', expected argument " "1"" of type '" "wxListBox const *""'");
9731 }
9732 arg1 = reinterpret_cast< wxListBox * >(argp1);
9733 {
9734 arg2 = &temp2;
9735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9736 }
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 result = (int)((wxListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
9740 wxPyEndAllowThreads(__tstate);
9741 if (PyErr_Occurred()) SWIG_fail;
9742 }
9743 resultobj = SWIG_From_int(static_cast< int >(result));
9744 return resultobj;
9745 fail:
9746 return NULL;
9747 }
9748
9749
9750 SWIGINTERN PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj = 0;
9752 wxListBox *arg1 = (wxListBox *) 0 ;
9753 int arg2 ;
9754 wxColour *arg3 = 0 ;
9755 void *argp1 = 0 ;
9756 int res1 = 0 ;
9757 int val2 ;
9758 int ecode2 = 0 ;
9759 wxColour temp3 ;
9760 PyObject * obj0 = 0 ;
9761 PyObject * obj1 = 0 ;
9762 PyObject * obj2 = 0 ;
9763 char * kwnames[] = {
9764 (char *) "self",(char *) "item",(char *) "c", NULL
9765 };
9766
9767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9769 if (!SWIG_IsOK(res1)) {
9770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9771 }
9772 arg1 = reinterpret_cast< wxListBox * >(argp1);
9773 ecode2 = SWIG_AsVal_int(obj1, &val2);
9774 if (!SWIG_IsOK(ecode2)) {
9775 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemForegroundColour" "', expected argument " "2"" of type '" "int""'");
9776 }
9777 arg2 = static_cast< int >(val2);
9778 {
9779 arg3 = &temp3;
9780 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9781 }
9782 {
9783 PyThreadState* __tstate = wxPyBeginAllowThreads();
9784 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
9785 wxPyEndAllowThreads(__tstate);
9786 if (PyErr_Occurred()) SWIG_fail;
9787 }
9788 resultobj = SWIG_Py_Void();
9789 return resultobj;
9790 fail:
9791 return NULL;
9792 }
9793
9794
9795 SWIGINTERN PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj = 0;
9797 wxListBox *arg1 = (wxListBox *) 0 ;
9798 int arg2 ;
9799 wxColour *arg3 = 0 ;
9800 void *argp1 = 0 ;
9801 int res1 = 0 ;
9802 int val2 ;
9803 int ecode2 = 0 ;
9804 wxColour temp3 ;
9805 PyObject * obj0 = 0 ;
9806 PyObject * obj1 = 0 ;
9807 PyObject * obj2 = 0 ;
9808 char * kwnames[] = {
9809 (char *) "self",(char *) "item",(char *) "c", NULL
9810 };
9811
9812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxListBox *""'");
9816 }
9817 arg1 = reinterpret_cast< wxListBox * >(argp1);
9818 ecode2 = SWIG_AsVal_int(obj1, &val2);
9819 if (!SWIG_IsOK(ecode2)) {
9820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemBackgroundColour" "', expected argument " "2"" of type '" "int""'");
9821 }
9822 arg2 = static_cast< int >(val2);
9823 {
9824 arg3 = &temp3;
9825 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9826 }
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
9830 wxPyEndAllowThreads(__tstate);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 resultobj = SWIG_Py_Void();
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 SWIGINTERN PyObject *_wrap_ListBox_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj = 0;
9842 wxListBox *arg1 = (wxListBox *) 0 ;
9843 int arg2 ;
9844 wxFont *arg3 = 0 ;
9845 void *argp1 = 0 ;
9846 int res1 = 0 ;
9847 int val2 ;
9848 int ecode2 = 0 ;
9849 void *argp3 = 0 ;
9850 int res3 = 0 ;
9851 PyObject * obj0 = 0 ;
9852 PyObject * obj1 = 0 ;
9853 PyObject * obj2 = 0 ;
9854 char * kwnames[] = {
9855 (char *) "self",(char *) "item",(char *) "f", NULL
9856 };
9857
9858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListBox, 0 | 0 );
9860 if (!SWIG_IsOK(res1)) {
9861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListBox_SetItemFont" "', expected argument " "1"" of type '" "wxListBox *""'");
9862 }
9863 arg1 = reinterpret_cast< wxListBox * >(argp1);
9864 ecode2 = SWIG_AsVal_int(obj1, &val2);
9865 if (!SWIG_IsOK(ecode2)) {
9866 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListBox_SetItemFont" "', expected argument " "2"" of type '" "int""'");
9867 }
9868 arg2 = static_cast< int >(val2);
9869 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
9870 if (!SWIG_IsOK(res3)) {
9871 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9872 }
9873 if (!argp3) {
9874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListBox_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
9875 }
9876 arg3 = reinterpret_cast< wxFont * >(argp3);
9877 {
9878 PyThreadState* __tstate = wxPyBeginAllowThreads();
9879 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
9880 wxPyEndAllowThreads(__tstate);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
9883 resultobj = SWIG_Py_Void();
9884 return resultobj;
9885 fail:
9886 return NULL;
9887 }
9888
9889
9890 SWIGINTERN PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9891 PyObject *resultobj = 0;
9892 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
9893 SwigValueWrapper<wxVisualAttributes > result;
9894 int val1 ;
9895 int ecode1 = 0 ;
9896 PyObject * obj0 = 0 ;
9897 char * kwnames[] = {
9898 (char *) "variant", NULL
9899 };
9900
9901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
9902 if (obj0) {
9903 ecode1 = SWIG_AsVal_int(obj0, &val1);
9904 if (!SWIG_IsOK(ecode1)) {
9905 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
9906 }
9907 arg1 = static_cast< wxWindowVariant >(val1);
9908 }
9909 {
9910 if (!wxPyCheckForApp()) SWIG_fail;
9911 PyThreadState* __tstate = wxPyBeginAllowThreads();
9912 result = wxListBox::GetClassDefaultAttributes(arg1);
9913 wxPyEndAllowThreads(__tstate);
9914 if (PyErr_Occurred()) SWIG_fail;
9915 }
9916 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
9917 return resultobj;
9918 fail:
9919 return NULL;
9920 }
9921
9922
9923 SWIGINTERN PyObject *ListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9924 PyObject *obj;
9925 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9926 SWIG_TypeNewClientData(SWIGTYPE_p_wxListBox, SWIG_NewClientData(obj));
9927 return SWIG_Py_Void();
9928 }
9929
9930 SWIGINTERN PyObject *ListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9931 return SWIG_Python_InitShadowInstance(args);
9932 }
9933
9934 SWIGINTERN PyObject *_wrap_new_CheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9935 PyObject *resultobj = 0;
9936 wxWindow *arg1 = (wxWindow *) 0 ;
9937 int arg2 = (int) -1 ;
9938 wxPoint const &arg3_defvalue = wxDefaultPosition ;
9939 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
9940 wxSize const &arg4_defvalue = wxDefaultSize ;
9941 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
9942 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
9943 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
9944 long arg6 = (long) 0 ;
9945 wxValidator const &arg7_defvalue = wxDefaultValidator ;
9946 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
9947 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
9948 wxString *arg8 = (wxString *) &arg8_defvalue ;
9949 wxCheckListBox *result = 0 ;
9950 void *argp1 = 0 ;
9951 int res1 = 0 ;
9952 int val2 ;
9953 int ecode2 = 0 ;
9954 wxPoint temp3 ;
9955 wxSize temp4 ;
9956 bool temp5 = false ;
9957 long val6 ;
9958 int ecode6 = 0 ;
9959 void *argp7 = 0 ;
9960 int res7 = 0 ;
9961 bool temp8 = false ;
9962 PyObject * obj0 = 0 ;
9963 PyObject * obj1 = 0 ;
9964 PyObject * obj2 = 0 ;
9965 PyObject * obj3 = 0 ;
9966 PyObject * obj4 = 0 ;
9967 PyObject * obj5 = 0 ;
9968 PyObject * obj6 = 0 ;
9969 PyObject * obj7 = 0 ;
9970 char * kwnames[] = {
9971 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
9972 };
9973
9974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
9975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
9976 if (!SWIG_IsOK(res1)) {
9977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CheckListBox" "', expected argument " "1"" of type '" "wxWindow *""'");
9978 }
9979 arg1 = reinterpret_cast< wxWindow * >(argp1);
9980 if (obj1) {
9981 ecode2 = SWIG_AsVal_int(obj1, &val2);
9982 if (!SWIG_IsOK(ecode2)) {
9983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_CheckListBox" "', expected argument " "2"" of type '" "int""'");
9984 }
9985 arg2 = static_cast< int >(val2);
9986 }
9987 if (obj2) {
9988 {
9989 arg3 = &temp3;
9990 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
9991 }
9992 }
9993 if (obj3) {
9994 {
9995 arg4 = &temp4;
9996 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
9997 }
9998 }
9999 if (obj4) {
10000 {
10001 if (! PySequence_Check(obj4)) {
10002 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10003 SWIG_fail;
10004 }
10005 arg5 = new wxArrayString;
10006 temp5 = true;
10007 int i, len=PySequence_Length(obj4);
10008 for (i=0; i<len; i++) {
10009 PyObject* item = PySequence_GetItem(obj4, i);
10010 wxString* s = wxString_in_helper(item);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 arg5->Add(*s);
10013 delete s;
10014 Py_DECREF(item);
10015 }
10016 }
10017 }
10018 if (obj5) {
10019 ecode6 = SWIG_AsVal_long(obj5, &val6);
10020 if (!SWIG_IsOK(ecode6)) {
10021 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_CheckListBox" "', expected argument " "6"" of type '" "long""'");
10022 }
10023 arg6 = static_cast< long >(val6);
10024 }
10025 if (obj6) {
10026 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
10027 if (!SWIG_IsOK(res7)) {
10028 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10029 }
10030 if (!argp7) {
10031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CheckListBox" "', expected argument " "7"" of type '" "wxValidator const &""'");
10032 }
10033 arg7 = reinterpret_cast< wxValidator * >(argp7);
10034 }
10035 if (obj7) {
10036 {
10037 arg8 = wxString_in_helper(obj7);
10038 if (arg8 == NULL) SWIG_fail;
10039 temp8 = true;
10040 }
10041 }
10042 {
10043 if (!wxPyCheckForApp()) SWIG_fail;
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_NEW | 0 );
10050 {
10051 if (temp5) delete arg5;
10052 }
10053 {
10054 if (temp8)
10055 delete arg8;
10056 }
10057 return resultobj;
10058 fail:
10059 {
10060 if (temp5) delete arg5;
10061 }
10062 {
10063 if (temp8)
10064 delete arg8;
10065 }
10066 return NULL;
10067 }
10068
10069
10070 SWIGINTERN PyObject *_wrap_new_PreCheckListBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10071 PyObject *resultobj = 0;
10072 wxCheckListBox *result = 0 ;
10073
10074 if (!SWIG_Python_UnpackTuple(args,"new_PreCheckListBox",0,0,0)) SWIG_fail;
10075 {
10076 if (!wxPyCheckForApp()) SWIG_fail;
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = (wxCheckListBox *)new wxCheckListBox();
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCheckListBox, SWIG_POINTER_OWN | 0 );
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 SWIGINTERN PyObject *_wrap_CheckListBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj = 0;
10091 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10092 wxWindow *arg2 = (wxWindow *) 0 ;
10093 int arg3 = (int) -1 ;
10094 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10095 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10096 wxSize const &arg5_defvalue = wxDefaultSize ;
10097 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10098 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
10099 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
10100 long arg7 = (long) 0 ;
10101 wxValidator const &arg8_defvalue = wxDefaultValidator ;
10102 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
10103 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
10104 wxString *arg9 = (wxString *) &arg9_defvalue ;
10105 bool result;
10106 void *argp1 = 0 ;
10107 int res1 = 0 ;
10108 void *argp2 = 0 ;
10109 int res2 = 0 ;
10110 int val3 ;
10111 int ecode3 = 0 ;
10112 wxPoint temp4 ;
10113 wxSize temp5 ;
10114 bool temp6 = false ;
10115 long val7 ;
10116 int ecode7 = 0 ;
10117 void *argp8 = 0 ;
10118 int res8 = 0 ;
10119 bool temp9 = false ;
10120 PyObject * obj0 = 0 ;
10121 PyObject * obj1 = 0 ;
10122 PyObject * obj2 = 0 ;
10123 PyObject * obj3 = 0 ;
10124 PyObject * obj4 = 0 ;
10125 PyObject * obj5 = 0 ;
10126 PyObject * obj6 = 0 ;
10127 PyObject * obj7 = 0 ;
10128 PyObject * obj8 = 0 ;
10129 char * kwnames[] = {
10130 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
10131 };
10132
10133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
10134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10135 if (!SWIG_IsOK(res1)) {
10136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Create" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10137 }
10138 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10139 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10140 if (!SWIG_IsOK(res2)) {
10141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CheckListBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
10142 }
10143 arg2 = reinterpret_cast< wxWindow * >(argp2);
10144 if (obj2) {
10145 ecode3 = SWIG_AsVal_int(obj2, &val3);
10146 if (!SWIG_IsOK(ecode3)) {
10147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Create" "', expected argument " "3"" of type '" "int""'");
10148 }
10149 arg3 = static_cast< int >(val3);
10150 }
10151 if (obj3) {
10152 {
10153 arg4 = &temp4;
10154 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10155 }
10156 }
10157 if (obj4) {
10158 {
10159 arg5 = &temp5;
10160 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10161 }
10162 }
10163 if (obj5) {
10164 {
10165 if (! PySequence_Check(obj5)) {
10166 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
10167 SWIG_fail;
10168 }
10169 arg6 = new wxArrayString;
10170 temp6 = true;
10171 int i, len=PySequence_Length(obj5);
10172 for (i=0; i<len; i++) {
10173 PyObject* item = PySequence_GetItem(obj5, i);
10174 wxString* s = wxString_in_helper(item);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 arg6->Add(*s);
10177 delete s;
10178 Py_DECREF(item);
10179 }
10180 }
10181 }
10182 if (obj6) {
10183 ecode7 = SWIG_AsVal_long(obj6, &val7);
10184 if (!SWIG_IsOK(ecode7)) {
10185 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "CheckListBox_Create" "', expected argument " "7"" of type '" "long""'");
10186 }
10187 arg7 = static_cast< long >(val7);
10188 }
10189 if (obj7) {
10190 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
10191 if (!SWIG_IsOK(res8)) {
10192 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10193 }
10194 if (!argp8) {
10195 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "CheckListBox_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
10196 }
10197 arg8 = reinterpret_cast< wxValidator * >(argp8);
10198 }
10199 if (obj8) {
10200 {
10201 arg9 = wxString_in_helper(obj8);
10202 if (arg9 == NULL) SWIG_fail;
10203 temp9 = true;
10204 }
10205 }
10206 {
10207 PyThreadState* __tstate = wxPyBeginAllowThreads();
10208 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
10209 wxPyEndAllowThreads(__tstate);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 {
10213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10214 }
10215 {
10216 if (temp6) delete arg6;
10217 }
10218 {
10219 if (temp9)
10220 delete arg9;
10221 }
10222 return resultobj;
10223 fail:
10224 {
10225 if (temp6) delete arg6;
10226 }
10227 {
10228 if (temp9)
10229 delete arg9;
10230 }
10231 return NULL;
10232 }
10233
10234
10235 SWIGINTERN PyObject *_wrap_CheckListBox_IsChecked(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10236 PyObject *resultobj = 0;
10237 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10238 unsigned int arg2 ;
10239 bool result;
10240 void *argp1 = 0 ;
10241 int res1 = 0 ;
10242 unsigned int val2 ;
10243 int ecode2 = 0 ;
10244 PyObject * obj0 = 0 ;
10245 PyObject * obj1 = 0 ;
10246 char * kwnames[] = {
10247 (char *) "self",(char *) "index", NULL
10248 };
10249
10250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) SWIG_fail;
10251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10252 if (!SWIG_IsOK(res1)) {
10253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_IsChecked" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10254 }
10255 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10256 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10257 if (!SWIG_IsOK(ecode2)) {
10258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_IsChecked" "', expected argument " "2"" of type '" "unsigned int""'");
10259 }
10260 arg2 = static_cast< unsigned int >(val2);
10261 {
10262 PyThreadState* __tstate = wxPyBeginAllowThreads();
10263 result = (bool)(arg1)->IsChecked(arg2);
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 {
10268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273 }
10274
10275
10276 SWIGINTERN PyObject *_wrap_CheckListBox_Check(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10277 PyObject *resultobj = 0;
10278 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
10279 unsigned int arg2 ;
10280 int arg3 = (int) true ;
10281 void *argp1 = 0 ;
10282 int res1 = 0 ;
10283 unsigned int val2 ;
10284 int ecode2 = 0 ;
10285 int val3 ;
10286 int ecode3 = 0 ;
10287 PyObject * obj0 = 0 ;
10288 PyObject * obj1 = 0 ;
10289 PyObject * obj2 = 0 ;
10290 char * kwnames[] = {
10291 (char *) "self",(char *) "index",(char *) "check", NULL
10292 };
10293
10294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCheckListBox, 0 | 0 );
10296 if (!SWIG_IsOK(res1)) {
10297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CheckListBox_Check" "', expected argument " "1"" of type '" "wxCheckListBox *""'");
10298 }
10299 arg1 = reinterpret_cast< wxCheckListBox * >(argp1);
10300 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
10301 if (!SWIG_IsOK(ecode2)) {
10302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CheckListBox_Check" "', expected argument " "2"" of type '" "unsigned int""'");
10303 }
10304 arg2 = static_cast< unsigned int >(val2);
10305 if (obj2) {
10306 ecode3 = SWIG_AsVal_int(obj2, &val3);
10307 if (!SWIG_IsOK(ecode3)) {
10308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CheckListBox_Check" "', expected argument " "3"" of type '" "int""'");
10309 }
10310 arg3 = static_cast< int >(val3);
10311 }
10312 {
10313 PyThreadState* __tstate = wxPyBeginAllowThreads();
10314 (arg1)->Check(arg2,arg3);
10315 wxPyEndAllowThreads(__tstate);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 }
10318 resultobj = SWIG_Py_Void();
10319 return resultobj;
10320 fail:
10321 return NULL;
10322 }
10323
10324
10325 SWIGINTERN PyObject *CheckListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10326 PyObject *obj;
10327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10328 SWIG_TypeNewClientData(SWIGTYPE_p_wxCheckListBox, SWIG_NewClientData(obj));
10329 return SWIG_Py_Void();
10330 }
10331
10332 SWIGINTERN PyObject *CheckListBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10333 return SWIG_Python_InitShadowInstance(args);
10334 }
10335
10336 SWIGINTERN int TextCtrlNameStr_set(PyObject *) {
10337 SWIG_Error(SWIG_AttributeError,"Variable TextCtrlNameStr is read-only.");
10338 return 1;
10339 }
10340
10341
10342 SWIGINTERN PyObject *TextCtrlNameStr_get(void) {
10343 PyObject *pyobj = 0;
10344
10345 {
10346 #if wxUSE_UNICODE
10347 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10348 #else
10349 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
10350 #endif
10351 }
10352 return pyobj;
10353 }
10354
10355
10356 SWIGINTERN PyObject *_wrap_new_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10357 PyObject *resultobj = 0;
10358 wxColour const &arg1_defvalue = wxNullColour ;
10359 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
10360 wxColour const &arg2_defvalue = wxNullColour ;
10361 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
10362 wxFont const &arg3_defvalue = wxNullFont ;
10363 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
10364 wxTextAttrAlignment arg4 = (wxTextAttrAlignment) wxTEXT_ALIGNMENT_DEFAULT ;
10365 wxTextAttr *result = 0 ;
10366 wxColour temp1 ;
10367 wxColour temp2 ;
10368 void *argp3 = 0 ;
10369 int res3 = 0 ;
10370 int val4 ;
10371 int ecode4 = 0 ;
10372 PyObject * obj0 = 0 ;
10373 PyObject * obj1 = 0 ;
10374 PyObject * obj2 = 0 ;
10375 PyObject * obj3 = 0 ;
10376 char * kwnames[] = {
10377 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
10378 };
10379
10380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10381 if (obj0) {
10382 {
10383 arg1 = &temp1;
10384 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
10385 }
10386 }
10387 if (obj1) {
10388 {
10389 arg2 = &temp2;
10390 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10391 }
10392 }
10393 if (obj2) {
10394 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
10395 if (!SWIG_IsOK(res3)) {
10396 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10397 }
10398 if (!argp3) {
10399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
10400 }
10401 arg3 = reinterpret_cast< wxFont * >(argp3);
10402 }
10403 if (obj3) {
10404 ecode4 = SWIG_AsVal_int(obj3, &val4);
10405 if (!SWIG_IsOK(ecode4)) {
10406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextAttr" "', expected argument " "4"" of type '" "wxTextAttrAlignment""'");
10407 }
10408 arg4 = static_cast< wxTextAttrAlignment >(val4);
10409 }
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,arg4);
10413 wxPyEndAllowThreads(__tstate);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 }
10416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_NEW | 0 );
10417 return resultobj;
10418 fail:
10419 return NULL;
10420 }
10421
10422
10423 SWIGINTERN PyObject *_wrap_delete_TextAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10424 PyObject *resultobj = 0;
10425 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10426 void *argp1 = 0 ;
10427 int res1 = 0 ;
10428 PyObject *swig_obj[1] ;
10429
10430 if (!args) SWIG_fail;
10431 swig_obj[0] = args;
10432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, SWIG_POINTER_DISOWN | 0 );
10433 if (!SWIG_IsOK(res1)) {
10434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TextAttr" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10435 }
10436 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 delete arg1;
10440
10441 wxPyEndAllowThreads(__tstate);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 resultobj = SWIG_Py_Void();
10445 return resultobj;
10446 fail:
10447 return NULL;
10448 }
10449
10450
10451 SWIGINTERN PyObject *_wrap_TextAttr_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10452 PyObject *resultobj = 0;
10453 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10454 void *argp1 = 0 ;
10455 int res1 = 0 ;
10456 PyObject *swig_obj[1] ;
10457
10458 if (!args) SWIG_fail;
10459 swig_obj[0] = args;
10460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10461 if (!SWIG_IsOK(res1)) {
10462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Init" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10463 }
10464 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10465 {
10466 PyThreadState* __tstate = wxPyBeginAllowThreads();
10467 (arg1)->Init();
10468 wxPyEndAllowThreads(__tstate);
10469 if (PyErr_Occurred()) SWIG_fail;
10470 }
10471 resultobj = SWIG_Py_Void();
10472 return resultobj;
10473 fail:
10474 return NULL;
10475 }
10476
10477
10478 SWIGINTERN PyObject *_wrap_TextAttr_Merge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj = 0;
10480 wxTextAttr *arg1 = 0 ;
10481 wxTextAttr *arg2 = 0 ;
10482 wxTextAttr result;
10483 void *argp1 = 0 ;
10484 int res1 = 0 ;
10485 void *argp2 = 0 ;
10486 int res2 = 0 ;
10487 PyObject * obj0 = 0 ;
10488 PyObject * obj1 = 0 ;
10489 char * kwnames[] = {
10490 (char *) "base",(char *) "overlay", NULL
10491 };
10492
10493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_Merge",kwnames,&obj0,&obj1)) SWIG_fail;
10494 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
10495 if (!SWIG_IsOK(res1)) {
10496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10497 }
10498 if (!argp1) {
10499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
10500 }
10501 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10502 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
10503 if (!SWIG_IsOK(res2)) {
10504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10505 }
10506 if (!argp2) {
10507 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Merge" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
10508 }
10509 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
10510 {
10511 PyThreadState* __tstate = wxPyBeginAllowThreads();
10512 result = wxTextAttr::Merge((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2);
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 SWIGINTERN PyObject *_wrap_TextAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10524 PyObject *resultobj = 0;
10525 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10526 wxColour *arg2 = 0 ;
10527 void *argp1 = 0 ;
10528 int res1 = 0 ;
10529 wxColour temp2 ;
10530 PyObject * obj0 = 0 ;
10531 PyObject * obj1 = 0 ;
10532 char * kwnames[] = {
10533 (char *) "self",(char *) "colText", NULL
10534 };
10535
10536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
10537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10538 if (!SWIG_IsOK(res1)) {
10539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTextColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10540 }
10541 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10542 {
10543 arg2 = &temp2;
10544 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10545 }
10546 {
10547 PyThreadState* __tstate = wxPyBeginAllowThreads();
10548 (arg1)->SetTextColour((wxColour const &)*arg2);
10549 wxPyEndAllowThreads(__tstate);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 }
10552 resultobj = SWIG_Py_Void();
10553 return resultobj;
10554 fail:
10555 return NULL;
10556 }
10557
10558
10559 SWIGINTERN PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10560 PyObject *resultobj = 0;
10561 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10562 wxColour *arg2 = 0 ;
10563 void *argp1 = 0 ;
10564 int res1 = 0 ;
10565 wxColour temp2 ;
10566 PyObject * obj0 = 0 ;
10567 PyObject * obj1 = 0 ;
10568 char * kwnames[] = {
10569 (char *) "self",(char *) "colBack", NULL
10570 };
10571
10572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
10573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10574 if (!SWIG_IsOK(res1)) {
10575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10576 }
10577 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10578 {
10579 arg2 = &temp2;
10580 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10581 }
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 resultobj = SWIG_Py_Void();
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 SWIGINTERN PyObject *_wrap_TextAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj = 0;
10597 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10598 wxFont *arg2 = 0 ;
10599 long arg3 = (long) wxTEXT_ATTR_FONT ;
10600 void *argp1 = 0 ;
10601 int res1 = 0 ;
10602 void *argp2 = 0 ;
10603 int res2 = 0 ;
10604 long val3 ;
10605 int ecode3 = 0 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 char * kwnames[] = {
10610 (char *) "self",(char *) "font",(char *) "flags", NULL
10611 };
10612
10613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10615 if (!SWIG_IsOK(res1)) {
10616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFont" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10617 }
10618 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10620 if (!SWIG_IsOK(res2)) {
10621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10622 }
10623 if (!argp2) {
10624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10625 }
10626 arg2 = reinterpret_cast< wxFont * >(argp2);
10627 if (obj2) {
10628 ecode3 = SWIG_AsVal_long(obj2, &val3);
10629 if (!SWIG_IsOK(ecode3)) {
10630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetFont" "', expected argument " "3"" of type '" "long""'");
10631 }
10632 arg3 = static_cast< long >(val3);
10633 }
10634 {
10635 PyThreadState* __tstate = wxPyBeginAllowThreads();
10636 (arg1)->SetFont((wxFont const &)*arg2,arg3);
10637 wxPyEndAllowThreads(__tstate);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 }
10640 resultobj = SWIG_Py_Void();
10641 return resultobj;
10642 fail:
10643 return NULL;
10644 }
10645
10646
10647 SWIGINTERN PyObject *_wrap_TextAttr_SetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj = 0;
10649 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10650 wxTextAttrAlignment arg2 ;
10651 void *argp1 = 0 ;
10652 int res1 = 0 ;
10653 int val2 ;
10654 int ecode2 = 0 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char * kwnames[] = {
10658 (char *) "self",(char *) "alignment", NULL
10659 };
10660
10661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) SWIG_fail;
10662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10663 if (!SWIG_IsOK(res1)) {
10664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetAlignment" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10665 }
10666 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10667 ecode2 = SWIG_AsVal_int(obj1, &val2);
10668 if (!SWIG_IsOK(ecode2)) {
10669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetAlignment" "', expected argument " "2"" of type '" "wxTextAttrAlignment""'");
10670 }
10671 arg2 = static_cast< wxTextAttrAlignment >(val2);
10672 {
10673 PyThreadState* __tstate = wxPyBeginAllowThreads();
10674 (arg1)->SetAlignment(arg2);
10675 wxPyEndAllowThreads(__tstate);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 }
10678 resultobj = SWIG_Py_Void();
10679 return resultobj;
10680 fail:
10681 return NULL;
10682 }
10683
10684
10685 SWIGINTERN PyObject *_wrap_TextAttr_SetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10686 PyObject *resultobj = 0;
10687 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10688 wxArrayInt *arg2 = 0 ;
10689 void *argp1 = 0 ;
10690 int res1 = 0 ;
10691 bool temp2 = false ;
10692 PyObject * obj0 = 0 ;
10693 PyObject * obj1 = 0 ;
10694 char * kwnames[] = {
10695 (char *) "self",(char *) "tabs", NULL
10696 };
10697
10698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) SWIG_fail;
10699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10700 if (!SWIG_IsOK(res1)) {
10701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetTabs" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10702 }
10703 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10704 {
10705 if (! PySequence_Check(obj1)) {
10706 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
10707 SWIG_fail;
10708 }
10709 arg2 = new wxArrayInt;
10710 temp2 = true;
10711 int i, len=PySequence_Length(obj1);
10712 for (i=0; i<len; i++) {
10713 PyObject* item = PySequence_GetItem(obj1, i);
10714 PyObject* number = PyNumber_Int(item);
10715 arg2->Add(PyInt_AS_LONG(number));
10716 Py_DECREF(item);
10717 Py_DECREF(number);
10718 }
10719 }
10720 {
10721 PyThreadState* __tstate = wxPyBeginAllowThreads();
10722 (arg1)->SetTabs((wxArrayInt const &)*arg2);
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 resultobj = SWIG_Py_Void();
10727 {
10728 if (temp2) delete arg2;
10729 }
10730 return resultobj;
10731 fail:
10732 {
10733 if (temp2) delete arg2;
10734 }
10735 return NULL;
10736 }
10737
10738
10739 SWIGINTERN PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10740 PyObject *resultobj = 0;
10741 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10742 int arg2 ;
10743 int arg3 = (int) 0 ;
10744 void *argp1 = 0 ;
10745 int res1 = 0 ;
10746 int val2 ;
10747 int ecode2 = 0 ;
10748 int val3 ;
10749 int ecode3 = 0 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 PyObject * obj2 = 0 ;
10753 char * kwnames[] = {
10754 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
10755 };
10756
10757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10759 if (!SWIG_IsOK(res1)) {
10760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10761 }
10762 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10763 ecode2 = SWIG_AsVal_int(obj1, &val2);
10764 if (!SWIG_IsOK(ecode2)) {
10765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "2"" of type '" "int""'");
10766 }
10767 arg2 = static_cast< int >(val2);
10768 if (obj2) {
10769 ecode3 = SWIG_AsVal_int(obj2, &val3);
10770 if (!SWIG_IsOK(ecode3)) {
10771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextAttr_SetLeftIndent" "', expected argument " "3"" of type '" "int""'");
10772 }
10773 arg3 = static_cast< int >(val3);
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 (arg1)->SetLeftIndent(arg2,arg3);
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 resultobj = SWIG_Py_Void();
10782 return resultobj;
10783 fail:
10784 return NULL;
10785 }
10786
10787
10788 SWIGINTERN PyObject *_wrap_TextAttr_SetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj = 0;
10790 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10791 int arg2 ;
10792 void *argp1 = 0 ;
10793 int res1 = 0 ;
10794 int val2 ;
10795 int ecode2 = 0 ;
10796 PyObject * obj0 = 0 ;
10797 PyObject * obj1 = 0 ;
10798 char * kwnames[] = {
10799 (char *) "self",(char *) "indent", NULL
10800 };
10801
10802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) SWIG_fail;
10803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10804 if (!SWIG_IsOK(res1)) {
10805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10806 }
10807 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10808 ecode2 = SWIG_AsVal_int(obj1, &val2);
10809 if (!SWIG_IsOK(ecode2)) {
10810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetRightIndent" "', expected argument " "2"" of type '" "int""'");
10811 }
10812 arg2 = static_cast< int >(val2);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->SetRightIndent(arg2);
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_Py_Void();
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 SWIGINTERN PyObject *_wrap_TextAttr_SetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10829 long arg2 ;
10830 void *argp1 = 0 ;
10831 int res1 = 0 ;
10832 long val2 ;
10833 int ecode2 = 0 ;
10834 PyObject * obj0 = 0 ;
10835 PyObject * obj1 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "flags", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_SetFlags" "', expected argument " "1"" of type '" "wxTextAttr *""'");
10844 }
10845 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10846 ecode2 = SWIG_AsVal_long(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_SetFlags" "', expected argument " "2"" of type '" "long""'");
10849 }
10850 arg2 = static_cast< long >(val2);
10851 {
10852 PyThreadState* __tstate = wxPyBeginAllowThreads();
10853 (arg1)->SetFlags(arg2);
10854 wxPyEndAllowThreads(__tstate);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 }
10857 resultobj = SWIG_Py_Void();
10858 return resultobj;
10859 fail:
10860 return NULL;
10861 }
10862
10863
10864 SWIGINTERN PyObject *_wrap_TextAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10865 PyObject *resultobj = 0;
10866 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10867 bool result;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 PyObject *swig_obj[1] ;
10871
10872 if (!args) SWIG_fail;
10873 swig_obj[0] = args;
10874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10875 if (!SWIG_IsOK(res1)) {
10876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10877 }
10878 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 {
10886 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10887 }
10888 return resultobj;
10889 fail:
10890 return NULL;
10891 }
10892
10893
10894 SWIGINTERN PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10895 PyObject *resultobj = 0;
10896 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10897 bool result;
10898 void *argp1 = 0 ;
10899 int res1 = 0 ;
10900 PyObject *swig_obj[1] ;
10901
10902 if (!args) SWIG_fail;
10903 swig_obj[0] = args;
10904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10905 if (!SWIG_IsOK(res1)) {
10906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10907 }
10908 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10909 {
10910 PyThreadState* __tstate = wxPyBeginAllowThreads();
10911 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 {
10916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10917 }
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 SWIGINTERN PyObject *_wrap_TextAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10925 PyObject *resultobj = 0;
10926 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10927 bool result;
10928 void *argp1 = 0 ;
10929 int res1 = 0 ;
10930 PyObject *swig_obj[1] ;
10931
10932 if (!args) SWIG_fail;
10933 swig_obj[0] = args;
10934 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10935 if (!SWIG_IsOK(res1)) {
10936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10937 }
10938 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 result = (bool)((wxTextAttr const *)arg1)->HasFont();
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 {
10946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10947 }
10948 return resultobj;
10949 fail:
10950 return NULL;
10951 }
10952
10953
10954 SWIGINTERN PyObject *_wrap_TextAttr_HasAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10955 PyObject *resultobj = 0;
10956 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10957 bool result;
10958 void *argp1 = 0 ;
10959 int res1 = 0 ;
10960 PyObject *swig_obj[1] ;
10961
10962 if (!args) SWIG_fail;
10963 swig_obj[0] = args;
10964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10965 if (!SWIG_IsOK(res1)) {
10966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10967 }
10968 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10969 {
10970 PyThreadState* __tstate = wxPyBeginAllowThreads();
10971 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 {
10976 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10977 }
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 SWIGINTERN PyObject *_wrap_TextAttr_HasTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10985 PyObject *resultobj = 0;
10986 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
10987 bool result;
10988 void *argp1 = 0 ;
10989 int res1 = 0 ;
10990 PyObject *swig_obj[1] ;
10991
10992 if (!args) SWIG_fail;
10993 swig_obj[0] = args;
10994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
10995 if (!SWIG_IsOK(res1)) {
10996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
10997 }
10998 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11007 }
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 SWIGINTERN PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11015 PyObject *resultobj = 0;
11016 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11017 bool result;
11018 void *argp1 = 0 ;
11019 int res1 = 0 ;
11020 PyObject *swig_obj[1] ;
11021
11022 if (!args) SWIG_fail;
11023 swig_obj[0] = args;
11024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11025 if (!SWIG_IsOK(res1)) {
11026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11027 }
11028 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11029 {
11030 PyThreadState* __tstate = wxPyBeginAllowThreads();
11031 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
11032 wxPyEndAllowThreads(__tstate);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 }
11035 {
11036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11037 }
11038 return resultobj;
11039 fail:
11040 return NULL;
11041 }
11042
11043
11044 SWIGINTERN PyObject *_wrap_TextAttr_HasRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11045 PyObject *resultobj = 0;
11046 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11047 bool result;
11048 void *argp1 = 0 ;
11049 int res1 = 0 ;
11050 PyObject *swig_obj[1] ;
11051
11052 if (!args) SWIG_fail;
11053 swig_obj[0] = args;
11054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11055 if (!SWIG_IsOK(res1)) {
11056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11057 }
11058 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
11062 wxPyEndAllowThreads(__tstate);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 }
11065 {
11066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11067 }
11068 return resultobj;
11069 fail:
11070 return NULL;
11071 }
11072
11073
11074 SWIGINTERN PyObject *_wrap_TextAttr_HasFlag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11075 PyObject *resultobj = 0;
11076 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11077 long arg2 ;
11078 bool result;
11079 void *argp1 = 0 ;
11080 int res1 = 0 ;
11081 long val2 ;
11082 int ecode2 = 0 ;
11083 PyObject * obj0 = 0 ;
11084 PyObject * obj1 = 0 ;
11085 char * kwnames[] = {
11086 (char *) "self",(char *) "flag", NULL
11087 };
11088
11089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) SWIG_fail;
11090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11091 if (!SWIG_IsOK(res1)) {
11092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_HasFlag" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11093 }
11094 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11095 ecode2 = SWIG_AsVal_long(obj1, &val2);
11096 if (!SWIG_IsOK(ecode2)) {
11097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextAttr_HasFlag" "', expected argument " "2"" of type '" "long""'");
11098 }
11099 arg2 = static_cast< long >(val2);
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 {
11107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11108 }
11109 return resultobj;
11110 fail:
11111 return NULL;
11112 }
11113
11114
11115 SWIGINTERN PyObject *_wrap_TextAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11116 PyObject *resultobj = 0;
11117 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11118 wxColour *result = 0 ;
11119 void *argp1 = 0 ;
11120 int res1 = 0 ;
11121 PyObject *swig_obj[1] ;
11122
11123 if (!args) SWIG_fail;
11124 swig_obj[0] = args;
11125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11126 if (!SWIG_IsOK(res1)) {
11127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTextColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11128 }
11129 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11130 {
11131 PyThreadState* __tstate = wxPyBeginAllowThreads();
11132 {
11133 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
11134 result = (wxColour *) &_result_ref;
11135 }
11136 wxPyEndAllowThreads(__tstate);
11137 if (PyErr_Occurred()) SWIG_fail;
11138 }
11139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11140 return resultobj;
11141 fail:
11142 return NULL;
11143 }
11144
11145
11146 SWIGINTERN PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11147 PyObject *resultobj = 0;
11148 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11149 wxColour *result = 0 ;
11150 void *argp1 = 0 ;
11151 int res1 = 0 ;
11152 PyObject *swig_obj[1] ;
11153
11154 if (!args) SWIG_fail;
11155 swig_obj[0] = args;
11156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11157 if (!SWIG_IsOK(res1)) {
11158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11159 }
11160 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 {
11164 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
11165 result = (wxColour *) &_result_ref;
11166 }
11167 wxPyEndAllowThreads(__tstate);
11168 if (PyErr_Occurred()) SWIG_fail;
11169 }
11170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
11171 return resultobj;
11172 fail:
11173 return NULL;
11174 }
11175
11176
11177 SWIGINTERN PyObject *_wrap_TextAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11178 PyObject *resultobj = 0;
11179 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11180 wxFont *result = 0 ;
11181 void *argp1 = 0 ;
11182 int res1 = 0 ;
11183 PyObject *swig_obj[1] ;
11184
11185 if (!args) SWIG_fail;
11186 swig_obj[0] = args;
11187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11188 if (!SWIG_IsOK(res1)) {
11189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFont" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11190 }
11191 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11192 {
11193 PyThreadState* __tstate = wxPyBeginAllowThreads();
11194 {
11195 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
11196 result = (wxFont *) &_result_ref;
11197 }
11198 wxPyEndAllowThreads(__tstate);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 }
11201 {
11202 wxFont* resultptr = new wxFont(*result);
11203 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
11204 }
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 SWIGINTERN PyObject *_wrap_TextAttr_GetAlignment(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11212 PyObject *resultobj = 0;
11213 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11214 wxTextAttrAlignment result;
11215 void *argp1 = 0 ;
11216 int res1 = 0 ;
11217 PyObject *swig_obj[1] ;
11218
11219 if (!args) SWIG_fail;
11220 swig_obj[0] = args;
11221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11222 if (!SWIG_IsOK(res1)) {
11223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetAlignment" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11224 }
11225 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 result = (wxTextAttrAlignment)((wxTextAttr const *)arg1)->GetAlignment();
11229 wxPyEndAllowThreads(__tstate);
11230 if (PyErr_Occurred()) SWIG_fail;
11231 }
11232 resultobj = SWIG_From_int(static_cast< int >(result));
11233 return resultobj;
11234 fail:
11235 return NULL;
11236 }
11237
11238
11239 SWIGINTERN PyObject *_wrap_TextAttr_GetTabs(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11240 PyObject *resultobj = 0;
11241 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11242 wxArrayInt *result = 0 ;
11243 void *argp1 = 0 ;
11244 int res1 = 0 ;
11245 PyObject *swig_obj[1] ;
11246
11247 if (!args) SWIG_fail;
11248 swig_obj[0] = args;
11249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11250 if (!SWIG_IsOK(res1)) {
11251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetTabs" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11252 }
11253 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11254 {
11255 PyThreadState* __tstate = wxPyBeginAllowThreads();
11256 {
11257 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
11258 result = (wxArrayInt *) &_result_ref;
11259 }
11260 wxPyEndAllowThreads(__tstate);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 }
11263 {
11264 resultobj = PyList_New(0);
11265 size_t idx;
11266 for (idx = 0; idx < result->GetCount(); idx += 1) {
11267 PyObject* val = PyInt_FromLong( result->Item(idx) );
11268 PyList_Append(resultobj, val);
11269 Py_DECREF(val);
11270 }
11271 }
11272 return resultobj;
11273 fail:
11274 return NULL;
11275 }
11276
11277
11278 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11279 PyObject *resultobj = 0;
11280 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11281 long result;
11282 void *argp1 = 0 ;
11283 int res1 = 0 ;
11284 PyObject *swig_obj[1] ;
11285
11286 if (!args) SWIG_fail;
11287 swig_obj[0] = args;
11288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11289 if (!SWIG_IsOK(res1)) {
11290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11291 }
11292 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11293 {
11294 PyThreadState* __tstate = wxPyBeginAllowThreads();
11295 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
11296 wxPyEndAllowThreads(__tstate);
11297 if (PyErr_Occurred()) SWIG_fail;
11298 }
11299 resultobj = SWIG_From_long(static_cast< long >(result));
11300 return resultobj;
11301 fail:
11302 return NULL;
11303 }
11304
11305
11306 SWIGINTERN PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11307 PyObject *resultobj = 0;
11308 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11309 long result;
11310 void *argp1 = 0 ;
11311 int res1 = 0 ;
11312 PyObject *swig_obj[1] ;
11313
11314 if (!args) SWIG_fail;
11315 swig_obj[0] = args;
11316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetLeftSubIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11319 }
11320 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_From_long(static_cast< long >(result));
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 SWIGINTERN PyObject *_wrap_TextAttr_GetRightIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11335 PyObject *resultobj = 0;
11336 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11337 long result;
11338 void *argp1 = 0 ;
11339 int res1 = 0 ;
11340 PyObject *swig_obj[1] ;
11341
11342 if (!args) SWIG_fail;
11343 swig_obj[0] = args;
11344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11345 if (!SWIG_IsOK(res1)) {
11346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetRightIndent" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11347 }
11348 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 resultobj = SWIG_From_long(static_cast< long >(result));
11356 return resultobj;
11357 fail:
11358 return NULL;
11359 }
11360
11361
11362 SWIGINTERN PyObject *_wrap_TextAttr_GetFlags(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11363 PyObject *resultobj = 0;
11364 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11365 long result;
11366 void *argp1 = 0 ;
11367 int res1 = 0 ;
11368 PyObject *swig_obj[1] ;
11369
11370 if (!args) SWIG_fail;
11371 swig_obj[0] = args;
11372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11373 if (!SWIG_IsOK(res1)) {
11374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_GetFlags" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11375 }
11376 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 result = (long)((wxTextAttr const *)arg1)->GetFlags();
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 resultobj = SWIG_From_long(static_cast< long >(result));
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 SWIGINTERN PyObject *_wrap_TextAttr_IsDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11391 PyObject *resultobj = 0;
11392 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
11393 bool result;
11394 void *argp1 = 0 ;
11395 int res1 = 0 ;
11396 PyObject *swig_obj[1] ;
11397
11398 if (!args) SWIG_fail;
11399 swig_obj[0] = args;
11400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextAttr, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_IsDefault" "', expected argument " "1"" of type '" "wxTextAttr const *""'");
11403 }
11404 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11405 {
11406 PyThreadState* __tstate = wxPyBeginAllowThreads();
11407 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
11408 wxPyEndAllowThreads(__tstate);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 {
11412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11413 }
11414 return resultobj;
11415 fail:
11416 return NULL;
11417 }
11418
11419
11420 SWIGINTERN PyObject *_wrap_TextAttr_Combine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11421 PyObject *resultobj = 0;
11422 wxTextAttr *arg1 = 0 ;
11423 wxTextAttr *arg2 = 0 ;
11424 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
11425 wxTextAttr result;
11426 void *argp1 = 0 ;
11427 int res1 = 0 ;
11428 void *argp2 = 0 ;
11429 int res2 = 0 ;
11430 void *argp3 = 0 ;
11431 int res3 = 0 ;
11432 PyObject * obj0 = 0 ;
11433 PyObject * obj1 = 0 ;
11434 PyObject * obj2 = 0 ;
11435 char * kwnames[] = {
11436 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
11437 };
11438
11439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11440 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxTextAttr, 0 | 0);
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11443 }
11444 if (!argp1) {
11445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "1"" of type '" "wxTextAttr const &""'");
11446 }
11447 arg1 = reinterpret_cast< wxTextAttr * >(argp1);
11448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
11449 if (!SWIG_IsOK(res2)) {
11450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11451 }
11452 if (!argp2) {
11453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextAttr_Combine" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
11454 }
11455 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
11456 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11457 if (!SWIG_IsOK(res3)) {
11458 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextAttr_Combine" "', expected argument " "3"" of type '" "wxTextCtrl const *""'");
11459 }
11460 arg3 = reinterpret_cast< wxTextCtrl * >(argp3);
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 resultobj = SWIG_NewPointerObj((new wxTextAttr(static_cast< const wxTextAttr& >(result))), SWIGTYPE_p_wxTextAttr, SWIG_POINTER_OWN | 0 );
11468 return resultobj;
11469 fail:
11470 return NULL;
11471 }
11472
11473
11474 SWIGINTERN PyObject *TextAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11475 PyObject *obj;
11476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11477 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextAttr, SWIG_NewClientData(obj));
11478 return SWIG_Py_Void();
11479 }
11480
11481 SWIGINTERN PyObject *TextAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11482 return SWIG_Python_InitShadowInstance(args);
11483 }
11484
11485 SWIGINTERN PyObject *_wrap_new_TextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11486 PyObject *resultobj = 0;
11487 wxWindow *arg1 = (wxWindow *) 0 ;
11488 int arg2 = (int) -1 ;
11489 wxString const &arg3_defvalue = wxPyEmptyString ;
11490 wxString *arg3 = (wxString *) &arg3_defvalue ;
11491 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11492 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11493 wxSize const &arg5_defvalue = wxDefaultSize ;
11494 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11495 long arg6 = (long) 0 ;
11496 wxValidator const &arg7_defvalue = wxDefaultValidator ;
11497 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
11498 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
11499 wxString *arg8 = (wxString *) &arg8_defvalue ;
11500 wxTextCtrl *result = 0 ;
11501 void *argp1 = 0 ;
11502 int res1 = 0 ;
11503 int val2 ;
11504 int ecode2 = 0 ;
11505 bool temp3 = false ;
11506 wxPoint temp4 ;
11507 wxSize temp5 ;
11508 long val6 ;
11509 int ecode6 = 0 ;
11510 void *argp7 = 0 ;
11511 int res7 = 0 ;
11512 bool temp8 = false ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 PyObject * obj2 = 0 ;
11516 PyObject * obj3 = 0 ;
11517 PyObject * obj4 = 0 ;
11518 PyObject * obj5 = 0 ;
11519 PyObject * obj6 = 0 ;
11520 PyObject * obj7 = 0 ;
11521 char * kwnames[] = {
11522 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11523 };
11524
11525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
11526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
11527 if (!SWIG_IsOK(res1)) {
11528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TextCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
11529 }
11530 arg1 = reinterpret_cast< wxWindow * >(argp1);
11531 if (obj1) {
11532 ecode2 = SWIG_AsVal_int(obj1, &val2);
11533 if (!SWIG_IsOK(ecode2)) {
11534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TextCtrl" "', expected argument " "2"" of type '" "int""'");
11535 }
11536 arg2 = static_cast< int >(val2);
11537 }
11538 if (obj2) {
11539 {
11540 arg3 = wxString_in_helper(obj2);
11541 if (arg3 == NULL) SWIG_fail;
11542 temp3 = true;
11543 }
11544 }
11545 if (obj3) {
11546 {
11547 arg4 = &temp4;
11548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11549 }
11550 }
11551 if (obj4) {
11552 {
11553 arg5 = &temp5;
11554 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11555 }
11556 }
11557 if (obj5) {
11558 ecode6 = SWIG_AsVal_long(obj5, &val6);
11559 if (!SWIG_IsOK(ecode6)) {
11560 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_TextCtrl" "', expected argument " "6"" of type '" "long""'");
11561 }
11562 arg6 = static_cast< long >(val6);
11563 }
11564 if (obj6) {
11565 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
11566 if (!SWIG_IsOK(res7)) {
11567 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11568 }
11569 if (!argp7) {
11570 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
11571 }
11572 arg7 = reinterpret_cast< wxValidator * >(argp7);
11573 }
11574 if (obj7) {
11575 {
11576 arg8 = wxString_in_helper(obj7);
11577 if (arg8 == NULL) SWIG_fail;
11578 temp8 = true;
11579 }
11580 }
11581 {
11582 if (!wxPyCheckForApp()) SWIG_fail;
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_NEW | 0 );
11589 {
11590 if (temp3)
11591 delete arg3;
11592 }
11593 {
11594 if (temp8)
11595 delete arg8;
11596 }
11597 return resultobj;
11598 fail:
11599 {
11600 if (temp3)
11601 delete arg3;
11602 }
11603 {
11604 if (temp8)
11605 delete arg8;
11606 }
11607 return NULL;
11608 }
11609
11610
11611 SWIGINTERN PyObject *_wrap_new_PreTextCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11612 PyObject *resultobj = 0;
11613 wxTextCtrl *result = 0 ;
11614
11615 if (!SWIG_Python_UnpackTuple(args,"new_PreTextCtrl",0,0,0)) SWIG_fail;
11616 {
11617 if (!wxPyCheckForApp()) SWIG_fail;
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 result = (wxTextCtrl *)new wxTextCtrl();
11620 wxPyEndAllowThreads(__tstate);
11621 if (PyErr_Occurred()) SWIG_fail;
11622 }
11623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextCtrl, SWIG_POINTER_OWN | 0 );
11624 return resultobj;
11625 fail:
11626 return NULL;
11627 }
11628
11629
11630 SWIGINTERN PyObject *_wrap_TextCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj = 0;
11632 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11633 wxWindow *arg2 = (wxWindow *) 0 ;
11634 int arg3 = (int) -1 ;
11635 wxString const &arg4_defvalue = wxPyEmptyString ;
11636 wxString *arg4 = (wxString *) &arg4_defvalue ;
11637 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11638 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11639 wxSize const &arg6_defvalue = wxDefaultSize ;
11640 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11641 long arg7 = (long) 0 ;
11642 wxValidator const &arg8_defvalue = wxDefaultValidator ;
11643 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
11644 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
11645 wxString *arg9 = (wxString *) &arg9_defvalue ;
11646 bool result;
11647 void *argp1 = 0 ;
11648 int res1 = 0 ;
11649 void *argp2 = 0 ;
11650 int res2 = 0 ;
11651 int val3 ;
11652 int ecode3 = 0 ;
11653 bool temp4 = false ;
11654 wxPoint temp5 ;
11655 wxSize temp6 ;
11656 long val7 ;
11657 int ecode7 = 0 ;
11658 void *argp8 = 0 ;
11659 int res8 = 0 ;
11660 bool temp9 = false ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 PyObject * obj2 = 0 ;
11664 PyObject * obj3 = 0 ;
11665 PyObject * obj4 = 0 ;
11666 PyObject * obj5 = 0 ;
11667 PyObject * obj6 = 0 ;
11668 PyObject * obj7 = 0 ;
11669 PyObject * obj8 = 0 ;
11670 char * kwnames[] = {
11671 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
11672 };
11673
11674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
11675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11676 if (!SWIG_IsOK(res1)) {
11677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Create" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11678 }
11679 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11681 if (!SWIG_IsOK(res2)) {
11682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
11683 }
11684 arg2 = reinterpret_cast< wxWindow * >(argp2);
11685 if (obj2) {
11686 ecode3 = SWIG_AsVal_int(obj2, &val3);
11687 if (!SWIG_IsOK(ecode3)) {
11688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Create" "', expected argument " "3"" of type '" "int""'");
11689 }
11690 arg3 = static_cast< int >(val3);
11691 }
11692 if (obj3) {
11693 {
11694 arg4 = wxString_in_helper(obj3);
11695 if (arg4 == NULL) SWIG_fail;
11696 temp4 = true;
11697 }
11698 }
11699 if (obj4) {
11700 {
11701 arg5 = &temp5;
11702 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11703 }
11704 }
11705 if (obj5) {
11706 {
11707 arg6 = &temp6;
11708 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11709 }
11710 }
11711 if (obj6) {
11712 ecode7 = SWIG_AsVal_long(obj6, &val7);
11713 if (!SWIG_IsOK(ecode7)) {
11714 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "TextCtrl_Create" "', expected argument " "7"" of type '" "long""'");
11715 }
11716 arg7 = static_cast< long >(val7);
11717 }
11718 if (obj7) {
11719 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
11720 if (!SWIG_IsOK(res8)) {
11721 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11722 }
11723 if (!argp8) {
11724 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
11725 }
11726 arg8 = reinterpret_cast< wxValidator * >(argp8);
11727 }
11728 if (obj8) {
11729 {
11730 arg9 = wxString_in_helper(obj8);
11731 if (arg9 == NULL) SWIG_fail;
11732 temp9 = true;
11733 }
11734 }
11735 {
11736 PyThreadState* __tstate = wxPyBeginAllowThreads();
11737 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
11738 wxPyEndAllowThreads(__tstate);
11739 if (PyErr_Occurred()) SWIG_fail;
11740 }
11741 {
11742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11743 }
11744 {
11745 if (temp4)
11746 delete arg4;
11747 }
11748 {
11749 if (temp9)
11750 delete arg9;
11751 }
11752 return resultobj;
11753 fail:
11754 {
11755 if (temp4)
11756 delete arg4;
11757 }
11758 {
11759 if (temp9)
11760 delete arg9;
11761 }
11762 return NULL;
11763 }
11764
11765
11766 SWIGINTERN PyObject *_wrap_TextCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11767 PyObject *resultobj = 0;
11768 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11769 wxString result;
11770 void *argp1 = 0 ;
11771 int res1 = 0 ;
11772 PyObject *swig_obj[1] ;
11773
11774 if (!args) SWIG_fail;
11775 swig_obj[0] = args;
11776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11777 if (!SWIG_IsOK(res1)) {
11778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetValue" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11779 }
11780 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = ((wxTextCtrl const *)arg1)->GetValue();
11784 wxPyEndAllowThreads(__tstate);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 {
11788 #if wxUSE_UNICODE
11789 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11790 #else
11791 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11792 #endif
11793 }
11794 return resultobj;
11795 fail:
11796 return NULL;
11797 }
11798
11799
11800 SWIGINTERN PyObject *_wrap_TextCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11801 PyObject *resultobj = 0;
11802 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11803 wxString *arg2 = 0 ;
11804 void *argp1 = 0 ;
11805 int res1 = 0 ;
11806 bool temp2 = false ;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 char * kwnames[] = {
11810 (char *) "self",(char *) "value", NULL
11811 };
11812
11813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
11814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetValue" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
11817 }
11818 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11819 {
11820 arg2 = wxString_in_helper(obj1);
11821 if (arg2 == NULL) SWIG_fail;
11822 temp2 = true;
11823 }
11824 {
11825 PyThreadState* __tstate = wxPyBeginAllowThreads();
11826 (arg1)->SetValue((wxString const &)*arg2);
11827 wxPyEndAllowThreads(__tstate);
11828 if (PyErr_Occurred()) SWIG_fail;
11829 }
11830 resultobj = SWIG_Py_Void();
11831 {
11832 if (temp2)
11833 delete arg2;
11834 }
11835 return resultobj;
11836 fail:
11837 {
11838 if (temp2)
11839 delete arg2;
11840 }
11841 return NULL;
11842 }
11843
11844
11845 SWIGINTERN PyObject *_wrap_TextCtrl_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11846 PyObject *resultobj = 0;
11847 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11848 long arg2 ;
11849 long arg3 ;
11850 wxString result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 long val2 ;
11854 int ecode2 = 0 ;
11855 long val3 ;
11856 int ecode3 = 0 ;
11857 PyObject * obj0 = 0 ;
11858 PyObject * obj1 = 0 ;
11859 PyObject * obj2 = 0 ;
11860 char * kwnames[] = {
11861 (char *) "self",(char *) "from",(char *) "to", NULL
11862 };
11863
11864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetRange" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11868 }
11869 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11870 ecode2 = SWIG_AsVal_long(obj1, &val2);
11871 if (!SWIG_IsOK(ecode2)) {
11872 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetRange" "', expected argument " "2"" of type '" "long""'");
11873 }
11874 arg2 = static_cast< long >(val2);
11875 ecode3 = SWIG_AsVal_long(obj2, &val3);
11876 if (!SWIG_IsOK(ecode3)) {
11877 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetRange" "', expected argument " "3"" of type '" "long""'");
11878 }
11879 arg3 = static_cast< long >(val3);
11880 {
11881 PyThreadState* __tstate = wxPyBeginAllowThreads();
11882 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
11883 wxPyEndAllowThreads(__tstate);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 {
11887 #if wxUSE_UNICODE
11888 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11889 #else
11890 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11891 #endif
11892 }
11893 return resultobj;
11894 fail:
11895 return NULL;
11896 }
11897
11898
11899 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11900 PyObject *resultobj = 0;
11901 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11902 long arg2 ;
11903 int result;
11904 void *argp1 = 0 ;
11905 int res1 = 0 ;
11906 long val2 ;
11907 int ecode2 = 0 ;
11908 PyObject * obj0 = 0 ;
11909 PyObject * obj1 = 0 ;
11910 char * kwnames[] = {
11911 (char *) "self",(char *) "lineNo", NULL
11912 };
11913
11914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) SWIG_fail;
11915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11916 if (!SWIG_IsOK(res1)) {
11917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineLength" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11918 }
11919 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11920 ecode2 = SWIG_AsVal_long(obj1, &val2);
11921 if (!SWIG_IsOK(ecode2)) {
11922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineLength" "', expected argument " "2"" of type '" "long""'");
11923 }
11924 arg2 = static_cast< long >(val2);
11925 {
11926 PyThreadState* __tstate = wxPyBeginAllowThreads();
11927 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 resultobj = SWIG_From_int(static_cast< int >(result));
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 SWIGINTERN PyObject *_wrap_TextCtrl_GetLineText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj = 0;
11940 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11941 long arg2 ;
11942 wxString result;
11943 void *argp1 = 0 ;
11944 int res1 = 0 ;
11945 long val2 ;
11946 int ecode2 = 0 ;
11947 PyObject * obj0 = 0 ;
11948 PyObject * obj1 = 0 ;
11949 char * kwnames[] = {
11950 (char *) "self",(char *) "lineNo", NULL
11951 };
11952
11953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) SWIG_fail;
11954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11955 if (!SWIG_IsOK(res1)) {
11956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLineText" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11957 }
11958 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11959 ecode2 = SWIG_AsVal_long(obj1, &val2);
11960 if (!SWIG_IsOK(ecode2)) {
11961 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetLineText" "', expected argument " "2"" of type '" "long""'");
11962 }
11963 arg2 = static_cast< long >(val2);
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 {
11971 #if wxUSE_UNICODE
11972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11973 #else
11974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11975 #endif
11976 }
11977 return resultobj;
11978 fail:
11979 return NULL;
11980 }
11981
11982
11983 SWIGINTERN PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11984 PyObject *resultobj = 0;
11985 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
11986 int result;
11987 void *argp1 = 0 ;
11988 int res1 = 0 ;
11989 PyObject *swig_obj[1] ;
11990
11991 if (!args) SWIG_fail;
11992 swig_obj[0] = args;
11993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
11994 if (!SWIG_IsOK(res1)) {
11995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetNumberOfLines" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
11996 }
11997 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 resultobj = SWIG_From_int(static_cast< int >(result));
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 SWIGINTERN PyObject *_wrap_TextCtrl_IsModified(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12012 PyObject *resultobj = 0;
12013 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12014 bool result;
12015 void *argp1 = 0 ;
12016 int res1 = 0 ;
12017 PyObject *swig_obj[1] ;
12018
12019 if (!args) SWIG_fail;
12020 swig_obj[0] = args;
12021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12022 if (!SWIG_IsOK(res1)) {
12023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsModified" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12024 }
12025 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
12029 wxPyEndAllowThreads(__tstate);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 }
12032 {
12033 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12034 }
12035 return resultobj;
12036 fail:
12037 return NULL;
12038 }
12039
12040
12041 SWIGINTERN PyObject *_wrap_TextCtrl_IsEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12042 PyObject *resultobj = 0;
12043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12044 bool result;
12045 void *argp1 = 0 ;
12046 int res1 = 0 ;
12047 PyObject *swig_obj[1] ;
12048
12049 if (!args) SWIG_fail;
12050 swig_obj[0] = args;
12051 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12052 if (!SWIG_IsOK(res1)) {
12053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsEditable" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12054 }
12055 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
12059 wxPyEndAllowThreads(__tstate);
12060 if (PyErr_Occurred()) SWIG_fail;
12061 }
12062 {
12063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12064 }
12065 return resultobj;
12066 fail:
12067 return NULL;
12068 }
12069
12070
12071 SWIGINTERN PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12072 PyObject *resultobj = 0;
12073 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12074 bool result;
12075 void *argp1 = 0 ;
12076 int res1 = 0 ;
12077 PyObject *swig_obj[1] ;
12078
12079 if (!args) SWIG_fail;
12080 swig_obj[0] = args;
12081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12082 if (!SWIG_IsOK(res1)) {
12083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsSingleLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12084 }
12085 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12086 {
12087 PyThreadState* __tstate = wxPyBeginAllowThreads();
12088 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
12089 wxPyEndAllowThreads(__tstate);
12090 if (PyErr_Occurred()) SWIG_fail;
12091 }
12092 {
12093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12094 }
12095 return resultobj;
12096 fail:
12097 return NULL;
12098 }
12099
12100
12101 SWIGINTERN PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12102 PyObject *resultobj = 0;
12103 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12104 bool result;
12105 void *argp1 = 0 ;
12106 int res1 = 0 ;
12107 PyObject *swig_obj[1] ;
12108
12109 if (!args) SWIG_fail;
12110 swig_obj[0] = args;
12111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12112 if (!SWIG_IsOK(res1)) {
12113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_IsMultiLine" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12114 }
12115 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12116 {
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
12119 wxPyEndAllowThreads(__tstate);
12120 if (PyErr_Occurred()) SWIG_fail;
12121 }
12122 {
12123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12124 }
12125 return resultobj;
12126 fail:
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_TextCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12132 PyObject *resultobj = 0;
12133 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12134 long *arg2 = (long *) 0 ;
12135 long *arg3 = (long *) 0 ;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 long temp2 ;
12139 int res2 = SWIG_TMPOBJ ;
12140 long temp3 ;
12141 int res3 = SWIG_TMPOBJ ;
12142 PyObject *swig_obj[1] ;
12143
12144 arg2 = &temp2;
12145 arg3 = &temp3;
12146 if (!args) SWIG_fail;
12147 swig_obj[0] = args;
12148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12149 if (!SWIG_IsOK(res1)) {
12150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12151 }
12152 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12153 {
12154 PyThreadState* __tstate = wxPyBeginAllowThreads();
12155 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
12156 wxPyEndAllowThreads(__tstate);
12157 if (PyErr_Occurred()) SWIG_fail;
12158 }
12159 resultobj = SWIG_Py_Void();
12160 if (SWIG_IsTmpObj(res2)) {
12161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg2)));
12162 } else {
12163 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12164 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, new_flags));
12165 }
12166 if (SWIG_IsTmpObj(res3)) {
12167 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12168 } else {
12169 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12170 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12171 }
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 SWIGINTERN PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12179 PyObject *resultobj = 0;
12180 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12181 wxString result;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 PyObject *swig_obj[1] ;
12185
12186 if (!args) SWIG_fail;
12187 swig_obj[0] = args;
12188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12189 if (!SWIG_IsOK(res1)) {
12190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStringSelection" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12191 }
12192 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 {
12200 #if wxUSE_UNICODE
12201 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12202 #else
12203 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12204 #endif
12205 }
12206 return resultobj;
12207 fail:
12208 return NULL;
12209 }
12210
12211
12212 SWIGINTERN PyObject *_wrap_TextCtrl_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12213 PyObject *resultobj = 0;
12214 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12215 void *argp1 = 0 ;
12216 int res1 = 0 ;
12217 PyObject *swig_obj[1] ;
12218
12219 if (!args) SWIG_fail;
12220 swig_obj[0] = args;
12221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Clear" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12224 }
12225 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12226 {
12227 PyThreadState* __tstate = wxPyBeginAllowThreads();
12228 (arg1)->Clear();
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 resultobj = SWIG_Py_Void();
12233 return resultobj;
12234 fail:
12235 return NULL;
12236 }
12237
12238
12239 SWIGINTERN PyObject *_wrap_TextCtrl_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12240 PyObject *resultobj = 0;
12241 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12242 long arg2 ;
12243 long arg3 ;
12244 wxString *arg4 = 0 ;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 long val2 ;
12248 int ecode2 = 0 ;
12249 long val3 ;
12250 int ecode3 = 0 ;
12251 bool temp4 = false ;
12252 PyObject * obj0 = 0 ;
12253 PyObject * obj1 = 0 ;
12254 PyObject * obj2 = 0 ;
12255 PyObject * obj3 = 0 ;
12256 char * kwnames[] = {
12257 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
12258 };
12259
12260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12262 if (!SWIG_IsOK(res1)) {
12263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Replace" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12264 }
12265 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12266 ecode2 = SWIG_AsVal_long(obj1, &val2);
12267 if (!SWIG_IsOK(ecode2)) {
12268 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Replace" "', expected argument " "2"" of type '" "long""'");
12269 }
12270 arg2 = static_cast< long >(val2);
12271 ecode3 = SWIG_AsVal_long(obj2, &val3);
12272 if (!SWIG_IsOK(ecode3)) {
12273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Replace" "', expected argument " "3"" of type '" "long""'");
12274 }
12275 arg3 = static_cast< long >(val3);
12276 {
12277 arg4 = wxString_in_helper(obj3);
12278 if (arg4 == NULL) SWIG_fail;
12279 temp4 = true;
12280 }
12281 {
12282 PyThreadState* __tstate = wxPyBeginAllowThreads();
12283 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
12284 wxPyEndAllowThreads(__tstate);
12285 if (PyErr_Occurred()) SWIG_fail;
12286 }
12287 resultobj = SWIG_Py_Void();
12288 {
12289 if (temp4)
12290 delete arg4;
12291 }
12292 return resultobj;
12293 fail:
12294 {
12295 if (temp4)
12296 delete arg4;
12297 }
12298 return NULL;
12299 }
12300
12301
12302 SWIGINTERN PyObject *_wrap_TextCtrl_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12303 PyObject *resultobj = 0;
12304 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12305 long arg2 ;
12306 long arg3 ;
12307 void *argp1 = 0 ;
12308 int res1 = 0 ;
12309 long val2 ;
12310 int ecode2 = 0 ;
12311 long val3 ;
12312 int ecode3 = 0 ;
12313 PyObject * obj0 = 0 ;
12314 PyObject * obj1 = 0 ;
12315 PyObject * obj2 = 0 ;
12316 char * kwnames[] = {
12317 (char *) "self",(char *) "from",(char *) "to", NULL
12318 };
12319
12320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12322 if (!SWIG_IsOK(res1)) {
12323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Remove" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12324 }
12325 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12326 ecode2 = SWIG_AsVal_long(obj1, &val2);
12327 if (!SWIG_IsOK(ecode2)) {
12328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_Remove" "', expected argument " "2"" of type '" "long""'");
12329 }
12330 arg2 = static_cast< long >(val2);
12331 ecode3 = SWIG_AsVal_long(obj2, &val3);
12332 if (!SWIG_IsOK(ecode3)) {
12333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_Remove" "', expected argument " "3"" of type '" "long""'");
12334 }
12335 arg3 = static_cast< long >(val3);
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 (arg1)->Remove(arg2,arg3);
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 resultobj = SWIG_Py_Void();
12343 return resultobj;
12344 fail:
12345 return NULL;
12346 }
12347
12348
12349 SWIGINTERN PyObject *_wrap_TextCtrl_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12350 PyObject *resultobj = 0;
12351 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12352 wxString *arg2 = 0 ;
12353 bool result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 bool temp2 = false ;
12357 PyObject * obj0 = 0 ;
12358 PyObject * obj1 = 0 ;
12359 char * kwnames[] = {
12360 (char *) "self",(char *) "file", NULL
12361 };
12362
12363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) SWIG_fail;
12364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12365 if (!SWIG_IsOK(res1)) {
12366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_LoadFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12367 }
12368 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12369 {
12370 arg2 = wxString_in_helper(obj1);
12371 if (arg2 == NULL) SWIG_fail;
12372 temp2 = true;
12373 }
12374 {
12375 PyThreadState* __tstate = wxPyBeginAllowThreads();
12376 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
12377 wxPyEndAllowThreads(__tstate);
12378 if (PyErr_Occurred()) SWIG_fail;
12379 }
12380 {
12381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12382 }
12383 {
12384 if (temp2)
12385 delete arg2;
12386 }
12387 return resultobj;
12388 fail:
12389 {
12390 if (temp2)
12391 delete arg2;
12392 }
12393 return NULL;
12394 }
12395
12396
12397 SWIGINTERN PyObject *_wrap_TextCtrl_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12398 PyObject *resultobj = 0;
12399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12400 wxString const &arg2_defvalue = wxPyEmptyString ;
12401 wxString *arg2 = (wxString *) &arg2_defvalue ;
12402 bool result;
12403 void *argp1 = 0 ;
12404 int res1 = 0 ;
12405 bool temp2 = false ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char * kwnames[] = {
12409 (char *) "self",(char *) "file", NULL
12410 };
12411
12412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SaveFile" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12416 }
12417 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12418 if (obj1) {
12419 {
12420 arg2 = wxString_in_helper(obj1);
12421 if (arg2 == NULL) SWIG_fail;
12422 temp2 = true;
12423 }
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 {
12432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12433 }
12434 {
12435 if (temp2)
12436 delete arg2;
12437 }
12438 return resultobj;
12439 fail:
12440 {
12441 if (temp2)
12442 delete arg2;
12443 }
12444 return NULL;
12445 }
12446
12447
12448 SWIGINTERN PyObject *_wrap_TextCtrl_MarkDirty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12449 PyObject *resultobj = 0;
12450 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_MarkDirty" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12460 }
12461 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 (arg1)->MarkDirty();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_Py_Void();
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12478 void *argp1 = 0 ;
12479 int res1 = 0 ;
12480 PyObject *swig_obj[1] ;
12481
12482 if (!args) SWIG_fail;
12483 swig_obj[0] = args;
12484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12485 if (!SWIG_IsOK(res1)) {
12486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_DiscardEdits" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12487 }
12488 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 (arg1)->DiscardEdits();
12492 wxPyEndAllowThreads(__tstate);
12493 if (PyErr_Occurred()) SWIG_fail;
12494 }
12495 resultobj = SWIG_Py_Void();
12496 return resultobj;
12497 fail:
12498 return NULL;
12499 }
12500
12501
12502 SWIGINTERN PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12503 PyObject *resultobj = 0;
12504 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12505 unsigned long arg2 ;
12506 void *argp1 = 0 ;
12507 int res1 = 0 ;
12508 unsigned long val2 ;
12509 int ecode2 = 0 ;
12510 PyObject * obj0 = 0 ;
12511 PyObject * obj1 = 0 ;
12512 char * kwnames[] = {
12513 (char *) "self",(char *) "len", NULL
12514 };
12515
12516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) SWIG_fail;
12517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12518 if (!SWIG_IsOK(res1)) {
12519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12520 }
12521 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12522 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
12523 if (!SWIG_IsOK(ecode2)) {
12524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetMaxLength" "', expected argument " "2"" of type '" "unsigned long""'");
12525 }
12526 arg2 = static_cast< unsigned long >(val2);
12527 {
12528 PyThreadState* __tstate = wxPyBeginAllowThreads();
12529 (arg1)->SetMaxLength(arg2);
12530 wxPyEndAllowThreads(__tstate);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 }
12533 resultobj = SWIG_Py_Void();
12534 return resultobj;
12535 fail:
12536 return NULL;
12537 }
12538
12539
12540 SWIGINTERN PyObject *_wrap_TextCtrl_WriteText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12541 PyObject *resultobj = 0;
12542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12543 wxString *arg2 = 0 ;
12544 void *argp1 = 0 ;
12545 int res1 = 0 ;
12546 bool temp2 = false ;
12547 PyObject * obj0 = 0 ;
12548 PyObject * obj1 = 0 ;
12549 char * kwnames[] = {
12550 (char *) "self",(char *) "text", NULL
12551 };
12552
12553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) SWIG_fail;
12554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12555 if (!SWIG_IsOK(res1)) {
12556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_WriteText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12557 }
12558 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12559 {
12560 arg2 = wxString_in_helper(obj1);
12561 if (arg2 == NULL) SWIG_fail;
12562 temp2 = true;
12563 }
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 (arg1)->WriteText((wxString const &)*arg2);
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_Py_Void();
12571 {
12572 if (temp2)
12573 delete arg2;
12574 }
12575 return resultobj;
12576 fail:
12577 {
12578 if (temp2)
12579 delete arg2;
12580 }
12581 return NULL;
12582 }
12583
12584
12585 SWIGINTERN PyObject *_wrap_TextCtrl_AppendText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12586 PyObject *resultobj = 0;
12587 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12588 wxString *arg2 = 0 ;
12589 void *argp1 = 0 ;
12590 int res1 = 0 ;
12591 bool temp2 = false ;
12592 PyObject * obj0 = 0 ;
12593 PyObject * obj1 = 0 ;
12594 char * kwnames[] = {
12595 (char *) "self",(char *) "text", NULL
12596 };
12597
12598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) SWIG_fail;
12599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12600 if (!SWIG_IsOK(res1)) {
12601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_AppendText" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12602 }
12603 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12604 {
12605 arg2 = wxString_in_helper(obj1);
12606 if (arg2 == NULL) SWIG_fail;
12607 temp2 = true;
12608 }
12609 {
12610 PyThreadState* __tstate = wxPyBeginAllowThreads();
12611 (arg1)->AppendText((wxString const &)*arg2);
12612 wxPyEndAllowThreads(__tstate);
12613 if (PyErr_Occurred()) SWIG_fail;
12614 }
12615 resultobj = SWIG_Py_Void();
12616 {
12617 if (temp2)
12618 delete arg2;
12619 }
12620 return resultobj;
12621 fail:
12622 {
12623 if (temp2)
12624 delete arg2;
12625 }
12626 return NULL;
12627 }
12628
12629
12630 SWIGINTERN PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12631 PyObject *resultobj = 0;
12632 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12633 wxKeyEvent *arg2 = 0 ;
12634 bool result;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 void *argp2 = 0 ;
12638 int res2 = 0 ;
12639 PyObject * obj0 = 0 ;
12640 PyObject * obj1 = 0 ;
12641 char * kwnames[] = {
12642 (char *) "self",(char *) "event", NULL
12643 };
12644
12645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) SWIG_fail;
12646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12647 if (!SWIG_IsOK(res1)) {
12648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12649 }
12650 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
12652 if (!SWIG_IsOK(res2)) {
12653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12654 }
12655 if (!argp2) {
12656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_EmulateKeyPress" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
12657 }
12658 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 {
12666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12667 }
12668 return resultobj;
12669 fail:
12670 return NULL;
12671 }
12672
12673
12674 SWIGINTERN PyObject *_wrap_TextCtrl_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12675 PyObject *resultobj = 0;
12676 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12677 long arg2 ;
12678 long arg3 ;
12679 wxTextAttr *arg4 = 0 ;
12680 bool result;
12681 void *argp1 = 0 ;
12682 int res1 = 0 ;
12683 long val2 ;
12684 int ecode2 = 0 ;
12685 long val3 ;
12686 int ecode3 = 0 ;
12687 void *argp4 = 0 ;
12688 int res4 = 0 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 PyObject * obj2 = 0 ;
12692 PyObject * obj3 = 0 ;
12693 char * kwnames[] = {
12694 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
12695 };
12696
12697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12699 if (!SWIG_IsOK(res1)) {
12700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12701 }
12702 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12703 ecode2 = SWIG_AsVal_long(obj1, &val2);
12704 if (!SWIG_IsOK(ecode2)) {
12705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetStyle" "', expected argument " "2"" of type '" "long""'");
12706 }
12707 arg2 = static_cast< long >(val2);
12708 ecode3 = SWIG_AsVal_long(obj2, &val3);
12709 if (!SWIG_IsOK(ecode3)) {
12710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetStyle" "', expected argument " "3"" of type '" "long""'");
12711 }
12712 arg3 = static_cast< long >(val3);
12713 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxTextAttr, 0 | 0);
12714 if (!SWIG_IsOK(res4)) {
12715 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12716 }
12717 if (!argp4) {
12718 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetStyle" "', expected argument " "4"" of type '" "wxTextAttr const &""'");
12719 }
12720 arg4 = reinterpret_cast< wxTextAttr * >(argp4);
12721 {
12722 PyThreadState* __tstate = wxPyBeginAllowThreads();
12723 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 {
12728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12729 }
12730 return resultobj;
12731 fail:
12732 return NULL;
12733 }
12734
12735
12736 SWIGINTERN PyObject *_wrap_TextCtrl_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12737 PyObject *resultobj = 0;
12738 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12739 long arg2 ;
12740 wxTextAttr *arg3 = 0 ;
12741 bool result;
12742 void *argp1 = 0 ;
12743 int res1 = 0 ;
12744 long val2 ;
12745 int ecode2 = 0 ;
12746 void *argp3 = 0 ;
12747 int res3 = 0 ;
12748 PyObject * obj0 = 0 ;
12749 PyObject * obj1 = 0 ;
12750 PyObject * obj2 = 0 ;
12751 char * kwnames[] = {
12752 (char *) "self",(char *) "position",(char *) "style", NULL
12753 };
12754
12755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12757 if (!SWIG_IsOK(res1)) {
12758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12759 }
12760 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12761 ecode2 = SWIG_AsVal_long(obj1, &val2);
12762 if (!SWIG_IsOK(ecode2)) {
12763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetStyle" "', expected argument " "2"" of type '" "long""'");
12764 }
12765 arg2 = static_cast< long >(val2);
12766 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTextAttr, 0 );
12767 if (!SWIG_IsOK(res3)) {
12768 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12769 }
12770 if (!argp3) {
12771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_GetStyle" "', expected argument " "3"" of type '" "wxTextAttr &""'");
12772 }
12773 arg3 = reinterpret_cast< wxTextAttr * >(argp3);
12774 {
12775 PyThreadState* __tstate = wxPyBeginAllowThreads();
12776 result = (bool)(arg1)->GetStyle(arg2,*arg3);
12777 wxPyEndAllowThreads(__tstate);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 }
12780 {
12781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12782 }
12783 return resultobj;
12784 fail:
12785 return NULL;
12786 }
12787
12788
12789 SWIGINTERN PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = 0;
12791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12792 wxTextAttr *arg2 = 0 ;
12793 bool result;
12794 void *argp1 = 0 ;
12795 int res1 = 0 ;
12796 void *argp2 = 0 ;
12797 int res2 = 0 ;
12798 PyObject * obj0 = 0 ;
12799 PyObject * obj1 = 0 ;
12800 char * kwnames[] = {
12801 (char *) "self",(char *) "style", NULL
12802 };
12803
12804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12806 if (!SWIG_IsOK(res1)) {
12807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12808 }
12809 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTextAttr, 0 | 0);
12811 if (!SWIG_IsOK(res2)) {
12812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12813 }
12814 if (!argp2) {
12815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TextCtrl_SetDefaultStyle" "', expected argument " "2"" of type '" "wxTextAttr const &""'");
12816 }
12817 arg2 = reinterpret_cast< wxTextAttr * >(argp2);
12818 {
12819 PyThreadState* __tstate = wxPyBeginAllowThreads();
12820 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 {
12825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12826 }
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 SWIGINTERN PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12834 PyObject *resultobj = 0;
12835 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12836 wxTextAttr *result = 0 ;
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 PyObject *swig_obj[1] ;
12840
12841 if (!args) SWIG_fail;
12842 swig_obj[0] = args;
12843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12844 if (!SWIG_IsOK(res1)) {
12845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetDefaultStyle" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12846 }
12847 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12848 {
12849 PyThreadState* __tstate = wxPyBeginAllowThreads();
12850 {
12851 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
12852 result = (wxTextAttr *) &_result_ref;
12853 }
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextAttr, 0 | 0 );
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 SWIGINTERN PyObject *_wrap_TextCtrl_XYToPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj = 0;
12866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12867 long arg2 ;
12868 long arg3 ;
12869 long result;
12870 void *argp1 = 0 ;
12871 int res1 = 0 ;
12872 long val2 ;
12873 int ecode2 = 0 ;
12874 long val3 ;
12875 int ecode3 = 0 ;
12876 PyObject * obj0 = 0 ;
12877 PyObject * obj1 = 0 ;
12878 PyObject * obj2 = 0 ;
12879 char * kwnames[] = {
12880 (char *) "self",(char *) "x",(char *) "y", NULL
12881 };
12882
12883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12885 if (!SWIG_IsOK(res1)) {
12886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_XYToPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12887 }
12888 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12889 ecode2 = SWIG_AsVal_long(obj1, &val2);
12890 if (!SWIG_IsOK(ecode2)) {
12891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_XYToPosition" "', expected argument " "2"" of type '" "long""'");
12892 }
12893 arg2 = static_cast< long >(val2);
12894 ecode3 = SWIG_AsVal_long(obj2, &val3);
12895 if (!SWIG_IsOK(ecode3)) {
12896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_XYToPosition" "', expected argument " "3"" of type '" "long""'");
12897 }
12898 arg3 = static_cast< long >(val3);
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
12902 wxPyEndAllowThreads(__tstate);
12903 if (PyErr_Occurred()) SWIG_fail;
12904 }
12905 resultobj = SWIG_From_long(static_cast< long >(result));
12906 return resultobj;
12907 fail:
12908 return NULL;
12909 }
12910
12911
12912 SWIGINTERN PyObject *_wrap_TextCtrl_PositionToXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12913 PyObject *resultobj = 0;
12914 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12915 long arg2 ;
12916 long *arg3 = (long *) 0 ;
12917 long *arg4 = (long *) 0 ;
12918 void *argp1 = 0 ;
12919 int res1 = 0 ;
12920 long val2 ;
12921 int ecode2 = 0 ;
12922 long temp3 ;
12923 int res3 = SWIG_TMPOBJ ;
12924 long temp4 ;
12925 int res4 = SWIG_TMPOBJ ;
12926 PyObject * obj0 = 0 ;
12927 PyObject * obj1 = 0 ;
12928 char * kwnames[] = {
12929 (char *) "self",(char *) "pos", NULL
12930 };
12931
12932 arg3 = &temp3;
12933 arg4 = &temp4;
12934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) SWIG_fail;
12935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12936 if (!SWIG_IsOK(res1)) {
12937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_PositionToXY" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
12938 }
12939 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12940 ecode2 = SWIG_AsVal_long(obj1, &val2);
12941 if (!SWIG_IsOK(ecode2)) {
12942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_PositionToXY" "', expected argument " "2"" of type '" "long""'");
12943 }
12944 arg2 = static_cast< long >(val2);
12945 {
12946 PyThreadState* __tstate = wxPyBeginAllowThreads();
12947 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
12948 wxPyEndAllowThreads(__tstate);
12949 if (PyErr_Occurred()) SWIG_fail;
12950 }
12951 resultobj = SWIG_Py_Void();
12952 if (SWIG_IsTmpObj(res3)) {
12953 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
12954 } else {
12955 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12956 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
12957 }
12958 if (SWIG_IsTmpObj(res4)) {
12959 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
12960 } else {
12961 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
12962 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
12963 }
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 SWIGINTERN PyObject *_wrap_TextCtrl_ShowPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj = 0;
12972 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
12973 long arg2 ;
12974 void *argp1 = 0 ;
12975 int res1 = 0 ;
12976 long val2 ;
12977 int ecode2 = 0 ;
12978 PyObject * obj0 = 0 ;
12979 PyObject * obj1 = 0 ;
12980 char * kwnames[] = {
12981 (char *) "self",(char *) "pos", NULL
12982 };
12983
12984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) SWIG_fail;
12985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
12986 if (!SWIG_IsOK(res1)) {
12987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_ShowPosition" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
12988 }
12989 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
12990 ecode2 = SWIG_AsVal_long(obj1, &val2);
12991 if (!SWIG_IsOK(ecode2)) {
12992 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_ShowPosition" "', expected argument " "2"" of type '" "long""'");
12993 }
12994 arg2 = static_cast< long >(val2);
12995 {
12996 PyThreadState* __tstate = wxPyBeginAllowThreads();
12997 (arg1)->ShowPosition(arg2);
12998 wxPyEndAllowThreads(__tstate);
12999 if (PyErr_Occurred()) SWIG_fail;
13000 }
13001 resultobj = SWIG_Py_Void();
13002 return resultobj;
13003 fail:
13004 return NULL;
13005 }
13006
13007
13008 SWIGINTERN PyObject *_wrap_TextCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13009 PyObject *resultobj = 0;
13010 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13011 wxPoint *arg2 = 0 ;
13012 long *arg3 = (long *) 0 ;
13013 long *arg4 = (long *) 0 ;
13014 wxTextCtrlHitTestResult result;
13015 void *argp1 = 0 ;
13016 int res1 = 0 ;
13017 wxPoint temp2 ;
13018 long temp3 ;
13019 int res3 = SWIG_TMPOBJ ;
13020 long temp4 ;
13021 int res4 = SWIG_TMPOBJ ;
13022 PyObject * obj0 = 0 ;
13023 PyObject * obj1 = 0 ;
13024 char * kwnames[] = {
13025 (char *) "self",(char *) "pt", NULL
13026 };
13027
13028 arg3 = &temp3;
13029 arg4 = &temp4;
13030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
13031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13032 if (!SWIG_IsOK(res1)) {
13033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTest" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13034 }
13035 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13036 {
13037 arg2 = &temp2;
13038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13039 }
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 resultobj = SWIG_From_int(static_cast< int >(result));
13047 if (SWIG_IsTmpObj(res3)) {
13048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13049 } else {
13050 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13052 }
13053 if (SWIG_IsTmpObj(res4)) {
13054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
13055 } else {
13056 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
13058 }
13059 return resultobj;
13060 fail:
13061 return NULL;
13062 }
13063
13064
13065 SWIGINTERN PyObject *_wrap_TextCtrl_HitTestPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13068 wxPoint *arg2 = 0 ;
13069 long *arg3 = (long *) 0 ;
13070 wxTextCtrlHitTestResult result;
13071 void *argp1 = 0 ;
13072 int res1 = 0 ;
13073 wxPoint temp2 ;
13074 long temp3 ;
13075 int res3 = SWIG_TMPOBJ ;
13076 PyObject * obj0 = 0 ;
13077 PyObject * obj1 = 0 ;
13078 char * kwnames[] = {
13079 (char *) "self",(char *) "pt", NULL
13080 };
13081
13082 arg3 = &temp3;
13083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) SWIG_fail;
13084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13085 if (!SWIG_IsOK(res1)) {
13086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_HitTestPos" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13087 }
13088 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13089 {
13090 arg2 = &temp2;
13091 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
13092 }
13093 {
13094 PyThreadState* __tstate = wxPyBeginAllowThreads();
13095 result = (wxTextCtrlHitTestResult)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 resultobj = SWIG_From_int(static_cast< int >(result));
13100 if (SWIG_IsTmpObj(res3)) {
13101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
13102 } else {
13103 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
13104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
13105 }
13106 return resultobj;
13107 fail:
13108 return NULL;
13109 }
13110
13111
13112 SWIGINTERN PyObject *_wrap_TextCtrl_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13113 PyObject *resultobj = 0;
13114 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13115 void *argp1 = 0 ;
13116 int res1 = 0 ;
13117 PyObject *swig_obj[1] ;
13118
13119 if (!args) SWIG_fail;
13120 swig_obj[0] = args;
13121 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13122 if (!SWIG_IsOK(res1)) {
13123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Copy" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13124 }
13125 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 (arg1)->Copy();
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 resultobj = SWIG_Py_Void();
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 SWIGINTERN PyObject *_wrap_TextCtrl_Cut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13140 PyObject *resultobj = 0;
13141 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13142 void *argp1 = 0 ;
13143 int res1 = 0 ;
13144 PyObject *swig_obj[1] ;
13145
13146 if (!args) SWIG_fail;
13147 swig_obj[0] = args;
13148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13149 if (!SWIG_IsOK(res1)) {
13150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Cut" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13151 }
13152 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13153 {
13154 PyThreadState* __tstate = wxPyBeginAllowThreads();
13155 (arg1)->Cut();
13156 wxPyEndAllowThreads(__tstate);
13157 if (PyErr_Occurred()) SWIG_fail;
13158 }
13159 resultobj = SWIG_Py_Void();
13160 return resultobj;
13161 fail:
13162 return NULL;
13163 }
13164
13165
13166 SWIGINTERN PyObject *_wrap_TextCtrl_Paste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13167 PyObject *resultobj = 0;
13168 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 PyObject *swig_obj[1] ;
13172
13173 if (!args) SWIG_fail;
13174 swig_obj[0] = args;
13175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13176 if (!SWIG_IsOK(res1)) {
13177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Paste" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13178 }
13179 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13180 {
13181 PyThreadState* __tstate = wxPyBeginAllowThreads();
13182 (arg1)->Paste();
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = SWIG_Py_Void();
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 SWIGINTERN PyObject *_wrap_TextCtrl_CanCopy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13194 PyObject *resultobj = 0;
13195 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13196 bool result;
13197 void *argp1 = 0 ;
13198 int res1 = 0 ;
13199 PyObject *swig_obj[1] ;
13200
13201 if (!args) SWIG_fail;
13202 swig_obj[0] = args;
13203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13204 if (!SWIG_IsOK(res1)) {
13205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCopy" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13206 }
13207 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
13211 wxPyEndAllowThreads(__tstate);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 {
13215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13216 }
13217 return resultobj;
13218 fail:
13219 return NULL;
13220 }
13221
13222
13223 SWIGINTERN PyObject *_wrap_TextCtrl_CanCut(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224 PyObject *resultobj = 0;
13225 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13226 bool result;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 PyObject *swig_obj[1] ;
13230
13231 if (!args) SWIG_fail;
13232 swig_obj[0] = args;
13233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13234 if (!SWIG_IsOK(res1)) {
13235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanCut" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13236 }
13237 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
13241 wxPyEndAllowThreads(__tstate);
13242 if (PyErr_Occurred()) SWIG_fail;
13243 }
13244 {
13245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13246 }
13247 return resultobj;
13248 fail:
13249 return NULL;
13250 }
13251
13252
13253 SWIGINTERN PyObject *_wrap_TextCtrl_CanPaste(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13254 PyObject *resultobj = 0;
13255 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13256 bool result;
13257 void *argp1 = 0 ;
13258 int res1 = 0 ;
13259 PyObject *swig_obj[1] ;
13260
13261 if (!args) SWIG_fail;
13262 swig_obj[0] = args;
13263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13264 if (!SWIG_IsOK(res1)) {
13265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanPaste" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13266 }
13267 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13268 {
13269 PyThreadState* __tstate = wxPyBeginAllowThreads();
13270 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
13271 wxPyEndAllowThreads(__tstate);
13272 if (PyErr_Occurred()) SWIG_fail;
13273 }
13274 {
13275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13276 }
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 SWIGINTERN PyObject *_wrap_TextCtrl_Undo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13284 PyObject *resultobj = 0;
13285 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13286 void *argp1 = 0 ;
13287 int res1 = 0 ;
13288 PyObject *swig_obj[1] ;
13289
13290 if (!args) SWIG_fail;
13291 swig_obj[0] = args;
13292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13293 if (!SWIG_IsOK(res1)) {
13294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Undo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13295 }
13296 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13297 {
13298 PyThreadState* __tstate = wxPyBeginAllowThreads();
13299 (arg1)->Undo();
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 resultobj = SWIG_Py_Void();
13304 return resultobj;
13305 fail:
13306 return NULL;
13307 }
13308
13309
13310 SWIGINTERN PyObject *_wrap_TextCtrl_Redo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13311 PyObject *resultobj = 0;
13312 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13313 void *argp1 = 0 ;
13314 int res1 = 0 ;
13315 PyObject *swig_obj[1] ;
13316
13317 if (!args) SWIG_fail;
13318 swig_obj[0] = args;
13319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13320 if (!SWIG_IsOK(res1)) {
13321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_Redo" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13322 }
13323 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->Redo();
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_Py_Void();
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 SWIGINTERN PyObject *_wrap_TextCtrl_CanUndo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13338 PyObject *resultobj = 0;
13339 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13340 bool result;
13341 void *argp1 = 0 ;
13342 int res1 = 0 ;
13343 PyObject *swig_obj[1] ;
13344
13345 if (!args) SWIG_fail;
13346 swig_obj[0] = args;
13347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13348 if (!SWIG_IsOK(res1)) {
13349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanUndo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13350 }
13351 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13352 {
13353 PyThreadState* __tstate = wxPyBeginAllowThreads();
13354 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
13355 wxPyEndAllowThreads(__tstate);
13356 if (PyErr_Occurred()) SWIG_fail;
13357 }
13358 {
13359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13360 }
13361 return resultobj;
13362 fail:
13363 return NULL;
13364 }
13365
13366
13367 SWIGINTERN PyObject *_wrap_TextCtrl_CanRedo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13368 PyObject *resultobj = 0;
13369 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13370 bool result;
13371 void *argp1 = 0 ;
13372 int res1 = 0 ;
13373 PyObject *swig_obj[1] ;
13374
13375 if (!args) SWIG_fail;
13376 swig_obj[0] = args;
13377 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13378 if (!SWIG_IsOK(res1)) {
13379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_CanRedo" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13380 }
13381 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13382 {
13383 PyThreadState* __tstate = wxPyBeginAllowThreads();
13384 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
13385 wxPyEndAllowThreads(__tstate);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 {
13389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13390 }
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj = 0;
13399 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13400 long arg2 ;
13401 void *argp1 = 0 ;
13402 int res1 = 0 ;
13403 long val2 ;
13404 int ecode2 = 0 ;
13405 PyObject * obj0 = 0 ;
13406 PyObject * obj1 = 0 ;
13407 char * kwnames[] = {
13408 (char *) "self",(char *) "pos", NULL
13409 };
13410
13411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) SWIG_fail;
13412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13413 if (!SWIG_IsOK(res1)) {
13414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13415 }
13416 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13417 ecode2 = SWIG_AsVal_long(obj1, &val2);
13418 if (!SWIG_IsOK(ecode2)) {
13419 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetInsertionPoint" "', expected argument " "2"" of type '" "long""'");
13420 }
13421 arg2 = static_cast< long >(val2);
13422 {
13423 PyThreadState* __tstate = wxPyBeginAllowThreads();
13424 (arg1)->SetInsertionPoint(arg2);
13425 wxPyEndAllowThreads(__tstate);
13426 if (PyErr_Occurred()) SWIG_fail;
13427 }
13428 resultobj = SWIG_Py_Void();
13429 return resultobj;
13430 fail:
13431 return NULL;
13432 }
13433
13434
13435 SWIGINTERN PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13436 PyObject *resultobj = 0;
13437 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13438 void *argp1 = 0 ;
13439 int res1 = 0 ;
13440 PyObject *swig_obj[1] ;
13441
13442 if (!args) SWIG_fail;
13443 swig_obj[0] = args;
13444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13445 if (!SWIG_IsOK(res1)) {
13446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetInsertionPointEnd" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13447 }
13448 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13449 {
13450 PyThreadState* __tstate = wxPyBeginAllowThreads();
13451 (arg1)->SetInsertionPointEnd();
13452 wxPyEndAllowThreads(__tstate);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 resultobj = SWIG_Py_Void();
13456 return resultobj;
13457 fail:
13458 return NULL;
13459 }
13460
13461
13462 SWIGINTERN PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13463 PyObject *resultobj = 0;
13464 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13465 long result;
13466 void *argp1 = 0 ;
13467 int res1 = 0 ;
13468 PyObject *swig_obj[1] ;
13469
13470 if (!args) SWIG_fail;
13471 swig_obj[0] = args;
13472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13473 if (!SWIG_IsOK(res1)) {
13474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetInsertionPoint" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13475 }
13476 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13477 {
13478 PyThreadState* __tstate = wxPyBeginAllowThreads();
13479 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = SWIG_From_long(static_cast< long >(result));
13484 return resultobj;
13485 fail:
13486 return NULL;
13487 }
13488
13489
13490 SWIGINTERN PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13491 PyObject *resultobj = 0;
13492 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13493 long result;
13494 void *argp1 = 0 ;
13495 int res1 = 0 ;
13496 PyObject *swig_obj[1] ;
13497
13498 if (!args) SWIG_fail;
13499 swig_obj[0] = args;
13500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13501 if (!SWIG_IsOK(res1)) {
13502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetLastPosition" "', expected argument " "1"" of type '" "wxTextCtrl const *""'");
13503 }
13504 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13505 {
13506 PyThreadState* __tstate = wxPyBeginAllowThreads();
13507 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
13508 wxPyEndAllowThreads(__tstate);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 }
13511 resultobj = SWIG_From_long(static_cast< long >(result));
13512 return resultobj;
13513 fail:
13514 return NULL;
13515 }
13516
13517
13518 SWIGINTERN PyObject *_wrap_TextCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13519 PyObject *resultobj = 0;
13520 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13521 long arg2 ;
13522 long arg3 ;
13523 void *argp1 = 0 ;
13524 int res1 = 0 ;
13525 long val2 ;
13526 int ecode2 = 0 ;
13527 long val3 ;
13528 int ecode3 = 0 ;
13529 PyObject * obj0 = 0 ;
13530 PyObject * obj1 = 0 ;
13531 PyObject * obj2 = 0 ;
13532 char * kwnames[] = {
13533 (char *) "self",(char *) "from",(char *) "to", NULL
13534 };
13535
13536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13538 if (!SWIG_IsOK(res1)) {
13539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetSelection" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13540 }
13541 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13542 ecode2 = SWIG_AsVal_long(obj1, &val2);
13543 if (!SWIG_IsOK(ecode2)) {
13544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
13545 }
13546 arg2 = static_cast< long >(val2);
13547 ecode3 = SWIG_AsVal_long(obj2, &val3);
13548 if (!SWIG_IsOK(ecode3)) {
13549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
13550 }
13551 arg3 = static_cast< long >(val3);
13552 {
13553 PyThreadState* __tstate = wxPyBeginAllowThreads();
13554 (arg1)->SetSelection(arg2,arg3);
13555 wxPyEndAllowThreads(__tstate);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
13558 resultobj = SWIG_Py_Void();
13559 return resultobj;
13560 fail:
13561 return NULL;
13562 }
13563
13564
13565 SWIGINTERN PyObject *_wrap_TextCtrl_SelectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13566 PyObject *resultobj = 0;
13567 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13568 void *argp1 = 0 ;
13569 int res1 = 0 ;
13570 PyObject *swig_obj[1] ;
13571
13572 if (!args) SWIG_fail;
13573 swig_obj[0] = args;
13574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13575 if (!SWIG_IsOK(res1)) {
13576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SelectAll" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13577 }
13578 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 (arg1)->SelectAll();
13582 wxPyEndAllowThreads(__tstate);
13583 if (PyErr_Occurred()) SWIG_fail;
13584 }
13585 resultobj = SWIG_Py_Void();
13586 return resultobj;
13587 fail:
13588 return NULL;
13589 }
13590
13591
13592 SWIGINTERN PyObject *_wrap_TextCtrl_SetEditable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13593 PyObject *resultobj = 0;
13594 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13595 bool arg2 ;
13596 void *argp1 = 0 ;
13597 int res1 = 0 ;
13598 bool val2 ;
13599 int ecode2 = 0 ;
13600 PyObject * obj0 = 0 ;
13601 PyObject * obj1 = 0 ;
13602 char * kwnames[] = {
13603 (char *) "self",(char *) "editable", NULL
13604 };
13605
13606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) SWIG_fail;
13607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13608 if (!SWIG_IsOK(res1)) {
13609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_SetEditable" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13610 }
13611 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13612 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13613 if (!SWIG_IsOK(ecode2)) {
13614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_SetEditable" "', expected argument " "2"" of type '" "bool""'");
13615 }
13616 arg2 = static_cast< bool >(val2);
13617 {
13618 PyThreadState* __tstate = wxPyBeginAllowThreads();
13619 (arg1)->SetEditable(arg2);
13620 wxPyEndAllowThreads(__tstate);
13621 if (PyErr_Occurred()) SWIG_fail;
13622 }
13623 resultobj = SWIG_Py_Void();
13624 return resultobj;
13625 fail:
13626 return NULL;
13627 }
13628
13629
13630 SWIGINTERN PyObject *_wrap_TextCtrl_write(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13631 PyObject *resultobj = 0;
13632 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13633 wxString *arg2 = 0 ;
13634 void *argp1 = 0 ;
13635 int res1 = 0 ;
13636 bool temp2 = false ;
13637 PyObject * obj0 = 0 ;
13638 PyObject * obj1 = 0 ;
13639 char * kwnames[] = {
13640 (char *) "self",(char *) "text", NULL
13641 };
13642
13643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) SWIG_fail;
13644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13645 if (!SWIG_IsOK(res1)) {
13646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_write" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13647 }
13648 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13649 {
13650 arg2 = wxString_in_helper(obj1);
13651 if (arg2 == NULL) SWIG_fail;
13652 temp2 = true;
13653 }
13654 {
13655 PyThreadState* __tstate = wxPyBeginAllowThreads();
13656 wxTextCtrl_write(arg1,(wxString const &)*arg2);
13657 wxPyEndAllowThreads(__tstate);
13658 if (PyErr_Occurred()) SWIG_fail;
13659 }
13660 resultobj = SWIG_Py_Void();
13661 {
13662 if (temp2)
13663 delete arg2;
13664 }
13665 return resultobj;
13666 fail:
13667 {
13668 if (temp2)
13669 delete arg2;
13670 }
13671 return NULL;
13672 }
13673
13674
13675 SWIGINTERN PyObject *_wrap_TextCtrl_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj = 0;
13677 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
13678 long arg2 ;
13679 long arg3 ;
13680 wxString result;
13681 void *argp1 = 0 ;
13682 int res1 = 0 ;
13683 long val2 ;
13684 int ecode2 = 0 ;
13685 long val3 ;
13686 int ecode3 = 0 ;
13687 PyObject * obj0 = 0 ;
13688 PyObject * obj1 = 0 ;
13689 PyObject * obj2 = 0 ;
13690 char * kwnames[] = {
13691 (char *) "self",(char *) "from",(char *) "to", NULL
13692 };
13693
13694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTextCtrl, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextCtrl_GetString" "', expected argument " "1"" of type '" "wxTextCtrl *""'");
13698 }
13699 arg1 = reinterpret_cast< wxTextCtrl * >(argp1);
13700 ecode2 = SWIG_AsVal_long(obj1, &val2);
13701 if (!SWIG_IsOK(ecode2)) {
13702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TextCtrl_GetString" "', expected argument " "2"" of type '" "long""'");
13703 }
13704 arg2 = static_cast< long >(val2);
13705 ecode3 = SWIG_AsVal_long(obj2, &val3);
13706 if (!SWIG_IsOK(ecode3)) {
13707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TextCtrl_GetString" "', expected argument " "3"" of type '" "long""'");
13708 }
13709 arg3 = static_cast< long >(val3);
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = wxTextCtrl_GetString(arg1,arg2,arg3);
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 {
13717 #if wxUSE_UNICODE
13718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13719 #else
13720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13721 #endif
13722 }
13723 return resultobj;
13724 fail:
13725 return NULL;
13726 }
13727
13728
13729 SWIGINTERN PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13730 PyObject *resultobj = 0;
13731 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
13732 SwigValueWrapper<wxVisualAttributes > result;
13733 int val1 ;
13734 int ecode1 = 0 ;
13735 PyObject * obj0 = 0 ;
13736 char * kwnames[] = {
13737 (char *) "variant", NULL
13738 };
13739
13740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
13741 if (obj0) {
13742 ecode1 = SWIG_AsVal_int(obj0, &val1);
13743 if (!SWIG_IsOK(ecode1)) {
13744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TextCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
13745 }
13746 arg1 = static_cast< wxWindowVariant >(val1);
13747 }
13748 {
13749 if (!wxPyCheckForApp()) SWIG_fail;
13750 PyThreadState* __tstate = wxPyBeginAllowThreads();
13751 result = wxTextCtrl::GetClassDefaultAttributes(arg1);
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 SWIGINTERN PyObject *TextCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13763 PyObject *obj;
13764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13765 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextCtrl, SWIG_NewClientData(obj));
13766 return SWIG_Py_Void();
13767 }
13768
13769 SWIGINTERN PyObject *TextCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13770 return SWIG_Python_InitShadowInstance(args);
13771 }
13772
13773 SWIGINTERN PyObject *_wrap_new_TextUrlEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 int arg1 ;
13776 wxMouseEvent *arg2 = 0 ;
13777 long arg3 ;
13778 long arg4 ;
13779 wxTextUrlEvent *result = 0 ;
13780 int val1 ;
13781 int ecode1 = 0 ;
13782 void *argp2 = 0 ;
13783 int res2 = 0 ;
13784 long val3 ;
13785 int ecode3 = 0 ;
13786 long val4 ;
13787 int ecode4 = 0 ;
13788 PyObject * obj0 = 0 ;
13789 PyObject * obj1 = 0 ;
13790 PyObject * obj2 = 0 ;
13791 PyObject * obj3 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13797 ecode1 = SWIG_AsVal_int(obj0, &val1);
13798 if (!SWIG_IsOK(ecode1)) {
13799 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TextUrlEvent" "', expected argument " "1"" of type '" "int""'");
13800 }
13801 arg1 = static_cast< int >(val1);
13802 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxMouseEvent, 0 | 0);
13803 if (!SWIG_IsOK(res2)) {
13804 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13805 }
13806 if (!argp2) {
13807 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TextUrlEvent" "', expected argument " "2"" of type '" "wxMouseEvent const &""'");
13808 }
13809 arg2 = reinterpret_cast< wxMouseEvent * >(argp2);
13810 ecode3 = SWIG_AsVal_long(obj2, &val3);
13811 if (!SWIG_IsOK(ecode3)) {
13812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TextUrlEvent" "', expected argument " "3"" of type '" "long""'");
13813 }
13814 arg3 = static_cast< long >(val3);
13815 ecode4 = SWIG_AsVal_long(obj3, &val4);
13816 if (!SWIG_IsOK(ecode4)) {
13817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TextUrlEvent" "', expected argument " "4"" of type '" "long""'");
13818 }
13819 arg4 = static_cast< long >(val4);
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
13823 wxPyEndAllowThreads(__tstate);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTextUrlEvent, SWIG_POINTER_NEW | 0 );
13827 return resultobj;
13828 fail:
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13836 wxMouseEvent *result = 0 ;
13837 void *argp1 = 0 ;
13838 int res1 = 0 ;
13839 PyObject *swig_obj[1] ;
13840
13841 if (!args) SWIG_fail;
13842 swig_obj[0] = args;
13843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13844 if (!SWIG_IsOK(res1)) {
13845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetMouseEvent" "', expected argument " "1"" of type '" "wxTextUrlEvent *""'");
13846 }
13847 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 {
13851 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
13852 result = (wxMouseEvent *) &_result_ref;
13853 }
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMouseEvent, 0 | 0 );
13858 return resultobj;
13859 fail:
13860 return NULL;
13861 }
13862
13863
13864 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13865 PyObject *resultobj = 0;
13866 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13867 long result;
13868 void *argp1 = 0 ;
13869 int res1 = 0 ;
13870 PyObject *swig_obj[1] ;
13871
13872 if (!args) SWIG_fail;
13873 swig_obj[0] = args;
13874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13875 if (!SWIG_IsOK(res1)) {
13876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLStart" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13877 }
13878 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13879 {
13880 PyThreadState* __tstate = wxPyBeginAllowThreads();
13881 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
13882 wxPyEndAllowThreads(__tstate);
13883 if (PyErr_Occurred()) SWIG_fail;
13884 }
13885 resultobj = SWIG_From_long(static_cast< long >(result));
13886 return resultobj;
13887 fail:
13888 return NULL;
13889 }
13890
13891
13892 SWIGINTERN PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13893 PyObject *resultobj = 0;
13894 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
13895 long result;
13896 void *argp1 = 0 ;
13897 int res1 = 0 ;
13898 PyObject *swig_obj[1] ;
13899
13900 if (!args) SWIG_fail;
13901 swig_obj[0] = args;
13902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTextUrlEvent, 0 | 0 );
13903 if (!SWIG_IsOK(res1)) {
13904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TextUrlEvent_GetURLEnd" "', expected argument " "1"" of type '" "wxTextUrlEvent const *""'");
13905 }
13906 arg1 = reinterpret_cast< wxTextUrlEvent * >(argp1);
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 resultobj = SWIG_From_long(static_cast< long >(result));
13914 return resultobj;
13915 fail:
13916 return NULL;
13917 }
13918
13919
13920 SWIGINTERN PyObject *TextUrlEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13921 PyObject *obj;
13922 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13923 SWIG_TypeNewClientData(SWIGTYPE_p_wxTextUrlEvent, SWIG_NewClientData(obj));
13924 return SWIG_Py_Void();
13925 }
13926
13927 SWIGINTERN PyObject *TextUrlEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13928 return SWIG_Python_InitShadowInstance(args);
13929 }
13930
13931 SWIGINTERN int ScrollBarNameStr_set(PyObject *) {
13932 SWIG_Error(SWIG_AttributeError,"Variable ScrollBarNameStr is read-only.");
13933 return 1;
13934 }
13935
13936
13937 SWIGINTERN PyObject *ScrollBarNameStr_get(void) {
13938 PyObject *pyobj = 0;
13939
13940 {
13941 #if wxUSE_UNICODE
13942 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13943 #else
13944 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
13945 #endif
13946 }
13947 return pyobj;
13948 }
13949
13950
13951 SWIGINTERN PyObject *_wrap_new_ScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13952 PyObject *resultobj = 0;
13953 wxWindow *arg1 = (wxWindow *) 0 ;
13954 int arg2 = (int) -1 ;
13955 wxPoint const &arg3_defvalue = wxDefaultPosition ;
13956 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
13957 wxSize const &arg4_defvalue = wxDefaultSize ;
13958 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
13959 long arg5 = (long) wxSB_HORIZONTAL ;
13960 wxValidator const &arg6_defvalue = wxDefaultValidator ;
13961 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
13962 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
13963 wxString *arg7 = (wxString *) &arg7_defvalue ;
13964 wxScrollBar *result = 0 ;
13965 void *argp1 = 0 ;
13966 int res1 = 0 ;
13967 int val2 ;
13968 int ecode2 = 0 ;
13969 wxPoint temp3 ;
13970 wxSize temp4 ;
13971 long val5 ;
13972 int ecode5 = 0 ;
13973 void *argp6 = 0 ;
13974 int res6 = 0 ;
13975 bool temp7 = false ;
13976 PyObject * obj0 = 0 ;
13977 PyObject * obj1 = 0 ;
13978 PyObject * obj2 = 0 ;
13979 PyObject * obj3 = 0 ;
13980 PyObject * obj4 = 0 ;
13981 PyObject * obj5 = 0 ;
13982 PyObject * obj6 = 0 ;
13983 char * kwnames[] = {
13984 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13985 };
13986
13987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
13989 if (!SWIG_IsOK(res1)) {
13990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ScrollBar" "', expected argument " "1"" of type '" "wxWindow *""'");
13991 }
13992 arg1 = reinterpret_cast< wxWindow * >(argp1);
13993 if (obj1) {
13994 ecode2 = SWIG_AsVal_int(obj1, &val2);
13995 if (!SWIG_IsOK(ecode2)) {
13996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ScrollBar" "', expected argument " "2"" of type '" "int""'");
13997 }
13998 arg2 = static_cast< int >(val2);
13999 }
14000 if (obj2) {
14001 {
14002 arg3 = &temp3;
14003 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14004 }
14005 }
14006 if (obj3) {
14007 {
14008 arg4 = &temp4;
14009 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14010 }
14011 }
14012 if (obj4) {
14013 ecode5 = SWIG_AsVal_long(obj4, &val5);
14014 if (!SWIG_IsOK(ecode5)) {
14015 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ScrollBar" "', expected argument " "5"" of type '" "long""'");
14016 }
14017 arg5 = static_cast< long >(val5);
14018 }
14019 if (obj5) {
14020 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
14021 if (!SWIG_IsOK(res6)) {
14022 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14023 }
14024 if (!argp6) {
14025 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ScrollBar" "', expected argument " "6"" of type '" "wxValidator const &""'");
14026 }
14027 arg6 = reinterpret_cast< wxValidator * >(argp6);
14028 }
14029 if (obj6) {
14030 {
14031 arg7 = wxString_in_helper(obj6);
14032 if (arg7 == NULL) SWIG_fail;
14033 temp7 = true;
14034 }
14035 }
14036 {
14037 if (!wxPyCheckForApp()) SWIG_fail;
14038 PyThreadState* __tstate = wxPyBeginAllowThreads();
14039 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
14040 wxPyEndAllowThreads(__tstate);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 }
14043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_NEW | 0 );
14044 {
14045 if (temp7)
14046 delete arg7;
14047 }
14048 return resultobj;
14049 fail:
14050 {
14051 if (temp7)
14052 delete arg7;
14053 }
14054 return NULL;
14055 }
14056
14057
14058 SWIGINTERN PyObject *_wrap_new_PreScrollBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14059 PyObject *resultobj = 0;
14060 wxScrollBar *result = 0 ;
14061
14062 if (!SWIG_Python_UnpackTuple(args,"new_PreScrollBar",0,0,0)) SWIG_fail;
14063 {
14064 if (!wxPyCheckForApp()) SWIG_fail;
14065 PyThreadState* __tstate = wxPyBeginAllowThreads();
14066 result = (wxScrollBar *)new wxScrollBar();
14067 wxPyEndAllowThreads(__tstate);
14068 if (PyErr_Occurred()) SWIG_fail;
14069 }
14070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScrollBar, SWIG_POINTER_OWN | 0 );
14071 return resultobj;
14072 fail:
14073 return NULL;
14074 }
14075
14076
14077 SWIGINTERN PyObject *_wrap_ScrollBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj = 0;
14079 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14080 wxWindow *arg2 = (wxWindow *) 0 ;
14081 int arg3 = (int) -1 ;
14082 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14083 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14084 wxSize const &arg5_defvalue = wxDefaultSize ;
14085 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14086 long arg6 = (long) wxSB_HORIZONTAL ;
14087 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14088 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14089 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
14090 wxString *arg8 = (wxString *) &arg8_defvalue ;
14091 bool result;
14092 void *argp1 = 0 ;
14093 int res1 = 0 ;
14094 void *argp2 = 0 ;
14095 int res2 = 0 ;
14096 int val3 ;
14097 int ecode3 = 0 ;
14098 wxPoint temp4 ;
14099 wxSize temp5 ;
14100 long val6 ;
14101 int ecode6 = 0 ;
14102 void *argp7 = 0 ;
14103 int res7 = 0 ;
14104 bool temp8 = false ;
14105 PyObject * obj0 = 0 ;
14106 PyObject * obj1 = 0 ;
14107 PyObject * obj2 = 0 ;
14108 PyObject * obj3 = 0 ;
14109 PyObject * obj4 = 0 ;
14110 PyObject * obj5 = 0 ;
14111 PyObject * obj6 = 0 ;
14112 PyObject * obj7 = 0 ;
14113 char * kwnames[] = {
14114 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14115 };
14116
14117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
14118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14119 if (!SWIG_IsOK(res1)) {
14120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_Create" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14121 }
14122 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14123 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14124 if (!SWIG_IsOK(res2)) {
14125 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScrollBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14126 }
14127 arg2 = reinterpret_cast< wxWindow * >(argp2);
14128 if (obj2) {
14129 ecode3 = SWIG_AsVal_int(obj2, &val3);
14130 if (!SWIG_IsOK(ecode3)) {
14131 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ScrollBar_Create" "', expected argument " "3"" of type '" "int""'");
14132 }
14133 arg3 = static_cast< int >(val3);
14134 }
14135 if (obj3) {
14136 {
14137 arg4 = &temp4;
14138 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14139 }
14140 }
14141 if (obj4) {
14142 {
14143 arg5 = &temp5;
14144 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14145 }
14146 }
14147 if (obj5) {
14148 ecode6 = SWIG_AsVal_long(obj5, &val6);
14149 if (!SWIG_IsOK(ecode6)) {
14150 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ScrollBar_Create" "', expected argument " "6"" of type '" "long""'");
14151 }
14152 arg6 = static_cast< long >(val6);
14153 }
14154 if (obj6) {
14155 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
14156 if (!SWIG_IsOK(res7)) {
14157 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14158 }
14159 if (!argp7) {
14160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ScrollBar_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
14161 }
14162 arg7 = reinterpret_cast< wxValidator * >(argp7);
14163 }
14164 if (obj7) {
14165 {
14166 arg8 = wxString_in_helper(obj7);
14167 if (arg8 == NULL) SWIG_fail;
14168 temp8 = true;
14169 }
14170 }
14171 {
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14174 wxPyEndAllowThreads(__tstate);
14175 if (PyErr_Occurred()) SWIG_fail;
14176 }
14177 {
14178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14179 }
14180 {
14181 if (temp8)
14182 delete arg8;
14183 }
14184 return resultobj;
14185 fail:
14186 {
14187 if (temp8)
14188 delete arg8;
14189 }
14190 return NULL;
14191 }
14192
14193
14194 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14197 int result;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 PyObject *swig_obj[1] ;
14201
14202 if (!args) SWIG_fail;
14203 swig_obj[0] = args;
14204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14205 if (!SWIG_IsOK(res1)) {
14206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14207 }
14208 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_From_int(static_cast< int >(result));
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 SWIGINTERN PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14223 PyObject *resultobj = 0;
14224 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14225 int result;
14226 void *argp1 = 0 ;
14227 int res1 = 0 ;
14228 PyObject *swig_obj[1] ;
14229
14230 if (!args) SWIG_fail;
14231 swig_obj[0] = args;
14232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14233 if (!SWIG_IsOK(res1)) {
14234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetThumbSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14235 }
14236 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 resultobj = SWIG_From_int(static_cast< int >(result));
14244 return resultobj;
14245 fail:
14246 return NULL;
14247 }
14248
14249
14250 SWIGINTERN PyObject *_wrap_ScrollBar_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14251 PyObject *resultobj = 0;
14252 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14253 int result;
14254 void *argp1 = 0 ;
14255 int res1 = 0 ;
14256 PyObject *swig_obj[1] ;
14257
14258 if (!args) SWIG_fail;
14259 swig_obj[0] = args;
14260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14261 if (!SWIG_IsOK(res1)) {
14262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetPageSize" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14263 }
14264 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14265 {
14266 PyThreadState* __tstate = wxPyBeginAllowThreads();
14267 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 resultobj = SWIG_From_int(static_cast< int >(result));
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 SWIGINTERN PyObject *_wrap_ScrollBar_GetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14279 PyObject *resultobj = 0;
14280 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14281 int result;
14282 void *argp1 = 0 ;
14283 int res1 = 0 ;
14284 PyObject *swig_obj[1] ;
14285
14286 if (!args) SWIG_fail;
14287 swig_obj[0] = args;
14288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14289 if (!SWIG_IsOK(res1)) {
14290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_GetRange" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14291 }
14292 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14293 {
14294 PyThreadState* __tstate = wxPyBeginAllowThreads();
14295 result = (int)((wxScrollBar const *)arg1)->GetRange();
14296 wxPyEndAllowThreads(__tstate);
14297 if (PyErr_Occurred()) SWIG_fail;
14298 }
14299 resultobj = SWIG_From_int(static_cast< int >(result));
14300 return resultobj;
14301 fail:
14302 return NULL;
14303 }
14304
14305
14306 SWIGINTERN PyObject *_wrap_ScrollBar_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14307 PyObject *resultobj = 0;
14308 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14309 bool result;
14310 void *argp1 = 0 ;
14311 int res1 = 0 ;
14312 PyObject *swig_obj[1] ;
14313
14314 if (!args) SWIG_fail;
14315 swig_obj[0] = args;
14316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14317 if (!SWIG_IsOK(res1)) {
14318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_IsVertical" "', expected argument " "1"" of type '" "wxScrollBar const *""'");
14319 }
14320 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
14324 wxPyEndAllowThreads(__tstate);
14325 if (PyErr_Occurred()) SWIG_fail;
14326 }
14327 {
14328 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14329 }
14330 return resultobj;
14331 fail:
14332 return NULL;
14333 }
14334
14335
14336 SWIGINTERN PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14337 PyObject *resultobj = 0;
14338 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
14339 int arg2 ;
14340 void *argp1 = 0 ;
14341 int res1 = 0 ;
14342 int val2 ;
14343 int ecode2 = 0 ;
14344 PyObject * obj0 = 0 ;
14345 PyObject * obj1 = 0 ;
14346 char * kwnames[] = {
14347 (char *) "self",(char *) "viewStart", NULL
14348 };
14349
14350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) SWIG_fail;
14351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScrollBar, 0 | 0 );
14352 if (!SWIG_IsOK(res1)) {
14353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "1"" of type '" "wxScrollBar *""'");
14354 }
14355 arg1 = reinterpret_cast< wxScrollBar * >(argp1);
14356 ecode2 = SWIG_AsVal_int(obj1, &val2);
14357 if (!SWIG_IsOK(ecode2)) {
14358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ScrollBar_SetThumbPosition" "', expected argument " "2"" of type '" "int""'");
14359 }
14360 arg2 = static_cast< int >(val2);
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 (arg1)->SetThumbPosition(arg2);
14364 wxPyEndAllowThreads(__tstate);
14365 if (PyErr_Occurred()) SWIG_fail;
14366 }
14367 resultobj = SWIG_Py_Void();
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj = 0;
14376 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14377 SwigValueWrapper<wxVisualAttributes > result;
14378 int val1 ;
14379 int ecode1 = 0 ;
14380 PyObject * obj0 = 0 ;
14381 char * kwnames[] = {
14382 (char *) "variant", NULL
14383 };
14384
14385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14386 if (obj0) {
14387 ecode1 = SWIG_AsVal_int(obj0, &val1);
14388 if (!SWIG_IsOK(ecode1)) {
14389 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ScrollBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14390 }
14391 arg1 = static_cast< wxWindowVariant >(val1);
14392 }
14393 {
14394 if (!wxPyCheckForApp()) SWIG_fail;
14395 PyThreadState* __tstate = wxPyBeginAllowThreads();
14396 result = wxScrollBar::GetClassDefaultAttributes(arg1);
14397 wxPyEndAllowThreads(__tstate);
14398 if (PyErr_Occurred()) SWIG_fail;
14399 }
14400 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14401 return resultobj;
14402 fail:
14403 return NULL;
14404 }
14405
14406
14407 SWIGINTERN PyObject *ScrollBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14408 PyObject *obj;
14409 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14410 SWIG_TypeNewClientData(SWIGTYPE_p_wxScrollBar, SWIG_NewClientData(obj));
14411 return SWIG_Py_Void();
14412 }
14413
14414 SWIGINTERN PyObject *ScrollBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14415 return SWIG_Python_InitShadowInstance(args);
14416 }
14417
14418 SWIGINTERN int SPIN_BUTTON_NAME_set(PyObject *) {
14419 SWIG_Error(SWIG_AttributeError,"Variable SPIN_BUTTON_NAME is read-only.");
14420 return 1;
14421 }
14422
14423
14424 SWIGINTERN PyObject *SPIN_BUTTON_NAME_get(void) {
14425 PyObject *pyobj = 0;
14426
14427 {
14428 #if wxUSE_UNICODE
14429 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14430 #else
14431 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
14432 #endif
14433 }
14434 return pyobj;
14435 }
14436
14437
14438 SWIGINTERN int SpinCtrlNameStr_set(PyObject *) {
14439 SWIG_Error(SWIG_AttributeError,"Variable SpinCtrlNameStr is read-only.");
14440 return 1;
14441 }
14442
14443
14444 SWIGINTERN PyObject *SpinCtrlNameStr_get(void) {
14445 PyObject *pyobj = 0;
14446
14447 {
14448 #if wxUSE_UNICODE
14449 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14450 #else
14451 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
14452 #endif
14453 }
14454 return pyobj;
14455 }
14456
14457
14458 SWIGINTERN PyObject *_wrap_new_SpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14459 PyObject *resultobj = 0;
14460 wxWindow *arg1 = (wxWindow *) 0 ;
14461 int arg2 = (int) -1 ;
14462 wxPoint const &arg3_defvalue = wxDefaultPosition ;
14463 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
14464 wxSize const &arg4_defvalue = wxDefaultSize ;
14465 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
14466 long arg5 = (long) wxSP_HORIZONTAL ;
14467 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
14468 wxString *arg6 = (wxString *) &arg6_defvalue ;
14469 wxSpinButton *result = 0 ;
14470 void *argp1 = 0 ;
14471 int res1 = 0 ;
14472 int val2 ;
14473 int ecode2 = 0 ;
14474 wxPoint temp3 ;
14475 wxSize temp4 ;
14476 long val5 ;
14477 int ecode5 = 0 ;
14478 bool temp6 = false ;
14479 PyObject * obj0 = 0 ;
14480 PyObject * obj1 = 0 ;
14481 PyObject * obj2 = 0 ;
14482 PyObject * obj3 = 0 ;
14483 PyObject * obj4 = 0 ;
14484 PyObject * obj5 = 0 ;
14485 char * kwnames[] = {
14486 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14487 };
14488
14489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
14490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
14491 if (!SWIG_IsOK(res1)) {
14492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinButton" "', expected argument " "1"" of type '" "wxWindow *""'");
14493 }
14494 arg1 = reinterpret_cast< wxWindow * >(argp1);
14495 if (obj1) {
14496 ecode2 = SWIG_AsVal_int(obj1, &val2);
14497 if (!SWIG_IsOK(ecode2)) {
14498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinButton" "', expected argument " "2"" of type '" "int""'");
14499 }
14500 arg2 = static_cast< int >(val2);
14501 }
14502 if (obj2) {
14503 {
14504 arg3 = &temp3;
14505 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14506 }
14507 }
14508 if (obj3) {
14509 {
14510 arg4 = &temp4;
14511 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
14512 }
14513 }
14514 if (obj4) {
14515 ecode5 = SWIG_AsVal_long(obj4, &val5);
14516 if (!SWIG_IsOK(ecode5)) {
14517 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_SpinButton" "', expected argument " "5"" of type '" "long""'");
14518 }
14519 arg5 = static_cast< long >(val5);
14520 }
14521 if (obj5) {
14522 {
14523 arg6 = wxString_in_helper(obj5);
14524 if (arg6 == NULL) SWIG_fail;
14525 temp6 = true;
14526 }
14527 }
14528 {
14529 if (!wxPyCheckForApp()) SWIG_fail;
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
14532 wxPyEndAllowThreads(__tstate);
14533 if (PyErr_Occurred()) SWIG_fail;
14534 }
14535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_NEW | 0 );
14536 {
14537 if (temp6)
14538 delete arg6;
14539 }
14540 return resultobj;
14541 fail:
14542 {
14543 if (temp6)
14544 delete arg6;
14545 }
14546 return NULL;
14547 }
14548
14549
14550 SWIGINTERN PyObject *_wrap_new_PreSpinButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14551 PyObject *resultobj = 0;
14552 wxSpinButton *result = 0 ;
14553
14554 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinButton",0,0,0)) SWIG_fail;
14555 {
14556 if (!wxPyCheckForApp()) SWIG_fail;
14557 PyThreadState* __tstate = wxPyBeginAllowThreads();
14558 result = (wxSpinButton *)new wxSpinButton();
14559 wxPyEndAllowThreads(__tstate);
14560 if (PyErr_Occurred()) SWIG_fail;
14561 }
14562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinButton, SWIG_POINTER_OWN | 0 );
14563 return resultobj;
14564 fail:
14565 return NULL;
14566 }
14567
14568
14569 SWIGINTERN PyObject *_wrap_SpinButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14570 PyObject *resultobj = 0;
14571 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14572 wxWindow *arg2 = (wxWindow *) 0 ;
14573 int arg3 = (int) -1 ;
14574 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14575 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14576 wxSize const &arg5_defvalue = wxDefaultSize ;
14577 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14578 long arg6 = (long) wxSP_HORIZONTAL ;
14579 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
14580 wxString *arg7 = (wxString *) &arg7_defvalue ;
14581 bool result;
14582 void *argp1 = 0 ;
14583 int res1 = 0 ;
14584 void *argp2 = 0 ;
14585 int res2 = 0 ;
14586 int val3 ;
14587 int ecode3 = 0 ;
14588 wxPoint temp4 ;
14589 wxSize temp5 ;
14590 long val6 ;
14591 int ecode6 = 0 ;
14592 bool temp7 = false ;
14593 PyObject * obj0 = 0 ;
14594 PyObject * obj1 = 0 ;
14595 PyObject * obj2 = 0 ;
14596 PyObject * obj3 = 0 ;
14597 PyObject * obj4 = 0 ;
14598 PyObject * obj5 = 0 ;
14599 PyObject * obj6 = 0 ;
14600 char * kwnames[] = {
14601 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
14602 };
14603
14604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14606 if (!SWIG_IsOK(res1)) {
14607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_Create" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14608 }
14609 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14610 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14611 if (!SWIG_IsOK(res2)) {
14612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
14613 }
14614 arg2 = reinterpret_cast< wxWindow * >(argp2);
14615 if (obj2) {
14616 ecode3 = SWIG_AsVal_int(obj2, &val3);
14617 if (!SWIG_IsOK(ecode3)) {
14618 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_Create" "', expected argument " "3"" of type '" "int""'");
14619 }
14620 arg3 = static_cast< int >(val3);
14621 }
14622 if (obj3) {
14623 {
14624 arg4 = &temp4;
14625 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14626 }
14627 }
14628 if (obj4) {
14629 {
14630 arg5 = &temp5;
14631 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14632 }
14633 }
14634 if (obj5) {
14635 ecode6 = SWIG_AsVal_long(obj5, &val6);
14636 if (!SWIG_IsOK(ecode6)) {
14637 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "SpinButton_Create" "', expected argument " "6"" of type '" "long""'");
14638 }
14639 arg6 = static_cast< long >(val6);
14640 }
14641 if (obj6) {
14642 {
14643 arg7 = wxString_in_helper(obj6);
14644 if (arg7 == NULL) SWIG_fail;
14645 temp7 = true;
14646 }
14647 }
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 {
14655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14656 }
14657 {
14658 if (temp7)
14659 delete arg7;
14660 }
14661 return resultobj;
14662 fail:
14663 {
14664 if (temp7)
14665 delete arg7;
14666 }
14667 return NULL;
14668 }
14669
14670
14671 SWIGINTERN PyObject *_wrap_SpinButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14672 PyObject *resultobj = 0;
14673 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14674 int result;
14675 void *argp1 = 0 ;
14676 int res1 = 0 ;
14677 PyObject *swig_obj[1] ;
14678
14679 if (!args) SWIG_fail;
14680 swig_obj[0] = args;
14681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14682 if (!SWIG_IsOK(res1)) {
14683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetValue" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14684 }
14685 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = (int)((wxSpinButton const *)arg1)->GetValue();
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_From_int(static_cast< int >(result));
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_SpinButton_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 PyObject *resultobj = 0;
14701 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14702 int result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 PyObject *swig_obj[1] ;
14706
14707 if (!args) SWIG_fail;
14708 swig_obj[0] = args;
14709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMin" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14712 }
14713 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = (int)((wxSpinButton const *)arg1)->GetMin();
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 resultobj = SWIG_From_int(static_cast< int >(result));
14721 return resultobj;
14722 fail:
14723 return NULL;
14724 }
14725
14726
14727 SWIGINTERN PyObject *_wrap_SpinButton_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14728 PyObject *resultobj = 0;
14729 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14730 int result;
14731 void *argp1 = 0 ;
14732 int res1 = 0 ;
14733 PyObject *swig_obj[1] ;
14734
14735 if (!args) SWIG_fail;
14736 swig_obj[0] = args;
14737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14738 if (!SWIG_IsOK(res1)) {
14739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_GetMax" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14740 }
14741 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 result = (int)((wxSpinButton const *)arg1)->GetMax();
14745 wxPyEndAllowThreads(__tstate);
14746 if (PyErr_Occurred()) SWIG_fail;
14747 }
14748 resultobj = SWIG_From_int(static_cast< int >(result));
14749 return resultobj;
14750 fail:
14751 return NULL;
14752 }
14753
14754
14755 SWIGINTERN PyObject *_wrap_SpinButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj = 0;
14757 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14758 int arg2 ;
14759 void *argp1 = 0 ;
14760 int res1 = 0 ;
14761 int val2 ;
14762 int ecode2 = 0 ;
14763 PyObject * obj0 = 0 ;
14764 PyObject * obj1 = 0 ;
14765 char * kwnames[] = {
14766 (char *) "self",(char *) "val", NULL
14767 };
14768
14769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
14770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14771 if (!SWIG_IsOK(res1)) {
14772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetValue" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14773 }
14774 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14775 ecode2 = SWIG_AsVal_int(obj1, &val2);
14776 if (!SWIG_IsOK(ecode2)) {
14777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetValue" "', expected argument " "2"" of type '" "int""'");
14778 }
14779 arg2 = static_cast< int >(val2);
14780 {
14781 PyThreadState* __tstate = wxPyBeginAllowThreads();
14782 (arg1)->SetValue(arg2);
14783 wxPyEndAllowThreads(__tstate);
14784 if (PyErr_Occurred()) SWIG_fail;
14785 }
14786 resultobj = SWIG_Py_Void();
14787 return resultobj;
14788 fail:
14789 return NULL;
14790 }
14791
14792
14793 SWIGINTERN PyObject *_wrap_SpinButton_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14794 PyObject *resultobj = 0;
14795 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14796 int arg2 ;
14797 void *argp1 = 0 ;
14798 int res1 = 0 ;
14799 int val2 ;
14800 int ecode2 = 0 ;
14801 PyObject * obj0 = 0 ;
14802 PyObject * obj1 = 0 ;
14803 char * kwnames[] = {
14804 (char *) "self",(char *) "minVal", NULL
14805 };
14806
14807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
14808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14809 if (!SWIG_IsOK(res1)) {
14810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMin" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14811 }
14812 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14813 ecode2 = SWIG_AsVal_int(obj1, &val2);
14814 if (!SWIG_IsOK(ecode2)) {
14815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMin" "', expected argument " "2"" of type '" "int""'");
14816 }
14817 arg2 = static_cast< int >(val2);
14818 {
14819 PyThreadState* __tstate = wxPyBeginAllowThreads();
14820 (arg1)->SetMin(arg2);
14821 wxPyEndAllowThreads(__tstate);
14822 if (PyErr_Occurred()) SWIG_fail;
14823 }
14824 resultobj = SWIG_Py_Void();
14825 return resultobj;
14826 fail:
14827 return NULL;
14828 }
14829
14830
14831 SWIGINTERN PyObject *_wrap_SpinButton_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14832 PyObject *resultobj = 0;
14833 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14834 int arg2 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 int val2 ;
14838 int ecode2 = 0 ;
14839 PyObject * obj0 = 0 ;
14840 PyObject * obj1 = 0 ;
14841 char * kwnames[] = {
14842 (char *) "self",(char *) "maxVal", NULL
14843 };
14844
14845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
14846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14847 if (!SWIG_IsOK(res1)) {
14848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetMax" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14849 }
14850 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14851 ecode2 = SWIG_AsVal_int(obj1, &val2);
14852 if (!SWIG_IsOK(ecode2)) {
14853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetMax" "', expected argument " "2"" of type '" "int""'");
14854 }
14855 arg2 = static_cast< int >(val2);
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 (arg1)->SetMax(arg2);
14859 wxPyEndAllowThreads(__tstate);
14860 if (PyErr_Occurred()) SWIG_fail;
14861 }
14862 resultobj = SWIG_Py_Void();
14863 return resultobj;
14864 fail:
14865 return NULL;
14866 }
14867
14868
14869 SWIGINTERN PyObject *_wrap_SpinButton_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14870 PyObject *resultobj = 0;
14871 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14872 int arg2 ;
14873 int arg3 ;
14874 void *argp1 = 0 ;
14875 int res1 = 0 ;
14876 int val2 ;
14877 int ecode2 = 0 ;
14878 int val3 ;
14879 int ecode3 = 0 ;
14880 PyObject * obj0 = 0 ;
14881 PyObject * obj1 = 0 ;
14882 PyObject * obj2 = 0 ;
14883 char * kwnames[] = {
14884 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
14885 };
14886
14887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14889 if (!SWIG_IsOK(res1)) {
14890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_SetRange" "', expected argument " "1"" of type '" "wxSpinButton *""'");
14891 }
14892 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14893 ecode2 = SWIG_AsVal_int(obj1, &val2);
14894 if (!SWIG_IsOK(ecode2)) {
14895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinButton_SetRange" "', expected argument " "2"" of type '" "int""'");
14896 }
14897 arg2 = static_cast< int >(val2);
14898 ecode3 = SWIG_AsVal_int(obj2, &val3);
14899 if (!SWIG_IsOK(ecode3)) {
14900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinButton_SetRange" "', expected argument " "3"" of type '" "int""'");
14901 }
14902 arg3 = static_cast< int >(val3);
14903 {
14904 PyThreadState* __tstate = wxPyBeginAllowThreads();
14905 (arg1)->SetRange(arg2,arg3);
14906 wxPyEndAllowThreads(__tstate);
14907 if (PyErr_Occurred()) SWIG_fail;
14908 }
14909 resultobj = SWIG_Py_Void();
14910 return resultobj;
14911 fail:
14912 return NULL;
14913 }
14914
14915
14916 SWIGINTERN PyObject *_wrap_SpinButton_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14917 PyObject *resultobj = 0;
14918 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
14919 bool result;
14920 void *argp1 = 0 ;
14921 int res1 = 0 ;
14922 PyObject *swig_obj[1] ;
14923
14924 if (!args) SWIG_fail;
14925 swig_obj[0] = args;
14926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinButton, 0 | 0 );
14927 if (!SWIG_IsOK(res1)) {
14928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinButton_IsVertical" "', expected argument " "1"" of type '" "wxSpinButton const *""'");
14929 }
14930 arg1 = reinterpret_cast< wxSpinButton * >(argp1);
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
14937 {
14938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14939 }
14940 return resultobj;
14941 fail:
14942 return NULL;
14943 }
14944
14945
14946 SWIGINTERN PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14947 PyObject *resultobj = 0;
14948 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
14949 SwigValueWrapper<wxVisualAttributes > result;
14950 int val1 ;
14951 int ecode1 = 0 ;
14952 PyObject * obj0 = 0 ;
14953 char * kwnames[] = {
14954 (char *) "variant", NULL
14955 };
14956
14957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
14958 if (obj0) {
14959 ecode1 = SWIG_AsVal_int(obj0, &val1);
14960 if (!SWIG_IsOK(ecode1)) {
14961 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
14962 }
14963 arg1 = static_cast< wxWindowVariant >(val1);
14964 }
14965 {
14966 if (!wxPyCheckForApp()) SWIG_fail;
14967 PyThreadState* __tstate = wxPyBeginAllowThreads();
14968 result = wxSpinButton::GetClassDefaultAttributes(arg1);
14969 wxPyEndAllowThreads(__tstate);
14970 if (PyErr_Occurred()) SWIG_fail;
14971 }
14972 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
14973 return resultobj;
14974 fail:
14975 return NULL;
14976 }
14977
14978
14979 SWIGINTERN PyObject *SpinButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14980 PyObject *obj;
14981 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14982 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinButton, SWIG_NewClientData(obj));
14983 return SWIG_Py_Void();
14984 }
14985
14986 SWIGINTERN PyObject *SpinButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14987 return SWIG_Python_InitShadowInstance(args);
14988 }
14989
14990 SWIGINTERN PyObject *_wrap_new_SpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14991 PyObject *resultobj = 0;
14992 wxWindow *arg1 = (wxWindow *) 0 ;
14993 int arg2 = (int) -1 ;
14994 wxString const &arg3_defvalue = wxPyEmptyString ;
14995 wxString *arg3 = (wxString *) &arg3_defvalue ;
14996 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14997 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14998 wxSize const &arg5_defvalue = wxDefaultSize ;
14999 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15000 long arg6 = (long) wxSP_ARROW_KEYS ;
15001 int arg7 = (int) 0 ;
15002 int arg8 = (int) 100 ;
15003 int arg9 = (int) 0 ;
15004 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
15005 wxString *arg10 = (wxString *) &arg10_defvalue ;
15006 wxSpinCtrl *result = 0 ;
15007 void *argp1 = 0 ;
15008 int res1 = 0 ;
15009 int val2 ;
15010 int ecode2 = 0 ;
15011 bool temp3 = false ;
15012 wxPoint temp4 ;
15013 wxSize temp5 ;
15014 long val6 ;
15015 int ecode6 = 0 ;
15016 int val7 ;
15017 int ecode7 = 0 ;
15018 int val8 ;
15019 int ecode8 = 0 ;
15020 int val9 ;
15021 int ecode9 = 0 ;
15022 bool temp10 = false ;
15023 PyObject * obj0 = 0 ;
15024 PyObject * obj1 = 0 ;
15025 PyObject * obj2 = 0 ;
15026 PyObject * obj3 = 0 ;
15027 PyObject * obj4 = 0 ;
15028 PyObject * obj5 = 0 ;
15029 PyObject * obj6 = 0 ;
15030 PyObject * obj7 = 0 ;
15031 PyObject * obj8 = 0 ;
15032 PyObject * obj9 = 0 ;
15033 char * kwnames[] = {
15034 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15035 };
15036
15037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15039 if (!SWIG_IsOK(res1)) {
15040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_SpinCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
15041 }
15042 arg1 = reinterpret_cast< wxWindow * >(argp1);
15043 if (obj1) {
15044 ecode2 = SWIG_AsVal_int(obj1, &val2);
15045 if (!SWIG_IsOK(ecode2)) {
15046 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinCtrl" "', expected argument " "2"" of type '" "int""'");
15047 }
15048 arg2 = static_cast< int >(val2);
15049 }
15050 if (obj2) {
15051 {
15052 arg3 = wxString_in_helper(obj2);
15053 if (arg3 == NULL) SWIG_fail;
15054 temp3 = true;
15055 }
15056 }
15057 if (obj3) {
15058 {
15059 arg4 = &temp4;
15060 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15061 }
15062 }
15063 if (obj4) {
15064 {
15065 arg5 = &temp5;
15066 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15067 }
15068 }
15069 if (obj5) {
15070 ecode6 = SWIG_AsVal_long(obj5, &val6);
15071 if (!SWIG_IsOK(ecode6)) {
15072 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_SpinCtrl" "', expected argument " "6"" of type '" "long""'");
15073 }
15074 arg6 = static_cast< long >(val6);
15075 }
15076 if (obj6) {
15077 ecode7 = SWIG_AsVal_int(obj6, &val7);
15078 if (!SWIG_IsOK(ecode7)) {
15079 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_SpinCtrl" "', expected argument " "7"" of type '" "int""'");
15080 }
15081 arg7 = static_cast< int >(val7);
15082 }
15083 if (obj7) {
15084 ecode8 = SWIG_AsVal_int(obj7, &val8);
15085 if (!SWIG_IsOK(ecode8)) {
15086 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_SpinCtrl" "', expected argument " "8"" of type '" "int""'");
15087 }
15088 arg8 = static_cast< int >(val8);
15089 }
15090 if (obj8) {
15091 ecode9 = SWIG_AsVal_int(obj8, &val9);
15092 if (!SWIG_IsOK(ecode9)) {
15093 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "new_SpinCtrl" "', expected argument " "9"" of type '" "int""'");
15094 }
15095 arg9 = static_cast< int >(val9);
15096 }
15097 if (obj9) {
15098 {
15099 arg10 = wxString_in_helper(obj9);
15100 if (arg10 == NULL) SWIG_fail;
15101 temp10 = true;
15102 }
15103 }
15104 {
15105 if (!wxPyCheckForApp()) SWIG_fail;
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
15108 wxPyEndAllowThreads(__tstate);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_NEW | 0 );
15112 {
15113 if (temp3)
15114 delete arg3;
15115 }
15116 {
15117 if (temp10)
15118 delete arg10;
15119 }
15120 return resultobj;
15121 fail:
15122 {
15123 if (temp3)
15124 delete arg3;
15125 }
15126 {
15127 if (temp10)
15128 delete arg10;
15129 }
15130 return NULL;
15131 }
15132
15133
15134 SWIGINTERN PyObject *_wrap_new_PreSpinCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15135 PyObject *resultobj = 0;
15136 wxSpinCtrl *result = 0 ;
15137
15138 if (!SWIG_Python_UnpackTuple(args,"new_PreSpinCtrl",0,0,0)) SWIG_fail;
15139 {
15140 if (!wxPyCheckForApp()) SWIG_fail;
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 result = (wxSpinCtrl *)new wxSpinCtrl();
15143 wxPyEndAllowThreads(__tstate);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 }
15146 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinCtrl, SWIG_POINTER_OWN | 0 );
15147 return resultobj;
15148 fail:
15149 return NULL;
15150 }
15151
15152
15153 SWIGINTERN PyObject *_wrap_SpinCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj = 0;
15155 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15156 wxWindow *arg2 = (wxWindow *) 0 ;
15157 int arg3 = (int) -1 ;
15158 wxString const &arg4_defvalue = wxPyEmptyString ;
15159 wxString *arg4 = (wxString *) &arg4_defvalue ;
15160 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15161 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15162 wxSize const &arg6_defvalue = wxDefaultSize ;
15163 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15164 long arg7 = (long) wxSP_ARROW_KEYS ;
15165 int arg8 = (int) 0 ;
15166 int arg9 = (int) 100 ;
15167 int arg10 = (int) 0 ;
15168 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
15169 wxString *arg11 = (wxString *) &arg11_defvalue ;
15170 bool result;
15171 void *argp1 = 0 ;
15172 int res1 = 0 ;
15173 void *argp2 = 0 ;
15174 int res2 = 0 ;
15175 int val3 ;
15176 int ecode3 = 0 ;
15177 bool temp4 = false ;
15178 wxPoint temp5 ;
15179 wxSize temp6 ;
15180 long val7 ;
15181 int ecode7 = 0 ;
15182 int val8 ;
15183 int ecode8 = 0 ;
15184 int val9 ;
15185 int ecode9 = 0 ;
15186 int val10 ;
15187 int ecode10 = 0 ;
15188 bool temp11 = false ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
15191 PyObject * obj2 = 0 ;
15192 PyObject * obj3 = 0 ;
15193 PyObject * obj4 = 0 ;
15194 PyObject * obj5 = 0 ;
15195 PyObject * obj6 = 0 ;
15196 PyObject * obj7 = 0 ;
15197 PyObject * obj8 = 0 ;
15198 PyObject * obj9 = 0 ;
15199 PyObject * obj10 = 0 ;
15200 char * kwnames[] = {
15201 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
15202 };
15203
15204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
15205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_Create" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15208 }
15209 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
15211 if (!SWIG_IsOK(res2)) {
15212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SpinCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
15213 }
15214 arg2 = reinterpret_cast< wxWindow * >(argp2);
15215 if (obj2) {
15216 ecode3 = SWIG_AsVal_int(obj2, &val3);
15217 if (!SWIG_IsOK(ecode3)) {
15218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_Create" "', expected argument " "3"" of type '" "int""'");
15219 }
15220 arg3 = static_cast< int >(val3);
15221 }
15222 if (obj3) {
15223 {
15224 arg4 = wxString_in_helper(obj3);
15225 if (arg4 == NULL) SWIG_fail;
15226 temp4 = true;
15227 }
15228 }
15229 if (obj4) {
15230 {
15231 arg5 = &temp5;
15232 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15233 }
15234 }
15235 if (obj5) {
15236 {
15237 arg6 = &temp6;
15238 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
15239 }
15240 }
15241 if (obj6) {
15242 ecode7 = SWIG_AsVal_long(obj6, &val7);
15243 if (!SWIG_IsOK(ecode7)) {
15244 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "SpinCtrl_Create" "', expected argument " "7"" of type '" "long""'");
15245 }
15246 arg7 = static_cast< long >(val7);
15247 }
15248 if (obj7) {
15249 ecode8 = SWIG_AsVal_int(obj7, &val8);
15250 if (!SWIG_IsOK(ecode8)) {
15251 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "SpinCtrl_Create" "', expected argument " "8"" of type '" "int""'");
15252 }
15253 arg8 = static_cast< int >(val8);
15254 }
15255 if (obj8) {
15256 ecode9 = SWIG_AsVal_int(obj8, &val9);
15257 if (!SWIG_IsOK(ecode9)) {
15258 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "SpinCtrl_Create" "', expected argument " "9"" of type '" "int""'");
15259 }
15260 arg9 = static_cast< int >(val9);
15261 }
15262 if (obj9) {
15263 ecode10 = SWIG_AsVal_int(obj9, &val10);
15264 if (!SWIG_IsOK(ecode10)) {
15265 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "SpinCtrl_Create" "', expected argument " "10"" of type '" "int""'");
15266 }
15267 arg10 = static_cast< int >(val10);
15268 }
15269 if (obj10) {
15270 {
15271 arg11 = wxString_in_helper(obj10);
15272 if (arg11 == NULL) SWIG_fail;
15273 temp11 = true;
15274 }
15275 }
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
15279 wxPyEndAllowThreads(__tstate);
15280 if (PyErr_Occurred()) SWIG_fail;
15281 }
15282 {
15283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15284 }
15285 {
15286 if (temp4)
15287 delete arg4;
15288 }
15289 {
15290 if (temp11)
15291 delete arg11;
15292 }
15293 return resultobj;
15294 fail:
15295 {
15296 if (temp4)
15297 delete arg4;
15298 }
15299 {
15300 if (temp11)
15301 delete arg11;
15302 }
15303 return NULL;
15304 }
15305
15306
15307 SWIGINTERN PyObject *_wrap_SpinCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15308 PyObject *resultobj = 0;
15309 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15310 int result;
15311 void *argp1 = 0 ;
15312 int res1 = 0 ;
15313 PyObject *swig_obj[1] ;
15314
15315 if (!args) SWIG_fail;
15316 swig_obj[0] = args;
15317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15318 if (!SWIG_IsOK(res1)) {
15319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetValue" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15320 }
15321 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15322 {
15323 PyThreadState* __tstate = wxPyBeginAllowThreads();
15324 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
15325 wxPyEndAllowThreads(__tstate);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 resultobj = SWIG_From_int(static_cast< int >(result));
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj = 0;
15337 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15338 int arg2 ;
15339 void *argp1 = 0 ;
15340 int res1 = 0 ;
15341 int val2 ;
15342 int ecode2 = 0 ;
15343 PyObject * obj0 = 0 ;
15344 PyObject * obj1 = 0 ;
15345 char * kwnames[] = {
15346 (char *) "self",(char *) "value", NULL
15347 };
15348
15349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
15350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15351 if (!SWIG_IsOK(res1)) {
15352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValue" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15353 }
15354 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15355 ecode2 = SWIG_AsVal_int(obj1, &val2);
15356 if (!SWIG_IsOK(ecode2)) {
15357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetValue" "', expected argument " "2"" of type '" "int""'");
15358 }
15359 arg2 = static_cast< int >(val2);
15360 {
15361 PyThreadState* __tstate = wxPyBeginAllowThreads();
15362 (arg1)->SetValue(arg2);
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 resultobj = SWIG_Py_Void();
15367 return resultobj;
15368 fail:
15369 return NULL;
15370 }
15371
15372
15373 SWIGINTERN PyObject *_wrap_SpinCtrl_SetValueString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj = 0;
15375 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15376 wxString *arg2 = 0 ;
15377 void *argp1 = 0 ;
15378 int res1 = 0 ;
15379 bool temp2 = false ;
15380 PyObject * obj0 = 0 ;
15381 PyObject * obj1 = 0 ;
15382 char * kwnames[] = {
15383 (char *) "self",(char *) "text", NULL
15384 };
15385
15386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) SWIG_fail;
15387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetValueString" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15390 }
15391 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15392 {
15393 arg2 = wxString_in_helper(obj1);
15394 if (arg2 == NULL) SWIG_fail;
15395 temp2 = true;
15396 }
15397 {
15398 PyThreadState* __tstate = wxPyBeginAllowThreads();
15399 (arg1)->SetValue((wxString const &)*arg2);
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 resultobj = SWIG_Py_Void();
15404 {
15405 if (temp2)
15406 delete arg2;
15407 }
15408 return resultobj;
15409 fail:
15410 {
15411 if (temp2)
15412 delete arg2;
15413 }
15414 return NULL;
15415 }
15416
15417
15418 SWIGINTERN PyObject *_wrap_SpinCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15419 PyObject *resultobj = 0;
15420 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15421 int arg2 ;
15422 int arg3 ;
15423 void *argp1 = 0 ;
15424 int res1 = 0 ;
15425 int val2 ;
15426 int ecode2 = 0 ;
15427 int val3 ;
15428 int ecode3 = 0 ;
15429 PyObject * obj0 = 0 ;
15430 PyObject * obj1 = 0 ;
15431 PyObject * obj2 = 0 ;
15432 char * kwnames[] = {
15433 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
15434 };
15435
15436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15438 if (!SWIG_IsOK(res1)) {
15439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetRange" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15440 }
15441 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15442 ecode2 = SWIG_AsVal_int(obj1, &val2);
15443 if (!SWIG_IsOK(ecode2)) {
15444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetRange" "', expected argument " "2"" of type '" "int""'");
15445 }
15446 arg2 = static_cast< int >(val2);
15447 ecode3 = SWIG_AsVal_int(obj2, &val3);
15448 if (!SWIG_IsOK(ecode3)) {
15449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetRange" "', expected argument " "3"" of type '" "int""'");
15450 }
15451 arg3 = static_cast< int >(val3);
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 (arg1)->SetRange(arg2,arg3);
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_Py_Void();
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15466 PyObject *resultobj = 0;
15467 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15468 int result;
15469 void *argp1 = 0 ;
15470 int res1 = 0 ;
15471 PyObject *swig_obj[1] ;
15472
15473 if (!args) SWIG_fail;
15474 swig_obj[0] = args;
15475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15476 if (!SWIG_IsOK(res1)) {
15477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMin" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15478 }
15479 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15480 {
15481 PyThreadState* __tstate = wxPyBeginAllowThreads();
15482 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
15483 wxPyEndAllowThreads(__tstate);
15484 if (PyErr_Occurred()) SWIG_fail;
15485 }
15486 resultobj = SWIG_From_int(static_cast< int >(result));
15487 return resultobj;
15488 fail:
15489 return NULL;
15490 }
15491
15492
15493 SWIGINTERN PyObject *_wrap_SpinCtrl_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15494 PyObject *resultobj = 0;
15495 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15496 int result;
15497 void *argp1 = 0 ;
15498 int res1 = 0 ;
15499 PyObject *swig_obj[1] ;
15500
15501 if (!args) SWIG_fail;
15502 swig_obj[0] = args;
15503 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15504 if (!SWIG_IsOK(res1)) {
15505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_GetMax" "', expected argument " "1"" of type '" "wxSpinCtrl const *""'");
15506 }
15507 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15508 {
15509 PyThreadState* __tstate = wxPyBeginAllowThreads();
15510 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 resultobj = SWIG_From_int(static_cast< int >(result));
15515 return resultobj;
15516 fail:
15517 return NULL;
15518 }
15519
15520
15521 SWIGINTERN PyObject *_wrap_SpinCtrl_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15522 PyObject *resultobj = 0;
15523 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
15524 long arg2 ;
15525 long arg3 ;
15526 void *argp1 = 0 ;
15527 int res1 = 0 ;
15528 long val2 ;
15529 int ecode2 = 0 ;
15530 long val3 ;
15531 int ecode3 = 0 ;
15532 PyObject * obj0 = 0 ;
15533 PyObject * obj1 = 0 ;
15534 PyObject * obj2 = 0 ;
15535 char * kwnames[] = {
15536 (char *) "self",(char *) "from",(char *) "to", NULL
15537 };
15538
15539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinCtrl, 0 | 0 );
15541 if (!SWIG_IsOK(res1)) {
15542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinCtrl_SetSelection" "', expected argument " "1"" of type '" "wxSpinCtrl *""'");
15543 }
15544 arg1 = reinterpret_cast< wxSpinCtrl * >(argp1);
15545 ecode2 = SWIG_AsVal_long(obj1, &val2);
15546 if (!SWIG_IsOK(ecode2)) {
15547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinCtrl_SetSelection" "', expected argument " "2"" of type '" "long""'");
15548 }
15549 arg2 = static_cast< long >(val2);
15550 ecode3 = SWIG_AsVal_long(obj2, &val3);
15551 if (!SWIG_IsOK(ecode3)) {
15552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "SpinCtrl_SetSelection" "', expected argument " "3"" of type '" "long""'");
15553 }
15554 arg3 = static_cast< long >(val3);
15555 {
15556 PyThreadState* __tstate = wxPyBeginAllowThreads();
15557 (arg1)->SetSelection(arg2,arg3);
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_Py_Void();
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj = 0;
15570 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
15571 SwigValueWrapper<wxVisualAttributes > result;
15572 int val1 ;
15573 int ecode1 = 0 ;
15574 PyObject * obj0 = 0 ;
15575 char * kwnames[] = {
15576 (char *) "variant", NULL
15577 };
15578
15579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
15580 if (obj0) {
15581 ecode1 = SWIG_AsVal_int(obj0, &val1);
15582 if (!SWIG_IsOK(ecode1)) {
15583 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "SpinCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
15584 }
15585 arg1 = static_cast< wxWindowVariant >(val1);
15586 }
15587 {
15588 if (!wxPyCheckForApp()) SWIG_fail;
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = wxSpinCtrl::GetClassDefaultAttributes(arg1);
15591 wxPyEndAllowThreads(__tstate);
15592 if (PyErr_Occurred()) SWIG_fail;
15593 }
15594 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
15595 return resultobj;
15596 fail:
15597 return NULL;
15598 }
15599
15600
15601 SWIGINTERN PyObject *SpinCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15602 PyObject *obj;
15603 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15604 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinCtrl, SWIG_NewClientData(obj));
15605 return SWIG_Py_Void();
15606 }
15607
15608 SWIGINTERN PyObject *SpinCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15609 return SWIG_Python_InitShadowInstance(args);
15610 }
15611
15612 SWIGINTERN PyObject *_wrap_new_SpinEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15613 PyObject *resultobj = 0;
15614 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15615 int arg2 = (int) 0 ;
15616 wxSpinEvent *result = 0 ;
15617 int val1 ;
15618 int ecode1 = 0 ;
15619 int val2 ;
15620 int ecode2 = 0 ;
15621 PyObject * obj0 = 0 ;
15622 PyObject * obj1 = 0 ;
15623 char * kwnames[] = {
15624 (char *) "commandType",(char *) "winid", NULL
15625 };
15626
15627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) SWIG_fail;
15628 if (obj0) {
15629 ecode1 = SWIG_AsVal_int(obj0, &val1);
15630 if (!SWIG_IsOK(ecode1)) {
15631 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SpinEvent" "', expected argument " "1"" of type '" "wxEventType""'");
15632 }
15633 arg1 = static_cast< wxEventType >(val1);
15634 }
15635 if (obj1) {
15636 ecode2 = SWIG_AsVal_int(obj1, &val2);
15637 if (!SWIG_IsOK(ecode2)) {
15638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SpinEvent" "', expected argument " "2"" of type '" "int""'");
15639 }
15640 arg2 = static_cast< int >(val2);
15641 }
15642 {
15643 PyThreadState* __tstate = wxPyBeginAllowThreads();
15644 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSpinEvent, SWIG_POINTER_NEW | 0 );
15649 return resultobj;
15650 fail:
15651 return NULL;
15652 }
15653
15654
15655 SWIGINTERN PyObject *_wrap_SpinEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15656 PyObject *resultobj = 0;
15657 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15658 int result;
15659 void *argp1 = 0 ;
15660 int res1 = 0 ;
15661 PyObject *swig_obj[1] ;
15662
15663 if (!args) SWIG_fail;
15664 swig_obj[0] = args;
15665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15666 if (!SWIG_IsOK(res1)) {
15667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_GetPosition" "', expected argument " "1"" of type '" "wxSpinEvent const *""'");
15668 }
15669 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 resultobj = SWIG_From_int(static_cast< int >(result));
15677 return resultobj;
15678 fail:
15679 return NULL;
15680 }
15681
15682
15683 SWIGINTERN PyObject *_wrap_SpinEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15684 PyObject *resultobj = 0;
15685 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
15686 int arg2 ;
15687 void *argp1 = 0 ;
15688 int res1 = 0 ;
15689 int val2 ;
15690 int ecode2 = 0 ;
15691 PyObject * obj0 = 0 ;
15692 PyObject * obj1 = 0 ;
15693 char * kwnames[] = {
15694 (char *) "self",(char *) "pos", NULL
15695 };
15696
15697 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
15698 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSpinEvent, 0 | 0 );
15699 if (!SWIG_IsOK(res1)) {
15700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SpinEvent_SetPosition" "', expected argument " "1"" of type '" "wxSpinEvent *""'");
15701 }
15702 arg1 = reinterpret_cast< wxSpinEvent * >(argp1);
15703 ecode2 = SWIG_AsVal_int(obj1, &val2);
15704 if (!SWIG_IsOK(ecode2)) {
15705 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SpinEvent_SetPosition" "', expected argument " "2"" of type '" "int""'");
15706 }
15707 arg2 = static_cast< int >(val2);
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 (arg1)->SetPosition(arg2);
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 resultobj = SWIG_Py_Void();
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 SWIGINTERN PyObject *SpinEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15722 PyObject *obj;
15723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15724 SWIG_TypeNewClientData(SWIGTYPE_p_wxSpinEvent, SWIG_NewClientData(obj));
15725 return SWIG_Py_Void();
15726 }
15727
15728 SWIGINTERN PyObject *SpinEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 return SWIG_Python_InitShadowInstance(args);
15730 }
15731
15732 SWIGINTERN int RadioBoxNameStr_set(PyObject *) {
15733 SWIG_Error(SWIG_AttributeError,"Variable RadioBoxNameStr is read-only.");
15734 return 1;
15735 }
15736
15737
15738 SWIGINTERN PyObject *RadioBoxNameStr_get(void) {
15739 PyObject *pyobj = 0;
15740
15741 {
15742 #if wxUSE_UNICODE
15743 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15744 #else
15745 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
15746 #endif
15747 }
15748 return pyobj;
15749 }
15750
15751
15752 SWIGINTERN int RadioButtonNameStr_set(PyObject *) {
15753 SWIG_Error(SWIG_AttributeError,"Variable RadioButtonNameStr is read-only.");
15754 return 1;
15755 }
15756
15757
15758 SWIGINTERN PyObject *RadioButtonNameStr_get(void) {
15759 PyObject *pyobj = 0;
15760
15761 {
15762 #if wxUSE_UNICODE
15763 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15764 #else
15765 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
15766 #endif
15767 }
15768 return pyobj;
15769 }
15770
15771
15772 SWIGINTERN PyObject *_wrap_new_RadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15773 PyObject *resultobj = 0;
15774 wxWindow *arg1 = (wxWindow *) 0 ;
15775 int arg2 = (int) -1 ;
15776 wxString const &arg3_defvalue = wxPyEmptyString ;
15777 wxString *arg3 = (wxString *) &arg3_defvalue ;
15778 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15779 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15780 wxSize const &arg5_defvalue = wxDefaultSize ;
15781 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15782 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
15783 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
15784 int arg7 = (int) 0 ;
15785 long arg8 = (long) wxRA_HORIZONTAL ;
15786 wxValidator const &arg9_defvalue = wxDefaultValidator ;
15787 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
15788 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
15789 wxString *arg10 = (wxString *) &arg10_defvalue ;
15790 wxRadioBox *result = 0 ;
15791 void *argp1 = 0 ;
15792 int res1 = 0 ;
15793 int val2 ;
15794 int ecode2 = 0 ;
15795 bool temp3 = false ;
15796 wxPoint temp4 ;
15797 wxSize temp5 ;
15798 bool temp6 = false ;
15799 int val7 ;
15800 int ecode7 = 0 ;
15801 long val8 ;
15802 int ecode8 = 0 ;
15803 void *argp9 = 0 ;
15804 int res9 = 0 ;
15805 bool temp10 = false ;
15806 PyObject * obj0 = 0 ;
15807 PyObject * obj1 = 0 ;
15808 PyObject * obj2 = 0 ;
15809 PyObject * obj3 = 0 ;
15810 PyObject * obj4 = 0 ;
15811 PyObject * obj5 = 0 ;
15812 PyObject * obj6 = 0 ;
15813 PyObject * obj7 = 0 ;
15814 PyObject * obj8 = 0 ;
15815 PyObject * obj9 = 0 ;
15816 char * kwnames[] = {
15817 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
15818 };
15819
15820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
15821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
15822 if (!SWIG_IsOK(res1)) {
15823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioBox" "', expected argument " "1"" of type '" "wxWindow *""'");
15824 }
15825 arg1 = reinterpret_cast< wxWindow * >(argp1);
15826 if (obj1) {
15827 ecode2 = SWIG_AsVal_int(obj1, &val2);
15828 if (!SWIG_IsOK(ecode2)) {
15829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioBox" "', expected argument " "2"" of type '" "int""'");
15830 }
15831 arg2 = static_cast< int >(val2);
15832 }
15833 if (obj2) {
15834 {
15835 arg3 = wxString_in_helper(obj2);
15836 if (arg3 == NULL) SWIG_fail;
15837 temp3 = true;
15838 }
15839 }
15840 if (obj3) {
15841 {
15842 arg4 = &temp4;
15843 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15844 }
15845 }
15846 if (obj4) {
15847 {
15848 arg5 = &temp5;
15849 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15850 }
15851 }
15852 if (obj5) {
15853 {
15854 if (! PySequence_Check(obj5)) {
15855 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
15856 SWIG_fail;
15857 }
15858 arg6 = new wxArrayString;
15859 temp6 = true;
15860 int i, len=PySequence_Length(obj5);
15861 for (i=0; i<len; i++) {
15862 PyObject* item = PySequence_GetItem(obj5, i);
15863 wxString* s = wxString_in_helper(item);
15864 if (PyErr_Occurred()) SWIG_fail;
15865 arg6->Add(*s);
15866 delete s;
15867 Py_DECREF(item);
15868 }
15869 }
15870 }
15871 if (obj6) {
15872 ecode7 = SWIG_AsVal_int(obj6, &val7);
15873 if (!SWIG_IsOK(ecode7)) {
15874 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_RadioBox" "', expected argument " "7"" of type '" "int""'");
15875 }
15876 arg7 = static_cast< int >(val7);
15877 }
15878 if (obj7) {
15879 ecode8 = SWIG_AsVal_long(obj7, &val8);
15880 if (!SWIG_IsOK(ecode8)) {
15881 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_RadioBox" "', expected argument " "8"" of type '" "long""'");
15882 }
15883 arg8 = static_cast< long >(val8);
15884 }
15885 if (obj8) {
15886 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
15887 if (!SWIG_IsOK(res9)) {
15888 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15889 }
15890 if (!argp9) {
15891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioBox" "', expected argument " "9"" of type '" "wxValidator const &""'");
15892 }
15893 arg9 = reinterpret_cast< wxValidator * >(argp9);
15894 }
15895 if (obj9) {
15896 {
15897 arg10 = wxString_in_helper(obj9);
15898 if (arg10 == NULL) SWIG_fail;
15899 temp10 = true;
15900 }
15901 }
15902 {
15903 if (!wxPyCheckForApp()) SWIG_fail;
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 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);
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_NEW | 0 );
15910 {
15911 if (temp3)
15912 delete arg3;
15913 }
15914 {
15915 if (temp6) delete arg6;
15916 }
15917 {
15918 if (temp10)
15919 delete arg10;
15920 }
15921 return resultobj;
15922 fail:
15923 {
15924 if (temp3)
15925 delete arg3;
15926 }
15927 {
15928 if (temp6) delete arg6;
15929 }
15930 {
15931 if (temp10)
15932 delete arg10;
15933 }
15934 return NULL;
15935 }
15936
15937
15938 SWIGINTERN PyObject *_wrap_new_PreRadioBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15939 PyObject *resultobj = 0;
15940 wxRadioBox *result = 0 ;
15941
15942 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioBox",0,0,0)) SWIG_fail;
15943 {
15944 if (!wxPyCheckForApp()) SWIG_fail;
15945 PyThreadState* __tstate = wxPyBeginAllowThreads();
15946 result = (wxRadioBox *)new wxRadioBox();
15947 wxPyEndAllowThreads(__tstate);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 }
15950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioBox, SWIG_POINTER_OWN | 0 );
15951 return resultobj;
15952 fail:
15953 return NULL;
15954 }
15955
15956
15957 SWIGINTERN PyObject *_wrap_RadioBox_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj = 0;
15959 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
15960 wxWindow *arg2 = (wxWindow *) 0 ;
15961 int arg3 = (int) -1 ;
15962 wxString const &arg4_defvalue = wxPyEmptyString ;
15963 wxString *arg4 = (wxString *) &arg4_defvalue ;
15964 wxPoint const &arg5_defvalue = wxDefaultPosition ;
15965 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
15966 wxSize const &arg6_defvalue = wxDefaultSize ;
15967 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
15968 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
15969 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
15970 int arg8 = (int) 0 ;
15971 long arg9 = (long) wxRA_HORIZONTAL ;
15972 wxValidator const &arg10_defvalue = wxDefaultValidator ;
15973 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
15974 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
15975 wxString *arg11 = (wxString *) &arg11_defvalue ;
15976 bool result;
15977 void *argp1 = 0 ;
15978 int res1 = 0 ;
15979 void *argp2 = 0 ;
15980 int res2 = 0 ;
15981 int val3 ;
15982 int ecode3 = 0 ;
15983 bool temp4 = false ;
15984 wxPoint temp5 ;
15985 wxSize temp6 ;
15986 bool temp7 = false ;
15987 int val8 ;
15988 int ecode8 = 0 ;
15989 long val9 ;
15990 int ecode9 = 0 ;
15991 void *argp10 = 0 ;
15992 int res10 = 0 ;
15993 bool temp11 = false ;
15994 PyObject * obj0 = 0 ;
15995 PyObject * obj1 = 0 ;
15996 PyObject * obj2 = 0 ;
15997 PyObject * obj3 = 0 ;
15998 PyObject * obj4 = 0 ;
15999 PyObject * obj5 = 0 ;
16000 PyObject * obj6 = 0 ;
16001 PyObject * obj7 = 0 ;
16002 PyObject * obj8 = 0 ;
16003 PyObject * obj9 = 0 ;
16004 PyObject * obj10 = 0 ;
16005 char * kwnames[] = {
16006 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
16007 };
16008
16009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
16010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16011 if (!SWIG_IsOK(res1)) {
16012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_Create" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16013 }
16014 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16015 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
16016 if (!SWIG_IsOK(res2)) {
16017 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioBox_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
16018 }
16019 arg2 = reinterpret_cast< wxWindow * >(argp2);
16020 if (obj2) {
16021 ecode3 = SWIG_AsVal_int(obj2, &val3);
16022 if (!SWIG_IsOK(ecode3)) {
16023 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_Create" "', expected argument " "3"" of type '" "int""'");
16024 }
16025 arg3 = static_cast< int >(val3);
16026 }
16027 if (obj3) {
16028 {
16029 arg4 = wxString_in_helper(obj3);
16030 if (arg4 == NULL) SWIG_fail;
16031 temp4 = true;
16032 }
16033 }
16034 if (obj4) {
16035 {
16036 arg5 = &temp5;
16037 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16038 }
16039 }
16040 if (obj5) {
16041 {
16042 arg6 = &temp6;
16043 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
16044 }
16045 }
16046 if (obj6) {
16047 {
16048 if (! PySequence_Check(obj6)) {
16049 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
16050 SWIG_fail;
16051 }
16052 arg7 = new wxArrayString;
16053 temp7 = true;
16054 int i, len=PySequence_Length(obj6);
16055 for (i=0; i<len; i++) {
16056 PyObject* item = PySequence_GetItem(obj6, i);
16057 wxString* s = wxString_in_helper(item);
16058 if (PyErr_Occurred()) SWIG_fail;
16059 arg7->Add(*s);
16060 delete s;
16061 Py_DECREF(item);
16062 }
16063 }
16064 }
16065 if (obj7) {
16066 ecode8 = SWIG_AsVal_int(obj7, &val8);
16067 if (!SWIG_IsOK(ecode8)) {
16068 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "RadioBox_Create" "', expected argument " "8"" of type '" "int""'");
16069 }
16070 arg8 = static_cast< int >(val8);
16071 }
16072 if (obj8) {
16073 ecode9 = SWIG_AsVal_long(obj8, &val9);
16074 if (!SWIG_IsOK(ecode9)) {
16075 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "RadioBox_Create" "', expected argument " "9"" of type '" "long""'");
16076 }
16077 arg9 = static_cast< long >(val9);
16078 }
16079 if (obj9) {
16080 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
16081 if (!SWIG_IsOK(res10)) {
16082 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16083 }
16084 if (!argp10) {
16085 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioBox_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
16086 }
16087 arg10 = reinterpret_cast< wxValidator * >(argp10);
16088 }
16089 if (obj10) {
16090 {
16091 arg11 = wxString_in_helper(obj10);
16092 if (arg11 == NULL) SWIG_fail;
16093 temp11 = true;
16094 }
16095 }
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 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);
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 {
16103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16104 }
16105 {
16106 if (temp4)
16107 delete arg4;
16108 }
16109 {
16110 if (temp7) delete arg7;
16111 }
16112 {
16113 if (temp11)
16114 delete arg11;
16115 }
16116 return resultobj;
16117 fail:
16118 {
16119 if (temp4)
16120 delete arg4;
16121 }
16122 {
16123 if (temp7) delete arg7;
16124 }
16125 {
16126 if (temp11)
16127 delete arg11;
16128 }
16129 return NULL;
16130 }
16131
16132
16133 SWIGINTERN PyObject *_wrap_RadioBox_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj = 0;
16135 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16136 int arg2 ;
16137 void *argp1 = 0 ;
16138 int res1 = 0 ;
16139 int val2 ;
16140 int ecode2 = 0 ;
16141 PyObject * obj0 = 0 ;
16142 PyObject * obj1 = 0 ;
16143 char * kwnames[] = {
16144 (char *) "self",(char *) "n", NULL
16145 };
16146
16147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16149 if (!SWIG_IsOK(res1)) {
16150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16151 }
16152 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16153 ecode2 = SWIG_AsVal_int(obj1, &val2);
16154 if (!SWIG_IsOK(ecode2)) {
16155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetSelection" "', expected argument " "2"" of type '" "int""'");
16156 }
16157 arg2 = static_cast< int >(val2);
16158 {
16159 PyThreadState* __tstate = wxPyBeginAllowThreads();
16160 (arg1)->SetSelection(arg2);
16161 wxPyEndAllowThreads(__tstate);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 }
16164 resultobj = SWIG_Py_Void();
16165 return resultobj;
16166 fail:
16167 return NULL;
16168 }
16169
16170
16171 SWIGINTERN PyObject *_wrap_RadioBox_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16172 PyObject *resultobj = 0;
16173 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16174 int result;
16175 void *argp1 = 0 ;
16176 int res1 = 0 ;
16177 PyObject *swig_obj[1] ;
16178
16179 if (!args) SWIG_fail;
16180 swig_obj[0] = args;
16181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16182 if (!SWIG_IsOK(res1)) {
16183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16184 }
16185 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 result = (int)((wxRadioBox const *)arg1)->GetSelection();
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 resultobj = SWIG_From_int(static_cast< int >(result));
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_RadioBox_GetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *resultobj = 0;
16201 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16202 wxString result;
16203 void *argp1 = 0 ;
16204 int res1 = 0 ;
16205 PyObject *swig_obj[1] ;
16206
16207 if (!args) SWIG_fail;
16208 swig_obj[0] = args;
16209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16210 if (!SWIG_IsOK(res1)) {
16211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16212 }
16213 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16214 {
16215 PyThreadState* __tstate = wxPyBeginAllowThreads();
16216 result = ((wxRadioBox const *)arg1)->GetStringSelection();
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 #if wxUSE_UNICODE
16222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16223 #else
16224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16225 #endif
16226 }
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 SWIGINTERN PyObject *_wrap_RadioBox_SetStringSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16234 PyObject *resultobj = 0;
16235 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16236 wxString *arg2 = 0 ;
16237 bool result;
16238 void *argp1 = 0 ;
16239 int res1 = 0 ;
16240 bool temp2 = false ;
16241 PyObject * obj0 = 0 ;
16242 PyObject * obj1 = 0 ;
16243 char * kwnames[] = {
16244 (char *) "self",(char *) "s", NULL
16245 };
16246
16247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) SWIG_fail;
16248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16249 if (!SWIG_IsOK(res1)) {
16250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetStringSelection" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16251 }
16252 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16253 {
16254 arg2 = wxString_in_helper(obj1);
16255 if (arg2 == NULL) SWIG_fail;
16256 temp2 = true;
16257 }
16258 {
16259 PyThreadState* __tstate = wxPyBeginAllowThreads();
16260 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
16261 wxPyEndAllowThreads(__tstate);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 {
16265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16266 }
16267 {
16268 if (temp2)
16269 delete arg2;
16270 }
16271 return resultobj;
16272 fail:
16273 {
16274 if (temp2)
16275 delete arg2;
16276 }
16277 return NULL;
16278 }
16279
16280
16281 SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16282 PyObject *resultobj = 0;
16283 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16284 size_t result;
16285 void *argp1 = 0 ;
16286 int res1 = 0 ;
16287 PyObject *swig_obj[1] ;
16288
16289 if (!args) SWIG_fail;
16290 swig_obj[0] = args;
16291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16292 if (!SWIG_IsOK(res1)) {
16293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16294 }
16295 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16296 {
16297 PyThreadState* __tstate = wxPyBeginAllowThreads();
16298 result = (size_t)((wxRadioBox const *)arg1)->GetCount();
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
16303 return resultobj;
16304 fail:
16305 return NULL;
16306 }
16307
16308
16309 SWIGINTERN PyObject *_wrap_RadioBox_FindString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16310 PyObject *resultobj = 0;
16311 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16312 wxString *arg2 = 0 ;
16313 int result;
16314 void *argp1 = 0 ;
16315 int res1 = 0 ;
16316 bool temp2 = false ;
16317 PyObject * obj0 = 0 ;
16318 PyObject * obj1 = 0 ;
16319 char * kwnames[] = {
16320 (char *) "self",(char *) "s", NULL
16321 };
16322
16323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) SWIG_fail;
16324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16325 if (!SWIG_IsOK(res1)) {
16326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_FindString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16327 }
16328 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16329 {
16330 arg2 = wxString_in_helper(obj1);
16331 if (arg2 == NULL) SWIG_fail;
16332 temp2 = true;
16333 }
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
16337 wxPyEndAllowThreads(__tstate);
16338 if (PyErr_Occurred()) SWIG_fail;
16339 }
16340 resultobj = SWIG_From_int(static_cast< int >(result));
16341 {
16342 if (temp2)
16343 delete arg2;
16344 }
16345 return resultobj;
16346 fail:
16347 {
16348 if (temp2)
16349 delete arg2;
16350 }
16351 return NULL;
16352 }
16353
16354
16355 SWIGINTERN PyObject *_wrap_RadioBox_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16356 PyObject *resultobj = 0;
16357 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16358 int arg2 ;
16359 wxString result;
16360 void *argp1 = 0 ;
16361 int res1 = 0 ;
16362 int val2 ;
16363 int ecode2 = 0 ;
16364 PyObject * obj0 = 0 ;
16365 PyObject * obj1 = 0 ;
16366 char * kwnames[] = {
16367 (char *) "self",(char *) "n", NULL
16368 };
16369
16370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) SWIG_fail;
16371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16372 if (!SWIG_IsOK(res1)) {
16373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetString" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16374 }
16375 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16376 ecode2 = SWIG_AsVal_int(obj1, &val2);
16377 if (!SWIG_IsOK(ecode2)) {
16378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetString" "', expected argument " "2"" of type '" "int""'");
16379 }
16380 arg2 = static_cast< int >(val2);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 result = ((wxRadioBox const *)arg1)->GetString(arg2);
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 #if wxUSE_UNICODE
16389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16390 #else
16391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16392 #endif
16393 }
16394 return resultobj;
16395 fail:
16396 return NULL;
16397 }
16398
16399
16400 SWIGINTERN PyObject *_wrap_RadioBox_SetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16401 PyObject *resultobj = 0;
16402 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16403 int arg2 ;
16404 wxString *arg3 = 0 ;
16405 void *argp1 = 0 ;
16406 int res1 = 0 ;
16407 int val2 ;
16408 int ecode2 = 0 ;
16409 bool temp3 = false ;
16410 PyObject * obj0 = 0 ;
16411 PyObject * obj1 = 0 ;
16412 PyObject * obj2 = 0 ;
16413 char * kwnames[] = {
16414 (char *) "self",(char *) "n",(char *) "label", NULL
16415 };
16416
16417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16419 if (!SWIG_IsOK(res1)) {
16420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetString" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16421 }
16422 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16423 ecode2 = SWIG_AsVal_int(obj1, &val2);
16424 if (!SWIG_IsOK(ecode2)) {
16425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetString" "', expected argument " "2"" of type '" "int""'");
16426 }
16427 arg2 = static_cast< int >(val2);
16428 {
16429 arg3 = wxString_in_helper(obj2);
16430 if (arg3 == NULL) SWIG_fail;
16431 temp3 = true;
16432 }
16433 {
16434 PyThreadState* __tstate = wxPyBeginAllowThreads();
16435 (arg1)->SetString(arg2,(wxString const &)*arg3);
16436 wxPyEndAllowThreads(__tstate);
16437 if (PyErr_Occurred()) SWIG_fail;
16438 }
16439 resultobj = SWIG_Py_Void();
16440 {
16441 if (temp3)
16442 delete arg3;
16443 }
16444 return resultobj;
16445 fail:
16446 {
16447 if (temp3)
16448 delete arg3;
16449 }
16450 return NULL;
16451 }
16452
16453
16454 SWIGINTERN PyObject *_wrap_RadioBox_EnableItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16455 PyObject *resultobj = 0;
16456 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16457 unsigned int arg2 ;
16458 bool arg3 = (bool) true ;
16459 void *argp1 = 0 ;
16460 int res1 = 0 ;
16461 unsigned int val2 ;
16462 int ecode2 = 0 ;
16463 bool val3 ;
16464 int ecode3 = 0 ;
16465 PyObject * obj0 = 0 ;
16466 PyObject * obj1 = 0 ;
16467 PyObject * obj2 = 0 ;
16468 char * kwnames[] = {
16469 (char *) "self",(char *) "n",(char *) "enable", NULL
16470 };
16471
16472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16474 if (!SWIG_IsOK(res1)) {
16475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_EnableItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16476 }
16477 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16478 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16479 if (!SWIG_IsOK(ecode2)) {
16480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_EnableItem" "', expected argument " "2"" of type '" "unsigned int""'");
16481 }
16482 arg2 = static_cast< unsigned int >(val2);
16483 if (obj2) {
16484 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16485 if (!SWIG_IsOK(ecode3)) {
16486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_EnableItem" "', expected argument " "3"" of type '" "bool""'");
16487 }
16488 arg3 = static_cast< bool >(val3);
16489 }
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 (arg1)->Enable(arg2,arg3);
16493 wxPyEndAllowThreads(__tstate);
16494 if (PyErr_Occurred()) SWIG_fail;
16495 }
16496 resultobj = SWIG_Py_Void();
16497 return resultobj;
16498 fail:
16499 return NULL;
16500 }
16501
16502
16503 SWIGINTERN PyObject *_wrap_RadioBox_ShowItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16504 PyObject *resultobj = 0;
16505 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16506 unsigned int arg2 ;
16507 bool arg3 = (bool) true ;
16508 void *argp1 = 0 ;
16509 int res1 = 0 ;
16510 unsigned int val2 ;
16511 int ecode2 = 0 ;
16512 bool val3 ;
16513 int ecode3 = 0 ;
16514 PyObject * obj0 = 0 ;
16515 PyObject * obj1 = 0 ;
16516 PyObject * obj2 = 0 ;
16517 char * kwnames[] = {
16518 (char *) "self",(char *) "n",(char *) "show", NULL
16519 };
16520
16521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16523 if (!SWIG_IsOK(res1)) {
16524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_ShowItem" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16525 }
16526 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16527 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16528 if (!SWIG_IsOK(ecode2)) {
16529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_ShowItem" "', expected argument " "2"" of type '" "unsigned int""'");
16530 }
16531 arg2 = static_cast< unsigned int >(val2);
16532 if (obj2) {
16533 ecode3 = SWIG_AsVal_bool(obj2, &val3);
16534 if (!SWIG_IsOK(ecode3)) {
16535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_ShowItem" "', expected argument " "3"" of type '" "bool""'");
16536 }
16537 arg3 = static_cast< bool >(val3);
16538 }
16539 {
16540 PyThreadState* __tstate = wxPyBeginAllowThreads();
16541 (arg1)->Show(arg2,arg3);
16542 wxPyEndAllowThreads(__tstate);
16543 if (PyErr_Occurred()) SWIG_fail;
16544 }
16545 resultobj = SWIG_Py_Void();
16546 return resultobj;
16547 fail:
16548 return NULL;
16549 }
16550
16551
16552 SWIGINTERN PyObject *_wrap_RadioBox_IsItemEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj = 0;
16554 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16555 unsigned int arg2 ;
16556 bool result;
16557 void *argp1 = 0 ;
16558 int res1 = 0 ;
16559 unsigned int val2 ;
16560 int ecode2 = 0 ;
16561 PyObject * obj0 = 0 ;
16562 PyObject * obj1 = 0 ;
16563 char * kwnames[] = {
16564 (char *) "self",(char *) "n", NULL
16565 };
16566
16567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
16568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16569 if (!SWIG_IsOK(res1)) {
16570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16571 }
16572 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16573 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16574 if (!SWIG_IsOK(ecode2)) {
16575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemEnabled" "', expected argument " "2"" of type '" "unsigned int""'");
16576 }
16577 arg2 = static_cast< unsigned int >(val2);
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 result = (bool)((wxRadioBox const *)arg1)->IsItemEnabled(arg2);
16581 wxPyEndAllowThreads(__tstate);
16582 if (PyErr_Occurred()) SWIG_fail;
16583 }
16584 {
16585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16586 }
16587 return resultobj;
16588 fail:
16589 return NULL;
16590 }
16591
16592
16593 SWIGINTERN PyObject *_wrap_RadioBox_IsItemShown(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16594 PyObject *resultobj = 0;
16595 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16596 unsigned int arg2 ;
16597 bool result;
16598 void *argp1 = 0 ;
16599 int res1 = 0 ;
16600 unsigned int val2 ;
16601 int ecode2 = 0 ;
16602 PyObject * obj0 = 0 ;
16603 PyObject * obj1 = 0 ;
16604 char * kwnames[] = {
16605 (char *) "self",(char *) "n", NULL
16606 };
16607
16608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_IsItemShown",kwnames,&obj0,&obj1)) SWIG_fail;
16609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16610 if (!SWIG_IsOK(res1)) {
16611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_IsItemShown" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16612 }
16613 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16614 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16615 if (!SWIG_IsOK(ecode2)) {
16616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_IsItemShown" "', expected argument " "2"" of type '" "unsigned int""'");
16617 }
16618 arg2 = static_cast< unsigned int >(val2);
16619 {
16620 PyThreadState* __tstate = wxPyBeginAllowThreads();
16621 result = (bool)((wxRadioBox const *)arg1)->IsItemShown(arg2);
16622 wxPyEndAllowThreads(__tstate);
16623 if (PyErr_Occurred()) SWIG_fail;
16624 }
16625 {
16626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16627 }
16628 return resultobj;
16629 fail:
16630 return NULL;
16631 }
16632
16633
16634 SWIGINTERN PyObject *_wrap_RadioBox_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16635 PyObject *resultobj = 0;
16636 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16637 unsigned int result;
16638 void *argp1 = 0 ;
16639 int res1 = 0 ;
16640 PyObject *swig_obj[1] ;
16641
16642 if (!args) SWIG_fail;
16643 swig_obj[0] = args;
16644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16645 if (!SWIG_IsOK(res1)) {
16646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetColumnCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16647 }
16648 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16649 {
16650 PyThreadState* __tstate = wxPyBeginAllowThreads();
16651 result = (unsigned int)((wxRadioBox const *)arg1)->GetColumnCount();
16652 wxPyEndAllowThreads(__tstate);
16653 if (PyErr_Occurred()) SWIG_fail;
16654 }
16655 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16656 return resultobj;
16657 fail:
16658 return NULL;
16659 }
16660
16661
16662 SWIGINTERN PyObject *_wrap_RadioBox_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16663 PyObject *resultobj = 0;
16664 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16665 unsigned int result;
16666 void *argp1 = 0 ;
16667 int res1 = 0 ;
16668 PyObject *swig_obj[1] ;
16669
16670 if (!args) SWIG_fail;
16671 swig_obj[0] = args;
16672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16673 if (!SWIG_IsOK(res1)) {
16674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetRowCount" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16675 }
16676 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16677 {
16678 PyThreadState* __tstate = wxPyBeginAllowThreads();
16679 result = (unsigned int)((wxRadioBox const *)arg1)->GetRowCount();
16680 wxPyEndAllowThreads(__tstate);
16681 if (PyErr_Occurred()) SWIG_fail;
16682 }
16683 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
16684 return resultobj;
16685 fail:
16686 return NULL;
16687 }
16688
16689
16690 SWIGINTERN PyObject *_wrap_RadioBox_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16691 PyObject *resultobj = 0;
16692 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16693 int arg2 ;
16694 wxDirection arg3 ;
16695 long arg4 ;
16696 int result;
16697 void *argp1 = 0 ;
16698 int res1 = 0 ;
16699 int val2 ;
16700 int ecode2 = 0 ;
16701 int val3 ;
16702 int ecode3 = 0 ;
16703 long val4 ;
16704 int ecode4 = 0 ;
16705 PyObject * obj0 = 0 ;
16706 PyObject * obj1 = 0 ;
16707 PyObject * obj2 = 0 ;
16708 PyObject * obj3 = 0 ;
16709 char * kwnames[] = {
16710 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
16711 };
16712
16713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16715 if (!SWIG_IsOK(res1)) {
16716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetNextItem" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16717 }
16718 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16719 ecode2 = SWIG_AsVal_int(obj1, &val2);
16720 if (!SWIG_IsOK(ecode2)) {
16721 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetNextItem" "', expected argument " "2"" of type '" "int""'");
16722 }
16723 arg2 = static_cast< int >(val2);
16724 ecode3 = SWIG_AsVal_int(obj2, &val3);
16725 if (!SWIG_IsOK(ecode3)) {
16726 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioBox_GetNextItem" "', expected argument " "3"" of type '" "wxDirection""'");
16727 }
16728 arg3 = static_cast< wxDirection >(val3);
16729 ecode4 = SWIG_AsVal_long(obj3, &val4);
16730 if (!SWIG_IsOK(ecode4)) {
16731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "RadioBox_GetNextItem" "', expected argument " "4"" of type '" "long""'");
16732 }
16733 arg4 = static_cast< long >(val4);
16734 {
16735 PyThreadState* __tstate = wxPyBeginAllowThreads();
16736 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,arg3,arg4);
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 resultobj = SWIG_From_int(static_cast< int >(result));
16741 return resultobj;
16742 fail:
16743 return NULL;
16744 }
16745
16746
16747 SWIGINTERN PyObject *_wrap_RadioBox_SetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16748 PyObject *resultobj = 0;
16749 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16750 unsigned int arg2 ;
16751 wxString *arg3 = 0 ;
16752 void *argp1 = 0 ;
16753 int res1 = 0 ;
16754 unsigned int val2 ;
16755 int ecode2 = 0 ;
16756 bool temp3 = false ;
16757 PyObject * obj0 = 0 ;
16758 PyObject * obj1 = 0 ;
16759 PyObject * obj2 = 0 ;
16760 char * kwnames[] = {
16761 (char *) "self",(char *) "item",(char *) "text", NULL
16762 };
16763
16764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetItemToolTip",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16766 if (!SWIG_IsOK(res1)) {
16767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox *""'");
16768 }
16769 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16770 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16771 if (!SWIG_IsOK(ecode2)) {
16772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_SetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16773 }
16774 arg2 = static_cast< unsigned int >(val2);
16775 {
16776 arg3 = wxString_in_helper(obj2);
16777 if (arg3 == NULL) SWIG_fail;
16778 temp3 = true;
16779 }
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 (arg1)->SetItemToolTip(arg2,(wxString const &)*arg3);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 resultobj = SWIG_Py_Void();
16787 {
16788 if (temp3)
16789 delete arg3;
16790 }
16791 return resultobj;
16792 fail:
16793 {
16794 if (temp3)
16795 delete arg3;
16796 }
16797 return NULL;
16798 }
16799
16800
16801 SWIGINTERN PyObject *_wrap_RadioBox_GetItemToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16802 PyObject *resultobj = 0;
16803 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
16804 unsigned int arg2 ;
16805 wxToolTip *result = 0 ;
16806 void *argp1 = 0 ;
16807 int res1 = 0 ;
16808 unsigned int val2 ;
16809 int ecode2 = 0 ;
16810 PyObject * obj0 = 0 ;
16811 PyObject * obj1 = 0 ;
16812 char * kwnames[] = {
16813 (char *) "self",(char *) "item", NULL
16814 };
16815
16816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetItemToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
16817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioBox, 0 | 0 );
16818 if (!SWIG_IsOK(res1)) {
16819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "1"" of type '" "wxRadioBox const *""'");
16820 }
16821 arg1 = reinterpret_cast< wxRadioBox * >(argp1);
16822 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
16823 if (!SWIG_IsOK(ecode2)) {
16824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioBox_GetItemToolTip" "', expected argument " "2"" of type '" "unsigned int""'");
16825 }
16826 arg2 = static_cast< unsigned int >(val2);
16827 {
16828 PyThreadState* __tstate = wxPyBeginAllowThreads();
16829 result = (wxToolTip *)((wxRadioBox const *)arg1)->GetItemToolTip(arg2);
16830 wxPyEndAllowThreads(__tstate);
16831 if (PyErr_Occurred()) SWIG_fail;
16832 }
16833 {
16834 resultobj = wxPyMake_wxObject(result, (bool)0);
16835 }
16836 return resultobj;
16837 fail:
16838 return NULL;
16839 }
16840
16841
16842 SWIGINTERN PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16843 PyObject *resultobj = 0;
16844 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
16845 SwigValueWrapper<wxVisualAttributes > result;
16846 int val1 ;
16847 int ecode1 = 0 ;
16848 PyObject * obj0 = 0 ;
16849 char * kwnames[] = {
16850 (char *) "variant", NULL
16851 };
16852
16853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
16854 if (obj0) {
16855 ecode1 = SWIG_AsVal_int(obj0, &val1);
16856 if (!SWIG_IsOK(ecode1)) {
16857 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioBox_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
16858 }
16859 arg1 = static_cast< wxWindowVariant >(val1);
16860 }
16861 {
16862 if (!wxPyCheckForApp()) SWIG_fail;
16863 PyThreadState* __tstate = wxPyBeginAllowThreads();
16864 result = wxRadioBox::GetClassDefaultAttributes(arg1);
16865 wxPyEndAllowThreads(__tstate);
16866 if (PyErr_Occurred()) SWIG_fail;
16867 }
16868 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
16869 return resultobj;
16870 fail:
16871 return NULL;
16872 }
16873
16874
16875 SWIGINTERN PyObject *RadioBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16876 PyObject *obj;
16877 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16878 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioBox, SWIG_NewClientData(obj));
16879 return SWIG_Py_Void();
16880 }
16881
16882 SWIGINTERN PyObject *RadioBox_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16883 return SWIG_Python_InitShadowInstance(args);
16884 }
16885
16886 SWIGINTERN PyObject *_wrap_new_RadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16887 PyObject *resultobj = 0;
16888 wxWindow *arg1 = (wxWindow *) 0 ;
16889 int arg2 = (int) -1 ;
16890 wxString const &arg3_defvalue = wxPyEmptyString ;
16891 wxString *arg3 = (wxString *) &arg3_defvalue ;
16892 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16893 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16894 wxSize const &arg5_defvalue = wxDefaultSize ;
16895 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16896 long arg6 = (long) 0 ;
16897 wxValidator const &arg7_defvalue = wxDefaultValidator ;
16898 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
16899 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
16900 wxString *arg8 = (wxString *) &arg8_defvalue ;
16901 wxRadioButton *result = 0 ;
16902 void *argp1 = 0 ;
16903 int res1 = 0 ;
16904 int val2 ;
16905 int ecode2 = 0 ;
16906 bool temp3 = false ;
16907 wxPoint temp4 ;
16908 wxSize temp5 ;
16909 long val6 ;
16910 int ecode6 = 0 ;
16911 void *argp7 = 0 ;
16912 int res7 = 0 ;
16913 bool temp8 = false ;
16914 PyObject * obj0 = 0 ;
16915 PyObject * obj1 = 0 ;
16916 PyObject * obj2 = 0 ;
16917 PyObject * obj3 = 0 ;
16918 PyObject * obj4 = 0 ;
16919 PyObject * obj5 = 0 ;
16920 PyObject * obj6 = 0 ;
16921 PyObject * obj7 = 0 ;
16922 char * kwnames[] = {
16923 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
16924 };
16925
16926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
16928 if (!SWIG_IsOK(res1)) {
16929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RadioButton" "', expected argument " "1"" of type '" "wxWindow *""'");
16930 }
16931 arg1 = reinterpret_cast< wxWindow * >(argp1);
16932 if (obj1) {
16933 ecode2 = SWIG_AsVal_int(obj1, &val2);
16934 if (!SWIG_IsOK(ecode2)) {
16935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RadioButton" "', expected argument " "2"" of type '" "int""'");
16936 }
16937 arg2 = static_cast< int >(val2);
16938 }
16939 if (obj2) {
16940 {
16941 arg3 = wxString_in_helper(obj2);
16942 if (arg3 == NULL) SWIG_fail;
16943 temp3 = true;
16944 }
16945 }
16946 if (obj3) {
16947 {
16948 arg4 = &temp4;
16949 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16950 }
16951 }
16952 if (obj4) {
16953 {
16954 arg5 = &temp5;
16955 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16956 }
16957 }
16958 if (obj5) {
16959 ecode6 = SWIG_AsVal_long(obj5, &val6);
16960 if (!SWIG_IsOK(ecode6)) {
16961 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_RadioButton" "', expected argument " "6"" of type '" "long""'");
16962 }
16963 arg6 = static_cast< long >(val6);
16964 }
16965 if (obj6) {
16966 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
16967 if (!SWIG_IsOK(res7)) {
16968 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16969 }
16970 if (!argp7) {
16971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RadioButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
16972 }
16973 arg7 = reinterpret_cast< wxValidator * >(argp7);
16974 }
16975 if (obj7) {
16976 {
16977 arg8 = wxString_in_helper(obj7);
16978 if (arg8 == NULL) SWIG_fail;
16979 temp8 = true;
16980 }
16981 }
16982 {
16983 if (!wxPyCheckForApp()) SWIG_fail;
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
16986 wxPyEndAllowThreads(__tstate);
16987 if (PyErr_Occurred()) SWIG_fail;
16988 }
16989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_NEW | 0 );
16990 {
16991 if (temp3)
16992 delete arg3;
16993 }
16994 {
16995 if (temp8)
16996 delete arg8;
16997 }
16998 return resultobj;
16999 fail:
17000 {
17001 if (temp3)
17002 delete arg3;
17003 }
17004 {
17005 if (temp8)
17006 delete arg8;
17007 }
17008 return NULL;
17009 }
17010
17011
17012 SWIGINTERN PyObject *_wrap_new_PreRadioButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17013 PyObject *resultobj = 0;
17014 wxRadioButton *result = 0 ;
17015
17016 if (!SWIG_Python_UnpackTuple(args,"new_PreRadioButton",0,0,0)) SWIG_fail;
17017 {
17018 if (!wxPyCheckForApp()) SWIG_fail;
17019 PyThreadState* __tstate = wxPyBeginAllowThreads();
17020 result = (wxRadioButton *)new wxRadioButton();
17021 wxPyEndAllowThreads(__tstate);
17022 if (PyErr_Occurred()) SWIG_fail;
17023 }
17024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRadioButton, SWIG_POINTER_OWN | 0 );
17025 return resultobj;
17026 fail:
17027 return NULL;
17028 }
17029
17030
17031 SWIGINTERN PyObject *_wrap_RadioButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17032 PyObject *resultobj = 0;
17033 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17034 wxWindow *arg2 = (wxWindow *) 0 ;
17035 int arg3 = (int) -1 ;
17036 wxString const &arg4_defvalue = wxPyEmptyString ;
17037 wxString *arg4 = (wxString *) &arg4_defvalue ;
17038 wxPoint const &arg5_defvalue = wxDefaultPosition ;
17039 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
17040 wxSize const &arg6_defvalue = wxDefaultSize ;
17041 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
17042 long arg7 = (long) 0 ;
17043 wxValidator const &arg8_defvalue = wxDefaultValidator ;
17044 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
17045 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
17046 wxString *arg9 = (wxString *) &arg9_defvalue ;
17047 bool result;
17048 void *argp1 = 0 ;
17049 int res1 = 0 ;
17050 void *argp2 = 0 ;
17051 int res2 = 0 ;
17052 int val3 ;
17053 int ecode3 = 0 ;
17054 bool temp4 = false ;
17055 wxPoint temp5 ;
17056 wxSize temp6 ;
17057 long val7 ;
17058 int ecode7 = 0 ;
17059 void *argp8 = 0 ;
17060 int res8 = 0 ;
17061 bool temp9 = 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 PyObject * obj8 = 0 ;
17071 char * kwnames[] = {
17072 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17073 };
17074
17075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
17076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17077 if (!SWIG_IsOK(res1)) {
17078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_Create" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17079 }
17080 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17081 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17082 if (!SWIG_IsOK(res2)) {
17083 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RadioButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17084 }
17085 arg2 = reinterpret_cast< wxWindow * >(argp2);
17086 if (obj2) {
17087 ecode3 = SWIG_AsVal_int(obj2, &val3);
17088 if (!SWIG_IsOK(ecode3)) {
17089 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "RadioButton_Create" "', expected argument " "3"" of type '" "int""'");
17090 }
17091 arg3 = static_cast< int >(val3);
17092 }
17093 if (obj3) {
17094 {
17095 arg4 = wxString_in_helper(obj3);
17096 if (arg4 == NULL) SWIG_fail;
17097 temp4 = true;
17098 }
17099 }
17100 if (obj4) {
17101 {
17102 arg5 = &temp5;
17103 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17104 }
17105 }
17106 if (obj5) {
17107 {
17108 arg6 = &temp6;
17109 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
17110 }
17111 }
17112 if (obj6) {
17113 ecode7 = SWIG_AsVal_long(obj6, &val7);
17114 if (!SWIG_IsOK(ecode7)) {
17115 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RadioButton_Create" "', expected argument " "7"" of type '" "long""'");
17116 }
17117 arg7 = static_cast< long >(val7);
17118 }
17119 if (obj7) {
17120 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
17121 if (!SWIG_IsOK(res8)) {
17122 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17123 }
17124 if (!argp8) {
17125 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RadioButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
17126 }
17127 arg8 = reinterpret_cast< wxValidator * >(argp8);
17128 }
17129 if (obj8) {
17130 {
17131 arg9 = wxString_in_helper(obj8);
17132 if (arg9 == NULL) SWIG_fail;
17133 temp9 = true;
17134 }
17135 }
17136 {
17137 PyThreadState* __tstate = wxPyBeginAllowThreads();
17138 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 {
17143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17144 }
17145 {
17146 if (temp4)
17147 delete arg4;
17148 }
17149 {
17150 if (temp9)
17151 delete arg9;
17152 }
17153 return resultobj;
17154 fail:
17155 {
17156 if (temp4)
17157 delete arg4;
17158 }
17159 {
17160 if (temp9)
17161 delete arg9;
17162 }
17163 return NULL;
17164 }
17165
17166
17167 SWIGINTERN PyObject *_wrap_RadioButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17168 PyObject *resultobj = 0;
17169 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17170 bool result;
17171 void *argp1 = 0 ;
17172 int res1 = 0 ;
17173 PyObject *swig_obj[1] ;
17174
17175 if (!args) SWIG_fail;
17176 swig_obj[0] = args;
17177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17178 if (!SWIG_IsOK(res1)) {
17179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_GetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17180 }
17181 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17182 {
17183 PyThreadState* __tstate = wxPyBeginAllowThreads();
17184 result = (bool)(arg1)->GetValue();
17185 wxPyEndAllowThreads(__tstate);
17186 if (PyErr_Occurred()) SWIG_fail;
17187 }
17188 {
17189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17190 }
17191 return resultobj;
17192 fail:
17193 return NULL;
17194 }
17195
17196
17197 SWIGINTERN PyObject *_wrap_RadioButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17198 PyObject *resultobj = 0;
17199 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
17200 bool arg2 ;
17201 void *argp1 = 0 ;
17202 int res1 = 0 ;
17203 bool val2 ;
17204 int ecode2 = 0 ;
17205 PyObject * obj0 = 0 ;
17206 PyObject * obj1 = 0 ;
17207 char * kwnames[] = {
17208 (char *) "self",(char *) "value", NULL
17209 };
17210
17211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRadioButton, 0 | 0 );
17213 if (!SWIG_IsOK(res1)) {
17214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RadioButton_SetValue" "', expected argument " "1"" of type '" "wxRadioButton *""'");
17215 }
17216 arg1 = reinterpret_cast< wxRadioButton * >(argp1);
17217 ecode2 = SWIG_AsVal_bool(obj1, &val2);
17218 if (!SWIG_IsOK(ecode2)) {
17219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "RadioButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
17220 }
17221 arg2 = static_cast< bool >(val2);
17222 {
17223 PyThreadState* __tstate = wxPyBeginAllowThreads();
17224 (arg1)->SetValue(arg2);
17225 wxPyEndAllowThreads(__tstate);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 }
17228 resultobj = SWIG_Py_Void();
17229 return resultobj;
17230 fail:
17231 return NULL;
17232 }
17233
17234
17235 SWIGINTERN PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17236 PyObject *resultobj = 0;
17237 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
17238 SwigValueWrapper<wxVisualAttributes > result;
17239 int val1 ;
17240 int ecode1 = 0 ;
17241 PyObject * obj0 = 0 ;
17242 char * kwnames[] = {
17243 (char *) "variant", NULL
17244 };
17245
17246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
17247 if (obj0) {
17248 ecode1 = SWIG_AsVal_int(obj0, &val1);
17249 if (!SWIG_IsOK(ecode1)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "RadioButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
17251 }
17252 arg1 = static_cast< wxWindowVariant >(val1);
17253 }
17254 {
17255 if (!wxPyCheckForApp()) SWIG_fail;
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
17257 result = wxRadioButton::GetClassDefaultAttributes(arg1);
17258 wxPyEndAllowThreads(__tstate);
17259 if (PyErr_Occurred()) SWIG_fail;
17260 }
17261 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
17262 return resultobj;
17263 fail:
17264 return NULL;
17265 }
17266
17267
17268 SWIGINTERN PyObject *RadioButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17269 PyObject *obj;
17270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17271 SWIG_TypeNewClientData(SWIGTYPE_p_wxRadioButton, SWIG_NewClientData(obj));
17272 return SWIG_Py_Void();
17273 }
17274
17275 SWIGINTERN PyObject *RadioButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17276 return SWIG_Python_InitShadowInstance(args);
17277 }
17278
17279 SWIGINTERN int SliderNameStr_set(PyObject *) {
17280 SWIG_Error(SWIG_AttributeError,"Variable SliderNameStr is read-only.");
17281 return 1;
17282 }
17283
17284
17285 SWIGINTERN PyObject *SliderNameStr_get(void) {
17286 PyObject *pyobj = 0;
17287
17288 {
17289 #if wxUSE_UNICODE
17290 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17291 #else
17292 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
17293 #endif
17294 }
17295 return pyobj;
17296 }
17297
17298
17299 SWIGINTERN PyObject *_wrap_new_Slider(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17300 PyObject *resultobj = 0;
17301 wxWindow *arg1 = (wxWindow *) 0 ;
17302 int arg2 = (int) -1 ;
17303 int arg3 = (int) 0 ;
17304 int arg4 = (int) 0 ;
17305 int arg5 = (int) 100 ;
17306 wxPoint const &arg6_defvalue = wxDefaultPosition ;
17307 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
17308 wxSize const &arg7_defvalue = wxDefaultSize ;
17309 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
17310 long arg8 = (long) wxSL_HORIZONTAL ;
17311 wxValidator const &arg9_defvalue = wxDefaultValidator ;
17312 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
17313 wxString const &arg10_defvalue = wxPySliderNameStr ;
17314 wxString *arg10 = (wxString *) &arg10_defvalue ;
17315 wxSlider *result = 0 ;
17316 void *argp1 = 0 ;
17317 int res1 = 0 ;
17318 int val2 ;
17319 int ecode2 = 0 ;
17320 int val3 ;
17321 int ecode3 = 0 ;
17322 int val4 ;
17323 int ecode4 = 0 ;
17324 int val5 ;
17325 int ecode5 = 0 ;
17326 wxPoint temp6 ;
17327 wxSize temp7 ;
17328 long val8 ;
17329 int ecode8 = 0 ;
17330 void *argp9 = 0 ;
17331 int res9 = 0 ;
17332 bool temp10 = false ;
17333 PyObject * obj0 = 0 ;
17334 PyObject * obj1 = 0 ;
17335 PyObject * obj2 = 0 ;
17336 PyObject * obj3 = 0 ;
17337 PyObject * obj4 = 0 ;
17338 PyObject * obj5 = 0 ;
17339 PyObject * obj6 = 0 ;
17340 PyObject * obj7 = 0 ;
17341 PyObject * obj8 = 0 ;
17342 PyObject * obj9 = 0 ;
17343 char * kwnames[] = {
17344 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17345 };
17346
17347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
17348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
17349 if (!SWIG_IsOK(res1)) {
17350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Slider" "', expected argument " "1"" of type '" "wxWindow *""'");
17351 }
17352 arg1 = reinterpret_cast< wxWindow * >(argp1);
17353 if (obj1) {
17354 ecode2 = SWIG_AsVal_int(obj1, &val2);
17355 if (!SWIG_IsOK(ecode2)) {
17356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Slider" "', expected argument " "2"" of type '" "int""'");
17357 }
17358 arg2 = static_cast< int >(val2);
17359 }
17360 if (obj2) {
17361 ecode3 = SWIG_AsVal_int(obj2, &val3);
17362 if (!SWIG_IsOK(ecode3)) {
17363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Slider" "', expected argument " "3"" of type '" "int""'");
17364 }
17365 arg3 = static_cast< int >(val3);
17366 }
17367 if (obj3) {
17368 ecode4 = SWIG_AsVal_int(obj3, &val4);
17369 if (!SWIG_IsOK(ecode4)) {
17370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Slider" "', expected argument " "4"" of type '" "int""'");
17371 }
17372 arg4 = static_cast< int >(val4);
17373 }
17374 if (obj4) {
17375 ecode5 = SWIG_AsVal_int(obj4, &val5);
17376 if (!SWIG_IsOK(ecode5)) {
17377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Slider" "', expected argument " "5"" of type '" "int""'");
17378 }
17379 arg5 = static_cast< int >(val5);
17380 }
17381 if (obj5) {
17382 {
17383 arg6 = &temp6;
17384 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
17385 }
17386 }
17387 if (obj6) {
17388 {
17389 arg7 = &temp7;
17390 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
17391 }
17392 }
17393 if (obj7) {
17394 ecode8 = SWIG_AsVal_long(obj7, &val8);
17395 if (!SWIG_IsOK(ecode8)) {
17396 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_Slider" "', expected argument " "8"" of type '" "long""'");
17397 }
17398 arg8 = static_cast< long >(val8);
17399 }
17400 if (obj8) {
17401 res9 = SWIG_ConvertPtr(obj8, &argp9, SWIGTYPE_p_wxValidator, 0 | 0);
17402 if (!SWIG_IsOK(res9)) {
17403 SWIG_exception_fail(SWIG_ArgError(res9), "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17404 }
17405 if (!argp9) {
17406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Slider" "', expected argument " "9"" of type '" "wxValidator const &""'");
17407 }
17408 arg9 = reinterpret_cast< wxValidator * >(argp9);
17409 }
17410 if (obj9) {
17411 {
17412 arg10 = wxString_in_helper(obj9);
17413 if (arg10 == NULL) SWIG_fail;
17414 temp10 = true;
17415 }
17416 }
17417 {
17418 if (!wxPyCheckForApp()) SWIG_fail;
17419 PyThreadState* __tstate = wxPyBeginAllowThreads();
17420 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_NEW | 0 );
17425 {
17426 if (temp10)
17427 delete arg10;
17428 }
17429 return resultobj;
17430 fail:
17431 {
17432 if (temp10)
17433 delete arg10;
17434 }
17435 return NULL;
17436 }
17437
17438
17439 SWIGINTERN PyObject *_wrap_new_PreSlider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17440 PyObject *resultobj = 0;
17441 wxSlider *result = 0 ;
17442
17443 if (!SWIG_Python_UnpackTuple(args,"new_PreSlider",0,0,0)) SWIG_fail;
17444 {
17445 if (!wxPyCheckForApp()) SWIG_fail;
17446 PyThreadState* __tstate = wxPyBeginAllowThreads();
17447 result = (wxSlider *)new wxSlider();
17448 wxPyEndAllowThreads(__tstate);
17449 if (PyErr_Occurred()) SWIG_fail;
17450 }
17451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSlider, SWIG_POINTER_OWN | 0 );
17452 return resultobj;
17453 fail:
17454 return NULL;
17455 }
17456
17457
17458 SWIGINTERN PyObject *_wrap_Slider_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17459 PyObject *resultobj = 0;
17460 wxSlider *arg1 = (wxSlider *) 0 ;
17461 wxWindow *arg2 = (wxWindow *) 0 ;
17462 int arg3 = (int) -1 ;
17463 int arg4 = (int) 0 ;
17464 int arg5 = (int) 0 ;
17465 int arg6 = (int) 100 ;
17466 wxPoint const &arg7_defvalue = wxDefaultPosition ;
17467 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
17468 wxSize const &arg8_defvalue = wxDefaultSize ;
17469 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
17470 long arg9 = (long) wxSL_HORIZONTAL ;
17471 wxValidator const &arg10_defvalue = wxDefaultValidator ;
17472 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
17473 wxString const &arg11_defvalue = wxPySliderNameStr ;
17474 wxString *arg11 = (wxString *) &arg11_defvalue ;
17475 bool result;
17476 void *argp1 = 0 ;
17477 int res1 = 0 ;
17478 void *argp2 = 0 ;
17479 int res2 = 0 ;
17480 int val3 ;
17481 int ecode3 = 0 ;
17482 int val4 ;
17483 int ecode4 = 0 ;
17484 int val5 ;
17485 int ecode5 = 0 ;
17486 int val6 ;
17487 int ecode6 = 0 ;
17488 wxPoint temp7 ;
17489 wxSize temp8 ;
17490 long val9 ;
17491 int ecode9 = 0 ;
17492 void *argp10 = 0 ;
17493 int res10 = 0 ;
17494 bool temp11 = false ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 PyObject * obj2 = 0 ;
17498 PyObject * obj3 = 0 ;
17499 PyObject * obj4 = 0 ;
17500 PyObject * obj5 = 0 ;
17501 PyObject * obj6 = 0 ;
17502 PyObject * obj7 = 0 ;
17503 PyObject * obj8 = 0 ;
17504 PyObject * obj9 = 0 ;
17505 PyObject * obj10 = 0 ;
17506 char * kwnames[] = {
17507 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
17508 };
17509
17510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) SWIG_fail;
17511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17512 if (!SWIG_IsOK(res1)) {
17513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_Create" "', expected argument " "1"" of type '" "wxSlider *""'");
17514 }
17515 arg1 = reinterpret_cast< wxSlider * >(argp1);
17516 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
17517 if (!SWIG_IsOK(res2)) {
17518 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Slider_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
17519 }
17520 arg2 = reinterpret_cast< wxWindow * >(argp2);
17521 if (obj2) {
17522 ecode3 = SWIG_AsVal_int(obj2, &val3);
17523 if (!SWIG_IsOK(ecode3)) {
17524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_Create" "', expected argument " "3"" of type '" "int""'");
17525 }
17526 arg3 = static_cast< int >(val3);
17527 }
17528 if (obj3) {
17529 ecode4 = SWIG_AsVal_int(obj3, &val4);
17530 if (!SWIG_IsOK(ecode4)) {
17531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Slider_Create" "', expected argument " "4"" of type '" "int""'");
17532 }
17533 arg4 = static_cast< int >(val4);
17534 }
17535 if (obj4) {
17536 ecode5 = SWIG_AsVal_int(obj4, &val5);
17537 if (!SWIG_IsOK(ecode5)) {
17538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Slider_Create" "', expected argument " "5"" of type '" "int""'");
17539 }
17540 arg5 = static_cast< int >(val5);
17541 }
17542 if (obj5) {
17543 ecode6 = SWIG_AsVal_int(obj5, &val6);
17544 if (!SWIG_IsOK(ecode6)) {
17545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Slider_Create" "', expected argument " "6"" of type '" "int""'");
17546 }
17547 arg6 = static_cast< int >(val6);
17548 }
17549 if (obj6) {
17550 {
17551 arg7 = &temp7;
17552 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
17553 }
17554 }
17555 if (obj7) {
17556 {
17557 arg8 = &temp8;
17558 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
17559 }
17560 }
17561 if (obj8) {
17562 ecode9 = SWIG_AsVal_long(obj8, &val9);
17563 if (!SWIG_IsOK(ecode9)) {
17564 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "Slider_Create" "', expected argument " "9"" of type '" "long""'");
17565 }
17566 arg9 = static_cast< long >(val9);
17567 }
17568 if (obj9) {
17569 res10 = SWIG_ConvertPtr(obj9, &argp10, SWIGTYPE_p_wxValidator, 0 | 0);
17570 if (!SWIG_IsOK(res10)) {
17571 SWIG_exception_fail(SWIG_ArgError(res10), "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17572 }
17573 if (!argp10) {
17574 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Slider_Create" "', expected argument " "10"" of type '" "wxValidator const &""'");
17575 }
17576 arg10 = reinterpret_cast< wxValidator * >(argp10);
17577 }
17578 if (obj10) {
17579 {
17580 arg11 = wxString_in_helper(obj10);
17581 if (arg11 == NULL) SWIG_fail;
17582 temp11 = true;
17583 }
17584 }
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 {
17592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17593 }
17594 {
17595 if (temp11)
17596 delete arg11;
17597 }
17598 return resultobj;
17599 fail:
17600 {
17601 if (temp11)
17602 delete arg11;
17603 }
17604 return NULL;
17605 }
17606
17607
17608 SWIGINTERN PyObject *_wrap_Slider_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17609 PyObject *resultobj = 0;
17610 wxSlider *arg1 = (wxSlider *) 0 ;
17611 int result;
17612 void *argp1 = 0 ;
17613 int res1 = 0 ;
17614 PyObject *swig_obj[1] ;
17615
17616 if (!args) SWIG_fail;
17617 swig_obj[0] = args;
17618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17619 if (!SWIG_IsOK(res1)) {
17620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetValue" "', expected argument " "1"" of type '" "wxSlider const *""'");
17621 }
17622 arg1 = reinterpret_cast< wxSlider * >(argp1);
17623 {
17624 PyThreadState* __tstate = wxPyBeginAllowThreads();
17625 result = (int)((wxSlider const *)arg1)->GetValue();
17626 wxPyEndAllowThreads(__tstate);
17627 if (PyErr_Occurred()) SWIG_fail;
17628 }
17629 resultobj = SWIG_From_int(static_cast< int >(result));
17630 return resultobj;
17631 fail:
17632 return NULL;
17633 }
17634
17635
17636 SWIGINTERN PyObject *_wrap_Slider_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17637 PyObject *resultobj = 0;
17638 wxSlider *arg1 = (wxSlider *) 0 ;
17639 int arg2 ;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 int val2 ;
17643 int ecode2 = 0 ;
17644 PyObject * obj0 = 0 ;
17645 PyObject * obj1 = 0 ;
17646 char * kwnames[] = {
17647 (char *) "self",(char *) "value", NULL
17648 };
17649
17650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
17651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17652 if (!SWIG_IsOK(res1)) {
17653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetValue" "', expected argument " "1"" of type '" "wxSlider *""'");
17654 }
17655 arg1 = reinterpret_cast< wxSlider * >(argp1);
17656 ecode2 = SWIG_AsVal_int(obj1, &val2);
17657 if (!SWIG_IsOK(ecode2)) {
17658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetValue" "', expected argument " "2"" of type '" "int""'");
17659 }
17660 arg2 = static_cast< int >(val2);
17661 {
17662 PyThreadState* __tstate = wxPyBeginAllowThreads();
17663 (arg1)->SetValue(arg2);
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 resultobj = SWIG_Py_Void();
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 SWIGINTERN PyObject *_wrap_Slider_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj = 0;
17676 wxSlider *arg1 = (wxSlider *) 0 ;
17677 int arg2 ;
17678 int arg3 ;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 int val2 ;
17682 int ecode2 = 0 ;
17683 int val3 ;
17684 int ecode3 = 0 ;
17685 PyObject * obj0 = 0 ;
17686 PyObject * obj1 = 0 ;
17687 PyObject * obj2 = 0 ;
17688 char * kwnames[] = {
17689 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
17690 };
17691
17692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17694 if (!SWIG_IsOK(res1)) {
17695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetRange" "', expected argument " "1"" of type '" "wxSlider *""'");
17696 }
17697 arg1 = reinterpret_cast< wxSlider * >(argp1);
17698 ecode2 = SWIG_AsVal_int(obj1, &val2);
17699 if (!SWIG_IsOK(ecode2)) {
17700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetRange" "', expected argument " "2"" of type '" "int""'");
17701 }
17702 arg2 = static_cast< int >(val2);
17703 ecode3 = SWIG_AsVal_int(obj2, &val3);
17704 if (!SWIG_IsOK(ecode3)) {
17705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetRange" "', expected argument " "3"" of type '" "int""'");
17706 }
17707 arg3 = static_cast< int >(val3);
17708 {
17709 PyThreadState* __tstate = wxPyBeginAllowThreads();
17710 (arg1)->SetRange(arg2,arg3);
17711 wxPyEndAllowThreads(__tstate);
17712 if (PyErr_Occurred()) SWIG_fail;
17713 }
17714 resultobj = SWIG_Py_Void();
17715 return resultobj;
17716 fail:
17717 return NULL;
17718 }
17719
17720
17721 SWIGINTERN PyObject *_wrap_Slider_GetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17722 PyObject *resultobj = 0;
17723 wxSlider *arg1 = (wxSlider *) 0 ;
17724 int result;
17725 void *argp1 = 0 ;
17726 int res1 = 0 ;
17727 PyObject *swig_obj[1] ;
17728
17729 if (!args) SWIG_fail;
17730 swig_obj[0] = args;
17731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17732 if (!SWIG_IsOK(res1)) {
17733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMin" "', expected argument " "1"" of type '" "wxSlider const *""'");
17734 }
17735 arg1 = reinterpret_cast< wxSlider * >(argp1);
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 result = (int)((wxSlider const *)arg1)->GetMin();
17739 wxPyEndAllowThreads(__tstate);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 resultobj = SWIG_From_int(static_cast< int >(result));
17743 return resultobj;
17744 fail:
17745 return NULL;
17746 }
17747
17748
17749 SWIGINTERN PyObject *_wrap_Slider_GetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17750 PyObject *resultobj = 0;
17751 wxSlider *arg1 = (wxSlider *) 0 ;
17752 int result;
17753 void *argp1 = 0 ;
17754 int res1 = 0 ;
17755 PyObject *swig_obj[1] ;
17756
17757 if (!args) SWIG_fail;
17758 swig_obj[0] = args;
17759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17760 if (!SWIG_IsOK(res1)) {
17761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetMax" "', expected argument " "1"" of type '" "wxSlider const *""'");
17762 }
17763 arg1 = reinterpret_cast< wxSlider * >(argp1);
17764 {
17765 PyThreadState* __tstate = wxPyBeginAllowThreads();
17766 result = (int)((wxSlider const *)arg1)->GetMax();
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 resultobj = SWIG_From_int(static_cast< int >(result));
17771 return resultobj;
17772 fail:
17773 return NULL;
17774 }
17775
17776
17777 SWIGINTERN PyObject *_wrap_Slider_SetMin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17778 PyObject *resultobj = 0;
17779 wxSlider *arg1 = (wxSlider *) 0 ;
17780 int arg2 ;
17781 void *argp1 = 0 ;
17782 int res1 = 0 ;
17783 int val2 ;
17784 int ecode2 = 0 ;
17785 PyObject * obj0 = 0 ;
17786 PyObject * obj1 = 0 ;
17787 char * kwnames[] = {
17788 (char *) "self",(char *) "minValue", NULL
17789 };
17790
17791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) SWIG_fail;
17792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17793 if (!SWIG_IsOK(res1)) {
17794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMin" "', expected argument " "1"" of type '" "wxSlider *""'");
17795 }
17796 arg1 = reinterpret_cast< wxSlider * >(argp1);
17797 ecode2 = SWIG_AsVal_int(obj1, &val2);
17798 if (!SWIG_IsOK(ecode2)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMin" "', expected argument " "2"" of type '" "int""'");
17800 }
17801 arg2 = static_cast< int >(val2);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 (arg1)->SetMin(arg2);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_Slider_SetMax(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxSlider *arg1 = (wxSlider *) 0 ;
17818 int arg2 ;
17819 void *argp1 = 0 ;
17820 int res1 = 0 ;
17821 int val2 ;
17822 int ecode2 = 0 ;
17823 PyObject * obj0 = 0 ;
17824 PyObject * obj1 = 0 ;
17825 char * kwnames[] = {
17826 (char *) "self",(char *) "maxValue", NULL
17827 };
17828
17829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) SWIG_fail;
17830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17831 if (!SWIG_IsOK(res1)) {
17832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetMax" "', expected argument " "1"" of type '" "wxSlider *""'");
17833 }
17834 arg1 = reinterpret_cast< wxSlider * >(argp1);
17835 ecode2 = SWIG_AsVal_int(obj1, &val2);
17836 if (!SWIG_IsOK(ecode2)) {
17837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetMax" "', expected argument " "2"" of type '" "int""'");
17838 }
17839 arg2 = static_cast< int >(val2);
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 (arg1)->SetMax(arg2);
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 resultobj = SWIG_Py_Void();
17847 return resultobj;
17848 fail:
17849 return NULL;
17850 }
17851
17852
17853 SWIGINTERN PyObject *_wrap_Slider_SetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17854 PyObject *resultobj = 0;
17855 wxSlider *arg1 = (wxSlider *) 0 ;
17856 int arg2 ;
17857 void *argp1 = 0 ;
17858 int res1 = 0 ;
17859 int val2 ;
17860 int ecode2 = 0 ;
17861 PyObject * obj0 = 0 ;
17862 PyObject * obj1 = 0 ;
17863 char * kwnames[] = {
17864 (char *) "self",(char *) "lineSize", NULL
17865 };
17866
17867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) SWIG_fail;
17868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17869 if (!SWIG_IsOK(res1)) {
17870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetLineSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17871 }
17872 arg1 = reinterpret_cast< wxSlider * >(argp1);
17873 ecode2 = SWIG_AsVal_int(obj1, &val2);
17874 if (!SWIG_IsOK(ecode2)) {
17875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetLineSize" "', expected argument " "2"" of type '" "int""'");
17876 }
17877 arg2 = static_cast< int >(val2);
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 (arg1)->SetLineSize(arg2);
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 SWIGINTERN PyObject *_wrap_Slider_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj = 0;
17893 wxSlider *arg1 = (wxSlider *) 0 ;
17894 int arg2 ;
17895 void *argp1 = 0 ;
17896 int res1 = 0 ;
17897 int val2 ;
17898 int ecode2 = 0 ;
17899 PyObject * obj0 = 0 ;
17900 PyObject * obj1 = 0 ;
17901 char * kwnames[] = {
17902 (char *) "self",(char *) "pageSize", NULL
17903 };
17904
17905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
17906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17907 if (!SWIG_IsOK(res1)) {
17908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetPageSize" "', expected argument " "1"" of type '" "wxSlider *""'");
17909 }
17910 arg1 = reinterpret_cast< wxSlider * >(argp1);
17911 ecode2 = SWIG_AsVal_int(obj1, &val2);
17912 if (!SWIG_IsOK(ecode2)) {
17913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetPageSize" "', expected argument " "2"" of type '" "int""'");
17914 }
17915 arg2 = static_cast< int >(val2);
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 (arg1)->SetPageSize(arg2);
17919 wxPyEndAllowThreads(__tstate);
17920 if (PyErr_Occurred()) SWIG_fail;
17921 }
17922 resultobj = SWIG_Py_Void();
17923 return resultobj;
17924 fail:
17925 return NULL;
17926 }
17927
17928
17929 SWIGINTERN PyObject *_wrap_Slider_GetLineSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17930 PyObject *resultobj = 0;
17931 wxSlider *arg1 = (wxSlider *) 0 ;
17932 int result;
17933 void *argp1 = 0 ;
17934 int res1 = 0 ;
17935 PyObject *swig_obj[1] ;
17936
17937 if (!args) SWIG_fail;
17938 swig_obj[0] = args;
17939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17940 if (!SWIG_IsOK(res1)) {
17941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetLineSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17942 }
17943 arg1 = reinterpret_cast< wxSlider * >(argp1);
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 result = (int)((wxSlider const *)arg1)->GetLineSize();
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 resultobj = SWIG_From_int(static_cast< int >(result));
17951 return resultobj;
17952 fail:
17953 return NULL;
17954 }
17955
17956
17957 SWIGINTERN PyObject *_wrap_Slider_GetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17958 PyObject *resultobj = 0;
17959 wxSlider *arg1 = (wxSlider *) 0 ;
17960 int result;
17961 void *argp1 = 0 ;
17962 int res1 = 0 ;
17963 PyObject *swig_obj[1] ;
17964
17965 if (!args) SWIG_fail;
17966 swig_obj[0] = args;
17967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
17968 if (!SWIG_IsOK(res1)) {
17969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetPageSize" "', expected argument " "1"" of type '" "wxSlider const *""'");
17970 }
17971 arg1 = reinterpret_cast< wxSlider * >(argp1);
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 result = (int)((wxSlider const *)arg1)->GetPageSize();
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_From_int(static_cast< int >(result));
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 SWIGINTERN PyObject *_wrap_Slider_SetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj = 0;
17987 wxSlider *arg1 = (wxSlider *) 0 ;
17988 int arg2 ;
17989 void *argp1 = 0 ;
17990 int res1 = 0 ;
17991 int val2 ;
17992 int ecode2 = 0 ;
17993 PyObject * obj0 = 0 ;
17994 PyObject * obj1 = 0 ;
17995 char * kwnames[] = {
17996 (char *) "self",(char *) "lenPixels", NULL
17997 };
17998
17999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) SWIG_fail;
18000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18001 if (!SWIG_IsOK(res1)) {
18002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetThumbLength" "', expected argument " "1"" of type '" "wxSlider *""'");
18003 }
18004 arg1 = reinterpret_cast< wxSlider * >(argp1);
18005 ecode2 = SWIG_AsVal_int(obj1, &val2);
18006 if (!SWIG_IsOK(ecode2)) {
18007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetThumbLength" "', expected argument " "2"" of type '" "int""'");
18008 }
18009 arg2 = static_cast< int >(val2);
18010 {
18011 PyThreadState* __tstate = wxPyBeginAllowThreads();
18012 (arg1)->SetThumbLength(arg2);
18013 wxPyEndAllowThreads(__tstate);
18014 if (PyErr_Occurred()) SWIG_fail;
18015 }
18016 resultobj = SWIG_Py_Void();
18017 return resultobj;
18018 fail:
18019 return NULL;
18020 }
18021
18022
18023 SWIGINTERN PyObject *_wrap_Slider_GetThumbLength(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18024 PyObject *resultobj = 0;
18025 wxSlider *arg1 = (wxSlider *) 0 ;
18026 int result;
18027 void *argp1 = 0 ;
18028 int res1 = 0 ;
18029 PyObject *swig_obj[1] ;
18030
18031 if (!args) SWIG_fail;
18032 swig_obj[0] = args;
18033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18034 if (!SWIG_IsOK(res1)) {
18035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetThumbLength" "', expected argument " "1"" of type '" "wxSlider const *""'");
18036 }
18037 arg1 = reinterpret_cast< wxSlider * >(argp1);
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 result = (int)((wxSlider const *)arg1)->GetThumbLength();
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 resultobj = SWIG_From_int(static_cast< int >(result));
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 SWIGINTERN PyObject *_wrap_Slider_SetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18052 PyObject *resultobj = 0;
18053 wxSlider *arg1 = (wxSlider *) 0 ;
18054 int arg2 ;
18055 int arg3 = (int) 1 ;
18056 void *argp1 = 0 ;
18057 int res1 = 0 ;
18058 int val2 ;
18059 int ecode2 = 0 ;
18060 int val3 ;
18061 int ecode3 = 0 ;
18062 PyObject * obj0 = 0 ;
18063 PyObject * obj1 = 0 ;
18064 PyObject * obj2 = 0 ;
18065 char * kwnames[] = {
18066 (char *) "self",(char *) "n",(char *) "pos", NULL
18067 };
18068
18069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18071 if (!SWIG_IsOK(res1)) {
18072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTickFreq" "', expected argument " "1"" of type '" "wxSlider *""'");
18073 }
18074 arg1 = reinterpret_cast< wxSlider * >(argp1);
18075 ecode2 = SWIG_AsVal_int(obj1, &val2);
18076 if (!SWIG_IsOK(ecode2)) {
18077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTickFreq" "', expected argument " "2"" of type '" "int""'");
18078 }
18079 arg2 = static_cast< int >(val2);
18080 if (obj2) {
18081 ecode3 = SWIG_AsVal_int(obj2, &val3);
18082 if (!SWIG_IsOK(ecode3)) {
18083 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetTickFreq" "', expected argument " "3"" of type '" "int""'");
18084 }
18085 arg3 = static_cast< int >(val3);
18086 }
18087 {
18088 PyThreadState* __tstate = wxPyBeginAllowThreads();
18089 (arg1)->SetTickFreq(arg2,arg3);
18090 wxPyEndAllowThreads(__tstate);
18091 if (PyErr_Occurred()) SWIG_fail;
18092 }
18093 resultobj = SWIG_Py_Void();
18094 return resultobj;
18095 fail:
18096 return NULL;
18097 }
18098
18099
18100 SWIGINTERN PyObject *_wrap_Slider_GetTickFreq(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18101 PyObject *resultobj = 0;
18102 wxSlider *arg1 = (wxSlider *) 0 ;
18103 int result;
18104 void *argp1 = 0 ;
18105 int res1 = 0 ;
18106 PyObject *swig_obj[1] ;
18107
18108 if (!args) SWIG_fail;
18109 swig_obj[0] = args;
18110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18111 if (!SWIG_IsOK(res1)) {
18112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetTickFreq" "', expected argument " "1"" of type '" "wxSlider const *""'");
18113 }
18114 arg1 = reinterpret_cast< wxSlider * >(argp1);
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 result = (int)((wxSlider const *)arg1)->GetTickFreq();
18118 wxPyEndAllowThreads(__tstate);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 }
18121 resultobj = SWIG_From_int(static_cast< int >(result));
18122 return resultobj;
18123 fail:
18124 return NULL;
18125 }
18126
18127
18128 SWIGINTERN PyObject *_wrap_Slider_ClearTicks(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18129 PyObject *resultobj = 0;
18130 wxSlider *arg1 = (wxSlider *) 0 ;
18131 void *argp1 = 0 ;
18132 int res1 = 0 ;
18133 PyObject *swig_obj[1] ;
18134
18135 if (!args) SWIG_fail;
18136 swig_obj[0] = args;
18137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18138 if (!SWIG_IsOK(res1)) {
18139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearTicks" "', expected argument " "1"" of type '" "wxSlider *""'");
18140 }
18141 arg1 = reinterpret_cast< wxSlider * >(argp1);
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->ClearTicks();
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 resultobj = SWIG_Py_Void();
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 SWIGINTERN PyObject *_wrap_Slider_SetTick(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj = 0;
18157 wxSlider *arg1 = (wxSlider *) 0 ;
18158 int arg2 ;
18159 void *argp1 = 0 ;
18160 int res1 = 0 ;
18161 int val2 ;
18162 int ecode2 = 0 ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char * kwnames[] = {
18166 (char *) "self",(char *) "tickPos", NULL
18167 };
18168
18169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) SWIG_fail;
18170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetTick" "', expected argument " "1"" of type '" "wxSlider *""'");
18173 }
18174 arg1 = reinterpret_cast< wxSlider * >(argp1);
18175 ecode2 = SWIG_AsVal_int(obj1, &val2);
18176 if (!SWIG_IsOK(ecode2)) {
18177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetTick" "', expected argument " "2"" of type '" "int""'");
18178 }
18179 arg2 = static_cast< int >(val2);
18180 {
18181 PyThreadState* __tstate = wxPyBeginAllowThreads();
18182 (arg1)->SetTick(arg2);
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 resultobj = SWIG_Py_Void();
18187 return resultobj;
18188 fail:
18189 return NULL;
18190 }
18191
18192
18193 SWIGINTERN PyObject *_wrap_Slider_ClearSel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18194 PyObject *resultobj = 0;
18195 wxSlider *arg1 = (wxSlider *) 0 ;
18196 void *argp1 = 0 ;
18197 int res1 = 0 ;
18198 PyObject *swig_obj[1] ;
18199
18200 if (!args) SWIG_fail;
18201 swig_obj[0] = args;
18202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18203 if (!SWIG_IsOK(res1)) {
18204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_ClearSel" "', expected argument " "1"" of type '" "wxSlider *""'");
18205 }
18206 arg1 = reinterpret_cast< wxSlider * >(argp1);
18207 {
18208 PyThreadState* __tstate = wxPyBeginAllowThreads();
18209 (arg1)->ClearSel();
18210 wxPyEndAllowThreads(__tstate);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 }
18213 resultobj = SWIG_Py_Void();
18214 return resultobj;
18215 fail:
18216 return NULL;
18217 }
18218
18219
18220 SWIGINTERN PyObject *_wrap_Slider_GetSelEnd(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18221 PyObject *resultobj = 0;
18222 wxSlider *arg1 = (wxSlider *) 0 ;
18223 int result;
18224 void *argp1 = 0 ;
18225 int res1 = 0 ;
18226 PyObject *swig_obj[1] ;
18227
18228 if (!args) SWIG_fail;
18229 swig_obj[0] = args;
18230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18231 if (!SWIG_IsOK(res1)) {
18232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_GetSelEnd" "', expected argument " "1"" of type '" "wxSlider const *""'");
18233 }
18234 arg1 = reinterpret_cast< wxSlider * >(argp1);
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 result = (int)((wxSlider const *)arg1)->GetSelEnd();
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 resultobj = SWIG_From_int(static_cast< int >(result));
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 SWIGINTERN PyObject *_wrap_Slider_GetSelStart(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_GetSelStart" "', 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)->GetSelStart();
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_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18277 PyObject *resultobj = 0;
18278 wxSlider *arg1 = (wxSlider *) 0 ;
18279 int arg2 ;
18280 int arg3 ;
18281 void *argp1 = 0 ;
18282 int res1 = 0 ;
18283 int val2 ;
18284 int ecode2 = 0 ;
18285 int val3 ;
18286 int ecode3 = 0 ;
18287 PyObject * obj0 = 0 ;
18288 PyObject * obj1 = 0 ;
18289 PyObject * obj2 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "min",(char *) "max", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxSlider, 0 | 0 );
18296 if (!SWIG_IsOK(res1)) {
18297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Slider_SetSelection" "', expected argument " "1"" of type '" "wxSlider *""'");
18298 }
18299 arg1 = reinterpret_cast< wxSlider * >(argp1);
18300 ecode2 = SWIG_AsVal_int(obj1, &val2);
18301 if (!SWIG_IsOK(ecode2)) {
18302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Slider_SetSelection" "', expected argument " "2"" of type '" "int""'");
18303 }
18304 arg2 = static_cast< int >(val2);
18305 ecode3 = SWIG_AsVal_int(obj2, &val3);
18306 if (!SWIG_IsOK(ecode3)) {
18307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Slider_SetSelection" "', expected argument " "3"" of type '" "int""'");
18308 }
18309 arg3 = static_cast< int >(val3);
18310 {
18311 PyThreadState* __tstate = wxPyBeginAllowThreads();
18312 (arg1)->SetSelection(arg2,arg3);
18313 wxPyEndAllowThreads(__tstate);
18314 if (PyErr_Occurred()) SWIG_fail;
18315 }
18316 resultobj = SWIG_Py_Void();
18317 return resultobj;
18318 fail:
18319 return NULL;
18320 }
18321
18322
18323 SWIGINTERN PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18324 PyObject *resultobj = 0;
18325 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18326 SwigValueWrapper<wxVisualAttributes > result;
18327 int val1 ;
18328 int ecode1 = 0 ;
18329 PyObject * obj0 = 0 ;
18330 char * kwnames[] = {
18331 (char *) "variant", NULL
18332 };
18333
18334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18335 if (obj0) {
18336 ecode1 = SWIG_AsVal_int(obj0, &val1);
18337 if (!SWIG_IsOK(ecode1)) {
18338 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Slider_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18339 }
18340 arg1 = static_cast< wxWindowVariant >(val1);
18341 }
18342 {
18343 if (!wxPyCheckForApp()) SWIG_fail;
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 result = wxSlider::GetClassDefaultAttributes(arg1);
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 SWIGINTERN PyObject *Slider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18357 PyObject *obj;
18358 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18359 SWIG_TypeNewClientData(SWIGTYPE_p_wxSlider, SWIG_NewClientData(obj));
18360 return SWIG_Py_Void();
18361 }
18362
18363 SWIGINTERN PyObject *Slider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18364 return SWIG_Python_InitShadowInstance(args);
18365 }
18366
18367 SWIGINTERN int ToggleButtonNameStr_set(PyObject *) {
18368 SWIG_Error(SWIG_AttributeError,"Variable ToggleButtonNameStr is read-only.");
18369 return 1;
18370 }
18371
18372
18373 SWIGINTERN PyObject *ToggleButtonNameStr_get(void) {
18374 PyObject *pyobj = 0;
18375
18376 {
18377 #if wxUSE_UNICODE
18378 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18379 #else
18380 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
18381 #endif
18382 }
18383 return pyobj;
18384 }
18385
18386
18387 SWIGINTERN PyObject *_wrap_new_ToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18388 PyObject *resultobj = 0;
18389 wxWindow *arg1 = (wxWindow *) 0 ;
18390 int arg2 = (int) -1 ;
18391 wxString const &arg3_defvalue = wxPyEmptyString ;
18392 wxString *arg3 = (wxString *) &arg3_defvalue ;
18393 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18394 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18395 wxSize const &arg5_defvalue = wxDefaultSize ;
18396 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18397 long arg6 = (long) 0 ;
18398 wxValidator const &arg7_defvalue = wxDefaultValidator ;
18399 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
18400 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
18401 wxString *arg8 = (wxString *) &arg8_defvalue ;
18402 wxToggleButton *result = 0 ;
18403 void *argp1 = 0 ;
18404 int res1 = 0 ;
18405 int val2 ;
18406 int ecode2 = 0 ;
18407 bool temp3 = false ;
18408 wxPoint temp4 ;
18409 wxSize temp5 ;
18410 long val6 ;
18411 int ecode6 = 0 ;
18412 void *argp7 = 0 ;
18413 int res7 = 0 ;
18414 bool temp8 = false ;
18415 PyObject * obj0 = 0 ;
18416 PyObject * obj1 = 0 ;
18417 PyObject * obj2 = 0 ;
18418 PyObject * obj3 = 0 ;
18419 PyObject * obj4 = 0 ;
18420 PyObject * obj5 = 0 ;
18421 PyObject * obj6 = 0 ;
18422 PyObject * obj7 = 0 ;
18423 char * kwnames[] = {
18424 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18425 };
18426
18427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
18428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
18429 if (!SWIG_IsOK(res1)) {
18430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToggleButton" "', expected argument " "1"" of type '" "wxWindow *""'");
18431 }
18432 arg1 = reinterpret_cast< wxWindow * >(argp1);
18433 if (obj1) {
18434 ecode2 = SWIG_AsVal_int(obj1, &val2);
18435 if (!SWIG_IsOK(ecode2)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToggleButton" "', expected argument " "2"" of type '" "int""'");
18437 }
18438 arg2 = static_cast< int >(val2);
18439 }
18440 if (obj2) {
18441 {
18442 arg3 = wxString_in_helper(obj2);
18443 if (arg3 == NULL) SWIG_fail;
18444 temp3 = true;
18445 }
18446 }
18447 if (obj3) {
18448 {
18449 arg4 = &temp4;
18450 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18451 }
18452 }
18453 if (obj4) {
18454 {
18455 arg5 = &temp5;
18456 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18457 }
18458 }
18459 if (obj5) {
18460 ecode6 = SWIG_AsVal_long(obj5, &val6);
18461 if (!SWIG_IsOK(ecode6)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_ToggleButton" "', expected argument " "6"" of type '" "long""'");
18463 }
18464 arg6 = static_cast< long >(val6);
18465 }
18466 if (obj6) {
18467 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
18468 if (!SWIG_IsOK(res7)) {
18469 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18470 }
18471 if (!argp7) {
18472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ToggleButton" "', expected argument " "7"" of type '" "wxValidator const &""'");
18473 }
18474 arg7 = reinterpret_cast< wxValidator * >(argp7);
18475 }
18476 if (obj7) {
18477 {
18478 arg8 = wxString_in_helper(obj7);
18479 if (arg8 == NULL) SWIG_fail;
18480 temp8 = true;
18481 }
18482 }
18483 {
18484 if (!wxPyCheckForApp()) SWIG_fail;
18485 PyThreadState* __tstate = wxPyBeginAllowThreads();
18486 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
18487 wxPyEndAllowThreads(__tstate);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 }
18490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_NEW | 0 );
18491 {
18492 if (temp3)
18493 delete arg3;
18494 }
18495 {
18496 if (temp8)
18497 delete arg8;
18498 }
18499 return resultobj;
18500 fail:
18501 {
18502 if (temp3)
18503 delete arg3;
18504 }
18505 {
18506 if (temp8)
18507 delete arg8;
18508 }
18509 return NULL;
18510 }
18511
18512
18513 SWIGINTERN PyObject *_wrap_new_PreToggleButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18514 PyObject *resultobj = 0;
18515 wxToggleButton *result = 0 ;
18516
18517 if (!SWIG_Python_UnpackTuple(args,"new_PreToggleButton",0,0,0)) SWIG_fail;
18518 {
18519 if (!wxPyCheckForApp()) SWIG_fail;
18520 PyThreadState* __tstate = wxPyBeginAllowThreads();
18521 result = (wxToggleButton *)new wxToggleButton();
18522 wxPyEndAllowThreads(__tstate);
18523 if (PyErr_Occurred()) SWIG_fail;
18524 }
18525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToggleButton, SWIG_POINTER_OWN | 0 );
18526 return resultobj;
18527 fail:
18528 return NULL;
18529 }
18530
18531
18532 SWIGINTERN PyObject *_wrap_ToggleButton_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18533 PyObject *resultobj = 0;
18534 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18535 wxWindow *arg2 = (wxWindow *) 0 ;
18536 int arg3 = (int) -1 ;
18537 wxString const &arg4_defvalue = wxPyEmptyString ;
18538 wxString *arg4 = (wxString *) &arg4_defvalue ;
18539 wxPoint const &arg5_defvalue = wxDefaultPosition ;
18540 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
18541 wxSize const &arg6_defvalue = wxDefaultSize ;
18542 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
18543 long arg7 = (long) 0 ;
18544 wxValidator const &arg8_defvalue = wxDefaultValidator ;
18545 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
18546 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
18547 wxString *arg9 = (wxString *) &arg9_defvalue ;
18548 bool result;
18549 void *argp1 = 0 ;
18550 int res1 = 0 ;
18551 void *argp2 = 0 ;
18552 int res2 = 0 ;
18553 int val3 ;
18554 int ecode3 = 0 ;
18555 bool temp4 = false ;
18556 wxPoint temp5 ;
18557 wxSize temp6 ;
18558 long val7 ;
18559 int ecode7 = 0 ;
18560 void *argp8 = 0 ;
18561 int res8 = 0 ;
18562 bool temp9 = 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 PyObject * obj8 = 0 ;
18572 char * kwnames[] = {
18573 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
18574 };
18575
18576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
18577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18578 if (!SWIG_IsOK(res1)) {
18579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_Create" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18580 }
18581 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
18583 if (!SWIG_IsOK(res2)) {
18584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToggleButton_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
18585 }
18586 arg2 = reinterpret_cast< wxWindow * >(argp2);
18587 if (obj2) {
18588 ecode3 = SWIG_AsVal_int(obj2, &val3);
18589 if (!SWIG_IsOK(ecode3)) {
18590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToggleButton_Create" "', expected argument " "3"" of type '" "int""'");
18591 }
18592 arg3 = static_cast< int >(val3);
18593 }
18594 if (obj3) {
18595 {
18596 arg4 = wxString_in_helper(obj3);
18597 if (arg4 == NULL) SWIG_fail;
18598 temp4 = true;
18599 }
18600 }
18601 if (obj4) {
18602 {
18603 arg5 = &temp5;
18604 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18605 }
18606 }
18607 if (obj5) {
18608 {
18609 arg6 = &temp6;
18610 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
18611 }
18612 }
18613 if (obj6) {
18614 ecode7 = SWIG_AsVal_long(obj6, &val7);
18615 if (!SWIG_IsOK(ecode7)) {
18616 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToggleButton_Create" "', expected argument " "7"" of type '" "long""'");
18617 }
18618 arg7 = static_cast< long >(val7);
18619 }
18620 if (obj7) {
18621 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
18622 if (!SWIG_IsOK(res8)) {
18623 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18624 }
18625 if (!argp8) {
18626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToggleButton_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
18627 }
18628 arg8 = reinterpret_cast< wxValidator * >(argp8);
18629 }
18630 if (obj8) {
18631 {
18632 arg9 = wxString_in_helper(obj8);
18633 if (arg9 == NULL) SWIG_fail;
18634 temp9 = true;
18635 }
18636 }
18637 {
18638 PyThreadState* __tstate = wxPyBeginAllowThreads();
18639 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
18640 wxPyEndAllowThreads(__tstate);
18641 if (PyErr_Occurred()) SWIG_fail;
18642 }
18643 {
18644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18645 }
18646 {
18647 if (temp4)
18648 delete arg4;
18649 }
18650 {
18651 if (temp9)
18652 delete arg9;
18653 }
18654 return resultobj;
18655 fail:
18656 {
18657 if (temp4)
18658 delete arg4;
18659 }
18660 {
18661 if (temp9)
18662 delete arg9;
18663 }
18664 return NULL;
18665 }
18666
18667
18668 SWIGINTERN PyObject *_wrap_ToggleButton_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18669 PyObject *resultobj = 0;
18670 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18671 bool arg2 ;
18672 void *argp1 = 0 ;
18673 int res1 = 0 ;
18674 bool val2 ;
18675 int ecode2 = 0 ;
18676 PyObject * obj0 = 0 ;
18677 PyObject * obj1 = 0 ;
18678 char * kwnames[] = {
18679 (char *) "self",(char *) "value", NULL
18680 };
18681
18682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
18683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18684 if (!SWIG_IsOK(res1)) {
18685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_SetValue" "', expected argument " "1"" of type '" "wxToggleButton *""'");
18686 }
18687 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18688 ecode2 = SWIG_AsVal_bool(obj1, &val2);
18689 if (!SWIG_IsOK(ecode2)) {
18690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToggleButton_SetValue" "', expected argument " "2"" of type '" "bool""'");
18691 }
18692 arg2 = static_cast< bool >(val2);
18693 {
18694 PyThreadState* __tstate = wxPyBeginAllowThreads();
18695 (arg1)->SetValue(arg2);
18696 wxPyEndAllowThreads(__tstate);
18697 if (PyErr_Occurred()) SWIG_fail;
18698 }
18699 resultobj = SWIG_Py_Void();
18700 return resultobj;
18701 fail:
18702 return NULL;
18703 }
18704
18705
18706 SWIGINTERN PyObject *_wrap_ToggleButton_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18707 PyObject *resultobj = 0;
18708 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
18709 bool result;
18710 void *argp1 = 0 ;
18711 int res1 = 0 ;
18712 PyObject *swig_obj[1] ;
18713
18714 if (!args) SWIG_fail;
18715 swig_obj[0] = args;
18716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToggleButton, 0 | 0 );
18717 if (!SWIG_IsOK(res1)) {
18718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToggleButton_GetValue" "', expected argument " "1"" of type '" "wxToggleButton const *""'");
18719 }
18720 arg1 = reinterpret_cast< wxToggleButton * >(argp1);
18721 {
18722 PyThreadState* __tstate = wxPyBeginAllowThreads();
18723 result = (bool)((wxToggleButton const *)arg1)->GetValue();
18724 wxPyEndAllowThreads(__tstate);
18725 if (PyErr_Occurred()) SWIG_fail;
18726 }
18727 {
18728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18729 }
18730 return resultobj;
18731 fail:
18732 return NULL;
18733 }
18734
18735
18736 SWIGINTERN PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18737 PyObject *resultobj = 0;
18738 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
18739 SwigValueWrapper<wxVisualAttributes > result;
18740 int val1 ;
18741 int ecode1 = 0 ;
18742 PyObject * obj0 = 0 ;
18743 char * kwnames[] = {
18744 (char *) "variant", NULL
18745 };
18746
18747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
18748 if (obj0) {
18749 ecode1 = SWIG_AsVal_int(obj0, &val1);
18750 if (!SWIG_IsOK(ecode1)) {
18751 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToggleButton_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
18752 }
18753 arg1 = static_cast< wxWindowVariant >(val1);
18754 }
18755 {
18756 if (!wxPyCheckForApp()) SWIG_fail;
18757 PyThreadState* __tstate = wxPyBeginAllowThreads();
18758 result = wxToggleButton::GetClassDefaultAttributes(arg1);
18759 wxPyEndAllowThreads(__tstate);
18760 if (PyErr_Occurred()) SWIG_fail;
18761 }
18762 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
18763 return resultobj;
18764 fail:
18765 return NULL;
18766 }
18767
18768
18769 SWIGINTERN PyObject *ToggleButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18770 PyObject *obj;
18771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
18772 SWIG_TypeNewClientData(SWIGTYPE_p_wxToggleButton, SWIG_NewClientData(obj));
18773 return SWIG_Py_Void();
18774 }
18775
18776 SWIGINTERN PyObject *ToggleButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18777 return SWIG_Python_InitShadowInstance(args);
18778 }
18779
18780 SWIGINTERN int NotebookNameStr_set(PyObject *) {
18781 SWIG_Error(SWIG_AttributeError,"Variable NotebookNameStr is read-only.");
18782 return 1;
18783 }
18784
18785
18786 SWIGINTERN PyObject *NotebookNameStr_get(void) {
18787 PyObject *pyobj = 0;
18788
18789 {
18790 #if wxUSE_UNICODE
18791 pyobj = PyUnicode_FromWideChar((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18792 #else
18793 pyobj = PyString_FromStringAndSize((&wxPyNotebookNameStr)->c_str(), (&wxPyNotebookNameStr)->Len());
18794 #endif
18795 }
18796 return pyobj;
18797 }
18798
18799
18800 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18801 PyObject *resultobj = 0;
18802 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18803 size_t result;
18804 void *argp1 = 0 ;
18805 int res1 = 0 ;
18806 PyObject *swig_obj[1] ;
18807
18808 if (!args) SWIG_fail;
18809 swig_obj[0] = args;
18810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18811 if (!SWIG_IsOK(res1)) {
18812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageCount" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18813 }
18814 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
18818 wxPyEndAllowThreads(__tstate);
18819 if (PyErr_Occurred()) SWIG_fail;
18820 }
18821 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
18822 return resultobj;
18823 fail:
18824 return NULL;
18825 }
18826
18827
18828 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18829 PyObject *resultobj = 0;
18830 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18831 size_t arg2 ;
18832 wxWindow *result = 0 ;
18833 void *argp1 = 0 ;
18834 int res1 = 0 ;
18835 size_t val2 ;
18836 int ecode2 = 0 ;
18837 PyObject * obj0 = 0 ;
18838 PyObject * obj1 = 0 ;
18839 char * kwnames[] = {
18840 (char *) "self",(char *) "n", NULL
18841 };
18842
18843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) SWIG_fail;
18844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18845 if (!SWIG_IsOK(res1)) {
18846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18847 }
18848 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18849 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18850 if (!SWIG_IsOK(ecode2)) {
18851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPage" "', expected argument " "2"" of type '" "size_t""'");
18852 }
18853 arg2 = static_cast< size_t >(val2);
18854 {
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 result = (wxWindow *)(arg1)->GetPage(arg2);
18857 wxPyEndAllowThreads(__tstate);
18858 if (PyErr_Occurred()) SWIG_fail;
18859 }
18860 {
18861 resultobj = wxPyMake_wxObject(result, 0);
18862 }
18863 return resultobj;
18864 fail:
18865 return NULL;
18866 }
18867
18868
18869 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18870 PyObject *resultobj = 0;
18871 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18872 wxWindow *result = 0 ;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 PyObject *swig_obj[1] ;
18876
18877 if (!args) SWIG_fail;
18878 swig_obj[0] = args;
18879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18880 if (!SWIG_IsOK(res1)) {
18881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18882 }
18883 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
18887 wxPyEndAllowThreads(__tstate);
18888 if (PyErr_Occurred()) SWIG_fail;
18889 }
18890 {
18891 resultobj = wxPyMake_wxObject(result, 0);
18892 }
18893 return resultobj;
18894 fail:
18895 return NULL;
18896 }
18897
18898
18899 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18900 PyObject *resultobj = 0;
18901 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18902 int result;
18903 void *argp1 = 0 ;
18904 int res1 = 0 ;
18905 PyObject *swig_obj[1] ;
18906
18907 if (!args) SWIG_fail;
18908 swig_obj[0] = args;
18909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18910 if (!SWIG_IsOK(res1)) {
18911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
18912 }
18913 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18914 {
18915 PyThreadState* __tstate = wxPyBeginAllowThreads();
18916 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
18917 wxPyEndAllowThreads(__tstate);
18918 if (PyErr_Occurred()) SWIG_fail;
18919 }
18920 resultobj = SWIG_From_int(static_cast< int >(result));
18921 return resultobj;
18922 fail:
18923 return NULL;
18924 }
18925
18926
18927 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj = 0;
18929 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18930 size_t arg2 ;
18931 wxString *arg3 = 0 ;
18932 bool result;
18933 void *argp1 = 0 ;
18934 int res1 = 0 ;
18935 size_t val2 ;
18936 int ecode2 = 0 ;
18937 bool temp3 = false ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 PyObject * obj2 = 0 ;
18941 char * kwnames[] = {
18942 (char *) "self",(char *) "n",(char *) "strText", NULL
18943 };
18944
18945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
18947 if (!SWIG_IsOK(res1)) {
18948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
18949 }
18950 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
18951 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
18952 if (!SWIG_IsOK(ecode2)) {
18953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageText" "', expected argument " "2"" of type '" "size_t""'");
18954 }
18955 arg2 = static_cast< size_t >(val2);
18956 {
18957 arg3 = wxString_in_helper(obj2);
18958 if (arg3 == NULL) SWIG_fail;
18959 temp3 = true;
18960 }
18961 {
18962 PyThreadState* __tstate = wxPyBeginAllowThreads();
18963 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
18964 wxPyEndAllowThreads(__tstate);
18965 if (PyErr_Occurred()) SWIG_fail;
18966 }
18967 {
18968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18969 }
18970 {
18971 if (temp3)
18972 delete arg3;
18973 }
18974 return resultobj;
18975 fail:
18976 {
18977 if (temp3)
18978 delete arg3;
18979 }
18980 return NULL;
18981 }
18982
18983
18984 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18985 PyObject *resultobj = 0;
18986 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
18987 size_t arg2 ;
18988 wxString result;
18989 void *argp1 = 0 ;
18990 int res1 = 0 ;
18991 size_t val2 ;
18992 int ecode2 = 0 ;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 char * kwnames[] = {
18996 (char *) "self",(char *) "n", NULL
18997 };
18998
18999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) SWIG_fail;
19000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19001 if (!SWIG_IsOK(res1)) {
19002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19003 }
19004 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19005 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19006 if (!SWIG_IsOK(ecode2)) {
19007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageText" "', expected argument " "2"" of type '" "size_t""'");
19008 }
19009 arg2 = static_cast< size_t >(val2);
19010 {
19011 PyThreadState* __tstate = wxPyBeginAllowThreads();
19012 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
19013 wxPyEndAllowThreads(__tstate);
19014 if (PyErr_Occurred()) SWIG_fail;
19015 }
19016 {
19017 #if wxUSE_UNICODE
19018 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
19019 #else
19020 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
19021 #endif
19022 }
19023 return resultobj;
19024 fail:
19025 return NULL;
19026 }
19027
19028
19029 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj = 0;
19031 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19032 wxImageList *arg2 = (wxImageList *) 0 ;
19033 void *argp1 = 0 ;
19034 int res1 = 0 ;
19035 void *argp2 = 0 ;
19036 int res2 = 0 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "imageList", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19047 }
19048 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19049 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
19050 if (!SWIG_IsOK(res2)) {
19051 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19052 }
19053 arg2 = reinterpret_cast< wxImageList * >(argp2);
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 (arg1)->SetImageList(arg2);
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 resultobj = SWIG_Py_Void();
19061 return resultobj;
19062 fail:
19063 return NULL;
19064 }
19065
19066
19067 SWIGINTERN PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19068 PyObject *resultobj = 0;
19069 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19070 wxImageList *arg2 = (wxImageList *) 0 ;
19071 void *argp1 = 0 ;
19072 int res1 = 0 ;
19073 int res2 = 0 ;
19074 PyObject * obj0 = 0 ;
19075 PyObject * obj1 = 0 ;
19076 char * kwnames[] = {
19077 (char *) "self",(char *) "imageList", NULL
19078 };
19079
19080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
19081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19082 if (!SWIG_IsOK(res1)) {
19083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19084 }
19085 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19086 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
19087 if (!SWIG_IsOK(res2)) {
19088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
19089 }
19090 {
19091 PyThreadState* __tstate = wxPyBeginAllowThreads();
19092 (arg1)->AssignImageList(arg2);
19093 wxPyEndAllowThreads(__tstate);
19094 if (PyErr_Occurred()) SWIG_fail;
19095 }
19096 resultobj = SWIG_Py_Void();
19097 return resultobj;
19098 fail:
19099 return NULL;
19100 }
19101
19102
19103 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19104 PyObject *resultobj = 0;
19105 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19106 wxImageList *result = 0 ;
19107 void *argp1 = 0 ;
19108 int res1 = 0 ;
19109 PyObject *swig_obj[1] ;
19110
19111 if (!args) SWIG_fail;
19112 swig_obj[0] = args;
19113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19114 if (!SWIG_IsOK(res1)) {
19115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetImageList" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19116 }
19117 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19118 {
19119 PyThreadState* __tstate = wxPyBeginAllowThreads();
19120 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
19121 wxPyEndAllowThreads(__tstate);
19122 if (PyErr_Occurred()) SWIG_fail;
19123 }
19124 {
19125 resultobj = wxPyMake_wxObject(result, (bool)0);
19126 }
19127 return resultobj;
19128 fail:
19129 return NULL;
19130 }
19131
19132
19133 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19134 PyObject *resultobj = 0;
19135 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19136 size_t arg2 ;
19137 int result;
19138 void *argp1 = 0 ;
19139 int res1 = 0 ;
19140 size_t val2 ;
19141 int ecode2 = 0 ;
19142 PyObject * obj0 = 0 ;
19143 PyObject * obj1 = 0 ;
19144 char * kwnames[] = {
19145 (char *) "self",(char *) "n", NULL
19146 };
19147
19148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) SWIG_fail;
19149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19150 if (!SWIG_IsOK(res1)) {
19151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19152 }
19153 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19154 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19155 if (!SWIG_IsOK(ecode2)) {
19156 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_GetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19157 }
19158 arg2 = static_cast< size_t >(val2);
19159 {
19160 PyThreadState* __tstate = wxPyBeginAllowThreads();
19161 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
19162 wxPyEndAllowThreads(__tstate);
19163 if (PyErr_Occurred()) SWIG_fail;
19164 }
19165 resultobj = SWIG_From_int(static_cast< int >(result));
19166 return resultobj;
19167 fail:
19168 return NULL;
19169 }
19170
19171
19172 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19173 PyObject *resultobj = 0;
19174 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19175 size_t arg2 ;
19176 int arg3 ;
19177 bool result;
19178 void *argp1 = 0 ;
19179 int res1 = 0 ;
19180 size_t val2 ;
19181 int ecode2 = 0 ;
19182 int val3 ;
19183 int ecode3 = 0 ;
19184 PyObject * obj0 = 0 ;
19185 PyObject * obj1 = 0 ;
19186 PyObject * obj2 = 0 ;
19187 char * kwnames[] = {
19188 (char *) "self",(char *) "n",(char *) "imageId", NULL
19189 };
19190
19191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) 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_SetPageImage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19195 }
19196 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19197 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19198 if (!SWIG_IsOK(ecode2)) {
19199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "2"" of type '" "size_t""'");
19200 }
19201 arg2 = static_cast< size_t >(val2);
19202 ecode3 = SWIG_AsVal_int(obj2, &val3);
19203 if (!SWIG_IsOK(ecode3)) {
19204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BookCtrlBase_SetPageImage" "', expected argument " "3"" of type '" "int""'");
19205 }
19206 arg3 = static_cast< int >(val3);
19207 {
19208 PyThreadState* __tstate = wxPyBeginAllowThreads();
19209 result = (bool)(arg1)->SetPageImage(arg2,arg3);
19210 wxPyEndAllowThreads(__tstate);
19211 if (PyErr_Occurred()) SWIG_fail;
19212 }
19213 {
19214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19215 }
19216 return resultobj;
19217 fail:
19218 return NULL;
19219 }
19220
19221
19222 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19223 PyObject *resultobj = 0;
19224 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19225 wxSize *arg2 = 0 ;
19226 void *argp1 = 0 ;
19227 int res1 = 0 ;
19228 wxSize temp2 ;
19229 PyObject * obj0 = 0 ;
19230 PyObject * obj1 = 0 ;
19231 char * kwnames[] = {
19232 (char *) "self",(char *) "size", NULL
19233 };
19234
19235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) SWIG_fail;
19236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19237 if (!SWIG_IsOK(res1)) {
19238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetPageSize" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19239 }
19240 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19241 {
19242 arg2 = &temp2;
19243 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19244 }
19245 {
19246 PyThreadState* __tstate = wxPyBeginAllowThreads();
19247 (arg1)->SetPageSize((wxSize const &)*arg2);
19248 wxPyEndAllowThreads(__tstate);
19249 if (PyErr_Occurred()) SWIG_fail;
19250 }
19251 resultobj = SWIG_Py_Void();
19252 return resultobj;
19253 fail:
19254 return NULL;
19255 }
19256
19257
19258 SWIGINTERN PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj = 0;
19260 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19261 wxSize *arg2 = 0 ;
19262 wxSize result;
19263 void *argp1 = 0 ;
19264 int res1 = 0 ;
19265 wxSize temp2 ;
19266 PyObject * obj0 = 0 ;
19267 PyObject * obj1 = 0 ;
19268 char * kwnames[] = {
19269 (char *) "self",(char *) "sizePage", NULL
19270 };
19271
19272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) SWIG_fail;
19273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19274 if (!SWIG_IsOK(res1)) {
19275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_CalcSizeFromPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19276 }
19277 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19278 {
19279 arg2 = &temp2;
19280 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
19281 }
19282 {
19283 PyThreadState* __tstate = wxPyBeginAllowThreads();
19284 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
19285 wxPyEndAllowThreads(__tstate);
19286 if (PyErr_Occurred()) SWIG_fail;
19287 }
19288 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19289 return resultobj;
19290 fail:
19291 return NULL;
19292 }
19293
19294
19295 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19296 PyObject *resultobj = 0;
19297 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19298 unsigned int result;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 PyObject *swig_obj[1] ;
19302
19303 if (!args) SWIG_fail;
19304 swig_obj[0] = args;
19305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19306 if (!SWIG_IsOK(res1)) {
19307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19308 }
19309 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19310 {
19311 PyThreadState* __tstate = wxPyBeginAllowThreads();
19312 result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
19313 wxPyEndAllowThreads(__tstate);
19314 if (PyErr_Occurred()) SWIG_fail;
19315 }
19316 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
19317 return resultobj;
19318 fail:
19319 return NULL;
19320 }
19321
19322
19323 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19324 PyObject *resultobj = 0;
19325 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19326 unsigned int arg2 ;
19327 void *argp1 = 0 ;
19328 int res1 = 0 ;
19329 unsigned int val2 ;
19330 int ecode2 = 0 ;
19331 PyObject * obj0 = 0 ;
19332 PyObject * obj1 = 0 ;
19333 char * kwnames[] = {
19334 (char *) "self",(char *) "internalBorder", NULL
19335 };
19336
19337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetInternalBorder",kwnames,&obj0,&obj1)) SWIG_fail;
19338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19339 if (!SWIG_IsOK(res1)) {
19340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19341 }
19342 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19343 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
19344 if (!SWIG_IsOK(ecode2)) {
19345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
19346 }
19347 arg2 = static_cast< unsigned int >(val2);
19348 {
19349 PyThreadState* __tstate = wxPyBeginAllowThreads();
19350 (arg1)->SetInternalBorder(arg2);
19351 wxPyEndAllowThreads(__tstate);
19352 if (PyErr_Occurred()) SWIG_fail;
19353 }
19354 resultobj = SWIG_Py_Void();
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_BookCtrlBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19362 PyObject *resultobj = 0;
19363 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19364 bool result;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 PyObject *swig_obj[1] ;
19368
19369 if (!args) SWIG_fail;
19370 swig_obj[0] = args;
19371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19372 if (!SWIG_IsOK(res1)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_IsVertical" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19374 }
19375 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 result = (bool)((wxBookCtrlBase const *)arg1)->IsVertical();
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 {
19383 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19384 }
19385 return resultobj;
19386 fail:
19387 return NULL;
19388 }
19389
19390
19391 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19392 PyObject *resultobj = 0;
19393 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19394 int arg2 ;
19395 void *argp1 = 0 ;
19396 int res1 = 0 ;
19397 int val2 ;
19398 int ecode2 = 0 ;
19399 PyObject * obj0 = 0 ;
19400 PyObject * obj1 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "margin", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetControlMargin",kwnames,&obj0,&obj1)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19409 }
19410 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19411 ecode2 = SWIG_AsVal_int(obj1, &val2);
19412 if (!SWIG_IsOK(ecode2)) {
19413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetControlMargin" "', expected argument " "2"" of type '" "int""'");
19414 }
19415 arg2 = static_cast< int >(val2);
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 (arg1)->SetControlMargin(arg2);
19419 wxPyEndAllowThreads(__tstate);
19420 if (PyErr_Occurred()) SWIG_fail;
19421 }
19422 resultobj = SWIG_Py_Void();
19423 return resultobj;
19424 fail:
19425 return NULL;
19426 }
19427
19428
19429 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlMargin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19430 PyObject *resultobj = 0;
19431 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19432 int result;
19433 void *argp1 = 0 ;
19434 int res1 = 0 ;
19435 PyObject *swig_obj[1] ;
19436
19437 if (!args) SWIG_fail;
19438 swig_obj[0] = args;
19439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19440 if (!SWIG_IsOK(res1)) {
19441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlMargin" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19442 }
19443 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19444 {
19445 PyThreadState* __tstate = wxPyBeginAllowThreads();
19446 result = (int)((wxBookCtrlBase const *)arg1)->GetControlMargin();
19447 wxPyEndAllowThreads(__tstate);
19448 if (PyErr_Occurred()) SWIG_fail;
19449 }
19450 resultobj = SWIG_From_int(static_cast< int >(result));
19451 return resultobj;
19452 fail:
19453 return NULL;
19454 }
19455
19456
19457 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19458 PyObject *resultobj = 0;
19459 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19460 bool arg2 ;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 bool val2 ;
19464 int ecode2 = 0 ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 char * kwnames[] = {
19468 (char *) "self",(char *) "fit", NULL
19469 };
19470
19471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetFitToCurrentPage",kwnames,&obj0,&obj1)) SWIG_fail;
19472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19473 if (!SWIG_IsOK(res1)) {
19474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19475 }
19476 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19477 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19478 if (!SWIG_IsOK(ecode2)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetFitToCurrentPage" "', expected argument " "2"" of type '" "bool""'");
19480 }
19481 arg2 = static_cast< bool >(val2);
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 (arg1)->SetFitToCurrentPage(arg2);
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 resultobj = SWIG_Py_Void();
19489 return resultobj;
19490 fail:
19491 return NULL;
19492 }
19493
19494
19495 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetFitToCurrentPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19496 PyObject *resultobj = 0;
19497 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19498 bool result;
19499 void *argp1 = 0 ;
19500 int res1 = 0 ;
19501 PyObject *swig_obj[1] ;
19502
19503 if (!args) SWIG_fail;
19504 swig_obj[0] = args;
19505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19506 if (!SWIG_IsOK(res1)) {
19507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetFitToCurrentPage" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19508 }
19509 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19510 {
19511 PyThreadState* __tstate = wxPyBeginAllowThreads();
19512 result = (bool)((wxBookCtrlBase const *)arg1)->GetFitToCurrentPage();
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 {
19517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19518 }
19519 return resultobj;
19520 fail:
19521 return NULL;
19522 }
19523
19524
19525 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetControlSizer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19526 PyObject *resultobj = 0;
19527 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19528 wxSizer *result = 0 ;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 PyObject *swig_obj[1] ;
19532
19533 if (!args) SWIG_fail;
19534 swig_obj[0] = args;
19535 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19536 if (!SWIG_IsOK(res1)) {
19537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_GetControlSizer" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19538 }
19539 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 result = (wxSizer *)((wxBookCtrlBase const *)arg1)->GetControlSizer();
19543 wxPyEndAllowThreads(__tstate);
19544 if (PyErr_Occurred()) SWIG_fail;
19545 }
19546 {
19547 resultobj = wxPyMake_wxObject(result, (bool)0);
19548 }
19549 return resultobj;
19550 fail:
19551 return NULL;
19552 }
19553
19554
19555 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19556 PyObject *resultobj = 0;
19557 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19558 size_t arg2 ;
19559 bool result;
19560 void *argp1 = 0 ;
19561 int res1 = 0 ;
19562 size_t val2 ;
19563 int ecode2 = 0 ;
19564 PyObject * obj0 = 0 ;
19565 PyObject * obj1 = 0 ;
19566 char * kwnames[] = {
19567 (char *) "self",(char *) "n", NULL
19568 };
19569
19570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) SWIG_fail;
19571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19572 if (!SWIG_IsOK(res1)) {
19573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19574 }
19575 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19576 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19577 if (!SWIG_IsOK(ecode2)) {
19578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_DeletePage" "', expected argument " "2"" of type '" "size_t""'");
19579 }
19580 arg2 = static_cast< size_t >(val2);
19581 {
19582 PyThreadState* __tstate = wxPyBeginAllowThreads();
19583 result = (bool)(arg1)->DeletePage(arg2);
19584 wxPyEndAllowThreads(__tstate);
19585 if (PyErr_Occurred()) SWIG_fail;
19586 }
19587 {
19588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19589 }
19590 return resultobj;
19591 fail:
19592 return NULL;
19593 }
19594
19595
19596 SWIGINTERN PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19597 PyObject *resultobj = 0;
19598 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19599 size_t arg2 ;
19600 bool result;
19601 void *argp1 = 0 ;
19602 int res1 = 0 ;
19603 size_t val2 ;
19604 int ecode2 = 0 ;
19605 PyObject * obj0 = 0 ;
19606 PyObject * obj1 = 0 ;
19607 char * kwnames[] = {
19608 (char *) "self",(char *) "n", NULL
19609 };
19610
19611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) SWIG_fail;
19612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19613 if (!SWIG_IsOK(res1)) {
19614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19615 }
19616 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19617 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19618 if (!SWIG_IsOK(ecode2)) {
19619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_RemovePage" "', expected argument " "2"" of type '" "size_t""'");
19620 }
19621 arg2 = static_cast< size_t >(val2);
19622 {
19623 PyThreadState* __tstate = wxPyBeginAllowThreads();
19624 result = (bool)(arg1)->RemovePage(arg2);
19625 wxPyEndAllowThreads(__tstate);
19626 if (PyErr_Occurred()) SWIG_fail;
19627 }
19628 {
19629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19630 }
19631 return resultobj;
19632 fail:
19633 return NULL;
19634 }
19635
19636
19637 SWIGINTERN PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19638 PyObject *resultobj = 0;
19639 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19640 bool result;
19641 void *argp1 = 0 ;
19642 int res1 = 0 ;
19643 PyObject *swig_obj[1] ;
19644
19645 if (!args) SWIG_fail;
19646 swig_obj[0] = args;
19647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19648 if (!SWIG_IsOK(res1)) {
19649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_DeleteAllPages" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19650 }
19651 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19652 {
19653 PyThreadState* __tstate = wxPyBeginAllowThreads();
19654 result = (bool)(arg1)->DeleteAllPages();
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 {
19659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19660 }
19661 return resultobj;
19662 fail:
19663 return NULL;
19664 }
19665
19666
19667 SWIGINTERN PyObject *_wrap_BookCtrlBase_AddPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19668 PyObject *resultobj = 0;
19669 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19670 wxWindow *arg2 = (wxWindow *) 0 ;
19671 wxString *arg3 = 0 ;
19672 bool arg4 = (bool) false ;
19673 int arg5 = (int) -1 ;
19674 bool result;
19675 void *argp1 = 0 ;
19676 int res1 = 0 ;
19677 void *argp2 = 0 ;
19678 int res2 = 0 ;
19679 bool temp3 = false ;
19680 bool val4 ;
19681 int ecode4 = 0 ;
19682 int val5 ;
19683 int ecode5 = 0 ;
19684 PyObject * obj0 = 0 ;
19685 PyObject * obj1 = 0 ;
19686 PyObject * obj2 = 0 ;
19687 PyObject * obj3 = 0 ;
19688 PyObject * obj4 = 0 ;
19689 char * kwnames[] = {
19690 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19691 };
19692
19693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19695 if (!SWIG_IsOK(res1)) {
19696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AddPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19697 }
19698 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19699 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
19700 if (!SWIG_IsOK(res2)) {
19701 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BookCtrlBase_AddPage" "', expected argument " "2"" of type '" "wxWindow *""'");
19702 }
19703 arg2 = reinterpret_cast< wxWindow * >(argp2);
19704 {
19705 arg3 = wxString_in_helper(obj2);
19706 if (arg3 == NULL) SWIG_fail;
19707 temp3 = true;
19708 }
19709 if (obj3) {
19710 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19711 if (!SWIG_IsOK(ecode4)) {
19712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "BookCtrlBase_AddPage" "', expected argument " "4"" of type '" "bool""'");
19713 }
19714 arg4 = static_cast< bool >(val4);
19715 }
19716 if (obj4) {
19717 ecode5 = SWIG_AsVal_int(obj4, &val5);
19718 if (!SWIG_IsOK(ecode5)) {
19719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_AddPage" "', expected argument " "5"" of type '" "int""'");
19720 }
19721 arg5 = static_cast< int >(val5);
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 {
19730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19731 }
19732 {
19733 if (temp3)
19734 delete arg3;
19735 }
19736 return resultobj;
19737 fail:
19738 {
19739 if (temp3)
19740 delete arg3;
19741 }
19742 return NULL;
19743 }
19744
19745
19746 SWIGINTERN PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19747 PyObject *resultobj = 0;
19748 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19749 size_t arg2 ;
19750 wxWindow *arg3 = (wxWindow *) 0 ;
19751 wxString *arg4 = 0 ;
19752 bool arg5 = (bool) false ;
19753 int arg6 = (int) -1 ;
19754 bool result;
19755 void *argp1 = 0 ;
19756 int res1 = 0 ;
19757 size_t val2 ;
19758 int ecode2 = 0 ;
19759 void *argp3 = 0 ;
19760 int res3 = 0 ;
19761 bool temp4 = false ;
19762 bool val5 ;
19763 int ecode5 = 0 ;
19764 int val6 ;
19765 int ecode6 = 0 ;
19766 PyObject * obj0 = 0 ;
19767 PyObject * obj1 = 0 ;
19768 PyObject * obj2 = 0 ;
19769 PyObject * obj3 = 0 ;
19770 PyObject * obj4 = 0 ;
19771 PyObject * obj5 = 0 ;
19772 char * kwnames[] = {
19773 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
19774 };
19775
19776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19778 if (!SWIG_IsOK(res1)) {
19779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19780 }
19781 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19782 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19783 if (!SWIG_IsOK(ecode2)) {
19784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "2"" of type '" "size_t""'");
19785 }
19786 arg2 = static_cast< size_t >(val2);
19787 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
19788 if (!SWIG_IsOK(res3)) {
19789 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "3"" of type '" "wxWindow *""'");
19790 }
19791 arg3 = reinterpret_cast< wxWindow * >(argp3);
19792 {
19793 arg4 = wxString_in_helper(obj3);
19794 if (arg4 == NULL) SWIG_fail;
19795 temp4 = true;
19796 }
19797 if (obj4) {
19798 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19799 if (!SWIG_IsOK(ecode5)) {
19800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "5"" of type '" "bool""'");
19801 }
19802 arg5 = static_cast< bool >(val5);
19803 }
19804 if (obj5) {
19805 ecode6 = SWIG_AsVal_int(obj5, &val6);
19806 if (!SWIG_IsOK(ecode6)) {
19807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "BookCtrlBase_InsertPage" "', expected argument " "6"" of type '" "int""'");
19808 }
19809 arg6 = static_cast< int >(val6);
19810 }
19811 {
19812 PyThreadState* __tstate = wxPyBeginAllowThreads();
19813 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
19814 wxPyEndAllowThreads(__tstate);
19815 if (PyErr_Occurred()) SWIG_fail;
19816 }
19817 {
19818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19819 }
19820 {
19821 if (temp4)
19822 delete arg4;
19823 }
19824 return resultobj;
19825 fail:
19826 {
19827 if (temp4)
19828 delete arg4;
19829 }
19830 return NULL;
19831 }
19832
19833
19834 SWIGINTERN PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19835 PyObject *resultobj = 0;
19836 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19837 size_t arg2 ;
19838 int result;
19839 void *argp1 = 0 ;
19840 int res1 = 0 ;
19841 size_t val2 ;
19842 int ecode2 = 0 ;
19843 PyObject * obj0 = 0 ;
19844 PyObject * obj1 = 0 ;
19845 char * kwnames[] = {
19846 (char *) "self",(char *) "n", NULL
19847 };
19848
19849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19851 if (!SWIG_IsOK(res1)) {
19852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19853 }
19854 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19855 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
19856 if (!SWIG_IsOK(ecode2)) {
19857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetSelection" "', expected argument " "2"" of type '" "size_t""'");
19858 }
19859 arg2 = static_cast< size_t >(val2);
19860 {
19861 PyThreadState* __tstate = wxPyBeginAllowThreads();
19862 result = (int)(arg1)->SetSelection(arg2);
19863 wxPyEndAllowThreads(__tstate);
19864 if (PyErr_Occurred()) SWIG_fail;
19865 }
19866 resultobj = SWIG_From_int(static_cast< int >(result));
19867 return resultobj;
19868 fail:
19869 return NULL;
19870 }
19871
19872
19873 SWIGINTERN PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19874 PyObject *resultobj = 0;
19875 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19876 bool arg2 = (bool) true ;
19877 void *argp1 = 0 ;
19878 int res1 = 0 ;
19879 bool val2 ;
19880 int ecode2 = 0 ;
19881 PyObject * obj0 = 0 ;
19882 PyObject * obj1 = 0 ;
19883 char * kwnames[] = {
19884 (char *) "self",(char *) "forward", NULL
19885 };
19886
19887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) SWIG_fail;
19888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19889 if (!SWIG_IsOK(res1)) {
19890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
19891 }
19892 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19893 if (obj1) {
19894 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19895 if (!SWIG_IsOK(ecode2)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_AdvanceSelection" "', expected argument " "2"" of type '" "bool""'");
19897 }
19898 arg2 = static_cast< bool >(val2);
19899 }
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 (arg1)->AdvanceSelection(arg2);
19903 wxPyEndAllowThreads(__tstate);
19904 if (PyErr_Occurred()) SWIG_fail;
19905 }
19906 resultobj = SWIG_Py_Void();
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_BookCtrlBase_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj = 0;
19915 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
19916 wxPoint *arg2 = 0 ;
19917 long *arg3 = (long *) 0 ;
19918 int result;
19919 void *argp1 = 0 ;
19920 int res1 = 0 ;
19921 wxPoint temp2 ;
19922 long temp3 ;
19923 int res3 = SWIG_TMPOBJ ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char * kwnames[] = {
19927 (char *) "self",(char *) "pt", NULL
19928 };
19929
19930 arg3 = &temp3;
19931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
19932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBase, 0 | 0 );
19933 if (!SWIG_IsOK(res1)) {
19934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_HitTest" "', expected argument " "1"" of type '" "wxBookCtrlBase const *""'");
19935 }
19936 arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
19937 {
19938 arg2 = &temp2;
19939 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19940 }
19941 {
19942 PyThreadState* __tstate = wxPyBeginAllowThreads();
19943 result = (int)((wxBookCtrlBase const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
19944 wxPyEndAllowThreads(__tstate);
19945 if (PyErr_Occurred()) SWIG_fail;
19946 }
19947 resultobj = SWIG_From_int(static_cast< int >(result));
19948 if (SWIG_IsTmpObj(res3)) {
19949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg3)));
19950 } else {
19951 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, new_flags));
19953 }
19954 return resultobj;
19955 fail:
19956 return NULL;
19957 }
19958
19959
19960 SWIGINTERN PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19961 PyObject *resultobj = 0;
19962 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
19963 SwigValueWrapper<wxVisualAttributes > result;
19964 int val1 ;
19965 int ecode1 = 0 ;
19966 PyObject * obj0 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "variant", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
19972 if (obj0) {
19973 ecode1 = SWIG_AsVal_int(obj0, &val1);
19974 if (!SWIG_IsOK(ecode1)) {
19975 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "BookCtrlBase_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
19976 }
19977 arg1 = static_cast< wxWindowVariant >(val1);
19978 }
19979 {
19980 if (!wxPyCheckForApp()) SWIG_fail;
19981 PyThreadState* __tstate = wxPyBeginAllowThreads();
19982 result = wxBookCtrlBase::GetClassDefaultAttributes(arg1);
19983 wxPyEndAllowThreads(__tstate);
19984 if (PyErr_Occurred()) SWIG_fail;
19985 }
19986 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
19987 return resultobj;
19988 fail:
19989 return NULL;
19990 }
19991
19992
19993 SWIGINTERN PyObject *BookCtrlBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19994 PyObject *obj;
19995 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
19996 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBase, SWIG_NewClientData(obj));
19997 return SWIG_Py_Void();
19998 }
19999
20000 SWIGINTERN PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20001 PyObject *resultobj = 0;
20002 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20003 int arg2 = (int) 0 ;
20004 int arg3 = (int) -1 ;
20005 int arg4 = (int) -1 ;
20006 wxBookCtrlBaseEvent *result = 0 ;
20007 int val1 ;
20008 int ecode1 = 0 ;
20009 int val2 ;
20010 int ecode2 = 0 ;
20011 int val3 ;
20012 int ecode3 = 0 ;
20013 int val4 ;
20014 int ecode4 = 0 ;
20015 PyObject * obj0 = 0 ;
20016 PyObject * obj1 = 0 ;
20017 PyObject * obj2 = 0 ;
20018 PyObject * obj3 = 0 ;
20019 char * kwnames[] = {
20020 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20021 };
20022
20023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20024 if (obj0) {
20025 ecode1 = SWIG_AsVal_int(obj0, &val1);
20026 if (!SWIG_IsOK(ecode1)) {
20027 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20028 }
20029 arg1 = static_cast< wxEventType >(val1);
20030 }
20031 if (obj1) {
20032 ecode2 = SWIG_AsVal_int(obj1, &val2);
20033 if (!SWIG_IsOK(ecode2)) {
20034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "2"" of type '" "int""'");
20035 }
20036 arg2 = static_cast< int >(val2);
20037 }
20038 if (obj2) {
20039 ecode3 = SWIG_AsVal_int(obj2, &val3);
20040 if (!SWIG_IsOK(ecode3)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "3"" of type '" "int""'");
20042 }
20043 arg3 = static_cast< int >(val3);
20044 }
20045 if (obj3) {
20046 ecode4 = SWIG_AsVal_int(obj3, &val4);
20047 if (!SWIG_IsOK(ecode4)) {
20048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BookCtrlBaseEvent" "', expected argument " "4"" of type '" "int""'");
20049 }
20050 arg4 = static_cast< int >(val4);
20051 }
20052 {
20053 PyThreadState* __tstate = wxPyBeginAllowThreads();
20054 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
20055 wxPyEndAllowThreads(__tstate);
20056 if (PyErr_Occurred()) SWIG_fail;
20057 }
20058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_POINTER_NEW | 0 );
20059 return resultobj;
20060 fail:
20061 return NULL;
20062 }
20063
20064
20065 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20066 PyObject *resultobj = 0;
20067 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20068 int result;
20069 void *argp1 = 0 ;
20070 int res1 = 0 ;
20071 PyObject *swig_obj[1] ;
20072
20073 if (!args) SWIG_fail;
20074 swig_obj[0] = args;
20075 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20076 if (!SWIG_IsOK(res1)) {
20077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20078 }
20079 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20080 {
20081 PyThreadState* __tstate = wxPyBeginAllowThreads();
20082 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
20083 wxPyEndAllowThreads(__tstate);
20084 if (PyErr_Occurred()) SWIG_fail;
20085 }
20086 resultobj = SWIG_From_int(static_cast< int >(result));
20087 return resultobj;
20088 fail:
20089 return NULL;
20090 }
20091
20092
20093 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20094 PyObject *resultobj = 0;
20095 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20096 int arg2 ;
20097 void *argp1 = 0 ;
20098 int res1 = 0 ;
20099 int val2 ;
20100 int ecode2 = 0 ;
20101 PyObject * obj0 = 0 ;
20102 PyObject * obj1 = 0 ;
20103 char * kwnames[] = {
20104 (char *) "self",(char *) "nSel", NULL
20105 };
20106
20107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20109 if (!SWIG_IsOK(res1)) {
20110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20111 }
20112 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20113 ecode2 = SWIG_AsVal_int(obj1, &val2);
20114 if (!SWIG_IsOK(ecode2)) {
20115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetSelection" "', expected argument " "2"" of type '" "int""'");
20116 }
20117 arg2 = static_cast< int >(val2);
20118 {
20119 PyThreadState* __tstate = wxPyBeginAllowThreads();
20120 (arg1)->SetSelection(arg2);
20121 wxPyEndAllowThreads(__tstate);
20122 if (PyErr_Occurred()) SWIG_fail;
20123 }
20124 resultobj = SWIG_Py_Void();
20125 return resultobj;
20126 fail:
20127 return NULL;
20128 }
20129
20130
20131 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20132 PyObject *resultobj = 0;
20133 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20134 int result;
20135 void *argp1 = 0 ;
20136 int res1 = 0 ;
20137 PyObject *swig_obj[1] ;
20138
20139 if (!args) SWIG_fail;
20140 swig_obj[0] = args;
20141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20142 if (!SWIG_IsOK(res1)) {
20143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_GetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent const *""'");
20144 }
20145 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20146 {
20147 PyThreadState* __tstate = wxPyBeginAllowThreads();
20148 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
20149 wxPyEndAllowThreads(__tstate);
20150 if (PyErr_Occurred()) SWIG_fail;
20151 }
20152 resultobj = SWIG_From_int(static_cast< int >(result));
20153 return resultobj;
20154 fail:
20155 return NULL;
20156 }
20157
20158
20159 SWIGINTERN PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20160 PyObject *resultobj = 0;
20161 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
20162 int arg2 ;
20163 void *argp1 = 0 ;
20164 int res1 = 0 ;
20165 int val2 ;
20166 int ecode2 = 0 ;
20167 PyObject * obj0 = 0 ;
20168 PyObject * obj1 = 0 ;
20169 char * kwnames[] = {
20170 (char *) "self",(char *) "nOldSel", NULL
20171 };
20172
20173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) SWIG_fail;
20174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBookCtrlBaseEvent, 0 | 0 );
20175 if (!SWIG_IsOK(res1)) {
20176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "1"" of type '" "wxBookCtrlBaseEvent *""'");
20177 }
20178 arg1 = reinterpret_cast< wxBookCtrlBaseEvent * >(argp1);
20179 ecode2 = SWIG_AsVal_int(obj1, &val2);
20180 if (!SWIG_IsOK(ecode2)) {
20181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBaseEvent_SetOldSelection" "', expected argument " "2"" of type '" "int""'");
20182 }
20183 arg2 = static_cast< int >(val2);
20184 {
20185 PyThreadState* __tstate = wxPyBeginAllowThreads();
20186 (arg1)->SetOldSelection(arg2);
20187 wxPyEndAllowThreads(__tstate);
20188 if (PyErr_Occurred()) SWIG_fail;
20189 }
20190 resultobj = SWIG_Py_Void();
20191 return resultobj;
20192 fail:
20193 return NULL;
20194 }
20195
20196
20197 SWIGINTERN PyObject *BookCtrlBaseEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20198 PyObject *obj;
20199 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20200 SWIG_TypeNewClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, SWIG_NewClientData(obj));
20201 return SWIG_Py_Void();
20202 }
20203
20204 SWIGINTERN PyObject *BookCtrlBaseEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20205 return SWIG_Python_InitShadowInstance(args);
20206 }
20207
20208 SWIGINTERN PyObject *_wrap_new_Notebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20209 PyObject *resultobj = 0;
20210 wxWindow *arg1 = (wxWindow *) 0 ;
20211 int arg2 = (int) -1 ;
20212 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20213 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20214 wxSize const &arg4_defvalue = wxDefaultSize ;
20215 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20216 long arg5 = (long) 0 ;
20217 wxString const &arg6_defvalue = wxPyNotebookNameStr ;
20218 wxString *arg6 = (wxString *) &arg6_defvalue ;
20219 wxNotebook *result = 0 ;
20220 void *argp1 = 0 ;
20221 int res1 = 0 ;
20222 int val2 ;
20223 int ecode2 = 0 ;
20224 wxPoint temp3 ;
20225 wxSize temp4 ;
20226 long val5 ;
20227 int ecode5 = 0 ;
20228 bool temp6 = false ;
20229 PyObject * obj0 = 0 ;
20230 PyObject * obj1 = 0 ;
20231 PyObject * obj2 = 0 ;
20232 PyObject * obj3 = 0 ;
20233 PyObject * obj4 = 0 ;
20234 PyObject * obj5 = 0 ;
20235 char * kwnames[] = {
20236 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20237 };
20238
20239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20241 if (!SWIG_IsOK(res1)) {
20242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Notebook" "', expected argument " "1"" of type '" "wxWindow *""'");
20243 }
20244 arg1 = reinterpret_cast< wxWindow * >(argp1);
20245 if (obj1) {
20246 ecode2 = SWIG_AsVal_int(obj1, &val2);
20247 if (!SWIG_IsOK(ecode2)) {
20248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Notebook" "', expected argument " "2"" of type '" "int""'");
20249 }
20250 arg2 = static_cast< int >(val2);
20251 }
20252 if (obj2) {
20253 {
20254 arg3 = &temp3;
20255 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20256 }
20257 }
20258 if (obj3) {
20259 {
20260 arg4 = &temp4;
20261 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20262 }
20263 }
20264 if (obj4) {
20265 ecode5 = SWIG_AsVal_long(obj4, &val5);
20266 if (!SWIG_IsOK(ecode5)) {
20267 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Notebook" "', expected argument " "5"" of type '" "long""'");
20268 }
20269 arg5 = static_cast< long >(val5);
20270 }
20271 if (obj5) {
20272 {
20273 arg6 = wxString_in_helper(obj5);
20274 if (arg6 == NULL) SWIG_fail;
20275 temp6 = true;
20276 }
20277 }
20278 {
20279 if (!wxPyCheckForApp()) SWIG_fail;
20280 PyThreadState* __tstate = wxPyBeginAllowThreads();
20281 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20282 wxPyEndAllowThreads(__tstate);
20283 if (PyErr_Occurred()) SWIG_fail;
20284 }
20285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_NEW | 0 );
20286 {
20287 if (temp6)
20288 delete arg6;
20289 }
20290 return resultobj;
20291 fail:
20292 {
20293 if (temp6)
20294 delete arg6;
20295 }
20296 return NULL;
20297 }
20298
20299
20300 SWIGINTERN PyObject *_wrap_new_PreNotebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20301 PyObject *resultobj = 0;
20302 wxNotebook *result = 0 ;
20303
20304 if (!SWIG_Python_UnpackTuple(args,"new_PreNotebook",0,0,0)) SWIG_fail;
20305 {
20306 if (!wxPyCheckForApp()) SWIG_fail;
20307 PyThreadState* __tstate = wxPyBeginAllowThreads();
20308 result = (wxNotebook *)new wxNotebook();
20309 wxPyEndAllowThreads(__tstate);
20310 if (PyErr_Occurred()) SWIG_fail;
20311 }
20312 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebook, SWIG_POINTER_OWN | 0 );
20313 return resultobj;
20314 fail:
20315 return NULL;
20316 }
20317
20318
20319 SWIGINTERN PyObject *_wrap_Notebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20320 PyObject *resultobj = 0;
20321 wxNotebook *arg1 = (wxNotebook *) 0 ;
20322 wxWindow *arg2 = (wxWindow *) 0 ;
20323 int arg3 = (int) -1 ;
20324 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20325 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20326 wxSize const &arg5_defvalue = wxDefaultSize ;
20327 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20328 long arg6 = (long) 0 ;
20329 wxString const &arg7_defvalue = wxPyNotebookNameStr ;
20330 wxString *arg7 = (wxString *) &arg7_defvalue ;
20331 bool result;
20332 void *argp1 = 0 ;
20333 int res1 = 0 ;
20334 void *argp2 = 0 ;
20335 int res2 = 0 ;
20336 int val3 ;
20337 int ecode3 = 0 ;
20338 wxPoint temp4 ;
20339 wxSize temp5 ;
20340 long val6 ;
20341 int ecode6 = 0 ;
20342 bool temp7 = false ;
20343 PyObject * obj0 = 0 ;
20344 PyObject * obj1 = 0 ;
20345 PyObject * obj2 = 0 ;
20346 PyObject * obj3 = 0 ;
20347 PyObject * obj4 = 0 ;
20348 PyObject * obj5 = 0 ;
20349 PyObject * obj6 = 0 ;
20350 char * kwnames[] = {
20351 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20352 };
20353
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_Create" "', expected argument " "1"" of type '" "wxNotebook *""'");
20358 }
20359 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20361 if (!SWIG_IsOK(res2)) {
20362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Notebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20363 }
20364 arg2 = reinterpret_cast< wxWindow * >(argp2);
20365 if (obj2) {
20366 ecode3 = SWIG_AsVal_int(obj2, &val3);
20367 if (!SWIG_IsOK(ecode3)) {
20368 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Notebook_Create" "', expected argument " "3"" of type '" "int""'");
20369 }
20370 arg3 = static_cast< int >(val3);
20371 }
20372 if (obj3) {
20373 {
20374 arg4 = &temp4;
20375 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20376 }
20377 }
20378 if (obj4) {
20379 {
20380 arg5 = &temp5;
20381 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20382 }
20383 }
20384 if (obj5) {
20385 ecode6 = SWIG_AsVal_long(obj5, &val6);
20386 if (!SWIG_IsOK(ecode6)) {
20387 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Notebook_Create" "', expected argument " "6"" of type '" "long""'");
20388 }
20389 arg6 = static_cast< long >(val6);
20390 }
20391 if (obj6) {
20392 {
20393 arg7 = wxString_in_helper(obj6);
20394 if (arg7 == NULL) SWIG_fail;
20395 temp7 = true;
20396 }
20397 }
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 {
20405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20406 }
20407 {
20408 if (temp7)
20409 delete arg7;
20410 }
20411 return resultobj;
20412 fail:
20413 {
20414 if (temp7)
20415 delete arg7;
20416 }
20417 return NULL;
20418 }
20419
20420
20421 SWIGINTERN PyObject *_wrap_Notebook_GetRowCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20422 PyObject *resultobj = 0;
20423 wxNotebook *arg1 = (wxNotebook *) 0 ;
20424 int result;
20425 void *argp1 = 0 ;
20426 int res1 = 0 ;
20427 PyObject *swig_obj[1] ;
20428
20429 if (!args) SWIG_fail;
20430 swig_obj[0] = args;
20431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20432 if (!SWIG_IsOK(res1)) {
20433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetRowCount" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20434 }
20435 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20436 {
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (int)((wxNotebook const *)arg1)->GetRowCount();
20439 wxPyEndAllowThreads(__tstate);
20440 if (PyErr_Occurred()) SWIG_fail;
20441 }
20442 resultobj = SWIG_From_int(static_cast< int >(result));
20443 return resultobj;
20444 fail:
20445 return NULL;
20446 }
20447
20448
20449 SWIGINTERN PyObject *_wrap_Notebook_SetPadding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20450 PyObject *resultobj = 0;
20451 wxNotebook *arg1 = (wxNotebook *) 0 ;
20452 wxSize *arg2 = 0 ;
20453 void *argp1 = 0 ;
20454 int res1 = 0 ;
20455 wxSize temp2 ;
20456 PyObject * obj0 = 0 ;
20457 PyObject * obj1 = 0 ;
20458 char * kwnames[] = {
20459 (char *) "self",(char *) "padding", NULL
20460 };
20461
20462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) SWIG_fail;
20463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20464 if (!SWIG_IsOK(res1)) {
20465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetPadding" "', expected argument " "1"" of type '" "wxNotebook *""'");
20466 }
20467 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20468 {
20469 arg2 = &temp2;
20470 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20471 }
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 (arg1)->SetPadding((wxSize const &)*arg2);
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 resultobj = SWIG_Py_Void();
20479 return resultobj;
20480 fail:
20481 return NULL;
20482 }
20483
20484
20485 SWIGINTERN PyObject *_wrap_Notebook_SetTabSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20486 PyObject *resultobj = 0;
20487 wxNotebook *arg1 = (wxNotebook *) 0 ;
20488 wxSize *arg2 = 0 ;
20489 void *argp1 = 0 ;
20490 int res1 = 0 ;
20491 wxSize temp2 ;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494 char * kwnames[] = {
20495 (char *) "self",(char *) "sz", NULL
20496 };
20497
20498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) SWIG_fail;
20499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20500 if (!SWIG_IsOK(res1)) {
20501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_SetTabSize" "', expected argument " "1"" of type '" "wxNotebook *""'");
20502 }
20503 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20504 {
20505 arg2 = &temp2;
20506 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
20507 }
20508 {
20509 PyThreadState* __tstate = wxPyBeginAllowThreads();
20510 (arg1)->SetTabSize((wxSize const &)*arg2);
20511 wxPyEndAllowThreads(__tstate);
20512 if (PyErr_Occurred()) SWIG_fail;
20513 }
20514 resultobj = SWIG_Py_Void();
20515 return resultobj;
20516 fail:
20517 return NULL;
20518 }
20519
20520
20521 SWIGINTERN PyObject *_wrap_Notebook_GetThemeBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20522 PyObject *resultobj = 0;
20523 wxNotebook *arg1 = (wxNotebook *) 0 ;
20524 wxColour result;
20525 void *argp1 = 0 ;
20526 int res1 = 0 ;
20527 PyObject *swig_obj[1] ;
20528
20529 if (!args) SWIG_fail;
20530 swig_obj[0] = args;
20531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNotebook, 0 | 0 );
20532 if (!SWIG_IsOK(res1)) {
20533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Notebook_GetThemeBackgroundColour" "', expected argument " "1"" of type '" "wxNotebook const *""'");
20534 }
20535 arg1 = reinterpret_cast< wxNotebook * >(argp1);
20536 {
20537 PyThreadState* __tstate = wxPyBeginAllowThreads();
20538 result = ((wxNotebook const *)arg1)->GetThemeBackgroundColour();
20539 wxPyEndAllowThreads(__tstate);
20540 if (PyErr_Occurred()) SWIG_fail;
20541 }
20542 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
20543 return resultobj;
20544 fail:
20545 return NULL;
20546 }
20547
20548
20549 SWIGINTERN PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20550 PyObject *resultobj = 0;
20551 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
20552 SwigValueWrapper<wxVisualAttributes > result;
20553 int val1 ;
20554 int ecode1 = 0 ;
20555 PyObject * obj0 = 0 ;
20556 char * kwnames[] = {
20557 (char *) "variant", NULL
20558 };
20559
20560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
20561 if (obj0) {
20562 ecode1 = SWIG_AsVal_int(obj0, &val1);
20563 if (!SWIG_IsOK(ecode1)) {
20564 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Notebook_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
20565 }
20566 arg1 = static_cast< wxWindowVariant >(val1);
20567 }
20568 {
20569 if (!wxPyCheckForApp()) SWIG_fail;
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 result = wxNotebook::GetClassDefaultAttributes(arg1);
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
20576 return resultobj;
20577 fail:
20578 return NULL;
20579 }
20580
20581
20582 SWIGINTERN PyObject *Notebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20583 PyObject *obj;
20584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20585 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebook, SWIG_NewClientData(obj));
20586 return SWIG_Py_Void();
20587 }
20588
20589 SWIGINTERN PyObject *Notebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20590 return SWIG_Python_InitShadowInstance(args);
20591 }
20592
20593 SWIGINTERN PyObject *_wrap_new_NotebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20594 PyObject *resultobj = 0;
20595 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20596 int arg2 = (int) 0 ;
20597 int arg3 = (int) -1 ;
20598 int arg4 = (int) -1 ;
20599 wxNotebookEvent *result = 0 ;
20600 int val1 ;
20601 int ecode1 = 0 ;
20602 int val2 ;
20603 int ecode2 = 0 ;
20604 int val3 ;
20605 int ecode3 = 0 ;
20606 int val4 ;
20607 int ecode4 = 0 ;
20608 PyObject * obj0 = 0 ;
20609 PyObject * obj1 = 0 ;
20610 PyObject * obj2 = 0 ;
20611 PyObject * obj3 = 0 ;
20612 char * kwnames[] = {
20613 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20614 };
20615
20616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20617 if (obj0) {
20618 ecode1 = SWIG_AsVal_int(obj0, &val1);
20619 if (!SWIG_IsOK(ecode1)) {
20620 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_NotebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20621 }
20622 arg1 = static_cast< wxEventType >(val1);
20623 }
20624 if (obj1) {
20625 ecode2 = SWIG_AsVal_int(obj1, &val2);
20626 if (!SWIG_IsOK(ecode2)) {
20627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_NotebookEvent" "', expected argument " "2"" of type '" "int""'");
20628 }
20629 arg2 = static_cast< int >(val2);
20630 }
20631 if (obj2) {
20632 ecode3 = SWIG_AsVal_int(obj2, &val3);
20633 if (!SWIG_IsOK(ecode3)) {
20634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_NotebookEvent" "', expected argument " "3"" of type '" "int""'");
20635 }
20636 arg3 = static_cast< int >(val3);
20637 }
20638 if (obj3) {
20639 ecode4 = SWIG_AsVal_int(obj3, &val4);
20640 if (!SWIG_IsOK(ecode4)) {
20641 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_NotebookEvent" "', expected argument " "4"" of type '" "int""'");
20642 }
20643 arg4 = static_cast< int >(val4);
20644 }
20645 {
20646 PyThreadState* __tstate = wxPyBeginAllowThreads();
20647 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
20648 wxPyEndAllowThreads(__tstate);
20649 if (PyErr_Occurred()) SWIG_fail;
20650 }
20651 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNotebookEvent, SWIG_POINTER_NEW | 0 );
20652 return resultobj;
20653 fail:
20654 return NULL;
20655 }
20656
20657
20658 SWIGINTERN PyObject *NotebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20659 PyObject *obj;
20660 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20661 SWIG_TypeNewClientData(SWIGTYPE_p_wxNotebookEvent, SWIG_NewClientData(obj));
20662 return SWIG_Py_Void();
20663 }
20664
20665 SWIGINTERN PyObject *NotebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20666 return SWIG_Python_InitShadowInstance(args);
20667 }
20668
20669 SWIGINTERN PyObject *_wrap_new_Listbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20670 PyObject *resultobj = 0;
20671 wxWindow *arg1 = (wxWindow *) 0 ;
20672 int arg2 = (int) -1 ;
20673 wxPoint const &arg3_defvalue = wxDefaultPosition ;
20674 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
20675 wxSize const &arg4_defvalue = wxDefaultSize ;
20676 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
20677 long arg5 = (long) 0 ;
20678 wxString const &arg6_defvalue = wxPyEmptyString ;
20679 wxString *arg6 = (wxString *) &arg6_defvalue ;
20680 wxListbook *result = 0 ;
20681 void *argp1 = 0 ;
20682 int res1 = 0 ;
20683 int val2 ;
20684 int ecode2 = 0 ;
20685 wxPoint temp3 ;
20686 wxSize temp4 ;
20687 long val5 ;
20688 int ecode5 = 0 ;
20689 bool temp6 = false ;
20690 PyObject * obj0 = 0 ;
20691 PyObject * obj1 = 0 ;
20692 PyObject * obj2 = 0 ;
20693 PyObject * obj3 = 0 ;
20694 PyObject * obj4 = 0 ;
20695 PyObject * obj5 = 0 ;
20696 char * kwnames[] = {
20697 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20698 };
20699
20700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20702 if (!SWIG_IsOK(res1)) {
20703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Listbook" "', expected argument " "1"" of type '" "wxWindow *""'");
20704 }
20705 arg1 = reinterpret_cast< wxWindow * >(argp1);
20706 if (obj1) {
20707 ecode2 = SWIG_AsVal_int(obj1, &val2);
20708 if (!SWIG_IsOK(ecode2)) {
20709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Listbook" "', expected argument " "2"" of type '" "int""'");
20710 }
20711 arg2 = static_cast< int >(val2);
20712 }
20713 if (obj2) {
20714 {
20715 arg3 = &temp3;
20716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
20717 }
20718 }
20719 if (obj3) {
20720 {
20721 arg4 = &temp4;
20722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
20723 }
20724 }
20725 if (obj4) {
20726 ecode5 = SWIG_AsVal_long(obj4, &val5);
20727 if (!SWIG_IsOK(ecode5)) {
20728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Listbook" "', expected argument " "5"" of type '" "long""'");
20729 }
20730 arg5 = static_cast< long >(val5);
20731 }
20732 if (obj5) {
20733 {
20734 arg6 = wxString_in_helper(obj5);
20735 if (arg6 == NULL) SWIG_fail;
20736 temp6 = true;
20737 }
20738 }
20739 {
20740 if (!wxPyCheckForApp()) SWIG_fail;
20741 PyThreadState* __tstate = wxPyBeginAllowThreads();
20742 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
20743 wxPyEndAllowThreads(__tstate);
20744 if (PyErr_Occurred()) SWIG_fail;
20745 }
20746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_NEW | 0 );
20747 {
20748 if (temp6)
20749 delete arg6;
20750 }
20751 return resultobj;
20752 fail:
20753 {
20754 if (temp6)
20755 delete arg6;
20756 }
20757 return NULL;
20758 }
20759
20760
20761 SWIGINTERN PyObject *_wrap_new_PreListbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20762 PyObject *resultobj = 0;
20763 wxListbook *result = 0 ;
20764
20765 if (!SWIG_Python_UnpackTuple(args,"new_PreListbook",0,0,0)) SWIG_fail;
20766 {
20767 if (!wxPyCheckForApp()) SWIG_fail;
20768 PyThreadState* __tstate = wxPyBeginAllowThreads();
20769 result = (wxListbook *)new wxListbook();
20770 wxPyEndAllowThreads(__tstate);
20771 if (PyErr_Occurred()) SWIG_fail;
20772 }
20773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbook, SWIG_POINTER_OWN | 0 );
20774 return resultobj;
20775 fail:
20776 return NULL;
20777 }
20778
20779
20780 SWIGINTERN PyObject *_wrap_Listbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20781 PyObject *resultobj = 0;
20782 wxListbook *arg1 = (wxListbook *) 0 ;
20783 wxWindow *arg2 = (wxWindow *) 0 ;
20784 int arg3 = (int) -1 ;
20785 wxPoint const &arg4_defvalue = wxDefaultPosition ;
20786 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
20787 wxSize const &arg5_defvalue = wxDefaultSize ;
20788 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
20789 long arg6 = (long) 0 ;
20790 wxString const &arg7_defvalue = wxPyEmptyString ;
20791 wxString *arg7 = (wxString *) &arg7_defvalue ;
20792 bool result;
20793 void *argp1 = 0 ;
20794 int res1 = 0 ;
20795 void *argp2 = 0 ;
20796 int res2 = 0 ;
20797 int val3 ;
20798 int ecode3 = 0 ;
20799 wxPoint temp4 ;
20800 wxSize temp5 ;
20801 long val6 ;
20802 int ecode6 = 0 ;
20803 bool temp7 = false ;
20804 PyObject * obj0 = 0 ;
20805 PyObject * obj1 = 0 ;
20806 PyObject * obj2 = 0 ;
20807 PyObject * obj3 = 0 ;
20808 PyObject * obj4 = 0 ;
20809 PyObject * obj5 = 0 ;
20810 PyObject * obj6 = 0 ;
20811 char * kwnames[] = {
20812 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
20813 };
20814
20815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
20816 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20817 if (!SWIG_IsOK(res1)) {
20818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_Create" "', expected argument " "1"" of type '" "wxListbook *""'");
20819 }
20820 arg1 = reinterpret_cast< wxListbook * >(argp1);
20821 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20822 if (!SWIG_IsOK(res2)) {
20823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Listbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
20824 }
20825 arg2 = reinterpret_cast< wxWindow * >(argp2);
20826 if (obj2) {
20827 ecode3 = SWIG_AsVal_int(obj2, &val3);
20828 if (!SWIG_IsOK(ecode3)) {
20829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Listbook_Create" "', expected argument " "3"" of type '" "int""'");
20830 }
20831 arg3 = static_cast< int >(val3);
20832 }
20833 if (obj3) {
20834 {
20835 arg4 = &temp4;
20836 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
20837 }
20838 }
20839 if (obj4) {
20840 {
20841 arg5 = &temp5;
20842 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
20843 }
20844 }
20845 if (obj5) {
20846 ecode6 = SWIG_AsVal_long(obj5, &val6);
20847 if (!SWIG_IsOK(ecode6)) {
20848 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Listbook_Create" "', expected argument " "6"" of type '" "long""'");
20849 }
20850 arg6 = static_cast< long >(val6);
20851 }
20852 if (obj6) {
20853 {
20854 arg7 = wxString_in_helper(obj6);
20855 if (arg7 == NULL) SWIG_fail;
20856 temp7 = true;
20857 }
20858 }
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 {
20866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20867 }
20868 {
20869 if (temp7)
20870 delete arg7;
20871 }
20872 return resultobj;
20873 fail:
20874 {
20875 if (temp7)
20876 delete arg7;
20877 }
20878 return NULL;
20879 }
20880
20881
20882 SWIGINTERN PyObject *_wrap_Listbook_GetListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20883 PyObject *resultobj = 0;
20884 wxListbook *arg1 = (wxListbook *) 0 ;
20885 wxListView *result = 0 ;
20886 void *argp1 = 0 ;
20887 int res1 = 0 ;
20888 PyObject *swig_obj[1] ;
20889
20890 if (!args) SWIG_fail;
20891 swig_obj[0] = args;
20892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListbook, 0 | 0 );
20893 if (!SWIG_IsOK(res1)) {
20894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Listbook_GetListView" "', expected argument " "1"" of type '" "wxListbook *""'");
20895 }
20896 arg1 = reinterpret_cast< wxListbook * >(argp1);
20897 {
20898 PyThreadState* __tstate = wxPyBeginAllowThreads();
20899 result = (wxListView *)(arg1)->GetListView();
20900 wxPyEndAllowThreads(__tstate);
20901 if (PyErr_Occurred()) SWIG_fail;
20902 }
20903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, 0 | 0 );
20904 return resultobj;
20905 fail:
20906 return NULL;
20907 }
20908
20909
20910 SWIGINTERN PyObject *Listbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20911 PyObject *obj;
20912 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20913 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbook, SWIG_NewClientData(obj));
20914 return SWIG_Py_Void();
20915 }
20916
20917 SWIGINTERN PyObject *Listbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20918 return SWIG_Python_InitShadowInstance(args);
20919 }
20920
20921 SWIGINTERN PyObject *_wrap_new_ListbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20922 PyObject *resultobj = 0;
20923 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20924 int arg2 = (int) 0 ;
20925 int arg3 = (int) -1 ;
20926 int arg4 = (int) -1 ;
20927 wxListbookEvent *result = 0 ;
20928 int val1 ;
20929 int ecode1 = 0 ;
20930 int val2 ;
20931 int ecode2 = 0 ;
20932 int val3 ;
20933 int ecode3 = 0 ;
20934 int val4 ;
20935 int ecode4 = 0 ;
20936 PyObject * obj0 = 0 ;
20937 PyObject * obj1 = 0 ;
20938 PyObject * obj2 = 0 ;
20939 PyObject * obj3 = 0 ;
20940 char * kwnames[] = {
20941 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
20942 };
20943
20944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20945 if (obj0) {
20946 ecode1 = SWIG_AsVal_int(obj0, &val1);
20947 if (!SWIG_IsOK(ecode1)) {
20948 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
20949 }
20950 arg1 = static_cast< wxEventType >(val1);
20951 }
20952 if (obj1) {
20953 ecode2 = SWIG_AsVal_int(obj1, &val2);
20954 if (!SWIG_IsOK(ecode2)) {
20955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListbookEvent" "', expected argument " "2"" of type '" "int""'");
20956 }
20957 arg2 = static_cast< int >(val2);
20958 }
20959 if (obj2) {
20960 ecode3 = SWIG_AsVal_int(obj2, &val3);
20961 if (!SWIG_IsOK(ecode3)) {
20962 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ListbookEvent" "', expected argument " "3"" of type '" "int""'");
20963 }
20964 arg3 = static_cast< int >(val3);
20965 }
20966 if (obj3) {
20967 ecode4 = SWIG_AsVal_int(obj3, &val4);
20968 if (!SWIG_IsOK(ecode4)) {
20969 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ListbookEvent" "', expected argument " "4"" of type '" "int""'");
20970 }
20971 arg4 = static_cast< int >(val4);
20972 }
20973 {
20974 PyThreadState* __tstate = wxPyBeginAllowThreads();
20975 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
20976 wxPyEndAllowThreads(__tstate);
20977 if (PyErr_Occurred()) SWIG_fail;
20978 }
20979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListbookEvent, SWIG_POINTER_NEW | 0 );
20980 return resultobj;
20981 fail:
20982 return NULL;
20983 }
20984
20985
20986 SWIGINTERN PyObject *ListbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20987 PyObject *obj;
20988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20989 SWIG_TypeNewClientData(SWIGTYPE_p_wxListbookEvent, SWIG_NewClientData(obj));
20990 return SWIG_Py_Void();
20991 }
20992
20993 SWIGINTERN PyObject *ListbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20994 return SWIG_Python_InitShadowInstance(args);
20995 }
20996
20997 SWIGINTERN PyObject *_wrap_new_Choicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20998 PyObject *resultobj = 0;
20999 wxWindow *arg1 = (wxWindow *) 0 ;
21000 int arg2 ;
21001 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21002 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21003 wxSize const &arg4_defvalue = wxDefaultSize ;
21004 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21005 long arg5 = (long) 0 ;
21006 wxString const &arg6_defvalue = wxPyEmptyString ;
21007 wxString *arg6 = (wxString *) &arg6_defvalue ;
21008 wxChoicebook *result = 0 ;
21009 void *argp1 = 0 ;
21010 int res1 = 0 ;
21011 int val2 ;
21012 int ecode2 = 0 ;
21013 wxPoint temp3 ;
21014 wxSize temp4 ;
21015 long val5 ;
21016 int ecode5 = 0 ;
21017 bool temp6 = false ;
21018 PyObject * obj0 = 0 ;
21019 PyObject * obj1 = 0 ;
21020 PyObject * obj2 = 0 ;
21021 PyObject * obj3 = 0 ;
21022 PyObject * obj4 = 0 ;
21023 PyObject * obj5 = 0 ;
21024 char * kwnames[] = {
21025 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21026 };
21027
21028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21030 if (!SWIG_IsOK(res1)) {
21031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Choicebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21032 }
21033 arg1 = reinterpret_cast< wxWindow * >(argp1);
21034 ecode2 = SWIG_AsVal_int(obj1, &val2);
21035 if (!SWIG_IsOK(ecode2)) {
21036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Choicebook" "', expected argument " "2"" of type '" "int""'");
21037 }
21038 arg2 = static_cast< int >(val2);
21039 if (obj2) {
21040 {
21041 arg3 = &temp3;
21042 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21043 }
21044 }
21045 if (obj3) {
21046 {
21047 arg4 = &temp4;
21048 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21049 }
21050 }
21051 if (obj4) {
21052 ecode5 = SWIG_AsVal_long(obj4, &val5);
21053 if (!SWIG_IsOK(ecode5)) {
21054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Choicebook" "', expected argument " "5"" of type '" "long""'");
21055 }
21056 arg5 = static_cast< long >(val5);
21057 }
21058 if (obj5) {
21059 {
21060 arg6 = wxString_in_helper(obj5);
21061 if (arg6 == NULL) SWIG_fail;
21062 temp6 = true;
21063 }
21064 }
21065 {
21066 if (!wxPyCheckForApp()) SWIG_fail;
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_NEW | 0 );
21073 {
21074 if (temp6)
21075 delete arg6;
21076 }
21077 return resultobj;
21078 fail:
21079 {
21080 if (temp6)
21081 delete arg6;
21082 }
21083 return NULL;
21084 }
21085
21086
21087 SWIGINTERN PyObject *_wrap_new_PreChoicebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21088 PyObject *resultobj = 0;
21089 wxChoicebook *result = 0 ;
21090
21091 if (!SWIG_Python_UnpackTuple(args,"new_PreChoicebook",0,0,0)) SWIG_fail;
21092 {
21093 if (!wxPyCheckForApp()) SWIG_fail;
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 result = (wxChoicebook *)new wxChoicebook();
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebook, SWIG_POINTER_OWN | 0 );
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 SWIGINTERN PyObject *_wrap_Choicebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj = 0;
21108 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21109 wxWindow *arg2 = (wxWindow *) 0 ;
21110 int arg3 ;
21111 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21112 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21113 wxSize const &arg5_defvalue = wxDefaultSize ;
21114 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21115 long arg6 = (long) 0 ;
21116 wxString const &arg7_defvalue = wxPyEmptyString ;
21117 wxString *arg7 = (wxString *) &arg7_defvalue ;
21118 bool result;
21119 void *argp1 = 0 ;
21120 int res1 = 0 ;
21121 void *argp2 = 0 ;
21122 int res2 = 0 ;
21123 int val3 ;
21124 int ecode3 = 0 ;
21125 wxPoint temp4 ;
21126 wxSize temp5 ;
21127 long val6 ;
21128 int ecode6 = 0 ;
21129 bool temp7 = false ;
21130 PyObject * obj0 = 0 ;
21131 PyObject * obj1 = 0 ;
21132 PyObject * obj2 = 0 ;
21133 PyObject * obj3 = 0 ;
21134 PyObject * obj4 = 0 ;
21135 PyObject * obj5 = 0 ;
21136 PyObject * obj6 = 0 ;
21137 char * kwnames[] = {
21138 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21139 };
21140
21141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21143 if (!SWIG_IsOK(res1)) {
21144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_Create" "', expected argument " "1"" of type '" "wxChoicebook *""'");
21145 }
21146 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21148 if (!SWIG_IsOK(res2)) {
21149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Choicebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21150 }
21151 arg2 = reinterpret_cast< wxWindow * >(argp2);
21152 ecode3 = SWIG_AsVal_int(obj2, &val3);
21153 if (!SWIG_IsOK(ecode3)) {
21154 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Choicebook_Create" "', expected argument " "3"" of type '" "int""'");
21155 }
21156 arg3 = static_cast< int >(val3);
21157 if (obj3) {
21158 {
21159 arg4 = &temp4;
21160 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21161 }
21162 }
21163 if (obj4) {
21164 {
21165 arg5 = &temp5;
21166 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21167 }
21168 }
21169 if (obj5) {
21170 ecode6 = SWIG_AsVal_long(obj5, &val6);
21171 if (!SWIG_IsOK(ecode6)) {
21172 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Choicebook_Create" "', expected argument " "6"" of type '" "long""'");
21173 }
21174 arg6 = static_cast< long >(val6);
21175 }
21176 if (obj6) {
21177 {
21178 arg7 = wxString_in_helper(obj6);
21179 if (arg7 == NULL) SWIG_fail;
21180 temp7 = true;
21181 }
21182 }
21183 {
21184 PyThreadState* __tstate = wxPyBeginAllowThreads();
21185 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21186 wxPyEndAllowThreads(__tstate);
21187 if (PyErr_Occurred()) SWIG_fail;
21188 }
21189 {
21190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21191 }
21192 {
21193 if (temp7)
21194 delete arg7;
21195 }
21196 return resultobj;
21197 fail:
21198 {
21199 if (temp7)
21200 delete arg7;
21201 }
21202 return NULL;
21203 }
21204
21205
21206 SWIGINTERN PyObject *_wrap_Choicebook_GetChoiceCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21207 PyObject *resultobj = 0;
21208 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
21209 wxChoice *result = 0 ;
21210 void *argp1 = 0 ;
21211 int res1 = 0 ;
21212 PyObject *swig_obj[1] ;
21213
21214 if (!args) SWIG_fail;
21215 swig_obj[0] = args;
21216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxChoicebook, 0 | 0 );
21217 if (!SWIG_IsOK(res1)) {
21218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Choicebook_GetChoiceCtrl" "', expected argument " "1"" of type '" "wxChoicebook const *""'");
21219 }
21220 arg1 = reinterpret_cast< wxChoicebook * >(argp1);
21221 {
21222 PyThreadState* __tstate = wxPyBeginAllowThreads();
21223 result = (wxChoice *)((wxChoicebook const *)arg1)->GetChoiceCtrl();
21224 wxPyEndAllowThreads(__tstate);
21225 if (PyErr_Occurred()) SWIG_fail;
21226 }
21227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoice, 0 | 0 );
21228 return resultobj;
21229 fail:
21230 return NULL;
21231 }
21232
21233
21234 SWIGINTERN PyObject *Choicebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21235 PyObject *obj;
21236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21237 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebook, SWIG_NewClientData(obj));
21238 return SWIG_Py_Void();
21239 }
21240
21241 SWIGINTERN PyObject *Choicebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21242 return SWIG_Python_InitShadowInstance(args);
21243 }
21244
21245 SWIGINTERN PyObject *_wrap_new_ChoicebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21246 PyObject *resultobj = 0;
21247 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21248 int arg2 = (int) 0 ;
21249 int arg3 = (int) -1 ;
21250 int arg4 = (int) -1 ;
21251 wxChoicebookEvent *result = 0 ;
21252 int val1 ;
21253 int ecode1 = 0 ;
21254 int val2 ;
21255 int ecode2 = 0 ;
21256 int val3 ;
21257 int ecode3 = 0 ;
21258 int val4 ;
21259 int ecode4 = 0 ;
21260 PyObject * obj0 = 0 ;
21261 PyObject * obj1 = 0 ;
21262 PyObject * obj2 = 0 ;
21263 PyObject * obj3 = 0 ;
21264 char * kwnames[] = {
21265 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21266 };
21267
21268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21269 if (obj0) {
21270 ecode1 = SWIG_AsVal_int(obj0, &val1);
21271 if (!SWIG_IsOK(ecode1)) {
21272 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChoicebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21273 }
21274 arg1 = static_cast< wxEventType >(val1);
21275 }
21276 if (obj1) {
21277 ecode2 = SWIG_AsVal_int(obj1, &val2);
21278 if (!SWIG_IsOK(ecode2)) {
21279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ChoicebookEvent" "', expected argument " "2"" of type '" "int""'");
21280 }
21281 arg2 = static_cast< int >(val2);
21282 }
21283 if (obj2) {
21284 ecode3 = SWIG_AsVal_int(obj2, &val3);
21285 if (!SWIG_IsOK(ecode3)) {
21286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ChoicebookEvent" "', expected argument " "3"" of type '" "int""'");
21287 }
21288 arg3 = static_cast< int >(val3);
21289 }
21290 if (obj3) {
21291 ecode4 = SWIG_AsVal_int(obj3, &val4);
21292 if (!SWIG_IsOK(ecode4)) {
21293 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ChoicebookEvent" "', expected argument " "4"" of type '" "int""'");
21294 }
21295 arg4 = static_cast< int >(val4);
21296 }
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
21300 wxPyEndAllowThreads(__tstate);
21301 if (PyErr_Occurred()) SWIG_fail;
21302 }
21303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChoicebookEvent, SWIG_POINTER_NEW | 0 );
21304 return resultobj;
21305 fail:
21306 return NULL;
21307 }
21308
21309
21310 SWIGINTERN PyObject *ChoicebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21311 PyObject *obj;
21312 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21313 SWIG_TypeNewClientData(SWIGTYPE_p_wxChoicebookEvent, SWIG_NewClientData(obj));
21314 return SWIG_Py_Void();
21315 }
21316
21317 SWIGINTERN PyObject *ChoicebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21318 return SWIG_Python_InitShadowInstance(args);
21319 }
21320
21321 SWIGINTERN PyObject *_wrap_new_Treebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21322 PyObject *resultobj = 0;
21323 wxWindow *arg1 = (wxWindow *) 0 ;
21324 int arg2 ;
21325 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21326 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21327 wxSize const &arg4_defvalue = wxDefaultSize ;
21328 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21329 long arg5 = (long) wxBK_DEFAULT ;
21330 wxString const &arg6_defvalue = wxPyEmptyString ;
21331 wxString *arg6 = (wxString *) &arg6_defvalue ;
21332 wxTreebook *result = 0 ;
21333 void *argp1 = 0 ;
21334 int res1 = 0 ;
21335 int val2 ;
21336 int ecode2 = 0 ;
21337 wxPoint temp3 ;
21338 wxSize temp4 ;
21339 long val5 ;
21340 int ecode5 = 0 ;
21341 bool temp6 = false ;
21342 PyObject * obj0 = 0 ;
21343 PyObject * obj1 = 0 ;
21344 PyObject * obj2 = 0 ;
21345 PyObject * obj3 = 0 ;
21346 PyObject * obj4 = 0 ;
21347 PyObject * obj5 = 0 ;
21348 char * kwnames[] = {
21349 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21350 };
21351
21352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Treebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21354 if (!SWIG_IsOK(res1)) {
21355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Treebook" "', expected argument " "1"" of type '" "wxWindow *""'");
21356 }
21357 arg1 = reinterpret_cast< wxWindow * >(argp1);
21358 ecode2 = SWIG_AsVal_int(obj1, &val2);
21359 if (!SWIG_IsOK(ecode2)) {
21360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Treebook" "', expected argument " "2"" of type '" "int""'");
21361 }
21362 arg2 = static_cast< int >(val2);
21363 if (obj2) {
21364 {
21365 arg3 = &temp3;
21366 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21367 }
21368 }
21369 if (obj3) {
21370 {
21371 arg4 = &temp4;
21372 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21373 }
21374 }
21375 if (obj4) {
21376 ecode5 = SWIG_AsVal_long(obj4, &val5);
21377 if (!SWIG_IsOK(ecode5)) {
21378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Treebook" "', expected argument " "5"" of type '" "long""'");
21379 }
21380 arg5 = static_cast< long >(val5);
21381 }
21382 if (obj5) {
21383 {
21384 arg6 = wxString_in_helper(obj5);
21385 if (arg6 == NULL) SWIG_fail;
21386 temp6 = true;
21387 }
21388 }
21389 {
21390 if (!wxPyCheckForApp()) SWIG_fail;
21391 PyThreadState* __tstate = wxPyBeginAllowThreads();
21392 result = (wxTreebook *)new wxTreebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
21393 wxPyEndAllowThreads(__tstate);
21394 if (PyErr_Occurred()) SWIG_fail;
21395 }
21396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_NEW | 0 );
21397 {
21398 if (temp6)
21399 delete arg6;
21400 }
21401 return resultobj;
21402 fail:
21403 {
21404 if (temp6)
21405 delete arg6;
21406 }
21407 return NULL;
21408 }
21409
21410
21411 SWIGINTERN PyObject *_wrap_new_PreTreebook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21412 PyObject *resultobj = 0;
21413 wxTreebook *result = 0 ;
21414
21415 if (!SWIG_Python_UnpackTuple(args,"new_PreTreebook",0,0,0)) SWIG_fail;
21416 {
21417 if (!wxPyCheckForApp()) SWIG_fail;
21418 PyThreadState* __tstate = wxPyBeginAllowThreads();
21419 result = (wxTreebook *)new wxTreebook();
21420 wxPyEndAllowThreads(__tstate);
21421 if (PyErr_Occurred()) SWIG_fail;
21422 }
21423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebook, SWIG_POINTER_OWN | 0 );
21424 return resultobj;
21425 fail:
21426 return NULL;
21427 }
21428
21429
21430 SWIGINTERN PyObject *_wrap_Treebook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21431 PyObject *resultobj = 0;
21432 wxTreebook *arg1 = (wxTreebook *) 0 ;
21433 wxWindow *arg2 = (wxWindow *) 0 ;
21434 int arg3 ;
21435 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21436 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21437 wxSize const &arg5_defvalue = wxDefaultSize ;
21438 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21439 long arg6 = (long) wxBK_DEFAULT ;
21440 wxString const &arg7_defvalue = wxPyEmptyString ;
21441 wxString *arg7 = (wxString *) &arg7_defvalue ;
21442 bool result;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 void *argp2 = 0 ;
21446 int res2 = 0 ;
21447 int val3 ;
21448 int ecode3 = 0 ;
21449 wxPoint temp4 ;
21450 wxSize temp5 ;
21451 long val6 ;
21452 int ecode6 = 0 ;
21453 bool temp7 = false ;
21454 PyObject * obj0 = 0 ;
21455 PyObject * obj1 = 0 ;
21456 PyObject * obj2 = 0 ;
21457 PyObject * obj3 = 0 ;
21458 PyObject * obj4 = 0 ;
21459 PyObject * obj5 = 0 ;
21460 PyObject * obj6 = 0 ;
21461 char * kwnames[] = {
21462 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
21463 };
21464
21465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Treebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21467 if (!SWIG_IsOK(res1)) {
21468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_Create" "', expected argument " "1"" of type '" "wxTreebook *""'");
21469 }
21470 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21472 if (!SWIG_IsOK(res2)) {
21473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
21474 }
21475 arg2 = reinterpret_cast< wxWindow * >(argp2);
21476 ecode3 = SWIG_AsVal_int(obj2, &val3);
21477 if (!SWIG_IsOK(ecode3)) {
21478 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_Create" "', expected argument " "3"" of type '" "int""'");
21479 }
21480 arg3 = static_cast< int >(val3);
21481 if (obj3) {
21482 {
21483 arg4 = &temp4;
21484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21485 }
21486 }
21487 if (obj4) {
21488 {
21489 arg5 = &temp5;
21490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21491 }
21492 }
21493 if (obj5) {
21494 ecode6 = SWIG_AsVal_long(obj5, &val6);
21495 if (!SWIG_IsOK(ecode6)) {
21496 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_Create" "', expected argument " "6"" of type '" "long""'");
21497 }
21498 arg6 = static_cast< long >(val6);
21499 }
21500 if (obj6) {
21501 {
21502 arg7 = wxString_in_helper(obj6);
21503 if (arg7 == NULL) SWIG_fail;
21504 temp7 = true;
21505 }
21506 }
21507 {
21508 PyThreadState* __tstate = wxPyBeginAllowThreads();
21509 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
21510 wxPyEndAllowThreads(__tstate);
21511 if (PyErr_Occurred()) SWIG_fail;
21512 }
21513 {
21514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21515 }
21516 {
21517 if (temp7)
21518 delete arg7;
21519 }
21520 return resultobj;
21521 fail:
21522 {
21523 if (temp7)
21524 delete arg7;
21525 }
21526 return NULL;
21527 }
21528
21529
21530 SWIGINTERN PyObject *_wrap_Treebook_InsertSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21531 PyObject *resultobj = 0;
21532 wxTreebook *arg1 = (wxTreebook *) 0 ;
21533 size_t arg2 ;
21534 wxWindow *arg3 = (wxWindow *) 0 ;
21535 wxString *arg4 = 0 ;
21536 bool arg5 = (bool) false ;
21537 int arg6 = (int) wxNOT_FOUND ;
21538 bool result;
21539 void *argp1 = 0 ;
21540 int res1 = 0 ;
21541 size_t val2 ;
21542 int ecode2 = 0 ;
21543 void *argp3 = 0 ;
21544 int res3 = 0 ;
21545 bool temp4 = false ;
21546 bool val5 ;
21547 int ecode5 = 0 ;
21548 int val6 ;
21549 int ecode6 = 0 ;
21550 PyObject * obj0 = 0 ;
21551 PyObject * obj1 = 0 ;
21552 PyObject * obj2 = 0 ;
21553 PyObject * obj3 = 0 ;
21554 PyObject * obj4 = 0 ;
21555 PyObject * obj5 = 0 ;
21556 char * kwnames[] = {
21557 (char *) "self",(char *) "pos",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21558 };
21559
21560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:Treebook_InsertSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
21561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21562 if (!SWIG_IsOK(res1)) {
21563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_InsertSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21564 }
21565 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21566 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21567 if (!SWIG_IsOK(ecode2)) {
21568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_InsertSubPage" "', expected argument " "2"" of type '" "size_t""'");
21569 }
21570 arg2 = static_cast< size_t >(val2);
21571 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
21572 if (!SWIG_IsOK(res3)) {
21573 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Treebook_InsertSubPage" "', expected argument " "3"" of type '" "wxWindow *""'");
21574 }
21575 arg3 = reinterpret_cast< wxWindow * >(argp3);
21576 {
21577 arg4 = wxString_in_helper(obj3);
21578 if (arg4 == NULL) SWIG_fail;
21579 temp4 = true;
21580 }
21581 if (obj4) {
21582 ecode5 = SWIG_AsVal_bool(obj4, &val5);
21583 if (!SWIG_IsOK(ecode5)) {
21584 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_InsertSubPage" "', expected argument " "5"" of type '" "bool""'");
21585 }
21586 arg5 = static_cast< bool >(val5);
21587 }
21588 if (obj5) {
21589 ecode6 = SWIG_AsVal_int(obj5, &val6);
21590 if (!SWIG_IsOK(ecode6)) {
21591 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Treebook_InsertSubPage" "', expected argument " "6"" of type '" "int""'");
21592 }
21593 arg6 = static_cast< int >(val6);
21594 }
21595 {
21596 PyThreadState* __tstate = wxPyBeginAllowThreads();
21597 result = (bool)(arg1)->InsertSubPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
21598 wxPyEndAllowThreads(__tstate);
21599 if (PyErr_Occurred()) SWIG_fail;
21600 }
21601 {
21602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21603 }
21604 {
21605 if (temp4)
21606 delete arg4;
21607 }
21608 return resultobj;
21609 fail:
21610 {
21611 if (temp4)
21612 delete arg4;
21613 }
21614 return NULL;
21615 }
21616
21617
21618 SWIGINTERN PyObject *_wrap_Treebook_AddSubPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21619 PyObject *resultobj = 0;
21620 wxTreebook *arg1 = (wxTreebook *) 0 ;
21621 wxWindow *arg2 = (wxWindow *) 0 ;
21622 wxString *arg3 = 0 ;
21623 bool arg4 = (bool) false ;
21624 int arg5 = (int) wxNOT_FOUND ;
21625 bool result;
21626 void *argp1 = 0 ;
21627 int res1 = 0 ;
21628 void *argp2 = 0 ;
21629 int res2 = 0 ;
21630 bool temp3 = false ;
21631 bool val4 ;
21632 int ecode4 = 0 ;
21633 int val5 ;
21634 int ecode5 = 0 ;
21635 PyObject * obj0 = 0 ;
21636 PyObject * obj1 = 0 ;
21637 PyObject * obj2 = 0 ;
21638 PyObject * obj3 = 0 ;
21639 PyObject * obj4 = 0 ;
21640 char * kwnames[] = {
21641 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
21642 };
21643
21644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:Treebook_AddSubPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
21645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21646 if (!SWIG_IsOK(res1)) {
21647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_AddSubPage" "', expected argument " "1"" of type '" "wxTreebook *""'");
21648 }
21649 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21650 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21651 if (!SWIG_IsOK(res2)) {
21652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Treebook_AddSubPage" "', expected argument " "2"" of type '" "wxWindow *""'");
21653 }
21654 arg2 = reinterpret_cast< wxWindow * >(argp2);
21655 {
21656 arg3 = wxString_in_helper(obj2);
21657 if (arg3 == NULL) SWIG_fail;
21658 temp3 = true;
21659 }
21660 if (obj3) {
21661 ecode4 = SWIG_AsVal_bool(obj3, &val4);
21662 if (!SWIG_IsOK(ecode4)) {
21663 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Treebook_AddSubPage" "', expected argument " "4"" of type '" "bool""'");
21664 }
21665 arg4 = static_cast< bool >(val4);
21666 }
21667 if (obj4) {
21668 ecode5 = SWIG_AsVal_int(obj4, &val5);
21669 if (!SWIG_IsOK(ecode5)) {
21670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Treebook_AddSubPage" "', expected argument " "5"" of type '" "int""'");
21671 }
21672 arg5 = static_cast< int >(val5);
21673 }
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (bool)(arg1)->AddSubPage(arg2,(wxString const &)*arg3,arg4,arg5);
21677 wxPyEndAllowThreads(__tstate);
21678 if (PyErr_Occurred()) SWIG_fail;
21679 }
21680 {
21681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21682 }
21683 {
21684 if (temp3)
21685 delete arg3;
21686 }
21687 return resultobj;
21688 fail:
21689 {
21690 if (temp3)
21691 delete arg3;
21692 }
21693 return NULL;
21694 }
21695
21696
21697 SWIGINTERN PyObject *_wrap_Treebook_IsNodeExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21698 PyObject *resultobj = 0;
21699 wxTreebook *arg1 = (wxTreebook *) 0 ;
21700 size_t arg2 ;
21701 bool result;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 size_t val2 ;
21705 int ecode2 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "pos", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_IsNodeExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21716 }
21717 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21718 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_IsNodeExpanded" "', expected argument " "2"" of type '" "size_t""'");
21721 }
21722 arg2 = static_cast< size_t >(val2);
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (bool)((wxTreebook const *)arg1)->IsNodeExpanded(arg2);
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 {
21730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21731 }
21732 return resultobj;
21733 fail:
21734 return NULL;
21735 }
21736
21737
21738 SWIGINTERN PyObject *_wrap_Treebook_ExpandNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21739 PyObject *resultobj = 0;
21740 wxTreebook *arg1 = (wxTreebook *) 0 ;
21741 size_t arg2 ;
21742 bool arg3 = (bool) true ;
21743 bool result;
21744 void *argp1 = 0 ;
21745 int res1 = 0 ;
21746 size_t val2 ;
21747 int ecode2 = 0 ;
21748 bool val3 ;
21749 int ecode3 = 0 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 PyObject * obj2 = 0 ;
21753 char * kwnames[] = {
21754 (char *) "self",(char *) "pos",(char *) "expand", NULL
21755 };
21756
21757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Treebook_ExpandNode",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21758 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21759 if (!SWIG_IsOK(res1)) {
21760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_ExpandNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21761 }
21762 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21763 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21764 if (!SWIG_IsOK(ecode2)) {
21765 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_ExpandNode" "', expected argument " "2"" of type '" "size_t""'");
21766 }
21767 arg2 = static_cast< size_t >(val2);
21768 if (obj2) {
21769 ecode3 = SWIG_AsVal_bool(obj2, &val3);
21770 if (!SWIG_IsOK(ecode3)) {
21771 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Treebook_ExpandNode" "', expected argument " "3"" of type '" "bool""'");
21772 }
21773 arg3 = static_cast< bool >(val3);
21774 }
21775 {
21776 PyThreadState* __tstate = wxPyBeginAllowThreads();
21777 result = (bool)(arg1)->ExpandNode(arg2,arg3);
21778 wxPyEndAllowThreads(__tstate);
21779 if (PyErr_Occurred()) SWIG_fail;
21780 }
21781 {
21782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21783 }
21784 return resultobj;
21785 fail:
21786 return NULL;
21787 }
21788
21789
21790 SWIGINTERN PyObject *_wrap_Treebook_CollapseNode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21791 PyObject *resultobj = 0;
21792 wxTreebook *arg1 = (wxTreebook *) 0 ;
21793 size_t arg2 ;
21794 bool result;
21795 void *argp1 = 0 ;
21796 int res1 = 0 ;
21797 size_t val2 ;
21798 int ecode2 = 0 ;
21799 PyObject * obj0 = 0 ;
21800 PyObject * obj1 = 0 ;
21801 char * kwnames[] = {
21802 (char *) "self",(char *) "pos", NULL
21803 };
21804
21805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_CollapseNode",kwnames,&obj0,&obj1)) SWIG_fail;
21806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21807 if (!SWIG_IsOK(res1)) {
21808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_CollapseNode" "', expected argument " "1"" of type '" "wxTreebook *""'");
21809 }
21810 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21811 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21812 if (!SWIG_IsOK(ecode2)) {
21813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_CollapseNode" "', expected argument " "2"" of type '" "size_t""'");
21814 }
21815 arg2 = static_cast< size_t >(val2);
21816 {
21817 PyThreadState* __tstate = wxPyBeginAllowThreads();
21818 result = (bool)(arg1)->CollapseNode(arg2);
21819 wxPyEndAllowThreads(__tstate);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 {
21823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21824 }
21825 return resultobj;
21826 fail:
21827 return NULL;
21828 }
21829
21830
21831 SWIGINTERN PyObject *_wrap_Treebook_GetPageParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21832 PyObject *resultobj = 0;
21833 wxTreebook *arg1 = (wxTreebook *) 0 ;
21834 size_t arg2 ;
21835 int result;
21836 void *argp1 = 0 ;
21837 int res1 = 0 ;
21838 size_t val2 ;
21839 int ecode2 = 0 ;
21840 PyObject * obj0 = 0 ;
21841 PyObject * obj1 = 0 ;
21842 char * kwnames[] = {
21843 (char *) "self",(char *) "pos", NULL
21844 };
21845
21846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Treebook_GetPageParent",kwnames,&obj0,&obj1)) SWIG_fail;
21847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21848 if (!SWIG_IsOK(res1)) {
21849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetPageParent" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21850 }
21851 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21852 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
21853 if (!SWIG_IsOK(ecode2)) {
21854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Treebook_GetPageParent" "', expected argument " "2"" of type '" "size_t""'");
21855 }
21856 arg2 = static_cast< size_t >(val2);
21857 {
21858 PyThreadState* __tstate = wxPyBeginAllowThreads();
21859 result = (int)((wxTreebook const *)arg1)->GetPageParent(arg2);
21860 wxPyEndAllowThreads(__tstate);
21861 if (PyErr_Occurred()) SWIG_fail;
21862 }
21863 resultobj = SWIG_From_int(static_cast< int >(result));
21864 return resultobj;
21865 fail:
21866 return NULL;
21867 }
21868
21869
21870 SWIGINTERN PyObject *_wrap_Treebook_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21871 PyObject *resultobj = 0;
21872 wxTreebook *arg1 = (wxTreebook *) 0 ;
21873 wxTreeCtrl *result = 0 ;
21874 void *argp1 = 0 ;
21875 int res1 = 0 ;
21876 PyObject *swig_obj[1] ;
21877
21878 if (!args) SWIG_fail;
21879 swig_obj[0] = args;
21880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreebook, 0 | 0 );
21881 if (!SWIG_IsOK(res1)) {
21882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Treebook_GetTreeCtrl" "', expected argument " "1"" of type '" "wxTreebook const *""'");
21883 }
21884 arg1 = reinterpret_cast< wxTreebook * >(argp1);
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
21887 result = (wxTreeCtrl *)((wxTreebook const *)arg1)->GetTreeCtrl();
21888 wxPyEndAllowThreads(__tstate);
21889 if (PyErr_Occurred()) SWIG_fail;
21890 }
21891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeCtrl, 0 | 0 );
21892 return resultobj;
21893 fail:
21894 return NULL;
21895 }
21896
21897
21898 SWIGINTERN PyObject *Treebook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21899 PyObject *obj;
21900 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21901 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebook, SWIG_NewClientData(obj));
21902 return SWIG_Py_Void();
21903 }
21904
21905 SWIGINTERN PyObject *Treebook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21906 return SWIG_Python_InitShadowInstance(args);
21907 }
21908
21909 SWIGINTERN PyObject *_wrap_new_TreebookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21910 PyObject *resultobj = 0;
21911 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21912 int arg2 = (int) 0 ;
21913 int arg3 = (int) wxNOT_FOUND ;
21914 int arg4 = (int) wxNOT_FOUND ;
21915 wxTreebookEvent *result = 0 ;
21916 int val1 ;
21917 int ecode1 = 0 ;
21918 int val2 ;
21919 int ecode2 = 0 ;
21920 int val3 ;
21921 int ecode3 = 0 ;
21922 int val4 ;
21923 int ecode4 = 0 ;
21924 PyObject * obj0 = 0 ;
21925 PyObject * obj1 = 0 ;
21926 PyObject * obj2 = 0 ;
21927 PyObject * obj3 = 0 ;
21928 char * kwnames[] = {
21929 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
21930 };
21931
21932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TreebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21933 if (obj0) {
21934 ecode1 = SWIG_AsVal_int(obj0, &val1);
21935 if (!SWIG_IsOK(ecode1)) {
21936 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreebookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
21937 }
21938 arg1 = static_cast< wxEventType >(val1);
21939 }
21940 if (obj1) {
21941 ecode2 = SWIG_AsVal_int(obj1, &val2);
21942 if (!SWIG_IsOK(ecode2)) {
21943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreebookEvent" "', expected argument " "2"" of type '" "int""'");
21944 }
21945 arg2 = static_cast< int >(val2);
21946 }
21947 if (obj2) {
21948 ecode3 = SWIG_AsVal_int(obj2, &val3);
21949 if (!SWIG_IsOK(ecode3)) {
21950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_TreebookEvent" "', expected argument " "3"" of type '" "int""'");
21951 }
21952 arg3 = static_cast< int >(val3);
21953 }
21954 if (obj3) {
21955 ecode4 = SWIG_AsVal_int(obj3, &val4);
21956 if (!SWIG_IsOK(ecode4)) {
21957 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_TreebookEvent" "', expected argument " "4"" of type '" "int""'");
21958 }
21959 arg4 = static_cast< int >(val4);
21960 }
21961 {
21962 PyThreadState* __tstate = wxPyBeginAllowThreads();
21963 result = (wxTreebookEvent *)new wxTreebookEvent(arg1,arg2,arg3,arg4);
21964 wxPyEndAllowThreads(__tstate);
21965 if (PyErr_Occurred()) SWIG_fail;
21966 }
21967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreebookEvent, SWIG_POINTER_NEW | 0 );
21968 return resultobj;
21969 fail:
21970 return NULL;
21971 }
21972
21973
21974 SWIGINTERN PyObject *TreebookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21975 PyObject *obj;
21976 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21977 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreebookEvent, SWIG_NewClientData(obj));
21978 return SWIG_Py_Void();
21979 }
21980
21981 SWIGINTERN PyObject *TreebookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21982 return SWIG_Python_InitShadowInstance(args);
21983 }
21984
21985 SWIGINTERN PyObject *_wrap_new_Toolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21986 PyObject *resultobj = 0;
21987 wxWindow *arg1 = (wxWindow *) 0 ;
21988 int arg2 ;
21989 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21990 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21991 wxSize const &arg4_defvalue = wxDefaultSize ;
21992 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21993 long arg5 = (long) wxBK_DEFAULT ;
21994 wxString const &arg6_defvalue = wxPyEmptyString ;
21995 wxString *arg6 = (wxString *) &arg6_defvalue ;
21996 wxToolbook *result = 0 ;
21997 void *argp1 = 0 ;
21998 int res1 = 0 ;
21999 int val2 ;
22000 int ecode2 = 0 ;
22001 wxPoint temp3 ;
22002 wxSize temp4 ;
22003 long val5 ;
22004 int ecode5 = 0 ;
22005 bool temp6 = false ;
22006 PyObject * obj0 = 0 ;
22007 PyObject * obj1 = 0 ;
22008 PyObject * obj2 = 0 ;
22009 PyObject * obj3 = 0 ;
22010 PyObject * obj4 = 0 ;
22011 PyObject * obj5 = 0 ;
22012 char * kwnames[] = {
22013 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22014 };
22015
22016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Toolbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
22017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Toolbook" "', expected argument " "1"" of type '" "wxWindow *""'");
22020 }
22021 arg1 = reinterpret_cast< wxWindow * >(argp1);
22022 ecode2 = SWIG_AsVal_int(obj1, &val2);
22023 if (!SWIG_IsOK(ecode2)) {
22024 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Toolbook" "', expected argument " "2"" of type '" "int""'");
22025 }
22026 arg2 = static_cast< int >(val2);
22027 if (obj2) {
22028 {
22029 arg3 = &temp3;
22030 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22031 }
22032 }
22033 if (obj3) {
22034 {
22035 arg4 = &temp4;
22036 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
22037 }
22038 }
22039 if (obj4) {
22040 ecode5 = SWIG_AsVal_long(obj4, &val5);
22041 if (!SWIG_IsOK(ecode5)) {
22042 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Toolbook" "', expected argument " "5"" of type '" "long""'");
22043 }
22044 arg5 = static_cast< long >(val5);
22045 }
22046 if (obj5) {
22047 {
22048 arg6 = wxString_in_helper(obj5);
22049 if (arg6 == NULL) SWIG_fail;
22050 temp6 = true;
22051 }
22052 }
22053 {
22054 PyThreadState* __tstate = wxPyBeginAllowThreads();
22055 result = (wxToolbook *)new wxToolbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
22056 wxPyEndAllowThreads(__tstate);
22057 if (PyErr_Occurred()) SWIG_fail;
22058 }
22059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_NEW | 0 );
22060 {
22061 if (temp6)
22062 delete arg6;
22063 }
22064 return resultobj;
22065 fail:
22066 {
22067 if (temp6)
22068 delete arg6;
22069 }
22070 return NULL;
22071 }
22072
22073
22074 SWIGINTERN PyObject *_wrap_new_PreToolbook(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22075 PyObject *resultobj = 0;
22076 wxToolbook *result = 0 ;
22077
22078 if (!SWIG_Python_UnpackTuple(args,"new_PreToolbook",0,0,0)) SWIG_fail;
22079 {
22080 PyThreadState* __tstate = wxPyBeginAllowThreads();
22081 result = (wxToolbook *)new wxToolbook();
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbook, SWIG_POINTER_OWN | 0 );
22086 return resultobj;
22087 fail:
22088 return NULL;
22089 }
22090
22091
22092 SWIGINTERN PyObject *_wrap_Toolbook_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22093 PyObject *resultobj = 0;
22094 wxToolbook *arg1 = (wxToolbook *) 0 ;
22095 wxWindow *arg2 = (wxWindow *) 0 ;
22096 int arg3 ;
22097 wxPoint const &arg4_defvalue = wxDefaultPosition ;
22098 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
22099 wxSize const &arg5_defvalue = wxDefaultSize ;
22100 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
22101 long arg6 = (long) 0 ;
22102 wxString const &arg7_defvalue = wxEmptyString ;
22103 wxString *arg7 = (wxString *) &arg7_defvalue ;
22104 bool result;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 void *argp2 = 0 ;
22108 int res2 = 0 ;
22109 int val3 ;
22110 int ecode3 = 0 ;
22111 wxPoint temp4 ;
22112 wxSize temp5 ;
22113 long val6 ;
22114 int ecode6 = 0 ;
22115 bool temp7 = false ;
22116 PyObject * obj0 = 0 ;
22117 PyObject * obj1 = 0 ;
22118 PyObject * obj2 = 0 ;
22119 PyObject * obj3 = 0 ;
22120 PyObject * obj4 = 0 ;
22121 PyObject * obj5 = 0 ;
22122 PyObject * obj6 = 0 ;
22123 char * kwnames[] = {
22124 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
22125 };
22126
22127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Toolbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22129 if (!SWIG_IsOK(res1)) {
22130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Create" "', expected argument " "1"" of type '" "wxToolbook *""'");
22131 }
22132 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22133 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
22134 if (!SWIG_IsOK(res2)) {
22135 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Toolbook_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
22136 }
22137 arg2 = reinterpret_cast< wxWindow * >(argp2);
22138 ecode3 = SWIG_AsVal_int(obj2, &val3);
22139 if (!SWIG_IsOK(ecode3)) {
22140 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Toolbook_Create" "', expected argument " "3"" of type '" "int""'");
22141 }
22142 arg3 = static_cast< int >(val3);
22143 if (obj3) {
22144 {
22145 arg4 = &temp4;
22146 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
22147 }
22148 }
22149 if (obj4) {
22150 {
22151 arg5 = &temp5;
22152 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
22153 }
22154 }
22155 if (obj5) {
22156 ecode6 = SWIG_AsVal_long(obj5, &val6);
22157 if (!SWIG_IsOK(ecode6)) {
22158 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Toolbook_Create" "', expected argument " "6"" of type '" "long""'");
22159 }
22160 arg6 = static_cast< long >(val6);
22161 }
22162 if (obj6) {
22163 {
22164 arg7 = wxString_in_helper(obj6);
22165 if (arg7 == NULL) SWIG_fail;
22166 temp7 = true;
22167 }
22168 }
22169 {
22170 PyThreadState* __tstate = wxPyBeginAllowThreads();
22171 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
22172 wxPyEndAllowThreads(__tstate);
22173 if (PyErr_Occurred()) SWIG_fail;
22174 }
22175 {
22176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22177 }
22178 {
22179 if (temp7)
22180 delete arg7;
22181 }
22182 return resultobj;
22183 fail:
22184 {
22185 if (temp7)
22186 delete arg7;
22187 }
22188 return NULL;
22189 }
22190
22191
22192 SWIGINTERN PyObject *_wrap_Toolbook_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22193 PyObject *resultobj = 0;
22194 wxToolbook *arg1 = (wxToolbook *) 0 ;
22195 wxToolBarBase *result = 0 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 PyObject *swig_obj[1] ;
22199
22200 if (!args) SWIG_fail;
22201 swig_obj[0] = args;
22202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22203 if (!SWIG_IsOK(res1)) {
22204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_GetToolBar" "', expected argument " "1"" of type '" "wxToolbook const *""'");
22205 }
22206 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22207 {
22208 PyThreadState* __tstate = wxPyBeginAllowThreads();
22209 result = (wxToolBarBase *)((wxToolbook const *)arg1)->GetToolBar();
22210 wxPyEndAllowThreads(__tstate);
22211 if (PyErr_Occurred()) SWIG_fail;
22212 }
22213 {
22214 resultobj = wxPyMake_wxObject(result, (bool)0);
22215 }
22216 return resultobj;
22217 fail:
22218 return NULL;
22219 }
22220
22221
22222 SWIGINTERN PyObject *_wrap_Toolbook_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxToolbook *arg1 = (wxToolbook *) 0 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 PyObject *swig_obj[1] ;
22228
22229 if (!args) SWIG_fail;
22230 swig_obj[0] = args;
22231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolbook, 0 | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Toolbook_Realize" "', expected argument " "1"" of type '" "wxToolbook *""'");
22234 }
22235 arg1 = reinterpret_cast< wxToolbook * >(argp1);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 (arg1)->Realize();
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 resultobj = SWIG_Py_Void();
22243 return resultobj;
22244 fail:
22245 return NULL;
22246 }
22247
22248
22249 SWIGINTERN PyObject *Toolbook_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22250 PyObject *obj;
22251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22252 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbook, SWIG_NewClientData(obj));
22253 return SWIG_Py_Void();
22254 }
22255
22256 SWIGINTERN PyObject *Toolbook_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22257 return SWIG_Python_InitShadowInstance(args);
22258 }
22259
22260 SWIGINTERN PyObject *_wrap_new_ToolbookEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22261 PyObject *resultobj = 0;
22262 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
22263 int arg2 = (int) 0 ;
22264 int arg3 = (int) wxNOT_FOUND ;
22265 int arg4 = (int) wxNOT_FOUND ;
22266 wxToolbookEvent *result = 0 ;
22267 int val1 ;
22268 int ecode1 = 0 ;
22269 int val2 ;
22270 int ecode2 = 0 ;
22271 int val3 ;
22272 int ecode3 = 0 ;
22273 int val4 ;
22274 int ecode4 = 0 ;
22275 PyObject * obj0 = 0 ;
22276 PyObject * obj1 = 0 ;
22277 PyObject * obj2 = 0 ;
22278 PyObject * obj3 = 0 ;
22279 char * kwnames[] = {
22280 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
22281 };
22282
22283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ToolbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22284 if (obj0) {
22285 ecode1 = SWIG_AsVal_int(obj0, &val1);
22286 if (!SWIG_IsOK(ecode1)) {
22287 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ToolbookEvent" "', expected argument " "1"" of type '" "wxEventType""'");
22288 }
22289 arg1 = static_cast< wxEventType >(val1);
22290 }
22291 if (obj1) {
22292 ecode2 = SWIG_AsVal_int(obj1, &val2);
22293 if (!SWIG_IsOK(ecode2)) {
22294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolbookEvent" "', expected argument " "2"" of type '" "int""'");
22295 }
22296 arg2 = static_cast< int >(val2);
22297 }
22298 if (obj2) {
22299 ecode3 = SWIG_AsVal_int(obj2, &val3);
22300 if (!SWIG_IsOK(ecode3)) {
22301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ToolbookEvent" "', expected argument " "3"" of type '" "int""'");
22302 }
22303 arg3 = static_cast< int >(val3);
22304 }
22305 if (obj3) {
22306 ecode4 = SWIG_AsVal_int(obj3, &val4);
22307 if (!SWIG_IsOK(ecode4)) {
22308 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ToolbookEvent" "', expected argument " "4"" of type '" "int""'");
22309 }
22310 arg4 = static_cast< int >(val4);
22311 }
22312 {
22313 PyThreadState* __tstate = wxPyBeginAllowThreads();
22314 result = (wxToolbookEvent *)new wxToolbookEvent(arg1,arg2,arg3,arg4);
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolbookEvent, SWIG_POINTER_NEW | 0 );
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 SWIGINTERN PyObject *ToolbookEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22326 PyObject *obj;
22327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22328 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolbookEvent, SWIG_NewClientData(obj));
22329 return SWIG_Py_Void();
22330 }
22331
22332 SWIGINTERN PyObject *ToolbookEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22333 return SWIG_Python_InitShadowInstance(args);
22334 }
22335
22336 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22337 PyObject *resultobj = 0;
22338 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22339 int result;
22340 void *argp1 = 0 ;
22341 int res1 = 0 ;
22342 PyObject *swig_obj[1] ;
22343
22344 if (!args) SWIG_fail;
22345 swig_obj[0] = args;
22346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22347 if (!SWIG_IsOK(res1)) {
22348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetId" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22349 }
22350 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22351 {
22352 PyThreadState* __tstate = wxPyBeginAllowThreads();
22353 result = (int)(arg1)->GetId();
22354 wxPyEndAllowThreads(__tstate);
22355 if (PyErr_Occurred()) SWIG_fail;
22356 }
22357 resultobj = SWIG_From_int(static_cast< int >(result));
22358 return resultobj;
22359 fail:
22360 return NULL;
22361 }
22362
22363
22364 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22365 PyObject *resultobj = 0;
22366 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22367 wxControl *result = 0 ;
22368 void *argp1 = 0 ;
22369 int res1 = 0 ;
22370 PyObject *swig_obj[1] ;
22371
22372 if (!args) SWIG_fail;
22373 swig_obj[0] = args;
22374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22375 if (!SWIG_IsOK(res1)) {
22376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22377 }
22378 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22379 {
22380 PyThreadState* __tstate = wxPyBeginAllowThreads();
22381 result = (wxControl *)(arg1)->GetControl();
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 {
22386 resultobj = wxPyMake_wxObject(result, 0);
22387 }
22388 return resultobj;
22389 fail:
22390 return NULL;
22391 }
22392
22393
22394 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22395 PyObject *resultobj = 0;
22396 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22397 wxToolBarBase *result = 0 ;
22398 void *argp1 = 0 ;
22399 int res1 = 0 ;
22400 PyObject *swig_obj[1] ;
22401
22402 if (!args) SWIG_fail;
22403 swig_obj[0] = args;
22404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22405 if (!SWIG_IsOK(res1)) {
22406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetToolBar" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22407 }
22408 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 result = (wxToolBarBase *)(arg1)->GetToolBar();
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 {
22416 resultobj = wxPyMake_wxObject(result, (bool)0);
22417 }
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 PyObject *resultobj = 0;
22426 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22427 int result;
22428 void *argp1 = 0 ;
22429 int res1 = 0 ;
22430 PyObject *swig_obj[1] ;
22431
22432 if (!args) SWIG_fail;
22433 swig_obj[0] = args;
22434 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22435 if (!SWIG_IsOK(res1)) {
22436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsButton" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22437 }
22438 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22439 {
22440 PyThreadState* __tstate = wxPyBeginAllowThreads();
22441 result = (int)(arg1)->IsButton();
22442 wxPyEndAllowThreads(__tstate);
22443 if (PyErr_Occurred()) SWIG_fail;
22444 }
22445 resultobj = SWIG_From_int(static_cast< int >(result));
22446 return resultobj;
22447 fail:
22448 return NULL;
22449 }
22450
22451
22452 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22453 PyObject *resultobj = 0;
22454 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22455 int result;
22456 void *argp1 = 0 ;
22457 int res1 = 0 ;
22458 PyObject *swig_obj[1] ;
22459
22460 if (!args) SWIG_fail;
22461 swig_obj[0] = args;
22462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22463 if (!SWIG_IsOK(res1)) {
22464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsControl" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22465 }
22466 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22467 {
22468 PyThreadState* __tstate = wxPyBeginAllowThreads();
22469 result = (int)(arg1)->IsControl();
22470 wxPyEndAllowThreads(__tstate);
22471 if (PyErr_Occurred()) SWIG_fail;
22472 }
22473 resultobj = SWIG_From_int(static_cast< int >(result));
22474 return resultobj;
22475 fail:
22476 return NULL;
22477 }
22478
22479
22480 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22481 PyObject *resultobj = 0;
22482 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22483 int result;
22484 void *argp1 = 0 ;
22485 int res1 = 0 ;
22486 PyObject *swig_obj[1] ;
22487
22488 if (!args) SWIG_fail;
22489 swig_obj[0] = args;
22490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsSeparator" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22493 }
22494 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22495 {
22496 PyThreadState* __tstate = wxPyBeginAllowThreads();
22497 result = (int)(arg1)->IsSeparator();
22498 wxPyEndAllowThreads(__tstate);
22499 if (PyErr_Occurred()) SWIG_fail;
22500 }
22501 resultobj = SWIG_From_int(static_cast< int >(result));
22502 return resultobj;
22503 fail:
22504 return NULL;
22505 }
22506
22507
22508 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22509 PyObject *resultobj = 0;
22510 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22511 int result;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 PyObject *swig_obj[1] ;
22515
22516 if (!args) SWIG_fail;
22517 swig_obj[0] = args;
22518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22519 if (!SWIG_IsOK(res1)) {
22520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetStyle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22521 }
22522 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22523 {
22524 PyThreadState* __tstate = wxPyBeginAllowThreads();
22525 result = (int)(arg1)->GetStyle();
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 resultobj = SWIG_From_int(static_cast< int >(result));
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22537 PyObject *resultobj = 0;
22538 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22539 wxItemKind result;
22540 void *argp1 = 0 ;
22541 int res1 = 0 ;
22542 PyObject *swig_obj[1] ;
22543
22544 if (!args) SWIG_fail;
22545 swig_obj[0] = args;
22546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22547 if (!SWIG_IsOK(res1)) {
22548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetKind" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22549 }
22550 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22551 {
22552 PyThreadState* __tstate = wxPyBeginAllowThreads();
22553 result = (wxItemKind)(arg1)->GetKind();
22554 wxPyEndAllowThreads(__tstate);
22555 if (PyErr_Occurred()) SWIG_fail;
22556 }
22557 resultobj = SWIG_From_int(static_cast< int >(result));
22558 return resultobj;
22559 fail:
22560 return NULL;
22561 }
22562
22563
22564 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22565 PyObject *resultobj = 0;
22566 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22567 bool result;
22568 void *argp1 = 0 ;
22569 int res1 = 0 ;
22570 PyObject *swig_obj[1] ;
22571
22572 if (!args) SWIG_fail;
22573 swig_obj[0] = args;
22574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22575 if (!SWIG_IsOK(res1)) {
22576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsEnabled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22577 }
22578 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22579 {
22580 PyThreadState* __tstate = wxPyBeginAllowThreads();
22581 result = (bool)(arg1)->IsEnabled();
22582 wxPyEndAllowThreads(__tstate);
22583 if (PyErr_Occurred()) SWIG_fail;
22584 }
22585 {
22586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22587 }
22588 return resultobj;
22589 fail:
22590 return NULL;
22591 }
22592
22593
22594 SWIGINTERN PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22595 PyObject *resultobj = 0;
22596 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22597 bool result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 PyObject *swig_obj[1] ;
22601
22602 if (!args) SWIG_fail;
22603 swig_obj[0] = args;
22604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22605 if (!SWIG_IsOK(res1)) {
22606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_IsToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22607 }
22608 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22609 {
22610 PyThreadState* __tstate = wxPyBeginAllowThreads();
22611 result = (bool)(arg1)->IsToggled();
22612 wxPyEndAllowThreads(__tstate);
22613 if (PyErr_Occurred()) SWIG_fail;
22614 }
22615 {
22616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22617 }
22618 return resultobj;
22619 fail:
22620 return NULL;
22621 }
22622
22623
22624 SWIGINTERN PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22625 PyObject *resultobj = 0;
22626 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22627 bool result;
22628 void *argp1 = 0 ;
22629 int res1 = 0 ;
22630 PyObject *swig_obj[1] ;
22631
22632 if (!args) SWIG_fail;
22633 swig_obj[0] = args;
22634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22635 if (!SWIG_IsOK(res1)) {
22636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_CanBeToggled" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22637 }
22638 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22639 {
22640 PyThreadState* __tstate = wxPyBeginAllowThreads();
22641 result = (bool)(arg1)->CanBeToggled();
22642 wxPyEndAllowThreads(__tstate);
22643 if (PyErr_Occurred()) SWIG_fail;
22644 }
22645 {
22646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22647 }
22648 return resultobj;
22649 fail:
22650 return NULL;
22651 }
22652
22653
22654 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22655 PyObject *resultobj = 0;
22656 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22657 wxBitmap *result = 0 ;
22658 void *argp1 = 0 ;
22659 int res1 = 0 ;
22660 PyObject *swig_obj[1] ;
22661
22662 if (!args) SWIG_fail;
22663 swig_obj[0] = args;
22664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22665 if (!SWIG_IsOK(res1)) {
22666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22667 }
22668 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22669 {
22670 PyThreadState* __tstate = wxPyBeginAllowThreads();
22671 {
22672 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
22673 result = (wxBitmap *) &_result_ref;
22674 }
22675 wxPyEndAllowThreads(__tstate);
22676 if (PyErr_Occurred()) SWIG_fail;
22677 }
22678 {
22679 wxBitmap* resultptr = new wxBitmap(*result);
22680 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22681 }
22682 return resultobj;
22683 fail:
22684 return NULL;
22685 }
22686
22687
22688 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22689 PyObject *resultobj = 0;
22690 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22691 wxBitmap *result = 0 ;
22692 void *argp1 = 0 ;
22693 int res1 = 0 ;
22694 PyObject *swig_obj[1] ;
22695
22696 if (!args) SWIG_fail;
22697 swig_obj[0] = args;
22698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22699 if (!SWIG_IsOK(res1)) {
22700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22701 }
22702 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 {
22706 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
22707 result = (wxBitmap *) &_result_ref;
22708 }
22709 wxPyEndAllowThreads(__tstate);
22710 if (PyErr_Occurred()) SWIG_fail;
22711 }
22712 {
22713 wxBitmap* resultptr = new wxBitmap(*result);
22714 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
22715 }
22716 return resultobj;
22717 fail:
22718 return NULL;
22719 }
22720
22721
22722 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22723 PyObject *resultobj = 0;
22724 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22725 wxBitmap result;
22726 void *argp1 = 0 ;
22727 int res1 = 0 ;
22728 PyObject *swig_obj[1] ;
22729
22730 if (!args) SWIG_fail;
22731 swig_obj[0] = args;
22732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22733 if (!SWIG_IsOK(res1)) {
22734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22735 }
22736 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 result = (arg1)->GetBitmap();
22740 wxPyEndAllowThreads(__tstate);
22741 if (PyErr_Occurred()) SWIG_fail;
22742 }
22743 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22744 return resultobj;
22745 fail:
22746 return NULL;
22747 }
22748
22749
22750 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22751 PyObject *resultobj = 0;
22752 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22753 wxString result;
22754 void *argp1 = 0 ;
22755 int res1 = 0 ;
22756 PyObject *swig_obj[1] ;
22757
22758 if (!args) SWIG_fail;
22759 swig_obj[0] = args;
22760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22761 if (!SWIG_IsOK(res1)) {
22762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22763 }
22764 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 result = (arg1)->GetLabel();
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 {
22772 #if wxUSE_UNICODE
22773 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22774 #else
22775 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22776 #endif
22777 }
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22785 PyObject *resultobj = 0;
22786 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22787 wxString result;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 PyObject *swig_obj[1] ;
22791
22792 if (!args) SWIG_fail;
22793 swig_obj[0] = args;
22794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22795 if (!SWIG_IsOK(res1)) {
22796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22797 }
22798 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22799 {
22800 PyThreadState* __tstate = wxPyBeginAllowThreads();
22801 result = (arg1)->GetShortHelp();
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 {
22806 #if wxUSE_UNICODE
22807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22808 #else
22809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22810 #endif
22811 }
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22819 PyObject *resultobj = 0;
22820 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22821 wxString result;
22822 void *argp1 = 0 ;
22823 int res1 = 0 ;
22824 PyObject *swig_obj[1] ;
22825
22826 if (!args) SWIG_fail;
22827 swig_obj[0] = args;
22828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22831 }
22832 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22833 {
22834 PyThreadState* __tstate = wxPyBeginAllowThreads();
22835 result = (arg1)->GetLongHelp();
22836 wxPyEndAllowThreads(__tstate);
22837 if (PyErr_Occurred()) SWIG_fail;
22838 }
22839 {
22840 #if wxUSE_UNICODE
22841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22842 #else
22843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22844 #endif
22845 }
22846 return resultobj;
22847 fail:
22848 return NULL;
22849 }
22850
22851
22852 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Enable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22853 PyObject *resultobj = 0;
22854 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22855 bool arg2 ;
22856 bool result;
22857 void *argp1 = 0 ;
22858 int res1 = 0 ;
22859 bool val2 ;
22860 int ecode2 = 0 ;
22861 PyObject * obj0 = 0 ;
22862 PyObject * obj1 = 0 ;
22863 char * kwnames[] = {
22864 (char *) "self",(char *) "enable", NULL
22865 };
22866
22867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) SWIG_fail;
22868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22869 if (!SWIG_IsOK(res1)) {
22870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Enable" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22871 }
22872 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22873 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22874 if (!SWIG_IsOK(ecode2)) {
22875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_Enable" "', expected argument " "2"" of type '" "bool""'");
22876 }
22877 arg2 = static_cast< bool >(val2);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (bool)(arg1)->Enable(arg2);
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 {
22885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22886 }
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22894 PyObject *resultobj = 0;
22895 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22896 void *argp1 = 0 ;
22897 int res1 = 0 ;
22898 PyObject *swig_obj[1] ;
22899
22900 if (!args) SWIG_fail;
22901 swig_obj[0] = args;
22902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22903 if (!SWIG_IsOK(res1)) {
22904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Toggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22905 }
22906 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22907 {
22908 PyThreadState* __tstate = wxPyBeginAllowThreads();
22909 (arg1)->Toggle();
22910 wxPyEndAllowThreads(__tstate);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 }
22913 resultobj = SWIG_Py_Void();
22914 return resultobj;
22915 fail:
22916 return NULL;
22917 }
22918
22919
22920 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22921 PyObject *resultobj = 0;
22922 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22923 bool arg2 ;
22924 bool result;
22925 void *argp1 = 0 ;
22926 int res1 = 0 ;
22927 bool val2 ;
22928 int ecode2 = 0 ;
22929 PyObject * obj0 = 0 ;
22930 PyObject * obj1 = 0 ;
22931 char * kwnames[] = {
22932 (char *) "self",(char *) "toggle", NULL
22933 };
22934
22935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) SWIG_fail;
22936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22937 if (!SWIG_IsOK(res1)) {
22938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22939 }
22940 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22941 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22942 if (!SWIG_IsOK(ecode2)) {
22943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarToolBase_SetToggle" "', expected argument " "2"" of type '" "bool""'");
22944 }
22945 arg2 = static_cast< bool >(val2);
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 result = (bool)(arg1)->SetToggle(arg2);
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 {
22953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22954 }
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22962 PyObject *resultobj = 0;
22963 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
22964 wxString *arg2 = 0 ;
22965 bool result;
22966 void *argp1 = 0 ;
22967 int res1 = 0 ;
22968 bool temp2 = false ;
22969 PyObject * obj0 = 0 ;
22970 PyObject * obj1 = 0 ;
22971 char * kwnames[] = {
22972 (char *) "self",(char *) "help", NULL
22973 };
22974
22975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
22976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
22977 if (!SWIG_IsOK(res1)) {
22978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetShortHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
22979 }
22980 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
22981 {
22982 arg2 = wxString_in_helper(obj1);
22983 if (arg2 == NULL) SWIG_fail;
22984 temp2 = true;
22985 }
22986 {
22987 PyThreadState* __tstate = wxPyBeginAllowThreads();
22988 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
22989 wxPyEndAllowThreads(__tstate);
22990 if (PyErr_Occurred()) SWIG_fail;
22991 }
22992 {
22993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22994 }
22995 {
22996 if (temp2)
22997 delete arg2;
22998 }
22999 return resultobj;
23000 fail:
23001 {
23002 if (temp2)
23003 delete arg2;
23004 }
23005 return NULL;
23006 }
23007
23008
23009 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23010 PyObject *resultobj = 0;
23011 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23012 wxString *arg2 = 0 ;
23013 bool result;
23014 void *argp1 = 0 ;
23015 int res1 = 0 ;
23016 bool temp2 = false ;
23017 PyObject * obj0 = 0 ;
23018 PyObject * obj1 = 0 ;
23019 char * kwnames[] = {
23020 (char *) "self",(char *) "help", NULL
23021 };
23022
23023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
23024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23025 if (!SWIG_IsOK(res1)) {
23026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLongHelp" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23027 }
23028 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23029 {
23030 arg2 = wxString_in_helper(obj1);
23031 if (arg2 == NULL) SWIG_fail;
23032 temp2 = true;
23033 }
23034 {
23035 PyThreadState* __tstate = wxPyBeginAllowThreads();
23036 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
23037 wxPyEndAllowThreads(__tstate);
23038 if (PyErr_Occurred()) SWIG_fail;
23039 }
23040 {
23041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23042 }
23043 {
23044 if (temp2)
23045 delete arg2;
23046 }
23047 return resultobj;
23048 fail:
23049 {
23050 if (temp2)
23051 delete arg2;
23052 }
23053 return NULL;
23054 }
23055
23056
23057 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23058 PyObject *resultobj = 0;
23059 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23060 wxBitmap *arg2 = 0 ;
23061 void *argp1 = 0 ;
23062 int res1 = 0 ;
23063 void *argp2 = 0 ;
23064 int res2 = 0 ;
23065 PyObject * obj0 = 0 ;
23066 PyObject * obj1 = 0 ;
23067 char * kwnames[] = {
23068 (char *) "self",(char *) "bmp", NULL
23069 };
23070
23071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23073 if (!SWIG_IsOK(res1)) {
23074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23075 }
23076 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23078 if (!SWIG_IsOK(res2)) {
23079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23080 }
23081 if (!argp2) {
23082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetNormalBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23083 }
23084 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_Py_Void();
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj = 0;
23100 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23101 wxBitmap *arg2 = 0 ;
23102 void *argp1 = 0 ;
23103 int res1 = 0 ;
23104 void *argp2 = 0 ;
23105 int res2 = 0 ;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 char * kwnames[] = {
23109 (char *) "self",(char *) "bmp", NULL
23110 };
23111
23112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
23113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23116 }
23117 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23118 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23119 if (!SWIG_IsOK(res2)) {
23120 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23121 }
23122 if (!argp2) {
23123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarToolBase_SetDisabledBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23124 }
23125 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23126 {
23127 PyThreadState* __tstate = wxPyBeginAllowThreads();
23128 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
23129 wxPyEndAllowThreads(__tstate);
23130 if (PyErr_Occurred()) SWIG_fail;
23131 }
23132 resultobj = SWIG_Py_Void();
23133 return resultobj;
23134 fail:
23135 return NULL;
23136 }
23137
23138
23139 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23140 PyObject *resultobj = 0;
23141 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23142 wxString *arg2 = 0 ;
23143 void *argp1 = 0 ;
23144 int res1 = 0 ;
23145 bool temp2 = false ;
23146 PyObject * obj0 = 0 ;
23147 PyObject * obj1 = 0 ;
23148 char * kwnames[] = {
23149 (char *) "self",(char *) "label", NULL
23150 };
23151
23152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
23153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23154 if (!SWIG_IsOK(res1)) {
23155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetLabel" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23156 }
23157 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23158 {
23159 arg2 = wxString_in_helper(obj1);
23160 if (arg2 == NULL) SWIG_fail;
23161 temp2 = true;
23162 }
23163 {
23164 PyThreadState* __tstate = wxPyBeginAllowThreads();
23165 (arg1)->SetLabel((wxString const &)*arg2);
23166 wxPyEndAllowThreads(__tstate);
23167 if (PyErr_Occurred()) SWIG_fail;
23168 }
23169 resultobj = SWIG_Py_Void();
23170 {
23171 if (temp2)
23172 delete arg2;
23173 }
23174 return resultobj;
23175 fail:
23176 {
23177 if (temp2)
23178 delete arg2;
23179 }
23180 return NULL;
23181 }
23182
23183
23184 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Detach(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23185 PyObject *resultobj = 0;
23186 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23187 void *argp1 = 0 ;
23188 int res1 = 0 ;
23189 PyObject *swig_obj[1] ;
23190
23191 if (!args) SWIG_fail;
23192 swig_obj[0] = args;
23193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23194 if (!SWIG_IsOK(res1)) {
23195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Detach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23196 }
23197 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23198 {
23199 PyThreadState* __tstate = wxPyBeginAllowThreads();
23200 (arg1)->Detach();
23201 wxPyEndAllowThreads(__tstate);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 }
23204 resultobj = SWIG_Py_Void();
23205 return resultobj;
23206 fail:
23207 return NULL;
23208 }
23209
23210
23211 SWIGINTERN PyObject *_wrap_ToolBarToolBase_Attach(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj = 0;
23213 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23214 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
23215 void *argp1 = 0 ;
23216 int res1 = 0 ;
23217 void *argp2 = 0 ;
23218 int res2 = 0 ;
23219 PyObject * obj0 = 0 ;
23220 PyObject * obj1 = 0 ;
23221 char * kwnames[] = {
23222 (char *) "self",(char *) "tbar", NULL
23223 };
23224
23225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) SWIG_fail;
23226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23227 if (!SWIG_IsOK(res1)) {
23228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_Attach" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23229 }
23230 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23231 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23232 if (!SWIG_IsOK(res2)) {
23233 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarToolBase_Attach" "', expected argument " "2"" of type '" "wxToolBarBase *""'");
23234 }
23235 arg2 = reinterpret_cast< wxToolBarBase * >(argp2);
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 (arg1)->Attach(arg2);
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 resultobj = SWIG_Py_Void();
23243 return resultobj;
23244 fail:
23245 return NULL;
23246 }
23247
23248
23249 SWIGINTERN PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23250 PyObject *resultobj = 0;
23251 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23252 PyObject *result = 0 ;
23253 void *argp1 = 0 ;
23254 int res1 = 0 ;
23255 PyObject *swig_obj[1] ;
23256
23257 if (!args) SWIG_fail;
23258 swig_obj[0] = args;
23259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23260 if (!SWIG_IsOK(res1)) {
23261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_GetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23262 }
23263 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23264 {
23265 PyThreadState* __tstate = wxPyBeginAllowThreads();
23266 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
23267 wxPyEndAllowThreads(__tstate);
23268 if (PyErr_Occurred()) SWIG_fail;
23269 }
23270 resultobj = result;
23271 return resultobj;
23272 fail:
23273 return NULL;
23274 }
23275
23276
23277 SWIGINTERN PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23278 PyObject *resultobj = 0;
23279 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
23280 PyObject *arg2 = (PyObject *) 0 ;
23281 void *argp1 = 0 ;
23282 int res1 = 0 ;
23283 PyObject * obj0 = 0 ;
23284 PyObject * obj1 = 0 ;
23285 char * kwnames[] = {
23286 (char *) "self",(char *) "clientData", NULL
23287 };
23288
23289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) SWIG_fail;
23290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23291 if (!SWIG_IsOK(res1)) {
23292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarToolBase_SetClientData" "', expected argument " "1"" of type '" "wxToolBarToolBase *""'");
23293 }
23294 arg1 = reinterpret_cast< wxToolBarToolBase * >(argp1);
23295 arg2 = obj1;
23296 {
23297 PyThreadState* __tstate = wxPyBeginAllowThreads();
23298 wxToolBarToolBase_SetClientData(arg1,arg2);
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 resultobj = SWIG_Py_Void();
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 SWIGINTERN PyObject *ToolBarToolBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23310 PyObject *obj;
23311 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23312 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarToolBase, SWIG_NewClientData(obj));
23313 return SWIG_Py_Void();
23314 }
23315
23316 SWIGINTERN PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23317 PyObject *resultobj = 0;
23318 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23319 int arg2 ;
23320 wxString *arg3 = 0 ;
23321 wxBitmap *arg4 = 0 ;
23322 wxBitmap const &arg5_defvalue = wxNullBitmap ;
23323 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
23324 wxItemKind arg6 = (wxItemKind) wxITEM_NORMAL ;
23325 wxString const &arg7_defvalue = wxPyEmptyString ;
23326 wxString *arg7 = (wxString *) &arg7_defvalue ;
23327 wxString const &arg8_defvalue = wxPyEmptyString ;
23328 wxString *arg8 = (wxString *) &arg8_defvalue ;
23329 PyObject *arg9 = (PyObject *) NULL ;
23330 wxToolBarToolBase *result = 0 ;
23331 void *argp1 = 0 ;
23332 int res1 = 0 ;
23333 int val2 ;
23334 int ecode2 = 0 ;
23335 bool temp3 = false ;
23336 void *argp4 = 0 ;
23337 int res4 = 0 ;
23338 void *argp5 = 0 ;
23339 int res5 = 0 ;
23340 int val6 ;
23341 int ecode6 = 0 ;
23342 bool temp7 = false ;
23343 bool temp8 = false ;
23344 PyObject * obj0 = 0 ;
23345 PyObject * obj1 = 0 ;
23346 PyObject * obj2 = 0 ;
23347 PyObject * obj3 = 0 ;
23348 PyObject * obj4 = 0 ;
23349 PyObject * obj5 = 0 ;
23350 PyObject * obj6 = 0 ;
23351 PyObject * obj7 = 0 ;
23352 PyObject * obj8 = 0 ;
23353 char * kwnames[] = {
23354 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23355 };
23356
23357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
23358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23359 if (!SWIG_IsOK(res1)) {
23360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23361 }
23362 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23363 ecode2 = SWIG_AsVal_int(obj1, &val2);
23364 if (!SWIG_IsOK(ecode2)) {
23365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "2"" of type '" "int""'");
23366 }
23367 arg2 = static_cast< int >(val2);
23368 {
23369 arg3 = wxString_in_helper(obj2);
23370 if (arg3 == NULL) SWIG_fail;
23371 temp3 = true;
23372 }
23373 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
23374 if (!SWIG_IsOK(res4)) {
23375 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23376 }
23377 if (!argp4) {
23378 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "4"" of type '" "wxBitmap const &""'");
23379 }
23380 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23381 if (obj4) {
23382 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23383 if (!SWIG_IsOK(res5)) {
23384 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23385 }
23386 if (!argp5) {
23387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoAddTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23388 }
23389 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23390 }
23391 if (obj5) {
23392 ecode6 = SWIG_AsVal_int(obj5, &val6);
23393 if (!SWIG_IsOK(ecode6)) {
23394 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBarBase_DoAddTool" "', expected argument " "6"" of type '" "wxItemKind""'");
23395 }
23396 arg6 = static_cast< wxItemKind >(val6);
23397 }
23398 if (obj6) {
23399 {
23400 arg7 = wxString_in_helper(obj6);
23401 if (arg7 == NULL) SWIG_fail;
23402 temp7 = true;
23403 }
23404 }
23405 if (obj7) {
23406 {
23407 arg8 = wxString_in_helper(obj7);
23408 if (arg8 == NULL) SWIG_fail;
23409 temp8 = true;
23410 }
23411 }
23412 if (obj8) {
23413 arg9 = obj8;
23414 }
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
23418 wxPyEndAllowThreads(__tstate);
23419 if (PyErr_Occurred()) SWIG_fail;
23420 }
23421 {
23422 resultobj = wxPyMake_wxObject(result, (bool)0);
23423 }
23424 {
23425 if (temp3)
23426 delete arg3;
23427 }
23428 {
23429 if (temp7)
23430 delete arg7;
23431 }
23432 {
23433 if (temp8)
23434 delete arg8;
23435 }
23436 return resultobj;
23437 fail:
23438 {
23439 if (temp3)
23440 delete arg3;
23441 }
23442 {
23443 if (temp7)
23444 delete arg7;
23445 }
23446 {
23447 if (temp8)
23448 delete arg8;
23449 }
23450 return NULL;
23451 }
23452
23453
23454 SWIGINTERN PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23455 PyObject *resultobj = 0;
23456 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23457 size_t arg2 ;
23458 int arg3 ;
23459 wxString *arg4 = 0 ;
23460 wxBitmap *arg5 = 0 ;
23461 wxBitmap const &arg6_defvalue = wxNullBitmap ;
23462 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
23463 wxItemKind arg7 = (wxItemKind) wxITEM_NORMAL ;
23464 wxString const &arg8_defvalue = wxPyEmptyString ;
23465 wxString *arg8 = (wxString *) &arg8_defvalue ;
23466 wxString const &arg9_defvalue = wxPyEmptyString ;
23467 wxString *arg9 = (wxString *) &arg9_defvalue ;
23468 PyObject *arg10 = (PyObject *) NULL ;
23469 wxToolBarToolBase *result = 0 ;
23470 void *argp1 = 0 ;
23471 int res1 = 0 ;
23472 size_t val2 ;
23473 int ecode2 = 0 ;
23474 int val3 ;
23475 int ecode3 = 0 ;
23476 bool temp4 = false ;
23477 void *argp5 = 0 ;
23478 int res5 = 0 ;
23479 void *argp6 = 0 ;
23480 int res6 = 0 ;
23481 int val7 ;
23482 int ecode7 = 0 ;
23483 bool temp8 = false ;
23484 bool temp9 = false ;
23485 PyObject * obj0 = 0 ;
23486 PyObject * obj1 = 0 ;
23487 PyObject * obj2 = 0 ;
23488 PyObject * obj3 = 0 ;
23489 PyObject * obj4 = 0 ;
23490 PyObject * obj5 = 0 ;
23491 PyObject * obj6 = 0 ;
23492 PyObject * obj7 = 0 ;
23493 PyObject * obj8 = 0 ;
23494 PyObject * obj9 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23503 }
23504 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23505 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23506 if (!SWIG_IsOK(ecode2)) {
23507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "2"" of type '" "size_t""'");
23508 }
23509 arg2 = static_cast< size_t >(val2);
23510 ecode3 = SWIG_AsVal_int(obj2, &val3);
23511 if (!SWIG_IsOK(ecode3)) {
23512 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "3"" of type '" "int""'");
23513 }
23514 arg3 = static_cast< int >(val3);
23515 {
23516 arg4 = wxString_in_helper(obj3);
23517 if (arg4 == NULL) SWIG_fail;
23518 temp4 = true;
23519 }
23520 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxBitmap, 0 | 0);
23521 if (!SWIG_IsOK(res5)) {
23522 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23523 }
23524 if (!argp5) {
23525 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "5"" of type '" "wxBitmap const &""'");
23526 }
23527 arg5 = reinterpret_cast< wxBitmap * >(argp5);
23528 if (obj5) {
23529 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxBitmap, 0 | 0);
23530 if (!SWIG_IsOK(res6)) {
23531 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23532 }
23533 if (!argp6) {
23534 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "6"" of type '" "wxBitmap const &""'");
23535 }
23536 arg6 = reinterpret_cast< wxBitmap * >(argp6);
23537 }
23538 if (obj6) {
23539 ecode7 = SWIG_AsVal_int(obj6, &val7);
23540 if (!SWIG_IsOK(ecode7)) {
23541 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ToolBarBase_DoInsertTool" "', expected argument " "7"" of type '" "wxItemKind""'");
23542 }
23543 arg7 = static_cast< wxItemKind >(val7);
23544 }
23545 if (obj7) {
23546 {
23547 arg8 = wxString_in_helper(obj7);
23548 if (arg8 == NULL) SWIG_fail;
23549 temp8 = true;
23550 }
23551 }
23552 if (obj8) {
23553 {
23554 arg9 = wxString_in_helper(obj8);
23555 if (arg9 == NULL) SWIG_fail;
23556 temp9 = true;
23557 }
23558 }
23559 if (obj9) {
23560 arg10 = obj9;
23561 }
23562 {
23563 PyThreadState* __tstate = wxPyBeginAllowThreads();
23564 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
23565 wxPyEndAllowThreads(__tstate);
23566 if (PyErr_Occurred()) SWIG_fail;
23567 }
23568 {
23569 resultobj = wxPyMake_wxObject(result, (bool)0);
23570 }
23571 {
23572 if (temp4)
23573 delete arg4;
23574 }
23575 {
23576 if (temp8)
23577 delete arg8;
23578 }
23579 {
23580 if (temp9)
23581 delete arg9;
23582 }
23583 return resultobj;
23584 fail:
23585 {
23586 if (temp4)
23587 delete arg4;
23588 }
23589 {
23590 if (temp8)
23591 delete arg8;
23592 }
23593 {
23594 if (temp9)
23595 delete arg9;
23596 }
23597 return NULL;
23598 }
23599
23600
23601 SWIGINTERN PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23602 PyObject *resultobj = 0;
23603 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23604 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
23605 wxToolBarToolBase *result = 0 ;
23606 void *argp1 = 0 ;
23607 int res1 = 0 ;
23608 void *argp2 = 0 ;
23609 int res2 = 0 ;
23610 PyObject * obj0 = 0 ;
23611 PyObject * obj1 = 0 ;
23612 char * kwnames[] = {
23613 (char *) "self",(char *) "tool", NULL
23614 };
23615
23616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) SWIG_fail;
23617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23618 if (!SWIG_IsOK(res1)) {
23619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23620 }
23621 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23622 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23623 if (!SWIG_IsOK(res2)) {
23624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddToolItem" "', expected argument " "2"" of type '" "wxToolBarToolBase *""'");
23625 }
23626 arg2 = reinterpret_cast< wxToolBarToolBase * >(argp2);
23627 {
23628 PyThreadState* __tstate = wxPyBeginAllowThreads();
23629 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
23630 wxPyEndAllowThreads(__tstate);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 }
23633 {
23634 resultobj = wxPyMake_wxObject(result, (bool)0);
23635 }
23636 return resultobj;
23637 fail:
23638 return NULL;
23639 }
23640
23641
23642 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23643 PyObject *resultobj = 0;
23644 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23645 size_t arg2 ;
23646 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
23647 wxToolBarToolBase *result = 0 ;
23648 void *argp1 = 0 ;
23649 int res1 = 0 ;
23650 size_t val2 ;
23651 int ecode2 = 0 ;
23652 void *argp3 = 0 ;
23653 int res3 = 0 ;
23654 PyObject * obj0 = 0 ;
23655 PyObject * obj1 = 0 ;
23656 PyObject * obj2 = 0 ;
23657 char * kwnames[] = {
23658 (char *) "self",(char *) "pos",(char *) "tool", NULL
23659 };
23660
23661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23665 }
23666 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23667 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23668 if (!SWIG_IsOK(ecode2)) {
23669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "2"" of type '" "size_t""'");
23670 }
23671 arg2 = static_cast< size_t >(val2);
23672 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxToolBarToolBase, 0 | 0 );
23673 if (!SWIG_IsOK(res3)) {
23674 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertToolItem" "', expected argument " "3"" of type '" "wxToolBarToolBase *""'");
23675 }
23676 arg3 = reinterpret_cast< wxToolBarToolBase * >(argp3);
23677 {
23678 PyThreadState* __tstate = wxPyBeginAllowThreads();
23679 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
23680 wxPyEndAllowThreads(__tstate);
23681 if (PyErr_Occurred()) SWIG_fail;
23682 }
23683 {
23684 resultobj = wxPyMake_wxObject(result, (bool)0);
23685 }
23686 return resultobj;
23687 fail:
23688 return NULL;
23689 }
23690
23691
23692 SWIGINTERN PyObject *_wrap_ToolBarBase_AddControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23693 PyObject *resultobj = 0;
23694 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23695 wxControl *arg2 = (wxControl *) 0 ;
23696 wxToolBarToolBase *result = 0 ;
23697 void *argp1 = 0 ;
23698 int res1 = 0 ;
23699 void *argp2 = 0 ;
23700 int res2 = 0 ;
23701 PyObject * obj0 = 0 ;
23702 PyObject * obj1 = 0 ;
23703 char * kwnames[] = {
23704 (char *) "self",(char *) "control", NULL
23705 };
23706
23707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) SWIG_fail;
23708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23709 if (!SWIG_IsOK(res1)) {
23710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23711 }
23712 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23713 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxControl, 0 | 0 );
23714 if (!SWIG_IsOK(res2)) {
23715 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBarBase_AddControl" "', expected argument " "2"" of type '" "wxControl *""'");
23716 }
23717 arg2 = reinterpret_cast< wxControl * >(argp2);
23718 {
23719 PyThreadState* __tstate = wxPyBeginAllowThreads();
23720 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
23721 wxPyEndAllowThreads(__tstate);
23722 if (PyErr_Occurred()) SWIG_fail;
23723 }
23724 {
23725 resultobj = wxPyMake_wxObject(result, (bool)0);
23726 }
23727 return resultobj;
23728 fail:
23729 return NULL;
23730 }
23731
23732
23733 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23734 PyObject *resultobj = 0;
23735 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23736 size_t arg2 ;
23737 wxControl *arg3 = (wxControl *) 0 ;
23738 wxToolBarToolBase *result = 0 ;
23739 void *argp1 = 0 ;
23740 int res1 = 0 ;
23741 size_t val2 ;
23742 int ecode2 = 0 ;
23743 void *argp3 = 0 ;
23744 int res3 = 0 ;
23745 PyObject * obj0 = 0 ;
23746 PyObject * obj1 = 0 ;
23747 PyObject * obj2 = 0 ;
23748 char * kwnames[] = {
23749 (char *) "self",(char *) "pos",(char *) "control", NULL
23750 };
23751
23752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23754 if (!SWIG_IsOK(res1)) {
23755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23756 }
23757 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23758 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23759 if (!SWIG_IsOK(ecode2)) {
23760 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertControl" "', expected argument " "2"" of type '" "size_t""'");
23761 }
23762 arg2 = static_cast< size_t >(val2);
23763 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxControl, 0 | 0 );
23764 if (!SWIG_IsOK(res3)) {
23765 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ToolBarBase_InsertControl" "', expected argument " "3"" of type '" "wxControl *""'");
23766 }
23767 arg3 = reinterpret_cast< wxControl * >(argp3);
23768 {
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 {
23775 resultobj = wxPyMake_wxObject(result, (bool)0);
23776 }
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 SWIGINTERN PyObject *_wrap_ToolBarBase_FindControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj = 0;
23785 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23786 int arg2 ;
23787 wxControl *result = 0 ;
23788 void *argp1 = 0 ;
23789 int res1 = 0 ;
23790 int val2 ;
23791 int ecode2 = 0 ;
23792 PyObject * obj0 = 0 ;
23793 PyObject * obj1 = 0 ;
23794 char * kwnames[] = {
23795 (char *) "self",(char *) "id", NULL
23796 };
23797
23798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) SWIG_fail;
23799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23800 if (!SWIG_IsOK(res1)) {
23801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindControl" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23802 }
23803 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23804 ecode2 = SWIG_AsVal_int(obj1, &val2);
23805 if (!SWIG_IsOK(ecode2)) {
23806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindControl" "', expected argument " "2"" of type '" "int""'");
23807 }
23808 arg2 = static_cast< int >(val2);
23809 {
23810 PyThreadState* __tstate = wxPyBeginAllowThreads();
23811 result = (wxControl *)(arg1)->FindControl(arg2);
23812 wxPyEndAllowThreads(__tstate);
23813 if (PyErr_Occurred()) SWIG_fail;
23814 }
23815 {
23816 resultobj = wxPyMake_wxObject(result, 0);
23817 }
23818 return resultobj;
23819 fail:
23820 return NULL;
23821 }
23822
23823
23824 SWIGINTERN PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23825 PyObject *resultobj = 0;
23826 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23827 wxToolBarToolBase *result = 0 ;
23828 void *argp1 = 0 ;
23829 int res1 = 0 ;
23830 PyObject *swig_obj[1] ;
23831
23832 if (!args) SWIG_fail;
23833 swig_obj[0] = args;
23834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23835 if (!SWIG_IsOK(res1)) {
23836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_AddSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23837 }
23838 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23839 {
23840 PyThreadState* __tstate = wxPyBeginAllowThreads();
23841 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
23842 wxPyEndAllowThreads(__tstate);
23843 if (PyErr_Occurred()) SWIG_fail;
23844 }
23845 {
23846 resultobj = wxPyMake_wxObject(result, (bool)0);
23847 }
23848 return resultobj;
23849 fail:
23850 return NULL;
23851 }
23852
23853
23854 SWIGINTERN PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23855 PyObject *resultobj = 0;
23856 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23857 size_t arg2 ;
23858 wxToolBarToolBase *result = 0 ;
23859 void *argp1 = 0 ;
23860 int res1 = 0 ;
23861 size_t val2 ;
23862 int ecode2 = 0 ;
23863 PyObject * obj0 = 0 ;
23864 PyObject * obj1 = 0 ;
23865 char * kwnames[] = {
23866 (char *) "self",(char *) "pos", NULL
23867 };
23868
23869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) SWIG_fail;
23870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23871 if (!SWIG_IsOK(res1)) {
23872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23873 }
23874 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23875 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23876 if (!SWIG_IsOK(ecode2)) {
23877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_InsertSeparator" "', expected argument " "2"" of type '" "size_t""'");
23878 }
23879 arg2 = static_cast< size_t >(val2);
23880 {
23881 PyThreadState* __tstate = wxPyBeginAllowThreads();
23882 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
23883 wxPyEndAllowThreads(__tstate);
23884 if (PyErr_Occurred()) SWIG_fail;
23885 }
23886 {
23887 resultobj = wxPyMake_wxObject(result, (bool)0);
23888 }
23889 return resultobj;
23890 fail:
23891 return NULL;
23892 }
23893
23894
23895 SWIGINTERN PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23896 PyObject *resultobj = 0;
23897 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23898 int arg2 ;
23899 wxToolBarToolBase *result = 0 ;
23900 void *argp1 = 0 ;
23901 int res1 = 0 ;
23902 int val2 ;
23903 int ecode2 = 0 ;
23904 PyObject * obj0 = 0 ;
23905 PyObject * obj1 = 0 ;
23906 char * kwnames[] = {
23907 (char *) "self",(char *) "id", NULL
23908 };
23909
23910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) SWIG_fail;
23911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23912 if (!SWIG_IsOK(res1)) {
23913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23914 }
23915 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23916 ecode2 = SWIG_AsVal_int(obj1, &val2);
23917 if (!SWIG_IsOK(ecode2)) {
23918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_RemoveTool" "', expected argument " "2"" of type '" "int""'");
23919 }
23920 arg2 = static_cast< int >(val2);
23921 {
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 {
23928 resultobj = wxPyMake_wxObject(result, (bool)0);
23929 }
23930 return resultobj;
23931 fail:
23932 return NULL;
23933 }
23934
23935
23936 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23937 PyObject *resultobj = 0;
23938 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23939 size_t arg2 ;
23940 bool result;
23941 void *argp1 = 0 ;
23942 int res1 = 0 ;
23943 size_t val2 ;
23944 int ecode2 = 0 ;
23945 PyObject * obj0 = 0 ;
23946 PyObject * obj1 = 0 ;
23947 char * kwnames[] = {
23948 (char *) "self",(char *) "pos", NULL
23949 };
23950
23951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) SWIG_fail;
23952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23955 }
23956 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23957 ecode2 = SWIG_AsVal_size_t(obj1, &val2);
23958 if (!SWIG_IsOK(ecode2)) {
23959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteToolByPos" "', expected argument " "2"" of type '" "size_t""'");
23960 }
23961 arg2 = static_cast< size_t >(val2);
23962 {
23963 PyThreadState* __tstate = wxPyBeginAllowThreads();
23964 result = (bool)(arg1)->DeleteToolByPos(arg2);
23965 wxPyEndAllowThreads(__tstate);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 }
23968 {
23969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23970 }
23971 return resultobj;
23972 fail:
23973 return NULL;
23974 }
23975
23976
23977 SWIGINTERN PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23978 PyObject *resultobj = 0;
23979 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
23980 int arg2 ;
23981 bool result;
23982 void *argp1 = 0 ;
23983 int res1 = 0 ;
23984 int val2 ;
23985 int ecode2 = 0 ;
23986 PyObject * obj0 = 0 ;
23987 PyObject * obj1 = 0 ;
23988 char * kwnames[] = {
23989 (char *) "self",(char *) "id", NULL
23990 };
23991
23992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) SWIG_fail;
23993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
23994 if (!SWIG_IsOK(res1)) {
23995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
23996 }
23997 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
23998 ecode2 = SWIG_AsVal_int(obj1, &val2);
23999 if (!SWIG_IsOK(ecode2)) {
24000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_DeleteTool" "', expected argument " "2"" of type '" "int""'");
24001 }
24002 arg2 = static_cast< int >(val2);
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = (bool)(arg1)->DeleteTool(arg2);
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 {
24010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24011 }
24012 return resultobj;
24013 fail:
24014 return NULL;
24015 }
24016
24017
24018 SWIGINTERN PyObject *_wrap_ToolBarBase_ClearTools(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24019 PyObject *resultobj = 0;
24020 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24021 void *argp1 = 0 ;
24022 int res1 = 0 ;
24023 PyObject *swig_obj[1] ;
24024
24025 if (!args) SWIG_fail;
24026 swig_obj[0] = args;
24027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24028 if (!SWIG_IsOK(res1)) {
24029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_ClearTools" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24030 }
24031 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24032 {
24033 PyThreadState* __tstate = wxPyBeginAllowThreads();
24034 (arg1)->ClearTools();
24035 wxPyEndAllowThreads(__tstate);
24036 if (PyErr_Occurred()) SWIG_fail;
24037 }
24038 resultobj = SWIG_Py_Void();
24039 return resultobj;
24040 fail:
24041 return NULL;
24042 }
24043
24044
24045 SWIGINTERN PyObject *_wrap_ToolBarBase_Realize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24046 PyObject *resultobj = 0;
24047 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24048 bool result;
24049 void *argp1 = 0 ;
24050 int res1 = 0 ;
24051 PyObject *swig_obj[1] ;
24052
24053 if (!args) SWIG_fail;
24054 swig_obj[0] = args;
24055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24056 if (!SWIG_IsOK(res1)) {
24057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_Realize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24058 }
24059 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24060 {
24061 PyThreadState* __tstate = wxPyBeginAllowThreads();
24062 result = (bool)(arg1)->Realize();
24063 wxPyEndAllowThreads(__tstate);
24064 if (PyErr_Occurred()) SWIG_fail;
24065 }
24066 {
24067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24068 }
24069 return resultobj;
24070 fail:
24071 return NULL;
24072 }
24073
24074
24075 SWIGINTERN PyObject *_wrap_ToolBarBase_EnableTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24076 PyObject *resultobj = 0;
24077 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24078 int arg2 ;
24079 bool arg3 ;
24080 void *argp1 = 0 ;
24081 int res1 = 0 ;
24082 int val2 ;
24083 int ecode2 = 0 ;
24084 bool val3 ;
24085 int ecode3 = 0 ;
24086 PyObject * obj0 = 0 ;
24087 PyObject * obj1 = 0 ;
24088 PyObject * obj2 = 0 ;
24089 char * kwnames[] = {
24090 (char *) "self",(char *) "id",(char *) "enable", NULL
24091 };
24092
24093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24095 if (!SWIG_IsOK(res1)) {
24096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_EnableTool" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24097 }
24098 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24099 ecode2 = SWIG_AsVal_int(obj1, &val2);
24100 if (!SWIG_IsOK(ecode2)) {
24101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_EnableTool" "', expected argument " "2"" of type '" "int""'");
24102 }
24103 arg2 = static_cast< int >(val2);
24104 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24105 if (!SWIG_IsOK(ecode3)) {
24106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_EnableTool" "', expected argument " "3"" of type '" "bool""'");
24107 }
24108 arg3 = static_cast< bool >(val3);
24109 {
24110 PyThreadState* __tstate = wxPyBeginAllowThreads();
24111 (arg1)->EnableTool(arg2,arg3);
24112 wxPyEndAllowThreads(__tstate);
24113 if (PyErr_Occurred()) SWIG_fail;
24114 }
24115 resultobj = SWIG_Py_Void();
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 SWIGINTERN PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj = 0;
24124 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24125 int arg2 ;
24126 bool arg3 ;
24127 void *argp1 = 0 ;
24128 int res1 = 0 ;
24129 int val2 ;
24130 int ecode2 = 0 ;
24131 bool val3 ;
24132 int ecode3 = 0 ;
24133 PyObject * obj0 = 0 ;
24134 PyObject * obj1 = 0 ;
24135 PyObject * obj2 = 0 ;
24136 char * kwnames[] = {
24137 (char *) "self",(char *) "id",(char *) "toggle", NULL
24138 };
24139
24140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) 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_ToggleTool" "', 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_ToggleTool" "', expected argument " "2"" of type '" "int""'");
24149 }
24150 arg2 = static_cast< int >(val2);
24151 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24152 if (!SWIG_IsOK(ecode3)) {
24153 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_ToggleTool" "', expected argument " "3"" of type '" "bool""'");
24154 }
24155 arg3 = static_cast< bool >(val3);
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 (arg1)->ToggleTool(arg2,arg3);
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_Py_Void();
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24170 PyObject *resultobj = 0;
24171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24172 int arg2 ;
24173 bool arg3 ;
24174 void *argp1 = 0 ;
24175 int res1 = 0 ;
24176 int val2 ;
24177 int ecode2 = 0 ;
24178 bool val3 ;
24179 int ecode3 = 0 ;
24180 PyObject * obj0 = 0 ;
24181 PyObject * obj1 = 0 ;
24182 PyObject * obj2 = 0 ;
24183 char * kwnames[] = {
24184 (char *) "self",(char *) "id",(char *) "toggle", NULL
24185 };
24186
24187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24189 if (!SWIG_IsOK(res1)) {
24190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToggle" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24191 }
24192 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24193 ecode2 = SWIG_AsVal_int(obj1, &val2);
24194 if (!SWIG_IsOK(ecode2)) {
24195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToggle" "', expected argument " "2"" of type '" "int""'");
24196 }
24197 arg2 = static_cast< int >(val2);
24198 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24199 if (!SWIG_IsOK(ecode3)) {
24200 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetToggle" "', expected argument " "3"" of type '" "bool""'");
24201 }
24202 arg3 = static_cast< bool >(val3);
24203 {
24204 PyThreadState* __tstate = wxPyBeginAllowThreads();
24205 (arg1)->SetToggle(arg2,arg3);
24206 wxPyEndAllowThreads(__tstate);
24207 if (PyErr_Occurred()) SWIG_fail;
24208 }
24209 resultobj = SWIG_Py_Void();
24210 return resultobj;
24211 fail:
24212 return NULL;
24213 }
24214
24215
24216 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24217 PyObject *resultobj = 0;
24218 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24219 int arg2 ;
24220 PyObject *result = 0 ;
24221 void *argp1 = 0 ;
24222 int res1 = 0 ;
24223 int val2 ;
24224 int ecode2 = 0 ;
24225 PyObject * obj0 = 0 ;
24226 PyObject * obj1 = 0 ;
24227 char * kwnames[] = {
24228 (char *) "self",(char *) "id", NULL
24229 };
24230
24231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) SWIG_fail;
24232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24233 if (!SWIG_IsOK(res1)) {
24234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24235 }
24236 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24237 ecode2 = SWIG_AsVal_int(obj1, &val2);
24238 if (!SWIG_IsOK(ecode2)) {
24239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolClientData" "', expected argument " "2"" of type '" "int""'");
24240 }
24241 arg2 = static_cast< int >(val2);
24242 {
24243 PyThreadState* __tstate = wxPyBeginAllowThreads();
24244 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
24245 wxPyEndAllowThreads(__tstate);
24246 if (PyErr_Occurred()) SWIG_fail;
24247 }
24248 resultobj = result;
24249 return resultobj;
24250 fail:
24251 return NULL;
24252 }
24253
24254
24255 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24256 PyObject *resultobj = 0;
24257 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24258 int arg2 ;
24259 PyObject *arg3 = (PyObject *) 0 ;
24260 void *argp1 = 0 ;
24261 int res1 = 0 ;
24262 int val2 ;
24263 int ecode2 = 0 ;
24264 PyObject * obj0 = 0 ;
24265 PyObject * obj1 = 0 ;
24266 PyObject * obj2 = 0 ;
24267 char * kwnames[] = {
24268 (char *) "self",(char *) "id",(char *) "clientData", NULL
24269 };
24270
24271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24273 if (!SWIG_IsOK(res1)) {
24274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24275 }
24276 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24277 ecode2 = SWIG_AsVal_int(obj1, &val2);
24278 if (!SWIG_IsOK(ecode2)) {
24279 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolClientData" "', expected argument " "2"" of type '" "int""'");
24280 }
24281 arg2 = static_cast< int >(val2);
24282 arg3 = obj2;
24283 {
24284 PyThreadState* __tstate = wxPyBeginAllowThreads();
24285 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
24286 wxPyEndAllowThreads(__tstate);
24287 if (PyErr_Occurred()) SWIG_fail;
24288 }
24289 resultobj = SWIG_Py_Void();
24290 return resultobj;
24291 fail:
24292 return NULL;
24293 }
24294
24295
24296 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24297 PyObject *resultobj = 0;
24298 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24299 int arg2 ;
24300 int result;
24301 void *argp1 = 0 ;
24302 int res1 = 0 ;
24303 int val2 ;
24304 int ecode2 = 0 ;
24305 PyObject * obj0 = 0 ;
24306 PyObject * obj1 = 0 ;
24307 char * kwnames[] = {
24308 (char *) "self",(char *) "id", NULL
24309 };
24310
24311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) SWIG_fail;
24312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24313 if (!SWIG_IsOK(res1)) {
24314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
24315 }
24316 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24317 ecode2 = SWIG_AsVal_int(obj1, &val2);
24318 if (!SWIG_IsOK(ecode2)) {
24319 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolPos" "', expected argument " "2"" of type '" "int""'");
24320 }
24321 arg2 = static_cast< int >(val2);
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 resultobj = SWIG_From_int(static_cast< int >(result));
24329 return resultobj;
24330 fail:
24331 return NULL;
24332 }
24333
24334
24335 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj = 0;
24337 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24338 int arg2 ;
24339 bool result;
24340 void *argp1 = 0 ;
24341 int res1 = 0 ;
24342 int val2 ;
24343 int ecode2 = 0 ;
24344 PyObject * obj0 = 0 ;
24345 PyObject * obj1 = 0 ;
24346 char * kwnames[] = {
24347 (char *) "self",(char *) "id", NULL
24348 };
24349
24350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) SWIG_fail;
24351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24352 if (!SWIG_IsOK(res1)) {
24353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolState" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24354 }
24355 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24356 ecode2 = SWIG_AsVal_int(obj1, &val2);
24357 if (!SWIG_IsOK(ecode2)) {
24358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolState" "', expected argument " "2"" of type '" "int""'");
24359 }
24360 arg2 = static_cast< int >(val2);
24361 {
24362 PyThreadState* __tstate = wxPyBeginAllowThreads();
24363 result = (bool)(arg1)->GetToolState(arg2);
24364 wxPyEndAllowThreads(__tstate);
24365 if (PyErr_Occurred()) SWIG_fail;
24366 }
24367 {
24368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24369 }
24370 return resultobj;
24371 fail:
24372 return NULL;
24373 }
24374
24375
24376 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24377 PyObject *resultobj = 0;
24378 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24379 int arg2 ;
24380 bool result;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 int val2 ;
24384 int ecode2 = 0 ;
24385 PyObject * obj0 = 0 ;
24386 PyObject * obj1 = 0 ;
24387 char * kwnames[] = {
24388 (char *) "self",(char *) "id", NULL
24389 };
24390
24391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) SWIG_fail;
24392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24393 if (!SWIG_IsOK(res1)) {
24394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24395 }
24396 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24397 ecode2 = SWIG_AsVal_int(obj1, &val2);
24398 if (!SWIG_IsOK(ecode2)) {
24399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolEnabled" "', expected argument " "2"" of type '" "int""'");
24400 }
24401 arg2 = static_cast< int >(val2);
24402 {
24403 PyThreadState* __tstate = wxPyBeginAllowThreads();
24404 result = (bool)(arg1)->GetToolEnabled(arg2);
24405 wxPyEndAllowThreads(__tstate);
24406 if (PyErr_Occurred()) SWIG_fail;
24407 }
24408 {
24409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24410 }
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24418 PyObject *resultobj = 0;
24419 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24420 int arg2 ;
24421 wxString *arg3 = 0 ;
24422 void *argp1 = 0 ;
24423 int res1 = 0 ;
24424 int val2 ;
24425 int ecode2 = 0 ;
24426 bool temp3 = false ;
24427 PyObject * obj0 = 0 ;
24428 PyObject * obj1 = 0 ;
24429 PyObject * obj2 = 0 ;
24430 char * kwnames[] = {
24431 (char *) "self",(char *) "id",(char *) "helpString", NULL
24432 };
24433
24434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24436 if (!SWIG_IsOK(res1)) {
24437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24438 }
24439 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24440 ecode2 = SWIG_AsVal_int(obj1, &val2);
24441 if (!SWIG_IsOK(ecode2)) {
24442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24443 }
24444 arg2 = static_cast< int >(val2);
24445 {
24446 arg3 = wxString_in_helper(obj2);
24447 if (arg3 == NULL) SWIG_fail;
24448 temp3 = true;
24449 }
24450 {
24451 PyThreadState* __tstate = wxPyBeginAllowThreads();
24452 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
24453 wxPyEndAllowThreads(__tstate);
24454 if (PyErr_Occurred()) SWIG_fail;
24455 }
24456 resultobj = SWIG_Py_Void();
24457 {
24458 if (temp3)
24459 delete arg3;
24460 }
24461 return resultobj;
24462 fail:
24463 {
24464 if (temp3)
24465 delete arg3;
24466 }
24467 return NULL;
24468 }
24469
24470
24471 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24472 PyObject *resultobj = 0;
24473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24474 int arg2 ;
24475 wxString result;
24476 void *argp1 = 0 ;
24477 int res1 = 0 ;
24478 int val2 ;
24479 int ecode2 = 0 ;
24480 PyObject * obj0 = 0 ;
24481 PyObject * obj1 = 0 ;
24482 char * kwnames[] = {
24483 (char *) "self",(char *) "id", NULL
24484 };
24485
24486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24488 if (!SWIG_IsOK(res1)) {
24489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24490 }
24491 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24492 ecode2 = SWIG_AsVal_int(obj1, &val2);
24493 if (!SWIG_IsOK(ecode2)) {
24494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolShortHelp" "', expected argument " "2"" of type '" "int""'");
24495 }
24496 arg2 = static_cast< int >(val2);
24497 {
24498 PyThreadState* __tstate = wxPyBeginAllowThreads();
24499 result = (arg1)->GetToolShortHelp(arg2);
24500 wxPyEndAllowThreads(__tstate);
24501 if (PyErr_Occurred()) SWIG_fail;
24502 }
24503 {
24504 #if wxUSE_UNICODE
24505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24506 #else
24507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24508 #endif
24509 }
24510 return resultobj;
24511 fail:
24512 return NULL;
24513 }
24514
24515
24516 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24517 PyObject *resultobj = 0;
24518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24519 int arg2 ;
24520 wxString *arg3 = 0 ;
24521 void *argp1 = 0 ;
24522 int res1 = 0 ;
24523 int val2 ;
24524 int ecode2 = 0 ;
24525 bool temp3 = false ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 PyObject * obj2 = 0 ;
24529 char * kwnames[] = {
24530 (char *) "self",(char *) "id",(char *) "helpString", NULL
24531 };
24532
24533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24535 if (!SWIG_IsOK(res1)) {
24536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24537 }
24538 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24539 ecode2 = SWIG_AsVal_int(obj1, &val2);
24540 if (!SWIG_IsOK(ecode2)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24542 }
24543 arg2 = static_cast< int >(val2);
24544 {
24545 arg3 = wxString_in_helper(obj2);
24546 if (arg3 == NULL) SWIG_fail;
24547 temp3 = true;
24548 }
24549 {
24550 PyThreadState* __tstate = wxPyBeginAllowThreads();
24551 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
24552 wxPyEndAllowThreads(__tstate);
24553 if (PyErr_Occurred()) SWIG_fail;
24554 }
24555 resultobj = SWIG_Py_Void();
24556 {
24557 if (temp3)
24558 delete arg3;
24559 }
24560 return resultobj;
24561 fail:
24562 {
24563 if (temp3)
24564 delete arg3;
24565 }
24566 return NULL;
24567 }
24568
24569
24570 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24571 PyObject *resultobj = 0;
24572 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24573 int arg2 ;
24574 wxString result;
24575 void *argp1 = 0 ;
24576 int res1 = 0 ;
24577 int val2 ;
24578 int ecode2 = 0 ;
24579 PyObject * obj0 = 0 ;
24580 PyObject * obj1 = 0 ;
24581 char * kwnames[] = {
24582 (char *) "self",(char *) "id", NULL
24583 };
24584
24585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) SWIG_fail;
24586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24587 if (!SWIG_IsOK(res1)) {
24588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24589 }
24590 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24591 ecode2 = SWIG_AsVal_int(obj1, &val2);
24592 if (!SWIG_IsOK(ecode2)) {
24593 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_GetToolLongHelp" "', expected argument " "2"" of type '" "int""'");
24594 }
24595 arg2 = static_cast< int >(val2);
24596 {
24597 PyThreadState* __tstate = wxPyBeginAllowThreads();
24598 result = (arg1)->GetToolLongHelp(arg2);
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 {
24603 #if wxUSE_UNICODE
24604 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
24605 #else
24606 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
24607 #endif
24608 }
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj = 0;
24617 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24618 int arg2 ;
24619 int arg3 ;
24620 void *argp1 = 0 ;
24621 int res1 = 0 ;
24622 int val2 ;
24623 int ecode2 = 0 ;
24624 int val3 ;
24625 int ecode3 = 0 ;
24626 PyObject * obj0 = 0 ;
24627 PyObject * obj1 = 0 ;
24628 PyObject * obj2 = 0 ;
24629 char * kwnames[] = {
24630 (char *) "self",(char *) "x",(char *) "y", NULL
24631 };
24632
24633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24634 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24635 if (!SWIG_IsOK(res1)) {
24636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24637 }
24638 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24639 ecode2 = SWIG_AsVal_int(obj1, &val2);
24640 if (!SWIG_IsOK(ecode2)) {
24641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "2"" of type '" "int""'");
24642 }
24643 arg2 = static_cast< int >(val2);
24644 ecode3 = SWIG_AsVal_int(obj2, &val3);
24645 if (!SWIG_IsOK(ecode3)) {
24646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMarginsXY" "', expected argument " "3"" of type '" "int""'");
24647 }
24648 arg3 = static_cast< int >(val3);
24649 {
24650 PyThreadState* __tstate = wxPyBeginAllowThreads();
24651 (arg1)->SetMargins(arg2,arg3);
24652 wxPyEndAllowThreads(__tstate);
24653 if (PyErr_Occurred()) SWIG_fail;
24654 }
24655 resultobj = SWIG_Py_Void();
24656 return resultobj;
24657 fail:
24658 return NULL;
24659 }
24660
24661
24662 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24663 PyObject *resultobj = 0;
24664 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24665 wxSize *arg2 = 0 ;
24666 void *argp1 = 0 ;
24667 int res1 = 0 ;
24668 wxSize temp2 ;
24669 PyObject * obj0 = 0 ;
24670 PyObject * obj1 = 0 ;
24671 char * kwnames[] = {
24672 (char *) "self",(char *) "size", NULL
24673 };
24674
24675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) SWIG_fail;
24676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24677 if (!SWIG_IsOK(res1)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24679 }
24680 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24681 {
24682 arg2 = &temp2;
24683 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
24684 }
24685 {
24686 PyThreadState* __tstate = wxPyBeginAllowThreads();
24687 (arg1)->SetMargins((wxSize const &)*arg2);
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 resultobj = SWIG_Py_Void();
24692 return resultobj;
24693 fail:
24694 return NULL;
24695 }
24696
24697
24698 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24699 PyObject *resultobj = 0;
24700 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24701 int arg2 ;
24702 void *argp1 = 0 ;
24703 int res1 = 0 ;
24704 int val2 ;
24705 int ecode2 = 0 ;
24706 PyObject * obj0 = 0 ;
24707 PyObject * obj1 = 0 ;
24708 char * kwnames[] = {
24709 (char *) "self",(char *) "packing", NULL
24710 };
24711
24712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) SWIG_fail;
24713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24714 if (!SWIG_IsOK(res1)) {
24715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24716 }
24717 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24718 ecode2 = SWIG_AsVal_int(obj1, &val2);
24719 if (!SWIG_IsOK(ecode2)) {
24720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolPacking" "', expected argument " "2"" of type '" "int""'");
24721 }
24722 arg2 = static_cast< int >(val2);
24723 {
24724 PyThreadState* __tstate = wxPyBeginAllowThreads();
24725 (arg1)->SetToolPacking(arg2);
24726 wxPyEndAllowThreads(__tstate);
24727 if (PyErr_Occurred()) SWIG_fail;
24728 }
24729 resultobj = SWIG_Py_Void();
24730 return resultobj;
24731 fail:
24732 return NULL;
24733 }
24734
24735
24736 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24737 PyObject *resultobj = 0;
24738 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24739 int arg2 ;
24740 void *argp1 = 0 ;
24741 int res1 = 0 ;
24742 int val2 ;
24743 int ecode2 = 0 ;
24744 PyObject * obj0 = 0 ;
24745 PyObject * obj1 = 0 ;
24746 char * kwnames[] = {
24747 (char *) "self",(char *) "separation", NULL
24748 };
24749
24750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) SWIG_fail;
24751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24752 if (!SWIG_IsOK(res1)) {
24753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24754 }
24755 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24756 ecode2 = SWIG_AsVal_int(obj1, &val2);
24757 if (!SWIG_IsOK(ecode2)) {
24758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetToolSeparation" "', expected argument " "2"" of type '" "int""'");
24759 }
24760 arg2 = static_cast< int >(val2);
24761 {
24762 PyThreadState* __tstate = wxPyBeginAllowThreads();
24763 (arg1)->SetToolSeparation(arg2);
24764 wxPyEndAllowThreads(__tstate);
24765 if (PyErr_Occurred()) SWIG_fail;
24766 }
24767 resultobj = SWIG_Py_Void();
24768 return resultobj;
24769 fail:
24770 return NULL;
24771 }
24772
24773
24774 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24775 PyObject *resultobj = 0;
24776 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24777 wxSize result;
24778 void *argp1 = 0 ;
24779 int res1 = 0 ;
24780 PyObject *swig_obj[1] ;
24781
24782 if (!args) SWIG_fail;
24783 swig_obj[0] = args;
24784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24785 if (!SWIG_IsOK(res1)) {
24786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24787 }
24788 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24789 {
24790 PyThreadState* __tstate = wxPyBeginAllowThreads();
24791 result = (arg1)->GetToolMargins();
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24796 return resultobj;
24797 fail:
24798 return NULL;
24799 }
24800
24801
24802 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMargins(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24803 PyObject *resultobj = 0;
24804 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24805 wxSize result;
24806 void *argp1 = 0 ;
24807 int res1 = 0 ;
24808 PyObject *swig_obj[1] ;
24809
24810 if (!args) SWIG_fail;
24811 swig_obj[0] = args;
24812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMargins" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24815 }
24816 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (arg1)->GetMargins();
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24824 return resultobj;
24825 fail:
24826 return NULL;
24827 }
24828
24829
24830 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24831 PyObject *resultobj = 0;
24832 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24833 int result;
24834 void *argp1 = 0 ;
24835 int res1 = 0 ;
24836 PyObject *swig_obj[1] ;
24837
24838 if (!args) SWIG_fail;
24839 swig_obj[0] = args;
24840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolPacking" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24843 }
24844 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24845 {
24846 PyThreadState* __tstate = wxPyBeginAllowThreads();
24847 result = (int)(arg1)->GetToolPacking();
24848 wxPyEndAllowThreads(__tstate);
24849 if (PyErr_Occurred()) SWIG_fail;
24850 }
24851 resultobj = SWIG_From_int(static_cast< int >(result));
24852 return resultobj;
24853 fail:
24854 return NULL;
24855 }
24856
24857
24858 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24859 PyObject *resultobj = 0;
24860 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24861 int result;
24862 void *argp1 = 0 ;
24863 int res1 = 0 ;
24864 PyObject *swig_obj[1] ;
24865
24866 if (!args) SWIG_fail;
24867 swig_obj[0] = args;
24868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24869 if (!SWIG_IsOK(res1)) {
24870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSeparation" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24871 }
24872 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24873 {
24874 PyThreadState* __tstate = wxPyBeginAllowThreads();
24875 result = (int)(arg1)->GetToolSeparation();
24876 wxPyEndAllowThreads(__tstate);
24877 if (PyErr_Occurred()) SWIG_fail;
24878 }
24879 resultobj = SWIG_From_int(static_cast< int >(result));
24880 return resultobj;
24881 fail:
24882 return NULL;
24883 }
24884
24885
24886 SWIGINTERN PyObject *_wrap_ToolBarBase_SetRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24887 PyObject *resultobj = 0;
24888 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24889 int arg2 ;
24890 void *argp1 = 0 ;
24891 int res1 = 0 ;
24892 int val2 ;
24893 int ecode2 = 0 ;
24894 PyObject * obj0 = 0 ;
24895 PyObject * obj1 = 0 ;
24896 char * kwnames[] = {
24897 (char *) "self",(char *) "nRows", NULL
24898 };
24899
24900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) SWIG_fail;
24901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24902 if (!SWIG_IsOK(res1)) {
24903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24904 }
24905 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24906 ecode2 = SWIG_AsVal_int(obj1, &val2);
24907 if (!SWIG_IsOK(ecode2)) {
24908 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetRows" "', expected argument " "2"" of type '" "int""'");
24909 }
24910 arg2 = static_cast< int >(val2);
24911 {
24912 PyThreadState* __tstate = wxPyBeginAllowThreads();
24913 (arg1)->SetRows(arg2);
24914 wxPyEndAllowThreads(__tstate);
24915 if (PyErr_Occurred()) SWIG_fail;
24916 }
24917 resultobj = SWIG_Py_Void();
24918 return resultobj;
24919 fail:
24920 return NULL;
24921 }
24922
24923
24924 SWIGINTERN PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj = 0;
24926 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24927 int arg2 ;
24928 int arg3 ;
24929 void *argp1 = 0 ;
24930 int res1 = 0 ;
24931 int val2 ;
24932 int ecode2 = 0 ;
24933 int val3 ;
24934 int ecode3 = 0 ;
24935 PyObject * obj0 = 0 ;
24936 PyObject * obj1 = 0 ;
24937 PyObject * obj2 = 0 ;
24938 char * kwnames[] = {
24939 (char *) "self",(char *) "rows",(char *) "cols", NULL
24940 };
24941
24942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24944 if (!SWIG_IsOK(res1)) {
24945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24946 }
24947 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24948 ecode2 = SWIG_AsVal_int(obj1, &val2);
24949 if (!SWIG_IsOK(ecode2)) {
24950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "2"" of type '" "int""'");
24951 }
24952 arg2 = static_cast< int >(val2);
24953 ecode3 = SWIG_AsVal_int(obj2, &val3);
24954 if (!SWIG_IsOK(ecode3)) {
24955 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_SetMaxRowsCols" "', expected argument " "3"" of type '" "int""'");
24956 }
24957 arg3 = static_cast< int >(val3);
24958 {
24959 PyThreadState* __tstate = wxPyBeginAllowThreads();
24960 (arg1)->SetMaxRowsCols(arg2,arg3);
24961 wxPyEndAllowThreads(__tstate);
24962 if (PyErr_Occurred()) SWIG_fail;
24963 }
24964 resultobj = SWIG_Py_Void();
24965 return resultobj;
24966 fail:
24967 return NULL;
24968 }
24969
24970
24971 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24972 PyObject *resultobj = 0;
24973 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
24974 int result;
24975 void *argp1 = 0 ;
24976 int res1 = 0 ;
24977 PyObject *swig_obj[1] ;
24978
24979 if (!args) SWIG_fail;
24980 swig_obj[0] = args;
24981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
24982 if (!SWIG_IsOK(res1)) {
24983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxRows" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
24984 }
24985 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
24986 {
24987 PyThreadState* __tstate = wxPyBeginAllowThreads();
24988 result = (int)(arg1)->GetMaxRows();
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_From_int(static_cast< int >(result));
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 SWIGINTERN PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25000 PyObject *resultobj = 0;
25001 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25002 int result;
25003 void *argp1 = 0 ;
25004 int res1 = 0 ;
25005 PyObject *swig_obj[1] ;
25006
25007 if (!args) SWIG_fail;
25008 swig_obj[0] = args;
25009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25010 if (!SWIG_IsOK(res1)) {
25011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetMaxCols" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25012 }
25013 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25014 {
25015 PyThreadState* __tstate = wxPyBeginAllowThreads();
25016 result = (int)(arg1)->GetMaxCols();
25017 wxPyEndAllowThreads(__tstate);
25018 if (PyErr_Occurred()) SWIG_fail;
25019 }
25020 resultobj = SWIG_From_int(static_cast< int >(result));
25021 return resultobj;
25022 fail:
25023 return NULL;
25024 }
25025
25026
25027 SWIGINTERN PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25030 wxSize *arg2 = 0 ;
25031 void *argp1 = 0 ;
25032 int res1 = 0 ;
25033 wxSize temp2 ;
25034 PyObject * obj0 = 0 ;
25035 PyObject * obj1 = 0 ;
25036 char * kwnames[] = {
25037 (char *) "self",(char *) "size", NULL
25038 };
25039
25040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) SWIG_fail;
25041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25042 if (!SWIG_IsOK(res1)) {
25043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_SetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25044 }
25045 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25046 {
25047 arg2 = &temp2;
25048 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
25049 }
25050 {
25051 PyThreadState* __tstate = wxPyBeginAllowThreads();
25052 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
25053 wxPyEndAllowThreads(__tstate);
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 resultobj = SWIG_Py_Void();
25057 return resultobj;
25058 fail:
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25064 PyObject *resultobj = 0;
25065 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25066 wxSize result;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 PyObject *swig_obj[1] ;
25070
25071 if (!args) SWIG_fail;
25072 swig_obj[0] = args;
25073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25074 if (!SWIG_IsOK(res1)) {
25075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolBitmapSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25076 }
25077 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25078 {
25079 PyThreadState* __tstate = wxPyBeginAllowThreads();
25080 result = (arg1)->GetToolBitmapSize();
25081 wxPyEndAllowThreads(__tstate);
25082 if (PyErr_Occurred()) SWIG_fail;
25083 }
25084 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25085 return resultobj;
25086 fail:
25087 return NULL;
25088 }
25089
25090
25091 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25092 PyObject *resultobj = 0;
25093 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25094 wxSize result;
25095 void *argp1 = 0 ;
25096 int res1 = 0 ;
25097 PyObject *swig_obj[1] ;
25098
25099 if (!args) SWIG_fail;
25100 swig_obj[0] = args;
25101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25102 if (!SWIG_IsOK(res1)) {
25103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolSize" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25104 }
25105 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25106 {
25107 PyThreadState* __tstate = wxPyBeginAllowThreads();
25108 result = (arg1)->GetToolSize();
25109 wxPyEndAllowThreads(__tstate);
25110 if (PyErr_Occurred()) SWIG_fail;
25111 }
25112 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
25113 return resultobj;
25114 fail:
25115 return NULL;
25116 }
25117
25118
25119 SWIGINTERN PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25120 PyObject *resultobj = 0;
25121 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25122 int arg2 ;
25123 int arg3 ;
25124 wxToolBarToolBase *result = 0 ;
25125 void *argp1 = 0 ;
25126 int res1 = 0 ;
25127 int val2 ;
25128 int ecode2 = 0 ;
25129 int val3 ;
25130 int ecode3 = 0 ;
25131 PyObject * obj0 = 0 ;
25132 PyObject * obj1 = 0 ;
25133 PyObject * obj2 = 0 ;
25134 char * kwnames[] = {
25135 (char *) "self",(char *) "x",(char *) "y", NULL
25136 };
25137
25138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25140 if (!SWIG_IsOK(res1)) {
25141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25142 }
25143 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25144 ecode2 = SWIG_AsVal_int(obj1, &val2);
25145 if (!SWIG_IsOK(ecode2)) {
25146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "2"" of type '" "int""'");
25147 }
25148 arg2 = static_cast< int >(val2);
25149 ecode3 = SWIG_AsVal_int(obj2, &val3);
25150 if (!SWIG_IsOK(ecode3)) {
25151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBarBase_FindToolForPosition" "', expected argument " "3"" of type '" "int""'");
25152 }
25153 arg3 = static_cast< int >(val3);
25154 {
25155 PyThreadState* __tstate = wxPyBeginAllowThreads();
25156 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
25157 wxPyEndAllowThreads(__tstate);
25158 if (PyErr_Occurred()) SWIG_fail;
25159 }
25160 {
25161 resultobj = wxPyMake_wxObject(result, (bool)0);
25162 }
25163 return resultobj;
25164 fail:
25165 return NULL;
25166 }
25167
25168
25169 SWIGINTERN PyObject *_wrap_ToolBarBase_FindById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25170 PyObject *resultobj = 0;
25171 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25172 int arg2 ;
25173 wxToolBarToolBase *result = 0 ;
25174 void *argp1 = 0 ;
25175 int res1 = 0 ;
25176 int val2 ;
25177 int ecode2 = 0 ;
25178 PyObject * obj0 = 0 ;
25179 PyObject * obj1 = 0 ;
25180 char * kwnames[] = {
25181 (char *) "self",(char *) "toolid", NULL
25182 };
25183
25184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) SWIG_fail;
25185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25186 if (!SWIG_IsOK(res1)) {
25187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_FindById" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25188 }
25189 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25190 ecode2 = SWIG_AsVal_int(obj1, &val2);
25191 if (!SWIG_IsOK(ecode2)) {
25192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ToolBarBase_FindById" "', expected argument " "2"" of type '" "int""'");
25193 }
25194 arg2 = static_cast< int >(val2);
25195 {
25196 PyThreadState* __tstate = wxPyBeginAllowThreads();
25197 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
25198 wxPyEndAllowThreads(__tstate);
25199 if (PyErr_Occurred()) SWIG_fail;
25200 }
25201 {
25202 resultobj = wxPyMake_wxObject(result, (bool)0);
25203 }
25204 return resultobj;
25205 fail:
25206 return NULL;
25207 }
25208
25209
25210 SWIGINTERN PyObject *_wrap_ToolBarBase_IsVertical(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25211 PyObject *resultobj = 0;
25212 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25213 bool result;
25214 void *argp1 = 0 ;
25215 int res1 = 0 ;
25216 PyObject *swig_obj[1] ;
25217
25218 if (!args) SWIG_fail;
25219 swig_obj[0] = args;
25220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25221 if (!SWIG_IsOK(res1)) {
25222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_IsVertical" "', expected argument " "1"" of type '" "wxToolBarBase *""'");
25223 }
25224 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25225 {
25226 PyThreadState* __tstate = wxPyBeginAllowThreads();
25227 result = (bool)(arg1)->IsVertical();
25228 wxPyEndAllowThreads(__tstate);
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 {
25232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25233 }
25234 return resultobj;
25235 fail:
25236 return NULL;
25237 }
25238
25239
25240 SWIGINTERN PyObject *_wrap_ToolBarBase_GetToolsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25241 PyObject *resultobj = 0;
25242 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
25243 size_t result;
25244 void *argp1 = 0 ;
25245 int res1 = 0 ;
25246 PyObject *swig_obj[1] ;
25247
25248 if (!args) SWIG_fail;
25249 swig_obj[0] = args;
25250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxToolBarBase, 0 | 0 );
25251 if (!SWIG_IsOK(res1)) {
25252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBarBase_GetToolsCount" "', expected argument " "1"" of type '" "wxToolBarBase const *""'");
25253 }
25254 arg1 = reinterpret_cast< wxToolBarBase * >(argp1);
25255 {
25256 PyThreadState* __tstate = wxPyBeginAllowThreads();
25257 result = (size_t)((wxToolBarBase const *)arg1)->GetToolsCount();
25258 wxPyEndAllowThreads(__tstate);
25259 if (PyErr_Occurred()) SWIG_fail;
25260 }
25261 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
25262 return resultobj;
25263 fail:
25264 return NULL;
25265 }
25266
25267
25268 SWIGINTERN PyObject *ToolBarBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25269 PyObject *obj;
25270 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25271 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBarBase, SWIG_NewClientData(obj));
25272 return SWIG_Py_Void();
25273 }
25274
25275 SWIGINTERN PyObject *_wrap_new_ToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25276 PyObject *resultobj = 0;
25277 wxWindow *arg1 = (wxWindow *) 0 ;
25278 int arg2 = (int) -1 ;
25279 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25280 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25281 wxSize const &arg4_defvalue = wxDefaultSize ;
25282 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25283 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25284 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
25285 wxString *arg6 = (wxString *) &arg6_defvalue ;
25286 wxToolBar *result = 0 ;
25287 void *argp1 = 0 ;
25288 int res1 = 0 ;
25289 int val2 ;
25290 int ecode2 = 0 ;
25291 wxPoint temp3 ;
25292 wxSize temp4 ;
25293 long val5 ;
25294 int ecode5 = 0 ;
25295 bool temp6 = false ;
25296 PyObject * obj0 = 0 ;
25297 PyObject * obj1 = 0 ;
25298 PyObject * obj2 = 0 ;
25299 PyObject * obj3 = 0 ;
25300 PyObject * obj4 = 0 ;
25301 PyObject * obj5 = 0 ;
25302 char * kwnames[] = {
25303 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25304 };
25305
25306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25308 if (!SWIG_IsOK(res1)) {
25309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ToolBar" "', expected argument " "1"" of type '" "wxWindow *""'");
25310 }
25311 arg1 = reinterpret_cast< wxWindow * >(argp1);
25312 if (obj1) {
25313 ecode2 = SWIG_AsVal_int(obj1, &val2);
25314 if (!SWIG_IsOK(ecode2)) {
25315 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ToolBar" "', expected argument " "2"" of type '" "int""'");
25316 }
25317 arg2 = static_cast< int >(val2);
25318 }
25319 if (obj2) {
25320 {
25321 arg3 = &temp3;
25322 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25323 }
25324 }
25325 if (obj3) {
25326 {
25327 arg4 = &temp4;
25328 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25329 }
25330 }
25331 if (obj4) {
25332 ecode5 = SWIG_AsVal_long(obj4, &val5);
25333 if (!SWIG_IsOK(ecode5)) {
25334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ToolBar" "', expected argument " "5"" of type '" "long""'");
25335 }
25336 arg5 = static_cast< long >(val5);
25337 }
25338 if (obj5) {
25339 {
25340 arg6 = wxString_in_helper(obj5);
25341 if (arg6 == NULL) SWIG_fail;
25342 temp6 = true;
25343 }
25344 }
25345 {
25346 if (!wxPyCheckForApp()) SWIG_fail;
25347 PyThreadState* __tstate = wxPyBeginAllowThreads();
25348 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
25349 wxPyEndAllowThreads(__tstate);
25350 if (PyErr_Occurred()) SWIG_fail;
25351 }
25352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_NEW | 0 );
25353 {
25354 if (temp6)
25355 delete arg6;
25356 }
25357 return resultobj;
25358 fail:
25359 {
25360 if (temp6)
25361 delete arg6;
25362 }
25363 return NULL;
25364 }
25365
25366
25367 SWIGINTERN PyObject *_wrap_new_PreToolBar(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25368 PyObject *resultobj = 0;
25369 wxToolBar *result = 0 ;
25370
25371 if (!SWIG_Python_UnpackTuple(args,"new_PreToolBar",0,0,0)) SWIG_fail;
25372 {
25373 if (!wxPyCheckForApp()) SWIG_fail;
25374 PyThreadState* __tstate = wxPyBeginAllowThreads();
25375 result = (wxToolBar *)new wxToolBar();
25376 wxPyEndAllowThreads(__tstate);
25377 if (PyErr_Occurred()) SWIG_fail;
25378 }
25379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxToolBar, SWIG_POINTER_OWN | 0 );
25380 return resultobj;
25381 fail:
25382 return NULL;
25383 }
25384
25385
25386 SWIGINTERN PyObject *_wrap_ToolBar_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25387 PyObject *resultobj = 0;
25388 wxToolBar *arg1 = (wxToolBar *) 0 ;
25389 wxWindow *arg2 = (wxWindow *) 0 ;
25390 int arg3 = (int) -1 ;
25391 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25392 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25393 wxSize const &arg5_defvalue = wxDefaultSize ;
25394 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25395 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
25396 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
25397 wxString *arg7 = (wxString *) &arg7_defvalue ;
25398 bool result;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 void *argp2 = 0 ;
25402 int res2 = 0 ;
25403 int val3 ;
25404 int ecode3 = 0 ;
25405 wxPoint temp4 ;
25406 wxSize temp5 ;
25407 long val6 ;
25408 int ecode6 = 0 ;
25409 bool temp7 = false ;
25410 PyObject * obj0 = 0 ;
25411 PyObject * obj1 = 0 ;
25412 PyObject * obj2 = 0 ;
25413 PyObject * obj3 = 0 ;
25414 PyObject * obj4 = 0 ;
25415 PyObject * obj5 = 0 ;
25416 PyObject * obj6 = 0 ;
25417 char * kwnames[] = {
25418 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
25419 };
25420
25421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxToolBar, 0 | 0 );
25423 if (!SWIG_IsOK(res1)) {
25424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ToolBar_Create" "', expected argument " "1"" of type '" "wxToolBar *""'");
25425 }
25426 arg1 = reinterpret_cast< wxToolBar * >(argp1);
25427 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25428 if (!SWIG_IsOK(res2)) {
25429 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ToolBar_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
25430 }
25431 arg2 = reinterpret_cast< wxWindow * >(argp2);
25432 if (obj2) {
25433 ecode3 = SWIG_AsVal_int(obj2, &val3);
25434 if (!SWIG_IsOK(ecode3)) {
25435 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ToolBar_Create" "', expected argument " "3"" of type '" "int""'");
25436 }
25437 arg3 = static_cast< int >(val3);
25438 }
25439 if (obj3) {
25440 {
25441 arg4 = &temp4;
25442 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25443 }
25444 }
25445 if (obj4) {
25446 {
25447 arg5 = &temp5;
25448 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25449 }
25450 }
25451 if (obj5) {
25452 ecode6 = SWIG_AsVal_long(obj5, &val6);
25453 if (!SWIG_IsOK(ecode6)) {
25454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ToolBar_Create" "', expected argument " "6"" of type '" "long""'");
25455 }
25456 arg6 = static_cast< long >(val6);
25457 }
25458 if (obj6) {
25459 {
25460 arg7 = wxString_in_helper(obj6);
25461 if (arg7 == NULL) SWIG_fail;
25462 temp7 = true;
25463 }
25464 }
25465 {
25466 PyThreadState* __tstate = wxPyBeginAllowThreads();
25467 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
25468 wxPyEndAllowThreads(__tstate);
25469 if (PyErr_Occurred()) SWIG_fail;
25470 }
25471 {
25472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25473 }
25474 {
25475 if (temp7)
25476 delete arg7;
25477 }
25478 return resultobj;
25479 fail:
25480 {
25481 if (temp7)
25482 delete arg7;
25483 }
25484 return NULL;
25485 }
25486
25487
25488 SWIGINTERN PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25489 PyObject *resultobj = 0;
25490 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
25491 SwigValueWrapper<wxVisualAttributes > result;
25492 int val1 ;
25493 int ecode1 = 0 ;
25494 PyObject * obj0 = 0 ;
25495 char * kwnames[] = {
25496 (char *) "variant", NULL
25497 };
25498
25499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
25500 if (obj0) {
25501 ecode1 = SWIG_AsVal_int(obj0, &val1);
25502 if (!SWIG_IsOK(ecode1)) {
25503 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ToolBar_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
25504 }
25505 arg1 = static_cast< wxWindowVariant >(val1);
25506 }
25507 {
25508 if (!wxPyCheckForApp()) SWIG_fail;
25509 PyThreadState* __tstate = wxPyBeginAllowThreads();
25510 result = wxToolBar::GetClassDefaultAttributes(arg1);
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
25515 return resultobj;
25516 fail:
25517 return NULL;
25518 }
25519
25520
25521 SWIGINTERN PyObject *ToolBar_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25522 PyObject *obj;
25523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25524 SWIG_TypeNewClientData(SWIGTYPE_p_wxToolBar, SWIG_NewClientData(obj));
25525 return SWIG_Py_Void();
25526 }
25527
25528 SWIGINTERN PyObject *ToolBar_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25529 return SWIG_Python_InitShadowInstance(args);
25530 }
25531
25532 SWIGINTERN int ListCtrlNameStr_set(PyObject *) {
25533 SWIG_Error(SWIG_AttributeError,"Variable ListCtrlNameStr is read-only.");
25534 return 1;
25535 }
25536
25537
25538 SWIGINTERN PyObject *ListCtrlNameStr_get(void) {
25539 PyObject *pyobj = 0;
25540
25541 {
25542 #if wxUSE_UNICODE
25543 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25544 #else
25545 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
25546 #endif
25547 }
25548 return pyobj;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_new_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxColour const &arg1_defvalue = wxNullColour ;
25555 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
25556 wxColour const &arg2_defvalue = wxNullColour ;
25557 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
25558 wxFont const &arg3_defvalue = wxNullFont ;
25559 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
25560 wxListItemAttr *result = 0 ;
25561 wxColour temp1 ;
25562 wxColour temp2 ;
25563 void *argp3 = 0 ;
25564 int res3 = 0 ;
25565 PyObject * obj0 = 0 ;
25566 PyObject * obj1 = 0 ;
25567 PyObject * obj2 = 0 ;
25568 char * kwnames[] = {
25569 (char *) "colText",(char *) "colBack",(char *) "font", NULL
25570 };
25571
25572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25573 if (obj0) {
25574 {
25575 arg1 = &temp1;
25576 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
25577 }
25578 }
25579 if (obj1) {
25580 {
25581 arg2 = &temp2;
25582 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25583 }
25584 }
25585 if (obj2) {
25586 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
25587 if (!SWIG_IsOK(res3)) {
25588 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25589 }
25590 if (!argp3) {
25591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListItemAttr" "', expected argument " "3"" of type '" "wxFont const &""'");
25592 }
25593 arg3 = reinterpret_cast< wxFont * >(argp3);
25594 }
25595 {
25596 PyThreadState* __tstate = wxPyBeginAllowThreads();
25597 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
25598 wxPyEndAllowThreads(__tstate);
25599 if (PyErr_Occurred()) SWIG_fail;
25600 }
25601 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_NEW | 0 );
25602 return resultobj;
25603 fail:
25604 return NULL;
25605 }
25606
25607
25608 SWIGINTERN PyObject *_wrap_delete_ListItemAttr(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25609 PyObject *resultobj = 0;
25610 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25611 void *argp1 = 0 ;
25612 int res1 = 0 ;
25613 PyObject *swig_obj[1] ;
25614
25615 if (!args) SWIG_fail;
25616 swig_obj[0] = args;
25617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, SWIG_POINTER_DISOWN | 0 );
25618 if (!SWIG_IsOK(res1)) {
25619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItemAttr" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25620 }
25621 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25622 {
25623 PyThreadState* __tstate = wxPyBeginAllowThreads();
25624 delete arg1;
25625
25626 wxPyEndAllowThreads(__tstate);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_Py_Void();
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 SWIGINTERN PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj = 0;
25638 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25639 wxColour *arg2 = 0 ;
25640 void *argp1 = 0 ;
25641 int res1 = 0 ;
25642 wxColour temp2 ;
25643 PyObject * obj0 = 0 ;
25644 PyObject * obj1 = 0 ;
25645 char * kwnames[] = {
25646 (char *) "self",(char *) "colText", NULL
25647 };
25648
25649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
25650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25651 if (!SWIG_IsOK(res1)) {
25652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25653 }
25654 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25655 {
25656 arg2 = &temp2;
25657 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25658 }
25659 {
25660 PyThreadState* __tstate = wxPyBeginAllowThreads();
25661 (arg1)->SetTextColour((wxColour const &)*arg2);
25662 wxPyEndAllowThreads(__tstate);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 resultobj = SWIG_Py_Void();
25666 return resultobj;
25667 fail:
25668 return NULL;
25669 }
25670
25671
25672 SWIGINTERN PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj = 0;
25674 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25675 wxColour *arg2 = 0 ;
25676 void *argp1 = 0 ;
25677 int res1 = 0 ;
25678 wxColour temp2 ;
25679 PyObject * obj0 = 0 ;
25680 PyObject * obj1 = 0 ;
25681 char * kwnames[] = {
25682 (char *) "self",(char *) "colBack", NULL
25683 };
25684
25685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
25686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25687 if (!SWIG_IsOK(res1)) {
25688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25689 }
25690 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25691 {
25692 arg2 = &temp2;
25693 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25694 }
25695 {
25696 PyThreadState* __tstate = wxPyBeginAllowThreads();
25697 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_Py_Void();
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_ListItemAttr_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj = 0;
25710 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25711 wxFont *arg2 = 0 ;
25712 void *argp1 = 0 ;
25713 int res1 = 0 ;
25714 void *argp2 = 0 ;
25715 int res2 = 0 ;
25716 PyObject * obj0 = 0 ;
25717 PyObject * obj1 = 0 ;
25718 char * kwnames[] = {
25719 (char *) "self",(char *) "font", NULL
25720 };
25721
25722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25724 if (!SWIG_IsOK(res1)) {
25725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_SetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25726 }
25727 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25728 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25729 if (!SWIG_IsOK(res2)) {
25730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25731 }
25732 if (!argp2) {
25733 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25734 }
25735 arg2 = reinterpret_cast< wxFont * >(argp2);
25736 {
25737 PyThreadState* __tstate = wxPyBeginAllowThreads();
25738 (arg1)->SetFont((wxFont const &)*arg2);
25739 wxPyEndAllowThreads(__tstate);
25740 if (PyErr_Occurred()) SWIG_fail;
25741 }
25742 resultobj = SWIG_Py_Void();
25743 return resultobj;
25744 fail:
25745 return NULL;
25746 }
25747
25748
25749 SWIGINTERN PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25750 PyObject *resultobj = 0;
25751 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25752 bool result;
25753 void *argp1 = 0 ;
25754 int res1 = 0 ;
25755 PyObject *swig_obj[1] ;
25756
25757 if (!args) SWIG_fail;
25758 swig_obj[0] = args;
25759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25760 if (!SWIG_IsOK(res1)) {
25761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25762 }
25763 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25764 {
25765 PyThreadState* __tstate = wxPyBeginAllowThreads();
25766 result = (bool)(arg1)->HasTextColour();
25767 wxPyEndAllowThreads(__tstate);
25768 if (PyErr_Occurred()) SWIG_fail;
25769 }
25770 {
25771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25772 }
25773 return resultobj;
25774 fail:
25775 return NULL;
25776 }
25777
25778
25779 SWIGINTERN PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25780 PyObject *resultobj = 0;
25781 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25782 bool result;
25783 void *argp1 = 0 ;
25784 int res1 = 0 ;
25785 PyObject *swig_obj[1] ;
25786
25787 if (!args) SWIG_fail;
25788 swig_obj[0] = args;
25789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25790 if (!SWIG_IsOK(res1)) {
25791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25792 }
25793 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25794 {
25795 PyThreadState* __tstate = wxPyBeginAllowThreads();
25796 result = (bool)(arg1)->HasBackgroundColour();
25797 wxPyEndAllowThreads(__tstate);
25798 if (PyErr_Occurred()) SWIG_fail;
25799 }
25800 {
25801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25802 }
25803 return resultobj;
25804 fail:
25805 return NULL;
25806 }
25807
25808
25809 SWIGINTERN PyObject *_wrap_ListItemAttr_HasFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25810 PyObject *resultobj = 0;
25811 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25812 bool result;
25813 void *argp1 = 0 ;
25814 int res1 = 0 ;
25815 PyObject *swig_obj[1] ;
25816
25817 if (!args) SWIG_fail;
25818 swig_obj[0] = args;
25819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25820 if (!SWIG_IsOK(res1)) {
25821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_HasFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25822 }
25823 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25824 {
25825 PyThreadState* __tstate = wxPyBeginAllowThreads();
25826 result = (bool)(arg1)->HasFont();
25827 wxPyEndAllowThreads(__tstate);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 {
25831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25832 }
25833 return resultobj;
25834 fail:
25835 return NULL;
25836 }
25837
25838
25839 SWIGINTERN PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25840 PyObject *resultobj = 0;
25841 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25842 wxColour result;
25843 void *argp1 = 0 ;
25844 int res1 = 0 ;
25845 PyObject *swig_obj[1] ;
25846
25847 if (!args) SWIG_fail;
25848 swig_obj[0] = args;
25849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25850 if (!SWIG_IsOK(res1)) {
25851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetTextColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25852 }
25853 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25854 {
25855 PyThreadState* __tstate = wxPyBeginAllowThreads();
25856 result = (arg1)->GetTextColour();
25857 wxPyEndAllowThreads(__tstate);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25861 return resultobj;
25862 fail:
25863 return NULL;
25864 }
25865
25866
25867 SWIGINTERN PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25868 PyObject *resultobj = 0;
25869 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25870 wxColour result;
25871 void *argp1 = 0 ;
25872 int res1 = 0 ;
25873 PyObject *swig_obj[1] ;
25874
25875 if (!args) SWIG_fail;
25876 swig_obj[0] = args;
25877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25878 if (!SWIG_IsOK(res1)) {
25879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25880 }
25881 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25882 {
25883 PyThreadState* __tstate = wxPyBeginAllowThreads();
25884 result = (arg1)->GetBackgroundColour();
25885 wxPyEndAllowThreads(__tstate);
25886 if (PyErr_Occurred()) SWIG_fail;
25887 }
25888 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25889 return resultobj;
25890 fail:
25891 return NULL;
25892 }
25893
25894
25895 SWIGINTERN PyObject *_wrap_ListItemAttr_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25896 PyObject *resultobj = 0;
25897 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25898 wxFont result;
25899 void *argp1 = 0 ;
25900 int res1 = 0 ;
25901 PyObject *swig_obj[1] ;
25902
25903 if (!args) SWIG_fail;
25904 swig_obj[0] = args;
25905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25906 if (!SWIG_IsOK(res1)) {
25907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_GetFont" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25908 }
25909 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25910 {
25911 PyThreadState* __tstate = wxPyBeginAllowThreads();
25912 result = (arg1)->GetFont();
25913 wxPyEndAllowThreads(__tstate);
25914 if (PyErr_Occurred()) SWIG_fail;
25915 }
25916 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
25917 return resultobj;
25918 fail:
25919 return NULL;
25920 }
25921
25922
25923 SWIGINTERN PyObject *_wrap_ListItemAttr_AssignFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25924 PyObject *resultobj = 0;
25925 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25926 wxListItemAttr *arg2 = 0 ;
25927 void *argp1 = 0 ;
25928 int res1 = 0 ;
25929 void *argp2 = 0 ;
25930 int res2 = 0 ;
25931 PyObject * obj0 = 0 ;
25932 PyObject * obj1 = 0 ;
25933 char * kwnames[] = {
25934 (char *) "self",(char *) "source", NULL
25935 };
25936
25937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_AssignFrom",kwnames,&obj0,&obj1)) SWIG_fail;
25938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25939 if (!SWIG_IsOK(res1)) {
25940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25941 }
25942 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25943 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItemAttr, 0 | 0);
25944 if (!SWIG_IsOK(res2)) {
25945 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25946 }
25947 if (!argp2) {
25948 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItemAttr_AssignFrom" "', expected argument " "2"" of type '" "wxListItemAttr const &""'");
25949 }
25950 arg2 = reinterpret_cast< wxListItemAttr * >(argp2);
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 (arg1)->AssignFrom((wxListItemAttr const &)*arg2);
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 resultobj = SWIG_Py_Void();
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 SWIGINTERN PyObject *_wrap_ListItemAttr_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25965 PyObject *resultobj = 0;
25966 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
25967 void *argp1 = 0 ;
25968 int res1 = 0 ;
25969 PyObject *swig_obj[1] ;
25970
25971 if (!args) SWIG_fail;
25972 swig_obj[0] = args;
25973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItemAttr, 0 | 0 );
25974 if (!SWIG_IsOK(res1)) {
25975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItemAttr_Destroy" "', expected argument " "1"" of type '" "wxListItemAttr *""'");
25976 }
25977 arg1 = reinterpret_cast< wxListItemAttr * >(argp1);
25978 {
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 wxListItemAttr_Destroy(arg1);
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 resultobj = SWIG_Py_Void();
25985 return resultobj;
25986 fail:
25987 return NULL;
25988 }
25989
25990
25991 SWIGINTERN PyObject *ListItemAttr_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25992 PyObject *obj;
25993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25994 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItemAttr, SWIG_NewClientData(obj));
25995 return SWIG_Py_Void();
25996 }
25997
25998 SWIGINTERN PyObject *ListItemAttr_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25999 return SWIG_Python_InitShadowInstance(args);
26000 }
26001
26002 SWIGINTERN PyObject *_wrap_new_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26003 PyObject *resultobj = 0;
26004 wxListItem *result = 0 ;
26005
26006 if (!SWIG_Python_UnpackTuple(args,"new_ListItem",0,0,0)) SWIG_fail;
26007 {
26008 PyThreadState* __tstate = wxPyBeginAllowThreads();
26009 result = (wxListItem *)new wxListItem();
26010 wxPyEndAllowThreads(__tstate);
26011 if (PyErr_Occurred()) SWIG_fail;
26012 }
26013 {
26014 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
26015 }
26016 return resultobj;
26017 fail:
26018 return NULL;
26019 }
26020
26021
26022 SWIGINTERN PyObject *_wrap_delete_ListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26023 PyObject *resultobj = 0;
26024 wxListItem *arg1 = (wxListItem *) 0 ;
26025 void *argp1 = 0 ;
26026 int res1 = 0 ;
26027 PyObject *swig_obj[1] ;
26028
26029 if (!args) SWIG_fail;
26030 swig_obj[0] = args;
26031 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, SWIG_POINTER_DISOWN | 0 );
26032 if (!SWIG_IsOK(res1)) {
26033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ListItem" "', expected argument " "1"" of type '" "wxListItem *""'");
26034 }
26035 arg1 = reinterpret_cast< wxListItem * >(argp1);
26036 {
26037 PyThreadState* __tstate = wxPyBeginAllowThreads();
26038 delete arg1;
26039
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 resultobj = SWIG_Py_Void();
26044 return resultobj;
26045 fail:
26046 return NULL;
26047 }
26048
26049
26050 SWIGINTERN PyObject *_wrap_ListItem_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26051 PyObject *resultobj = 0;
26052 wxListItem *arg1 = (wxListItem *) 0 ;
26053 void *argp1 = 0 ;
26054 int res1 = 0 ;
26055 PyObject *swig_obj[1] ;
26056
26057 if (!args) SWIG_fail;
26058 swig_obj[0] = args;
26059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26060 if (!SWIG_IsOK(res1)) {
26061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_Clear" "', expected argument " "1"" of type '" "wxListItem *""'");
26062 }
26063 arg1 = reinterpret_cast< wxListItem * >(argp1);
26064 {
26065 PyThreadState* __tstate = wxPyBeginAllowThreads();
26066 (arg1)->Clear();
26067 wxPyEndAllowThreads(__tstate);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 }
26070 resultobj = SWIG_Py_Void();
26071 return resultobj;
26072 fail:
26073 return NULL;
26074 }
26075
26076
26077 SWIGINTERN PyObject *_wrap_ListItem_ClearAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26078 PyObject *resultobj = 0;
26079 wxListItem *arg1 = (wxListItem *) 0 ;
26080 void *argp1 = 0 ;
26081 int res1 = 0 ;
26082 PyObject *swig_obj[1] ;
26083
26084 if (!args) SWIG_fail;
26085 swig_obj[0] = args;
26086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26087 if (!SWIG_IsOK(res1)) {
26088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_ClearAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26089 }
26090 arg1 = reinterpret_cast< wxListItem * >(argp1);
26091 {
26092 PyThreadState* __tstate = wxPyBeginAllowThreads();
26093 (arg1)->ClearAttributes();
26094 wxPyEndAllowThreads(__tstate);
26095 if (PyErr_Occurred()) SWIG_fail;
26096 }
26097 resultobj = SWIG_Py_Void();
26098 return resultobj;
26099 fail:
26100 return NULL;
26101 }
26102
26103
26104 SWIGINTERN PyObject *_wrap_ListItem_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26105 PyObject *resultobj = 0;
26106 wxListItem *arg1 = (wxListItem *) 0 ;
26107 long arg2 ;
26108 void *argp1 = 0 ;
26109 int res1 = 0 ;
26110 long val2 ;
26111 int ecode2 = 0 ;
26112 PyObject * obj0 = 0 ;
26113 PyObject * obj1 = 0 ;
26114 char * kwnames[] = {
26115 (char *) "self",(char *) "mask", NULL
26116 };
26117
26118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
26119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26120 if (!SWIG_IsOK(res1)) {
26121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26122 }
26123 arg1 = reinterpret_cast< wxListItem * >(argp1);
26124 ecode2 = SWIG_AsVal_long(obj1, &val2);
26125 if (!SWIG_IsOK(ecode2)) {
26126 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetMask" "', expected argument " "2"" of type '" "long""'");
26127 }
26128 arg2 = static_cast< long >(val2);
26129 {
26130 PyThreadState* __tstate = wxPyBeginAllowThreads();
26131 (arg1)->SetMask(arg2);
26132 wxPyEndAllowThreads(__tstate);
26133 if (PyErr_Occurred()) SWIG_fail;
26134 }
26135 resultobj = SWIG_Py_Void();
26136 return resultobj;
26137 fail:
26138 return NULL;
26139 }
26140
26141
26142 SWIGINTERN PyObject *_wrap_ListItem_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26143 PyObject *resultobj = 0;
26144 wxListItem *arg1 = (wxListItem *) 0 ;
26145 long arg2 ;
26146 void *argp1 = 0 ;
26147 int res1 = 0 ;
26148 long val2 ;
26149 int ecode2 = 0 ;
26150 PyObject * obj0 = 0 ;
26151 PyObject * obj1 = 0 ;
26152 char * kwnames[] = {
26153 (char *) "self",(char *) "id", NULL
26154 };
26155
26156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26158 if (!SWIG_IsOK(res1)) {
26159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26160 }
26161 arg1 = reinterpret_cast< wxListItem * >(argp1);
26162 ecode2 = SWIG_AsVal_long(obj1, &val2);
26163 if (!SWIG_IsOK(ecode2)) {
26164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetId" "', expected argument " "2"" of type '" "long""'");
26165 }
26166 arg2 = static_cast< long >(val2);
26167 {
26168 PyThreadState* __tstate = wxPyBeginAllowThreads();
26169 (arg1)->SetId(arg2);
26170 wxPyEndAllowThreads(__tstate);
26171 if (PyErr_Occurred()) SWIG_fail;
26172 }
26173 resultobj = SWIG_Py_Void();
26174 return resultobj;
26175 fail:
26176 return NULL;
26177 }
26178
26179
26180 SWIGINTERN PyObject *_wrap_ListItem_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26181 PyObject *resultobj = 0;
26182 wxListItem *arg1 = (wxListItem *) 0 ;
26183 int arg2 ;
26184 void *argp1 = 0 ;
26185 int res1 = 0 ;
26186 int val2 ;
26187 int ecode2 = 0 ;
26188 PyObject * obj0 = 0 ;
26189 PyObject * obj1 = 0 ;
26190 char * kwnames[] = {
26191 (char *) "self",(char *) "col", NULL
26192 };
26193
26194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
26195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26196 if (!SWIG_IsOK(res1)) {
26197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26198 }
26199 arg1 = reinterpret_cast< wxListItem * >(argp1);
26200 ecode2 = SWIG_AsVal_int(obj1, &val2);
26201 if (!SWIG_IsOK(ecode2)) {
26202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetColumn" "', expected argument " "2"" of type '" "int""'");
26203 }
26204 arg2 = static_cast< int >(val2);
26205 {
26206 PyThreadState* __tstate = wxPyBeginAllowThreads();
26207 (arg1)->SetColumn(arg2);
26208 wxPyEndAllowThreads(__tstate);
26209 if (PyErr_Occurred()) SWIG_fail;
26210 }
26211 resultobj = SWIG_Py_Void();
26212 return resultobj;
26213 fail:
26214 return NULL;
26215 }
26216
26217
26218 SWIGINTERN PyObject *_wrap_ListItem_SetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26219 PyObject *resultobj = 0;
26220 wxListItem *arg1 = (wxListItem *) 0 ;
26221 long arg2 ;
26222 void *argp1 = 0 ;
26223 int res1 = 0 ;
26224 long val2 ;
26225 int ecode2 = 0 ;
26226 PyObject * obj0 = 0 ;
26227 PyObject * obj1 = 0 ;
26228 char * kwnames[] = {
26229 (char *) "self",(char *) "state", NULL
26230 };
26231
26232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) SWIG_fail;
26233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26234 if (!SWIG_IsOK(res1)) {
26235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26236 }
26237 arg1 = reinterpret_cast< wxListItem * >(argp1);
26238 ecode2 = SWIG_AsVal_long(obj1, &val2);
26239 if (!SWIG_IsOK(ecode2)) {
26240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetState" "', expected argument " "2"" of type '" "long""'");
26241 }
26242 arg2 = static_cast< long >(val2);
26243 {
26244 PyThreadState* __tstate = wxPyBeginAllowThreads();
26245 (arg1)->SetState(arg2);
26246 wxPyEndAllowThreads(__tstate);
26247 if (PyErr_Occurred()) SWIG_fail;
26248 }
26249 resultobj = SWIG_Py_Void();
26250 return resultobj;
26251 fail:
26252 return NULL;
26253 }
26254
26255
26256 SWIGINTERN PyObject *_wrap_ListItem_SetStateMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26257 PyObject *resultobj = 0;
26258 wxListItem *arg1 = (wxListItem *) 0 ;
26259 long arg2 ;
26260 void *argp1 = 0 ;
26261 int res1 = 0 ;
26262 long val2 ;
26263 int ecode2 = 0 ;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 char * kwnames[] = {
26267 (char *) "self",(char *) "stateMask", NULL
26268 };
26269
26270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) SWIG_fail;
26271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26272 if (!SWIG_IsOK(res1)) {
26273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetStateMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26274 }
26275 arg1 = reinterpret_cast< wxListItem * >(argp1);
26276 ecode2 = SWIG_AsVal_long(obj1, &val2);
26277 if (!SWIG_IsOK(ecode2)) {
26278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetStateMask" "', expected argument " "2"" of type '" "long""'");
26279 }
26280 arg2 = static_cast< long >(val2);
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 (arg1)->SetStateMask(arg2);
26284 wxPyEndAllowThreads(__tstate);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 }
26287 resultobj = SWIG_Py_Void();
26288 return resultobj;
26289 fail:
26290 return NULL;
26291 }
26292
26293
26294 SWIGINTERN PyObject *_wrap_ListItem_SetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26295 PyObject *resultobj = 0;
26296 wxListItem *arg1 = (wxListItem *) 0 ;
26297 wxString *arg2 = 0 ;
26298 void *argp1 = 0 ;
26299 int res1 = 0 ;
26300 bool temp2 = false ;
26301 PyObject * obj0 = 0 ;
26302 PyObject * obj1 = 0 ;
26303 char * kwnames[] = {
26304 (char *) "self",(char *) "text", NULL
26305 };
26306
26307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) SWIG_fail;
26308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26309 if (!SWIG_IsOK(res1)) {
26310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26311 }
26312 arg1 = reinterpret_cast< wxListItem * >(argp1);
26313 {
26314 arg2 = wxString_in_helper(obj1);
26315 if (arg2 == NULL) SWIG_fail;
26316 temp2 = true;
26317 }
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 (arg1)->SetText((wxString const &)*arg2);
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 resultobj = SWIG_Py_Void();
26325 {
26326 if (temp2)
26327 delete arg2;
26328 }
26329 return resultobj;
26330 fail:
26331 {
26332 if (temp2)
26333 delete arg2;
26334 }
26335 return NULL;
26336 }
26337
26338
26339 SWIGINTERN PyObject *_wrap_ListItem_SetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26340 PyObject *resultobj = 0;
26341 wxListItem *arg1 = (wxListItem *) 0 ;
26342 int arg2 ;
26343 void *argp1 = 0 ;
26344 int res1 = 0 ;
26345 int val2 ;
26346 int ecode2 = 0 ;
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 char * kwnames[] = {
26350 (char *) "self",(char *) "image", NULL
26351 };
26352
26353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) SWIG_fail;
26354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26355 if (!SWIG_IsOK(res1)) {
26356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26357 }
26358 arg1 = reinterpret_cast< wxListItem * >(argp1);
26359 ecode2 = SWIG_AsVal_int(obj1, &val2);
26360 if (!SWIG_IsOK(ecode2)) {
26361 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetImage" "', expected argument " "2"" of type '" "int""'");
26362 }
26363 arg2 = static_cast< int >(val2);
26364 {
26365 PyThreadState* __tstate = wxPyBeginAllowThreads();
26366 (arg1)->SetImage(arg2);
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = SWIG_Py_Void();
26371 return resultobj;
26372 fail:
26373 return NULL;
26374 }
26375
26376
26377 SWIGINTERN PyObject *_wrap_ListItem_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26378 PyObject *resultobj = 0;
26379 wxListItem *arg1 = (wxListItem *) 0 ;
26380 long arg2 ;
26381 void *argp1 = 0 ;
26382 int res1 = 0 ;
26383 long val2 ;
26384 int ecode2 = 0 ;
26385 PyObject * obj0 = 0 ;
26386 PyObject * obj1 = 0 ;
26387 char * kwnames[] = {
26388 (char *) "self",(char *) "data", NULL
26389 };
26390
26391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
26392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26395 }
26396 arg1 = reinterpret_cast< wxListItem * >(argp1);
26397 ecode2 = SWIG_AsVal_long(obj1, &val2);
26398 if (!SWIG_IsOK(ecode2)) {
26399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetData" "', expected argument " "2"" of type '" "long""'");
26400 }
26401 arg2 = static_cast< long >(val2);
26402 {
26403 PyThreadState* __tstate = wxPyBeginAllowThreads();
26404 (arg1)->SetData(arg2);
26405 wxPyEndAllowThreads(__tstate);
26406 if (PyErr_Occurred()) SWIG_fail;
26407 }
26408 resultobj = SWIG_Py_Void();
26409 return resultobj;
26410 fail:
26411 return NULL;
26412 }
26413
26414
26415 SWIGINTERN PyObject *_wrap_ListItem_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26416 PyObject *resultobj = 0;
26417 wxListItem *arg1 = (wxListItem *) 0 ;
26418 int arg2 ;
26419 void *argp1 = 0 ;
26420 int res1 = 0 ;
26421 int val2 ;
26422 int ecode2 = 0 ;
26423 PyObject * obj0 = 0 ;
26424 PyObject * obj1 = 0 ;
26425 char * kwnames[] = {
26426 (char *) "self",(char *) "width", NULL
26427 };
26428
26429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
26430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26431 if (!SWIG_IsOK(res1)) {
26432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26433 }
26434 arg1 = reinterpret_cast< wxListItem * >(argp1);
26435 ecode2 = SWIG_AsVal_int(obj1, &val2);
26436 if (!SWIG_IsOK(ecode2)) {
26437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetWidth" "', expected argument " "2"" of type '" "int""'");
26438 }
26439 arg2 = static_cast< int >(val2);
26440 {
26441 PyThreadState* __tstate = wxPyBeginAllowThreads();
26442 (arg1)->SetWidth(arg2);
26443 wxPyEndAllowThreads(__tstate);
26444 if (PyErr_Occurred()) SWIG_fail;
26445 }
26446 resultobj = SWIG_Py_Void();
26447 return resultobj;
26448 fail:
26449 return NULL;
26450 }
26451
26452
26453 SWIGINTERN PyObject *_wrap_ListItem_SetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26454 PyObject *resultobj = 0;
26455 wxListItem *arg1 = (wxListItem *) 0 ;
26456 wxListColumnFormat arg2 ;
26457 void *argp1 = 0 ;
26458 int res1 = 0 ;
26459 int val2 ;
26460 int ecode2 = 0 ;
26461 PyObject * obj0 = 0 ;
26462 PyObject * obj1 = 0 ;
26463 char * kwnames[] = {
26464 (char *) "self",(char *) "align", NULL
26465 };
26466
26467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) SWIG_fail;
26468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26469 if (!SWIG_IsOK(res1)) {
26470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26471 }
26472 arg1 = reinterpret_cast< wxListItem * >(argp1);
26473 ecode2 = SWIG_AsVal_int(obj1, &val2);
26474 if (!SWIG_IsOK(ecode2)) {
26475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_SetAlign" "', expected argument " "2"" of type '" "wxListColumnFormat""'");
26476 }
26477 arg2 = static_cast< wxListColumnFormat >(val2);
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 (arg1)->SetAlign(arg2);
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_Py_Void();
26485 return resultobj;
26486 fail:
26487 return NULL;
26488 }
26489
26490
26491 SWIGINTERN PyObject *_wrap_ListItem_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26492 PyObject *resultobj = 0;
26493 wxListItem *arg1 = (wxListItem *) 0 ;
26494 wxColour *arg2 = 0 ;
26495 void *argp1 = 0 ;
26496 int res1 = 0 ;
26497 wxColour temp2 ;
26498 PyObject * obj0 = 0 ;
26499 PyObject * obj1 = 0 ;
26500 char * kwnames[] = {
26501 (char *) "self",(char *) "colText", NULL
26502 };
26503
26504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
26505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26506 if (!SWIG_IsOK(res1)) {
26507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetTextColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26508 }
26509 arg1 = reinterpret_cast< wxListItem * >(argp1);
26510 {
26511 arg2 = &temp2;
26512 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26513 }
26514 {
26515 PyThreadState* __tstate = wxPyBeginAllowThreads();
26516 (arg1)->SetTextColour((wxColour const &)*arg2);
26517 wxPyEndAllowThreads(__tstate);
26518 if (PyErr_Occurred()) SWIG_fail;
26519 }
26520 resultobj = SWIG_Py_Void();
26521 return resultobj;
26522 fail:
26523 return NULL;
26524 }
26525
26526
26527 SWIGINTERN PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26528 PyObject *resultobj = 0;
26529 wxListItem *arg1 = (wxListItem *) 0 ;
26530 wxColour *arg2 = 0 ;
26531 void *argp1 = 0 ;
26532 int res1 = 0 ;
26533 wxColour temp2 ;
26534 PyObject * obj0 = 0 ;
26535 PyObject * obj1 = 0 ;
26536 char * kwnames[] = {
26537 (char *) "self",(char *) "colBack", NULL
26538 };
26539
26540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
26541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26542 if (!SWIG_IsOK(res1)) {
26543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_SetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem *""'");
26544 }
26545 arg1 = reinterpret_cast< wxListItem * >(argp1);
26546 {
26547 arg2 = &temp2;
26548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26549 }
26550 {
26551 PyThreadState* __tstate = wxPyBeginAllowThreads();
26552 (arg1)->SetBackgroundColour((wxColour const &)*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_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26564 PyObject *resultobj = 0;
26565 wxListItem *arg1 = (wxListItem *) 0 ;
26566 wxFont *arg2 = 0 ;
26567 void *argp1 = 0 ;
26568 int res1 = 0 ;
26569 void *argp2 = 0 ;
26570 int res2 = 0 ;
26571 PyObject * obj0 = 0 ;
26572 PyObject * obj1 = 0 ;
26573 char * kwnames[] = {
26574 (char *) "self",(char *) "font", NULL
26575 };
26576
26577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",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_SetFont" "', expected argument " "1"" of type '" "wxListItem *""'");
26581 }
26582 arg1 = reinterpret_cast< wxListItem * >(argp1);
26583 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26584 if (!SWIG_IsOK(res2)) {
26585 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26586 }
26587 if (!argp2) {
26588 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListItem_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26589 }
26590 arg2 = reinterpret_cast< wxFont * >(argp2);
26591 {
26592 PyThreadState* __tstate = wxPyBeginAllowThreads();
26593 (arg1)->SetFont((wxFont const &)*arg2);
26594 wxPyEndAllowThreads(__tstate);
26595 if (PyErr_Occurred()) SWIG_fail;
26596 }
26597 resultobj = SWIG_Py_Void();
26598 return resultobj;
26599 fail:
26600 return NULL;
26601 }
26602
26603
26604 SWIGINTERN PyObject *_wrap_ListItem_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26605 PyObject *resultobj = 0;
26606 wxListItem *arg1 = (wxListItem *) 0 ;
26607 long result;
26608 void *argp1 = 0 ;
26609 int res1 = 0 ;
26610 PyObject *swig_obj[1] ;
26611
26612 if (!args) SWIG_fail;
26613 swig_obj[0] = args;
26614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26615 if (!SWIG_IsOK(res1)) {
26616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetMask" "', expected argument " "1"" of type '" "wxListItem *""'");
26617 }
26618 arg1 = reinterpret_cast< wxListItem * >(argp1);
26619 {
26620 PyThreadState* __tstate = wxPyBeginAllowThreads();
26621 result = (long)(arg1)->GetMask();
26622 wxPyEndAllowThreads(__tstate);
26623 if (PyErr_Occurred()) SWIG_fail;
26624 }
26625 resultobj = SWIG_From_long(static_cast< long >(result));
26626 return resultobj;
26627 fail:
26628 return NULL;
26629 }
26630
26631
26632 SWIGINTERN PyObject *_wrap_ListItem_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26633 PyObject *resultobj = 0;
26634 wxListItem *arg1 = (wxListItem *) 0 ;
26635 long result;
26636 void *argp1 = 0 ;
26637 int res1 = 0 ;
26638 PyObject *swig_obj[1] ;
26639
26640 if (!args) SWIG_fail;
26641 swig_obj[0] = args;
26642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26643 if (!SWIG_IsOK(res1)) {
26644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetId" "', expected argument " "1"" of type '" "wxListItem *""'");
26645 }
26646 arg1 = reinterpret_cast< wxListItem * >(argp1);
26647 {
26648 PyThreadState* __tstate = wxPyBeginAllowThreads();
26649 result = (long)(arg1)->GetId();
26650 wxPyEndAllowThreads(__tstate);
26651 if (PyErr_Occurred()) SWIG_fail;
26652 }
26653 resultobj = SWIG_From_long(static_cast< long >(result));
26654 return resultobj;
26655 fail:
26656 return NULL;
26657 }
26658
26659
26660 SWIGINTERN PyObject *_wrap_ListItem_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26661 PyObject *resultobj = 0;
26662 wxListItem *arg1 = (wxListItem *) 0 ;
26663 int result;
26664 void *argp1 = 0 ;
26665 int res1 = 0 ;
26666 PyObject *swig_obj[1] ;
26667
26668 if (!args) SWIG_fail;
26669 swig_obj[0] = args;
26670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26671 if (!SWIG_IsOK(res1)) {
26672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetColumn" "', expected argument " "1"" of type '" "wxListItem *""'");
26673 }
26674 arg1 = reinterpret_cast< wxListItem * >(argp1);
26675 {
26676 PyThreadState* __tstate = wxPyBeginAllowThreads();
26677 result = (int)(arg1)->GetColumn();
26678 wxPyEndAllowThreads(__tstate);
26679 if (PyErr_Occurred()) SWIG_fail;
26680 }
26681 resultobj = SWIG_From_int(static_cast< int >(result));
26682 return resultobj;
26683 fail:
26684 return NULL;
26685 }
26686
26687
26688 SWIGINTERN PyObject *_wrap_ListItem_GetState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26689 PyObject *resultobj = 0;
26690 wxListItem *arg1 = (wxListItem *) 0 ;
26691 long result;
26692 void *argp1 = 0 ;
26693 int res1 = 0 ;
26694 PyObject *swig_obj[1] ;
26695
26696 if (!args) SWIG_fail;
26697 swig_obj[0] = args;
26698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26699 if (!SWIG_IsOK(res1)) {
26700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetState" "', expected argument " "1"" of type '" "wxListItem *""'");
26701 }
26702 arg1 = reinterpret_cast< wxListItem * >(argp1);
26703 {
26704 PyThreadState* __tstate = wxPyBeginAllowThreads();
26705 result = (long)(arg1)->GetState();
26706 wxPyEndAllowThreads(__tstate);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_From_long(static_cast< long >(result));
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 SWIGINTERN PyObject *_wrap_ListItem_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26717 PyObject *resultobj = 0;
26718 wxListItem *arg1 = (wxListItem *) 0 ;
26719 wxString *result = 0 ;
26720 void *argp1 = 0 ;
26721 int res1 = 0 ;
26722 PyObject *swig_obj[1] ;
26723
26724 if (!args) SWIG_fail;
26725 swig_obj[0] = args;
26726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26727 if (!SWIG_IsOK(res1)) {
26728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetText" "', expected argument " "1"" of type '" "wxListItem *""'");
26729 }
26730 arg1 = reinterpret_cast< wxListItem * >(argp1);
26731 {
26732 PyThreadState* __tstate = wxPyBeginAllowThreads();
26733 {
26734 wxString const &_result_ref = (arg1)->GetText();
26735 result = (wxString *) &_result_ref;
26736 }
26737 wxPyEndAllowThreads(__tstate);
26738 if (PyErr_Occurred()) SWIG_fail;
26739 }
26740 {
26741 #if wxUSE_UNICODE
26742 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
26743 #else
26744 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
26745 #endif
26746 }
26747 return resultobj;
26748 fail:
26749 return NULL;
26750 }
26751
26752
26753 SWIGINTERN PyObject *_wrap_ListItem_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26754 PyObject *resultobj = 0;
26755 wxListItem *arg1 = (wxListItem *) 0 ;
26756 int result;
26757 void *argp1 = 0 ;
26758 int res1 = 0 ;
26759 PyObject *swig_obj[1] ;
26760
26761 if (!args) SWIG_fail;
26762 swig_obj[0] = args;
26763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26764 if (!SWIG_IsOK(res1)) {
26765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetImage" "', expected argument " "1"" of type '" "wxListItem *""'");
26766 }
26767 arg1 = reinterpret_cast< wxListItem * >(argp1);
26768 {
26769 PyThreadState* __tstate = wxPyBeginAllowThreads();
26770 result = (int)(arg1)->GetImage();
26771 wxPyEndAllowThreads(__tstate);
26772 if (PyErr_Occurred()) SWIG_fail;
26773 }
26774 resultobj = SWIG_From_int(static_cast< int >(result));
26775 return resultobj;
26776 fail:
26777 return NULL;
26778 }
26779
26780
26781 SWIGINTERN PyObject *_wrap_ListItem_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26782 PyObject *resultobj = 0;
26783 wxListItem *arg1 = (wxListItem *) 0 ;
26784 long result;
26785 void *argp1 = 0 ;
26786 int res1 = 0 ;
26787 PyObject *swig_obj[1] ;
26788
26789 if (!args) SWIG_fail;
26790 swig_obj[0] = args;
26791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26792 if (!SWIG_IsOK(res1)) {
26793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetData" "', expected argument " "1"" of type '" "wxListItem *""'");
26794 }
26795 arg1 = reinterpret_cast< wxListItem * >(argp1);
26796 {
26797 PyThreadState* __tstate = wxPyBeginAllowThreads();
26798 result = (long)(arg1)->GetData();
26799 wxPyEndAllowThreads(__tstate);
26800 if (PyErr_Occurred()) SWIG_fail;
26801 }
26802 resultobj = SWIG_From_long(static_cast< long >(result));
26803 return resultobj;
26804 fail:
26805 return NULL;
26806 }
26807
26808
26809 SWIGINTERN PyObject *_wrap_ListItem_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26810 PyObject *resultobj = 0;
26811 wxListItem *arg1 = (wxListItem *) 0 ;
26812 int result;
26813 void *argp1 = 0 ;
26814 int res1 = 0 ;
26815 PyObject *swig_obj[1] ;
26816
26817 if (!args) SWIG_fail;
26818 swig_obj[0] = args;
26819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26820 if (!SWIG_IsOK(res1)) {
26821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetWidth" "', expected argument " "1"" of type '" "wxListItem *""'");
26822 }
26823 arg1 = reinterpret_cast< wxListItem * >(argp1);
26824 {
26825 PyThreadState* __tstate = wxPyBeginAllowThreads();
26826 result = (int)(arg1)->GetWidth();
26827 wxPyEndAllowThreads(__tstate);
26828 if (PyErr_Occurred()) SWIG_fail;
26829 }
26830 resultobj = SWIG_From_int(static_cast< int >(result));
26831 return resultobj;
26832 fail:
26833 return NULL;
26834 }
26835
26836
26837 SWIGINTERN PyObject *_wrap_ListItem_GetAlign(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26838 PyObject *resultobj = 0;
26839 wxListItem *arg1 = (wxListItem *) 0 ;
26840 wxListColumnFormat result;
26841 void *argp1 = 0 ;
26842 int res1 = 0 ;
26843 PyObject *swig_obj[1] ;
26844
26845 if (!args) SWIG_fail;
26846 swig_obj[0] = args;
26847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26848 if (!SWIG_IsOK(res1)) {
26849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAlign" "', expected argument " "1"" of type '" "wxListItem *""'");
26850 }
26851 arg1 = reinterpret_cast< wxListItem * >(argp1);
26852 {
26853 PyThreadState* __tstate = wxPyBeginAllowThreads();
26854 result = (wxListColumnFormat)(arg1)->GetAlign();
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_From_int(static_cast< int >(result));
26859 return resultobj;
26860 fail:
26861 return NULL;
26862 }
26863
26864
26865 SWIGINTERN PyObject *_wrap_ListItem_GetAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26866 PyObject *resultobj = 0;
26867 wxListItem *arg1 = (wxListItem *) 0 ;
26868 wxListItemAttr *result = 0 ;
26869 void *argp1 = 0 ;
26870 int res1 = 0 ;
26871 PyObject *swig_obj[1] ;
26872
26873 if (!args) SWIG_fail;
26874 swig_obj[0] = args;
26875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26876 if (!SWIG_IsOK(res1)) {
26877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26878 }
26879 arg1 = reinterpret_cast< wxListItem * >(argp1);
26880 {
26881 PyThreadState* __tstate = wxPyBeginAllowThreads();
26882 result = (wxListItemAttr *)(arg1)->GetAttributes();
26883 wxPyEndAllowThreads(__tstate);
26884 if (PyErr_Occurred()) SWIG_fail;
26885 }
26886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItemAttr, 0 | 0 );
26887 return resultobj;
26888 fail:
26889 return NULL;
26890 }
26891
26892
26893 SWIGINTERN PyObject *_wrap_ListItem_HasAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26894 PyObject *resultobj = 0;
26895 wxListItem *arg1 = (wxListItem *) 0 ;
26896 bool result;
26897 void *argp1 = 0 ;
26898 int res1 = 0 ;
26899 PyObject *swig_obj[1] ;
26900
26901 if (!args) SWIG_fail;
26902 swig_obj[0] = args;
26903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26904 if (!SWIG_IsOK(res1)) {
26905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_HasAttributes" "', expected argument " "1"" of type '" "wxListItem *""'");
26906 }
26907 arg1 = reinterpret_cast< wxListItem * >(argp1);
26908 {
26909 PyThreadState* __tstate = wxPyBeginAllowThreads();
26910 result = (bool)(arg1)->HasAttributes();
26911 wxPyEndAllowThreads(__tstate);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 {
26915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26916 }
26917 return resultobj;
26918 fail:
26919 return NULL;
26920 }
26921
26922
26923 SWIGINTERN PyObject *_wrap_ListItem_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26924 PyObject *resultobj = 0;
26925 wxListItem *arg1 = (wxListItem *) 0 ;
26926 wxColour result;
26927 void *argp1 = 0 ;
26928 int res1 = 0 ;
26929 PyObject *swig_obj[1] ;
26930
26931 if (!args) SWIG_fail;
26932 swig_obj[0] = args;
26933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26934 if (!SWIG_IsOK(res1)) {
26935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetTextColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26936 }
26937 arg1 = reinterpret_cast< wxListItem * >(argp1);
26938 {
26939 PyThreadState* __tstate = wxPyBeginAllowThreads();
26940 result = ((wxListItem const *)arg1)->GetTextColour();
26941 wxPyEndAllowThreads(__tstate);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26945 return resultobj;
26946 fail:
26947 return NULL;
26948 }
26949
26950
26951 SWIGINTERN PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26952 PyObject *resultobj = 0;
26953 wxListItem *arg1 = (wxListItem *) 0 ;
26954 wxColour result;
26955 void *argp1 = 0 ;
26956 int res1 = 0 ;
26957 PyObject *swig_obj[1] ;
26958
26959 if (!args) SWIG_fail;
26960 swig_obj[0] = args;
26961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26962 if (!SWIG_IsOK(res1)) {
26963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetBackgroundColour" "', expected argument " "1"" of type '" "wxListItem const *""'");
26964 }
26965 arg1 = reinterpret_cast< wxListItem * >(argp1);
26966 {
26967 PyThreadState* __tstate = wxPyBeginAllowThreads();
26968 result = ((wxListItem const *)arg1)->GetBackgroundColour();
26969 wxPyEndAllowThreads(__tstate);
26970 if (PyErr_Occurred()) SWIG_fail;
26971 }
26972 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 SWIGINTERN PyObject *_wrap_ListItem_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26980 PyObject *resultobj = 0;
26981 wxListItem *arg1 = (wxListItem *) 0 ;
26982 wxFont result;
26983 void *argp1 = 0 ;
26984 int res1 = 0 ;
26985 PyObject *swig_obj[1] ;
26986
26987 if (!args) SWIG_fail;
26988 swig_obj[0] = args;
26989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
26990 if (!SWIG_IsOK(res1)) {
26991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_GetFont" "', expected argument " "1"" of type '" "wxListItem const *""'");
26992 }
26993 arg1 = reinterpret_cast< wxListItem * >(argp1);
26994 {
26995 PyThreadState* __tstate = wxPyBeginAllowThreads();
26996 result = ((wxListItem const *)arg1)->GetFont();
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
27001 return resultobj;
27002 fail:
27003 return NULL;
27004 }
27005
27006
27007 SWIGINTERN PyObject *_wrap_ListItem_m_mask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27008 PyObject *resultobj = 0;
27009 wxListItem *arg1 = (wxListItem *) 0 ;
27010 long arg2 ;
27011 void *argp1 = 0 ;
27012 int res1 = 0 ;
27013 long val2 ;
27014 int ecode2 = 0 ;
27015 PyObject *swig_obj[2] ;
27016
27017 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_mask_set",2,2,swig_obj)) SWIG_fail;
27018 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27019 if (!SWIG_IsOK(res1)) {
27020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27021 }
27022 arg1 = reinterpret_cast< wxListItem * >(argp1);
27023 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27024 if (!SWIG_IsOK(ecode2)) {
27025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_mask_set" "', expected argument " "2"" of type '" "long""'");
27026 }
27027 arg2 = static_cast< long >(val2);
27028 if (arg1) (arg1)->m_mask = arg2;
27029
27030 resultobj = SWIG_Py_Void();
27031 return resultobj;
27032 fail:
27033 return NULL;
27034 }
27035
27036
27037 SWIGINTERN PyObject *_wrap_ListItem_m_mask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27038 PyObject *resultobj = 0;
27039 wxListItem *arg1 = (wxListItem *) 0 ;
27040 long result;
27041 void *argp1 = 0 ;
27042 int res1 = 0 ;
27043 PyObject *swig_obj[1] ;
27044
27045 if (!args) SWIG_fail;
27046 swig_obj[0] = args;
27047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27048 if (!SWIG_IsOK(res1)) {
27049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_mask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27050 }
27051 arg1 = reinterpret_cast< wxListItem * >(argp1);
27052 result = (long) ((arg1)->m_mask);
27053 resultobj = SWIG_From_long(static_cast< long >(result));
27054 return resultobj;
27055 fail:
27056 return NULL;
27057 }
27058
27059
27060 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27061 PyObject *resultobj = 0;
27062 wxListItem *arg1 = (wxListItem *) 0 ;
27063 long arg2 ;
27064 void *argp1 = 0 ;
27065 int res1 = 0 ;
27066 long val2 ;
27067 int ecode2 = 0 ;
27068 PyObject *swig_obj[2] ;
27069
27070 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_itemId_set",2,2,swig_obj)) SWIG_fail;
27071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27072 if (!SWIG_IsOK(res1)) {
27073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27074 }
27075 arg1 = reinterpret_cast< wxListItem * >(argp1);
27076 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27077 if (!SWIG_IsOK(ecode2)) {
27078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_itemId_set" "', expected argument " "2"" of type '" "long""'");
27079 }
27080 arg2 = static_cast< long >(val2);
27081 if (arg1) (arg1)->m_itemId = arg2;
27082
27083 resultobj = SWIG_Py_Void();
27084 return resultobj;
27085 fail:
27086 return NULL;
27087 }
27088
27089
27090 SWIGINTERN PyObject *_wrap_ListItem_m_itemId_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27091 PyObject *resultobj = 0;
27092 wxListItem *arg1 = (wxListItem *) 0 ;
27093 long result;
27094 void *argp1 = 0 ;
27095 int res1 = 0 ;
27096 PyObject *swig_obj[1] ;
27097
27098 if (!args) SWIG_fail;
27099 swig_obj[0] = args;
27100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27101 if (!SWIG_IsOK(res1)) {
27102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_itemId_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27103 }
27104 arg1 = reinterpret_cast< wxListItem * >(argp1);
27105 result = (long) ((arg1)->m_itemId);
27106 resultobj = SWIG_From_long(static_cast< long >(result));
27107 return resultobj;
27108 fail:
27109 return NULL;
27110 }
27111
27112
27113 SWIGINTERN PyObject *_wrap_ListItem_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27114 PyObject *resultobj = 0;
27115 wxListItem *arg1 = (wxListItem *) 0 ;
27116 int arg2 ;
27117 void *argp1 = 0 ;
27118 int res1 = 0 ;
27119 int val2 ;
27120 int ecode2 = 0 ;
27121 PyObject *swig_obj[2] ;
27122
27123 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_col_set",2,2,swig_obj)) SWIG_fail;
27124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27125 if (!SWIG_IsOK(res1)) {
27126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27127 }
27128 arg1 = reinterpret_cast< wxListItem * >(argp1);
27129 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27130 if (!SWIG_IsOK(ecode2)) {
27131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_col_set" "', expected argument " "2"" of type '" "int""'");
27132 }
27133 arg2 = static_cast< int >(val2);
27134 if (arg1) (arg1)->m_col = arg2;
27135
27136 resultobj = SWIG_Py_Void();
27137 return resultobj;
27138 fail:
27139 return NULL;
27140 }
27141
27142
27143 SWIGINTERN PyObject *_wrap_ListItem_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27144 PyObject *resultobj = 0;
27145 wxListItem *arg1 = (wxListItem *) 0 ;
27146 int result;
27147 void *argp1 = 0 ;
27148 int res1 = 0 ;
27149 PyObject *swig_obj[1] ;
27150
27151 if (!args) SWIG_fail;
27152 swig_obj[0] = args;
27153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27154 if (!SWIG_IsOK(res1)) {
27155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_col_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27156 }
27157 arg1 = reinterpret_cast< wxListItem * >(argp1);
27158 result = (int) ((arg1)->m_col);
27159 resultobj = SWIG_From_int(static_cast< int >(result));
27160 return resultobj;
27161 fail:
27162 return NULL;
27163 }
27164
27165
27166 SWIGINTERN PyObject *_wrap_ListItem_m_state_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27167 PyObject *resultobj = 0;
27168 wxListItem *arg1 = (wxListItem *) 0 ;
27169 long arg2 ;
27170 void *argp1 = 0 ;
27171 int res1 = 0 ;
27172 long val2 ;
27173 int ecode2 = 0 ;
27174 PyObject *swig_obj[2] ;
27175
27176 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_state_set",2,2,swig_obj)) SWIG_fail;
27177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27178 if (!SWIG_IsOK(res1)) {
27179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27180 }
27181 arg1 = reinterpret_cast< wxListItem * >(argp1);
27182 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27183 if (!SWIG_IsOK(ecode2)) {
27184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_state_set" "', expected argument " "2"" of type '" "long""'");
27185 }
27186 arg2 = static_cast< long >(val2);
27187 if (arg1) (arg1)->m_state = arg2;
27188
27189 resultobj = SWIG_Py_Void();
27190 return resultobj;
27191 fail:
27192 return NULL;
27193 }
27194
27195
27196 SWIGINTERN PyObject *_wrap_ListItem_m_state_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27197 PyObject *resultobj = 0;
27198 wxListItem *arg1 = (wxListItem *) 0 ;
27199 long result;
27200 void *argp1 = 0 ;
27201 int res1 = 0 ;
27202 PyObject *swig_obj[1] ;
27203
27204 if (!args) SWIG_fail;
27205 swig_obj[0] = args;
27206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27207 if (!SWIG_IsOK(res1)) {
27208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_state_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27209 }
27210 arg1 = reinterpret_cast< wxListItem * >(argp1);
27211 result = (long) ((arg1)->m_state);
27212 resultobj = SWIG_From_long(static_cast< long >(result));
27213 return resultobj;
27214 fail:
27215 return NULL;
27216 }
27217
27218
27219 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27220 PyObject *resultobj = 0;
27221 wxListItem *arg1 = (wxListItem *) 0 ;
27222 long arg2 ;
27223 void *argp1 = 0 ;
27224 int res1 = 0 ;
27225 long val2 ;
27226 int ecode2 = 0 ;
27227 PyObject *swig_obj[2] ;
27228
27229 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_stateMask_set",2,2,swig_obj)) SWIG_fail;
27230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27231 if (!SWIG_IsOK(res1)) {
27232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27233 }
27234 arg1 = reinterpret_cast< wxListItem * >(argp1);
27235 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27236 if (!SWIG_IsOK(ecode2)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_stateMask_set" "', expected argument " "2"" of type '" "long""'");
27238 }
27239 arg2 = static_cast< long >(val2);
27240 if (arg1) (arg1)->m_stateMask = arg2;
27241
27242 resultobj = SWIG_Py_Void();
27243 return resultobj;
27244 fail:
27245 return NULL;
27246 }
27247
27248
27249 SWIGINTERN PyObject *_wrap_ListItem_m_stateMask_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27250 PyObject *resultobj = 0;
27251 wxListItem *arg1 = (wxListItem *) 0 ;
27252 long result;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 PyObject *swig_obj[1] ;
27256
27257 if (!args) SWIG_fail;
27258 swig_obj[0] = args;
27259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27260 if (!SWIG_IsOK(res1)) {
27261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_stateMask_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27262 }
27263 arg1 = reinterpret_cast< wxListItem * >(argp1);
27264 result = (long) ((arg1)->m_stateMask);
27265 resultobj = SWIG_From_long(static_cast< long >(result));
27266 return resultobj;
27267 fail:
27268 return NULL;
27269 }
27270
27271
27272 SWIGINTERN PyObject *_wrap_ListItem_m_text_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27273 PyObject *resultobj = 0;
27274 wxListItem *arg1 = (wxListItem *) 0 ;
27275 wxString *arg2 = (wxString *) 0 ;
27276 void *argp1 = 0 ;
27277 int res1 = 0 ;
27278 bool temp2 = false ;
27279 PyObject *swig_obj[2] ;
27280
27281 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_text_set",2,2,swig_obj)) SWIG_fail;
27282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27285 }
27286 arg1 = reinterpret_cast< wxListItem * >(argp1);
27287 {
27288 arg2 = wxString_in_helper(swig_obj[1]);
27289 if (arg2 == NULL) SWIG_fail;
27290 temp2 = true;
27291 }
27292 if (arg1) (arg1)->m_text = *arg2;
27293
27294 resultobj = SWIG_Py_Void();
27295 {
27296 if (temp2)
27297 delete arg2;
27298 }
27299 return resultobj;
27300 fail:
27301 {
27302 if (temp2)
27303 delete arg2;
27304 }
27305 return NULL;
27306 }
27307
27308
27309 SWIGINTERN PyObject *_wrap_ListItem_m_text_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27310 PyObject *resultobj = 0;
27311 wxListItem *arg1 = (wxListItem *) 0 ;
27312 wxString *result = 0 ;
27313 void *argp1 = 0 ;
27314 int res1 = 0 ;
27315 PyObject *swig_obj[1] ;
27316
27317 if (!args) SWIG_fail;
27318 swig_obj[0] = args;
27319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27320 if (!SWIG_IsOK(res1)) {
27321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_text_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27322 }
27323 arg1 = reinterpret_cast< wxListItem * >(argp1);
27324 result = (wxString *)& ((arg1)->m_text);
27325 {
27326 #if wxUSE_UNICODE
27327 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
27328 #else
27329 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
27330 #endif
27331 }
27332 return resultobj;
27333 fail:
27334 return NULL;
27335 }
27336
27337
27338 SWIGINTERN PyObject *_wrap_ListItem_m_image_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27339 PyObject *resultobj = 0;
27340 wxListItem *arg1 = (wxListItem *) 0 ;
27341 int arg2 ;
27342 void *argp1 = 0 ;
27343 int res1 = 0 ;
27344 int val2 ;
27345 int ecode2 = 0 ;
27346 PyObject *swig_obj[2] ;
27347
27348 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_image_set",2,2,swig_obj)) SWIG_fail;
27349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27350 if (!SWIG_IsOK(res1)) {
27351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_image_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27352 }
27353 arg1 = reinterpret_cast< wxListItem * >(argp1);
27354 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27355 if (!SWIG_IsOK(ecode2)) {
27356 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_image_set" "', expected argument " "2"" of type '" "int""'");
27357 }
27358 arg2 = static_cast< int >(val2);
27359 if (arg1) (arg1)->m_image = arg2;
27360
27361 resultobj = SWIG_Py_Void();
27362 return resultobj;
27363 fail:
27364 return NULL;
27365 }
27366
27367
27368 SWIGINTERN PyObject *_wrap_ListItem_m_image_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27369 PyObject *resultobj = 0;
27370 wxListItem *arg1 = (wxListItem *) 0 ;
27371 int result;
27372 void *argp1 = 0 ;
27373 int res1 = 0 ;
27374 PyObject *swig_obj[1] ;
27375
27376 if (!args) SWIG_fail;
27377 swig_obj[0] = args;
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_image_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27381 }
27382 arg1 = reinterpret_cast< wxListItem * >(argp1);
27383 result = (int) ((arg1)->m_image);
27384 resultobj = SWIG_From_int(static_cast< int >(result));
27385 return resultobj;
27386 fail:
27387 return NULL;
27388 }
27389
27390
27391 SWIGINTERN PyObject *_wrap_ListItem_m_data_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27392 PyObject *resultobj = 0;
27393 wxListItem *arg1 = (wxListItem *) 0 ;
27394 long arg2 ;
27395 void *argp1 = 0 ;
27396 int res1 = 0 ;
27397 long val2 ;
27398 int ecode2 = 0 ;
27399 PyObject *swig_obj[2] ;
27400
27401 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_data_set",2,2,swig_obj)) SWIG_fail;
27402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27403 if (!SWIG_IsOK(res1)) {
27404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27405 }
27406 arg1 = reinterpret_cast< wxListItem * >(argp1);
27407 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27408 if (!SWIG_IsOK(ecode2)) {
27409 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_data_set" "', expected argument " "2"" of type '" "long""'");
27410 }
27411 arg2 = static_cast< long >(val2);
27412 if (arg1) (arg1)->m_data = arg2;
27413
27414 resultobj = SWIG_Py_Void();
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 SWIGINTERN PyObject *_wrap_ListItem_m_data_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27422 PyObject *resultobj = 0;
27423 wxListItem *arg1 = (wxListItem *) 0 ;
27424 long result;
27425 void *argp1 = 0 ;
27426 int res1 = 0 ;
27427 PyObject *swig_obj[1] ;
27428
27429 if (!args) SWIG_fail;
27430 swig_obj[0] = args;
27431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27432 if (!SWIG_IsOK(res1)) {
27433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_data_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27434 }
27435 arg1 = reinterpret_cast< wxListItem * >(argp1);
27436 result = (long) ((arg1)->m_data);
27437 resultobj = SWIG_From_long(static_cast< long >(result));
27438 return resultobj;
27439 fail:
27440 return NULL;
27441 }
27442
27443
27444 SWIGINTERN PyObject *_wrap_ListItem_m_format_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27445 PyObject *resultobj = 0;
27446 wxListItem *arg1 = (wxListItem *) 0 ;
27447 int arg2 ;
27448 void *argp1 = 0 ;
27449 int res1 = 0 ;
27450 int val2 ;
27451 int ecode2 = 0 ;
27452 PyObject *swig_obj[2] ;
27453
27454 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_format_set",2,2,swig_obj)) SWIG_fail;
27455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27456 if (!SWIG_IsOK(res1)) {
27457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27458 }
27459 arg1 = reinterpret_cast< wxListItem * >(argp1);
27460 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27461 if (!SWIG_IsOK(ecode2)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_format_set" "', expected argument " "2"" of type '" "int""'");
27463 }
27464 arg2 = static_cast< int >(val2);
27465 if (arg1) (arg1)->m_format = arg2;
27466
27467 resultobj = SWIG_Py_Void();
27468 return resultobj;
27469 fail:
27470 return NULL;
27471 }
27472
27473
27474 SWIGINTERN PyObject *_wrap_ListItem_m_format_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27475 PyObject *resultobj = 0;
27476 wxListItem *arg1 = (wxListItem *) 0 ;
27477 int result;
27478 void *argp1 = 0 ;
27479 int res1 = 0 ;
27480 PyObject *swig_obj[1] ;
27481
27482 if (!args) SWIG_fail;
27483 swig_obj[0] = args;
27484 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27485 if (!SWIG_IsOK(res1)) {
27486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_format_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27487 }
27488 arg1 = reinterpret_cast< wxListItem * >(argp1);
27489 result = (int) ((arg1)->m_format);
27490 resultobj = SWIG_From_int(static_cast< int >(result));
27491 return resultobj;
27492 fail:
27493 return NULL;
27494 }
27495
27496
27497 SWIGINTERN PyObject *_wrap_ListItem_m_width_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27498 PyObject *resultobj = 0;
27499 wxListItem *arg1 = (wxListItem *) 0 ;
27500 int arg2 ;
27501 void *argp1 = 0 ;
27502 int res1 = 0 ;
27503 int val2 ;
27504 int ecode2 = 0 ;
27505 PyObject *swig_obj[2] ;
27506
27507 if (!SWIG_Python_UnpackTuple(args,"ListItem_m_width_set",2,2,swig_obj)) SWIG_fail;
27508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27509 if (!SWIG_IsOK(res1)) {
27510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_set" "', expected argument " "1"" of type '" "wxListItem *""'");
27511 }
27512 arg1 = reinterpret_cast< wxListItem * >(argp1);
27513 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27514 if (!SWIG_IsOK(ecode2)) {
27515 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListItem_m_width_set" "', expected argument " "2"" of type '" "int""'");
27516 }
27517 arg2 = static_cast< int >(val2);
27518 if (arg1) (arg1)->m_width = arg2;
27519
27520 resultobj = SWIG_Py_Void();
27521 return resultobj;
27522 fail:
27523 return NULL;
27524 }
27525
27526
27527 SWIGINTERN PyObject *_wrap_ListItem_m_width_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27528 PyObject *resultobj = 0;
27529 wxListItem *arg1 = (wxListItem *) 0 ;
27530 int result;
27531 void *argp1 = 0 ;
27532 int res1 = 0 ;
27533 PyObject *swig_obj[1] ;
27534
27535 if (!args) SWIG_fail;
27536 swig_obj[0] = args;
27537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListItem, 0 | 0 );
27538 if (!SWIG_IsOK(res1)) {
27539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListItem_m_width_get" "', expected argument " "1"" of type '" "wxListItem *""'");
27540 }
27541 arg1 = reinterpret_cast< wxListItem * >(argp1);
27542 result = (int) ((arg1)->m_width);
27543 resultobj = SWIG_From_int(static_cast< int >(result));
27544 return resultobj;
27545 fail:
27546 return NULL;
27547 }
27548
27549
27550 SWIGINTERN PyObject *ListItem_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27551 PyObject *obj;
27552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27553 SWIG_TypeNewClientData(SWIGTYPE_p_wxListItem, SWIG_NewClientData(obj));
27554 return SWIG_Py_Void();
27555 }
27556
27557 SWIGINTERN PyObject *ListItem_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27558 return SWIG_Python_InitShadowInstance(args);
27559 }
27560
27561 SWIGINTERN PyObject *_wrap_new_ListEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27562 PyObject *resultobj = 0;
27563 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
27564 int arg2 = (int) 0 ;
27565 wxListEvent *result = 0 ;
27566 int val1 ;
27567 int ecode1 = 0 ;
27568 int val2 ;
27569 int ecode2 = 0 ;
27570 PyObject * obj0 = 0 ;
27571 PyObject * obj1 = 0 ;
27572 char * kwnames[] = {
27573 (char *) "commandType",(char *) "id", NULL
27574 };
27575
27576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) SWIG_fail;
27577 if (obj0) {
27578 ecode1 = SWIG_AsVal_int(obj0, &val1);
27579 if (!SWIG_IsOK(ecode1)) {
27580 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ListEvent" "', expected argument " "1"" of type '" "wxEventType""'");
27581 }
27582 arg1 = static_cast< wxEventType >(val1);
27583 }
27584 if (obj1) {
27585 ecode2 = SWIG_AsVal_int(obj1, &val2);
27586 if (!SWIG_IsOK(ecode2)) {
27587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListEvent" "', expected argument " "2"" of type '" "int""'");
27588 }
27589 arg2 = static_cast< int >(val2);
27590 }
27591 {
27592 PyThreadState* __tstate = wxPyBeginAllowThreads();
27593 result = (wxListEvent *)new wxListEvent(arg1,arg2);
27594 wxPyEndAllowThreads(__tstate);
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListEvent, SWIG_POINTER_NEW | 0 );
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 SWIGINTERN PyObject *_wrap_ListEvent_m_code_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27605 PyObject *resultobj = 0;
27606 wxListEvent *arg1 = (wxListEvent *) 0 ;
27607 int arg2 ;
27608 void *argp1 = 0 ;
27609 int res1 = 0 ;
27610 int val2 ;
27611 int ecode2 = 0 ;
27612 PyObject *swig_obj[2] ;
27613
27614 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_code_set",2,2,swig_obj)) SWIG_fail;
27615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27616 if (!SWIG_IsOK(res1)) {
27617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27618 }
27619 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27620 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27621 if (!SWIG_IsOK(ecode2)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_code_set" "', expected argument " "2"" of type '" "int""'");
27623 }
27624 arg2 = static_cast< int >(val2);
27625 if (arg1) (arg1)->m_code = arg2;
27626
27627 resultobj = SWIG_Py_Void();
27628 return resultobj;
27629 fail:
27630 return NULL;
27631 }
27632
27633
27634 SWIGINTERN PyObject *_wrap_ListEvent_m_code_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27635 PyObject *resultobj = 0;
27636 wxListEvent *arg1 = (wxListEvent *) 0 ;
27637 int result;
27638 void *argp1 = 0 ;
27639 int res1 = 0 ;
27640 PyObject *swig_obj[1] ;
27641
27642 if (!args) SWIG_fail;
27643 swig_obj[0] = args;
27644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27645 if (!SWIG_IsOK(res1)) {
27646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_code_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27647 }
27648 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27649 result = (int) ((arg1)->m_code);
27650 resultobj = SWIG_From_int(static_cast< int >(result));
27651 return resultobj;
27652 fail:
27653 return NULL;
27654 }
27655
27656
27657 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27658 PyObject *resultobj = 0;
27659 wxListEvent *arg1 = (wxListEvent *) 0 ;
27660 long arg2 ;
27661 void *argp1 = 0 ;
27662 int res1 = 0 ;
27663 long val2 ;
27664 int ecode2 = 0 ;
27665 PyObject *swig_obj[2] ;
27666
27667 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_oldItemIndex_set",2,2,swig_obj)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27669 if (!SWIG_IsOK(res1)) {
27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27671 }
27672 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27673 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27674 if (!SWIG_IsOK(ecode2)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_oldItemIndex_set" "', expected argument " "2"" of type '" "long""'");
27676 }
27677 arg2 = static_cast< long >(val2);
27678 if (arg1) (arg1)->m_oldItemIndex = arg2;
27679
27680 resultobj = SWIG_Py_Void();
27681 return resultobj;
27682 fail:
27683 return NULL;
27684 }
27685
27686
27687 SWIGINTERN PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27688 PyObject *resultobj = 0;
27689 wxListEvent *arg1 = (wxListEvent *) 0 ;
27690 long result;
27691 void *argp1 = 0 ;
27692 int res1 = 0 ;
27693 PyObject *swig_obj[1] ;
27694
27695 if (!args) SWIG_fail;
27696 swig_obj[0] = args;
27697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27698 if (!SWIG_IsOK(res1)) {
27699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_oldItemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27700 }
27701 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27702 result = (long) ((arg1)->m_oldItemIndex);
27703 resultobj = SWIG_From_long(static_cast< long >(result));
27704 return resultobj;
27705 fail:
27706 return NULL;
27707 }
27708
27709
27710 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27711 PyObject *resultobj = 0;
27712 wxListEvent *arg1 = (wxListEvent *) 0 ;
27713 long arg2 ;
27714 void *argp1 = 0 ;
27715 int res1 = 0 ;
27716 long val2 ;
27717 int ecode2 = 0 ;
27718 PyObject *swig_obj[2] ;
27719
27720 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_itemIndex_set",2,2,swig_obj)) SWIG_fail;
27721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27722 if (!SWIG_IsOK(res1)) {
27723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27724 }
27725 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27726 ecode2 = SWIG_AsVal_long(swig_obj[1], &val2);
27727 if (!SWIG_IsOK(ecode2)) {
27728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_itemIndex_set" "', expected argument " "2"" of type '" "long""'");
27729 }
27730 arg2 = static_cast< long >(val2);
27731 if (arg1) (arg1)->m_itemIndex = arg2;
27732
27733 resultobj = SWIG_Py_Void();
27734 return resultobj;
27735 fail:
27736 return NULL;
27737 }
27738
27739
27740 SWIGINTERN PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27741 PyObject *resultobj = 0;
27742 wxListEvent *arg1 = (wxListEvent *) 0 ;
27743 long result;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 PyObject *swig_obj[1] ;
27747
27748 if (!args) SWIG_fail;
27749 swig_obj[0] = args;
27750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27751 if (!SWIG_IsOK(res1)) {
27752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_itemIndex_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27753 }
27754 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27755 result = (long) ((arg1)->m_itemIndex);
27756 resultobj = SWIG_From_long(static_cast< long >(result));
27757 return resultobj;
27758 fail:
27759 return NULL;
27760 }
27761
27762
27763 SWIGINTERN PyObject *_wrap_ListEvent_m_col_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27764 PyObject *resultobj = 0;
27765 wxListEvent *arg1 = (wxListEvent *) 0 ;
27766 int arg2 ;
27767 void *argp1 = 0 ;
27768 int res1 = 0 ;
27769 int val2 ;
27770 int ecode2 = 0 ;
27771 PyObject *swig_obj[2] ;
27772
27773 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_col_set",2,2,swig_obj)) SWIG_fail;
27774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27775 if (!SWIG_IsOK(res1)) {
27776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27777 }
27778 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27779 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
27780 if (!SWIG_IsOK(ecode2)) {
27781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_m_col_set" "', expected argument " "2"" of type '" "int""'");
27782 }
27783 arg2 = static_cast< int >(val2);
27784 if (arg1) (arg1)->m_col = arg2;
27785
27786 resultobj = SWIG_Py_Void();
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_ListEvent_m_col_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27794 PyObject *resultobj = 0;
27795 wxListEvent *arg1 = (wxListEvent *) 0 ;
27796 int result;
27797 void *argp1 = 0 ;
27798 int res1 = 0 ;
27799 PyObject *swig_obj[1] ;
27800
27801 if (!args) SWIG_fail;
27802 swig_obj[0] = args;
27803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27804 if (!SWIG_IsOK(res1)) {
27805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_col_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27806 }
27807 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27808 result = (int) ((arg1)->m_col);
27809 resultobj = SWIG_From_int(static_cast< int >(result));
27810 return resultobj;
27811 fail:
27812 return NULL;
27813 }
27814
27815
27816 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27817 PyObject *resultobj = 0;
27818 wxListEvent *arg1 = (wxListEvent *) 0 ;
27819 wxPoint *arg2 = (wxPoint *) 0 ;
27820 void *argp1 = 0 ;
27821 int res1 = 0 ;
27822 void *argp2 = 0 ;
27823 int res2 = 0 ;
27824 PyObject *swig_obj[2] ;
27825
27826 if (!SWIG_Python_UnpackTuple(args,"ListEvent_m_pointDrag_set",2,2,swig_obj)) SWIG_fail;
27827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27828 if (!SWIG_IsOK(res1)) {
27829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "1"" of type '" "wxListEvent *""'");
27830 }
27831 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27832 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxPoint, 0 | 0 );
27833 if (!SWIG_IsOK(res2)) {
27834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListEvent_m_pointDrag_set" "', expected argument " "2"" of type '" "wxPoint *""'");
27835 }
27836 arg2 = reinterpret_cast< wxPoint * >(argp2);
27837 if (arg1) (arg1)->m_pointDrag = *arg2;
27838
27839 resultobj = SWIG_Py_Void();
27840 return resultobj;
27841 fail:
27842 return NULL;
27843 }
27844
27845
27846 SWIGINTERN PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27847 PyObject *resultobj = 0;
27848 wxListEvent *arg1 = (wxListEvent *) 0 ;
27849 wxPoint *result = 0 ;
27850 void *argp1 = 0 ;
27851 int res1 = 0 ;
27852 PyObject *swig_obj[1] ;
27853
27854 if (!args) SWIG_fail;
27855 swig_obj[0] = args;
27856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27857 if (!SWIG_IsOK(res1)) {
27858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_pointDrag_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27859 }
27860 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27861 result = (wxPoint *)& ((arg1)->m_pointDrag);
27862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPoint, 0 | 0 );
27863 return resultobj;
27864 fail:
27865 return NULL;
27866 }
27867
27868
27869 SWIGINTERN PyObject *_wrap_ListEvent_m_item_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27870 PyObject *resultobj = 0;
27871 wxListEvent *arg1 = (wxListEvent *) 0 ;
27872 wxListItem *result = 0 ;
27873 void *argp1 = 0 ;
27874 int res1 = 0 ;
27875 PyObject *swig_obj[1] ;
27876
27877 if (!args) SWIG_fail;
27878 swig_obj[0] = args;
27879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27880 if (!SWIG_IsOK(res1)) {
27881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_m_item_get" "', expected argument " "1"" of type '" "wxListEvent *""'");
27882 }
27883 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27884 result = (wxListItem *)& ((arg1)->m_item);
27885 {
27886 resultobj = wxPyMake_wxObject(result, (bool)0);
27887 }
27888 return resultobj;
27889 fail:
27890 return NULL;
27891 }
27892
27893
27894 SWIGINTERN PyObject *_wrap_ListEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27895 PyObject *resultobj = 0;
27896 wxListEvent *arg1 = (wxListEvent *) 0 ;
27897 int result;
27898 void *argp1 = 0 ;
27899 int res1 = 0 ;
27900 PyObject *swig_obj[1] ;
27901
27902 if (!args) SWIG_fail;
27903 swig_obj[0] = args;
27904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27905 if (!SWIG_IsOK(res1)) {
27906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxListEvent *""'");
27907 }
27908 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27909 {
27910 PyThreadState* __tstate = wxPyBeginAllowThreads();
27911 result = (int)(arg1)->GetKeyCode();
27912 wxPyEndAllowThreads(__tstate);
27913 if (PyErr_Occurred()) SWIG_fail;
27914 }
27915 resultobj = SWIG_From_int(static_cast< int >(result));
27916 return resultobj;
27917 fail:
27918 return NULL;
27919 }
27920
27921
27922 SWIGINTERN PyObject *_wrap_ListEvent_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27923 PyObject *resultobj = 0;
27924 wxListEvent *arg1 = (wxListEvent *) 0 ;
27925 long result;
27926 void *argp1 = 0 ;
27927 int res1 = 0 ;
27928 PyObject *swig_obj[1] ;
27929
27930 if (!args) SWIG_fail;
27931 swig_obj[0] = args;
27932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27933 if (!SWIG_IsOK(res1)) {
27934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetIndex" "', expected argument " "1"" of type '" "wxListEvent *""'");
27935 }
27936 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27937 {
27938 PyThreadState* __tstate = wxPyBeginAllowThreads();
27939 result = (long)(arg1)->GetIndex();
27940 wxPyEndAllowThreads(__tstate);
27941 if (PyErr_Occurred()) SWIG_fail;
27942 }
27943 resultobj = SWIG_From_long(static_cast< long >(result));
27944 return resultobj;
27945 fail:
27946 return NULL;
27947 }
27948
27949
27950 SWIGINTERN PyObject *_wrap_ListEvent_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27951 PyObject *resultobj = 0;
27952 wxListEvent *arg1 = (wxListEvent *) 0 ;
27953 int result;
27954 void *argp1 = 0 ;
27955 int res1 = 0 ;
27956 PyObject *swig_obj[1] ;
27957
27958 if (!args) SWIG_fail;
27959 swig_obj[0] = args;
27960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27961 if (!SWIG_IsOK(res1)) {
27962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetColumn" "', expected argument " "1"" of type '" "wxListEvent *""'");
27963 }
27964 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27965 {
27966 PyThreadState* __tstate = wxPyBeginAllowThreads();
27967 result = (int)(arg1)->GetColumn();
27968 wxPyEndAllowThreads(__tstate);
27969 if (PyErr_Occurred()) SWIG_fail;
27970 }
27971 resultobj = SWIG_From_int(static_cast< int >(result));
27972 return resultobj;
27973 fail:
27974 return NULL;
27975 }
27976
27977
27978 SWIGINTERN PyObject *_wrap_ListEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27979 PyObject *resultobj = 0;
27980 wxListEvent *arg1 = (wxListEvent *) 0 ;
27981 wxPoint result;
27982 void *argp1 = 0 ;
27983 int res1 = 0 ;
27984 PyObject *swig_obj[1] ;
27985
27986 if (!args) SWIG_fail;
27987 swig_obj[0] = args;
27988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
27989 if (!SWIG_IsOK(res1)) {
27990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetPoint" "', expected argument " "1"" of type '" "wxListEvent *""'");
27991 }
27992 arg1 = reinterpret_cast< wxListEvent * >(argp1);
27993 {
27994 PyThreadState* __tstate = wxPyBeginAllowThreads();
27995 result = (arg1)->GetPoint();
27996 wxPyEndAllowThreads(__tstate);
27997 if (PyErr_Occurred()) SWIG_fail;
27998 }
27999 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
28000 return resultobj;
28001 fail:
28002 return NULL;
28003 }
28004
28005
28006 SWIGINTERN PyObject *_wrap_ListEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28007 PyObject *resultobj = 0;
28008 wxListEvent *arg1 = (wxListEvent *) 0 ;
28009 wxString *result = 0 ;
28010 void *argp1 = 0 ;
28011 int res1 = 0 ;
28012 PyObject *swig_obj[1] ;
28013
28014 if (!args) SWIG_fail;
28015 swig_obj[0] = args;
28016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28017 if (!SWIG_IsOK(res1)) {
28018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetLabel" "', expected argument " "1"" of type '" "wxListEvent *""'");
28019 }
28020 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28021 {
28022 PyThreadState* __tstate = wxPyBeginAllowThreads();
28023 {
28024 wxString const &_result_ref = (arg1)->GetLabel();
28025 result = (wxString *) &_result_ref;
28026 }
28027 wxPyEndAllowThreads(__tstate);
28028 if (PyErr_Occurred()) SWIG_fail;
28029 }
28030 {
28031 #if wxUSE_UNICODE
28032 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28033 #else
28034 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28035 #endif
28036 }
28037 return resultobj;
28038 fail:
28039 return NULL;
28040 }
28041
28042
28043 SWIGINTERN PyObject *_wrap_ListEvent_GetText(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28044 PyObject *resultobj = 0;
28045 wxListEvent *arg1 = (wxListEvent *) 0 ;
28046 wxString *result = 0 ;
28047 void *argp1 = 0 ;
28048 int res1 = 0 ;
28049 PyObject *swig_obj[1] ;
28050
28051 if (!args) SWIG_fail;
28052 swig_obj[0] = args;
28053 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28054 if (!SWIG_IsOK(res1)) {
28055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetText" "', expected argument " "1"" of type '" "wxListEvent *""'");
28056 }
28057 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28058 {
28059 PyThreadState* __tstate = wxPyBeginAllowThreads();
28060 {
28061 wxString const &_result_ref = (arg1)->GetText();
28062 result = (wxString *) &_result_ref;
28063 }
28064 wxPyEndAllowThreads(__tstate);
28065 if (PyErr_Occurred()) SWIG_fail;
28066 }
28067 {
28068 #if wxUSE_UNICODE
28069 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
28070 #else
28071 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
28072 #endif
28073 }
28074 return resultobj;
28075 fail:
28076 return NULL;
28077 }
28078
28079
28080 SWIGINTERN PyObject *_wrap_ListEvent_GetImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28081 PyObject *resultobj = 0;
28082 wxListEvent *arg1 = (wxListEvent *) 0 ;
28083 int result;
28084 void *argp1 = 0 ;
28085 int res1 = 0 ;
28086 PyObject *swig_obj[1] ;
28087
28088 if (!args) SWIG_fail;
28089 swig_obj[0] = args;
28090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28091 if (!SWIG_IsOK(res1)) {
28092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetImage" "', expected argument " "1"" of type '" "wxListEvent *""'");
28093 }
28094 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28095 {
28096 PyThreadState* __tstate = wxPyBeginAllowThreads();
28097 result = (int)(arg1)->GetImage();
28098 wxPyEndAllowThreads(__tstate);
28099 if (PyErr_Occurred()) SWIG_fail;
28100 }
28101 resultobj = SWIG_From_int(static_cast< int >(result));
28102 return resultobj;
28103 fail:
28104 return NULL;
28105 }
28106
28107
28108 SWIGINTERN PyObject *_wrap_ListEvent_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28109 PyObject *resultobj = 0;
28110 wxListEvent *arg1 = (wxListEvent *) 0 ;
28111 long result;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 PyObject *swig_obj[1] ;
28115
28116 if (!args) SWIG_fail;
28117 swig_obj[0] = args;
28118 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28119 if (!SWIG_IsOK(res1)) {
28120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetData" "', expected argument " "1"" of type '" "wxListEvent *""'");
28121 }
28122 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28123 {
28124 PyThreadState* __tstate = wxPyBeginAllowThreads();
28125 result = (long)(arg1)->GetData();
28126 wxPyEndAllowThreads(__tstate);
28127 if (PyErr_Occurred()) SWIG_fail;
28128 }
28129 resultobj = SWIG_From_long(static_cast< long >(result));
28130 return resultobj;
28131 fail:
28132 return NULL;
28133 }
28134
28135
28136 SWIGINTERN PyObject *_wrap_ListEvent_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28137 PyObject *resultobj = 0;
28138 wxListEvent *arg1 = (wxListEvent *) 0 ;
28139 long result;
28140 void *argp1 = 0 ;
28141 int res1 = 0 ;
28142 PyObject *swig_obj[1] ;
28143
28144 if (!args) SWIG_fail;
28145 swig_obj[0] = args;
28146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28147 if (!SWIG_IsOK(res1)) {
28148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetMask" "', expected argument " "1"" of type '" "wxListEvent *""'");
28149 }
28150 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28151 {
28152 PyThreadState* __tstate = wxPyBeginAllowThreads();
28153 result = (long)(arg1)->GetMask();
28154 wxPyEndAllowThreads(__tstate);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 resultobj = SWIG_From_long(static_cast< long >(result));
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 SWIGINTERN PyObject *_wrap_ListEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 PyObject *resultobj = 0;
28166 wxListEvent *arg1 = (wxListEvent *) 0 ;
28167 wxListItem *result = 0 ;
28168 void *argp1 = 0 ;
28169 int res1 = 0 ;
28170 PyObject *swig_obj[1] ;
28171
28172 if (!args) SWIG_fail;
28173 swig_obj[0] = args;
28174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetItem" "', expected argument " "1"" of type '" "wxListEvent *""'");
28177 }
28178 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28179 {
28180 PyThreadState* __tstate = wxPyBeginAllowThreads();
28181 {
28182 wxListItem const &_result_ref = (arg1)->GetItem();
28183 result = (wxListItem *) &_result_ref;
28184 }
28185 wxPyEndAllowThreads(__tstate);
28186 if (PyErr_Occurred()) SWIG_fail;
28187 }
28188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListItem, 0 | 0 );
28189 return resultobj;
28190 fail:
28191 return NULL;
28192 }
28193
28194
28195 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28196 PyObject *resultobj = 0;
28197 wxListEvent *arg1 = (wxListEvent *) 0 ;
28198 long result;
28199 void *argp1 = 0 ;
28200 int res1 = 0 ;
28201 PyObject *swig_obj[1] ;
28202
28203 if (!args) SWIG_fail;
28204 swig_obj[0] = args;
28205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28206 if (!SWIG_IsOK(res1)) {
28207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheFrom" "', expected argument " "1"" of type '" "wxListEvent *""'");
28208 }
28209 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28210 {
28211 PyThreadState* __tstate = wxPyBeginAllowThreads();
28212 result = (long)(arg1)->GetCacheFrom();
28213 wxPyEndAllowThreads(__tstate);
28214 if (PyErr_Occurred()) SWIG_fail;
28215 }
28216 resultobj = SWIG_From_long(static_cast< long >(result));
28217 return resultobj;
28218 fail:
28219 return NULL;
28220 }
28221
28222
28223 SWIGINTERN PyObject *_wrap_ListEvent_GetCacheTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28224 PyObject *resultobj = 0;
28225 wxListEvent *arg1 = (wxListEvent *) 0 ;
28226 long result;
28227 void *argp1 = 0 ;
28228 int res1 = 0 ;
28229 PyObject *swig_obj[1] ;
28230
28231 if (!args) SWIG_fail;
28232 swig_obj[0] = args;
28233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28234 if (!SWIG_IsOK(res1)) {
28235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_GetCacheTo" "', expected argument " "1"" of type '" "wxListEvent *""'");
28236 }
28237 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28238 {
28239 PyThreadState* __tstate = wxPyBeginAllowThreads();
28240 result = (long)(arg1)->GetCacheTo();
28241 wxPyEndAllowThreads(__tstate);
28242 if (PyErr_Occurred()) SWIG_fail;
28243 }
28244 resultobj = SWIG_From_long(static_cast< long >(result));
28245 return resultobj;
28246 fail:
28247 return NULL;
28248 }
28249
28250
28251 SWIGINTERN PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28252 PyObject *resultobj = 0;
28253 wxListEvent *arg1 = (wxListEvent *) 0 ;
28254 bool result;
28255 void *argp1 = 0 ;
28256 int res1 = 0 ;
28257 PyObject *swig_obj[1] ;
28258
28259 if (!args) SWIG_fail;
28260 swig_obj[0] = args;
28261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28262 if (!SWIG_IsOK(res1)) {
28263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxListEvent const *""'");
28264 }
28265 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28266 {
28267 PyThreadState* __tstate = wxPyBeginAllowThreads();
28268 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
28269 wxPyEndAllowThreads(__tstate);
28270 if (PyErr_Occurred()) SWIG_fail;
28271 }
28272 {
28273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28274 }
28275 return resultobj;
28276 fail:
28277 return NULL;
28278 }
28279
28280
28281 SWIGINTERN PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28282 PyObject *resultobj = 0;
28283 wxListEvent *arg1 = (wxListEvent *) 0 ;
28284 bool arg2 ;
28285 void *argp1 = 0 ;
28286 int res1 = 0 ;
28287 bool val2 ;
28288 int ecode2 = 0 ;
28289 PyObject * obj0 = 0 ;
28290 PyObject * obj1 = 0 ;
28291 char * kwnames[] = {
28292 (char *) "self",(char *) "editCancelled", NULL
28293 };
28294
28295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
28296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListEvent, 0 | 0 );
28297 if (!SWIG_IsOK(res1)) {
28298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxListEvent *""'");
28299 }
28300 arg1 = reinterpret_cast< wxListEvent * >(argp1);
28301 ecode2 = SWIG_AsVal_bool(obj1, &val2);
28302 if (!SWIG_IsOK(ecode2)) {
28303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
28304 }
28305 arg2 = static_cast< bool >(val2);
28306 {
28307 PyThreadState* __tstate = wxPyBeginAllowThreads();
28308 (arg1)->SetEditCanceled(arg2);
28309 wxPyEndAllowThreads(__tstate);
28310 if (PyErr_Occurred()) SWIG_fail;
28311 }
28312 resultobj = SWIG_Py_Void();
28313 return resultobj;
28314 fail:
28315 return NULL;
28316 }
28317
28318
28319 SWIGINTERN PyObject *ListEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28320 PyObject *obj;
28321 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28322 SWIG_TypeNewClientData(SWIGTYPE_p_wxListEvent, SWIG_NewClientData(obj));
28323 return SWIG_Py_Void();
28324 }
28325
28326 SWIGINTERN PyObject *ListEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28327 return SWIG_Python_InitShadowInstance(args);
28328 }
28329
28330 SWIGINTERN PyObject *_wrap_new_ListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28331 PyObject *resultobj = 0;
28332 wxWindow *arg1 = (wxWindow *) 0 ;
28333 int arg2 = (int) -1 ;
28334 wxPoint const &arg3_defvalue = wxDefaultPosition ;
28335 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
28336 wxSize const &arg4_defvalue = wxDefaultSize ;
28337 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
28338 long arg5 = (long) wxLC_ICON ;
28339 wxValidator const &arg6_defvalue = wxDefaultValidator ;
28340 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
28341 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
28342 wxString *arg7 = (wxString *) &arg7_defvalue ;
28343 wxPyListCtrl *result = 0 ;
28344 void *argp1 = 0 ;
28345 int res1 = 0 ;
28346 int val2 ;
28347 int ecode2 = 0 ;
28348 wxPoint temp3 ;
28349 wxSize temp4 ;
28350 long val5 ;
28351 int ecode5 = 0 ;
28352 void *argp6 = 0 ;
28353 int res6 = 0 ;
28354 bool temp7 = false ;
28355 PyObject * obj0 = 0 ;
28356 PyObject * obj1 = 0 ;
28357 PyObject * obj2 = 0 ;
28358 PyObject * obj3 = 0 ;
28359 PyObject * obj4 = 0 ;
28360 PyObject * obj5 = 0 ;
28361 PyObject * obj6 = 0 ;
28362 char * kwnames[] = {
28363 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28364 };
28365
28366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
28368 if (!SWIG_IsOK(res1)) {
28369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
28370 }
28371 arg1 = reinterpret_cast< wxWindow * >(argp1);
28372 if (obj1) {
28373 ecode2 = SWIG_AsVal_int(obj1, &val2);
28374 if (!SWIG_IsOK(ecode2)) {
28375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListCtrl" "', expected argument " "2"" of type '" "int""'");
28376 }
28377 arg2 = static_cast< int >(val2);
28378 }
28379 if (obj2) {
28380 {
28381 arg3 = &temp3;
28382 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28383 }
28384 }
28385 if (obj3) {
28386 {
28387 arg4 = &temp4;
28388 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
28389 }
28390 }
28391 if (obj4) {
28392 ecode5 = SWIG_AsVal_long(obj4, &val5);
28393 if (!SWIG_IsOK(ecode5)) {
28394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListCtrl" "', expected argument " "5"" of type '" "long""'");
28395 }
28396 arg5 = static_cast< long >(val5);
28397 }
28398 if (obj5) {
28399 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
28400 if (!SWIG_IsOK(res6)) {
28401 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28402 }
28403 if (!argp6) {
28404 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
28405 }
28406 arg6 = reinterpret_cast< wxValidator * >(argp6);
28407 }
28408 if (obj6) {
28409 {
28410 arg7 = wxString_in_helper(obj6);
28411 if (arg7 == NULL) SWIG_fail;
28412 temp7 = true;
28413 }
28414 }
28415 {
28416 if (!wxPyCheckForApp()) SWIG_fail;
28417 PyThreadState* __tstate = wxPyBeginAllowThreads();
28418 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
28419 wxPyEndAllowThreads(__tstate);
28420 if (PyErr_Occurred()) SWIG_fail;
28421 }
28422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_NEW | 0 );
28423 {
28424 if (temp7)
28425 delete arg7;
28426 }
28427 return resultobj;
28428 fail:
28429 {
28430 if (temp7)
28431 delete arg7;
28432 }
28433 return NULL;
28434 }
28435
28436
28437 SWIGINTERN PyObject *_wrap_new_PreListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28438 PyObject *resultobj = 0;
28439 wxPyListCtrl *result = 0 ;
28440
28441 if (!SWIG_Python_UnpackTuple(args,"new_PreListCtrl",0,0,0)) SWIG_fail;
28442 {
28443 if (!wxPyCheckForApp()) SWIG_fail;
28444 PyThreadState* __tstate = wxPyBeginAllowThreads();
28445 result = (wxPyListCtrl *)new wxPyListCtrl();
28446 wxPyEndAllowThreads(__tstate);
28447 if (PyErr_Occurred()) SWIG_fail;
28448 }
28449 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyListCtrl, SWIG_POINTER_OWN | 0 );
28450 return resultobj;
28451 fail:
28452 return NULL;
28453 }
28454
28455
28456 SWIGINTERN PyObject *_wrap_ListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28457 PyObject *resultobj = 0;
28458 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28459 wxWindow *arg2 = (wxWindow *) 0 ;
28460 int arg3 = (int) -1 ;
28461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28463 wxSize const &arg5_defvalue = wxDefaultSize ;
28464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28465 long arg6 = (long) wxLC_ICON ;
28466 wxValidator const &arg7_defvalue = wxDefaultValidator ;
28467 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
28468 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
28469 wxString *arg8 = (wxString *) &arg8_defvalue ;
28470 bool result;
28471 void *argp1 = 0 ;
28472 int res1 = 0 ;
28473 void *argp2 = 0 ;
28474 int res2 = 0 ;
28475 int val3 ;
28476 int ecode3 = 0 ;
28477 wxPoint temp4 ;
28478 wxSize temp5 ;
28479 long val6 ;
28480 int ecode6 = 0 ;
28481 void *argp7 = 0 ;
28482 int res7 = 0 ;
28483 bool temp8 = false ;
28484 PyObject * obj0 = 0 ;
28485 PyObject * obj1 = 0 ;
28486 PyObject * obj2 = 0 ;
28487 PyObject * obj3 = 0 ;
28488 PyObject * obj4 = 0 ;
28489 PyObject * obj5 = 0 ;
28490 PyObject * obj6 = 0 ;
28491 PyObject * obj7 = 0 ;
28492 char * kwnames[] = {
28493 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
28494 };
28495
28496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28498 if (!SWIG_IsOK(res1)) {
28499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Create" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28500 }
28501 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28502 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
28503 if (!SWIG_IsOK(res2)) {
28504 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
28505 }
28506 arg2 = reinterpret_cast< wxWindow * >(argp2);
28507 if (obj2) {
28508 ecode3 = SWIG_AsVal_int(obj2, &val3);
28509 if (!SWIG_IsOK(ecode3)) {
28510 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
28511 }
28512 arg3 = static_cast< int >(val3);
28513 }
28514 if (obj3) {
28515 {
28516 arg4 = &temp4;
28517 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28518 }
28519 }
28520 if (obj4) {
28521 {
28522 arg5 = &temp5;
28523 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28524 }
28525 }
28526 if (obj5) {
28527 ecode6 = SWIG_AsVal_long(obj5, &val6);
28528 if (!SWIG_IsOK(ecode6)) {
28529 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
28530 }
28531 arg6 = static_cast< long >(val6);
28532 }
28533 if (obj6) {
28534 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
28535 if (!SWIG_IsOK(res7)) {
28536 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28537 }
28538 if (!argp7) {
28539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
28540 }
28541 arg7 = reinterpret_cast< wxValidator * >(argp7);
28542 }
28543 if (obj7) {
28544 {
28545 arg8 = wxString_in_helper(obj7);
28546 if (arg8 == NULL) SWIG_fail;
28547 temp8 = true;
28548 }
28549 }
28550 {
28551 PyThreadState* __tstate = wxPyBeginAllowThreads();
28552 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
28553 wxPyEndAllowThreads(__tstate);
28554 if (PyErr_Occurred()) SWIG_fail;
28555 }
28556 {
28557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28558 }
28559 {
28560 if (temp8)
28561 delete arg8;
28562 }
28563 return resultobj;
28564 fail:
28565 {
28566 if (temp8)
28567 delete arg8;
28568 }
28569 return NULL;
28570 }
28571
28572
28573 SWIGINTERN PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28574 PyObject *resultobj = 0;
28575 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28576 PyObject *arg2 = (PyObject *) 0 ;
28577 PyObject *arg3 = (PyObject *) 0 ;
28578 void *argp1 = 0 ;
28579 int res1 = 0 ;
28580 PyObject * obj0 = 0 ;
28581 PyObject * obj1 = 0 ;
28582 PyObject * obj2 = 0 ;
28583 char * kwnames[] = {
28584 (char *) "self",(char *) "self",(char *) "_class", NULL
28585 };
28586
28587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28589 if (!SWIG_IsOK(res1)) {
28590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28591 }
28592 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28593 arg2 = obj1;
28594 arg3 = obj2;
28595 {
28596 PyThreadState* __tstate = wxPyBeginAllowThreads();
28597 (arg1)->_setCallbackInfo(arg2,arg3);
28598 wxPyEndAllowThreads(__tstate);
28599 if (PyErr_Occurred()) SWIG_fail;
28600 }
28601 resultobj = SWIG_Py_Void();
28602 return resultobj;
28603 fail:
28604 return NULL;
28605 }
28606
28607
28608 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28609 PyObject *resultobj = 0;
28610 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28611 int arg2 ;
28612 wxListItem *result = 0 ;
28613 void *argp1 = 0 ;
28614 int res1 = 0 ;
28615 int val2 ;
28616 int ecode2 = 0 ;
28617 PyObject * obj0 = 0 ;
28618 PyObject * obj1 = 0 ;
28619 char * kwnames[] = {
28620 (char *) "self",(char *) "col", NULL
28621 };
28622
28623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) SWIG_fail;
28624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28625 if (!SWIG_IsOK(res1)) {
28626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28627 }
28628 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28629 ecode2 = SWIG_AsVal_int(obj1, &val2);
28630 if (!SWIG_IsOK(ecode2)) {
28631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumn" "', expected argument " "2"" of type '" "int""'");
28632 }
28633 arg2 = static_cast< int >(val2);
28634 {
28635 PyThreadState* __tstate = wxPyBeginAllowThreads();
28636 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
28637 wxPyEndAllowThreads(__tstate);
28638 if (PyErr_Occurred()) SWIG_fail;
28639 }
28640 {
28641 resultobj = wxPyMake_wxObject(result, (bool)0);
28642 }
28643 return resultobj;
28644 fail:
28645 return NULL;
28646 }
28647
28648
28649 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28650 PyObject *resultobj = 0;
28651 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28652 int arg2 ;
28653 wxListItem *arg3 = 0 ;
28654 bool result;
28655 void *argp1 = 0 ;
28656 int res1 = 0 ;
28657 int val2 ;
28658 int ecode2 = 0 ;
28659 void *argp3 = 0 ;
28660 int res3 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 PyObject * obj2 = 0 ;
28664 char * kwnames[] = {
28665 (char *) "self",(char *) "col",(char *) "item", NULL
28666 };
28667
28668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28670 if (!SWIG_IsOK(res1)) {
28671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28672 }
28673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28674 ecode2 = SWIG_AsVal_int(obj1, &val2);
28675 if (!SWIG_IsOK(ecode2)) {
28676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumn" "', expected argument " "2"" of type '" "int""'");
28677 }
28678 arg2 = static_cast< int >(val2);
28679 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
28680 if (!SWIG_IsOK(res3)) {
28681 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28682 }
28683 if (!argp3) {
28684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetColumn" "', expected argument " "3"" of type '" "wxListItem &""'");
28685 }
28686 arg3 = reinterpret_cast< wxListItem * >(argp3);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 result = (bool)(arg1)->SetColumn(arg2,*arg3);
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 {
28694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28695 }
28696 return resultobj;
28697 fail:
28698 return NULL;
28699 }
28700
28701
28702 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28703 PyObject *resultobj = 0;
28704 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28705 int arg2 ;
28706 int result;
28707 void *argp1 = 0 ;
28708 int res1 = 0 ;
28709 int val2 ;
28710 int ecode2 = 0 ;
28711 PyObject * obj0 = 0 ;
28712 PyObject * obj1 = 0 ;
28713 char * kwnames[] = {
28714 (char *) "self",(char *) "col", NULL
28715 };
28716
28717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) SWIG_fail;
28718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28719 if (!SWIG_IsOK(res1)) {
28720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28721 }
28722 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28723 ecode2 = SWIG_AsVal_int(obj1, &val2);
28724 if (!SWIG_IsOK(ecode2)) {
28725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28726 }
28727 arg2 = static_cast< int >(val2);
28728 {
28729 PyThreadState* __tstate = wxPyBeginAllowThreads();
28730 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
28731 wxPyEndAllowThreads(__tstate);
28732 if (PyErr_Occurred()) SWIG_fail;
28733 }
28734 resultobj = SWIG_From_int(static_cast< int >(result));
28735 return resultobj;
28736 fail:
28737 return NULL;
28738 }
28739
28740
28741 SWIGINTERN PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28742 PyObject *resultobj = 0;
28743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28744 int arg2 ;
28745 int arg3 ;
28746 bool result;
28747 void *argp1 = 0 ;
28748 int res1 = 0 ;
28749 int val2 ;
28750 int ecode2 = 0 ;
28751 int val3 ;
28752 int ecode3 = 0 ;
28753 PyObject * obj0 = 0 ;
28754 PyObject * obj1 = 0 ;
28755 PyObject * obj2 = 0 ;
28756 char * kwnames[] = {
28757 (char *) "self",(char *) "col",(char *) "width", NULL
28758 };
28759
28760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28762 if (!SWIG_IsOK(res1)) {
28763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28764 }
28765 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28766 ecode2 = SWIG_AsVal_int(obj1, &val2);
28767 if (!SWIG_IsOK(ecode2)) {
28768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "2"" of type '" "int""'");
28769 }
28770 arg2 = static_cast< int >(val2);
28771 ecode3 = SWIG_AsVal_int(obj2, &val3);
28772 if (!SWIG_IsOK(ecode3)) {
28773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetColumnWidth" "', expected argument " "3"" of type '" "int""'");
28774 }
28775 arg3 = static_cast< int >(val3);
28776 {
28777 PyThreadState* __tstate = wxPyBeginAllowThreads();
28778 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
28779 wxPyEndAllowThreads(__tstate);
28780 if (PyErr_Occurred()) SWIG_fail;
28781 }
28782 {
28783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28784 }
28785 return resultobj;
28786 fail:
28787 return NULL;
28788 }
28789
28790
28791 SWIGINTERN PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28792 PyObject *resultobj = 0;
28793 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28794 int result;
28795 void *argp1 = 0 ;
28796 int res1 = 0 ;
28797 PyObject *swig_obj[1] ;
28798
28799 if (!args) SWIG_fail;
28800 swig_obj[0] = args;
28801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28802 if (!SWIG_IsOK(res1)) {
28803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetCountPerPage" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28804 }
28805 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28806 {
28807 PyThreadState* __tstate = wxPyBeginAllowThreads();
28808 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
28809 wxPyEndAllowThreads(__tstate);
28810 if (PyErr_Occurred()) SWIG_fail;
28811 }
28812 resultobj = SWIG_From_int(static_cast< int >(result));
28813 return resultobj;
28814 fail:
28815 return NULL;
28816 }
28817
28818
28819 SWIGINTERN PyObject *_wrap_ListCtrl_GetViewRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28820 PyObject *resultobj = 0;
28821 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28822 wxRect result;
28823 void *argp1 = 0 ;
28824 int res1 = 0 ;
28825 PyObject *swig_obj[1] ;
28826
28827 if (!args) SWIG_fail;
28828 swig_obj[0] = args;
28829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28830 if (!SWIG_IsOK(res1)) {
28831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetViewRect" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28832 }
28833 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28834 {
28835 PyThreadState* __tstate = wxPyBeginAllowThreads();
28836 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
28837 wxPyEndAllowThreads(__tstate);
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
28841 return resultobj;
28842 fail:
28843 return NULL;
28844 }
28845
28846
28847 SWIGINTERN PyObject *_wrap_ListCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28848 PyObject *resultobj = 0;
28849 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28850 wxTextCtrl *result = 0 ;
28851 void *argp1 = 0 ;
28852 int res1 = 0 ;
28853 PyObject *swig_obj[1] ;
28854
28855 if (!args) SWIG_fail;
28856 swig_obj[0] = args;
28857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28858 if (!SWIG_IsOK(res1)) {
28859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
28860 }
28861 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28862 {
28863 PyThreadState* __tstate = wxPyBeginAllowThreads();
28864 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
28865 wxPyEndAllowThreads(__tstate);
28866 if (PyErr_Occurred()) SWIG_fail;
28867 }
28868 {
28869 resultobj = wxPyMake_wxObject(result, 0);
28870 }
28871 return resultobj;
28872 fail:
28873 return NULL;
28874 }
28875
28876
28877 SWIGINTERN PyObject *_wrap_ListCtrl_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28878 PyObject *resultobj = 0;
28879 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28880 long arg2 ;
28881 int arg3 = (int) 0 ;
28882 wxListItem *result = 0 ;
28883 void *argp1 = 0 ;
28884 int res1 = 0 ;
28885 long val2 ;
28886 int ecode2 = 0 ;
28887 int val3 ;
28888 int ecode3 = 0 ;
28889 PyObject * obj0 = 0 ;
28890 PyObject * obj1 = 0 ;
28891 PyObject * obj2 = 0 ;
28892 char * kwnames[] = {
28893 (char *) "self",(char *) "itemId",(char *) "col", NULL
28894 };
28895
28896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28898 if (!SWIG_IsOK(res1)) {
28899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28900 }
28901 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28902 ecode2 = SWIG_AsVal_long(obj1, &val2);
28903 if (!SWIG_IsOK(ecode2)) {
28904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItem" "', expected argument " "2"" of type '" "long""'");
28905 }
28906 arg2 = static_cast< long >(val2);
28907 if (obj2) {
28908 ecode3 = SWIG_AsVal_int(obj2, &val3);
28909 if (!SWIG_IsOK(ecode3)) {
28910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItem" "', expected argument " "3"" of type '" "int""'");
28911 }
28912 arg3 = static_cast< int >(val3);
28913 }
28914 {
28915 PyThreadState* __tstate = wxPyBeginAllowThreads();
28916 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
28917 wxPyEndAllowThreads(__tstate);
28918 if (PyErr_Occurred()) SWIG_fail;
28919 }
28920 {
28921 resultobj = wxPyMake_wxObject(result, (bool)0);
28922 }
28923 return resultobj;
28924 fail:
28925 return NULL;
28926 }
28927
28928
28929 SWIGINTERN PyObject *_wrap_ListCtrl_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28930 PyObject *resultobj = 0;
28931 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28932 wxListItem *arg2 = 0 ;
28933 bool result;
28934 void *argp1 = 0 ;
28935 int res1 = 0 ;
28936 void *argp2 = 0 ;
28937 int res2 = 0 ;
28938 PyObject * obj0 = 0 ;
28939 PyObject * obj1 = 0 ;
28940 char * kwnames[] = {
28941 (char *) "self",(char *) "info", NULL
28942 };
28943
28944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
28945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
28946 if (!SWIG_IsOK(res1)) {
28947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
28948 }
28949 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
28950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
28951 if (!SWIG_IsOK(res2)) {
28952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28953 }
28954 if (!argp2) {
28955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItem" "', expected argument " "2"" of type '" "wxListItem &""'");
28956 }
28957 arg2 = reinterpret_cast< wxListItem * >(argp2);
28958 {
28959 PyThreadState* __tstate = wxPyBeginAllowThreads();
28960 result = (bool)(arg1)->SetItem(*arg2);
28961 wxPyEndAllowThreads(__tstate);
28962 if (PyErr_Occurred()) SWIG_fail;
28963 }
28964 {
28965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28966 }
28967 return resultobj;
28968 fail:
28969 return NULL;
28970 }
28971
28972
28973 SWIGINTERN PyObject *_wrap_ListCtrl_SetStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28974 PyObject *resultobj = 0;
28975 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
28976 long arg2 ;
28977 int arg3 ;
28978 wxString *arg4 = 0 ;
28979 int arg5 = (int) -1 ;
28980 long result;
28981 void *argp1 = 0 ;
28982 int res1 = 0 ;
28983 long val2 ;
28984 int ecode2 = 0 ;
28985 int val3 ;
28986 int ecode3 = 0 ;
28987 bool temp4 = false ;
28988 int val5 ;
28989 int ecode5 = 0 ;
28990 PyObject * obj0 = 0 ;
28991 PyObject * obj1 = 0 ;
28992 PyObject * obj2 = 0 ;
28993 PyObject * obj3 = 0 ;
28994 PyObject * obj4 = 0 ;
28995 char * kwnames[] = {
28996 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
28997 };
28998
28999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29001 if (!SWIG_IsOK(res1)) {
29002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29003 }
29004 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29005 ecode2 = SWIG_AsVal_long(obj1, &val2);
29006 if (!SWIG_IsOK(ecode2)) {
29007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetStringItem" "', expected argument " "2"" of type '" "long""'");
29008 }
29009 arg2 = static_cast< long >(val2);
29010 ecode3 = SWIG_AsVal_int(obj2, &val3);
29011 if (!SWIG_IsOK(ecode3)) {
29012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetStringItem" "', expected argument " "3"" of type '" "int""'");
29013 }
29014 arg3 = static_cast< int >(val3);
29015 {
29016 arg4 = wxString_in_helper(obj3);
29017 if (arg4 == NULL) SWIG_fail;
29018 temp4 = true;
29019 }
29020 if (obj4) {
29021 ecode5 = SWIG_AsVal_int(obj4, &val5);
29022 if (!SWIG_IsOK(ecode5)) {
29023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_SetStringItem" "', expected argument " "5"" of type '" "int""'");
29024 }
29025 arg5 = static_cast< int >(val5);
29026 }
29027 {
29028 PyThreadState* __tstate = wxPyBeginAllowThreads();
29029 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
29030 wxPyEndAllowThreads(__tstate);
29031 if (PyErr_Occurred()) SWIG_fail;
29032 }
29033 resultobj = SWIG_From_long(static_cast< long >(result));
29034 {
29035 if (temp4)
29036 delete arg4;
29037 }
29038 return resultobj;
29039 fail:
29040 {
29041 if (temp4)
29042 delete arg4;
29043 }
29044 return NULL;
29045 }
29046
29047
29048 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29049 PyObject *resultobj = 0;
29050 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29051 long arg2 ;
29052 long arg3 ;
29053 int result;
29054 void *argp1 = 0 ;
29055 int res1 = 0 ;
29056 long val2 ;
29057 int ecode2 = 0 ;
29058 long val3 ;
29059 int ecode3 = 0 ;
29060 PyObject * obj0 = 0 ;
29061 PyObject * obj1 = 0 ;
29062 PyObject * obj2 = 0 ;
29063 char * kwnames[] = {
29064 (char *) "self",(char *) "item",(char *) "stateMask", NULL
29065 };
29066
29067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29069 if (!SWIG_IsOK(res1)) {
29070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29071 }
29072 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29073 ecode2 = SWIG_AsVal_long(obj1, &val2);
29074 if (!SWIG_IsOK(ecode2)) {
29075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemState" "', expected argument " "2"" of type '" "long""'");
29076 }
29077 arg2 = static_cast< long >(val2);
29078 ecode3 = SWIG_AsVal_long(obj2, &val3);
29079 if (!SWIG_IsOK(ecode3)) {
29080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemState" "', expected argument " "3"" of type '" "long""'");
29081 }
29082 arg3 = static_cast< long >(val3);
29083 {
29084 PyThreadState* __tstate = wxPyBeginAllowThreads();
29085 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
29086 wxPyEndAllowThreads(__tstate);
29087 if (PyErr_Occurred()) SWIG_fail;
29088 }
29089 resultobj = SWIG_From_int(static_cast< int >(result));
29090 return resultobj;
29091 fail:
29092 return NULL;
29093 }
29094
29095
29096 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemState(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29097 PyObject *resultobj = 0;
29098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29099 long arg2 ;
29100 long arg3 ;
29101 long arg4 ;
29102 bool result;
29103 void *argp1 = 0 ;
29104 int res1 = 0 ;
29105 long val2 ;
29106 int ecode2 = 0 ;
29107 long val3 ;
29108 int ecode3 = 0 ;
29109 long val4 ;
29110 int ecode4 = 0 ;
29111 PyObject * obj0 = 0 ;
29112 PyObject * obj1 = 0 ;
29113 PyObject * obj2 = 0 ;
29114 PyObject * obj3 = 0 ;
29115 char * kwnames[] = {
29116 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
29117 };
29118
29119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29121 if (!SWIG_IsOK(res1)) {
29122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemState" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29123 }
29124 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29125 ecode2 = SWIG_AsVal_long(obj1, &val2);
29126 if (!SWIG_IsOK(ecode2)) {
29127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemState" "', expected argument " "2"" of type '" "long""'");
29128 }
29129 arg2 = static_cast< long >(val2);
29130 ecode3 = SWIG_AsVal_long(obj2, &val3);
29131 if (!SWIG_IsOK(ecode3)) {
29132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemState" "', expected argument " "3"" of type '" "long""'");
29133 }
29134 arg3 = static_cast< long >(val3);
29135 ecode4 = SWIG_AsVal_long(obj3, &val4);
29136 if (!SWIG_IsOK(ecode4)) {
29137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemState" "', expected argument " "4"" of type '" "long""'");
29138 }
29139 arg4 = static_cast< long >(val4);
29140 {
29141 PyThreadState* __tstate = wxPyBeginAllowThreads();
29142 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
29143 wxPyEndAllowThreads(__tstate);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 }
29146 {
29147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29148 }
29149 return resultobj;
29150 fail:
29151 return NULL;
29152 }
29153
29154
29155 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29156 PyObject *resultobj = 0;
29157 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29158 long arg2 ;
29159 int arg3 ;
29160 int arg4 = (int) -1 ;
29161 bool result;
29162 void *argp1 = 0 ;
29163 int res1 = 0 ;
29164 long val2 ;
29165 int ecode2 = 0 ;
29166 int val3 ;
29167 int ecode3 = 0 ;
29168 int val4 ;
29169 int ecode4 = 0 ;
29170 PyObject * obj0 = 0 ;
29171 PyObject * obj1 = 0 ;
29172 PyObject * obj2 = 0 ;
29173 PyObject * obj3 = 0 ;
29174 char * kwnames[] = {
29175 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
29176 };
29177
29178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29180 if (!SWIG_IsOK(res1)) {
29181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29182 }
29183 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29184 ecode2 = SWIG_AsVal_long(obj1, &val2);
29185 if (!SWIG_IsOK(ecode2)) {
29186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemImage" "', expected argument " "2"" of type '" "long""'");
29187 }
29188 arg2 = static_cast< long >(val2);
29189 ecode3 = SWIG_AsVal_int(obj2, &val3);
29190 if (!SWIG_IsOK(ecode3)) {
29191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
29192 }
29193 arg3 = static_cast< int >(val3);
29194 if (obj3) {
29195 ecode4 = SWIG_AsVal_int(obj3, &val4);
29196 if (!SWIG_IsOK(ecode4)) {
29197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemImage" "', expected argument " "4"" of type '" "int""'");
29198 }
29199 arg4 = static_cast< int >(val4);
29200 }
29201 {
29202 PyThreadState* __tstate = wxPyBeginAllowThreads();
29203 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
29204 wxPyEndAllowThreads(__tstate);
29205 if (PyErr_Occurred()) SWIG_fail;
29206 }
29207 {
29208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29209 }
29210 return resultobj;
29211 fail:
29212 return NULL;
29213 }
29214
29215
29216 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29217 PyObject *resultobj = 0;
29218 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29219 long arg2 ;
29220 long arg3 ;
29221 int arg4 ;
29222 bool result;
29223 void *argp1 = 0 ;
29224 int res1 = 0 ;
29225 long val2 ;
29226 int ecode2 = 0 ;
29227 long val3 ;
29228 int ecode3 = 0 ;
29229 int val4 ;
29230 int ecode4 = 0 ;
29231 PyObject * obj0 = 0 ;
29232 PyObject * obj1 = 0 ;
29233 PyObject * obj2 = 0 ;
29234 PyObject * obj3 = 0 ;
29235 char * kwnames[] = {
29236 (char *) "self",(char *) "item",(char *) "column",(char *) "image", NULL
29237 };
29238
29239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemColumnImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29241 if (!SWIG_IsOK(res1)) {
29242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29243 }
29244 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29245 ecode2 = SWIG_AsVal_long(obj1, &val2);
29246 if (!SWIG_IsOK(ecode2)) {
29247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "2"" of type '" "long""'");
29248 }
29249 arg2 = static_cast< long >(val2);
29250 ecode3 = SWIG_AsVal_long(obj2, &val3);
29251 if (!SWIG_IsOK(ecode3)) {
29252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "3"" of type '" "long""'");
29253 }
29254 arg3 = static_cast< long >(val3);
29255 ecode4 = SWIG_AsVal_int(obj3, &val4);
29256 if (!SWIG_IsOK(ecode4)) {
29257 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_SetItemColumnImage" "', expected argument " "4"" of type '" "int""'");
29258 }
29259 arg4 = static_cast< int >(val4);
29260 {
29261 PyThreadState* __tstate = wxPyBeginAllowThreads();
29262 result = (bool)(arg1)->SetItemColumnImage(arg2,arg3,arg4);
29263 wxPyEndAllowThreads(__tstate);
29264 if (PyErr_Occurred()) SWIG_fail;
29265 }
29266 {
29267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29268 }
29269 return resultobj;
29270 fail:
29271 return NULL;
29272 }
29273
29274
29275 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29276 PyObject *resultobj = 0;
29277 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29278 long arg2 ;
29279 wxString result;
29280 void *argp1 = 0 ;
29281 int res1 = 0 ;
29282 long val2 ;
29283 int ecode2 = 0 ;
29284 PyObject * obj0 = 0 ;
29285 PyObject * obj1 = 0 ;
29286 char * kwnames[] = {
29287 (char *) "self",(char *) "item", NULL
29288 };
29289
29290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
29291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29292 if (!SWIG_IsOK(res1)) {
29293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29294 }
29295 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29296 ecode2 = SWIG_AsVal_long(obj1, &val2);
29297 if (!SWIG_IsOK(ecode2)) {
29298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemText" "', expected argument " "2"" of type '" "long""'");
29299 }
29300 arg2 = static_cast< long >(val2);
29301 {
29302 PyThreadState* __tstate = wxPyBeginAllowThreads();
29303 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
29304 wxPyEndAllowThreads(__tstate);
29305 if (PyErr_Occurred()) SWIG_fail;
29306 }
29307 {
29308 #if wxUSE_UNICODE
29309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29310 #else
29311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29312 #endif
29313 }
29314 return resultobj;
29315 fail:
29316 return NULL;
29317 }
29318
29319
29320 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29321 PyObject *resultobj = 0;
29322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29323 long arg2 ;
29324 wxString *arg3 = 0 ;
29325 void *argp1 = 0 ;
29326 int res1 = 0 ;
29327 long val2 ;
29328 int ecode2 = 0 ;
29329 bool temp3 = false ;
29330 PyObject * obj0 = 0 ;
29331 PyObject * obj1 = 0 ;
29332 PyObject * obj2 = 0 ;
29333 char * kwnames[] = {
29334 (char *) "self",(char *) "item",(char *) "str", NULL
29335 };
29336
29337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29339 if (!SWIG_IsOK(res1)) {
29340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29341 }
29342 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29343 ecode2 = SWIG_AsVal_long(obj1, &val2);
29344 if (!SWIG_IsOK(ecode2)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemText" "', expected argument " "2"" of type '" "long""'");
29346 }
29347 arg2 = static_cast< long >(val2);
29348 {
29349 arg3 = wxString_in_helper(obj2);
29350 if (arg3 == NULL) SWIG_fail;
29351 temp3 = true;
29352 }
29353 {
29354 PyThreadState* __tstate = wxPyBeginAllowThreads();
29355 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
29356 wxPyEndAllowThreads(__tstate);
29357 if (PyErr_Occurred()) SWIG_fail;
29358 }
29359 resultobj = SWIG_Py_Void();
29360 {
29361 if (temp3)
29362 delete arg3;
29363 }
29364 return resultobj;
29365 fail:
29366 {
29367 if (temp3)
29368 delete arg3;
29369 }
29370 return NULL;
29371 }
29372
29373
29374 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29375 PyObject *resultobj = 0;
29376 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29377 long arg2 ;
29378 long result;
29379 void *argp1 = 0 ;
29380 int res1 = 0 ;
29381 long val2 ;
29382 int ecode2 = 0 ;
29383 PyObject * obj0 = 0 ;
29384 PyObject * obj1 = 0 ;
29385 char * kwnames[] = {
29386 (char *) "self",(char *) "item", NULL
29387 };
29388
29389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
29390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29391 if (!SWIG_IsOK(res1)) {
29392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29393 }
29394 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29395 ecode2 = SWIG_AsVal_long(obj1, &val2);
29396 if (!SWIG_IsOK(ecode2)) {
29397 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemData" "', expected argument " "2"" of type '" "long""'");
29398 }
29399 arg2 = static_cast< long >(val2);
29400 {
29401 PyThreadState* __tstate = wxPyBeginAllowThreads();
29402 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
29403 wxPyEndAllowThreads(__tstate);
29404 if (PyErr_Occurred()) SWIG_fail;
29405 }
29406 resultobj = SWIG_From_long(static_cast< long >(result));
29407 return resultobj;
29408 fail:
29409 return NULL;
29410 }
29411
29412
29413 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29414 PyObject *resultobj = 0;
29415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29416 long arg2 ;
29417 long arg3 ;
29418 bool result;
29419 void *argp1 = 0 ;
29420 int res1 = 0 ;
29421 long val2 ;
29422 int ecode2 = 0 ;
29423 long val3 ;
29424 int ecode3 = 0 ;
29425 PyObject * obj0 = 0 ;
29426 PyObject * obj1 = 0 ;
29427 PyObject * obj2 = 0 ;
29428 char * kwnames[] = {
29429 (char *) "self",(char *) "item",(char *) "data", NULL
29430 };
29431
29432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29434 if (!SWIG_IsOK(res1)) {
29435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29436 }
29437 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29438 ecode2 = SWIG_AsVal_long(obj1, &val2);
29439 if (!SWIG_IsOK(ecode2)) {
29440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemData" "', expected argument " "2"" of type '" "long""'");
29441 }
29442 arg2 = static_cast< long >(val2);
29443 ecode3 = SWIG_AsVal_long(obj2, &val3);
29444 if (!SWIG_IsOK(ecode3)) {
29445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemData" "', expected argument " "3"" of type '" "long""'");
29446 }
29447 arg3 = static_cast< long >(val3);
29448 {
29449 PyThreadState* __tstate = wxPyBeginAllowThreads();
29450 result = (bool)(arg1)->SetItemData(arg2,arg3);
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 {
29455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29456 }
29457 return resultobj;
29458 fail:
29459 return NULL;
29460 }
29461
29462
29463 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29464 PyObject *resultobj = 0;
29465 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29466 long arg2 ;
29467 wxPoint result;
29468 void *argp1 = 0 ;
29469 int res1 = 0 ;
29470 long val2 ;
29471 int ecode2 = 0 ;
29472 PyObject * obj0 = 0 ;
29473 PyObject * obj1 = 0 ;
29474 char * kwnames[] = {
29475 (char *) "self",(char *) "item", NULL
29476 };
29477
29478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) SWIG_fail;
29479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29480 if (!SWIG_IsOK(res1)) {
29481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29482 }
29483 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29484 ecode2 = SWIG_AsVal_long(obj1, &val2);
29485 if (!SWIG_IsOK(ecode2)) {
29486 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemPosition" "', expected argument " "2"" of type '" "long""'");
29487 }
29488 arg2 = static_cast< long >(val2);
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
29492 wxPyEndAllowThreads(__tstate);
29493 if (PyErr_Occurred()) SWIG_fail;
29494 }
29495 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
29496 return resultobj;
29497 fail:
29498 return NULL;
29499 }
29500
29501
29502 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj = 0;
29504 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29505 long arg2 ;
29506 int arg3 = (int) wxLIST_RECT_BOUNDS ;
29507 wxRect result;
29508 void *argp1 = 0 ;
29509 int res1 = 0 ;
29510 long val2 ;
29511 int ecode2 = 0 ;
29512 int val3 ;
29513 int ecode3 = 0 ;
29514 PyObject * obj0 = 0 ;
29515 PyObject * obj1 = 0 ;
29516 PyObject * obj2 = 0 ;
29517 char * kwnames[] = {
29518 (char *) "self",(char *) "item",(char *) "code", NULL
29519 };
29520
29521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29523 if (!SWIG_IsOK(res1)) {
29524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemRect" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29525 }
29526 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29527 ecode2 = SWIG_AsVal_long(obj1, &val2);
29528 if (!SWIG_IsOK(ecode2)) {
29529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemRect" "', expected argument " "2"" of type '" "long""'");
29530 }
29531 arg2 = static_cast< long >(val2);
29532 if (obj2) {
29533 ecode3 = SWIG_AsVal_int(obj2, &val3);
29534 if (!SWIG_IsOK(ecode3)) {
29535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetItemRect" "', expected argument " "3"" of type '" "int""'");
29536 }
29537 arg3 = static_cast< int >(val3);
29538 }
29539 {
29540 PyThreadState* __tstate = wxPyBeginAllowThreads();
29541 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
29542 wxPyEndAllowThreads(__tstate);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 }
29545 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
29546 return resultobj;
29547 fail:
29548 return NULL;
29549 }
29550
29551
29552 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29553 PyObject *resultobj = 0;
29554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29555 long arg2 ;
29556 wxPoint *arg3 = 0 ;
29557 bool result;
29558 void *argp1 = 0 ;
29559 int res1 = 0 ;
29560 long val2 ;
29561 int ecode2 = 0 ;
29562 wxPoint temp3 ;
29563 PyObject * obj0 = 0 ;
29564 PyObject * obj1 = 0 ;
29565 PyObject * obj2 = 0 ;
29566 char * kwnames[] = {
29567 (char *) "self",(char *) "item",(char *) "pos", NULL
29568 };
29569
29570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29572 if (!SWIG_IsOK(res1)) {
29573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29574 }
29575 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29576 ecode2 = SWIG_AsVal_long(obj1, &val2);
29577 if (!SWIG_IsOK(ecode2)) {
29578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemPosition" "', expected argument " "2"" of type '" "long""'");
29579 }
29580 arg2 = static_cast< long >(val2);
29581 {
29582 arg3 = &temp3;
29583 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29584 }
29585 {
29586 PyThreadState* __tstate = wxPyBeginAllowThreads();
29587 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
29588 wxPyEndAllowThreads(__tstate);
29589 if (PyErr_Occurred()) SWIG_fail;
29590 }
29591 {
29592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29593 }
29594 return resultobj;
29595 fail:
29596 return NULL;
29597 }
29598
29599
29600 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29601 PyObject *resultobj = 0;
29602 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29603 int result;
29604 void *argp1 = 0 ;
29605 int res1 = 0 ;
29606 PyObject *swig_obj[1] ;
29607
29608 if (!args) SWIG_fail;
29609 swig_obj[0] = args;
29610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29611 if (!SWIG_IsOK(res1)) {
29612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29613 }
29614 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29615 {
29616 PyThreadState* __tstate = wxPyBeginAllowThreads();
29617 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
29618 wxPyEndAllowThreads(__tstate);
29619 if (PyErr_Occurred()) SWIG_fail;
29620 }
29621 resultobj = SWIG_From_int(static_cast< int >(result));
29622 return resultobj;
29623 fail:
29624 return NULL;
29625 }
29626
29627
29628 SWIGINTERN PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29629 PyObject *resultobj = 0;
29630 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29631 int result;
29632 void *argp1 = 0 ;
29633 int res1 = 0 ;
29634 PyObject *swig_obj[1] ;
29635
29636 if (!args) SWIG_fail;
29637 swig_obj[0] = args;
29638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29639 if (!SWIG_IsOK(res1)) {
29640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetColumnCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29641 }
29642 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29643 {
29644 PyThreadState* __tstate = wxPyBeginAllowThreads();
29645 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
29646 wxPyEndAllowThreads(__tstate);
29647 if (PyErr_Occurred()) SWIG_fail;
29648 }
29649 resultobj = SWIG_From_int(static_cast< int >(result));
29650 return resultobj;
29651 fail:
29652 return NULL;
29653 }
29654
29655
29656 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29657 PyObject *resultobj = 0;
29658 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29659 wxSize result;
29660 void *argp1 = 0 ;
29661 int res1 = 0 ;
29662 PyObject *swig_obj[1] ;
29663
29664 if (!args) SWIG_fail;
29665 swig_obj[0] = args;
29666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29667 if (!SWIG_IsOK(res1)) {
29668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29669 }
29670 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29671 {
29672 PyThreadState* __tstate = wxPyBeginAllowThreads();
29673 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
29674 wxPyEndAllowThreads(__tstate);
29675 if (PyErr_Occurred()) SWIG_fail;
29676 }
29677 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
29678 return resultobj;
29679 fail:
29680 return NULL;
29681 }
29682
29683
29684 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29685 PyObject *resultobj = 0;
29686 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29687 int arg2 ;
29688 bool arg3 = (bool) false ;
29689 void *argp1 = 0 ;
29690 int res1 = 0 ;
29691 int val2 ;
29692 int ecode2 = 0 ;
29693 bool val3 ;
29694 int ecode3 = 0 ;
29695 PyObject * obj0 = 0 ;
29696 PyObject * obj1 = 0 ;
29697 PyObject * obj2 = 0 ;
29698 char * kwnames[] = {
29699 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
29700 };
29701
29702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29704 if (!SWIG_IsOK(res1)) {
29705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29706 }
29707 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29708 ecode2 = SWIG_AsVal_int(obj1, &val2);
29709 if (!SWIG_IsOK(ecode2)) {
29710 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "2"" of type '" "int""'");
29711 }
29712 arg2 = static_cast< int >(val2);
29713 if (obj2) {
29714 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29715 if (!SWIG_IsOK(ecode3)) {
29716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetItemSpacing" "', expected argument " "3"" of type '" "bool""'");
29717 }
29718 arg3 = static_cast< bool >(val3);
29719 }
29720 {
29721 PyThreadState* __tstate = wxPyBeginAllowThreads();
29722 (arg1)->SetItemSpacing(arg2,arg3);
29723 wxPyEndAllowThreads(__tstate);
29724 if (PyErr_Occurred()) SWIG_fail;
29725 }
29726 resultobj = SWIG_Py_Void();
29727 return resultobj;
29728 fail:
29729 return NULL;
29730 }
29731
29732
29733 SWIGINTERN PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29734 PyObject *resultobj = 0;
29735 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29736 int result;
29737 void *argp1 = 0 ;
29738 int res1 = 0 ;
29739 PyObject *swig_obj[1] ;
29740
29741 if (!args) SWIG_fail;
29742 swig_obj[0] = args;
29743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29744 if (!SWIG_IsOK(res1)) {
29745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetSelectedItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29746 }
29747 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29748 {
29749 PyThreadState* __tstate = wxPyBeginAllowThreads();
29750 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
29751 wxPyEndAllowThreads(__tstate);
29752 if (PyErr_Occurred()) SWIG_fail;
29753 }
29754 resultobj = SWIG_From_int(static_cast< int >(result));
29755 return resultobj;
29756 fail:
29757 return NULL;
29758 }
29759
29760
29761 SWIGINTERN PyObject *_wrap_ListCtrl_GetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29762 PyObject *resultobj = 0;
29763 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29764 wxColour result;
29765 void *argp1 = 0 ;
29766 int res1 = 0 ;
29767 PyObject *swig_obj[1] ;
29768
29769 if (!args) SWIG_fail;
29770 swig_obj[0] = args;
29771 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29772 if (!SWIG_IsOK(res1)) {
29773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29774 }
29775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29776 {
29777 PyThreadState* __tstate = wxPyBeginAllowThreads();
29778 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
29779 wxPyEndAllowThreads(__tstate);
29780 if (PyErr_Occurred()) SWIG_fail;
29781 }
29782 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29783 return resultobj;
29784 fail:
29785 return NULL;
29786 }
29787
29788
29789 SWIGINTERN PyObject *_wrap_ListCtrl_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29790 PyObject *resultobj = 0;
29791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29792 wxColour *arg2 = 0 ;
29793 void *argp1 = 0 ;
29794 int res1 = 0 ;
29795 wxColour temp2 ;
29796 PyObject * obj0 = 0 ;
29797 PyObject * obj1 = 0 ;
29798 char * kwnames[] = {
29799 (char *) "self",(char *) "col", NULL
29800 };
29801
29802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
29803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29804 if (!SWIG_IsOK(res1)) {
29805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29806 }
29807 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29808 {
29809 arg2 = &temp2;
29810 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29811 }
29812 {
29813 PyThreadState* __tstate = wxPyBeginAllowThreads();
29814 (arg1)->SetTextColour((wxColour const &)*arg2);
29815 wxPyEndAllowThreads(__tstate);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 resultobj = SWIG_Py_Void();
29819 return resultobj;
29820 fail:
29821 return NULL;
29822 }
29823
29824
29825 SWIGINTERN PyObject *_wrap_ListCtrl_GetTopItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29826 PyObject *resultobj = 0;
29827 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29828 long result;
29829 void *argp1 = 0 ;
29830 int res1 = 0 ;
29831 PyObject *swig_obj[1] ;
29832
29833 if (!args) SWIG_fail;
29834 swig_obj[0] = args;
29835 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29836 if (!SWIG_IsOK(res1)) {
29837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetTopItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29838 }
29839 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29840 {
29841 PyThreadState* __tstate = wxPyBeginAllowThreads();
29842 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
29843 wxPyEndAllowThreads(__tstate);
29844 if (PyErr_Occurred()) SWIG_fail;
29845 }
29846 resultobj = SWIG_From_long(static_cast< long >(result));
29847 return resultobj;
29848 fail:
29849 return NULL;
29850 }
29851
29852
29853 SWIGINTERN PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29854 PyObject *resultobj = 0;
29855 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29856 long arg2 ;
29857 bool arg3 = (bool) true ;
29858 void *argp1 = 0 ;
29859 int res1 = 0 ;
29860 long val2 ;
29861 int ecode2 = 0 ;
29862 bool val3 ;
29863 int ecode3 = 0 ;
29864 PyObject * obj0 = 0 ;
29865 PyObject * obj1 = 0 ;
29866 PyObject * obj2 = 0 ;
29867 char * kwnames[] = {
29868 (char *) "self",(char *) "style",(char *) "add", NULL
29869 };
29870
29871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29873 if (!SWIG_IsOK(res1)) {
29874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
29875 }
29876 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29877 ecode2 = SWIG_AsVal_long(obj1, &val2);
29878 if (!SWIG_IsOK(ecode2)) {
29879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "2"" of type '" "long""'");
29880 }
29881 arg2 = static_cast< long >(val2);
29882 if (obj2) {
29883 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29884 if (!SWIG_IsOK(ecode3)) {
29885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetSingleStyle" "', expected argument " "3"" of type '" "bool""'");
29886 }
29887 arg3 = static_cast< bool >(val3);
29888 }
29889 {
29890 PyThreadState* __tstate = wxPyBeginAllowThreads();
29891 (arg1)->SetSingleStyle(arg2,arg3);
29892 wxPyEndAllowThreads(__tstate);
29893 if (PyErr_Occurred()) SWIG_fail;
29894 }
29895 resultobj = SWIG_Py_Void();
29896 return resultobj;
29897 fail:
29898 return NULL;
29899 }
29900
29901
29902 SWIGINTERN PyObject *_wrap_ListCtrl_GetNextItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29903 PyObject *resultobj = 0;
29904 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29905 long arg2 ;
29906 int arg3 = (int) wxLIST_NEXT_ALL ;
29907 int arg4 = (int) wxLIST_STATE_DONTCARE ;
29908 long result;
29909 void *argp1 = 0 ;
29910 int res1 = 0 ;
29911 long val2 ;
29912 int ecode2 = 0 ;
29913 int val3 ;
29914 int ecode3 = 0 ;
29915 int val4 ;
29916 int ecode4 = 0 ;
29917 PyObject * obj0 = 0 ;
29918 PyObject * obj1 = 0 ;
29919 PyObject * obj2 = 0 ;
29920 PyObject * obj3 = 0 ;
29921 char * kwnames[] = {
29922 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
29923 };
29924
29925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29927 if (!SWIG_IsOK(res1)) {
29928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetNextItem" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29929 }
29930 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29931 ecode2 = SWIG_AsVal_long(obj1, &val2);
29932 if (!SWIG_IsOK(ecode2)) {
29933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetNextItem" "', expected argument " "2"" of type '" "long""'");
29934 }
29935 arg2 = static_cast< long >(val2);
29936 if (obj2) {
29937 ecode3 = SWIG_AsVal_int(obj2, &val3);
29938 if (!SWIG_IsOK(ecode3)) {
29939 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_GetNextItem" "', expected argument " "3"" of type '" "int""'");
29940 }
29941 arg3 = static_cast< int >(val3);
29942 }
29943 if (obj3) {
29944 ecode4 = SWIG_AsVal_int(obj3, &val4);
29945 if (!SWIG_IsOK(ecode4)) {
29946 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_GetNextItem" "', expected argument " "4"" of type '" "int""'");
29947 }
29948 arg4 = static_cast< int >(val4);
29949 }
29950 {
29951 PyThreadState* __tstate = wxPyBeginAllowThreads();
29952 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
29953 wxPyEndAllowThreads(__tstate);
29954 if (PyErr_Occurred()) SWIG_fail;
29955 }
29956 resultobj = SWIG_From_long(static_cast< long >(result));
29957 return resultobj;
29958 fail:
29959 return NULL;
29960 }
29961
29962
29963 SWIGINTERN PyObject *_wrap_ListCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29964 PyObject *resultobj = 0;
29965 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
29966 int arg2 ;
29967 wxImageList *result = 0 ;
29968 void *argp1 = 0 ;
29969 int res1 = 0 ;
29970 int val2 ;
29971 int ecode2 = 0 ;
29972 PyObject * obj0 = 0 ;
29973 PyObject * obj1 = 0 ;
29974 char * kwnames[] = {
29975 (char *) "self",(char *) "which", NULL
29976 };
29977
29978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
29979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
29980 if (!SWIG_IsOK(res1)) {
29981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
29982 }
29983 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
29984 ecode2 = SWIG_AsVal_int(obj1, &val2);
29985 if (!SWIG_IsOK(ecode2)) {
29986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetImageList" "', expected argument " "2"" of type '" "int""'");
29987 }
29988 arg2 = static_cast< int >(val2);
29989 {
29990 PyThreadState* __tstate = wxPyBeginAllowThreads();
29991 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
29992 wxPyEndAllowThreads(__tstate);
29993 if (PyErr_Occurred()) SWIG_fail;
29994 }
29995 {
29996 resultobj = wxPyMake_wxObject(result, (bool)0);
29997 }
29998 return resultobj;
29999 fail:
30000 return NULL;
30001 }
30002
30003
30004 SWIGINTERN PyObject *_wrap_ListCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30005 PyObject *resultobj = 0;
30006 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30007 wxImageList *arg2 = (wxImageList *) 0 ;
30008 int arg3 ;
30009 void *argp1 = 0 ;
30010 int res1 = 0 ;
30011 void *argp2 = 0 ;
30012 int res2 = 0 ;
30013 int val3 ;
30014 int ecode3 = 0 ;
30015 PyObject * obj0 = 0 ;
30016 PyObject * obj1 = 0 ;
30017 PyObject * obj2 = 0 ;
30018 char * kwnames[] = {
30019 (char *) "self",(char *) "imageList",(char *) "which", NULL
30020 };
30021
30022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30024 if (!SWIG_IsOK(res1)) {
30025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30026 }
30027 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
30029 if (!SWIG_IsOK(res2)) {
30030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30031 }
30032 arg2 = reinterpret_cast< wxImageList * >(argp2);
30033 ecode3 = SWIG_AsVal_int(obj2, &val3);
30034 if (!SWIG_IsOK(ecode3)) {
30035 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_SetImageList" "', expected argument " "3"" of type '" "int""'");
30036 }
30037 arg3 = static_cast< int >(val3);
30038 {
30039 PyThreadState* __tstate = wxPyBeginAllowThreads();
30040 (arg1)->SetImageList(arg2,arg3);
30041 wxPyEndAllowThreads(__tstate);
30042 if (PyErr_Occurred()) SWIG_fail;
30043 }
30044 resultobj = SWIG_Py_Void();
30045 return resultobj;
30046 fail:
30047 return NULL;
30048 }
30049
30050
30051 SWIGINTERN PyObject *_wrap_ListCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30052 PyObject *resultobj = 0;
30053 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30054 wxImageList *arg2 = (wxImageList *) 0 ;
30055 int arg3 ;
30056 void *argp1 = 0 ;
30057 int res1 = 0 ;
30058 int res2 = 0 ;
30059 int val3 ;
30060 int ecode3 = 0 ;
30061 PyObject * obj0 = 0 ;
30062 PyObject * obj1 = 0 ;
30063 PyObject * obj2 = 0 ;
30064 char * kwnames[] = {
30065 (char *) "self",(char *) "imageList",(char *) "which", NULL
30066 };
30067
30068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30070 if (!SWIG_IsOK(res1)) {
30071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30072 }
30073 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30074 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30075 if (!SWIG_IsOK(res2)) {
30076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
30077 }
30078 ecode3 = SWIG_AsVal_int(obj2, &val3);
30079 if (!SWIG_IsOK(ecode3)) {
30080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_AssignImageList" "', expected argument " "3"" of type '" "int""'");
30081 }
30082 arg3 = static_cast< int >(val3);
30083 {
30084 PyThreadState* __tstate = wxPyBeginAllowThreads();
30085 (arg1)->AssignImageList(arg2,arg3);
30086 wxPyEndAllowThreads(__tstate);
30087 if (PyErr_Occurred()) SWIG_fail;
30088 }
30089 resultobj = SWIG_Py_Void();
30090 return resultobj;
30091 fail:
30092 return NULL;
30093 }
30094
30095
30096 SWIGINTERN PyObject *_wrap_ListCtrl_InReportView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30097 PyObject *resultobj = 0;
30098 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30099 bool result;
30100 void *argp1 = 0 ;
30101 int res1 = 0 ;
30102 PyObject *swig_obj[1] ;
30103
30104 if (!args) SWIG_fail;
30105 swig_obj[0] = args;
30106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30107 if (!SWIG_IsOK(res1)) {
30108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InReportView" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30109 }
30110 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30111 {
30112 PyThreadState* __tstate = wxPyBeginAllowThreads();
30113 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
30114 wxPyEndAllowThreads(__tstate);
30115 if (PyErr_Occurred()) SWIG_fail;
30116 }
30117 {
30118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30119 }
30120 return resultobj;
30121 fail:
30122 return NULL;
30123 }
30124
30125
30126 SWIGINTERN PyObject *_wrap_ListCtrl_IsVirtual(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30127 PyObject *resultobj = 0;
30128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30129 bool result;
30130 void *argp1 = 0 ;
30131 int res1 = 0 ;
30132 PyObject *swig_obj[1] ;
30133
30134 if (!args) SWIG_fail;
30135 swig_obj[0] = args;
30136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30137 if (!SWIG_IsOK(res1)) {
30138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_IsVirtual" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
30139 }
30140 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30141 {
30142 PyThreadState* __tstate = wxPyBeginAllowThreads();
30143 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 {
30148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30149 }
30150 return resultobj;
30151 fail:
30152 return NULL;
30153 }
30154
30155
30156 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30157 PyObject *resultobj = 0;
30158 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30159 long arg2 ;
30160 void *argp1 = 0 ;
30161 int res1 = 0 ;
30162 long val2 ;
30163 int ecode2 = 0 ;
30164 PyObject * obj0 = 0 ;
30165 PyObject * obj1 = 0 ;
30166 char * kwnames[] = {
30167 (char *) "self",(char *) "item", NULL
30168 };
30169
30170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) SWIG_fail;
30171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30172 if (!SWIG_IsOK(res1)) {
30173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30174 }
30175 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30176 ecode2 = SWIG_AsVal_long(obj1, &val2);
30177 if (!SWIG_IsOK(ecode2)) {
30178 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItem" "', expected argument " "2"" of type '" "long""'");
30179 }
30180 arg2 = static_cast< long >(val2);
30181 {
30182 PyThreadState* __tstate = wxPyBeginAllowThreads();
30183 (arg1)->RefreshItem(arg2);
30184 wxPyEndAllowThreads(__tstate);
30185 if (PyErr_Occurred()) SWIG_fail;
30186 }
30187 resultobj = SWIG_Py_Void();
30188 return resultobj;
30189 fail:
30190 return NULL;
30191 }
30192
30193
30194 SWIGINTERN PyObject *_wrap_ListCtrl_RefreshItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30195 PyObject *resultobj = 0;
30196 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30197 long arg2 ;
30198 long arg3 ;
30199 void *argp1 = 0 ;
30200 int res1 = 0 ;
30201 long val2 ;
30202 int ecode2 = 0 ;
30203 long val3 ;
30204 int ecode3 = 0 ;
30205 PyObject * obj0 = 0 ;
30206 PyObject * obj1 = 0 ;
30207 PyObject * obj2 = 0 ;
30208 char * kwnames[] = {
30209 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
30210 };
30211
30212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30214 if (!SWIG_IsOK(res1)) {
30215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_RefreshItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30216 }
30217 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30218 ecode2 = SWIG_AsVal_long(obj1, &val2);
30219 if (!SWIG_IsOK(ecode2)) {
30220 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_RefreshItems" "', expected argument " "2"" of type '" "long""'");
30221 }
30222 arg2 = static_cast< long >(val2);
30223 ecode3 = SWIG_AsVal_long(obj2, &val3);
30224 if (!SWIG_IsOK(ecode3)) {
30225 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_RefreshItems" "', expected argument " "3"" of type '" "long""'");
30226 }
30227 arg3 = static_cast< long >(val3);
30228 {
30229 PyThreadState* __tstate = wxPyBeginAllowThreads();
30230 (arg1)->RefreshItems(arg2,arg3);
30231 wxPyEndAllowThreads(__tstate);
30232 if (PyErr_Occurred()) SWIG_fail;
30233 }
30234 resultobj = SWIG_Py_Void();
30235 return resultobj;
30236 fail:
30237 return NULL;
30238 }
30239
30240
30241 SWIGINTERN PyObject *_wrap_ListCtrl_Arrange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30242 PyObject *resultobj = 0;
30243 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30244 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
30245 bool result;
30246 void *argp1 = 0 ;
30247 int res1 = 0 ;
30248 int val2 ;
30249 int ecode2 = 0 ;
30250 PyObject * obj0 = 0 ;
30251 PyObject * obj1 = 0 ;
30252 char * kwnames[] = {
30253 (char *) "self",(char *) "flag", NULL
30254 };
30255
30256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) SWIG_fail;
30257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30258 if (!SWIG_IsOK(res1)) {
30259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_Arrange" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30260 }
30261 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30262 if (obj1) {
30263 ecode2 = SWIG_AsVal_int(obj1, &val2);
30264 if (!SWIG_IsOK(ecode2)) {
30265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_Arrange" "', expected argument " "2"" of type '" "int""'");
30266 }
30267 arg2 = static_cast< int >(val2);
30268 }
30269 {
30270 PyThreadState* __tstate = wxPyBeginAllowThreads();
30271 result = (bool)(arg1)->Arrange(arg2);
30272 wxPyEndAllowThreads(__tstate);
30273 if (PyErr_Occurred()) SWIG_fail;
30274 }
30275 {
30276 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30277 }
30278 return resultobj;
30279 fail:
30280 return NULL;
30281 }
30282
30283
30284 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30285 PyObject *resultobj = 0;
30286 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30287 long arg2 ;
30288 bool result;
30289 void *argp1 = 0 ;
30290 int res1 = 0 ;
30291 long val2 ;
30292 int ecode2 = 0 ;
30293 PyObject * obj0 = 0 ;
30294 PyObject * obj1 = 0 ;
30295 char * kwnames[] = {
30296 (char *) "self",(char *) "item", NULL
30297 };
30298
30299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) SWIG_fail;
30300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30301 if (!SWIG_IsOK(res1)) {
30302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30303 }
30304 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30305 ecode2 = SWIG_AsVal_long(obj1, &val2);
30306 if (!SWIG_IsOK(ecode2)) {
30307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteItem" "', expected argument " "2"" of type '" "long""'");
30308 }
30309 arg2 = static_cast< long >(val2);
30310 {
30311 PyThreadState* __tstate = wxPyBeginAllowThreads();
30312 result = (bool)(arg1)->DeleteItem(arg2);
30313 wxPyEndAllowThreads(__tstate);
30314 if (PyErr_Occurred()) SWIG_fail;
30315 }
30316 {
30317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30318 }
30319 return resultobj;
30320 fail:
30321 return NULL;
30322 }
30323
30324
30325 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30326 PyObject *resultobj = 0;
30327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30328 bool result;
30329 void *argp1 = 0 ;
30330 int res1 = 0 ;
30331 PyObject *swig_obj[1] ;
30332
30333 if (!args) SWIG_fail;
30334 swig_obj[0] = args;
30335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30336 if (!SWIG_IsOK(res1)) {
30337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30338 }
30339 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30340 {
30341 PyThreadState* __tstate = wxPyBeginAllowThreads();
30342 result = (bool)(arg1)->DeleteAllItems();
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 {
30347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30348 }
30349 return resultobj;
30350 fail:
30351 return NULL;
30352 }
30353
30354
30355 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30356 PyObject *resultobj = 0;
30357 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30358 int arg2 ;
30359 bool result;
30360 void *argp1 = 0 ;
30361 int res1 = 0 ;
30362 int val2 ;
30363 int ecode2 = 0 ;
30364 PyObject * obj0 = 0 ;
30365 PyObject * obj1 = 0 ;
30366 char * kwnames[] = {
30367 (char *) "self",(char *) "col", NULL
30368 };
30369
30370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) SWIG_fail;
30371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30372 if (!SWIG_IsOK(res1)) {
30373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30374 }
30375 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30376 ecode2 = SWIG_AsVal_int(obj1, &val2);
30377 if (!SWIG_IsOK(ecode2)) {
30378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_DeleteColumn" "', expected argument " "2"" of type '" "int""'");
30379 }
30380 arg2 = static_cast< int >(val2);
30381 {
30382 PyThreadState* __tstate = wxPyBeginAllowThreads();
30383 result = (bool)(arg1)->DeleteColumn(arg2);
30384 wxPyEndAllowThreads(__tstate);
30385 if (PyErr_Occurred()) SWIG_fail;
30386 }
30387 {
30388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30389 }
30390 return resultobj;
30391 fail:
30392 return NULL;
30393 }
30394
30395
30396 SWIGINTERN PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30397 PyObject *resultobj = 0;
30398 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30399 bool result;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402 PyObject *swig_obj[1] ;
30403
30404 if (!args) SWIG_fail;
30405 swig_obj[0] = args;
30406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
30408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_DeleteAllColumns" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30409 }
30410 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30411 {
30412 PyThreadState* __tstate = wxPyBeginAllowThreads();
30413 result = (bool)(arg1)->DeleteAllColumns();
30414 wxPyEndAllowThreads(__tstate);
30415 if (PyErr_Occurred()) SWIG_fail;
30416 }
30417 {
30418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30419 }
30420 return resultobj;
30421 fail:
30422 return NULL;
30423 }
30424
30425
30426 SWIGINTERN PyObject *_wrap_ListCtrl_ClearAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30427 PyObject *resultobj = 0;
30428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30429 void *argp1 = 0 ;
30430 int res1 = 0 ;
30431 PyObject *swig_obj[1] ;
30432
30433 if (!args) SWIG_fail;
30434 swig_obj[0] = args;
30435 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30436 if (!SWIG_IsOK(res1)) {
30437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ClearAll" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30438 }
30439 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30440 {
30441 PyThreadState* __tstate = wxPyBeginAllowThreads();
30442 (arg1)->ClearAll();
30443 wxPyEndAllowThreads(__tstate);
30444 if (PyErr_Occurred()) SWIG_fail;
30445 }
30446 resultobj = SWIG_Py_Void();
30447 return resultobj;
30448 fail:
30449 return NULL;
30450 }
30451
30452
30453 SWIGINTERN PyObject *_wrap_ListCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30454 PyObject *resultobj = 0;
30455 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30456 long arg2 ;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 long val2 ;
30460 int ecode2 = 0 ;
30461 PyObject * obj0 = 0 ;
30462 PyObject * obj1 = 0 ;
30463 char * kwnames[] = {
30464 (char *) "self",(char *) "item", NULL
30465 };
30466
30467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
30468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30469 if (!SWIG_IsOK(res1)) {
30470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30471 }
30472 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30473 ecode2 = SWIG_AsVal_long(obj1, &val2);
30474 if (!SWIG_IsOK(ecode2)) {
30475 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EditLabel" "', expected argument " "2"" of type '" "long""'");
30476 }
30477 arg2 = static_cast< long >(val2);
30478 {
30479 PyThreadState* __tstate = wxPyBeginAllowThreads();
30480 (arg1)->EditLabel(arg2);
30481 wxPyEndAllowThreads(__tstate);
30482 if (PyErr_Occurred()) SWIG_fail;
30483 }
30484 resultobj = SWIG_Py_Void();
30485 return resultobj;
30486 fail:
30487 return NULL;
30488 }
30489
30490
30491 SWIGINTERN PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30492 PyObject *resultobj = 0;
30493 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30494 long arg2 ;
30495 bool result;
30496 void *argp1 = 0 ;
30497 int res1 = 0 ;
30498 long val2 ;
30499 int ecode2 = 0 ;
30500 PyObject * obj0 = 0 ;
30501 PyObject * obj1 = 0 ;
30502 char * kwnames[] = {
30503 (char *) "self",(char *) "item", NULL
30504 };
30505
30506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
30507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30508 if (!SWIG_IsOK(res1)) {
30509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30510 }
30511 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30512 ecode2 = SWIG_AsVal_long(obj1, &val2);
30513 if (!SWIG_IsOK(ecode2)) {
30514 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_EnsureVisible" "', expected argument " "2"" of type '" "long""'");
30515 }
30516 arg2 = static_cast< long >(val2);
30517 {
30518 PyThreadState* __tstate = wxPyBeginAllowThreads();
30519 result = (bool)(arg1)->EnsureVisible(arg2);
30520 wxPyEndAllowThreads(__tstate);
30521 if (PyErr_Occurred()) SWIG_fail;
30522 }
30523 {
30524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30525 }
30526 return resultobj;
30527 fail:
30528 return NULL;
30529 }
30530
30531
30532 SWIGINTERN PyObject *_wrap_ListCtrl_FindItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30533 PyObject *resultobj = 0;
30534 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30535 long arg2 ;
30536 wxString *arg3 = 0 ;
30537 bool arg4 = (bool) false ;
30538 long result;
30539 void *argp1 = 0 ;
30540 int res1 = 0 ;
30541 long val2 ;
30542 int ecode2 = 0 ;
30543 bool temp3 = false ;
30544 bool val4 ;
30545 int ecode4 = 0 ;
30546 PyObject * obj0 = 0 ;
30547 PyObject * obj1 = 0 ;
30548 PyObject * obj2 = 0 ;
30549 PyObject * obj3 = 0 ;
30550 char * kwnames[] = {
30551 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
30552 };
30553
30554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30556 if (!SWIG_IsOK(res1)) {
30557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30558 }
30559 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30560 ecode2 = SWIG_AsVal_long(obj1, &val2);
30561 if (!SWIG_IsOK(ecode2)) {
30562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItem" "', expected argument " "2"" of type '" "long""'");
30563 }
30564 arg2 = static_cast< long >(val2);
30565 {
30566 arg3 = wxString_in_helper(obj2);
30567 if (arg3 == NULL) SWIG_fail;
30568 temp3 = true;
30569 }
30570 if (obj3) {
30571 ecode4 = SWIG_AsVal_bool(obj3, &val4);
30572 if (!SWIG_IsOK(ecode4)) {
30573 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItem" "', expected argument " "4"" of type '" "bool""'");
30574 }
30575 arg4 = static_cast< bool >(val4);
30576 }
30577 {
30578 PyThreadState* __tstate = wxPyBeginAllowThreads();
30579 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
30580 wxPyEndAllowThreads(__tstate);
30581 if (PyErr_Occurred()) SWIG_fail;
30582 }
30583 resultobj = SWIG_From_long(static_cast< long >(result));
30584 {
30585 if (temp3)
30586 delete arg3;
30587 }
30588 return resultobj;
30589 fail:
30590 {
30591 if (temp3)
30592 delete arg3;
30593 }
30594 return NULL;
30595 }
30596
30597
30598 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30599 PyObject *resultobj = 0;
30600 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30601 long arg2 ;
30602 long arg3 ;
30603 long result;
30604 void *argp1 = 0 ;
30605 int res1 = 0 ;
30606 long val2 ;
30607 int ecode2 = 0 ;
30608 long val3 ;
30609 int ecode3 = 0 ;
30610 PyObject * obj0 = 0 ;
30611 PyObject * obj1 = 0 ;
30612 PyObject * obj2 = 0 ;
30613 char * kwnames[] = {
30614 (char *) "self",(char *) "start",(char *) "data", NULL
30615 };
30616
30617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30619 if (!SWIG_IsOK(res1)) {
30620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemData" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30621 }
30622 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30623 ecode2 = SWIG_AsVal_long(obj1, &val2);
30624 if (!SWIG_IsOK(ecode2)) {
30625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemData" "', expected argument " "2"" of type '" "long""'");
30626 }
30627 arg2 = static_cast< long >(val2);
30628 ecode3 = SWIG_AsVal_long(obj2, &val3);
30629 if (!SWIG_IsOK(ecode3)) {
30630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_FindItemData" "', expected argument " "3"" of type '" "long""'");
30631 }
30632 arg3 = static_cast< long >(val3);
30633 {
30634 PyThreadState* __tstate = wxPyBeginAllowThreads();
30635 result = (long)(arg1)->FindItem(arg2,arg3);
30636 wxPyEndAllowThreads(__tstate);
30637 if (PyErr_Occurred()) SWIG_fail;
30638 }
30639 resultobj = SWIG_From_long(static_cast< long >(result));
30640 return resultobj;
30641 fail:
30642 return NULL;
30643 }
30644
30645
30646 SWIGINTERN PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30647 PyObject *resultobj = 0;
30648 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30649 long arg2 ;
30650 wxPoint *arg3 = 0 ;
30651 int arg4 ;
30652 long result;
30653 void *argp1 = 0 ;
30654 int res1 = 0 ;
30655 long val2 ;
30656 int ecode2 = 0 ;
30657 wxPoint temp3 ;
30658 int val4 ;
30659 int ecode4 = 0 ;
30660 PyObject * obj0 = 0 ;
30661 PyObject * obj1 = 0 ;
30662 PyObject * obj2 = 0 ;
30663 PyObject * obj3 = 0 ;
30664 char * kwnames[] = {
30665 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
30666 };
30667
30668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30670 if (!SWIG_IsOK(res1)) {
30671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30672 }
30673 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30674 ecode2 = SWIG_AsVal_long(obj1, &val2);
30675 if (!SWIG_IsOK(ecode2)) {
30676 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "2"" of type '" "long""'");
30677 }
30678 arg2 = static_cast< long >(val2);
30679 {
30680 arg3 = &temp3;
30681 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30682 }
30683 ecode4 = SWIG_AsVal_int(obj3, &val4);
30684 if (!SWIG_IsOK(ecode4)) {
30685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_FindItemAtPos" "', expected argument " "4"" of type '" "int""'");
30686 }
30687 arg4 = static_cast< int >(val4);
30688 {
30689 PyThreadState* __tstate = wxPyBeginAllowThreads();
30690 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
30691 wxPyEndAllowThreads(__tstate);
30692 if (PyErr_Occurred()) SWIG_fail;
30693 }
30694 resultobj = SWIG_From_long(static_cast< long >(result));
30695 return resultobj;
30696 fail:
30697 return NULL;
30698 }
30699
30700
30701 SWIGINTERN PyObject *_wrap_ListCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30702 PyObject *resultobj = 0;
30703 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30704 wxPoint *arg2 = 0 ;
30705 int *arg3 = 0 ;
30706 long result;
30707 void *argp1 = 0 ;
30708 int res1 = 0 ;
30709 wxPoint temp2 ;
30710 int temp3 ;
30711 int res3 = SWIG_TMPOBJ ;
30712 PyObject * obj0 = 0 ;
30713 PyObject * obj1 = 0 ;
30714 char * kwnames[] = {
30715 (char *) "self",(char *) "point", NULL
30716 };
30717
30718 arg3 = &temp3;
30719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
30720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30721 if (!SWIG_IsOK(res1)) {
30722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30723 }
30724 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30725 {
30726 arg2 = &temp2;
30727 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30728 }
30729 {
30730 PyThreadState* __tstate = wxPyBeginAllowThreads();
30731 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
30732 wxPyEndAllowThreads(__tstate);
30733 if (PyErr_Occurred()) SWIG_fail;
30734 }
30735 resultobj = SWIG_From_long(static_cast< long >(result));
30736 if (SWIG_IsTmpObj(res3)) {
30737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30738 } else {
30739 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30740 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30741 }
30742 return resultobj;
30743 fail:
30744 return NULL;
30745 }
30746
30747
30748 SWIGINTERN PyObject *_wrap_ListCtrl_HitTestSubItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30749 PyObject *resultobj = 0;
30750 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30751 wxPoint *arg2 = 0 ;
30752 int *arg3 = 0 ;
30753 long *arg4 = (long *) 0 ;
30754 long result;
30755 void *argp1 = 0 ;
30756 int res1 = 0 ;
30757 wxPoint temp2 ;
30758 int temp3 ;
30759 int res3 = SWIG_TMPOBJ ;
30760 long temp4 ;
30761 int res4 = SWIG_TMPOBJ ;
30762 PyObject * obj0 = 0 ;
30763 PyObject * obj1 = 0 ;
30764 char * kwnames[] = {
30765 (char *) "self",(char *) "point", NULL
30766 };
30767
30768 arg3 = &temp3;
30769 arg4 = &temp4;
30770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTestSubItem",kwnames,&obj0,&obj1)) SWIG_fail;
30771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30772 if (!SWIG_IsOK(res1)) {
30773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_HitTestSubItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30774 }
30775 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30776 {
30777 arg2 = &temp2;
30778 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30779 }
30780 {
30781 PyThreadState* __tstate = wxPyBeginAllowThreads();
30782 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3,arg4);
30783 wxPyEndAllowThreads(__tstate);
30784 if (PyErr_Occurred()) SWIG_fail;
30785 }
30786 resultobj = SWIG_From_long(static_cast< long >(result));
30787 if (SWIG_IsTmpObj(res3)) {
30788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30789 } else {
30790 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30792 }
30793 if (SWIG_IsTmpObj(res4)) {
30794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_long((*arg4)));
30795 } else {
30796 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, new_flags));
30798 }
30799 return resultobj;
30800 fail:
30801 return NULL;
30802 }
30803
30804
30805 SWIGINTERN PyObject *_wrap_ListCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30806 PyObject *resultobj = 0;
30807 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30808 wxListItem *arg2 = 0 ;
30809 long result;
30810 void *argp1 = 0 ;
30811 int res1 = 0 ;
30812 void *argp2 = 0 ;
30813 int res2 = 0 ;
30814 PyObject * obj0 = 0 ;
30815 PyObject * obj1 = 0 ;
30816 char * kwnames[] = {
30817 (char *) "self",(char *) "info", NULL
30818 };
30819
30820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) SWIG_fail;
30821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30822 if (!SWIG_IsOK(res1)) {
30823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30824 }
30825 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30826 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxListItem, 0 );
30827 if (!SWIG_IsOK(res2)) {
30828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30829 }
30830 if (!argp2) {
30831 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertItem" "', expected argument " "2"" of type '" "wxListItem &""'");
30832 }
30833 arg2 = reinterpret_cast< wxListItem * >(argp2);
30834 {
30835 PyThreadState* __tstate = wxPyBeginAllowThreads();
30836 result = (long)(arg1)->InsertItem(*arg2);
30837 wxPyEndAllowThreads(__tstate);
30838 if (PyErr_Occurred()) SWIG_fail;
30839 }
30840 resultobj = SWIG_From_long(static_cast< long >(result));
30841 return resultobj;
30842 fail:
30843 return NULL;
30844 }
30845
30846
30847 SWIGINTERN PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30848 PyObject *resultobj = 0;
30849 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30850 long arg2 ;
30851 wxString *arg3 = 0 ;
30852 int arg4 = (int) -1 ;
30853 long result;
30854 void *argp1 = 0 ;
30855 int res1 = 0 ;
30856 long val2 ;
30857 int ecode2 = 0 ;
30858 bool temp3 = false ;
30859 int val4 ;
30860 int ecode4 = 0 ;
30861 PyObject * obj0 = 0 ;
30862 PyObject * obj1 = 0 ;
30863 PyObject * obj2 = 0 ;
30864 PyObject * obj3 = 0 ;
30865 char * kwnames[] = {
30866 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30867 };
30868
30869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30871 if (!SWIG_IsOK(res1)) {
30872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30873 }
30874 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30875 ecode2 = SWIG_AsVal_long(obj1, &val2);
30876 if (!SWIG_IsOK(ecode2)) {
30877 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "2"" of type '" "long""'");
30878 }
30879 arg2 = static_cast< long >(val2);
30880 {
30881 arg3 = wxString_in_helper(obj2);
30882 if (arg3 == NULL) SWIG_fail;
30883 temp3 = true;
30884 }
30885 if (obj3) {
30886 ecode4 = SWIG_AsVal_int(obj3, &val4);
30887 if (!SWIG_IsOK(ecode4)) {
30888 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertStringItem" "', expected argument " "4"" of type '" "int""'");
30889 }
30890 arg4 = static_cast< int >(val4);
30891 }
30892 {
30893 PyThreadState* __tstate = wxPyBeginAllowThreads();
30894 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
30895 wxPyEndAllowThreads(__tstate);
30896 if (PyErr_Occurred()) SWIG_fail;
30897 }
30898 resultobj = SWIG_From_long(static_cast< long >(result));
30899 {
30900 if (temp3)
30901 delete arg3;
30902 }
30903 return resultobj;
30904 fail:
30905 {
30906 if (temp3)
30907 delete arg3;
30908 }
30909 return NULL;
30910 }
30911
30912
30913 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30914 PyObject *resultobj = 0;
30915 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30916 long arg2 ;
30917 int arg3 ;
30918 long result;
30919 void *argp1 = 0 ;
30920 int res1 = 0 ;
30921 long val2 ;
30922 int ecode2 = 0 ;
30923 int val3 ;
30924 int ecode3 = 0 ;
30925 PyObject * obj0 = 0 ;
30926 PyObject * obj1 = 0 ;
30927 PyObject * obj2 = 0 ;
30928 char * kwnames[] = {
30929 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
30930 };
30931
30932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30934 if (!SWIG_IsOK(res1)) {
30935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30936 }
30937 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30938 ecode2 = SWIG_AsVal_long(obj1, &val2);
30939 if (!SWIG_IsOK(ecode2)) {
30940 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "2"" of type '" "long""'");
30941 }
30942 arg2 = static_cast< long >(val2);
30943 ecode3 = SWIG_AsVal_int(obj2, &val3);
30944 if (!SWIG_IsOK(ecode3)) {
30945 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_InsertImageItem" "', expected argument " "3"" of type '" "int""'");
30946 }
30947 arg3 = static_cast< int >(val3);
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (long)(arg1)->InsertItem(arg2,arg3);
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_From_long(static_cast< long >(result));
30955 return resultobj;
30956 fail:
30957 return NULL;
30958 }
30959
30960
30961 SWIGINTERN PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30962 PyObject *resultobj = 0;
30963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
30964 long arg2 ;
30965 wxString *arg3 = 0 ;
30966 int arg4 ;
30967 long result;
30968 void *argp1 = 0 ;
30969 int res1 = 0 ;
30970 long val2 ;
30971 int ecode2 = 0 ;
30972 bool temp3 = false ;
30973 int val4 ;
30974 int ecode4 = 0 ;
30975 PyObject * obj0 = 0 ;
30976 PyObject * obj1 = 0 ;
30977 PyObject * obj2 = 0 ;
30978 PyObject * obj3 = 0 ;
30979 char * kwnames[] = {
30980 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
30981 };
30982
30983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
30985 if (!SWIG_IsOK(res1)) {
30986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
30987 }
30988 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
30989 ecode2 = SWIG_AsVal_long(obj1, &val2);
30990 if (!SWIG_IsOK(ecode2)) {
30991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "2"" of type '" "long""'");
30992 }
30993 arg2 = static_cast< long >(val2);
30994 {
30995 arg3 = wxString_in_helper(obj2);
30996 if (arg3 == NULL) SWIG_fail;
30997 temp3 = true;
30998 }
30999 ecode4 = SWIG_AsVal_int(obj3, &val4);
31000 if (!SWIG_IsOK(ecode4)) {
31001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertImageStringItem" "', expected argument " "4"" of type '" "int""'");
31002 }
31003 arg4 = static_cast< int >(val4);
31004 {
31005 PyThreadState* __tstate = wxPyBeginAllowThreads();
31006 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
31007 wxPyEndAllowThreads(__tstate);
31008 if (PyErr_Occurred()) SWIG_fail;
31009 }
31010 resultobj = SWIG_From_long(static_cast< long >(result));
31011 {
31012 if (temp3)
31013 delete arg3;
31014 }
31015 return resultobj;
31016 fail:
31017 {
31018 if (temp3)
31019 delete arg3;
31020 }
31021 return NULL;
31022 }
31023
31024
31025 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumnItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31026 PyObject *resultobj = 0;
31027 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31028 long arg2 ;
31029 wxListItem *arg3 = 0 ;
31030 long result;
31031 void *argp1 = 0 ;
31032 int res1 = 0 ;
31033 long val2 ;
31034 int ecode2 = 0 ;
31035 void *argp3 = 0 ;
31036 int res3 = 0 ;
31037 PyObject * obj0 = 0 ;
31038 PyObject * obj1 = 0 ;
31039 PyObject * obj2 = 0 ;
31040 char * kwnames[] = {
31041 (char *) "self",(char *) "col",(char *) "info", NULL
31042 };
31043
31044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31046 if (!SWIG_IsOK(res1)) {
31047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31048 }
31049 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31050 ecode2 = SWIG_AsVal_long(obj1, &val2);
31051 if (!SWIG_IsOK(ecode2)) {
31052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "2"" of type '" "long""'");
31053 }
31054 arg2 = static_cast< long >(val2);
31055 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxListItem, 0 );
31056 if (!SWIG_IsOK(res3)) {
31057 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31058 }
31059 if (!argp3) {
31060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_InsertColumnItem" "', expected argument " "3"" of type '" "wxListItem &""'");
31061 }
31062 arg3 = reinterpret_cast< wxListItem * >(argp3);
31063 {
31064 PyThreadState* __tstate = wxPyBeginAllowThreads();
31065 result = (long)(arg1)->InsertColumn(arg2,*arg3);
31066 wxPyEndAllowThreads(__tstate);
31067 if (PyErr_Occurred()) SWIG_fail;
31068 }
31069 resultobj = SWIG_From_long(static_cast< long >(result));
31070 return resultobj;
31071 fail:
31072 return NULL;
31073 }
31074
31075
31076 SWIGINTERN PyObject *_wrap_ListCtrl_InsertColumn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31077 PyObject *resultobj = 0;
31078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31079 long arg2 ;
31080 wxString *arg3 = 0 ;
31081 int arg4 = (int) wxLIST_FORMAT_LEFT ;
31082 int arg5 = (int) -1 ;
31083 long result;
31084 void *argp1 = 0 ;
31085 int res1 = 0 ;
31086 long val2 ;
31087 int ecode2 = 0 ;
31088 bool temp3 = false ;
31089 int val4 ;
31090 int ecode4 = 0 ;
31091 int val5 ;
31092 int ecode5 = 0 ;
31093 PyObject * obj0 = 0 ;
31094 PyObject * obj1 = 0 ;
31095 PyObject * obj2 = 0 ;
31096 PyObject * obj3 = 0 ;
31097 PyObject * obj4 = 0 ;
31098 char * kwnames[] = {
31099 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
31100 };
31101
31102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31104 if (!SWIG_IsOK(res1)) {
31105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_InsertColumn" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31106 }
31107 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31108 ecode2 = SWIG_AsVal_long(obj1, &val2);
31109 if (!SWIG_IsOK(ecode2)) {
31110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_InsertColumn" "', expected argument " "2"" of type '" "long""'");
31111 }
31112 arg2 = static_cast< long >(val2);
31113 {
31114 arg3 = wxString_in_helper(obj2);
31115 if (arg3 == NULL) SWIG_fail;
31116 temp3 = true;
31117 }
31118 if (obj3) {
31119 ecode4 = SWIG_AsVal_int(obj3, &val4);
31120 if (!SWIG_IsOK(ecode4)) {
31121 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ListCtrl_InsertColumn" "', expected argument " "4"" of type '" "int""'");
31122 }
31123 arg4 = static_cast< int >(val4);
31124 }
31125 if (obj4) {
31126 ecode5 = SWIG_AsVal_int(obj4, &val5);
31127 if (!SWIG_IsOK(ecode5)) {
31128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ListCtrl_InsertColumn" "', expected argument " "5"" of type '" "int""'");
31129 }
31130 arg5 = static_cast< int >(val5);
31131 }
31132 {
31133 PyThreadState* __tstate = wxPyBeginAllowThreads();
31134 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
31135 wxPyEndAllowThreads(__tstate);
31136 if (PyErr_Occurred()) SWIG_fail;
31137 }
31138 resultobj = SWIG_From_long(static_cast< long >(result));
31139 {
31140 if (temp3)
31141 delete arg3;
31142 }
31143 return resultobj;
31144 fail:
31145 {
31146 if (temp3)
31147 delete arg3;
31148 }
31149 return NULL;
31150 }
31151
31152
31153 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31154 PyObject *resultobj = 0;
31155 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31156 long arg2 ;
31157 void *argp1 = 0 ;
31158 int res1 = 0 ;
31159 long val2 ;
31160 int ecode2 = 0 ;
31161 PyObject * obj0 = 0 ;
31162 PyObject * obj1 = 0 ;
31163 char * kwnames[] = {
31164 (char *) "self",(char *) "count", NULL
31165 };
31166
31167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) SWIG_fail;
31168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31169 if (!SWIG_IsOK(res1)) {
31170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemCount" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31171 }
31172 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31173 ecode2 = SWIG_AsVal_long(obj1, &val2);
31174 if (!SWIG_IsOK(ecode2)) {
31175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemCount" "', expected argument " "2"" of type '" "long""'");
31176 }
31177 arg2 = static_cast< long >(val2);
31178 {
31179 PyThreadState* __tstate = wxPyBeginAllowThreads();
31180 (arg1)->SetItemCount(arg2);
31181 wxPyEndAllowThreads(__tstate);
31182 if (PyErr_Occurred()) SWIG_fail;
31183 }
31184 resultobj = SWIG_Py_Void();
31185 return resultobj;
31186 fail:
31187 return NULL;
31188 }
31189
31190
31191 SWIGINTERN PyObject *_wrap_ListCtrl_ScrollList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31192 PyObject *resultobj = 0;
31193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31194 int arg2 ;
31195 int arg3 ;
31196 bool result;
31197 void *argp1 = 0 ;
31198 int res1 = 0 ;
31199 int val2 ;
31200 int ecode2 = 0 ;
31201 int val3 ;
31202 int ecode3 = 0 ;
31203 PyObject * obj0 = 0 ;
31204 PyObject * obj1 = 0 ;
31205 PyObject * obj2 = 0 ;
31206 char * kwnames[] = {
31207 (char *) "self",(char *) "dx",(char *) "dy", NULL
31208 };
31209
31210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31212 if (!SWIG_IsOK(res1)) {
31213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_ScrollList" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31214 }
31215 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31216 ecode2 = SWIG_AsVal_int(obj1, &val2);
31217 if (!SWIG_IsOK(ecode2)) {
31218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_ScrollList" "', expected argument " "2"" of type '" "int""'");
31219 }
31220 arg2 = static_cast< int >(val2);
31221 ecode3 = SWIG_AsVal_int(obj2, &val3);
31222 if (!SWIG_IsOK(ecode3)) {
31223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListCtrl_ScrollList" "', expected argument " "3"" of type '" "int""'");
31224 }
31225 arg3 = static_cast< int >(val3);
31226 {
31227 PyThreadState* __tstate = wxPyBeginAllowThreads();
31228 result = (bool)(arg1)->ScrollList(arg2,arg3);
31229 wxPyEndAllowThreads(__tstate);
31230 if (PyErr_Occurred()) SWIG_fail;
31231 }
31232 {
31233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31234 }
31235 return resultobj;
31236 fail:
31237 return NULL;
31238 }
31239
31240
31241 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31242 PyObject *resultobj = 0;
31243 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31244 long arg2 ;
31245 wxColour *arg3 = 0 ;
31246 void *argp1 = 0 ;
31247 int res1 = 0 ;
31248 long val2 ;
31249 int ecode2 = 0 ;
31250 wxColour temp3 ;
31251 PyObject * obj0 = 0 ;
31252 PyObject * obj1 = 0 ;
31253 PyObject * obj2 = 0 ;
31254 char * kwnames[] = {
31255 (char *) "self",(char *) "item",(char *) "col", NULL
31256 };
31257
31258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31260 if (!SWIG_IsOK(res1)) {
31261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31262 }
31263 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31264 ecode2 = SWIG_AsVal_long(obj1, &val2);
31265 if (!SWIG_IsOK(ecode2)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31267 }
31268 arg2 = static_cast< long >(val2);
31269 {
31270 arg3 = &temp3;
31271 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31272 }
31273 {
31274 PyThreadState* __tstate = wxPyBeginAllowThreads();
31275 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
31276 wxPyEndAllowThreads(__tstate);
31277 if (PyErr_Occurred()) SWIG_fail;
31278 }
31279 resultobj = SWIG_Py_Void();
31280 return resultobj;
31281 fail:
31282 return NULL;
31283 }
31284
31285
31286 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31287 PyObject *resultobj = 0;
31288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31289 long arg2 ;
31290 wxColour result;
31291 void *argp1 = 0 ;
31292 int res1 = 0 ;
31293 long val2 ;
31294 int ecode2 = 0 ;
31295 PyObject * obj0 = 0 ;
31296 PyObject * obj1 = 0 ;
31297 char * kwnames[] = {
31298 (char *) "self",(char *) "item", NULL
31299 };
31300
31301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
31302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31303 if (!SWIG_IsOK(res1)) {
31304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31305 }
31306 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31307 ecode2 = SWIG_AsVal_long(obj1, &val2);
31308 if (!SWIG_IsOK(ecode2)) {
31309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "long""'");
31310 }
31311 arg2 = static_cast< long >(val2);
31312 {
31313 PyThreadState* __tstate = wxPyBeginAllowThreads();
31314 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
31315 wxPyEndAllowThreads(__tstate);
31316 if (PyErr_Occurred()) SWIG_fail;
31317 }
31318 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31319 return resultobj;
31320 fail:
31321 return NULL;
31322 }
31323
31324
31325 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31326 PyObject *resultobj = 0;
31327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31328 long arg2 ;
31329 wxColour *arg3 = 0 ;
31330 void *argp1 = 0 ;
31331 int res1 = 0 ;
31332 long val2 ;
31333 int ecode2 = 0 ;
31334 wxColour temp3 ;
31335 PyObject * obj0 = 0 ;
31336 PyObject * obj1 = 0 ;
31337 PyObject * obj2 = 0 ;
31338 char * kwnames[] = {
31339 (char *) "self",(char *) "item",(char *) "col", NULL
31340 };
31341
31342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31344 if (!SWIG_IsOK(res1)) {
31345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31346 }
31347 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31348 ecode2 = SWIG_AsVal_long(obj1, &val2);
31349 if (!SWIG_IsOK(ecode2)) {
31350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31351 }
31352 arg2 = static_cast< long >(val2);
31353 {
31354 arg3 = &temp3;
31355 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31356 }
31357 {
31358 PyThreadState* __tstate = wxPyBeginAllowThreads();
31359 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
31360 wxPyEndAllowThreads(__tstate);
31361 if (PyErr_Occurred()) SWIG_fail;
31362 }
31363 resultobj = SWIG_Py_Void();
31364 return resultobj;
31365 fail:
31366 return NULL;
31367 }
31368
31369
31370 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31371 PyObject *resultobj = 0;
31372 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31373 long arg2 ;
31374 wxColour result;
31375 void *argp1 = 0 ;
31376 int res1 = 0 ;
31377 long val2 ;
31378 int ecode2 = 0 ;
31379 PyObject * obj0 = 0 ;
31380 PyObject * obj1 = 0 ;
31381 char * kwnames[] = {
31382 (char *) "self",(char *) "item", NULL
31383 };
31384
31385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
31386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31387 if (!SWIG_IsOK(res1)) {
31388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31389 }
31390 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31391 ecode2 = SWIG_AsVal_long(obj1, &val2);
31392 if (!SWIG_IsOK(ecode2)) {
31393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "long""'");
31394 }
31395 arg2 = static_cast< long >(val2);
31396 {
31397 PyThreadState* __tstate = wxPyBeginAllowThreads();
31398 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
31399 wxPyEndAllowThreads(__tstate);
31400 if (PyErr_Occurred()) SWIG_fail;
31401 }
31402 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31403 return resultobj;
31404 fail:
31405 return NULL;
31406 }
31407
31408
31409 SWIGINTERN PyObject *_wrap_ListCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31410 PyObject *resultobj = 0;
31411 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31412 long arg2 ;
31413 wxFont *arg3 = 0 ;
31414 void *argp1 = 0 ;
31415 int res1 = 0 ;
31416 long val2 ;
31417 int ecode2 = 0 ;
31418 void *argp3 = 0 ;
31419 int res3 = 0 ;
31420 PyObject * obj0 = 0 ;
31421 PyObject * obj1 = 0 ;
31422 PyObject * obj2 = 0 ;
31423 char * kwnames[] = {
31424 (char *) "self",(char *) "item",(char *) "f", NULL
31425 };
31426
31427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31429 if (!SWIG_IsOK(res1)) {
31430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31431 }
31432 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31433 ecode2 = SWIG_AsVal_long(obj1, &val2);
31434 if (!SWIG_IsOK(ecode2)) {
31435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_SetItemFont" "', expected argument " "2"" of type '" "long""'");
31436 }
31437 arg2 = static_cast< long >(val2);
31438 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
31439 if (!SWIG_IsOK(res3)) {
31440 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31441 }
31442 if (!argp3) {
31443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
31444 }
31445 arg3 = reinterpret_cast< wxFont * >(argp3);
31446 {
31447 PyThreadState* __tstate = wxPyBeginAllowThreads();
31448 (arg1)->SetItemFont(arg2,(wxFont const &)*arg3);
31449 wxPyEndAllowThreads(__tstate);
31450 if (PyErr_Occurred()) SWIG_fail;
31451 }
31452 resultobj = SWIG_Py_Void();
31453 return resultobj;
31454 fail:
31455 return NULL;
31456 }
31457
31458
31459 SWIGINTERN PyObject *_wrap_ListCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31460 PyObject *resultobj = 0;
31461 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31462 long arg2 ;
31463 wxFont result;
31464 void *argp1 = 0 ;
31465 int res1 = 0 ;
31466 long val2 ;
31467 int ecode2 = 0 ;
31468 PyObject * obj0 = 0 ;
31469 PyObject * obj1 = 0 ;
31470 char * kwnames[] = {
31471 (char *) "self",(char *) "item", NULL
31472 };
31473
31474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
31475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31476 if (!SWIG_IsOK(res1)) {
31477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyListCtrl const *""'");
31478 }
31479 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31480 ecode2 = SWIG_AsVal_long(obj1, &val2);
31481 if (!SWIG_IsOK(ecode2)) {
31482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListCtrl_GetItemFont" "', expected argument " "2"" of type '" "long""'");
31483 }
31484 arg2 = static_cast< long >(val2);
31485 {
31486 PyThreadState* __tstate = wxPyBeginAllowThreads();
31487 result = ((wxPyListCtrl const *)arg1)->GetItemFont(arg2);
31488 wxPyEndAllowThreads(__tstate);
31489 if (PyErr_Occurred()) SWIG_fail;
31490 }
31491 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
31492 return resultobj;
31493 fail:
31494 return NULL;
31495 }
31496
31497
31498 SWIGINTERN PyObject *_wrap_ListCtrl_SortItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31499 PyObject *resultobj = 0;
31500 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31501 PyObject *arg2 = (PyObject *) 0 ;
31502 bool result;
31503 void *argp1 = 0 ;
31504 int res1 = 0 ;
31505 PyObject * obj0 = 0 ;
31506 PyObject * obj1 = 0 ;
31507 char * kwnames[] = {
31508 (char *) "self",(char *) "func", NULL
31509 };
31510
31511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) SWIG_fail;
31512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31513 if (!SWIG_IsOK(res1)) {
31514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_SortItems" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31515 }
31516 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31517 arg2 = obj1;
31518 {
31519 PyThreadState* __tstate = wxPyBeginAllowThreads();
31520 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
31521 wxPyEndAllowThreads(__tstate);
31522 if (PyErr_Occurred()) SWIG_fail;
31523 }
31524 {
31525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31526 }
31527 return resultobj;
31528 fail:
31529 return NULL;
31530 }
31531
31532
31533 SWIGINTERN PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31534 PyObject *resultobj = 0;
31535 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
31536 wxWindow *result = 0 ;
31537 void *argp1 = 0 ;
31538 int res1 = 0 ;
31539 PyObject *swig_obj[1] ;
31540
31541 if (!args) SWIG_fail;
31542 swig_obj[0] = args;
31543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyListCtrl, 0 | 0 );
31544 if (!SWIG_IsOK(res1)) {
31545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListCtrl_GetMainWindow" "', expected argument " "1"" of type '" "wxPyListCtrl *""'");
31546 }
31547 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
31548 {
31549 PyThreadState* __tstate = wxPyBeginAllowThreads();
31550 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
31551 wxPyEndAllowThreads(__tstate);
31552 if (PyErr_Occurred()) SWIG_fail;
31553 }
31554 {
31555 resultobj = wxPyMake_wxObject(result, 0);
31556 }
31557 return resultobj;
31558 fail:
31559 return NULL;
31560 }
31561
31562
31563 SWIGINTERN PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31564 PyObject *resultobj = 0;
31565 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
31566 SwigValueWrapper<wxVisualAttributes > result;
31567 int val1 ;
31568 int ecode1 = 0 ;
31569 PyObject * obj0 = 0 ;
31570 char * kwnames[] = {
31571 (char *) "variant", NULL
31572 };
31573
31574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
31575 if (obj0) {
31576 ecode1 = SWIG_AsVal_int(obj0, &val1);
31577 if (!SWIG_IsOK(ecode1)) {
31578 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "ListCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
31579 }
31580 arg1 = static_cast< wxWindowVariant >(val1);
31581 }
31582 {
31583 if (!wxPyCheckForApp()) SWIG_fail;
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = wxPyListCtrl::GetClassDefaultAttributes(arg1);
31586 wxPyEndAllowThreads(__tstate);
31587 if (PyErr_Occurred()) SWIG_fail;
31588 }
31589 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
31590 return resultobj;
31591 fail:
31592 return NULL;
31593 }
31594
31595
31596 SWIGINTERN PyObject *ListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31597 PyObject *obj;
31598 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31599 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyListCtrl, SWIG_NewClientData(obj));
31600 return SWIG_Py_Void();
31601 }
31602
31603 SWIGINTERN PyObject *ListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31604 return SWIG_Python_InitShadowInstance(args);
31605 }
31606
31607 SWIGINTERN PyObject *_wrap_new_ListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31608 PyObject *resultobj = 0;
31609 wxWindow *arg1 = (wxWindow *) 0 ;
31610 int arg2 = (int) -1 ;
31611 wxPoint const &arg3_defvalue = wxDefaultPosition ;
31612 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
31613 wxSize const &arg4_defvalue = wxDefaultSize ;
31614 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
31615 long arg5 = (long) wxLC_REPORT ;
31616 wxValidator const &arg6_defvalue = wxDefaultValidator ;
31617 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
31618 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
31619 wxString *arg7 = (wxString *) &arg7_defvalue ;
31620 wxListView *result = 0 ;
31621 void *argp1 = 0 ;
31622 int res1 = 0 ;
31623 int val2 ;
31624 int ecode2 = 0 ;
31625 wxPoint temp3 ;
31626 wxSize temp4 ;
31627 long val5 ;
31628 int ecode5 = 0 ;
31629 void *argp6 = 0 ;
31630 int res6 = 0 ;
31631 bool temp7 = false ;
31632 PyObject * obj0 = 0 ;
31633 PyObject * obj1 = 0 ;
31634 PyObject * obj2 = 0 ;
31635 PyObject * obj3 = 0 ;
31636 PyObject * obj4 = 0 ;
31637 PyObject * obj5 = 0 ;
31638 PyObject * obj6 = 0 ;
31639 char * kwnames[] = {
31640 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31641 };
31642
31643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
31645 if (!SWIG_IsOK(res1)) {
31646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ListView" "', expected argument " "1"" of type '" "wxWindow *""'");
31647 }
31648 arg1 = reinterpret_cast< wxWindow * >(argp1);
31649 if (obj1) {
31650 ecode2 = SWIG_AsVal_int(obj1, &val2);
31651 if (!SWIG_IsOK(ecode2)) {
31652 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ListView" "', expected argument " "2"" of type '" "int""'");
31653 }
31654 arg2 = static_cast< int >(val2);
31655 }
31656 if (obj2) {
31657 {
31658 arg3 = &temp3;
31659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31660 }
31661 }
31662 if (obj3) {
31663 {
31664 arg4 = &temp4;
31665 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31666 }
31667 }
31668 if (obj4) {
31669 ecode5 = SWIG_AsVal_long(obj4, &val5);
31670 if (!SWIG_IsOK(ecode5)) {
31671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ListView" "', expected argument " "5"" of type '" "long""'");
31672 }
31673 arg5 = static_cast< long >(val5);
31674 }
31675 if (obj5) {
31676 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
31677 if (!SWIG_IsOK(res6)) {
31678 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31679 }
31680 if (!argp6) {
31681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_ListView" "', expected argument " "6"" of type '" "wxValidator const &""'");
31682 }
31683 arg6 = reinterpret_cast< wxValidator * >(argp6);
31684 }
31685 if (obj6) {
31686 {
31687 arg7 = wxString_in_helper(obj6);
31688 if (arg7 == NULL) SWIG_fail;
31689 temp7 = true;
31690 }
31691 }
31692 {
31693 if (!wxPyCheckForApp()) SWIG_fail;
31694 PyThreadState* __tstate = wxPyBeginAllowThreads();
31695 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
31696 wxPyEndAllowThreads(__tstate);
31697 if (PyErr_Occurred()) SWIG_fail;
31698 }
31699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_NEW | 0 );
31700 {
31701 if (temp7)
31702 delete arg7;
31703 }
31704 return resultobj;
31705 fail:
31706 {
31707 if (temp7)
31708 delete arg7;
31709 }
31710 return NULL;
31711 }
31712
31713
31714 SWIGINTERN PyObject *_wrap_new_PreListView(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31715 PyObject *resultobj = 0;
31716 wxListView *result = 0 ;
31717
31718 if (!SWIG_Python_UnpackTuple(args,"new_PreListView",0,0,0)) SWIG_fail;
31719 {
31720 if (!wxPyCheckForApp()) SWIG_fail;
31721 PyThreadState* __tstate = wxPyBeginAllowThreads();
31722 result = (wxListView *)new wxListView();
31723 wxPyEndAllowThreads(__tstate);
31724 if (PyErr_Occurred()) SWIG_fail;
31725 }
31726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxListView, SWIG_POINTER_OWN | 0 );
31727 return resultobj;
31728 fail:
31729 return NULL;
31730 }
31731
31732
31733 SWIGINTERN PyObject *_wrap_ListView_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31734 PyObject *resultobj = 0;
31735 wxListView *arg1 = (wxListView *) 0 ;
31736 wxWindow *arg2 = (wxWindow *) 0 ;
31737 int arg3 = (int) -1 ;
31738 wxPoint const &arg4_defvalue = wxDefaultPosition ;
31739 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
31740 wxSize const &arg5_defvalue = wxDefaultSize ;
31741 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
31742 long arg6 = (long) wxLC_REPORT ;
31743 wxValidator const &arg7_defvalue = wxDefaultValidator ;
31744 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
31745 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
31746 wxString *arg8 = (wxString *) &arg8_defvalue ;
31747 bool result;
31748 void *argp1 = 0 ;
31749 int res1 = 0 ;
31750 void *argp2 = 0 ;
31751 int res2 = 0 ;
31752 int val3 ;
31753 int ecode3 = 0 ;
31754 wxPoint temp4 ;
31755 wxSize temp5 ;
31756 long val6 ;
31757 int ecode6 = 0 ;
31758 void *argp7 = 0 ;
31759 int res7 = 0 ;
31760 bool temp8 = false ;
31761 PyObject * obj0 = 0 ;
31762 PyObject * obj1 = 0 ;
31763 PyObject * obj2 = 0 ;
31764 PyObject * obj3 = 0 ;
31765 PyObject * obj4 = 0 ;
31766 PyObject * obj5 = 0 ;
31767 PyObject * obj6 = 0 ;
31768 PyObject * obj7 = 0 ;
31769 char * kwnames[] = {
31770 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
31771 };
31772
31773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31775 if (!SWIG_IsOK(res1)) {
31776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Create" "', expected argument " "1"" of type '" "wxListView *""'");
31777 }
31778 arg1 = reinterpret_cast< wxListView * >(argp1);
31779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31780 if (!SWIG_IsOK(res2)) {
31781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ListView_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
31782 }
31783 arg2 = reinterpret_cast< wxWindow * >(argp2);
31784 if (obj2) {
31785 ecode3 = SWIG_AsVal_int(obj2, &val3);
31786 if (!SWIG_IsOK(ecode3)) {
31787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Create" "', expected argument " "3"" of type '" "int""'");
31788 }
31789 arg3 = static_cast< int >(val3);
31790 }
31791 if (obj3) {
31792 {
31793 arg4 = &temp4;
31794 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
31795 }
31796 }
31797 if (obj4) {
31798 {
31799 arg5 = &temp5;
31800 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
31801 }
31802 }
31803 if (obj5) {
31804 ecode6 = SWIG_AsVal_long(obj5, &val6);
31805 if (!SWIG_IsOK(ecode6)) {
31806 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ListView_Create" "', expected argument " "6"" of type '" "long""'");
31807 }
31808 arg6 = static_cast< long >(val6);
31809 }
31810 if (obj6) {
31811 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
31812 if (!SWIG_IsOK(res7)) {
31813 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31814 }
31815 if (!argp7) {
31816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ListView_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
31817 }
31818 arg7 = reinterpret_cast< wxValidator * >(argp7);
31819 }
31820 if (obj7) {
31821 {
31822 arg8 = wxString_in_helper(obj7);
31823 if (arg8 == NULL) SWIG_fail;
31824 temp8 = true;
31825 }
31826 }
31827 {
31828 PyThreadState* __tstate = wxPyBeginAllowThreads();
31829 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
31830 wxPyEndAllowThreads(__tstate);
31831 if (PyErr_Occurred()) SWIG_fail;
31832 }
31833 {
31834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31835 }
31836 {
31837 if (temp8)
31838 delete arg8;
31839 }
31840 return resultobj;
31841 fail:
31842 {
31843 if (temp8)
31844 delete arg8;
31845 }
31846 return NULL;
31847 }
31848
31849
31850 SWIGINTERN PyObject *_wrap_ListView_Select(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31851 PyObject *resultobj = 0;
31852 wxListView *arg1 = (wxListView *) 0 ;
31853 long arg2 ;
31854 bool arg3 = (bool) true ;
31855 void *argp1 = 0 ;
31856 int res1 = 0 ;
31857 long val2 ;
31858 int ecode2 = 0 ;
31859 bool val3 ;
31860 int ecode3 = 0 ;
31861 PyObject * obj0 = 0 ;
31862 PyObject * obj1 = 0 ;
31863 PyObject * obj2 = 0 ;
31864 char * kwnames[] = {
31865 (char *) "self",(char *) "n",(char *) "on", NULL
31866 };
31867
31868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31870 if (!SWIG_IsOK(res1)) {
31871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Select" "', expected argument " "1"" of type '" "wxListView *""'");
31872 }
31873 arg1 = reinterpret_cast< wxListView * >(argp1);
31874 ecode2 = SWIG_AsVal_long(obj1, &val2);
31875 if (!SWIG_IsOK(ecode2)) {
31876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Select" "', expected argument " "2"" of type '" "long""'");
31877 }
31878 arg2 = static_cast< long >(val2);
31879 if (obj2) {
31880 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31881 if (!SWIG_IsOK(ecode3)) {
31882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_Select" "', expected argument " "3"" of type '" "bool""'");
31883 }
31884 arg3 = static_cast< bool >(val3);
31885 }
31886 {
31887 PyThreadState* __tstate = wxPyBeginAllowThreads();
31888 (arg1)->Select(arg2,arg3);
31889 wxPyEndAllowThreads(__tstate);
31890 if (PyErr_Occurred()) SWIG_fail;
31891 }
31892 resultobj = SWIG_Py_Void();
31893 return resultobj;
31894 fail:
31895 return NULL;
31896 }
31897
31898
31899 SWIGINTERN PyObject *_wrap_ListView_Focus(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31900 PyObject *resultobj = 0;
31901 wxListView *arg1 = (wxListView *) 0 ;
31902 long arg2 ;
31903 void *argp1 = 0 ;
31904 int res1 = 0 ;
31905 long val2 ;
31906 int ecode2 = 0 ;
31907 PyObject * obj0 = 0 ;
31908 PyObject * obj1 = 0 ;
31909 char * kwnames[] = {
31910 (char *) "self",(char *) "index", NULL
31911 };
31912
31913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) SWIG_fail;
31914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31915 if (!SWIG_IsOK(res1)) {
31916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_Focus" "', expected argument " "1"" of type '" "wxListView *""'");
31917 }
31918 arg1 = reinterpret_cast< wxListView * >(argp1);
31919 ecode2 = SWIG_AsVal_long(obj1, &val2);
31920 if (!SWIG_IsOK(ecode2)) {
31921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_Focus" "', expected argument " "2"" of type '" "long""'");
31922 }
31923 arg2 = static_cast< long >(val2);
31924 {
31925 PyThreadState* __tstate = wxPyBeginAllowThreads();
31926 (arg1)->Focus(arg2);
31927 wxPyEndAllowThreads(__tstate);
31928 if (PyErr_Occurred()) SWIG_fail;
31929 }
31930 resultobj = SWIG_Py_Void();
31931 return resultobj;
31932 fail:
31933 return NULL;
31934 }
31935
31936
31937 SWIGINTERN PyObject *_wrap_ListView_GetFocusedItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31938 PyObject *resultobj = 0;
31939 wxListView *arg1 = (wxListView *) 0 ;
31940 long result;
31941 void *argp1 = 0 ;
31942 int res1 = 0 ;
31943 PyObject *swig_obj[1] ;
31944
31945 if (!args) SWIG_fail;
31946 swig_obj[0] = args;
31947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31948 if (!SWIG_IsOK(res1)) {
31949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFocusedItem" "', expected argument " "1"" of type '" "wxListView const *""'");
31950 }
31951 arg1 = reinterpret_cast< wxListView * >(argp1);
31952 {
31953 PyThreadState* __tstate = wxPyBeginAllowThreads();
31954 result = (long)((wxListView const *)arg1)->GetFocusedItem();
31955 wxPyEndAllowThreads(__tstate);
31956 if (PyErr_Occurred()) SWIG_fail;
31957 }
31958 resultobj = SWIG_From_long(static_cast< long >(result));
31959 return resultobj;
31960 fail:
31961 return NULL;
31962 }
31963
31964
31965 SWIGINTERN PyObject *_wrap_ListView_GetNextSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31966 PyObject *resultobj = 0;
31967 wxListView *arg1 = (wxListView *) 0 ;
31968 long arg2 ;
31969 long result;
31970 void *argp1 = 0 ;
31971 int res1 = 0 ;
31972 long val2 ;
31973 int ecode2 = 0 ;
31974 PyObject * obj0 = 0 ;
31975 PyObject * obj1 = 0 ;
31976 char * kwnames[] = {
31977 (char *) "self",(char *) "item", NULL
31978 };
31979
31980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) SWIG_fail;
31981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
31982 if (!SWIG_IsOK(res1)) {
31983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetNextSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
31984 }
31985 arg1 = reinterpret_cast< wxListView * >(argp1);
31986 ecode2 = SWIG_AsVal_long(obj1, &val2);
31987 if (!SWIG_IsOK(ecode2)) {
31988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_GetNextSelected" "', expected argument " "2"" of type '" "long""'");
31989 }
31990 arg2 = static_cast< long >(val2);
31991 {
31992 PyThreadState* __tstate = wxPyBeginAllowThreads();
31993 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
31994 wxPyEndAllowThreads(__tstate);
31995 if (PyErr_Occurred()) SWIG_fail;
31996 }
31997 resultobj = SWIG_From_long(static_cast< long >(result));
31998 return resultobj;
31999 fail:
32000 return NULL;
32001 }
32002
32003
32004 SWIGINTERN PyObject *_wrap_ListView_GetFirstSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32005 PyObject *resultobj = 0;
32006 wxListView *arg1 = (wxListView *) 0 ;
32007 long result;
32008 void *argp1 = 0 ;
32009 int res1 = 0 ;
32010 PyObject *swig_obj[1] ;
32011
32012 if (!args) SWIG_fail;
32013 swig_obj[0] = args;
32014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32015 if (!SWIG_IsOK(res1)) {
32016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_GetFirstSelected" "', expected argument " "1"" of type '" "wxListView const *""'");
32017 }
32018 arg1 = reinterpret_cast< wxListView * >(argp1);
32019 {
32020 PyThreadState* __tstate = wxPyBeginAllowThreads();
32021 result = (long)((wxListView const *)arg1)->GetFirstSelected();
32022 wxPyEndAllowThreads(__tstate);
32023 if (PyErr_Occurred()) SWIG_fail;
32024 }
32025 resultobj = SWIG_From_long(static_cast< long >(result));
32026 return resultobj;
32027 fail:
32028 return NULL;
32029 }
32030
32031
32032 SWIGINTERN PyObject *_wrap_ListView_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32033 PyObject *resultobj = 0;
32034 wxListView *arg1 = (wxListView *) 0 ;
32035 long arg2 ;
32036 bool result;
32037 void *argp1 = 0 ;
32038 int res1 = 0 ;
32039 long val2 ;
32040 int ecode2 = 0 ;
32041 PyObject * obj0 = 0 ;
32042 PyObject * obj1 = 0 ;
32043 char * kwnames[] = {
32044 (char *) "self",(char *) "index", NULL
32045 };
32046
32047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
32048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32049 if (!SWIG_IsOK(res1)) {
32050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_IsSelected" "', expected argument " "1"" of type '" "wxListView *""'");
32051 }
32052 arg1 = reinterpret_cast< wxListView * >(argp1);
32053 ecode2 = SWIG_AsVal_long(obj1, &val2);
32054 if (!SWIG_IsOK(ecode2)) {
32055 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_IsSelected" "', expected argument " "2"" of type '" "long""'");
32056 }
32057 arg2 = static_cast< long >(val2);
32058 {
32059 PyThreadState* __tstate = wxPyBeginAllowThreads();
32060 result = (bool)(arg1)->IsSelected(arg2);
32061 wxPyEndAllowThreads(__tstate);
32062 if (PyErr_Occurred()) SWIG_fail;
32063 }
32064 {
32065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32066 }
32067 return resultobj;
32068 fail:
32069 return NULL;
32070 }
32071
32072
32073 SWIGINTERN PyObject *_wrap_ListView_SetColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32074 PyObject *resultobj = 0;
32075 wxListView *arg1 = (wxListView *) 0 ;
32076 int arg2 ;
32077 int arg3 ;
32078 void *argp1 = 0 ;
32079 int res1 = 0 ;
32080 int val2 ;
32081 int ecode2 = 0 ;
32082 int val3 ;
32083 int ecode3 = 0 ;
32084 PyObject * obj0 = 0 ;
32085 PyObject * obj1 = 0 ;
32086 PyObject * obj2 = 0 ;
32087 char * kwnames[] = {
32088 (char *) "self",(char *) "col",(char *) "image", NULL
32089 };
32090
32091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32093 if (!SWIG_IsOK(res1)) {
32094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_SetColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32095 }
32096 arg1 = reinterpret_cast< wxListView * >(argp1);
32097 ecode2 = SWIG_AsVal_int(obj1, &val2);
32098 if (!SWIG_IsOK(ecode2)) {
32099 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_SetColumnImage" "', expected argument " "2"" of type '" "int""'");
32100 }
32101 arg2 = static_cast< int >(val2);
32102 ecode3 = SWIG_AsVal_int(obj2, &val3);
32103 if (!SWIG_IsOK(ecode3)) {
32104 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ListView_SetColumnImage" "', expected argument " "3"" of type '" "int""'");
32105 }
32106 arg3 = static_cast< int >(val3);
32107 {
32108 PyThreadState* __tstate = wxPyBeginAllowThreads();
32109 (arg1)->SetColumnImage(arg2,arg3);
32110 wxPyEndAllowThreads(__tstate);
32111 if (PyErr_Occurred()) SWIG_fail;
32112 }
32113 resultobj = SWIG_Py_Void();
32114 return resultobj;
32115 fail:
32116 return NULL;
32117 }
32118
32119
32120 SWIGINTERN PyObject *_wrap_ListView_ClearColumnImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32121 PyObject *resultobj = 0;
32122 wxListView *arg1 = (wxListView *) 0 ;
32123 int arg2 ;
32124 void *argp1 = 0 ;
32125 int res1 = 0 ;
32126 int val2 ;
32127 int ecode2 = 0 ;
32128 PyObject * obj0 = 0 ;
32129 PyObject * obj1 = 0 ;
32130 char * kwnames[] = {
32131 (char *) "self",(char *) "col", NULL
32132 };
32133
32134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) SWIG_fail;
32135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxListView, 0 | 0 );
32136 if (!SWIG_IsOK(res1)) {
32137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ListView_ClearColumnImage" "', expected argument " "1"" of type '" "wxListView *""'");
32138 }
32139 arg1 = reinterpret_cast< wxListView * >(argp1);
32140 ecode2 = SWIG_AsVal_int(obj1, &val2);
32141 if (!SWIG_IsOK(ecode2)) {
32142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ListView_ClearColumnImage" "', expected argument " "2"" of type '" "int""'");
32143 }
32144 arg2 = static_cast< int >(val2);
32145 {
32146 PyThreadState* __tstate = wxPyBeginAllowThreads();
32147 (arg1)->ClearColumnImage(arg2);
32148 wxPyEndAllowThreads(__tstate);
32149 if (PyErr_Occurred()) SWIG_fail;
32150 }
32151 resultobj = SWIG_Py_Void();
32152 return resultobj;
32153 fail:
32154 return NULL;
32155 }
32156
32157
32158 SWIGINTERN PyObject *ListView_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32159 PyObject *obj;
32160 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32161 SWIG_TypeNewClientData(SWIGTYPE_p_wxListView, SWIG_NewClientData(obj));
32162 return SWIG_Py_Void();
32163 }
32164
32165 SWIGINTERN PyObject *ListView_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32166 return SWIG_Python_InitShadowInstance(args);
32167 }
32168
32169 SWIGINTERN int TreeCtrlNameStr_set(PyObject *) {
32170 SWIG_Error(SWIG_AttributeError,"Variable TreeCtrlNameStr is read-only.");
32171 return 1;
32172 }
32173
32174
32175 SWIGINTERN PyObject *TreeCtrlNameStr_get(void) {
32176 PyObject *pyobj = 0;
32177
32178 {
32179 #if wxUSE_UNICODE
32180 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32181 #else
32182 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
32183 #endif
32184 }
32185 return pyobj;
32186 }
32187
32188
32189 SWIGINTERN PyObject *_wrap_new_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32190 PyObject *resultobj = 0;
32191 wxTreeItemId *result = 0 ;
32192
32193 if (!SWIG_Python_UnpackTuple(args,"new_TreeItemId",0,0,0)) SWIG_fail;
32194 {
32195 PyThreadState* __tstate = wxPyBeginAllowThreads();
32196 result = (wxTreeItemId *)new wxTreeItemId();
32197 wxPyEndAllowThreads(__tstate);
32198 if (PyErr_Occurred()) SWIG_fail;
32199 }
32200 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_NEW | 0 );
32201 return resultobj;
32202 fail:
32203 return NULL;
32204 }
32205
32206
32207 SWIGINTERN PyObject *_wrap_delete_TreeItemId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32208 PyObject *resultobj = 0;
32209 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32210 void *argp1 = 0 ;
32211 int res1 = 0 ;
32212 PyObject *swig_obj[1] ;
32213
32214 if (!args) SWIG_fail;
32215 swig_obj[0] = args;
32216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_DISOWN | 0 );
32217 if (!SWIG_IsOK(res1)) {
32218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemId" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32219 }
32220 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32221 {
32222 PyThreadState* __tstate = wxPyBeginAllowThreads();
32223 delete arg1;
32224
32225 wxPyEndAllowThreads(__tstate);
32226 if (PyErr_Occurred()) SWIG_fail;
32227 }
32228 resultobj = SWIG_Py_Void();
32229 return resultobj;
32230 fail:
32231 return NULL;
32232 }
32233
32234
32235 SWIGINTERN PyObject *_wrap_TreeItemId_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32236 PyObject *resultobj = 0;
32237 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32238 bool result;
32239 void *argp1 = 0 ;
32240 int res1 = 0 ;
32241 PyObject *swig_obj[1] ;
32242
32243 if (!args) SWIG_fail;
32244 swig_obj[0] = args;
32245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32246 if (!SWIG_IsOK(res1)) {
32247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_IsOk" "', expected argument " "1"" of type '" "wxTreeItemId const *""'");
32248 }
32249 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32250 {
32251 PyThreadState* __tstate = wxPyBeginAllowThreads();
32252 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
32253 wxPyEndAllowThreads(__tstate);
32254 if (PyErr_Occurred()) SWIG_fail;
32255 }
32256 {
32257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32258 }
32259 return resultobj;
32260 fail:
32261 return NULL;
32262 }
32263
32264
32265 SWIGINTERN PyObject *_wrap_TreeItemId___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32266 PyObject *resultobj = 0;
32267 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32268 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32269 bool result;
32270 void *argp1 = 0 ;
32271 int res1 = 0 ;
32272 void *argp2 = 0 ;
32273 int res2 = 0 ;
32274 PyObject * obj0 = 0 ;
32275 PyObject * obj1 = 0 ;
32276 char * kwnames[] = {
32277 (char *) "self",(char *) "other", NULL
32278 };
32279
32280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
32281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32282 if (!SWIG_IsOK(res1)) {
32283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___eq__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32284 }
32285 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32286 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32287 if (!SWIG_IsOK(res2)) {
32288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___eq__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32289 }
32290 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32291 {
32292 PyThreadState* __tstate = wxPyBeginAllowThreads();
32293 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
32294 wxPyEndAllowThreads(__tstate);
32295 if (PyErr_Occurred()) SWIG_fail;
32296 }
32297 {
32298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32299 }
32300 return resultobj;
32301 fail:
32302 return NULL;
32303 }
32304
32305
32306 SWIGINTERN PyObject *_wrap_TreeItemId___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32307 PyObject *resultobj = 0;
32308 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32309 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
32310 bool result;
32311 void *argp1 = 0 ;
32312 int res1 = 0 ;
32313 void *argp2 = 0 ;
32314 int res2 = 0 ;
32315 PyObject * obj0 = 0 ;
32316 PyObject * obj1 = 0 ;
32317 char * kwnames[] = {
32318 (char *) "self",(char *) "other", NULL
32319 };
32320
32321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
32322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32323 if (!SWIG_IsOK(res1)) {
32324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId___ne__" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32325 }
32326 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32327 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32328 if (!SWIG_IsOK(res2)) {
32329 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId___ne__" "', expected argument " "2"" of type '" "wxTreeItemId const *""'");
32330 }
32331 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32332 {
32333 PyThreadState* __tstate = wxPyBeginAllowThreads();
32334 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
32335 wxPyEndAllowThreads(__tstate);
32336 if (PyErr_Occurred()) SWIG_fail;
32337 }
32338 {
32339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32340 }
32341 return resultobj;
32342 fail:
32343 return NULL;
32344 }
32345
32346
32347 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32348 PyObject *resultobj = 0;
32349 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32350 void *arg2 = (void *) 0 ;
32351 void *argp1 = 0 ;
32352 int res1 = 0 ;
32353 int res2 ;
32354 PyObject *swig_obj[2] ;
32355
32356 if (!SWIG_Python_UnpackTuple(args,"TreeItemId_m_pItem_set",2,2,swig_obj)) SWIG_fail;
32357 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32358 if (!SWIG_IsOK(res1)) {
32359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32360 }
32361 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32362 res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, SWIG_POINTER_DISOWN);
32363 if (!SWIG_IsOK(res2)) {
32364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemId_m_pItem_set" "', expected argument " "2"" of type '" "void *""'");
32365 }
32366 if (arg1) (arg1)->m_pItem = arg2;
32367
32368 resultobj = SWIG_Py_Void();
32369 return resultobj;
32370 fail:
32371 return NULL;
32372 }
32373
32374
32375 SWIGINTERN PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32376 PyObject *resultobj = 0;
32377 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
32378 void *result = 0 ;
32379 void *argp1 = 0 ;
32380 int res1 = 0 ;
32381 PyObject *swig_obj[1] ;
32382
32383 if (!args) SWIG_fail;
32384 swig_obj[0] = args;
32385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32386 if (!SWIG_IsOK(res1)) {
32387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemId_m_pItem_get" "', expected argument " "1"" of type '" "wxTreeItemId *""'");
32388 }
32389 arg1 = reinterpret_cast< wxTreeItemId * >(argp1);
32390 result = (void *) ((arg1)->m_pItem);
32391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
32392 return resultobj;
32393 fail:
32394 return NULL;
32395 }
32396
32397
32398 SWIGINTERN PyObject *TreeItemId_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32399 PyObject *obj;
32400 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32401 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeItemId, SWIG_NewClientData(obj));
32402 return SWIG_Py_Void();
32403 }
32404
32405 SWIGINTERN PyObject *TreeItemId_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32406 return SWIG_Python_InitShadowInstance(args);
32407 }
32408
32409 SWIGINTERN PyObject *_wrap_new_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32410 PyObject *resultobj = 0;
32411 PyObject *arg1 = (PyObject *) NULL ;
32412 wxPyTreeItemData *result = 0 ;
32413 PyObject * obj0 = 0 ;
32414 char * kwnames[] = {
32415 (char *) "obj", NULL
32416 };
32417
32418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) SWIG_fail;
32419 if (obj0) {
32420 arg1 = obj0;
32421 }
32422 {
32423 PyThreadState* __tstate = wxPyBeginAllowThreads();
32424 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
32425 wxPyEndAllowThreads(__tstate);
32426 if (PyErr_Occurred()) SWIG_fail;
32427 }
32428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_NEW | 0 );
32429 return resultobj;
32430 fail:
32431 return NULL;
32432 }
32433
32434
32435 SWIGINTERN PyObject *_wrap_delete_TreeItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32436 PyObject *resultobj = 0;
32437 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32438 void *argp1 = 0 ;
32439 int res1 = 0 ;
32440 PyObject *swig_obj[1] ;
32441
32442 if (!args) SWIG_fail;
32443 swig_obj[0] = args;
32444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
32445 if (!SWIG_IsOK(res1)) {
32446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TreeItemData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32447 }
32448 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32449 {
32450 PyThreadState* __tstate = wxPyBeginAllowThreads();
32451 delete arg1;
32452
32453 wxPyEndAllowThreads(__tstate);
32454 if (PyErr_Occurred()) SWIG_fail;
32455 }
32456 resultobj = SWIG_Py_Void();
32457 return resultobj;
32458 fail:
32459 return NULL;
32460 }
32461
32462
32463 SWIGINTERN PyObject *_wrap_TreeItemData_GetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32464 PyObject *resultobj = 0;
32465 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32466 PyObject *result = 0 ;
32467 void *argp1 = 0 ;
32468 int res1 = 0 ;
32469 PyObject *swig_obj[1] ;
32470
32471 if (!args) SWIG_fail;
32472 swig_obj[0] = args;
32473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32474 if (!SWIG_IsOK(res1)) {
32475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32476 }
32477 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32478 {
32479 PyThreadState* __tstate = wxPyBeginAllowThreads();
32480 result = (PyObject *)(arg1)->GetData();
32481 wxPyEndAllowThreads(__tstate);
32482 if (PyErr_Occurred()) SWIG_fail;
32483 }
32484 resultobj = result;
32485 return resultobj;
32486 fail:
32487 return NULL;
32488 }
32489
32490
32491 SWIGINTERN PyObject *_wrap_TreeItemData_SetData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32492 PyObject *resultobj = 0;
32493 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32494 PyObject *arg2 = (PyObject *) 0 ;
32495 void *argp1 = 0 ;
32496 int res1 = 0 ;
32497 PyObject * obj0 = 0 ;
32498 PyObject * obj1 = 0 ;
32499 char * kwnames[] = {
32500 (char *) "self",(char *) "obj", NULL
32501 };
32502
32503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) SWIG_fail;
32504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32505 if (!SWIG_IsOK(res1)) {
32506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetData" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32507 }
32508 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32509 arg2 = obj1;
32510 {
32511 PyThreadState* __tstate = wxPyBeginAllowThreads();
32512 (arg1)->SetData(arg2);
32513 wxPyEndAllowThreads(__tstate);
32514 if (PyErr_Occurred()) SWIG_fail;
32515 }
32516 resultobj = SWIG_Py_Void();
32517 return resultobj;
32518 fail:
32519 return NULL;
32520 }
32521
32522
32523 SWIGINTERN PyObject *_wrap_TreeItemData_GetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32524 PyObject *resultobj = 0;
32525 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32526 wxTreeItemId *result = 0 ;
32527 void *argp1 = 0 ;
32528 int res1 = 0 ;
32529 PyObject *swig_obj[1] ;
32530
32531 if (!args) SWIG_fail;
32532 swig_obj[0] = args;
32533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32534 if (!SWIG_IsOK(res1)) {
32535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_GetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32536 }
32537 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32538 {
32539 PyThreadState* __tstate = wxPyBeginAllowThreads();
32540 {
32541 wxTreeItemId const &_result_ref = (arg1)->GetId();
32542 result = (wxTreeItemId *) &_result_ref;
32543 }
32544 wxPyEndAllowThreads(__tstate);
32545 if (PyErr_Occurred()) SWIG_fail;
32546 }
32547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeItemId, 0 | 0 );
32548 return resultobj;
32549 fail:
32550 return NULL;
32551 }
32552
32553
32554 SWIGINTERN PyObject *_wrap_TreeItemData_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32555 PyObject *resultobj = 0;
32556 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32557 wxTreeItemId *arg2 = 0 ;
32558 void *argp1 = 0 ;
32559 int res1 = 0 ;
32560 void *argp2 = 0 ;
32561 int res2 = 0 ;
32562 PyObject * obj0 = 0 ;
32563 PyObject * obj1 = 0 ;
32564 char * kwnames[] = {
32565 (char *) "self",(char *) "id", NULL
32566 };
32567
32568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32570 if (!SWIG_IsOK(res1)) {
32571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_SetId" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32572 }
32573 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32574 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32575 if (!SWIG_IsOK(res2)) {
32576 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32577 }
32578 if (!argp2) {
32579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeItemData_SetId" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32580 }
32581 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32582 {
32583 PyThreadState* __tstate = wxPyBeginAllowThreads();
32584 (arg1)->SetId((wxTreeItemId const &)*arg2);
32585 wxPyEndAllowThreads(__tstate);
32586 if (PyErr_Occurred()) SWIG_fail;
32587 }
32588 resultobj = SWIG_Py_Void();
32589 return resultobj;
32590 fail:
32591 return NULL;
32592 }
32593
32594
32595 SWIGINTERN PyObject *_wrap_TreeItemData_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32596 PyObject *resultobj = 0;
32597 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
32598 void *argp1 = 0 ;
32599 int res1 = 0 ;
32600 PyObject *swig_obj[1] ;
32601
32602 if (!args) SWIG_fail;
32603 swig_obj[0] = args;
32604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
32605 if (!SWIG_IsOK(res1)) {
32606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeItemData_Destroy" "', expected argument " "1"" of type '" "wxPyTreeItemData *""'");
32607 }
32608 arg1 = reinterpret_cast< wxPyTreeItemData * >(argp1);
32609 {
32610 PyThreadState* __tstate = wxPyBeginAllowThreads();
32611 wxPyTreeItemData_Destroy(arg1);
32612 wxPyEndAllowThreads(__tstate);
32613 if (PyErr_Occurred()) SWIG_fail;
32614 }
32615 resultobj = SWIG_Py_Void();
32616 return resultobj;
32617 fail:
32618 return NULL;
32619 }
32620
32621
32622 SWIGINTERN PyObject *TreeItemData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32623 PyObject *obj;
32624 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32625 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeItemData, SWIG_NewClientData(obj));
32626 return SWIG_Py_Void();
32627 }
32628
32629 SWIGINTERN PyObject *TreeItemData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32630 return SWIG_Python_InitShadowInstance(args);
32631 }
32632
32633 SWIGINTERN PyObject *_wrap_new_TreeEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32634 PyObject *resultobj = 0;
32635 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
32636 int arg2 = (int) 0 ;
32637 wxTreeEvent *result = 0 ;
32638 int val1 ;
32639 int ecode1 = 0 ;
32640 int val2 ;
32641 int ecode2 = 0 ;
32642 PyObject * obj0 = 0 ;
32643 PyObject * obj1 = 0 ;
32644 char * kwnames[] = {
32645 (char *) "commandType",(char *) "id", NULL
32646 };
32647
32648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32649 if (obj0) {
32650 ecode1 = SWIG_AsVal_int(obj0, &val1);
32651 if (!SWIG_IsOK(ecode1)) {
32652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TreeEvent" "', expected argument " "1"" of type '" "wxEventType""'");
32653 }
32654 arg1 = static_cast< wxEventType >(val1);
32655 }
32656 if (obj1) {
32657 ecode2 = SWIG_AsVal_int(obj1, &val2);
32658 if (!SWIG_IsOK(ecode2)) {
32659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeEvent" "', expected argument " "2"" of type '" "int""'");
32660 }
32661 arg2 = static_cast< int >(val2);
32662 }
32663 {
32664 PyThreadState* __tstate = wxPyBeginAllowThreads();
32665 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
32666 wxPyEndAllowThreads(__tstate);
32667 if (PyErr_Occurred()) SWIG_fail;
32668 }
32669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxTreeEvent, SWIG_POINTER_NEW | 0 );
32670 return resultobj;
32671 fail:
32672 return NULL;
32673 }
32674
32675
32676 SWIGINTERN PyObject *_wrap_TreeEvent_GetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32677 PyObject *resultobj = 0;
32678 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32679 wxTreeItemId result;
32680 void *argp1 = 0 ;
32681 int res1 = 0 ;
32682 PyObject *swig_obj[1] ;
32683
32684 if (!args) SWIG_fail;
32685 swig_obj[0] = args;
32686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32687 if (!SWIG_IsOK(res1)) {
32688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32689 }
32690 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32691 {
32692 PyThreadState* __tstate = wxPyBeginAllowThreads();
32693 result = ((wxTreeEvent const *)arg1)->GetItem();
32694 wxPyEndAllowThreads(__tstate);
32695 if (PyErr_Occurred()) SWIG_fail;
32696 }
32697 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32698 return resultobj;
32699 fail:
32700 return NULL;
32701 }
32702
32703
32704 SWIGINTERN PyObject *_wrap_TreeEvent_SetItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32705 PyObject *resultobj = 0;
32706 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32707 wxTreeItemId *arg2 = 0 ;
32708 void *argp1 = 0 ;
32709 int res1 = 0 ;
32710 void *argp2 = 0 ;
32711 int res2 = 0 ;
32712 PyObject * obj0 = 0 ;
32713 PyObject * obj1 = 0 ;
32714 char * kwnames[] = {
32715 (char *) "self",(char *) "item", NULL
32716 };
32717
32718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) SWIG_fail;
32719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32720 if (!SWIG_IsOK(res1)) {
32721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32722 }
32723 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32725 if (!SWIG_IsOK(res2)) {
32726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32727 }
32728 if (!argp2) {
32729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32730 }
32731 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32732 {
32733 PyThreadState* __tstate = wxPyBeginAllowThreads();
32734 (arg1)->SetItem((wxTreeItemId const &)*arg2);
32735 wxPyEndAllowThreads(__tstate);
32736 if (PyErr_Occurred()) SWIG_fail;
32737 }
32738 resultobj = SWIG_Py_Void();
32739 return resultobj;
32740 fail:
32741 return NULL;
32742 }
32743
32744
32745 SWIGINTERN PyObject *_wrap_TreeEvent_GetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32746 PyObject *resultobj = 0;
32747 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32748 wxTreeItemId result;
32749 void *argp1 = 0 ;
32750 int res1 = 0 ;
32751 PyObject *swig_obj[1] ;
32752
32753 if (!args) SWIG_fail;
32754 swig_obj[0] = args;
32755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32756 if (!SWIG_IsOK(res1)) {
32757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32758 }
32759 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32760 {
32761 PyThreadState* __tstate = wxPyBeginAllowThreads();
32762 result = ((wxTreeEvent const *)arg1)->GetOldItem();
32763 wxPyEndAllowThreads(__tstate);
32764 if (PyErr_Occurred()) SWIG_fail;
32765 }
32766 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
32767 return resultobj;
32768 fail:
32769 return NULL;
32770 }
32771
32772
32773 SWIGINTERN PyObject *_wrap_TreeEvent_SetOldItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32774 PyObject *resultobj = 0;
32775 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32776 wxTreeItemId *arg2 = 0 ;
32777 void *argp1 = 0 ;
32778 int res1 = 0 ;
32779 void *argp2 = 0 ;
32780 int res2 = 0 ;
32781 PyObject * obj0 = 0 ;
32782 PyObject * obj1 = 0 ;
32783 char * kwnames[] = {
32784 (char *) "self",(char *) "item", NULL
32785 };
32786
32787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) SWIG_fail;
32788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32789 if (!SWIG_IsOK(res1)) {
32790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetOldItem" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32791 }
32792 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32793 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
32794 if (!SWIG_IsOK(res2)) {
32795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32796 }
32797 if (!argp2) {
32798 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetOldItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
32799 }
32800 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
32801 {
32802 PyThreadState* __tstate = wxPyBeginAllowThreads();
32803 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
32804 wxPyEndAllowThreads(__tstate);
32805 if (PyErr_Occurred()) SWIG_fail;
32806 }
32807 resultobj = SWIG_Py_Void();
32808 return resultobj;
32809 fail:
32810 return NULL;
32811 }
32812
32813
32814 SWIGINTERN PyObject *_wrap_TreeEvent_GetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32815 PyObject *resultobj = 0;
32816 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32817 wxPoint result;
32818 void *argp1 = 0 ;
32819 int res1 = 0 ;
32820 PyObject *swig_obj[1] ;
32821
32822 if (!args) SWIG_fail;
32823 swig_obj[0] = args;
32824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32825 if (!SWIG_IsOK(res1)) {
32826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetPoint" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32827 }
32828 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32829 {
32830 PyThreadState* __tstate = wxPyBeginAllowThreads();
32831 result = ((wxTreeEvent const *)arg1)->GetPoint();
32832 wxPyEndAllowThreads(__tstate);
32833 if (PyErr_Occurred()) SWIG_fail;
32834 }
32835 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
32836 return resultobj;
32837 fail:
32838 return NULL;
32839 }
32840
32841
32842 SWIGINTERN PyObject *_wrap_TreeEvent_SetPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32843 PyObject *resultobj = 0;
32844 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32845 wxPoint *arg2 = 0 ;
32846 void *argp1 = 0 ;
32847 int res1 = 0 ;
32848 wxPoint temp2 ;
32849 PyObject * obj0 = 0 ;
32850 PyObject * obj1 = 0 ;
32851 char * kwnames[] = {
32852 (char *) "self",(char *) "pt", NULL
32853 };
32854
32855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32857 if (!SWIG_IsOK(res1)) {
32858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetPoint" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32859 }
32860 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32861 {
32862 arg2 = &temp2;
32863 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32864 }
32865 {
32866 PyThreadState* __tstate = wxPyBeginAllowThreads();
32867 (arg1)->SetPoint((wxPoint const &)*arg2);
32868 wxPyEndAllowThreads(__tstate);
32869 if (PyErr_Occurred()) SWIG_fail;
32870 }
32871 resultobj = SWIG_Py_Void();
32872 return resultobj;
32873 fail:
32874 return NULL;
32875 }
32876
32877
32878 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32879 PyObject *resultobj = 0;
32880 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32881 wxKeyEvent *result = 0 ;
32882 void *argp1 = 0 ;
32883 int res1 = 0 ;
32884 PyObject *swig_obj[1] ;
32885
32886 if (!args) SWIG_fail;
32887 swig_obj[0] = args;
32888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32889 if (!SWIG_IsOK(res1)) {
32890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32891 }
32892 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32893 {
32894 PyThreadState* __tstate = wxPyBeginAllowThreads();
32895 {
32896 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
32897 result = (wxKeyEvent *) &_result_ref;
32898 }
32899 wxPyEndAllowThreads(__tstate);
32900 if (PyErr_Occurred()) SWIG_fail;
32901 }
32902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxKeyEvent, 0 | 0 );
32903 return resultobj;
32904 fail:
32905 return NULL;
32906 }
32907
32908
32909 SWIGINTERN PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32910 PyObject *resultobj = 0;
32911 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32912 int result;
32913 void *argp1 = 0 ;
32914 int res1 = 0 ;
32915 PyObject *swig_obj[1] ;
32916
32917 if (!args) SWIG_fail;
32918 swig_obj[0] = args;
32919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32920 if (!SWIG_IsOK(res1)) {
32921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetKeyCode" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32922 }
32923 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32924 {
32925 PyThreadState* __tstate = wxPyBeginAllowThreads();
32926 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
32927 wxPyEndAllowThreads(__tstate);
32928 if (PyErr_Occurred()) SWIG_fail;
32929 }
32930 resultobj = SWIG_From_int(static_cast< int >(result));
32931 return resultobj;
32932 fail:
32933 return NULL;
32934 }
32935
32936
32937 SWIGINTERN PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32938 PyObject *resultobj = 0;
32939 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32940 wxKeyEvent *arg2 = 0 ;
32941 void *argp1 = 0 ;
32942 int res1 = 0 ;
32943 void *argp2 = 0 ;
32944 int res2 = 0 ;
32945 PyObject * obj0 = 0 ;
32946 PyObject * obj1 = 0 ;
32947 char * kwnames[] = {
32948 (char *) "self",(char *) "evt", NULL
32949 };
32950
32951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) SWIG_fail;
32952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32953 if (!SWIG_IsOK(res1)) {
32954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
32955 }
32956 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32957 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxKeyEvent, 0 | 0);
32958 if (!SWIG_IsOK(res2)) {
32959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32960 }
32961 if (!argp2) {
32962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeEvent_SetKeyEvent" "', expected argument " "2"" of type '" "wxKeyEvent const &""'");
32963 }
32964 arg2 = reinterpret_cast< wxKeyEvent * >(argp2);
32965 {
32966 PyThreadState* __tstate = wxPyBeginAllowThreads();
32967 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
32968 wxPyEndAllowThreads(__tstate);
32969 if (PyErr_Occurred()) SWIG_fail;
32970 }
32971 resultobj = SWIG_Py_Void();
32972 return resultobj;
32973 fail:
32974 return NULL;
32975 }
32976
32977
32978 SWIGINTERN PyObject *_wrap_TreeEvent_GetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32979 PyObject *resultobj = 0;
32980 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
32981 wxString *result = 0 ;
32982 void *argp1 = 0 ;
32983 int res1 = 0 ;
32984 PyObject *swig_obj[1] ;
32985
32986 if (!args) SWIG_fail;
32987 swig_obj[0] = args;
32988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
32989 if (!SWIG_IsOK(res1)) {
32990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetLabel" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
32991 }
32992 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
32993 {
32994 PyThreadState* __tstate = wxPyBeginAllowThreads();
32995 {
32996 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
32997 result = (wxString *) &_result_ref;
32998 }
32999 wxPyEndAllowThreads(__tstate);
33000 if (PyErr_Occurred()) SWIG_fail;
33001 }
33002 {
33003 #if wxUSE_UNICODE
33004 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33005 #else
33006 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33007 #endif
33008 }
33009 return resultobj;
33010 fail:
33011 return NULL;
33012 }
33013
33014
33015 SWIGINTERN PyObject *_wrap_TreeEvent_SetLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33016 PyObject *resultobj = 0;
33017 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33018 wxString *arg2 = 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 bool temp2 = false ;
33022 PyObject * obj0 = 0 ;
33023 PyObject * obj1 = 0 ;
33024 char * kwnames[] = {
33025 (char *) "self",(char *) "label", NULL
33026 };
33027
33028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) SWIG_fail;
33029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33030 if (!SWIG_IsOK(res1)) {
33031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetLabel" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33032 }
33033 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33034 {
33035 arg2 = wxString_in_helper(obj1);
33036 if (arg2 == NULL) SWIG_fail;
33037 temp2 = true;
33038 }
33039 {
33040 PyThreadState* __tstate = wxPyBeginAllowThreads();
33041 (arg1)->SetLabel((wxString const &)*arg2);
33042 wxPyEndAllowThreads(__tstate);
33043 if (PyErr_Occurred()) SWIG_fail;
33044 }
33045 resultobj = SWIG_Py_Void();
33046 {
33047 if (temp2)
33048 delete arg2;
33049 }
33050 return resultobj;
33051 fail:
33052 {
33053 if (temp2)
33054 delete arg2;
33055 }
33056 return NULL;
33057 }
33058
33059
33060 SWIGINTERN PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33061 PyObject *resultobj = 0;
33062 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33063 bool result;
33064 void *argp1 = 0 ;
33065 int res1 = 0 ;
33066 PyObject *swig_obj[1] ;
33067
33068 if (!args) SWIG_fail;
33069 swig_obj[0] = args;
33070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33071 if (!SWIG_IsOK(res1)) {
33072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_IsEditCancelled" "', expected argument " "1"" of type '" "wxTreeEvent const *""'");
33073 }
33074 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33075 {
33076 PyThreadState* __tstate = wxPyBeginAllowThreads();
33077 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
33078 wxPyEndAllowThreads(__tstate);
33079 if (PyErr_Occurred()) SWIG_fail;
33080 }
33081 {
33082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33083 }
33084 return resultobj;
33085 fail:
33086 return NULL;
33087 }
33088
33089
33090 SWIGINTERN PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33091 PyObject *resultobj = 0;
33092 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33093 bool arg2 ;
33094 void *argp1 = 0 ;
33095 int res1 = 0 ;
33096 bool val2 ;
33097 int ecode2 = 0 ;
33098 PyObject * obj0 = 0 ;
33099 PyObject * obj1 = 0 ;
33100 char * kwnames[] = {
33101 (char *) "self",(char *) "editCancelled", NULL
33102 };
33103
33104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) SWIG_fail;
33105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33106 if (!SWIG_IsOK(res1)) {
33107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33108 }
33109 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33110 ecode2 = SWIG_AsVal_bool(obj1, &val2);
33111 if (!SWIG_IsOK(ecode2)) {
33112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeEvent_SetEditCanceled" "', expected argument " "2"" of type '" "bool""'");
33113 }
33114 arg2 = static_cast< bool >(val2);
33115 {
33116 PyThreadState* __tstate = wxPyBeginAllowThreads();
33117 (arg1)->SetEditCanceled(arg2);
33118 wxPyEndAllowThreads(__tstate);
33119 if (PyErr_Occurred()) SWIG_fail;
33120 }
33121 resultobj = SWIG_Py_Void();
33122 return resultobj;
33123 fail:
33124 return NULL;
33125 }
33126
33127
33128 SWIGINTERN PyObject *_wrap_TreeEvent_SetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33129 PyObject *resultobj = 0;
33130 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33131 wxString *arg2 = 0 ;
33132 void *argp1 = 0 ;
33133 int res1 = 0 ;
33134 bool temp2 = false ;
33135 PyObject * obj0 = 0 ;
33136 PyObject * obj1 = 0 ;
33137 char * kwnames[] = {
33138 (char *) "self",(char *) "toolTip", NULL
33139 };
33140
33141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) SWIG_fail;
33142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33143 if (!SWIG_IsOK(res1)) {
33144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_SetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33145 }
33146 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33147 {
33148 arg2 = wxString_in_helper(obj1);
33149 if (arg2 == NULL) SWIG_fail;
33150 temp2 = true;
33151 }
33152 {
33153 PyThreadState* __tstate = wxPyBeginAllowThreads();
33154 (arg1)->SetToolTip((wxString const &)*arg2);
33155 wxPyEndAllowThreads(__tstate);
33156 if (PyErr_Occurred()) SWIG_fail;
33157 }
33158 resultobj = SWIG_Py_Void();
33159 {
33160 if (temp2)
33161 delete arg2;
33162 }
33163 return resultobj;
33164 fail:
33165 {
33166 if (temp2)
33167 delete arg2;
33168 }
33169 return NULL;
33170 }
33171
33172
33173 SWIGINTERN PyObject *_wrap_TreeEvent_GetToolTip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33174 PyObject *resultobj = 0;
33175 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
33176 wxString result;
33177 void *argp1 = 0 ;
33178 int res1 = 0 ;
33179 PyObject *swig_obj[1] ;
33180
33181 if (!args) SWIG_fail;
33182 swig_obj[0] = args;
33183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxTreeEvent, 0 | 0 );
33184 if (!SWIG_IsOK(res1)) {
33185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeEvent_GetToolTip" "', expected argument " "1"" of type '" "wxTreeEvent *""'");
33186 }
33187 arg1 = reinterpret_cast< wxTreeEvent * >(argp1);
33188 {
33189 PyThreadState* __tstate = wxPyBeginAllowThreads();
33190 result = (arg1)->GetToolTip();
33191 wxPyEndAllowThreads(__tstate);
33192 if (PyErr_Occurred()) SWIG_fail;
33193 }
33194 {
33195 #if wxUSE_UNICODE
33196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33197 #else
33198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33199 #endif
33200 }
33201 return resultobj;
33202 fail:
33203 return NULL;
33204 }
33205
33206
33207 SWIGINTERN PyObject *TreeEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33208 PyObject *obj;
33209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33210 SWIG_TypeNewClientData(SWIGTYPE_p_wxTreeEvent, SWIG_NewClientData(obj));
33211 return SWIG_Py_Void();
33212 }
33213
33214 SWIGINTERN PyObject *TreeEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33215 return SWIG_Python_InitShadowInstance(args);
33216 }
33217
33218 SWIGINTERN PyObject *_wrap_new_TreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33219 PyObject *resultobj = 0;
33220 wxWindow *arg1 = (wxWindow *) 0 ;
33221 int arg2 = (int) -1 ;
33222 wxPoint const &arg3_defvalue = wxDefaultPosition ;
33223 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
33224 wxSize const &arg4_defvalue = wxDefaultSize ;
33225 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
33226 long arg5 = (long) wxTR_DEFAULT_STYLE ;
33227 wxValidator const &arg6_defvalue = wxDefaultValidator ;
33228 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
33229 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
33230 wxString *arg7 = (wxString *) &arg7_defvalue ;
33231 wxPyTreeCtrl *result = 0 ;
33232 void *argp1 = 0 ;
33233 int res1 = 0 ;
33234 int val2 ;
33235 int ecode2 = 0 ;
33236 wxPoint temp3 ;
33237 wxSize temp4 ;
33238 long val5 ;
33239 int ecode5 = 0 ;
33240 void *argp6 = 0 ;
33241 int res6 = 0 ;
33242 bool temp7 = false ;
33243 PyObject * obj0 = 0 ;
33244 PyObject * obj1 = 0 ;
33245 PyObject * obj2 = 0 ;
33246 PyObject * obj3 = 0 ;
33247 PyObject * obj4 = 0 ;
33248 PyObject * obj5 = 0 ;
33249 PyObject * obj6 = 0 ;
33250 char * kwnames[] = {
33251 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33252 };
33253
33254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
33256 if (!SWIG_IsOK(res1)) {
33257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TreeCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
33258 }
33259 arg1 = reinterpret_cast< wxWindow * >(argp1);
33260 if (obj1) {
33261 ecode2 = SWIG_AsVal_int(obj1, &val2);
33262 if (!SWIG_IsOK(ecode2)) {
33263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_TreeCtrl" "', expected argument " "2"" of type '" "int""'");
33264 }
33265 arg2 = static_cast< int >(val2);
33266 }
33267 if (obj2) {
33268 {
33269 arg3 = &temp3;
33270 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33271 }
33272 }
33273 if (obj3) {
33274 {
33275 arg4 = &temp4;
33276 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33277 }
33278 }
33279 if (obj4) {
33280 ecode5 = SWIG_AsVal_long(obj4, &val5);
33281 if (!SWIG_IsOK(ecode5)) {
33282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_TreeCtrl" "', expected argument " "5"" of type '" "long""'");
33283 }
33284 arg5 = static_cast< long >(val5);
33285 }
33286 if (obj5) {
33287 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
33288 if (!SWIG_IsOK(res6)) {
33289 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33290 }
33291 if (!argp6) {
33292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_TreeCtrl" "', expected argument " "6"" of type '" "wxValidator const &""'");
33293 }
33294 arg6 = reinterpret_cast< wxValidator * >(argp6);
33295 }
33296 if (obj6) {
33297 {
33298 arg7 = wxString_in_helper(obj6);
33299 if (arg7 == NULL) SWIG_fail;
33300 temp7 = true;
33301 }
33302 }
33303 {
33304 if (!wxPyCheckForApp()) SWIG_fail;
33305 PyThreadState* __tstate = wxPyBeginAllowThreads();
33306 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
33307 wxPyEndAllowThreads(__tstate);
33308 if (PyErr_Occurred()) SWIG_fail;
33309 }
33310 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_NEW | 0 );
33311 {
33312 if (temp7)
33313 delete arg7;
33314 }
33315 return resultobj;
33316 fail:
33317 {
33318 if (temp7)
33319 delete arg7;
33320 }
33321 return NULL;
33322 }
33323
33324
33325 SWIGINTERN PyObject *_wrap_new_PreTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33326 PyObject *resultobj = 0;
33327 wxPyTreeCtrl *result = 0 ;
33328
33329 if (!SWIG_Python_UnpackTuple(args,"new_PreTreeCtrl",0,0,0)) SWIG_fail;
33330 {
33331 if (!wxPyCheckForApp()) SWIG_fail;
33332 PyThreadState* __tstate = wxPyBeginAllowThreads();
33333 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
33334 wxPyEndAllowThreads(__tstate);
33335 if (PyErr_Occurred()) SWIG_fail;
33336 }
33337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeCtrl, SWIG_POINTER_OWN | 0 );
33338 return resultobj;
33339 fail:
33340 return NULL;
33341 }
33342
33343
33344 SWIGINTERN PyObject *_wrap_TreeCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33345 PyObject *resultobj = 0;
33346 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33347 wxWindow *arg2 = (wxWindow *) 0 ;
33348 int arg3 = (int) -1 ;
33349 wxPoint const &arg4_defvalue = wxDefaultPosition ;
33350 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
33351 wxSize const &arg5_defvalue = wxDefaultSize ;
33352 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
33353 long arg6 = (long) wxTR_DEFAULT_STYLE ;
33354 wxValidator const &arg7_defvalue = wxDefaultValidator ;
33355 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
33356 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
33357 wxString *arg8 = (wxString *) &arg8_defvalue ;
33358 bool result;
33359 void *argp1 = 0 ;
33360 int res1 = 0 ;
33361 void *argp2 = 0 ;
33362 int res2 = 0 ;
33363 int val3 ;
33364 int ecode3 = 0 ;
33365 wxPoint temp4 ;
33366 wxSize temp5 ;
33367 long val6 ;
33368 int ecode6 = 0 ;
33369 void *argp7 = 0 ;
33370 int res7 = 0 ;
33371 bool temp8 = false ;
33372 PyObject * obj0 = 0 ;
33373 PyObject * obj1 = 0 ;
33374 PyObject * obj2 = 0 ;
33375 PyObject * obj3 = 0 ;
33376 PyObject * obj4 = 0 ;
33377 PyObject * obj5 = 0 ;
33378 PyObject * obj6 = 0 ;
33379 PyObject * obj7 = 0 ;
33380 char * kwnames[] = {
33381 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
33382 };
33383
33384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
33385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33386 if (!SWIG_IsOK(res1)) {
33387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Create" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33388 }
33389 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33390 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33391 if (!SWIG_IsOK(res2)) {
33392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
33393 }
33394 arg2 = reinterpret_cast< wxWindow * >(argp2);
33395 if (obj2) {
33396 ecode3 = SWIG_AsVal_int(obj2, &val3);
33397 if (!SWIG_IsOK(ecode3)) {
33398 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_Create" "', expected argument " "3"" of type '" "int""'");
33399 }
33400 arg3 = static_cast< int >(val3);
33401 }
33402 if (obj3) {
33403 {
33404 arg4 = &temp4;
33405 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33406 }
33407 }
33408 if (obj4) {
33409 {
33410 arg5 = &temp5;
33411 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
33412 }
33413 }
33414 if (obj5) {
33415 ecode6 = SWIG_AsVal_long(obj5, &val6);
33416 if (!SWIG_IsOK(ecode6)) {
33417 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_Create" "', expected argument " "6"" of type '" "long""'");
33418 }
33419 arg6 = static_cast< long >(val6);
33420 }
33421 if (obj6) {
33422 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
33423 if (!SWIG_IsOK(res7)) {
33424 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33425 }
33426 if (!argp7) {
33427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Create" "', expected argument " "7"" of type '" "wxValidator const &""'");
33428 }
33429 arg7 = reinterpret_cast< wxValidator * >(argp7);
33430 }
33431 if (obj7) {
33432 {
33433 arg8 = wxString_in_helper(obj7);
33434 if (arg8 == NULL) SWIG_fail;
33435 temp8 = true;
33436 }
33437 }
33438 {
33439 PyThreadState* __tstate = wxPyBeginAllowThreads();
33440 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
33441 wxPyEndAllowThreads(__tstate);
33442 if (PyErr_Occurred()) SWIG_fail;
33443 }
33444 {
33445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33446 }
33447 {
33448 if (temp8)
33449 delete arg8;
33450 }
33451 return resultobj;
33452 fail:
33453 {
33454 if (temp8)
33455 delete arg8;
33456 }
33457 return NULL;
33458 }
33459
33460
33461 SWIGINTERN PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33462 PyObject *resultobj = 0;
33463 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33464 PyObject *arg2 = (PyObject *) 0 ;
33465 PyObject *arg3 = (PyObject *) 0 ;
33466 void *argp1 = 0 ;
33467 int res1 = 0 ;
33468 PyObject * obj0 = 0 ;
33469 PyObject * obj1 = 0 ;
33470 PyObject * obj2 = 0 ;
33471 char * kwnames[] = {
33472 (char *) "self",(char *) "self",(char *) "_class", NULL
33473 };
33474
33475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33477 if (!SWIG_IsOK(res1)) {
33478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33479 }
33480 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33481 arg2 = obj1;
33482 arg3 = obj2;
33483 {
33484 PyThreadState* __tstate = wxPyBeginAllowThreads();
33485 (arg1)->_setCallbackInfo(arg2,arg3);
33486 wxPyEndAllowThreads(__tstate);
33487 if (PyErr_Occurred()) SWIG_fail;
33488 }
33489 resultobj = SWIG_Py_Void();
33490 return resultobj;
33491 fail:
33492 return NULL;
33493 }
33494
33495
33496 SWIGINTERN PyObject *_wrap_TreeCtrl_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33497 PyObject *resultobj = 0;
33498 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33499 unsigned int result;
33500 void *argp1 = 0 ;
33501 int res1 = 0 ;
33502 PyObject *swig_obj[1] ;
33503
33504 if (!args) SWIG_fail;
33505 swig_obj[0] = args;
33506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33507 if (!SWIG_IsOK(res1)) {
33508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33509 }
33510 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33511 {
33512 PyThreadState* __tstate = wxPyBeginAllowThreads();
33513 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetCount();
33514 wxPyEndAllowThreads(__tstate);
33515 if (PyErr_Occurred()) SWIG_fail;
33516 }
33517 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33518 return resultobj;
33519 fail:
33520 return NULL;
33521 }
33522
33523
33524 SWIGINTERN PyObject *_wrap_TreeCtrl_GetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33525 PyObject *resultobj = 0;
33526 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33527 unsigned int result;
33528 void *argp1 = 0 ;
33529 int res1 = 0 ;
33530 PyObject *swig_obj[1] ;
33531
33532 if (!args) SWIG_fail;
33533 swig_obj[0] = args;
33534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33535 if (!SWIG_IsOK(res1)) {
33536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33537 }
33538 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33539 {
33540 PyThreadState* __tstate = wxPyBeginAllowThreads();
33541 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
33542 wxPyEndAllowThreads(__tstate);
33543 if (PyErr_Occurred()) SWIG_fail;
33544 }
33545 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33546 return resultobj;
33547 fail:
33548 return NULL;
33549 }
33550
33551
33552 SWIGINTERN PyObject *_wrap_TreeCtrl_SetIndent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33553 PyObject *resultobj = 0;
33554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33555 unsigned int arg2 ;
33556 void *argp1 = 0 ;
33557 int res1 = 0 ;
33558 unsigned int val2 ;
33559 int ecode2 = 0 ;
33560 PyObject * obj0 = 0 ;
33561 PyObject * obj1 = 0 ;
33562 char * kwnames[] = {
33563 (char *) "self",(char *) "indent", NULL
33564 };
33565
33566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) SWIG_fail;
33567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33568 if (!SWIG_IsOK(res1)) {
33569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetIndent" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33570 }
33571 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33572 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33573 if (!SWIG_IsOK(ecode2)) {
33574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetIndent" "', expected argument " "2"" of type '" "unsigned int""'");
33575 }
33576 arg2 = static_cast< unsigned int >(val2);
33577 {
33578 PyThreadState* __tstate = wxPyBeginAllowThreads();
33579 (arg1)->SetIndent(arg2);
33580 wxPyEndAllowThreads(__tstate);
33581 if (PyErr_Occurred()) SWIG_fail;
33582 }
33583 resultobj = SWIG_Py_Void();
33584 return resultobj;
33585 fail:
33586 return NULL;
33587 }
33588
33589
33590 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33591 PyObject *resultobj = 0;
33592 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33593 unsigned int result;
33594 void *argp1 = 0 ;
33595 int res1 = 0 ;
33596 PyObject *swig_obj[1] ;
33597
33598 if (!args) SWIG_fail;
33599 swig_obj[0] = args;
33600 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33601 if (!SWIG_IsOK(res1)) {
33602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33603 }
33604 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33605 {
33606 PyThreadState* __tstate = wxPyBeginAllowThreads();
33607 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
33608 wxPyEndAllowThreads(__tstate);
33609 if (PyErr_Occurred()) SWIG_fail;
33610 }
33611 resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
33612 return resultobj;
33613 fail:
33614 return NULL;
33615 }
33616
33617
33618 SWIGINTERN PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33619 PyObject *resultobj = 0;
33620 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33621 unsigned int arg2 ;
33622 void *argp1 = 0 ;
33623 int res1 = 0 ;
33624 unsigned int val2 ;
33625 int ecode2 = 0 ;
33626 PyObject * obj0 = 0 ;
33627 PyObject * obj1 = 0 ;
33628 char * kwnames[] = {
33629 (char *) "self",(char *) "spacing", NULL
33630 };
33631
33632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) SWIG_fail;
33633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33634 if (!SWIG_IsOK(res1)) {
33635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33636 }
33637 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33638 ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
33639 if (!SWIG_IsOK(ecode2)) {
33640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetSpacing" "', expected argument " "2"" of type '" "unsigned int""'");
33641 }
33642 arg2 = static_cast< unsigned int >(val2);
33643 {
33644 PyThreadState* __tstate = wxPyBeginAllowThreads();
33645 (arg1)->SetSpacing(arg2);
33646 wxPyEndAllowThreads(__tstate);
33647 if (PyErr_Occurred()) SWIG_fail;
33648 }
33649 resultobj = SWIG_Py_Void();
33650 return resultobj;
33651 fail:
33652 return NULL;
33653 }
33654
33655
33656 SWIGINTERN PyObject *_wrap_TreeCtrl_GetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33657 PyObject *resultobj = 0;
33658 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33659 wxImageList *result = 0 ;
33660 void *argp1 = 0 ;
33661 int res1 = 0 ;
33662 PyObject *swig_obj[1] ;
33663
33664 if (!args) SWIG_fail;
33665 swig_obj[0] = args;
33666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33667 if (!SWIG_IsOK(res1)) {
33668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33669 }
33670 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33671 {
33672 PyThreadState* __tstate = wxPyBeginAllowThreads();
33673 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
33674 wxPyEndAllowThreads(__tstate);
33675 if (PyErr_Occurred()) SWIG_fail;
33676 }
33677 {
33678 resultobj = wxPyMake_wxObject(result, (bool)0);
33679 }
33680 return resultobj;
33681 fail:
33682 return NULL;
33683 }
33684
33685
33686 SWIGINTERN PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33687 PyObject *resultobj = 0;
33688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33689 wxImageList *result = 0 ;
33690 void *argp1 = 0 ;
33691 int res1 = 0 ;
33692 PyObject *swig_obj[1] ;
33693
33694 if (!args) SWIG_fail;
33695 swig_obj[0] = args;
33696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33697 if (!SWIG_IsOK(res1)) {
33698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33699 }
33700 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33701 {
33702 PyThreadState* __tstate = wxPyBeginAllowThreads();
33703 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
33704 wxPyEndAllowThreads(__tstate);
33705 if (PyErr_Occurred()) SWIG_fail;
33706 }
33707 {
33708 resultobj = wxPyMake_wxObject(result, (bool)0);
33709 }
33710 return resultobj;
33711 fail:
33712 return NULL;
33713 }
33714
33715
33716 SWIGINTERN PyObject *_wrap_TreeCtrl_SetImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33717 PyObject *resultobj = 0;
33718 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33719 wxImageList *arg2 = (wxImageList *) 0 ;
33720 void *argp1 = 0 ;
33721 int res1 = 0 ;
33722 void *argp2 = 0 ;
33723 int res2 = 0 ;
33724 PyObject * obj0 = 0 ;
33725 PyObject * obj1 = 0 ;
33726 char * kwnames[] = {
33727 (char *) "self",(char *) "imageList", NULL
33728 };
33729
33730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33732 if (!SWIG_IsOK(res1)) {
33733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33734 }
33735 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33736 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33737 if (!SWIG_IsOK(res2)) {
33738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33739 }
33740 arg2 = reinterpret_cast< wxImageList * >(argp2);
33741 {
33742 PyThreadState* __tstate = wxPyBeginAllowThreads();
33743 (arg1)->SetImageList(arg2);
33744 wxPyEndAllowThreads(__tstate);
33745 if (PyErr_Occurred()) SWIG_fail;
33746 }
33747 resultobj = SWIG_Py_Void();
33748 return resultobj;
33749 fail:
33750 return NULL;
33751 }
33752
33753
33754 SWIGINTERN PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33755 PyObject *resultobj = 0;
33756 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33757 wxImageList *arg2 = (wxImageList *) 0 ;
33758 void *argp1 = 0 ;
33759 int res1 = 0 ;
33760 void *argp2 = 0 ;
33761 int res2 = 0 ;
33762 PyObject * obj0 = 0 ;
33763 PyObject * obj1 = 0 ;
33764 char * kwnames[] = {
33765 (char *) "self",(char *) "imageList", NULL
33766 };
33767
33768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33770 if (!SWIG_IsOK(res1)) {
33771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33772 }
33773 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33774 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxImageList, 0 | 0 );
33775 if (!SWIG_IsOK(res2)) {
33776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33777 }
33778 arg2 = reinterpret_cast< wxImageList * >(argp2);
33779 {
33780 PyThreadState* __tstate = wxPyBeginAllowThreads();
33781 (arg1)->SetStateImageList(arg2);
33782 wxPyEndAllowThreads(__tstate);
33783 if (PyErr_Occurred()) SWIG_fail;
33784 }
33785 resultobj = SWIG_Py_Void();
33786 return resultobj;
33787 fail:
33788 return NULL;
33789 }
33790
33791
33792 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33793 PyObject *resultobj = 0;
33794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33795 wxImageList *arg2 = (wxImageList *) 0 ;
33796 void *argp1 = 0 ;
33797 int res1 = 0 ;
33798 int res2 = 0 ;
33799 PyObject * obj0 = 0 ;
33800 PyObject * obj1 = 0 ;
33801 char * kwnames[] = {
33802 (char *) "self",(char *) "imageList", NULL
33803 };
33804
33805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33807 if (!SWIG_IsOK(res1)) {
33808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33809 }
33810 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33811 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33812 if (!SWIG_IsOK(res2)) {
33813 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33814 }
33815 {
33816 PyThreadState* __tstate = wxPyBeginAllowThreads();
33817 (arg1)->AssignImageList(arg2);
33818 wxPyEndAllowThreads(__tstate);
33819 if (PyErr_Occurred()) SWIG_fail;
33820 }
33821 resultobj = SWIG_Py_Void();
33822 return resultobj;
33823 fail:
33824 return NULL;
33825 }
33826
33827
33828 SWIGINTERN PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33829 PyObject *resultobj = 0;
33830 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33831 wxImageList *arg2 = (wxImageList *) 0 ;
33832 void *argp1 = 0 ;
33833 int res1 = 0 ;
33834 int res2 = 0 ;
33835 PyObject * obj0 = 0 ;
33836 PyObject * obj1 = 0 ;
33837 char * kwnames[] = {
33838 (char *) "self",(char *) "imageList", NULL
33839 };
33840
33841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) SWIG_fail;
33842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33843 if (!SWIG_IsOK(res1)) {
33844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33845 }
33846 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33847 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
33848 if (!SWIG_IsOK(res2)) {
33849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AssignStateImageList" "', expected argument " "2"" of type '" "wxImageList *""'");
33850 }
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 (arg1)->AssignStateImageList(arg2);
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33867 wxTreeItemId *arg2 = 0 ;
33868 wxString result;
33869 void *argp1 = 0 ;
33870 int res1 = 0 ;
33871 void *argp2 = 0 ;
33872 int res2 = 0 ;
33873 PyObject * obj0 = 0 ;
33874 PyObject * obj1 = 0 ;
33875 char * kwnames[] = {
33876 (char *) "self",(char *) "item", NULL
33877 };
33878
33879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) SWIG_fail;
33880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33881 if (!SWIG_IsOK(res1)) {
33882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33883 }
33884 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33886 if (!SWIG_IsOK(res2)) {
33887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33888 }
33889 if (!argp2) {
33890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33891 }
33892 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33893 {
33894 PyThreadState* __tstate = wxPyBeginAllowThreads();
33895 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
33896 wxPyEndAllowThreads(__tstate);
33897 if (PyErr_Occurred()) SWIG_fail;
33898 }
33899 {
33900 #if wxUSE_UNICODE
33901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
33902 #else
33903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
33904 #endif
33905 }
33906 return resultobj;
33907 fail:
33908 return NULL;
33909 }
33910
33911
33912 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33913 PyObject *resultobj = 0;
33914 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33915 wxTreeItemId *arg2 = 0 ;
33916 wxTreeItemIcon arg3 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
33917 int result;
33918 void *argp1 = 0 ;
33919 int res1 = 0 ;
33920 void *argp2 = 0 ;
33921 int res2 = 0 ;
33922 int val3 ;
33923 int ecode3 = 0 ;
33924 PyObject * obj0 = 0 ;
33925 PyObject * obj1 = 0 ;
33926 PyObject * obj2 = 0 ;
33927 char * kwnames[] = {
33928 (char *) "self",(char *) "item",(char *) "which", NULL
33929 };
33930
33931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33933 if (!SWIG_IsOK(res1)) {
33934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
33935 }
33936 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33937 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33938 if (!SWIG_IsOK(res2)) {
33939 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33940 }
33941 if (!argp2) {
33942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33943 }
33944 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33945 if (obj2) {
33946 ecode3 = SWIG_AsVal_int(obj2, &val3);
33947 if (!SWIG_IsOK(ecode3)) {
33948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetItemImage" "', expected argument " "3"" of type '" "wxTreeItemIcon""'");
33949 }
33950 arg3 = static_cast< wxTreeItemIcon >(val3);
33951 }
33952 {
33953 PyThreadState* __tstate = wxPyBeginAllowThreads();
33954 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,arg3);
33955 wxPyEndAllowThreads(__tstate);
33956 if (PyErr_Occurred()) SWIG_fail;
33957 }
33958 resultobj = SWIG_From_int(static_cast< int >(result));
33959 return resultobj;
33960 fail:
33961 return NULL;
33962 }
33963
33964
33965 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33966 PyObject *resultobj = 0;
33967 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
33968 wxTreeItemId *arg2 = 0 ;
33969 wxPyTreeItemData *result = 0 ;
33970 void *argp1 = 0 ;
33971 int res1 = 0 ;
33972 void *argp2 = 0 ;
33973 int res2 = 0 ;
33974 PyObject * obj0 = 0 ;
33975 PyObject * obj1 = 0 ;
33976 char * kwnames[] = {
33977 (char *) "self",(char *) "item", NULL
33978 };
33979
33980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) SWIG_fail;
33981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
33982 if (!SWIG_IsOK(res1)) {
33983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
33984 }
33985 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
33986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
33987 if (!SWIG_IsOK(res2)) {
33988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33989 }
33990 if (!argp2) {
33991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
33992 }
33993 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
33994 {
33995 PyThreadState* __tstate = wxPyBeginAllowThreads();
33996 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
33997 wxPyEndAllowThreads(__tstate);
33998 if (PyErr_Occurred()) SWIG_fail;
33999 }
34000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyTreeItemData, 0 | 0 );
34001 return resultobj;
34002 fail:
34003 return NULL;
34004 }
34005
34006
34007 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34008 PyObject *resultobj = 0;
34009 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34010 wxTreeItemId *arg2 = 0 ;
34011 PyObject *result = 0 ;
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_GetItemPyData",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_GetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
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_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34031 }
34032 if (!argp2) {
34033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34034 }
34035 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34036 {
34037 PyThreadState* __tstate = wxPyBeginAllowThreads();
34038 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
34039 wxPyEndAllowThreads(__tstate);
34040 if (PyErr_Occurred()) SWIG_fail;
34041 }
34042 resultobj = result;
34043 return resultobj;
34044 fail:
34045 return NULL;
34046 }
34047
34048
34049 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34050 PyObject *resultobj = 0;
34051 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34052 wxTreeItemId *arg2 = 0 ;
34053 wxColour result;
34054 void *argp1 = 0 ;
34055 int res1 = 0 ;
34056 void *argp2 = 0 ;
34057 int res2 = 0 ;
34058 PyObject * obj0 = 0 ;
34059 PyObject * obj1 = 0 ;
34060 char * kwnames[] = {
34061 (char *) "self",(char *) "item", NULL
34062 };
34063
34064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) SWIG_fail;
34065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34066 if (!SWIG_IsOK(res1)) {
34067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34068 }
34069 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34070 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34071 if (!SWIG_IsOK(res2)) {
34072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34073 }
34074 if (!argp2) {
34075 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34076 }
34077 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34078 {
34079 PyThreadState* __tstate = wxPyBeginAllowThreads();
34080 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
34081 wxPyEndAllowThreads(__tstate);
34082 if (PyErr_Occurred()) SWIG_fail;
34083 }
34084 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34085 return resultobj;
34086 fail:
34087 return NULL;
34088 }
34089
34090
34091 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34092 PyObject *resultobj = 0;
34093 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34094 wxTreeItemId *arg2 = 0 ;
34095 wxColour result;
34096 void *argp1 = 0 ;
34097 int res1 = 0 ;
34098 void *argp2 = 0 ;
34099 int res2 = 0 ;
34100 PyObject * obj0 = 0 ;
34101 PyObject * obj1 = 0 ;
34102 char * kwnames[] = {
34103 (char *) "self",(char *) "item", NULL
34104 };
34105
34106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) SWIG_fail;
34107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34108 if (!SWIG_IsOK(res1)) {
34109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34110 }
34111 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34112 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34113 if (!SWIG_IsOK(res2)) {
34114 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34115 }
34116 if (!argp2) {
34117 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34118 }
34119 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34120 {
34121 PyThreadState* __tstate = wxPyBeginAllowThreads();
34122 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
34123 wxPyEndAllowThreads(__tstate);
34124 if (PyErr_Occurred()) SWIG_fail;
34125 }
34126 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
34127 return resultobj;
34128 fail:
34129 return NULL;
34130 }
34131
34132
34133 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34134 PyObject *resultobj = 0;
34135 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34136 wxTreeItemId *arg2 = 0 ;
34137 wxFont result;
34138 void *argp1 = 0 ;
34139 int res1 = 0 ;
34140 void *argp2 = 0 ;
34141 int res2 = 0 ;
34142 PyObject * obj0 = 0 ;
34143 PyObject * obj1 = 0 ;
34144 char * kwnames[] = {
34145 (char *) "self",(char *) "item", NULL
34146 };
34147
34148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) SWIG_fail;
34149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34150 if (!SWIG_IsOK(res1)) {
34151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34152 }
34153 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34155 if (!SWIG_IsOK(res2)) {
34156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34157 }
34158 if (!argp2) {
34159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34160 }
34161 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34162 {
34163 PyThreadState* __tstate = wxPyBeginAllowThreads();
34164 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
34165 wxPyEndAllowThreads(__tstate);
34166 if (PyErr_Occurred()) SWIG_fail;
34167 }
34168 resultobj = SWIG_NewPointerObj((new wxFont(static_cast< const wxFont& >(result))), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
34169 return resultobj;
34170 fail:
34171 return NULL;
34172 }
34173
34174
34175 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34176 PyObject *resultobj = 0;
34177 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34178 wxTreeItemId *arg2 = 0 ;
34179 wxString *arg3 = 0 ;
34180 void *argp1 = 0 ;
34181 int res1 = 0 ;
34182 void *argp2 = 0 ;
34183 int res2 = 0 ;
34184 bool temp3 = false ;
34185 PyObject * obj0 = 0 ;
34186 PyObject * obj1 = 0 ;
34187 PyObject * obj2 = 0 ;
34188 char * kwnames[] = {
34189 (char *) "self",(char *) "item",(char *) "text", NULL
34190 };
34191
34192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34194 if (!SWIG_IsOK(res1)) {
34195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemText" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34196 }
34197 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34198 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34199 if (!SWIG_IsOK(res2)) {
34200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34201 }
34202 if (!argp2) {
34203 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemText" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34204 }
34205 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34206 {
34207 arg3 = wxString_in_helper(obj2);
34208 if (arg3 == NULL) SWIG_fail;
34209 temp3 = true;
34210 }
34211 {
34212 PyThreadState* __tstate = wxPyBeginAllowThreads();
34213 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
34214 wxPyEndAllowThreads(__tstate);
34215 if (PyErr_Occurred()) SWIG_fail;
34216 }
34217 resultobj = SWIG_Py_Void();
34218 {
34219 if (temp3)
34220 delete arg3;
34221 }
34222 return resultobj;
34223 fail:
34224 {
34225 if (temp3)
34226 delete arg3;
34227 }
34228 return NULL;
34229 }
34230
34231
34232 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34233 PyObject *resultobj = 0;
34234 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34235 wxTreeItemId *arg2 = 0 ;
34236 int arg3 ;
34237 wxTreeItemIcon arg4 = (wxTreeItemIcon) wxTreeItemIcon_Normal ;
34238 void *argp1 = 0 ;
34239 int res1 = 0 ;
34240 void *argp2 = 0 ;
34241 int res2 = 0 ;
34242 int val3 ;
34243 int ecode3 = 0 ;
34244 int val4 ;
34245 int ecode4 = 0 ;
34246 PyObject * obj0 = 0 ;
34247 PyObject * obj1 = 0 ;
34248 PyObject * obj2 = 0 ;
34249 PyObject * obj3 = 0 ;
34250 char * kwnames[] = {
34251 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
34252 };
34253
34254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34256 if (!SWIG_IsOK(res1)) {
34257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34258 }
34259 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34261 if (!SWIG_IsOK(res2)) {
34262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34263 }
34264 if (!argp2) {
34265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemImage" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34266 }
34267 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34268 ecode3 = SWIG_AsVal_int(obj2, &val3);
34269 if (!SWIG_IsOK(ecode3)) {
34270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "3"" of type '" "int""'");
34271 }
34272 arg3 = static_cast< int >(val3);
34273 if (obj3) {
34274 ecode4 = SWIG_AsVal_int(obj3, &val4);
34275 if (!SWIG_IsOK(ecode4)) {
34276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_SetItemImage" "', expected argument " "4"" of type '" "wxTreeItemIcon""'");
34277 }
34278 arg4 = static_cast< wxTreeItemIcon >(val4);
34279 }
34280 {
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,arg4);
34283 wxPyEndAllowThreads(__tstate);
34284 if (PyErr_Occurred()) SWIG_fail;
34285 }
34286 resultobj = SWIG_Py_Void();
34287 return resultobj;
34288 fail:
34289 return NULL;
34290 }
34291
34292
34293 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34294 PyObject *resultobj = 0;
34295 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34296 wxTreeItemId *arg2 = 0 ;
34297 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
34298 void *argp1 = 0 ;
34299 int res1 = 0 ;
34300 void *argp2 = 0 ;
34301 int res2 = 0 ;
34302 int res3 = 0 ;
34303 PyObject * obj0 = 0 ;
34304 PyObject * obj1 = 0 ;
34305 PyObject * obj2 = 0 ;
34306 char * kwnames[] = {
34307 (char *) "self",(char *) "item",(char *) "data", NULL
34308 };
34309
34310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34312 if (!SWIG_IsOK(res1)) {
34313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34314 }
34315 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34317 if (!SWIG_IsOK(res2)) {
34318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34319 }
34320 if (!argp2) {
34321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34322 }
34323 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34324 res3 = SWIG_ConvertPtr(obj2, SWIG_as_voidptrptr(&arg3), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
34325 if (!SWIG_IsOK(res3)) {
34326 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemData" "', expected argument " "3"" of type '" "wxPyTreeItemData *""'");
34327 }
34328 {
34329 PyThreadState* __tstate = wxPyBeginAllowThreads();
34330 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
34331 wxPyEndAllowThreads(__tstate);
34332 if (PyErr_Occurred()) SWIG_fail;
34333 }
34334 resultobj = SWIG_Py_Void();
34335 return resultobj;
34336 fail:
34337 return NULL;
34338 }
34339
34340
34341 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34342 PyObject *resultobj = 0;
34343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34344 wxTreeItemId *arg2 = 0 ;
34345 PyObject *arg3 = (PyObject *) 0 ;
34346 void *argp1 = 0 ;
34347 int res1 = 0 ;
34348 void *argp2 = 0 ;
34349 int res2 = 0 ;
34350 PyObject * obj0 = 0 ;
34351 PyObject * obj1 = 0 ;
34352 PyObject * obj2 = 0 ;
34353 char * kwnames[] = {
34354 (char *) "self",(char *) "item",(char *) "obj", NULL
34355 };
34356
34357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34359 if (!SWIG_IsOK(res1)) {
34360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34361 }
34362 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34364 if (!SWIG_IsOK(res2)) {
34365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34366 }
34367 if (!argp2) {
34368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemPyData" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34369 }
34370 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34371 arg3 = obj2;
34372 {
34373 PyThreadState* __tstate = wxPyBeginAllowThreads();
34374 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
34375 wxPyEndAllowThreads(__tstate);
34376 if (PyErr_Occurred()) SWIG_fail;
34377 }
34378 resultobj = SWIG_Py_Void();
34379 return resultobj;
34380 fail:
34381 return NULL;
34382 }
34383
34384
34385 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34386 PyObject *resultobj = 0;
34387 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34388 wxTreeItemId *arg2 = 0 ;
34389 bool arg3 = (bool) true ;
34390 void *argp1 = 0 ;
34391 int res1 = 0 ;
34392 void *argp2 = 0 ;
34393 int res2 = 0 ;
34394 bool val3 ;
34395 int ecode3 = 0 ;
34396 PyObject * obj0 = 0 ;
34397 PyObject * obj1 = 0 ;
34398 PyObject * obj2 = 0 ;
34399 char * kwnames[] = {
34400 (char *) "self",(char *) "item",(char *) "has", NULL
34401 };
34402
34403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34405 if (!SWIG_IsOK(res1)) {
34406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34407 }
34408 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34410 if (!SWIG_IsOK(res2)) {
34411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34412 }
34413 if (!argp2) {
34414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34415 }
34416 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34417 if (obj2) {
34418 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34419 if (!SWIG_IsOK(ecode3)) {
34420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemHasChildren" "', expected argument " "3"" of type '" "bool""'");
34421 }
34422 arg3 = static_cast< bool >(val3);
34423 }
34424 {
34425 PyThreadState* __tstate = wxPyBeginAllowThreads();
34426 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
34427 wxPyEndAllowThreads(__tstate);
34428 if (PyErr_Occurred()) SWIG_fail;
34429 }
34430 resultobj = SWIG_Py_Void();
34431 return resultobj;
34432 fail:
34433 return NULL;
34434 }
34435
34436
34437 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34438 PyObject *resultobj = 0;
34439 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34440 wxTreeItemId *arg2 = 0 ;
34441 bool arg3 = (bool) true ;
34442 void *argp1 = 0 ;
34443 int res1 = 0 ;
34444 void *argp2 = 0 ;
34445 int res2 = 0 ;
34446 bool val3 ;
34447 int ecode3 = 0 ;
34448 PyObject * obj0 = 0 ;
34449 PyObject * obj1 = 0 ;
34450 PyObject * obj2 = 0 ;
34451 char * kwnames[] = {
34452 (char *) "self",(char *) "item",(char *) "bold", NULL
34453 };
34454
34455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34457 if (!SWIG_IsOK(res1)) {
34458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34459 }
34460 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34461 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34462 if (!SWIG_IsOK(res2)) {
34463 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34464 }
34465 if (!argp2) {
34466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34467 }
34468 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34469 if (obj2) {
34470 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34471 if (!SWIG_IsOK(ecode3)) {
34472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemBold" "', expected argument " "3"" of type '" "bool""'");
34473 }
34474 arg3 = static_cast< bool >(val3);
34475 }
34476 {
34477 PyThreadState* __tstate = wxPyBeginAllowThreads();
34478 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
34479 wxPyEndAllowThreads(__tstate);
34480 if (PyErr_Occurred()) SWIG_fail;
34481 }
34482 resultobj = SWIG_Py_Void();
34483 return resultobj;
34484 fail:
34485 return NULL;
34486 }
34487
34488
34489 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34490 PyObject *resultobj = 0;
34491 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34492 wxTreeItemId *arg2 = 0 ;
34493 bool arg3 = (bool) true ;
34494 void *argp1 = 0 ;
34495 int res1 = 0 ;
34496 void *argp2 = 0 ;
34497 int res2 = 0 ;
34498 bool val3 ;
34499 int ecode3 = 0 ;
34500 PyObject * obj0 = 0 ;
34501 PyObject * obj1 = 0 ;
34502 PyObject * obj2 = 0 ;
34503 char * kwnames[] = {
34504 (char *) "self",(char *) "item",(char *) "highlight", NULL
34505 };
34506
34507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34509 if (!SWIG_IsOK(res1)) {
34510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34511 }
34512 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34514 if (!SWIG_IsOK(res2)) {
34515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34516 }
34517 if (!argp2) {
34518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34519 }
34520 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34521 if (obj2) {
34522 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34523 if (!SWIG_IsOK(ecode3)) {
34524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SetItemDropHighlight" "', expected argument " "3"" of type '" "bool""'");
34525 }
34526 arg3 = static_cast< bool >(val3);
34527 }
34528 {
34529 PyThreadState* __tstate = wxPyBeginAllowThreads();
34530 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
34531 wxPyEndAllowThreads(__tstate);
34532 if (PyErr_Occurred()) SWIG_fail;
34533 }
34534 resultobj = SWIG_Py_Void();
34535 return resultobj;
34536 fail:
34537 return NULL;
34538 }
34539
34540
34541 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34542 PyObject *resultobj = 0;
34543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34544 wxTreeItemId *arg2 = 0 ;
34545 wxColour *arg3 = 0 ;
34546 void *argp1 = 0 ;
34547 int res1 = 0 ;
34548 void *argp2 = 0 ;
34549 int res2 = 0 ;
34550 wxColour temp3 ;
34551 PyObject * obj0 = 0 ;
34552 PyObject * obj1 = 0 ;
34553 PyObject * obj2 = 0 ;
34554 char * kwnames[] = {
34555 (char *) "self",(char *) "item",(char *) "col", NULL
34556 };
34557
34558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34560 if (!SWIG_IsOK(res1)) {
34561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34562 }
34563 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34564 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34565 if (!SWIG_IsOK(res2)) {
34566 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34567 }
34568 if (!argp2) {
34569 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemTextColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34570 }
34571 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34572 {
34573 arg3 = &temp3;
34574 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34575 }
34576 {
34577 PyThreadState* __tstate = wxPyBeginAllowThreads();
34578 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34579 wxPyEndAllowThreads(__tstate);
34580 if (PyErr_Occurred()) SWIG_fail;
34581 }
34582 resultobj = SWIG_Py_Void();
34583 return resultobj;
34584 fail:
34585 return NULL;
34586 }
34587
34588
34589 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34590 PyObject *resultobj = 0;
34591 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34592 wxTreeItemId *arg2 = 0 ;
34593 wxColour *arg3 = 0 ;
34594 void *argp1 = 0 ;
34595 int res1 = 0 ;
34596 void *argp2 = 0 ;
34597 int res2 = 0 ;
34598 wxColour temp3 ;
34599 PyObject * obj0 = 0 ;
34600 PyObject * obj1 = 0 ;
34601 PyObject * obj2 = 0 ;
34602 char * kwnames[] = {
34603 (char *) "self",(char *) "item",(char *) "col", NULL
34604 };
34605
34606 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34607 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34608 if (!SWIG_IsOK(res1)) {
34609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34610 }
34611 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34612 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34613 if (!SWIG_IsOK(res2)) {
34614 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34615 }
34616 if (!argp2) {
34617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemBackgroundColour" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34618 }
34619 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34620 {
34621 arg3 = &temp3;
34622 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
34623 }
34624 {
34625 PyThreadState* __tstate = wxPyBeginAllowThreads();
34626 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
34627 wxPyEndAllowThreads(__tstate);
34628 if (PyErr_Occurred()) SWIG_fail;
34629 }
34630 resultobj = SWIG_Py_Void();
34631 return resultobj;
34632 fail:
34633 return NULL;
34634 }
34635
34636
34637 SWIGINTERN PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34638 PyObject *resultobj = 0;
34639 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34640 wxTreeItemId *arg2 = 0 ;
34641 wxFont *arg3 = 0 ;
34642 void *argp1 = 0 ;
34643 int res1 = 0 ;
34644 void *argp2 = 0 ;
34645 int res2 = 0 ;
34646 void *argp3 = 0 ;
34647 int res3 = 0 ;
34648 PyObject * obj0 = 0 ;
34649 PyObject * obj1 = 0 ;
34650 PyObject * obj2 = 0 ;
34651 char * kwnames[] = {
34652 (char *) "self",(char *) "item",(char *) "font", NULL
34653 };
34654
34655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34657 if (!SWIG_IsOK(res1)) {
34658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34659 }
34660 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34662 if (!SWIG_IsOK(res2)) {
34663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34664 }
34665 if (!argp2) {
34666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34667 }
34668 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34669 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxFont, 0 | 0);
34670 if (!SWIG_IsOK(res3)) {
34671 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34672 }
34673 if (!argp3) {
34674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SetItemFont" "', expected argument " "3"" of type '" "wxFont const &""'");
34675 }
34676 arg3 = reinterpret_cast< wxFont * >(argp3);
34677 {
34678 PyThreadState* __tstate = wxPyBeginAllowThreads();
34679 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
34680 wxPyEndAllowThreads(__tstate);
34681 if (PyErr_Occurred()) SWIG_fail;
34682 }
34683 resultobj = SWIG_Py_Void();
34684 return resultobj;
34685 fail:
34686 return NULL;
34687 }
34688
34689
34690 SWIGINTERN PyObject *_wrap_TreeCtrl_IsVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34691 PyObject *resultobj = 0;
34692 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34693 wxTreeItemId *arg2 = 0 ;
34694 bool result;
34695 void *argp1 = 0 ;
34696 int res1 = 0 ;
34697 void *argp2 = 0 ;
34698 int res2 = 0 ;
34699 PyObject * obj0 = 0 ;
34700 PyObject * obj1 = 0 ;
34701 char * kwnames[] = {
34702 (char *) "self",(char *) "item", NULL
34703 };
34704
34705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) SWIG_fail;
34706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34707 if (!SWIG_IsOK(res1)) {
34708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34709 }
34710 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34712 if (!SWIG_IsOK(res2)) {
34713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34714 }
34715 if (!argp2) {
34716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34717 }
34718 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34719 {
34720 PyThreadState* __tstate = wxPyBeginAllowThreads();
34721 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
34722 wxPyEndAllowThreads(__tstate);
34723 if (PyErr_Occurred()) SWIG_fail;
34724 }
34725 {
34726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34727 }
34728 return resultobj;
34729 fail:
34730 return NULL;
34731 }
34732
34733
34734 SWIGINTERN PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34735 PyObject *resultobj = 0;
34736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34737 wxTreeItemId *arg2 = 0 ;
34738 bool result;
34739 void *argp1 = 0 ;
34740 int res1 = 0 ;
34741 void *argp2 = 0 ;
34742 int res2 = 0 ;
34743 PyObject * obj0 = 0 ;
34744 PyObject * obj1 = 0 ;
34745 char * kwnames[] = {
34746 (char *) "self",(char *) "item", NULL
34747 };
34748
34749 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) 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_ItemHasChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
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_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34758 }
34759 if (!argp2) {
34760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ItemHasChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34761 }
34762 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34763 {
34764 PyThreadState* __tstate = wxPyBeginAllowThreads();
34765 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
34766 wxPyEndAllowThreads(__tstate);
34767 if (PyErr_Occurred()) SWIG_fail;
34768 }
34769 {
34770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34771 }
34772 return resultobj;
34773 fail:
34774 return NULL;
34775 }
34776
34777
34778 SWIGINTERN PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34779 PyObject *resultobj = 0;
34780 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34781 wxTreeItemId *arg2 = 0 ;
34782 bool result;
34783 void *argp1 = 0 ;
34784 int res1 = 0 ;
34785 void *argp2 = 0 ;
34786 int res2 = 0 ;
34787 PyObject * obj0 = 0 ;
34788 PyObject * obj1 = 0 ;
34789 char * kwnames[] = {
34790 (char *) "self",(char *) "item", NULL
34791 };
34792
34793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) SWIG_fail;
34794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34795 if (!SWIG_IsOK(res1)) {
34796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34797 }
34798 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34800 if (!SWIG_IsOK(res2)) {
34801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34802 }
34803 if (!argp2) {
34804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsExpanded" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34805 }
34806 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34807 {
34808 PyThreadState* __tstate = wxPyBeginAllowThreads();
34809 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
34810 wxPyEndAllowThreads(__tstate);
34811 if (PyErr_Occurred()) SWIG_fail;
34812 }
34813 {
34814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34815 }
34816 return resultobj;
34817 fail:
34818 return NULL;
34819 }
34820
34821
34822 SWIGINTERN PyObject *_wrap_TreeCtrl_IsSelected(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34823 PyObject *resultobj = 0;
34824 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34825 wxTreeItemId *arg2 = 0 ;
34826 bool result;
34827 void *argp1 = 0 ;
34828 int res1 = 0 ;
34829 void *argp2 = 0 ;
34830 int res2 = 0 ;
34831 PyObject * obj0 = 0 ;
34832 PyObject * obj1 = 0 ;
34833 char * kwnames[] = {
34834 (char *) "self",(char *) "item", NULL
34835 };
34836
34837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) SWIG_fail;
34838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34839 if (!SWIG_IsOK(res1)) {
34840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsSelected" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34841 }
34842 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34844 if (!SWIG_IsOK(res2)) {
34845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34846 }
34847 if (!argp2) {
34848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsSelected" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34849 }
34850 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34851 {
34852 PyThreadState* __tstate = wxPyBeginAllowThreads();
34853 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
34854 wxPyEndAllowThreads(__tstate);
34855 if (PyErr_Occurred()) SWIG_fail;
34856 }
34857 {
34858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34859 }
34860 return resultobj;
34861 fail:
34862 return NULL;
34863 }
34864
34865
34866 SWIGINTERN PyObject *_wrap_TreeCtrl_IsBold(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34867 PyObject *resultobj = 0;
34868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34869 wxTreeItemId *arg2 = 0 ;
34870 bool result;
34871 void *argp1 = 0 ;
34872 int res1 = 0 ;
34873 void *argp2 = 0 ;
34874 int res2 = 0 ;
34875 PyObject * obj0 = 0 ;
34876 PyObject * obj1 = 0 ;
34877 char * kwnames[] = {
34878 (char *) "self",(char *) "item", NULL
34879 };
34880
34881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) SWIG_fail;
34882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34883 if (!SWIG_IsOK(res1)) {
34884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_IsBold" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34885 }
34886 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34887 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34888 if (!SWIG_IsOK(res2)) {
34889 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34890 }
34891 if (!argp2) {
34892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_IsBold" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34893 }
34894 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34895 {
34896 PyThreadState* __tstate = wxPyBeginAllowThreads();
34897 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
34898 wxPyEndAllowThreads(__tstate);
34899 if (PyErr_Occurred()) SWIG_fail;
34900 }
34901 {
34902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34903 }
34904 return resultobj;
34905 fail:
34906 return NULL;
34907 }
34908
34909
34910 SWIGINTERN PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34911 PyObject *resultobj = 0;
34912 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34913 wxTreeItemId *arg2 = 0 ;
34914 bool arg3 = (bool) true ;
34915 size_t result;
34916 void *argp1 = 0 ;
34917 int res1 = 0 ;
34918 void *argp2 = 0 ;
34919 int res2 = 0 ;
34920 bool val3 ;
34921 int ecode3 = 0 ;
34922 PyObject * obj0 = 0 ;
34923 PyObject * obj1 = 0 ;
34924 PyObject * obj2 = 0 ;
34925 char * kwnames[] = {
34926 (char *) "self",(char *) "item",(char *) "recursively", NULL
34927 };
34928
34929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34931 if (!SWIG_IsOK(res1)) {
34932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
34933 }
34934 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34935 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
34936 if (!SWIG_IsOK(res2)) {
34937 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34938 }
34939 if (!argp2) {
34940 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
34941 }
34942 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
34943 if (obj2) {
34944 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34945 if (!SWIG_IsOK(ecode3)) {
34946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetChildrenCount" "', expected argument " "3"" of type '" "bool""'");
34947 }
34948 arg3 = static_cast< bool >(val3);
34949 }
34950 {
34951 PyThreadState* __tstate = wxPyBeginAllowThreads();
34952 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
34953 wxPyEndAllowThreads(__tstate);
34954 if (PyErr_Occurred()) SWIG_fail;
34955 }
34956 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
34957 return resultobj;
34958 fail:
34959 return NULL;
34960 }
34961
34962
34963 SWIGINTERN PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34964 PyObject *resultobj = 0;
34965 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34966 wxTreeItemId result;
34967 void *argp1 = 0 ;
34968 int res1 = 0 ;
34969 PyObject *swig_obj[1] ;
34970
34971 if (!args) SWIG_fail;
34972 swig_obj[0] = args;
34973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
34974 if (!SWIG_IsOK(res1)) {
34975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetRootItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
34976 }
34977 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
34978 {
34979 PyThreadState* __tstate = wxPyBeginAllowThreads();
34980 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
34981 wxPyEndAllowThreads(__tstate);
34982 if (PyErr_Occurred()) SWIG_fail;
34983 }
34984 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
34985 return resultobj;
34986 fail:
34987 return NULL;
34988 }
34989
34990
34991 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34992 PyObject *resultobj = 0;
34993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
34994 wxTreeItemId result;
34995 void *argp1 = 0 ;
34996 int res1 = 0 ;
34997 PyObject *swig_obj[1] ;
34998
34999 if (!args) SWIG_fail;
35000 swig_obj[0] = args;
35001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35002 if (!SWIG_IsOK(res1)) {
35003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35004 }
35005 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35006 {
35007 PyThreadState* __tstate = wxPyBeginAllowThreads();
35008 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
35009 wxPyEndAllowThreads(__tstate);
35010 if (PyErr_Occurred()) SWIG_fail;
35011 }
35012 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35013 return resultobj;
35014 fail:
35015 return NULL;
35016 }
35017
35018
35019 SWIGINTERN PyObject *_wrap_TreeCtrl_GetSelections(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35020 PyObject *resultobj = 0;
35021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35022 PyObject *result = 0 ;
35023 void *argp1 = 0 ;
35024 int res1 = 0 ;
35025 PyObject *swig_obj[1] ;
35026
35027 if (!args) SWIG_fail;
35028 swig_obj[0] = args;
35029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35030 if (!SWIG_IsOK(res1)) {
35031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetSelections" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35032 }
35033 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35034 {
35035 PyThreadState* __tstate = wxPyBeginAllowThreads();
35036 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
35037 wxPyEndAllowThreads(__tstate);
35038 if (PyErr_Occurred()) SWIG_fail;
35039 }
35040 resultobj = result;
35041 return resultobj;
35042 fail:
35043 return NULL;
35044 }
35045
35046
35047 SWIGINTERN PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35048 PyObject *resultobj = 0;
35049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35050 wxTreeItemId *arg2 = 0 ;
35051 wxTreeItemId result;
35052 void *argp1 = 0 ;
35053 int res1 = 0 ;
35054 void *argp2 = 0 ;
35055 int res2 = 0 ;
35056 PyObject * obj0 = 0 ;
35057 PyObject * obj1 = 0 ;
35058 char * kwnames[] = {
35059 (char *) "self",(char *) "item", NULL
35060 };
35061
35062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) SWIG_fail;
35063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35064 if (!SWIG_IsOK(res1)) {
35065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35066 }
35067 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35069 if (!SWIG_IsOK(res2)) {
35070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35071 }
35072 if (!argp2) {
35073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetItemParent" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35074 }
35075 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35076 {
35077 PyThreadState* __tstate = wxPyBeginAllowThreads();
35078 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
35079 wxPyEndAllowThreads(__tstate);
35080 if (PyErr_Occurred()) SWIG_fail;
35081 }
35082 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35083 return resultobj;
35084 fail:
35085 return NULL;
35086 }
35087
35088
35089 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35090 PyObject *resultobj = 0;
35091 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35092 wxTreeItemId *arg2 = 0 ;
35093 PyObject *result = 0 ;
35094 void *argp1 = 0 ;
35095 int res1 = 0 ;
35096 void *argp2 = 0 ;
35097 int res2 = 0 ;
35098 PyObject * obj0 = 0 ;
35099 PyObject * obj1 = 0 ;
35100 char * kwnames[] = {
35101 (char *) "self",(char *) "item", NULL
35102 };
35103
35104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) SWIG_fail;
35105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35106 if (!SWIG_IsOK(res1)) {
35107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35108 }
35109 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35110 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35111 if (!SWIG_IsOK(res2)) {
35112 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35113 }
35114 if (!argp2) {
35115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetFirstChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35116 }
35117 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35118 {
35119 PyThreadState* __tstate = wxPyBeginAllowThreads();
35120 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
35121 wxPyEndAllowThreads(__tstate);
35122 if (PyErr_Occurred()) SWIG_fail;
35123 }
35124 resultobj = result;
35125 return resultobj;
35126 fail:
35127 return NULL;
35128 }
35129
35130
35131 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35132 PyObject *resultobj = 0;
35133 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35134 wxTreeItemId *arg2 = 0 ;
35135 void *arg3 = (void *) 0 ;
35136 PyObject *result = 0 ;
35137 void *argp1 = 0 ;
35138 int res1 = 0 ;
35139 void *argp2 = 0 ;
35140 int res2 = 0 ;
35141 int res3 ;
35142 PyObject * obj0 = 0 ;
35143 PyObject * obj1 = 0 ;
35144 PyObject * obj2 = 0 ;
35145 char * kwnames[] = {
35146 (char *) "self",(char *) "item",(char *) "cookie", NULL
35147 };
35148
35149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35151 if (!SWIG_IsOK(res1)) {
35152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35153 }
35154 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35155 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35156 if (!SWIG_IsOK(res2)) {
35157 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35158 }
35159 if (!argp2) {
35160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35161 }
35162 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35163 res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3), 0, 0);
35164 if (!SWIG_IsOK(res3)) {
35165 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_GetNextChild" "', expected argument " "3"" of type '" "void *""'");
35166 }
35167 {
35168 PyThreadState* __tstate = wxPyBeginAllowThreads();
35169 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
35170 wxPyEndAllowThreads(__tstate);
35171 if (PyErr_Occurred()) SWIG_fail;
35172 }
35173 resultobj = result;
35174 return resultobj;
35175 fail:
35176 return NULL;
35177 }
35178
35179
35180 SWIGINTERN PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35181 PyObject *resultobj = 0;
35182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35183 wxTreeItemId *arg2 = 0 ;
35184 wxTreeItemId result;
35185 void *argp1 = 0 ;
35186 int res1 = 0 ;
35187 void *argp2 = 0 ;
35188 int res2 = 0 ;
35189 PyObject * obj0 = 0 ;
35190 PyObject * obj1 = 0 ;
35191 char * kwnames[] = {
35192 (char *) "self",(char *) "item", NULL
35193 };
35194
35195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) SWIG_fail;
35196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35197 if (!SWIG_IsOK(res1)) {
35198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35199 }
35200 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35202 if (!SWIG_IsOK(res2)) {
35203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35204 }
35205 if (!argp2) {
35206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetLastChild" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35207 }
35208 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35209 {
35210 PyThreadState* __tstate = wxPyBeginAllowThreads();
35211 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
35212 wxPyEndAllowThreads(__tstate);
35213 if (PyErr_Occurred()) SWIG_fail;
35214 }
35215 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35216 return resultobj;
35217 fail:
35218 return NULL;
35219 }
35220
35221
35222 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35223 PyObject *resultobj = 0;
35224 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35225 wxTreeItemId *arg2 = 0 ;
35226 wxTreeItemId result;
35227 void *argp1 = 0 ;
35228 int res1 = 0 ;
35229 void *argp2 = 0 ;
35230 int res2 = 0 ;
35231 PyObject * obj0 = 0 ;
35232 PyObject * obj1 = 0 ;
35233 char * kwnames[] = {
35234 (char *) "self",(char *) "item", NULL
35235 };
35236
35237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35239 if (!SWIG_IsOK(res1)) {
35240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35241 }
35242 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35244 if (!SWIG_IsOK(res2)) {
35245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35246 }
35247 if (!argp2) {
35248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35249 }
35250 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35251 {
35252 PyThreadState* __tstate = wxPyBeginAllowThreads();
35253 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
35254 wxPyEndAllowThreads(__tstate);
35255 if (PyErr_Occurred()) SWIG_fail;
35256 }
35257 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35258 return resultobj;
35259 fail:
35260 return NULL;
35261 }
35262
35263
35264 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35265 PyObject *resultobj = 0;
35266 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35267 wxTreeItemId *arg2 = 0 ;
35268 wxTreeItemId result;
35269 void *argp1 = 0 ;
35270 int res1 = 0 ;
35271 void *argp2 = 0 ;
35272 int res2 = 0 ;
35273 PyObject * obj0 = 0 ;
35274 PyObject * obj1 = 0 ;
35275 char * kwnames[] = {
35276 (char *) "self",(char *) "item", NULL
35277 };
35278
35279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) SWIG_fail;
35280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35281 if (!SWIG_IsOK(res1)) {
35282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35283 }
35284 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35286 if (!SWIG_IsOK(res2)) {
35287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35288 }
35289 if (!argp2) {
35290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevSibling" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35291 }
35292 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35293 {
35294 PyThreadState* __tstate = wxPyBeginAllowThreads();
35295 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
35296 wxPyEndAllowThreads(__tstate);
35297 if (PyErr_Occurred()) SWIG_fail;
35298 }
35299 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35300 return resultobj;
35301 fail:
35302 return NULL;
35303 }
35304
35305
35306 SWIGINTERN PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35307 PyObject *resultobj = 0;
35308 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35309 wxTreeItemId result;
35310 void *argp1 = 0 ;
35311 int res1 = 0 ;
35312 PyObject *swig_obj[1] ;
35313
35314 if (!args) SWIG_fail;
35315 swig_obj[0] = args;
35316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35317 if (!SWIG_IsOK(res1)) {
35318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetFirstVisibleItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35319 }
35320 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35321 {
35322 PyThreadState* __tstate = wxPyBeginAllowThreads();
35323 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
35324 wxPyEndAllowThreads(__tstate);
35325 if (PyErr_Occurred()) SWIG_fail;
35326 }
35327 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35328 return resultobj;
35329 fail:
35330 return NULL;
35331 }
35332
35333
35334 SWIGINTERN PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35335 PyObject *resultobj = 0;
35336 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35337 wxTreeItemId *arg2 = 0 ;
35338 wxTreeItemId result;
35339 void *argp1 = 0 ;
35340 int res1 = 0 ;
35341 void *argp2 = 0 ;
35342 int res2 = 0 ;
35343 PyObject * obj0 = 0 ;
35344 PyObject * obj1 = 0 ;
35345 char * kwnames[] = {
35346 (char *) "self",(char *) "item", NULL
35347 };
35348
35349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35351 if (!SWIG_IsOK(res1)) {
35352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35353 }
35354 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35355 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35356 if (!SWIG_IsOK(res2)) {
35357 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35358 }
35359 if (!argp2) {
35360 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetNextVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35361 }
35362 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35363 {
35364 PyThreadState* __tstate = wxPyBeginAllowThreads();
35365 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
35366 wxPyEndAllowThreads(__tstate);
35367 if (PyErr_Occurred()) SWIG_fail;
35368 }
35369 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35370 return resultobj;
35371 fail:
35372 return NULL;
35373 }
35374
35375
35376 SWIGINTERN PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35377 PyObject *resultobj = 0;
35378 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35379 wxTreeItemId *arg2 = 0 ;
35380 wxTreeItemId result;
35381 void *argp1 = 0 ;
35382 int res1 = 0 ;
35383 void *argp2 = 0 ;
35384 int res2 = 0 ;
35385 PyObject * obj0 = 0 ;
35386 PyObject * obj1 = 0 ;
35387 char * kwnames[] = {
35388 (char *) "self",(char *) "item", NULL
35389 };
35390
35391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) SWIG_fail;
35392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35393 if (!SWIG_IsOK(res1)) {
35394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
35395 }
35396 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35397 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35398 if (!SWIG_IsOK(res2)) {
35399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35400 }
35401 if (!argp2) {
35402 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetPrevVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35403 }
35404 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35405 {
35406 PyThreadState* __tstate = wxPyBeginAllowThreads();
35407 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
35408 wxPyEndAllowThreads(__tstate);
35409 if (PyErr_Occurred()) SWIG_fail;
35410 }
35411 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35412 return resultobj;
35413 fail:
35414 return NULL;
35415 }
35416
35417
35418 SWIGINTERN PyObject *_wrap_TreeCtrl_AddRoot(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35419 PyObject *resultobj = 0;
35420 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35421 wxString *arg2 = 0 ;
35422 int arg3 = (int) -1 ;
35423 int arg4 = (int) -1 ;
35424 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
35425 wxTreeItemId result;
35426 void *argp1 = 0 ;
35427 int res1 = 0 ;
35428 bool temp2 = false ;
35429 int val3 ;
35430 int ecode3 = 0 ;
35431 int val4 ;
35432 int ecode4 = 0 ;
35433 int res5 = 0 ;
35434 PyObject * obj0 = 0 ;
35435 PyObject * obj1 = 0 ;
35436 PyObject * obj2 = 0 ;
35437 PyObject * obj3 = 0 ;
35438 PyObject * obj4 = 0 ;
35439 char * kwnames[] = {
35440 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35441 };
35442
35443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35445 if (!SWIG_IsOK(res1)) {
35446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AddRoot" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35447 }
35448 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35449 {
35450 arg2 = wxString_in_helper(obj1);
35451 if (arg2 == NULL) SWIG_fail;
35452 temp2 = true;
35453 }
35454 if (obj2) {
35455 ecode3 = SWIG_AsVal_int(obj2, &val3);
35456 if (!SWIG_IsOK(ecode3)) {
35457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_AddRoot" "', expected argument " "3"" of type '" "int""'");
35458 }
35459 arg3 = static_cast< int >(val3);
35460 }
35461 if (obj3) {
35462 ecode4 = SWIG_AsVal_int(obj3, &val4);
35463 if (!SWIG_IsOK(ecode4)) {
35464 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AddRoot" "', expected argument " "4"" of type '" "int""'");
35465 }
35466 arg4 = static_cast< int >(val4);
35467 }
35468 if (obj4) {
35469 res5 = SWIG_ConvertPtr(obj4, SWIG_as_voidptrptr(&arg5), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35470 if (!SWIG_IsOK(res5)) {
35471 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "TreeCtrl_AddRoot" "', expected argument " "5"" of type '" "wxPyTreeItemData *""'");
35472 }
35473 }
35474 {
35475 PyThreadState* __tstate = wxPyBeginAllowThreads();
35476 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
35477 wxPyEndAllowThreads(__tstate);
35478 if (PyErr_Occurred()) SWIG_fail;
35479 }
35480 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35481 {
35482 if (temp2)
35483 delete arg2;
35484 }
35485 return resultobj;
35486 fail:
35487 {
35488 if (temp2)
35489 delete arg2;
35490 }
35491 return NULL;
35492 }
35493
35494
35495 SWIGINTERN PyObject *_wrap_TreeCtrl_PrependItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35496 PyObject *resultobj = 0;
35497 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35498 wxTreeItemId *arg2 = 0 ;
35499 wxString *arg3 = 0 ;
35500 int arg4 = (int) -1 ;
35501 int arg5 = (int) -1 ;
35502 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35503 wxTreeItemId result;
35504 void *argp1 = 0 ;
35505 int res1 = 0 ;
35506 void *argp2 = 0 ;
35507 int res2 = 0 ;
35508 bool temp3 = false ;
35509 int val4 ;
35510 int ecode4 = 0 ;
35511 int val5 ;
35512 int ecode5 = 0 ;
35513 int res6 = 0 ;
35514 PyObject * obj0 = 0 ;
35515 PyObject * obj1 = 0 ;
35516 PyObject * obj2 = 0 ;
35517 PyObject * obj3 = 0 ;
35518 PyObject * obj4 = 0 ;
35519 PyObject * obj5 = 0 ;
35520 char * kwnames[] = {
35521 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35522 };
35523
35524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35526 if (!SWIG_IsOK(res1)) {
35527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_PrependItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35528 }
35529 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35530 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35531 if (!SWIG_IsOK(res2)) {
35532 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35533 }
35534 if (!argp2) {
35535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_PrependItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35536 }
35537 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35538 {
35539 arg3 = wxString_in_helper(obj2);
35540 if (arg3 == NULL) SWIG_fail;
35541 temp3 = true;
35542 }
35543 if (obj3) {
35544 ecode4 = SWIG_AsVal_int(obj3, &val4);
35545 if (!SWIG_IsOK(ecode4)) {
35546 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_PrependItem" "', expected argument " "4"" of type '" "int""'");
35547 }
35548 arg4 = static_cast< int >(val4);
35549 }
35550 if (obj4) {
35551 ecode5 = SWIG_AsVal_int(obj4, &val5);
35552 if (!SWIG_IsOK(ecode5)) {
35553 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_PrependItem" "', expected argument " "5"" of type '" "int""'");
35554 }
35555 arg5 = static_cast< int >(val5);
35556 }
35557 if (obj5) {
35558 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35559 if (!SWIG_IsOK(res6)) {
35560 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_PrependItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35561 }
35562 }
35563 {
35564 PyThreadState* __tstate = wxPyBeginAllowThreads();
35565 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35566 wxPyEndAllowThreads(__tstate);
35567 if (PyErr_Occurred()) SWIG_fail;
35568 }
35569 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35570 {
35571 if (temp3)
35572 delete arg3;
35573 }
35574 return resultobj;
35575 fail:
35576 {
35577 if (temp3)
35578 delete arg3;
35579 }
35580 return NULL;
35581 }
35582
35583
35584 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35585 PyObject *resultobj = 0;
35586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35587 wxTreeItemId *arg2 = 0 ;
35588 wxTreeItemId *arg3 = 0 ;
35589 wxString *arg4 = 0 ;
35590 int arg5 = (int) -1 ;
35591 int arg6 = (int) -1 ;
35592 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35593 wxTreeItemId result;
35594 void *argp1 = 0 ;
35595 int res1 = 0 ;
35596 void *argp2 = 0 ;
35597 int res2 = 0 ;
35598 void *argp3 = 0 ;
35599 int res3 = 0 ;
35600 bool temp4 = false ;
35601 int val5 ;
35602 int ecode5 = 0 ;
35603 int val6 ;
35604 int ecode6 = 0 ;
35605 int res7 = 0 ;
35606 PyObject * obj0 = 0 ;
35607 PyObject * obj1 = 0 ;
35608 PyObject * obj2 = 0 ;
35609 PyObject * obj3 = 0 ;
35610 PyObject * obj4 = 0 ;
35611 PyObject * obj5 = 0 ;
35612 PyObject * obj6 = 0 ;
35613 char * kwnames[] = {
35614 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35615 };
35616
35617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35619 if (!SWIG_IsOK(res1)) {
35620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35621 }
35622 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35623 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35624 if (!SWIG_IsOK(res2)) {
35625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35626 }
35627 if (!argp2) {
35628 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35629 }
35630 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35631 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35632 if (!SWIG_IsOK(res3)) {
35633 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35634 }
35635 if (!argp3) {
35636 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItem" "', expected argument " "3"" of type '" "wxTreeItemId const &""'");
35637 }
35638 arg3 = reinterpret_cast< wxTreeItemId * >(argp3);
35639 {
35640 arg4 = wxString_in_helper(obj3);
35641 if (arg4 == NULL) SWIG_fail;
35642 temp4 = true;
35643 }
35644 if (obj4) {
35645 ecode5 = SWIG_AsVal_int(obj4, &val5);
35646 if (!SWIG_IsOK(ecode5)) {
35647 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItem" "', expected argument " "5"" of type '" "int""'");
35648 }
35649 arg5 = static_cast< int >(val5);
35650 }
35651 if (obj5) {
35652 ecode6 = SWIG_AsVal_int(obj5, &val6);
35653 if (!SWIG_IsOK(ecode6)) {
35654 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItem" "', expected argument " "6"" of type '" "int""'");
35655 }
35656 arg6 = static_cast< int >(val6);
35657 }
35658 if (obj6) {
35659 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35660 if (!SWIG_IsOK(res7)) {
35661 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItem" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35662 }
35663 }
35664 {
35665 PyThreadState* __tstate = wxPyBeginAllowThreads();
35666 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35667 wxPyEndAllowThreads(__tstate);
35668 if (PyErr_Occurred()) SWIG_fail;
35669 }
35670 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35671 {
35672 if (temp4)
35673 delete arg4;
35674 }
35675 return resultobj;
35676 fail:
35677 {
35678 if (temp4)
35679 delete arg4;
35680 }
35681 return NULL;
35682 }
35683
35684
35685 SWIGINTERN PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35686 PyObject *resultobj = 0;
35687 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35688 wxTreeItemId *arg2 = 0 ;
35689 size_t arg3 ;
35690 wxString *arg4 = 0 ;
35691 int arg5 = (int) -1 ;
35692 int arg6 = (int) -1 ;
35693 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
35694 wxTreeItemId result;
35695 void *argp1 = 0 ;
35696 int res1 = 0 ;
35697 void *argp2 = 0 ;
35698 int res2 = 0 ;
35699 size_t val3 ;
35700 int ecode3 = 0 ;
35701 bool temp4 = false ;
35702 int val5 ;
35703 int ecode5 = 0 ;
35704 int val6 ;
35705 int ecode6 = 0 ;
35706 int res7 = 0 ;
35707 PyObject * obj0 = 0 ;
35708 PyObject * obj1 = 0 ;
35709 PyObject * obj2 = 0 ;
35710 PyObject * obj3 = 0 ;
35711 PyObject * obj4 = 0 ;
35712 PyObject * obj5 = 0 ;
35713 PyObject * obj6 = 0 ;
35714 char * kwnames[] = {
35715 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35716 };
35717
35718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35720 if (!SWIG_IsOK(res1)) {
35721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35722 }
35723 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35724 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35725 if (!SWIG_IsOK(res2)) {
35726 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35727 }
35728 if (!argp2) {
35729 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35730 }
35731 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35732 ecode3 = SWIG_AsVal_size_t(obj2, &val3);
35733 if (!SWIG_IsOK(ecode3)) {
35734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "3"" of type '" "size_t""'");
35735 }
35736 arg3 = static_cast< size_t >(val3);
35737 {
35738 arg4 = wxString_in_helper(obj3);
35739 if (arg4 == NULL) SWIG_fail;
35740 temp4 = true;
35741 }
35742 if (obj4) {
35743 ecode5 = SWIG_AsVal_int(obj4, &val5);
35744 if (!SWIG_IsOK(ecode5)) {
35745 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "5"" of type '" "int""'");
35746 }
35747 arg5 = static_cast< int >(val5);
35748 }
35749 if (obj5) {
35750 ecode6 = SWIG_AsVal_int(obj5, &val6);
35751 if (!SWIG_IsOK(ecode6)) {
35752 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "6"" of type '" "int""'");
35753 }
35754 arg6 = static_cast< int >(val6);
35755 }
35756 if (obj6) {
35757 res7 = SWIG_ConvertPtr(obj6, SWIG_as_voidptrptr(&arg7), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35758 if (!SWIG_IsOK(res7)) {
35759 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "TreeCtrl_InsertItemBefore" "', expected argument " "7"" of type '" "wxPyTreeItemData *""'");
35760 }
35761 }
35762 {
35763 PyThreadState* __tstate = wxPyBeginAllowThreads();
35764 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
35765 wxPyEndAllowThreads(__tstate);
35766 if (PyErr_Occurred()) SWIG_fail;
35767 }
35768 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35769 {
35770 if (temp4)
35771 delete arg4;
35772 }
35773 return resultobj;
35774 fail:
35775 {
35776 if (temp4)
35777 delete arg4;
35778 }
35779 return NULL;
35780 }
35781
35782
35783 SWIGINTERN PyObject *_wrap_TreeCtrl_AppendItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35784 PyObject *resultobj = 0;
35785 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35786 wxTreeItemId *arg2 = 0 ;
35787 wxString *arg3 = 0 ;
35788 int arg4 = (int) -1 ;
35789 int arg5 = (int) -1 ;
35790 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
35791 wxTreeItemId result;
35792 void *argp1 = 0 ;
35793 int res1 = 0 ;
35794 void *argp2 = 0 ;
35795 int res2 = 0 ;
35796 bool temp3 = false ;
35797 int val4 ;
35798 int ecode4 = 0 ;
35799 int val5 ;
35800 int ecode5 = 0 ;
35801 int res6 = 0 ;
35802 PyObject * obj0 = 0 ;
35803 PyObject * obj1 = 0 ;
35804 PyObject * obj2 = 0 ;
35805 PyObject * obj3 = 0 ;
35806 PyObject * obj4 = 0 ;
35807 PyObject * obj5 = 0 ;
35808 char * kwnames[] = {
35809 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
35810 };
35811
35812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
35813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35814 if (!SWIG_IsOK(res1)) {
35815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_AppendItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35816 }
35817 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35818 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35819 if (!SWIG_IsOK(res2)) {
35820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35821 }
35822 if (!argp2) {
35823 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_AppendItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35824 }
35825 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35826 {
35827 arg3 = wxString_in_helper(obj2);
35828 if (arg3 == NULL) SWIG_fail;
35829 temp3 = true;
35830 }
35831 if (obj3) {
35832 ecode4 = SWIG_AsVal_int(obj3, &val4);
35833 if (!SWIG_IsOK(ecode4)) {
35834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TreeCtrl_AppendItem" "', expected argument " "4"" of type '" "int""'");
35835 }
35836 arg4 = static_cast< int >(val4);
35837 }
35838 if (obj4) {
35839 ecode5 = SWIG_AsVal_int(obj4, &val5);
35840 if (!SWIG_IsOK(ecode5)) {
35841 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "TreeCtrl_AppendItem" "', expected argument " "5"" of type '" "int""'");
35842 }
35843 arg5 = static_cast< int >(val5);
35844 }
35845 if (obj5) {
35846 res6 = SWIG_ConvertPtr(obj5, SWIG_as_voidptrptr(&arg6), SWIGTYPE_p_wxPyTreeItemData, SWIG_POINTER_DISOWN | 0 );
35847 if (!SWIG_IsOK(res6)) {
35848 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "TreeCtrl_AppendItem" "', expected argument " "6"" of type '" "wxPyTreeItemData *""'");
35849 }
35850 }
35851 {
35852 PyThreadState* __tstate = wxPyBeginAllowThreads();
35853 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
35854 wxPyEndAllowThreads(__tstate);
35855 if (PyErr_Occurred()) SWIG_fail;
35856 }
35857 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
35858 {
35859 if (temp3)
35860 delete arg3;
35861 }
35862 return resultobj;
35863 fail:
35864 {
35865 if (temp3)
35866 delete arg3;
35867 }
35868 return NULL;
35869 }
35870
35871
35872 SWIGINTERN PyObject *_wrap_TreeCtrl_Delete(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35873 PyObject *resultobj = 0;
35874 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35875 wxTreeItemId *arg2 = 0 ;
35876 void *argp1 = 0 ;
35877 int res1 = 0 ;
35878 void *argp2 = 0 ;
35879 int res2 = 0 ;
35880 PyObject * obj0 = 0 ;
35881 PyObject * obj1 = 0 ;
35882 char * kwnames[] = {
35883 (char *) "self",(char *) "item", NULL
35884 };
35885
35886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) SWIG_fail;
35887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35888 if (!SWIG_IsOK(res1)) {
35889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Delete" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35890 }
35891 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35893 if (!SWIG_IsOK(res2)) {
35894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35895 }
35896 if (!argp2) {
35897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Delete" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35898 }
35899 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35900 {
35901 PyThreadState* __tstate = wxPyBeginAllowThreads();
35902 (arg1)->Delete((wxTreeItemId const &)*arg2);
35903 wxPyEndAllowThreads(__tstate);
35904 if (PyErr_Occurred()) SWIG_fail;
35905 }
35906 resultobj = SWIG_Py_Void();
35907 return resultobj;
35908 fail:
35909 return NULL;
35910 }
35911
35912
35913 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35914 PyObject *resultobj = 0;
35915 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35916 wxTreeItemId *arg2 = 0 ;
35917 void *argp1 = 0 ;
35918 int res1 = 0 ;
35919 void *argp2 = 0 ;
35920 int res2 = 0 ;
35921 PyObject * obj0 = 0 ;
35922 PyObject * obj1 = 0 ;
35923 char * kwnames[] = {
35924 (char *) "self",(char *) "item", NULL
35925 };
35926
35927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) SWIG_fail;
35928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35929 if (!SWIG_IsOK(res1)) {
35930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35931 }
35932 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
35934 if (!SWIG_IsOK(res2)) {
35935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35936 }
35937 if (!argp2) {
35938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_DeleteChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
35939 }
35940 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
35941 {
35942 PyThreadState* __tstate = wxPyBeginAllowThreads();
35943 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
35944 wxPyEndAllowThreads(__tstate);
35945 if (PyErr_Occurred()) SWIG_fail;
35946 }
35947 resultobj = SWIG_Py_Void();
35948 return resultobj;
35949 fail:
35950 return NULL;
35951 }
35952
35953
35954 SWIGINTERN PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35955 PyObject *resultobj = 0;
35956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35957 void *argp1 = 0 ;
35958 int res1 = 0 ;
35959 PyObject *swig_obj[1] ;
35960
35961 if (!args) SWIG_fail;
35962 swig_obj[0] = args;
35963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35964 if (!SWIG_IsOK(res1)) {
35965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_DeleteAllItems" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35966 }
35967 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
35968 {
35969 PyThreadState* __tstate = wxPyBeginAllowThreads();
35970 (arg1)->DeleteAllItems();
35971 wxPyEndAllowThreads(__tstate);
35972 if (PyErr_Occurred()) SWIG_fail;
35973 }
35974 resultobj = SWIG_Py_Void();
35975 return resultobj;
35976 fail:
35977 return NULL;
35978 }
35979
35980
35981 SWIGINTERN PyObject *_wrap_TreeCtrl_Expand(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35982 PyObject *resultobj = 0;
35983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
35984 wxTreeItemId *arg2 = 0 ;
35985 void *argp1 = 0 ;
35986 int res1 = 0 ;
35987 void *argp2 = 0 ;
35988 int res2 = 0 ;
35989 PyObject * obj0 = 0 ;
35990 PyObject * obj1 = 0 ;
35991 char * kwnames[] = {
35992 (char *) "self",(char *) "item", NULL
35993 };
35994
35995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) SWIG_fail;
35996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
35997 if (!SWIG_IsOK(res1)) {
35998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Expand" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
35999 }
36000 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36001 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36002 if (!SWIG_IsOK(res2)) {
36003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36004 }
36005 if (!argp2) {
36006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Expand" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36007 }
36008 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36009 {
36010 PyThreadState* __tstate = wxPyBeginAllowThreads();
36011 (arg1)->Expand((wxTreeItemId const &)*arg2);
36012 wxPyEndAllowThreads(__tstate);
36013 if (PyErr_Occurred()) SWIG_fail;
36014 }
36015 resultobj = SWIG_Py_Void();
36016 return resultobj;
36017 fail:
36018 return NULL;
36019 }
36020
36021
36022 SWIGINTERN PyObject *_wrap_TreeCtrl_Collapse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36023 PyObject *resultobj = 0;
36024 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36025 wxTreeItemId *arg2 = 0 ;
36026 void *argp1 = 0 ;
36027 int res1 = 0 ;
36028 void *argp2 = 0 ;
36029 int res2 = 0 ;
36030 PyObject * obj0 = 0 ;
36031 PyObject * obj1 = 0 ;
36032 char * kwnames[] = {
36033 (char *) "self",(char *) "item", NULL
36034 };
36035
36036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) SWIG_fail;
36037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36038 if (!SWIG_IsOK(res1)) {
36039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Collapse" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36040 }
36041 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36043 if (!SWIG_IsOK(res2)) {
36044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36045 }
36046 if (!argp2) {
36047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Collapse" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36048 }
36049 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36050 {
36051 PyThreadState* __tstate = wxPyBeginAllowThreads();
36052 (arg1)->Collapse((wxTreeItemId const &)*arg2);
36053 wxPyEndAllowThreads(__tstate);
36054 if (PyErr_Occurred()) SWIG_fail;
36055 }
36056 resultobj = SWIG_Py_Void();
36057 return resultobj;
36058 fail:
36059 return NULL;
36060 }
36061
36062
36063 SWIGINTERN PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36064 PyObject *resultobj = 0;
36065 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36066 wxTreeItemId *arg2 = 0 ;
36067 void *argp1 = 0 ;
36068 int res1 = 0 ;
36069 void *argp2 = 0 ;
36070 int res2 = 0 ;
36071 PyObject * obj0 = 0 ;
36072 PyObject * obj1 = 0 ;
36073 char * kwnames[] = {
36074 (char *) "self",(char *) "item", NULL
36075 };
36076
36077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) SWIG_fail;
36078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36079 if (!SWIG_IsOK(res1)) {
36080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36081 }
36082 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36083 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36084 if (!SWIG_IsOK(res2)) {
36085 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36086 }
36087 if (!argp2) {
36088 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_CollapseAndReset" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36089 }
36090 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36091 {
36092 PyThreadState* __tstate = wxPyBeginAllowThreads();
36093 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
36094 wxPyEndAllowThreads(__tstate);
36095 if (PyErr_Occurred()) SWIG_fail;
36096 }
36097 resultobj = SWIG_Py_Void();
36098 return resultobj;
36099 fail:
36100 return NULL;
36101 }
36102
36103
36104 SWIGINTERN PyObject *_wrap_TreeCtrl_Toggle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36105 PyObject *resultobj = 0;
36106 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36107 wxTreeItemId *arg2 = 0 ;
36108 void *argp1 = 0 ;
36109 int res1 = 0 ;
36110 void *argp2 = 0 ;
36111 int res2 = 0 ;
36112 PyObject * obj0 = 0 ;
36113 PyObject * obj1 = 0 ;
36114 char * kwnames[] = {
36115 (char *) "self",(char *) "item", NULL
36116 };
36117
36118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) SWIG_fail;
36119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36120 if (!SWIG_IsOK(res1)) {
36121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Toggle" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36122 }
36123 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36124 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36125 if (!SWIG_IsOK(res2)) {
36126 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36127 }
36128 if (!argp2) {
36129 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_Toggle" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36130 }
36131 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36132 {
36133 PyThreadState* __tstate = wxPyBeginAllowThreads();
36134 (arg1)->Toggle((wxTreeItemId const &)*arg2);
36135 wxPyEndAllowThreads(__tstate);
36136 if (PyErr_Occurred()) SWIG_fail;
36137 }
36138 resultobj = SWIG_Py_Void();
36139 return resultobj;
36140 fail:
36141 return NULL;
36142 }
36143
36144
36145 SWIGINTERN PyObject *_wrap_TreeCtrl_Unselect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36146 PyObject *resultobj = 0;
36147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36148 void *argp1 = 0 ;
36149 int res1 = 0 ;
36150 PyObject *swig_obj[1] ;
36151
36152 if (!args) SWIG_fail;
36153 swig_obj[0] = args;
36154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36155 if (!SWIG_IsOK(res1)) {
36156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_Unselect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36157 }
36158 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36159 {
36160 PyThreadState* __tstate = wxPyBeginAllowThreads();
36161 (arg1)->Unselect();
36162 wxPyEndAllowThreads(__tstate);
36163 if (PyErr_Occurred()) SWIG_fail;
36164 }
36165 resultobj = SWIG_Py_Void();
36166 return resultobj;
36167 fail:
36168 return NULL;
36169 }
36170
36171
36172 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36173 PyObject *resultobj = 0;
36174 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36175 wxTreeItemId *arg2 = 0 ;
36176 void *argp1 = 0 ;
36177 int res1 = 0 ;
36178 void *argp2 = 0 ;
36179 int res2 = 0 ;
36180 PyObject * obj0 = 0 ;
36181 PyObject * obj1 = 0 ;
36182 char * kwnames[] = {
36183 (char *) "self",(char *) "item", NULL
36184 };
36185
36186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) SWIG_fail;
36187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36188 if (!SWIG_IsOK(res1)) {
36189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36190 }
36191 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36192 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36193 if (!SWIG_IsOK(res2)) {
36194 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36195 }
36196 if (!argp2) {
36197 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_UnselectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36198 }
36199 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36200 {
36201 PyThreadState* __tstate = wxPyBeginAllowThreads();
36202 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
36203 wxPyEndAllowThreads(__tstate);
36204 if (PyErr_Occurred()) SWIG_fail;
36205 }
36206 resultobj = SWIG_Py_Void();
36207 return resultobj;
36208 fail:
36209 return NULL;
36210 }
36211
36212
36213 SWIGINTERN PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36214 PyObject *resultobj = 0;
36215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36216 void *argp1 = 0 ;
36217 int res1 = 0 ;
36218 PyObject *swig_obj[1] ;
36219
36220 if (!args) SWIG_fail;
36221 swig_obj[0] = args;
36222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36223 if (!SWIG_IsOK(res1)) {
36224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_UnselectAll" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36225 }
36226 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36227 {
36228 PyThreadState* __tstate = wxPyBeginAllowThreads();
36229 (arg1)->UnselectAll();
36230 wxPyEndAllowThreads(__tstate);
36231 if (PyErr_Occurred()) SWIG_fail;
36232 }
36233 resultobj = SWIG_Py_Void();
36234 return resultobj;
36235 fail:
36236 return NULL;
36237 }
36238
36239
36240 SWIGINTERN PyObject *_wrap_TreeCtrl_SelectItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36241 PyObject *resultobj = 0;
36242 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36243 wxTreeItemId *arg2 = 0 ;
36244 bool arg3 = (bool) true ;
36245 void *argp1 = 0 ;
36246 int res1 = 0 ;
36247 void *argp2 = 0 ;
36248 int res2 = 0 ;
36249 bool val3 ;
36250 int ecode3 = 0 ;
36251 PyObject * obj0 = 0 ;
36252 PyObject * obj1 = 0 ;
36253 PyObject * obj2 = 0 ;
36254 char * kwnames[] = {
36255 (char *) "self",(char *) "item",(char *) "select", NULL
36256 };
36257
36258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36260 if (!SWIG_IsOK(res1)) {
36261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SelectItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36262 }
36263 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36264 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36265 if (!SWIG_IsOK(res2)) {
36266 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36267 }
36268 if (!argp2) {
36269 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SelectItem" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36270 }
36271 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36272 if (obj2) {
36273 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36274 if (!SWIG_IsOK(ecode3)) {
36275 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_SelectItem" "', expected argument " "3"" of type '" "bool""'");
36276 }
36277 arg3 = static_cast< bool >(val3);
36278 }
36279 {
36280 PyThreadState* __tstate = wxPyBeginAllowThreads();
36281 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
36282 wxPyEndAllowThreads(__tstate);
36283 if (PyErr_Occurred()) SWIG_fail;
36284 }
36285 resultobj = SWIG_Py_Void();
36286 return resultobj;
36287 fail:
36288 return NULL;
36289 }
36290
36291
36292 SWIGINTERN PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36293 PyObject *resultobj = 0;
36294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36295 wxTreeItemId *arg2 = 0 ;
36296 void *argp1 = 0 ;
36297 int res1 = 0 ;
36298 void *argp2 = 0 ;
36299 int res2 = 0 ;
36300 PyObject * obj0 = 0 ;
36301 PyObject * obj1 = 0 ;
36302 char * kwnames[] = {
36303 (char *) "self",(char *) "item", NULL
36304 };
36305
36306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) SWIG_fail;
36307 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36308 if (!SWIG_IsOK(res1)) {
36309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36310 }
36311 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36312 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36313 if (!SWIG_IsOK(res2)) {
36314 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36315 }
36316 if (!argp2) {
36317 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ToggleItemSelection" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36318 }
36319 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36320 {
36321 PyThreadState* __tstate = wxPyBeginAllowThreads();
36322 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
36323 wxPyEndAllowThreads(__tstate);
36324 if (PyErr_Occurred()) SWIG_fail;
36325 }
36326 resultobj = SWIG_Py_Void();
36327 return resultobj;
36328 fail:
36329 return NULL;
36330 }
36331
36332
36333 SWIGINTERN PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36334 PyObject *resultobj = 0;
36335 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36336 wxTreeItemId *arg2 = 0 ;
36337 void *argp1 = 0 ;
36338 int res1 = 0 ;
36339 void *argp2 = 0 ;
36340 int res2 = 0 ;
36341 PyObject * obj0 = 0 ;
36342 PyObject * obj1 = 0 ;
36343 char * kwnames[] = {
36344 (char *) "self",(char *) "item", NULL
36345 };
36346
36347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) SWIG_fail;
36348 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36349 if (!SWIG_IsOK(res1)) {
36350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36351 }
36352 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36353 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36354 if (!SWIG_IsOK(res2)) {
36355 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36356 }
36357 if (!argp2) {
36358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EnsureVisible" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36359 }
36360 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36361 {
36362 PyThreadState* __tstate = wxPyBeginAllowThreads();
36363 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
36364 wxPyEndAllowThreads(__tstate);
36365 if (PyErr_Occurred()) SWIG_fail;
36366 }
36367 resultobj = SWIG_Py_Void();
36368 return resultobj;
36369 fail:
36370 return NULL;
36371 }
36372
36373
36374 SWIGINTERN PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36375 PyObject *resultobj = 0;
36376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36377 wxTreeItemId *arg2 = 0 ;
36378 void *argp1 = 0 ;
36379 int res1 = 0 ;
36380 void *argp2 = 0 ;
36381 int res2 = 0 ;
36382 PyObject * obj0 = 0 ;
36383 PyObject * obj1 = 0 ;
36384 char * kwnames[] = {
36385 (char *) "self",(char *) "item", NULL
36386 };
36387
36388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) SWIG_fail;
36389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36390 if (!SWIG_IsOK(res1)) {
36391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36392 }
36393 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36394 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36395 if (!SWIG_IsOK(res2)) {
36396 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36397 }
36398 if (!argp2) {
36399 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_ScrollTo" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36400 }
36401 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36402 {
36403 PyThreadState* __tstate = wxPyBeginAllowThreads();
36404 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
36405 wxPyEndAllowThreads(__tstate);
36406 if (PyErr_Occurred()) SWIG_fail;
36407 }
36408 resultobj = SWIG_Py_Void();
36409 return resultobj;
36410 fail:
36411 return NULL;
36412 }
36413
36414
36415 SWIGINTERN PyObject *_wrap_TreeCtrl_EditLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36416 PyObject *resultobj = 0;
36417 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36418 wxTreeItemId *arg2 = 0 ;
36419 void *argp1 = 0 ;
36420 int res1 = 0 ;
36421 void *argp2 = 0 ;
36422 int res2 = 0 ;
36423 PyObject * obj0 = 0 ;
36424 PyObject * obj1 = 0 ;
36425 char * kwnames[] = {
36426 (char *) "self",(char *) "item", NULL
36427 };
36428
36429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) SWIG_fail;
36430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36431 if (!SWIG_IsOK(res1)) {
36432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_EditLabel" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36433 }
36434 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36436 if (!SWIG_IsOK(res2)) {
36437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36438 }
36439 if (!argp2) {
36440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_EditLabel" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36441 }
36442 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36443 {
36444 PyThreadState* __tstate = wxPyBeginAllowThreads();
36445 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
36446 wxPyEndAllowThreads(__tstate);
36447 if (PyErr_Occurred()) SWIG_fail;
36448 }
36449 resultobj = SWIG_Py_Void();
36450 return resultobj;
36451 fail:
36452 return NULL;
36453 }
36454
36455
36456 SWIGINTERN PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36457 PyObject *resultobj = 0;
36458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36459 wxTextCtrl *result = 0 ;
36460 void *argp1 = 0 ;
36461 int res1 = 0 ;
36462 PyObject *swig_obj[1] ;
36463
36464 if (!args) SWIG_fail;
36465 swig_obj[0] = args;
36466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36467 if (!SWIG_IsOK(res1)) {
36468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetEditControl" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36469 }
36470 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36471 {
36472 PyThreadState* __tstate = wxPyBeginAllowThreads();
36473 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
36474 wxPyEndAllowThreads(__tstate);
36475 if (PyErr_Occurred()) SWIG_fail;
36476 }
36477 {
36478 resultobj = wxPyMake_wxObject(result, 0);
36479 }
36480 return resultobj;
36481 fail:
36482 return NULL;
36483 }
36484
36485
36486 SWIGINTERN PyObject *_wrap_TreeCtrl_SortChildren(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36487 PyObject *resultobj = 0;
36488 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36489 wxTreeItemId *arg2 = 0 ;
36490 void *argp1 = 0 ;
36491 int res1 = 0 ;
36492 void *argp2 = 0 ;
36493 int res2 = 0 ;
36494 PyObject * obj0 = 0 ;
36495 PyObject * obj1 = 0 ;
36496 char * kwnames[] = {
36497 (char *) "self",(char *) "item", NULL
36498 };
36499
36500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) SWIG_fail;
36501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36502 if (!SWIG_IsOK(res1)) {
36503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SortChildren" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36504 }
36505 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36507 if (!SWIG_IsOK(res2)) {
36508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36509 }
36510 if (!argp2) {
36511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_SortChildren" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36512 }
36513 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36514 {
36515 PyThreadState* __tstate = wxPyBeginAllowThreads();
36516 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
36517 wxPyEndAllowThreads(__tstate);
36518 if (PyErr_Occurred()) SWIG_fail;
36519 }
36520 resultobj = SWIG_Py_Void();
36521 return resultobj;
36522 fail:
36523 return NULL;
36524 }
36525
36526
36527 SWIGINTERN PyObject *_wrap_TreeCtrl_HitTest(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36528 PyObject *resultobj = 0;
36529 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36530 wxPoint *arg2 = 0 ;
36531 int *arg3 = 0 ;
36532 wxTreeItemId result;
36533 void *argp1 = 0 ;
36534 int res1 = 0 ;
36535 wxPoint temp2 ;
36536 int temp3 ;
36537 int res3 = SWIG_TMPOBJ ;
36538 PyObject * obj0 = 0 ;
36539 PyObject * obj1 = 0 ;
36540 char * kwnames[] = {
36541 (char *) "self",(char *) "point", NULL
36542 };
36543
36544 arg3 = &temp3;
36545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) SWIG_fail;
36546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36547 if (!SWIG_IsOK(res1)) {
36548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_HitTest" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36549 }
36550 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36551 {
36552 arg2 = &temp2;
36553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36554 }
36555 {
36556 PyThreadState* __tstate = wxPyBeginAllowThreads();
36557 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
36558 wxPyEndAllowThreads(__tstate);
36559 if (PyErr_Occurred()) SWIG_fail;
36560 }
36561 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
36562 if (SWIG_IsTmpObj(res3)) {
36563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
36564 } else {
36565 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
36566 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
36567 }
36568 return resultobj;
36569 fail:
36570 return NULL;
36571 }
36572
36573
36574 SWIGINTERN PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36575 PyObject *resultobj = 0;
36576 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36577 wxTreeItemId *arg2 = 0 ;
36578 bool arg3 = (bool) false ;
36579 PyObject *result = 0 ;
36580 void *argp1 = 0 ;
36581 int res1 = 0 ;
36582 void *argp2 = 0 ;
36583 int res2 = 0 ;
36584 bool val3 ;
36585 int ecode3 = 0 ;
36586 PyObject * obj0 = 0 ;
36587 PyObject * obj1 = 0 ;
36588 PyObject * obj2 = 0 ;
36589 char * kwnames[] = {
36590 (char *) "self",(char *) "item",(char *) "textOnly", NULL
36591 };
36592
36593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36595 if (!SWIG_IsOK(res1)) {
36596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36597 }
36598 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36599 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
36600 if (!SWIG_IsOK(res2)) {
36601 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36602 }
36603 if (!argp2) {
36604 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "2"" of type '" "wxTreeItemId const &""'");
36605 }
36606 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
36607 if (obj2) {
36608 ecode3 = SWIG_AsVal_bool(obj2, &val3);
36609 if (!SWIG_IsOK(ecode3)) {
36610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TreeCtrl_GetBoundingRect" "', expected argument " "3"" of type '" "bool""'");
36611 }
36612 arg3 = static_cast< bool >(val3);
36613 }
36614 {
36615 PyThreadState* __tstate = wxPyBeginAllowThreads();
36616 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
36617 wxPyEndAllowThreads(__tstate);
36618 if (PyErr_Occurred()) SWIG_fail;
36619 }
36620 resultobj = result;
36621 return resultobj;
36622 fail:
36623 return NULL;
36624 }
36625
36626
36627 SWIGINTERN PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36628 PyObject *resultobj = 0;
36629 wxWindowVariant arg1 = (wxWindowVariant) wxWINDOW_VARIANT_NORMAL ;
36630 SwigValueWrapper<wxVisualAttributes > result;
36631 int val1 ;
36632 int ecode1 = 0 ;
36633 PyObject * obj0 = 0 ;
36634 char * kwnames[] = {
36635 (char *) "variant", NULL
36636 };
36637
36638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) SWIG_fail;
36639 if (obj0) {
36640 ecode1 = SWIG_AsVal_int(obj0, &val1);
36641 if (!SWIG_IsOK(ecode1)) {
36642 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "TreeCtrl_GetClassDefaultAttributes" "', expected argument " "1"" of type '" "wxWindowVariant""'");
36643 }
36644 arg1 = static_cast< wxWindowVariant >(val1);
36645 }
36646 {
36647 if (!wxPyCheckForApp()) SWIG_fail;
36648 PyThreadState* __tstate = wxPyBeginAllowThreads();
36649 result = wxPyTreeCtrl::GetClassDefaultAttributes(arg1);
36650 wxPyEndAllowThreads(__tstate);
36651 if (PyErr_Occurred()) SWIG_fail;
36652 }
36653 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
36654 return resultobj;
36655 fail:
36656 return NULL;
36657 }
36658
36659
36660 SWIGINTERN PyObject *_wrap_TreeCtrl_SetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36661 PyObject *resultobj = 0;
36662 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36663 bool arg2 ;
36664 void *argp1 = 0 ;
36665 int res1 = 0 ;
36666 bool val2 ;
36667 int ecode2 = 0 ;
36668 PyObject * obj0 = 0 ;
36669 PyObject * obj1 = 0 ;
36670 char * kwnames[] = {
36671 (char *) "self",(char *) "q", NULL
36672 };
36673
36674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetQuickBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
36675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36676 if (!SWIG_IsOK(res1)) {
36677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl *""'");
36678 }
36679 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36680 ecode2 = SWIG_AsVal_bool(obj1, &val2);
36681 if (!SWIG_IsOK(ecode2)) {
36682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TreeCtrl_SetQuickBestSize" "', expected argument " "2"" of type '" "bool""'");
36683 }
36684 arg2 = static_cast< bool >(val2);
36685 {
36686 PyThreadState* __tstate = wxPyBeginAllowThreads();
36687 (arg1)->SetQuickBestSize(arg2);
36688 wxPyEndAllowThreads(__tstate);
36689 if (PyErr_Occurred()) SWIG_fail;
36690 }
36691 resultobj = SWIG_Py_Void();
36692 return resultobj;
36693 fail:
36694 return NULL;
36695 }
36696
36697
36698 SWIGINTERN PyObject *_wrap_TreeCtrl_GetQuickBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36699 PyObject *resultobj = 0;
36700 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
36701 bool result;
36702 void *argp1 = 0 ;
36703 int res1 = 0 ;
36704 PyObject *swig_obj[1] ;
36705
36706 if (!args) SWIG_fail;
36707 swig_obj[0] = args;
36708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyTreeCtrl, 0 | 0 );
36709 if (!SWIG_IsOK(res1)) {
36710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TreeCtrl_GetQuickBestSize" "', expected argument " "1"" of type '" "wxPyTreeCtrl const *""'");
36711 }
36712 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
36713 {
36714 PyThreadState* __tstate = wxPyBeginAllowThreads();
36715 result = (bool)((wxPyTreeCtrl const *)arg1)->GetQuickBestSize();
36716 wxPyEndAllowThreads(__tstate);
36717 if (PyErr_Occurred()) SWIG_fail;
36718 }
36719 {
36720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
36721 }
36722 return resultobj;
36723 fail:
36724 return NULL;
36725 }
36726
36727
36728 SWIGINTERN PyObject *TreeCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36729 PyObject *obj;
36730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
36731 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyTreeCtrl, SWIG_NewClientData(obj));
36732 return SWIG_Py_Void();
36733 }
36734
36735 SWIGINTERN PyObject *TreeCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36736 return SWIG_Python_InitShadowInstance(args);
36737 }
36738
36739 SWIGINTERN int DirDialogDefaultFolderStr_set(PyObject *) {
36740 SWIG_Error(SWIG_AttributeError,"Variable DirDialogDefaultFolderStr is read-only.");
36741 return 1;
36742 }
36743
36744
36745 SWIGINTERN PyObject *DirDialogDefaultFolderStr_get(void) {
36746 PyObject *pyobj = 0;
36747
36748 {
36749 #if wxUSE_UNICODE
36750 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36751 #else
36752 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
36753 #endif
36754 }
36755 return pyobj;
36756 }
36757
36758
36759 SWIGINTERN PyObject *_wrap_new_GenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36760 PyObject *resultobj = 0;
36761 wxWindow *arg1 = (wxWindow *) 0 ;
36762 int arg2 = (int) (int)-1 ;
36763 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
36764 wxString *arg3 = (wxString *) &arg3_defvalue ;
36765 wxPoint const &arg4_defvalue = wxDefaultPosition ;
36766 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
36767 wxSize const &arg5_defvalue = wxDefaultSize ;
36768 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
36769 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36770 wxString const &arg7_defvalue = wxPyEmptyString ;
36771 wxString *arg7 = (wxString *) &arg7_defvalue ;
36772 int arg8 = (int) 0 ;
36773 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
36774 wxString *arg9 = (wxString *) &arg9_defvalue ;
36775 wxGenericDirCtrl *result = 0 ;
36776 void *argp1 = 0 ;
36777 int res1 = 0 ;
36778 int val2 ;
36779 int ecode2 = 0 ;
36780 bool temp3 = false ;
36781 wxPoint temp4 ;
36782 wxSize temp5 ;
36783 long val6 ;
36784 int ecode6 = 0 ;
36785 bool temp7 = false ;
36786 int val8 ;
36787 int ecode8 = 0 ;
36788 bool temp9 = false ;
36789 PyObject * obj0 = 0 ;
36790 PyObject * obj1 = 0 ;
36791 PyObject * obj2 = 0 ;
36792 PyObject * obj3 = 0 ;
36793 PyObject * obj4 = 0 ;
36794 PyObject * obj5 = 0 ;
36795 PyObject * obj6 = 0 ;
36796 PyObject * obj7 = 0 ;
36797 PyObject * obj8 = 0 ;
36798 char * kwnames[] = {
36799 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36800 };
36801
36802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
36803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
36804 if (!SWIG_IsOK(res1)) {
36805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GenericDirCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
36806 }
36807 arg1 = reinterpret_cast< wxWindow * >(argp1);
36808 if (obj1) {
36809 ecode2 = SWIG_AsVal_int(obj1, &val2);
36810 if (!SWIG_IsOK(ecode2)) {
36811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_GenericDirCtrl" "', expected argument " "2"" of type '" "int""'");
36812 }
36813 arg2 = static_cast< int >(val2);
36814 }
36815 if (obj2) {
36816 {
36817 arg3 = wxString_in_helper(obj2);
36818 if (arg3 == NULL) SWIG_fail;
36819 temp3 = true;
36820 }
36821 }
36822 if (obj3) {
36823 {
36824 arg4 = &temp4;
36825 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
36826 }
36827 }
36828 if (obj4) {
36829 {
36830 arg5 = &temp5;
36831 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
36832 }
36833 }
36834 if (obj5) {
36835 ecode6 = SWIG_AsVal_long(obj5, &val6);
36836 if (!SWIG_IsOK(ecode6)) {
36837 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_GenericDirCtrl" "', expected argument " "6"" of type '" "long""'");
36838 }
36839 arg6 = static_cast< long >(val6);
36840 }
36841 if (obj6) {
36842 {
36843 arg7 = wxString_in_helper(obj6);
36844 if (arg7 == NULL) SWIG_fail;
36845 temp7 = true;
36846 }
36847 }
36848 if (obj7) {
36849 ecode8 = SWIG_AsVal_int(obj7, &val8);
36850 if (!SWIG_IsOK(ecode8)) {
36851 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "new_GenericDirCtrl" "', expected argument " "8"" of type '" "int""'");
36852 }
36853 arg8 = static_cast< int >(val8);
36854 }
36855 if (obj8) {
36856 {
36857 arg9 = wxString_in_helper(obj8);
36858 if (arg9 == NULL) SWIG_fail;
36859 temp9 = true;
36860 }
36861 }
36862 {
36863 if (!wxPyCheckForApp()) SWIG_fail;
36864 PyThreadState* __tstate = wxPyBeginAllowThreads();
36865 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
36866 wxPyEndAllowThreads(__tstate);
36867 if (PyErr_Occurred()) SWIG_fail;
36868 }
36869 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_NEW | 0 );
36870 {
36871 if (temp3)
36872 delete arg3;
36873 }
36874 {
36875 if (temp7)
36876 delete arg7;
36877 }
36878 {
36879 if (temp9)
36880 delete arg9;
36881 }
36882 return resultobj;
36883 fail:
36884 {
36885 if (temp3)
36886 delete arg3;
36887 }
36888 {
36889 if (temp7)
36890 delete arg7;
36891 }
36892 {
36893 if (temp9)
36894 delete arg9;
36895 }
36896 return NULL;
36897 }
36898
36899
36900 SWIGINTERN PyObject *_wrap_new_PreGenericDirCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
36901 PyObject *resultobj = 0;
36902 wxGenericDirCtrl *result = 0 ;
36903
36904 if (!SWIG_Python_UnpackTuple(args,"new_PreGenericDirCtrl",0,0,0)) SWIG_fail;
36905 {
36906 if (!wxPyCheckForApp()) SWIG_fail;
36907 PyThreadState* __tstate = wxPyBeginAllowThreads();
36908 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
36909 wxPyEndAllowThreads(__tstate);
36910 if (PyErr_Occurred()) SWIG_fail;
36911 }
36912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDirCtrl, SWIG_POINTER_OWN | 0 );
36913 return resultobj;
36914 fail:
36915 return NULL;
36916 }
36917
36918
36919 SWIGINTERN PyObject *_wrap_GenericDirCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36920 PyObject *resultobj = 0;
36921 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
36922 wxWindow *arg2 = (wxWindow *) 0 ;
36923 int arg3 = (int) (int)-1 ;
36924 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
36925 wxString *arg4 = (wxString *) &arg4_defvalue ;
36926 wxPoint const &arg5_defvalue = wxDefaultPosition ;
36927 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
36928 wxSize const &arg6_defvalue = wxDefaultSize ;
36929 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
36930 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
36931 wxString const &arg8_defvalue = wxPyEmptyString ;
36932 wxString *arg8 = (wxString *) &arg8_defvalue ;
36933 int arg9 = (int) 0 ;
36934 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
36935 wxString *arg10 = (wxString *) &arg10_defvalue ;
36936 bool result;
36937 void *argp1 = 0 ;
36938 int res1 = 0 ;
36939 void *argp2 = 0 ;
36940 int res2 = 0 ;
36941 int val3 ;
36942 int ecode3 = 0 ;
36943 bool temp4 = false ;
36944 wxPoint temp5 ;
36945 wxSize temp6 ;
36946 long val7 ;
36947 int ecode7 = 0 ;
36948 bool temp8 = false ;
36949 int val9 ;
36950 int ecode9 = 0 ;
36951 bool temp10 = false ;
36952 PyObject * obj0 = 0 ;
36953 PyObject * obj1 = 0 ;
36954 PyObject * obj2 = 0 ;
36955 PyObject * obj3 = 0 ;
36956 PyObject * obj4 = 0 ;
36957 PyObject * obj5 = 0 ;
36958 PyObject * obj6 = 0 ;
36959 PyObject * obj7 = 0 ;
36960 PyObject * obj8 = 0 ;
36961 PyObject * obj9 = 0 ;
36962 char * kwnames[] = {
36963 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
36964 };
36965
36966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) SWIG_fail;
36967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
36968 if (!SWIG_IsOK(res1)) {
36969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_Create" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
36970 }
36971 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
36972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
36973 if (!SWIG_IsOK(res2)) {
36974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
36975 }
36976 arg2 = reinterpret_cast< wxWindow * >(argp2);
36977 if (obj2) {
36978 ecode3 = SWIG_AsVal_int(obj2, &val3);
36979 if (!SWIG_IsOK(ecode3)) {
36980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GenericDirCtrl_Create" "', expected argument " "3"" of type '" "int""'");
36981 }
36982 arg3 = static_cast< int >(val3);
36983 }
36984 if (obj3) {
36985 {
36986 arg4 = wxString_in_helper(obj3);
36987 if (arg4 == NULL) SWIG_fail;
36988 temp4 = true;
36989 }
36990 }
36991 if (obj4) {
36992 {
36993 arg5 = &temp5;
36994 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
36995 }
36996 }
36997 if (obj5) {
36998 {
36999 arg6 = &temp6;
37000 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
37001 }
37002 }
37003 if (obj6) {
37004 ecode7 = SWIG_AsVal_long(obj6, &val7);
37005 if (!SWIG_IsOK(ecode7)) {
37006 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GenericDirCtrl_Create" "', expected argument " "7"" of type '" "long""'");
37007 }
37008 arg7 = static_cast< long >(val7);
37009 }
37010 if (obj7) {
37011 {
37012 arg8 = wxString_in_helper(obj7);
37013 if (arg8 == NULL) SWIG_fail;
37014 temp8 = true;
37015 }
37016 }
37017 if (obj8) {
37018 ecode9 = SWIG_AsVal_int(obj8, &val9);
37019 if (!SWIG_IsOK(ecode9)) {
37020 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "GenericDirCtrl_Create" "', expected argument " "9"" of type '" "int""'");
37021 }
37022 arg9 = static_cast< int >(val9);
37023 }
37024 if (obj9) {
37025 {
37026 arg10 = wxString_in_helper(obj9);
37027 if (arg10 == NULL) SWIG_fail;
37028 temp10 = true;
37029 }
37030 }
37031 {
37032 PyThreadState* __tstate = wxPyBeginAllowThreads();
37033 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
37034 wxPyEndAllowThreads(__tstate);
37035 if (PyErr_Occurred()) SWIG_fail;
37036 }
37037 {
37038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37039 }
37040 {
37041 if (temp4)
37042 delete arg4;
37043 }
37044 {
37045 if (temp8)
37046 delete arg8;
37047 }
37048 {
37049 if (temp10)
37050 delete arg10;
37051 }
37052 return resultobj;
37053 fail:
37054 {
37055 if (temp4)
37056 delete arg4;
37057 }
37058 {
37059 if (temp8)
37060 delete arg8;
37061 }
37062 {
37063 if (temp10)
37064 delete arg10;
37065 }
37066 return NULL;
37067 }
37068
37069
37070 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37071 PyObject *resultobj = 0;
37072 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37073 wxString *arg2 = 0 ;
37074 bool result;
37075 void *argp1 = 0 ;
37076 int res1 = 0 ;
37077 bool temp2 = false ;
37078 PyObject * obj0 = 0 ;
37079 PyObject * obj1 = 0 ;
37080 char * kwnames[] = {
37081 (char *) "self",(char *) "path", NULL
37082 };
37083
37084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) SWIG_fail;
37085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37086 if (!SWIG_IsOK(res1)) {
37087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ExpandPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37088 }
37089 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37090 {
37091 arg2 = wxString_in_helper(obj1);
37092 if (arg2 == NULL) SWIG_fail;
37093 temp2 = true;
37094 }
37095 {
37096 PyThreadState* __tstate = wxPyBeginAllowThreads();
37097 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
37098 wxPyEndAllowThreads(__tstate);
37099 if (PyErr_Occurred()) SWIG_fail;
37100 }
37101 {
37102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37103 }
37104 {
37105 if (temp2)
37106 delete arg2;
37107 }
37108 return resultobj;
37109 fail:
37110 {
37111 if (temp2)
37112 delete arg2;
37113 }
37114 return NULL;
37115 }
37116
37117
37118 SWIGINTERN PyObject *_wrap_GenericDirCtrl_CollapsePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37119 PyObject *resultobj = 0;
37120 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37121 wxString *arg2 = 0 ;
37122 bool result;
37123 void *argp1 = 0 ;
37124 int res1 = 0 ;
37125 bool temp2 = false ;
37126 PyObject * obj0 = 0 ;
37127 PyObject * obj1 = 0 ;
37128 char * kwnames[] = {
37129 (char *) "self",(char *) "path", NULL
37130 };
37131
37132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_CollapsePath",kwnames,&obj0,&obj1)) SWIG_fail;
37133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37134 if (!SWIG_IsOK(res1)) {
37135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_CollapsePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37136 }
37137 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37138 {
37139 arg2 = wxString_in_helper(obj1);
37140 if (arg2 == NULL) SWIG_fail;
37141 temp2 = true;
37142 }
37143 {
37144 PyThreadState* __tstate = wxPyBeginAllowThreads();
37145 result = (bool)(arg1)->CollapsePath((wxString const &)*arg2);
37146 wxPyEndAllowThreads(__tstate);
37147 if (PyErr_Occurred()) SWIG_fail;
37148 }
37149 {
37150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37151 }
37152 {
37153 if (temp2)
37154 delete arg2;
37155 }
37156 return resultobj;
37157 fail:
37158 {
37159 if (temp2)
37160 delete arg2;
37161 }
37162 return NULL;
37163 }
37164
37165
37166 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37167 PyObject *resultobj = 0;
37168 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37169 wxString result;
37170 void *argp1 = 0 ;
37171 int res1 = 0 ;
37172 PyObject *swig_obj[1] ;
37173
37174 if (!args) SWIG_fail;
37175 swig_obj[0] = args;
37176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37177 if (!SWIG_IsOK(res1)) {
37178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37179 }
37180 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37181 {
37182 PyThreadState* __tstate = wxPyBeginAllowThreads();
37183 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
37184 wxPyEndAllowThreads(__tstate);
37185 if (PyErr_Occurred()) SWIG_fail;
37186 }
37187 {
37188 #if wxUSE_UNICODE
37189 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37190 #else
37191 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37192 #endif
37193 }
37194 return resultobj;
37195 fail:
37196 return NULL;
37197 }
37198
37199
37200 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37201 PyObject *resultobj = 0;
37202 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37203 wxString *arg2 = 0 ;
37204 void *argp1 = 0 ;
37205 int res1 = 0 ;
37206 bool temp2 = false ;
37207 PyObject * obj0 = 0 ;
37208 PyObject * obj1 = 0 ;
37209 char * kwnames[] = {
37210 (char *) "self",(char *) "path", NULL
37211 };
37212
37213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) SWIG_fail;
37214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37215 if (!SWIG_IsOK(res1)) {
37216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetDefaultPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37217 }
37218 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37219 {
37220 arg2 = wxString_in_helper(obj1);
37221 if (arg2 == NULL) SWIG_fail;
37222 temp2 = true;
37223 }
37224 {
37225 PyThreadState* __tstate = wxPyBeginAllowThreads();
37226 (arg1)->SetDefaultPath((wxString const &)*arg2);
37227 wxPyEndAllowThreads(__tstate);
37228 if (PyErr_Occurred()) SWIG_fail;
37229 }
37230 resultobj = SWIG_Py_Void();
37231 {
37232 if (temp2)
37233 delete arg2;
37234 }
37235 return resultobj;
37236 fail:
37237 {
37238 if (temp2)
37239 delete arg2;
37240 }
37241 return NULL;
37242 }
37243
37244
37245 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37246 PyObject *resultobj = 0;
37247 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37248 wxString result;
37249 void *argp1 = 0 ;
37250 int res1 = 0 ;
37251 PyObject *swig_obj[1] ;
37252
37253 if (!args) SWIG_fail;
37254 swig_obj[0] = args;
37255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37256 if (!SWIG_IsOK(res1)) {
37257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37258 }
37259 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37260 {
37261 PyThreadState* __tstate = wxPyBeginAllowThreads();
37262 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
37263 wxPyEndAllowThreads(__tstate);
37264 if (PyErr_Occurred()) SWIG_fail;
37265 }
37266 {
37267 #if wxUSE_UNICODE
37268 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37269 #else
37270 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37271 #endif
37272 }
37273 return resultobj;
37274 fail:
37275 return NULL;
37276 }
37277
37278
37279 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37280 PyObject *resultobj = 0;
37281 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37282 wxString result;
37283 void *argp1 = 0 ;
37284 int res1 = 0 ;
37285 PyObject *swig_obj[1] ;
37286
37287 if (!args) SWIG_fail;
37288 swig_obj[0] = args;
37289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37290 if (!SWIG_IsOK(res1)) {
37291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilePath" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37292 }
37293 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37294 {
37295 PyThreadState* __tstate = wxPyBeginAllowThreads();
37296 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
37297 wxPyEndAllowThreads(__tstate);
37298 if (PyErr_Occurred()) SWIG_fail;
37299 }
37300 {
37301 #if wxUSE_UNICODE
37302 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37303 #else
37304 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37305 #endif
37306 }
37307 return resultobj;
37308 fail:
37309 return NULL;
37310 }
37311
37312
37313 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37314 PyObject *resultobj = 0;
37315 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37316 wxString *arg2 = 0 ;
37317 void *argp1 = 0 ;
37318 int res1 = 0 ;
37319 bool temp2 = false ;
37320 PyObject * obj0 = 0 ;
37321 PyObject * obj1 = 0 ;
37322 char * kwnames[] = {
37323 (char *) "self",(char *) "path", NULL
37324 };
37325
37326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) SWIG_fail;
37327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37328 if (!SWIG_IsOK(res1)) {
37329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetPath" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37330 }
37331 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37332 {
37333 arg2 = wxString_in_helper(obj1);
37334 if (arg2 == NULL) SWIG_fail;
37335 temp2 = true;
37336 }
37337 {
37338 PyThreadState* __tstate = wxPyBeginAllowThreads();
37339 (arg1)->SetPath((wxString const &)*arg2);
37340 wxPyEndAllowThreads(__tstate);
37341 if (PyErr_Occurred()) SWIG_fail;
37342 }
37343 resultobj = SWIG_Py_Void();
37344 {
37345 if (temp2)
37346 delete arg2;
37347 }
37348 return resultobj;
37349 fail:
37350 {
37351 if (temp2)
37352 delete arg2;
37353 }
37354 return NULL;
37355 }
37356
37357
37358 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37359 PyObject *resultobj = 0;
37360 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37361 bool arg2 ;
37362 void *argp1 = 0 ;
37363 int res1 = 0 ;
37364 bool val2 ;
37365 int ecode2 = 0 ;
37366 PyObject * obj0 = 0 ;
37367 PyObject * obj1 = 0 ;
37368 char * kwnames[] = {
37369 (char *) "self",(char *) "show", NULL
37370 };
37371
37372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) SWIG_fail;
37373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37374 if (!SWIG_IsOK(res1)) {
37375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37376 }
37377 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37378 ecode2 = SWIG_AsVal_bool(obj1, &val2);
37379 if (!SWIG_IsOK(ecode2)) {
37380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_ShowHidden" "', expected argument " "2"" of type '" "bool""'");
37381 }
37382 arg2 = static_cast< bool >(val2);
37383 {
37384 PyThreadState* __tstate = wxPyBeginAllowThreads();
37385 (arg1)->ShowHidden(arg2);
37386 wxPyEndAllowThreads(__tstate);
37387 if (PyErr_Occurred()) SWIG_fail;
37388 }
37389 resultobj = SWIG_Py_Void();
37390 return resultobj;
37391 fail:
37392 return NULL;
37393 }
37394
37395
37396 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37397 PyObject *resultobj = 0;
37398 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37399 bool result;
37400 void *argp1 = 0 ;
37401 int res1 = 0 ;
37402 PyObject *swig_obj[1] ;
37403
37404 if (!args) SWIG_fail;
37405 swig_obj[0] = args;
37406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37407 if (!SWIG_IsOK(res1)) {
37408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetShowHidden" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37409 }
37410 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37411 {
37412 PyThreadState* __tstate = wxPyBeginAllowThreads();
37413 result = (bool)(arg1)->GetShowHidden();
37414 wxPyEndAllowThreads(__tstate);
37415 if (PyErr_Occurred()) SWIG_fail;
37416 }
37417 {
37418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37419 }
37420 return resultobj;
37421 fail:
37422 return NULL;
37423 }
37424
37425
37426 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37427 PyObject *resultobj = 0;
37428 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37429 wxString result;
37430 void *argp1 = 0 ;
37431 int res1 = 0 ;
37432 PyObject *swig_obj[1] ;
37433
37434 if (!args) SWIG_fail;
37435 swig_obj[0] = args;
37436 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37437 if (!SWIG_IsOK(res1)) {
37438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37439 }
37440 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37441 {
37442 PyThreadState* __tstate = wxPyBeginAllowThreads();
37443 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
37444 wxPyEndAllowThreads(__tstate);
37445 if (PyErr_Occurred()) SWIG_fail;
37446 }
37447 {
37448 #if wxUSE_UNICODE
37449 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
37450 #else
37451 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
37452 #endif
37453 }
37454 return resultobj;
37455 fail:
37456 return NULL;
37457 }
37458
37459
37460 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37461 PyObject *resultobj = 0;
37462 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37463 wxString *arg2 = 0 ;
37464 void *argp1 = 0 ;
37465 int res1 = 0 ;
37466 bool temp2 = false ;
37467 PyObject * obj0 = 0 ;
37468 PyObject * obj1 = 0 ;
37469 char * kwnames[] = {
37470 (char *) "self",(char *) "filter", NULL
37471 };
37472
37473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) SWIG_fail;
37474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37475 if (!SWIG_IsOK(res1)) {
37476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilter" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37477 }
37478 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37479 {
37480 arg2 = wxString_in_helper(obj1);
37481 if (arg2 == NULL) SWIG_fail;
37482 temp2 = true;
37483 }
37484 {
37485 PyThreadState* __tstate = wxPyBeginAllowThreads();
37486 (arg1)->SetFilter((wxString const &)*arg2);
37487 wxPyEndAllowThreads(__tstate);
37488 if (PyErr_Occurred()) SWIG_fail;
37489 }
37490 resultobj = SWIG_Py_Void();
37491 {
37492 if (temp2)
37493 delete arg2;
37494 }
37495 return resultobj;
37496 fail:
37497 {
37498 if (temp2)
37499 delete arg2;
37500 }
37501 return NULL;
37502 }
37503
37504
37505 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37506 PyObject *resultobj = 0;
37507 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37508 int result;
37509 void *argp1 = 0 ;
37510 int res1 = 0 ;
37511 PyObject *swig_obj[1] ;
37512
37513 if (!args) SWIG_fail;
37514 swig_obj[0] = args;
37515 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37516 if (!SWIG_IsOK(res1)) {
37517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37518 }
37519 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37520 {
37521 PyThreadState* __tstate = wxPyBeginAllowThreads();
37522 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
37523 wxPyEndAllowThreads(__tstate);
37524 if (PyErr_Occurred()) SWIG_fail;
37525 }
37526 resultobj = SWIG_From_int(static_cast< int >(result));
37527 return resultobj;
37528 fail:
37529 return NULL;
37530 }
37531
37532
37533 SWIGINTERN PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37534 PyObject *resultobj = 0;
37535 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37536 int arg2 ;
37537 void *argp1 = 0 ;
37538 int res1 = 0 ;
37539 int val2 ;
37540 int ecode2 = 0 ;
37541 PyObject * obj0 = 0 ;
37542 PyObject * obj1 = 0 ;
37543 char * kwnames[] = {
37544 (char *) "self",(char *) "n", NULL
37545 };
37546
37547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) SWIG_fail;
37548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37549 if (!SWIG_IsOK(res1)) {
37550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37551 }
37552 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37553 ecode2 = SWIG_AsVal_int(obj1, &val2);
37554 if (!SWIG_IsOK(ecode2)) {
37555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GenericDirCtrl_SetFilterIndex" "', expected argument " "2"" of type '" "int""'");
37556 }
37557 arg2 = static_cast< int >(val2);
37558 {
37559 PyThreadState* __tstate = wxPyBeginAllowThreads();
37560 (arg1)->SetFilterIndex(arg2);
37561 wxPyEndAllowThreads(__tstate);
37562 if (PyErr_Occurred()) SWIG_fail;
37563 }
37564 resultobj = SWIG_Py_Void();
37565 return resultobj;
37566 fail:
37567 return NULL;
37568 }
37569
37570
37571 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37572 PyObject *resultobj = 0;
37573 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37574 wxTreeItemId result;
37575 void *argp1 = 0 ;
37576 int res1 = 0 ;
37577 PyObject *swig_obj[1] ;
37578
37579 if (!args) SWIG_fail;
37580 swig_obj[0] = args;
37581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37582 if (!SWIG_IsOK(res1)) {
37583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetRootId" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37584 }
37585 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37586 {
37587 PyThreadState* __tstate = wxPyBeginAllowThreads();
37588 result = (arg1)->GetRootId();
37589 wxPyEndAllowThreads(__tstate);
37590 if (PyErr_Occurred()) SWIG_fail;
37591 }
37592 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37593 return resultobj;
37594 fail:
37595 return NULL;
37596 }
37597
37598
37599 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37600 PyObject *resultobj = 0;
37601 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37602 wxPyTreeCtrl *result = 0 ;
37603 void *argp1 = 0 ;
37604 int res1 = 0 ;
37605 PyObject *swig_obj[1] ;
37606
37607 if (!args) SWIG_fail;
37608 swig_obj[0] = args;
37609 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37610 if (!SWIG_IsOK(res1)) {
37611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetTreeCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37612 }
37613 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37614 {
37615 PyThreadState* __tstate = wxPyBeginAllowThreads();
37616 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
37617 wxPyEndAllowThreads(__tstate);
37618 if (PyErr_Occurred()) SWIG_fail;
37619 }
37620 {
37621 resultobj = wxPyMake_wxObject(result, 0);
37622 }
37623 return resultobj;
37624 fail:
37625 return NULL;
37626 }
37627
37628
37629 SWIGINTERN PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37630 PyObject *resultobj = 0;
37631 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37632 wxDirFilterListCtrl *result = 0 ;
37633 void *argp1 = 0 ;
37634 int res1 = 0 ;
37635 PyObject *swig_obj[1] ;
37636
37637 if (!args) SWIG_fail;
37638 swig_obj[0] = args;
37639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37640 if (!SWIG_IsOK(res1)) {
37641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_GetFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl const *""'");
37642 }
37643 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37644 {
37645 PyThreadState* __tstate = wxPyBeginAllowThreads();
37646 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
37647 wxPyEndAllowThreads(__tstate);
37648 if (PyErr_Occurred()) SWIG_fail;
37649 }
37650 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37651 return resultobj;
37652 fail:
37653 return NULL;
37654 }
37655
37656
37657 SWIGINTERN PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37658 PyObject *resultobj = 0;
37659 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37660 wxTreeItemId arg2 ;
37661 wxString *arg3 = 0 ;
37662 bool *arg4 = 0 ;
37663 wxTreeItemId result;
37664 void *argp1 = 0 ;
37665 int res1 = 0 ;
37666 void *argp2 ;
37667 int res2 = 0 ;
37668 bool temp3 = false ;
37669 bool temp4 ;
37670 int res4 = SWIG_TMPOBJ ;
37671 PyObject * obj0 = 0 ;
37672 PyObject * obj1 = 0 ;
37673 PyObject * obj2 = 0 ;
37674 char * kwnames[] = {
37675 (char *) "self",(char *) "parentId",(char *) "path", NULL
37676 };
37677
37678 arg4 = &temp4;
37679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37681 if (!SWIG_IsOK(res1)) {
37682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37683 }
37684 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37685 {
37686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 | 0);
37687 if (!SWIG_IsOK(res2)) {
37688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37689 }
37690 if (!argp2) {
37691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GenericDirCtrl_FindChild" "', expected argument " "2"" of type '" "wxTreeItemId""'");
37692 } else {
37693 wxTreeItemId * temp = reinterpret_cast< wxTreeItemId * >(argp2);
37694 arg2 = *temp;
37695 if (SWIG_IsNewObj(res2)) delete temp;
37696 }
37697 }
37698 {
37699 arg3 = wxString_in_helper(obj2);
37700 if (arg3 == NULL) SWIG_fail;
37701 temp3 = true;
37702 }
37703 {
37704 PyThreadState* __tstate = wxPyBeginAllowThreads();
37705 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
37706 wxPyEndAllowThreads(__tstate);
37707 if (PyErr_Occurred()) SWIG_fail;
37708 }
37709 resultobj = SWIG_NewPointerObj((new wxTreeItemId(static_cast< const wxTreeItemId& >(result))), SWIGTYPE_p_wxTreeItemId, SWIG_POINTER_OWN | 0 );
37710 if (SWIG_IsTmpObj(res4)) {
37711 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_bool((*arg4)));
37712 } else {
37713 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
37714 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, new_flags));
37715 }
37716 {
37717 if (temp3)
37718 delete arg3;
37719 }
37720 return resultobj;
37721 fail:
37722 {
37723 if (temp3)
37724 delete arg3;
37725 }
37726 return NULL;
37727 }
37728
37729
37730 SWIGINTERN PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37731 PyObject *resultobj = 0;
37732 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37733 void *argp1 = 0 ;
37734 int res1 = 0 ;
37735 PyObject *swig_obj[1] ;
37736
37737 if (!args) SWIG_fail;
37738 swig_obj[0] = args;
37739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37740 if (!SWIG_IsOK(res1)) {
37741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_DoResize" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37742 }
37743 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37744 {
37745 PyThreadState* __tstate = wxPyBeginAllowThreads();
37746 (arg1)->DoResize();
37747 wxPyEndAllowThreads(__tstate);
37748 if (PyErr_Occurred()) SWIG_fail;
37749 }
37750 resultobj = SWIG_Py_Void();
37751 return resultobj;
37752 fail:
37753 return NULL;
37754 }
37755
37756
37757 SWIGINTERN PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37758 PyObject *resultobj = 0;
37759 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37760 void *argp1 = 0 ;
37761 int res1 = 0 ;
37762 PyObject *swig_obj[1] ;
37763
37764 if (!args) SWIG_fail;
37765 swig_obj[0] = args;
37766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37767 if (!SWIG_IsOK(res1)) {
37768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GenericDirCtrl_ReCreateTree" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37769 }
37770 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37771 {
37772 PyThreadState* __tstate = wxPyBeginAllowThreads();
37773 (arg1)->ReCreateTree();
37774 wxPyEndAllowThreads(__tstate);
37775 if (PyErr_Occurred()) SWIG_fail;
37776 }
37777 resultobj = SWIG_Py_Void();
37778 return resultobj;
37779 fail:
37780 return NULL;
37781 }
37782
37783
37784 SWIGINTERN PyObject *GenericDirCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37785 PyObject *obj;
37786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37787 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDirCtrl, SWIG_NewClientData(obj));
37788 return SWIG_Py_Void();
37789 }
37790
37791 SWIGINTERN PyObject *GenericDirCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37792 return SWIG_Python_InitShadowInstance(args);
37793 }
37794
37795 SWIGINTERN PyObject *_wrap_new_DirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37796 PyObject *resultobj = 0;
37797 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
37798 int arg2 = (int) (int)-1 ;
37799 wxPoint const &arg3_defvalue = wxDefaultPosition ;
37800 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
37801 wxSize const &arg4_defvalue = wxDefaultSize ;
37802 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
37803 long arg5 = (long) 0 ;
37804 wxDirFilterListCtrl *result = 0 ;
37805 void *argp1 = 0 ;
37806 int res1 = 0 ;
37807 int val2 ;
37808 int ecode2 = 0 ;
37809 wxPoint temp3 ;
37810 wxSize temp4 ;
37811 long val5 ;
37812 int ecode5 = 0 ;
37813 PyObject * obj0 = 0 ;
37814 PyObject * obj1 = 0 ;
37815 PyObject * obj2 = 0 ;
37816 PyObject * obj3 = 0 ;
37817 PyObject * obj4 = 0 ;
37818 char * kwnames[] = {
37819 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37820 };
37821
37822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37824 if (!SWIG_IsOK(res1)) {
37825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DirFilterListCtrl" "', expected argument " "1"" of type '" "wxGenericDirCtrl *""'");
37826 }
37827 arg1 = reinterpret_cast< wxGenericDirCtrl * >(argp1);
37828 if (obj1) {
37829 ecode2 = SWIG_AsVal_int(obj1, &val2);
37830 if (!SWIG_IsOK(ecode2)) {
37831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DirFilterListCtrl" "', expected argument " "2"" of type '" "int""'");
37832 }
37833 arg2 = static_cast< int >(val2);
37834 }
37835 if (obj2) {
37836 {
37837 arg3 = &temp3;
37838 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
37839 }
37840 }
37841 if (obj3) {
37842 {
37843 arg4 = &temp4;
37844 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
37845 }
37846 }
37847 if (obj4) {
37848 ecode5 = SWIG_AsVal_long(obj4, &val5);
37849 if (!SWIG_IsOK(ecode5)) {
37850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DirFilterListCtrl" "', expected argument " "5"" of type '" "long""'");
37851 }
37852 arg5 = static_cast< long >(val5);
37853 }
37854 {
37855 if (!wxPyCheckForApp()) SWIG_fail;
37856 PyThreadState* __tstate = wxPyBeginAllowThreads();
37857 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
37858 wxPyEndAllowThreads(__tstate);
37859 if (PyErr_Occurred()) SWIG_fail;
37860 }
37861 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_NEW | 0 );
37862 return resultobj;
37863 fail:
37864 return NULL;
37865 }
37866
37867
37868 SWIGINTERN PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37869 PyObject *resultobj = 0;
37870 wxDirFilterListCtrl *result = 0 ;
37871
37872 if (!SWIG_Python_UnpackTuple(args,"new_PreDirFilterListCtrl",0,0,0)) SWIG_fail;
37873 {
37874 if (!wxPyCheckForApp()) SWIG_fail;
37875 PyThreadState* __tstate = wxPyBeginAllowThreads();
37876 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
37877 wxPyEndAllowThreads(__tstate);
37878 if (PyErr_Occurred()) SWIG_fail;
37879 }
37880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDirFilterListCtrl, SWIG_POINTER_OWN | 0 );
37881 return resultobj;
37882 fail:
37883 return NULL;
37884 }
37885
37886
37887 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37888 PyObject *resultobj = 0;
37889 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37890 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
37891 int arg3 = (int) (int)-1 ;
37892 wxPoint const &arg4_defvalue = wxDefaultPosition ;
37893 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
37894 wxSize const &arg5_defvalue = wxDefaultSize ;
37895 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
37896 long arg6 = (long) 0 ;
37897 bool result;
37898 void *argp1 = 0 ;
37899 int res1 = 0 ;
37900 void *argp2 = 0 ;
37901 int res2 = 0 ;
37902 int val3 ;
37903 int ecode3 = 0 ;
37904 wxPoint temp4 ;
37905 wxSize temp5 ;
37906 long val6 ;
37907 int ecode6 = 0 ;
37908 PyObject * obj0 = 0 ;
37909 PyObject * obj1 = 0 ;
37910 PyObject * obj2 = 0 ;
37911 PyObject * obj3 = 0 ;
37912 PyObject * obj4 = 0 ;
37913 PyObject * obj5 = 0 ;
37914 char * kwnames[] = {
37915 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
37916 };
37917
37918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37920 if (!SWIG_IsOK(res1)) {
37921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_Create" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37922 }
37923 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37924 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGenericDirCtrl, 0 | 0 );
37925 if (!SWIG_IsOK(res2)) {
37926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DirFilterListCtrl_Create" "', expected argument " "2"" of type '" "wxGenericDirCtrl *""'");
37927 }
37928 arg2 = reinterpret_cast< wxGenericDirCtrl * >(argp2);
37929 if (obj2) {
37930 ecode3 = SWIG_AsVal_int(obj2, &val3);
37931 if (!SWIG_IsOK(ecode3)) {
37932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_Create" "', expected argument " "3"" of type '" "int""'");
37933 }
37934 arg3 = static_cast< int >(val3);
37935 }
37936 if (obj3) {
37937 {
37938 arg4 = &temp4;
37939 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
37940 }
37941 }
37942 if (obj4) {
37943 {
37944 arg5 = &temp5;
37945 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
37946 }
37947 }
37948 if (obj5) {
37949 ecode6 = SWIG_AsVal_long(obj5, &val6);
37950 if (!SWIG_IsOK(ecode6)) {
37951 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DirFilterListCtrl_Create" "', expected argument " "6"" of type '" "long""'");
37952 }
37953 arg6 = static_cast< long >(val6);
37954 }
37955 {
37956 PyThreadState* __tstate = wxPyBeginAllowThreads();
37957 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
37958 wxPyEndAllowThreads(__tstate);
37959 if (PyErr_Occurred()) SWIG_fail;
37960 }
37961 {
37962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
37963 }
37964 return resultobj;
37965 fail:
37966 return NULL;
37967 }
37968
37969
37970 SWIGINTERN PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37971 PyObject *resultobj = 0;
37972 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
37973 wxString *arg2 = 0 ;
37974 int arg3 ;
37975 void *argp1 = 0 ;
37976 int res1 = 0 ;
37977 bool temp2 = false ;
37978 int val3 ;
37979 int ecode3 = 0 ;
37980 PyObject * obj0 = 0 ;
37981 PyObject * obj1 = 0 ;
37982 PyObject * obj2 = 0 ;
37983 char * kwnames[] = {
37984 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
37985 };
37986
37987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
37988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDirFilterListCtrl, 0 | 0 );
37989 if (!SWIG_IsOK(res1)) {
37990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "1"" of type '" "wxDirFilterListCtrl *""'");
37991 }
37992 arg1 = reinterpret_cast< wxDirFilterListCtrl * >(argp1);
37993 {
37994 arg2 = wxString_in_helper(obj1);
37995 if (arg2 == NULL) SWIG_fail;
37996 temp2 = true;
37997 }
37998 ecode3 = SWIG_AsVal_int(obj2, &val3);
37999 if (!SWIG_IsOK(ecode3)) {
38000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DirFilterListCtrl_FillFilterList" "', expected argument " "3"" of type '" "int""'");
38001 }
38002 arg3 = static_cast< int >(val3);
38003 {
38004 PyThreadState* __tstate = wxPyBeginAllowThreads();
38005 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
38006 wxPyEndAllowThreads(__tstate);
38007 if (PyErr_Occurred()) SWIG_fail;
38008 }
38009 resultobj = SWIG_Py_Void();
38010 {
38011 if (temp2)
38012 delete arg2;
38013 }
38014 return resultobj;
38015 fail:
38016 {
38017 if (temp2)
38018 delete arg2;
38019 }
38020 return NULL;
38021 }
38022
38023
38024 SWIGINTERN PyObject *DirFilterListCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38025 PyObject *obj;
38026 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38027 SWIG_TypeNewClientData(SWIGTYPE_p_wxDirFilterListCtrl, SWIG_NewClientData(obj));
38028 return SWIG_Py_Void();
38029 }
38030
38031 SWIGINTERN PyObject *DirFilterListCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38032 return SWIG_Python_InitShadowInstance(args);
38033 }
38034
38035 SWIGINTERN PyObject *_wrap_new_PyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38036 PyObject *resultobj = 0;
38037 wxWindow *arg1 = (wxWindow *) 0 ;
38038 int arg2 = (int) (int)-1 ;
38039 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38040 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38041 wxSize const &arg4_defvalue = wxDefaultSize ;
38042 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
38043 long arg5 = (long) 0 ;
38044 wxValidator const &arg6_defvalue = wxDefaultValidator ;
38045 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
38046 wxString const &arg7_defvalue = wxPyControlNameStr ;
38047 wxString *arg7 = (wxString *) &arg7_defvalue ;
38048 wxPyControl *result = 0 ;
38049 void *argp1 = 0 ;
38050 int res1 = 0 ;
38051 int val2 ;
38052 int ecode2 = 0 ;
38053 wxPoint temp3 ;
38054 wxSize temp4 ;
38055 long val5 ;
38056 int ecode5 = 0 ;
38057 void *argp6 = 0 ;
38058 int res6 = 0 ;
38059 bool temp7 = false ;
38060 PyObject * obj0 = 0 ;
38061 PyObject * obj1 = 0 ;
38062 PyObject * obj2 = 0 ;
38063 PyObject * obj3 = 0 ;
38064 PyObject * obj4 = 0 ;
38065 PyObject * obj5 = 0 ;
38066 PyObject * obj6 = 0 ;
38067 char * kwnames[] = {
38068 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
38069 };
38070
38071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
38072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
38073 if (!SWIG_IsOK(res1)) {
38074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PyControl" "', expected argument " "1"" of type '" "wxWindow *""'");
38075 }
38076 arg1 = reinterpret_cast< wxWindow * >(argp1);
38077 if (obj1) {
38078 ecode2 = SWIG_AsVal_int(obj1, &val2);
38079 if (!SWIG_IsOK(ecode2)) {
38080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyControl" "', expected argument " "2"" of type '" "int""'");
38081 }
38082 arg2 = static_cast< int >(val2);
38083 }
38084 if (obj2) {
38085 {
38086 arg3 = &temp3;
38087 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38088 }
38089 }
38090 if (obj3) {
38091 {
38092 arg4 = &temp4;
38093 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
38094 }
38095 }
38096 if (obj4) {
38097 ecode5 = SWIG_AsVal_long(obj4, &val5);
38098 if (!SWIG_IsOK(ecode5)) {
38099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_PyControl" "', expected argument " "5"" of type '" "long""'");
38100 }
38101 arg5 = static_cast< long >(val5);
38102 }
38103 if (obj5) {
38104 res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxValidator, 0 | 0);
38105 if (!SWIG_IsOK(res6)) {
38106 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38107 }
38108 if (!argp6) {
38109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PyControl" "', expected argument " "6"" of type '" "wxValidator const &""'");
38110 }
38111 arg6 = reinterpret_cast< wxValidator * >(argp6);
38112 }
38113 if (obj6) {
38114 {
38115 arg7 = wxString_in_helper(obj6);
38116 if (arg7 == NULL) SWIG_fail;
38117 temp7 = true;
38118 }
38119 }
38120 {
38121 if (!wxPyCheckForApp()) SWIG_fail;
38122 PyThreadState* __tstate = wxPyBeginAllowThreads();
38123 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
38124 wxPyEndAllowThreads(__tstate);
38125 if (PyErr_Occurred()) SWIG_fail;
38126 }
38127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_NEW | 0 );
38128 {
38129 if (temp7)
38130 delete arg7;
38131 }
38132 return resultobj;
38133 fail:
38134 {
38135 if (temp7)
38136 delete arg7;
38137 }
38138 return NULL;
38139 }
38140
38141
38142 SWIGINTERN PyObject *_wrap_new_PrePyControl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38143 PyObject *resultobj = 0;
38144 wxPyControl *result = 0 ;
38145
38146 if (!SWIG_Python_UnpackTuple(args,"new_PrePyControl",0,0,0)) SWIG_fail;
38147 {
38148 if (!wxPyCheckForApp()) SWIG_fail;
38149 PyThreadState* __tstate = wxPyBeginAllowThreads();
38150 result = (wxPyControl *)new wxPyControl();
38151 wxPyEndAllowThreads(__tstate);
38152 if (PyErr_Occurred()) SWIG_fail;
38153 }
38154 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyControl, SWIG_POINTER_OWN | 0 );
38155 return resultobj;
38156 fail:
38157 return NULL;
38158 }
38159
38160
38161 SWIGINTERN PyObject *_wrap_PyControl__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38162 PyObject *resultobj = 0;
38163 wxPyControl *arg1 = (wxPyControl *) 0 ;
38164 PyObject *arg2 = (PyObject *) 0 ;
38165 PyObject *arg3 = (PyObject *) 0 ;
38166 void *argp1 = 0 ;
38167 int res1 = 0 ;
38168 PyObject * obj0 = 0 ;
38169 PyObject * obj1 = 0 ;
38170 PyObject * obj2 = 0 ;
38171 char * kwnames[] = {
38172 (char *) "self",(char *) "self",(char *) "_class", NULL
38173 };
38174
38175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38177 if (!SWIG_IsOK(res1)) {
38178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyControl *""'");
38179 }
38180 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38181 arg2 = obj1;
38182 arg3 = obj2;
38183 {
38184 PyThreadState* __tstate = wxPyBeginAllowThreads();
38185 (arg1)->_setCallbackInfo(arg2,arg3);
38186 wxPyEndAllowThreads(__tstate);
38187 if (PyErr_Occurred()) SWIG_fail;
38188 }
38189 resultobj = SWIG_Py_Void();
38190 return resultobj;
38191 fail:
38192 return NULL;
38193 }
38194
38195
38196 SWIGINTERN PyObject *_wrap_PyControl_SetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38197 PyObject *resultobj = 0;
38198 wxPyControl *arg1 = (wxPyControl *) 0 ;
38199 wxSize *arg2 = 0 ;
38200 void *argp1 = 0 ;
38201 int res1 = 0 ;
38202 wxSize temp2 ;
38203 PyObject * obj0 = 0 ;
38204 PyObject * obj1 = 0 ;
38205 char * kwnames[] = {
38206 (char *) "self",(char *) "size", NULL
38207 };
38208
38209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) SWIG_fail;
38210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38211 if (!SWIG_IsOK(res1)) {
38212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_SetBestSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38213 }
38214 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38215 {
38216 arg2 = &temp2;
38217 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
38218 }
38219 {
38220 PyThreadState* __tstate = wxPyBeginAllowThreads();
38221 (arg1)->SetBestSize((wxSize const &)*arg2);
38222 wxPyEndAllowThreads(__tstate);
38223 if (PyErr_Occurred()) SWIG_fail;
38224 }
38225 resultobj = SWIG_Py_Void();
38226 return resultobj;
38227 fail:
38228 return NULL;
38229 }
38230
38231
38232 SWIGINTERN PyObject *_wrap_PyControl_DoEraseBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38233 PyObject *resultobj = 0;
38234 wxPyControl *arg1 = (wxPyControl *) 0 ;
38235 wxDC *arg2 = (wxDC *) 0 ;
38236 bool result;
38237 void *argp1 = 0 ;
38238 int res1 = 0 ;
38239 void *argp2 = 0 ;
38240 int res2 = 0 ;
38241 PyObject * obj0 = 0 ;
38242 PyObject * obj1 = 0 ;
38243 char * kwnames[] = {
38244 (char *) "self",(char *) "dc", NULL
38245 };
38246
38247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_DoEraseBackground",kwnames,&obj0,&obj1)) SWIG_fail;
38248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38249 if (!SWIG_IsOK(res1)) {
38250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoEraseBackground" "', expected argument " "1"" of type '" "wxPyControl *""'");
38251 }
38252 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38253 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
38254 if (!SWIG_IsOK(res2)) {
38255 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyControl_DoEraseBackground" "', expected argument " "2"" of type '" "wxDC *""'");
38256 }
38257 arg2 = reinterpret_cast< wxDC * >(argp2);
38258 {
38259 PyThreadState* __tstate = wxPyBeginAllowThreads();
38260 result = (bool)(arg1)->DoEraseBackground(arg2);
38261 wxPyEndAllowThreads(__tstate);
38262 if (PyErr_Occurred()) SWIG_fail;
38263 }
38264 {
38265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
38266 }
38267 return resultobj;
38268 fail:
38269 return NULL;
38270 }
38271
38272
38273 SWIGINTERN PyObject *_wrap_PyControl_DoMoveWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38274 PyObject *resultobj = 0;
38275 wxPyControl *arg1 = (wxPyControl *) 0 ;
38276 int arg2 ;
38277 int arg3 ;
38278 int arg4 ;
38279 int arg5 ;
38280 void *argp1 = 0 ;
38281 int res1 = 0 ;
38282 int val2 ;
38283 int ecode2 = 0 ;
38284 int val3 ;
38285 int ecode3 = 0 ;
38286 int val4 ;
38287 int ecode4 = 0 ;
38288 int val5 ;
38289 int ecode5 = 0 ;
38290 PyObject * obj0 = 0 ;
38291 PyObject * obj1 = 0 ;
38292 PyObject * obj2 = 0 ;
38293 PyObject * obj3 = 0 ;
38294 PyObject * obj4 = 0 ;
38295 char * kwnames[] = {
38296 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
38297 };
38298
38299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
38300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38301 if (!SWIG_IsOK(res1)) {
38302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoMoveWindow" "', expected argument " "1"" of type '" "wxPyControl *""'");
38303 }
38304 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38305 ecode2 = SWIG_AsVal_int(obj1, &val2);
38306 if (!SWIG_IsOK(ecode2)) {
38307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoMoveWindow" "', expected argument " "2"" of type '" "int""'");
38308 }
38309 arg2 = static_cast< int >(val2);
38310 ecode3 = SWIG_AsVal_int(obj2, &val3);
38311 if (!SWIG_IsOK(ecode3)) {
38312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoMoveWindow" "', expected argument " "3"" of type '" "int""'");
38313 }
38314 arg3 = static_cast< int >(val3);
38315 ecode4 = SWIG_AsVal_int(obj3, &val4);
38316 if (!SWIG_IsOK(ecode4)) {
38317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoMoveWindow" "', expected argument " "4"" of type '" "int""'");
38318 }
38319 arg4 = static_cast< int >(val4);
38320 ecode5 = SWIG_AsVal_int(obj4, &val5);
38321 if (!SWIG_IsOK(ecode5)) {
38322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoMoveWindow" "', expected argument " "5"" of type '" "int""'");
38323 }
38324 arg5 = static_cast< int >(val5);
38325 {
38326 PyThreadState* __tstate = wxPyBeginAllowThreads();
38327 (arg1)->DoMoveWindow(arg2,arg3,arg4,arg5);
38328 wxPyEndAllowThreads(__tstate);
38329 if (PyErr_Occurred()) SWIG_fail;
38330 }
38331 resultobj = SWIG_Py_Void();
38332 return resultobj;
38333 fail:
38334 return NULL;
38335 }
38336
38337
38338 SWIGINTERN PyObject *_wrap_PyControl_DoSetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38339 PyObject *resultobj = 0;
38340 wxPyControl *arg1 = (wxPyControl *) 0 ;
38341 int arg2 ;
38342 int arg3 ;
38343 int arg4 ;
38344 int arg5 ;
38345 int arg6 = (int) wxSIZE_AUTO ;
38346 void *argp1 = 0 ;
38347 int res1 = 0 ;
38348 int val2 ;
38349 int ecode2 = 0 ;
38350 int val3 ;
38351 int ecode3 = 0 ;
38352 int val4 ;
38353 int ecode4 = 0 ;
38354 int val5 ;
38355 int ecode5 = 0 ;
38356 int val6 ;
38357 int ecode6 = 0 ;
38358 PyObject * obj0 = 0 ;
38359 PyObject * obj1 = 0 ;
38360 PyObject * obj2 = 0 ;
38361 PyObject * obj3 = 0 ;
38362 PyObject * obj4 = 0 ;
38363 PyObject * obj5 = 0 ;
38364 char * kwnames[] = {
38365 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
38366 };
38367
38368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
38369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38370 if (!SWIG_IsOK(res1)) {
38371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38372 }
38373 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38374 ecode2 = SWIG_AsVal_int(obj1, &val2);
38375 if (!SWIG_IsOK(ecode2)) {
38376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetSize" "', expected argument " "2"" of type '" "int""'");
38377 }
38378 arg2 = static_cast< int >(val2);
38379 ecode3 = SWIG_AsVal_int(obj2, &val3);
38380 if (!SWIG_IsOK(ecode3)) {
38381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetSize" "', expected argument " "3"" of type '" "int""'");
38382 }
38383 arg3 = static_cast< int >(val3);
38384 ecode4 = SWIG_AsVal_int(obj3, &val4);
38385 if (!SWIG_IsOK(ecode4)) {
38386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyControl_DoSetSize" "', expected argument " "4"" of type '" "int""'");
38387 }
38388 arg4 = static_cast< int >(val4);
38389 ecode5 = SWIG_AsVal_int(obj4, &val5);
38390 if (!SWIG_IsOK(ecode5)) {
38391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PyControl_DoSetSize" "', expected argument " "5"" of type '" "int""'");
38392 }
38393 arg5 = static_cast< int >(val5);
38394 if (obj5) {
38395 ecode6 = SWIG_AsVal_int(obj5, &val6);
38396 if (!SWIG_IsOK(ecode6)) {
38397 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PyControl_DoSetSize" "', expected argument " "6"" of type '" "int""'");
38398 }
38399 arg6 = static_cast< int >(val6);
38400 }
38401 {
38402 PyThreadState* __tstate = wxPyBeginAllowThreads();
38403 (arg1)->DoSetSize(arg2,arg3,arg4,arg5,arg6);
38404 wxPyEndAllowThreads(__tstate);
38405 if (PyErr_Occurred()) SWIG_fail;
38406 }
38407 resultobj = SWIG_Py_Void();
38408 return resultobj;
38409 fail:
38410 return NULL;
38411 }
38412
38413
38414 SWIGINTERN PyObject *_wrap_PyControl_DoSetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38415 PyObject *resultobj = 0;
38416 wxPyControl *arg1 = (wxPyControl *) 0 ;
38417 int arg2 ;
38418 int arg3 ;
38419 void *argp1 = 0 ;
38420 int res1 = 0 ;
38421 int val2 ;
38422 int ecode2 = 0 ;
38423 int val3 ;
38424 int ecode3 = 0 ;
38425 PyObject * obj0 = 0 ;
38426 PyObject * obj1 = 0 ;
38427 PyObject * obj2 = 0 ;
38428 char * kwnames[] = {
38429 (char *) "self",(char *) "width",(char *) "height", NULL
38430 };
38431
38432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38434 if (!SWIG_IsOK(res1)) {
38435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetClientSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38436 }
38437 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38438 ecode2 = SWIG_AsVal_int(obj1, &val2);
38439 if (!SWIG_IsOK(ecode2)) {
38440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetClientSize" "', expected argument " "2"" of type '" "int""'");
38441 }
38442 arg2 = static_cast< int >(val2);
38443 ecode3 = SWIG_AsVal_int(obj2, &val3);
38444 if (!SWIG_IsOK(ecode3)) {
38445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetClientSize" "', expected argument " "3"" of type '" "int""'");
38446 }
38447 arg3 = static_cast< int >(val3);
38448 {
38449 PyThreadState* __tstate = wxPyBeginAllowThreads();
38450 (arg1)->DoSetClientSize(arg2,arg3);
38451 wxPyEndAllowThreads(__tstate);
38452 if (PyErr_Occurred()) SWIG_fail;
38453 }
38454 resultobj = SWIG_Py_Void();
38455 return resultobj;
38456 fail:
38457 return NULL;
38458 }
38459
38460
38461 SWIGINTERN PyObject *_wrap_PyControl_DoSetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38462 PyObject *resultobj = 0;
38463 wxPyControl *arg1 = (wxPyControl *) 0 ;
38464 int arg2 ;
38465 int arg3 ;
38466 void *argp1 = 0 ;
38467 int res1 = 0 ;
38468 int val2 ;
38469 int ecode2 = 0 ;
38470 int val3 ;
38471 int ecode3 = 0 ;
38472 PyObject * obj0 = 0 ;
38473 PyObject * obj1 = 0 ;
38474 PyObject * obj2 = 0 ;
38475 char * kwnames[] = {
38476 (char *) "self",(char *) "x",(char *) "y", NULL
38477 };
38478
38479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
38480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38481 if (!SWIG_IsOK(res1)) {
38482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl *""'");
38483 }
38484 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38485 ecode2 = SWIG_AsVal_int(obj1, &val2);
38486 if (!SWIG_IsOK(ecode2)) {
38487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "2"" of type '" "int""'");
38488 }
38489 arg2 = static_cast< int >(val2);
38490 ecode3 = SWIG_AsVal_int(obj2, &val3);
38491 if (!SWIG_IsOK(ecode3)) {
38492 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PyControl_DoSetVirtualSize" "', expected argument " "3"" of type '" "int""'");
38493 }
38494 arg3 = static_cast< int >(val3);
38495 {
38496 PyThreadState* __tstate = wxPyBeginAllowThreads();
38497 (arg1)->DoSetVirtualSize(arg2,arg3);
38498 wxPyEndAllowThreads(__tstate);
38499 if (PyErr_Occurred()) SWIG_fail;
38500 }
38501 resultobj = SWIG_Py_Void();
38502 return resultobj;
38503 fail:
38504 return NULL;
38505 }
38506
38507
38508 SWIGINTERN PyObject *_wrap_PyControl_DoGetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38509 PyObject *resultobj = 0;
38510 wxPyControl *arg1 = (wxPyControl *) 0 ;
38511 int *arg2 = (int *) 0 ;
38512 int *arg3 = (int *) 0 ;
38513 void *argp1 = 0 ;
38514 int res1 = 0 ;
38515 int temp2 ;
38516 int res2 = SWIG_TMPOBJ ;
38517 int temp3 ;
38518 int res3 = SWIG_TMPOBJ ;
38519 PyObject *swig_obj[1] ;
38520
38521 arg2 = &temp2;
38522 arg3 = &temp3;
38523 if (!args) SWIG_fail;
38524 swig_obj[0] = args;
38525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38526 if (!SWIG_IsOK(res1)) {
38527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38528 }
38529 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38530 {
38531 PyThreadState* __tstate = wxPyBeginAllowThreads();
38532 ((wxPyControl const *)arg1)->DoGetSize(arg2,arg3);
38533 wxPyEndAllowThreads(__tstate);
38534 if (PyErr_Occurred()) SWIG_fail;
38535 }
38536 resultobj = SWIG_Py_Void();
38537 if (SWIG_IsTmpObj(res2)) {
38538 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38539 } else {
38540 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38541 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38542 }
38543 if (SWIG_IsTmpObj(res3)) {
38544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38545 } else {
38546 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38548 }
38549 return resultobj;
38550 fail:
38551 return NULL;
38552 }
38553
38554
38555 SWIGINTERN PyObject *_wrap_PyControl_DoGetClientSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38556 PyObject *resultobj = 0;
38557 wxPyControl *arg1 = (wxPyControl *) 0 ;
38558 int *arg2 = (int *) 0 ;
38559 int *arg3 = (int *) 0 ;
38560 void *argp1 = 0 ;
38561 int res1 = 0 ;
38562 int temp2 ;
38563 int res2 = SWIG_TMPOBJ ;
38564 int temp3 ;
38565 int res3 = SWIG_TMPOBJ ;
38566 PyObject *swig_obj[1] ;
38567
38568 arg2 = &temp2;
38569 arg3 = &temp3;
38570 if (!args) SWIG_fail;
38571 swig_obj[0] = args;
38572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38573 if (!SWIG_IsOK(res1)) {
38574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetClientSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38575 }
38576 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38577 {
38578 PyThreadState* __tstate = wxPyBeginAllowThreads();
38579 ((wxPyControl const *)arg1)->DoGetClientSize(arg2,arg3);
38580 wxPyEndAllowThreads(__tstate);
38581 if (PyErr_Occurred()) SWIG_fail;
38582 }
38583 resultobj = SWIG_Py_Void();
38584 if (SWIG_IsTmpObj(res2)) {
38585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38586 } else {
38587 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38589 }
38590 if (SWIG_IsTmpObj(res3)) {
38591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38592 } else {
38593 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38595 }
38596 return resultobj;
38597 fail:
38598 return NULL;
38599 }
38600
38601
38602 SWIGINTERN PyObject *_wrap_PyControl_DoGetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38603 PyObject *resultobj = 0;
38604 wxPyControl *arg1 = (wxPyControl *) 0 ;
38605 int *arg2 = (int *) 0 ;
38606 int *arg3 = (int *) 0 ;
38607 void *argp1 = 0 ;
38608 int res1 = 0 ;
38609 int temp2 ;
38610 int res2 = SWIG_TMPOBJ ;
38611 int temp3 ;
38612 int res3 = SWIG_TMPOBJ ;
38613 PyObject *swig_obj[1] ;
38614
38615 arg2 = &temp2;
38616 arg3 = &temp3;
38617 if (!args) SWIG_fail;
38618 swig_obj[0] = args;
38619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38620 if (!SWIG_IsOK(res1)) {
38621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetPosition" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38622 }
38623 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38624 {
38625 PyThreadState* __tstate = wxPyBeginAllowThreads();
38626 ((wxPyControl const *)arg1)->DoGetPosition(arg2,arg3);
38627 wxPyEndAllowThreads(__tstate);
38628 if (PyErr_Occurred()) SWIG_fail;
38629 }
38630 resultobj = SWIG_Py_Void();
38631 if (SWIG_IsTmpObj(res2)) {
38632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
38633 } else {
38634 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
38636 }
38637 if (SWIG_IsTmpObj(res3)) {
38638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
38639 } else {
38640 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
38641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
38642 }
38643 return resultobj;
38644 fail:
38645 return NULL;
38646 }
38647
38648
38649 SWIGINTERN PyObject *_wrap_PyControl_DoGetVirtualSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38650 PyObject *resultobj = 0;
38651 wxPyControl *arg1 = (wxPyControl *) 0 ;
38652 wxSize result;
38653 void *argp1 = 0 ;
38654 int res1 = 0 ;
38655 PyObject *swig_obj[1] ;
38656
38657 if (!args) SWIG_fail;
38658 swig_obj[0] = args;
38659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38660 if (!SWIG_IsOK(res1)) {
38661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetVirtualSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38662 }
38663 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38664 {
38665 PyThreadState* __tstate = wxPyBeginAllowThreads();
38666 result = ((wxPyControl const *)arg1)->DoGetVirtualSize();
38667 wxPyEndAllowThreads(__tstate);
38668 if (PyErr_Occurred()) SWIG_fail;
38669 }
38670 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38671 return resultobj;
38672 fail:
38673 return NULL;
38674 }
38675
38676
38677 SWIGINTERN PyObject *_wrap_PyControl_DoGetBestSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38678 PyObject *resultobj = 0;
38679 wxPyControl *arg1 = (wxPyControl *) 0 ;
38680 wxSize result;
38681 void *argp1 = 0 ;
38682 int res1 = 0 ;
38683 PyObject *swig_obj[1] ;
38684
38685 if (!args) SWIG_fail;
38686 swig_obj[0] = args;
38687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38688 if (!SWIG_IsOK(res1)) {
38689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_DoGetBestSize" "', expected argument " "1"" of type '" "wxPyControl const *""'");
38690 }
38691 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38692 {
38693 PyThreadState* __tstate = wxPyBeginAllowThreads();
38694 result = ((wxPyControl const *)arg1)->DoGetBestSize();
38695 wxPyEndAllowThreads(__tstate);
38696 if (PyErr_Occurred()) SWIG_fail;
38697 }
38698 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
38699 return resultobj;
38700 fail:
38701 return NULL;
38702 }
38703
38704
38705 SWIGINTERN PyObject *_wrap_PyControl_GetDefaultAttributes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38706 PyObject *resultobj = 0;
38707 wxPyControl *arg1 = (wxPyControl *) 0 ;
38708 SwigValueWrapper<wxVisualAttributes > result;
38709 void *argp1 = 0 ;
38710 int res1 = 0 ;
38711 PyObject *swig_obj[1] ;
38712
38713 if (!args) SWIG_fail;
38714 swig_obj[0] = args;
38715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38716 if (!SWIG_IsOK(res1)) {
38717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_GetDefaultAttributes" "', expected argument " "1"" of type '" "wxPyControl *""'");
38718 }
38719 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38720 {
38721 PyThreadState* __tstate = wxPyBeginAllowThreads();
38722 result = (arg1)->GetDefaultAttributes();
38723 wxPyEndAllowThreads(__tstate);
38724 if (PyErr_Occurred()) SWIG_fail;
38725 }
38726 resultobj = SWIG_NewPointerObj((new wxVisualAttributes(static_cast< const wxVisualAttributes& >(result))), SWIGTYPE_p_wxVisualAttributes, SWIG_POINTER_OWN | 0 );
38727 return resultobj;
38728 fail:
38729 return NULL;
38730 }
38731
38732
38733 SWIGINTERN PyObject *_wrap_PyControl_OnInternalIdle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38734 PyObject *resultobj = 0;
38735 wxPyControl *arg1 = (wxPyControl *) 0 ;
38736 void *argp1 = 0 ;
38737 int res1 = 0 ;
38738 PyObject *swig_obj[1] ;
38739
38740 if (!args) SWIG_fail;
38741 swig_obj[0] = args;
38742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyControl, 0 | 0 );
38743 if (!SWIG_IsOK(res1)) {
38744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyControl_OnInternalIdle" "', expected argument " "1"" of type '" "wxPyControl *""'");
38745 }
38746 arg1 = reinterpret_cast< wxPyControl * >(argp1);
38747 {
38748 PyThreadState* __tstate = wxPyBeginAllowThreads();
38749 (arg1)->OnInternalIdle();
38750 wxPyEndAllowThreads(__tstate);
38751 if (PyErr_Occurred()) SWIG_fail;
38752 }
38753 resultobj = SWIG_Py_Void();
38754 return resultobj;
38755 fail:
38756 return NULL;
38757 }
38758
38759
38760 SWIGINTERN PyObject *PyControl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38761 PyObject *obj;
38762 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
38763 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyControl, SWIG_NewClientData(obj));
38764 return SWIG_Py_Void();
38765 }
38766
38767 SWIGINTERN PyObject *PyControl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38768 return SWIG_Python_InitShadowInstance(args);
38769 }
38770
38771 SWIGINTERN PyObject *_wrap_new_HelpEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38772 PyObject *resultobj = 0;
38773 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
38774 int arg2 = (int) 0 ;
38775 wxPoint const &arg3_defvalue = wxDefaultPosition ;
38776 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
38777 wxHelpEvent::Origin arg4 = (wxHelpEvent::Origin) wxHelpEvent::Origin_Unknown ;
38778 wxHelpEvent *result = 0 ;
38779 int val1 ;
38780 int ecode1 = 0 ;
38781 int val2 ;
38782 int ecode2 = 0 ;
38783 wxPoint temp3 ;
38784 int val4 ;
38785 int ecode4 = 0 ;
38786 PyObject * obj0 = 0 ;
38787 PyObject * obj1 = 0 ;
38788 PyObject * obj2 = 0 ;
38789 PyObject * obj3 = 0 ;
38790 char * kwnames[] = {
38791 (char *) "type",(char *) "winid",(char *) "pt",(char *) "origin", NULL
38792 };
38793
38794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
38795 if (obj0) {
38796 ecode1 = SWIG_AsVal_int(obj0, &val1);
38797 if (!SWIG_IsOK(ecode1)) {
38798 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HelpEvent" "', expected argument " "1"" of type '" "wxEventType""'");
38799 }
38800 arg1 = static_cast< wxEventType >(val1);
38801 }
38802 if (obj1) {
38803 ecode2 = SWIG_AsVal_int(obj1, &val2);
38804 if (!SWIG_IsOK(ecode2)) {
38805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HelpEvent" "', expected argument " "2"" of type '" "int""'");
38806 }
38807 arg2 = static_cast< int >(val2);
38808 }
38809 if (obj2) {
38810 {
38811 arg3 = &temp3;
38812 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
38813 }
38814 }
38815 if (obj3) {
38816 ecode4 = SWIG_AsVal_int(obj3, &val4);
38817 if (!SWIG_IsOK(ecode4)) {
38818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_HelpEvent" "', expected argument " "4"" of type '" "wxHelpEvent::Origin""'");
38819 }
38820 arg4 = static_cast< wxHelpEvent::Origin >(val4);
38821 }
38822 {
38823 PyThreadState* __tstate = wxPyBeginAllowThreads();
38824 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3,arg4);
38825 wxPyEndAllowThreads(__tstate);
38826 if (PyErr_Occurred()) SWIG_fail;
38827 }
38828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpEvent, SWIG_POINTER_NEW | 0 );
38829 return resultobj;
38830 fail:
38831 return NULL;
38832 }
38833
38834
38835 SWIGINTERN PyObject *_wrap_HelpEvent_GetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38836 PyObject *resultobj = 0;
38837 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38838 wxPoint result;
38839 void *argp1 = 0 ;
38840 int res1 = 0 ;
38841 PyObject *swig_obj[1] ;
38842
38843 if (!args) SWIG_fail;
38844 swig_obj[0] = args;
38845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38846 if (!SWIG_IsOK(res1)) {
38847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetPosition" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38848 }
38849 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38850 {
38851 PyThreadState* __tstate = wxPyBeginAllowThreads();
38852 result = ((wxHelpEvent const *)arg1)->GetPosition();
38853 wxPyEndAllowThreads(__tstate);
38854 if (PyErr_Occurred()) SWIG_fail;
38855 }
38856 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
38857 return resultobj;
38858 fail:
38859 return NULL;
38860 }
38861
38862
38863 SWIGINTERN PyObject *_wrap_HelpEvent_SetPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38864 PyObject *resultobj = 0;
38865 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38866 wxPoint *arg2 = 0 ;
38867 void *argp1 = 0 ;
38868 int res1 = 0 ;
38869 wxPoint temp2 ;
38870 PyObject * obj0 = 0 ;
38871 PyObject * obj1 = 0 ;
38872 char * kwnames[] = {
38873 (char *) "self",(char *) "pos", NULL
38874 };
38875
38876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) SWIG_fail;
38877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38878 if (!SWIG_IsOK(res1)) {
38879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetPosition" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38880 }
38881 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38882 {
38883 arg2 = &temp2;
38884 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
38885 }
38886 {
38887 PyThreadState* __tstate = wxPyBeginAllowThreads();
38888 (arg1)->SetPosition((wxPoint const &)*arg2);
38889 wxPyEndAllowThreads(__tstate);
38890 if (PyErr_Occurred()) SWIG_fail;
38891 }
38892 resultobj = SWIG_Py_Void();
38893 return resultobj;
38894 fail:
38895 return NULL;
38896 }
38897
38898
38899 SWIGINTERN PyObject *_wrap_HelpEvent_GetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38900 PyObject *resultobj = 0;
38901 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38902 wxString *result = 0 ;
38903 void *argp1 = 0 ;
38904 int res1 = 0 ;
38905 PyObject *swig_obj[1] ;
38906
38907 if (!args) SWIG_fail;
38908 swig_obj[0] = args;
38909 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38910 if (!SWIG_IsOK(res1)) {
38911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetLink" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38912 }
38913 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38914 {
38915 PyThreadState* __tstate = wxPyBeginAllowThreads();
38916 {
38917 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
38918 result = (wxString *) &_result_ref;
38919 }
38920 wxPyEndAllowThreads(__tstate);
38921 if (PyErr_Occurred()) SWIG_fail;
38922 }
38923 {
38924 #if wxUSE_UNICODE
38925 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
38926 #else
38927 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
38928 #endif
38929 }
38930 return resultobj;
38931 fail:
38932 return NULL;
38933 }
38934
38935
38936 SWIGINTERN PyObject *_wrap_HelpEvent_SetLink(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
38937 PyObject *resultobj = 0;
38938 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38939 wxString *arg2 = 0 ;
38940 void *argp1 = 0 ;
38941 int res1 = 0 ;
38942 bool temp2 = false ;
38943 PyObject * obj0 = 0 ;
38944 PyObject * obj1 = 0 ;
38945 char * kwnames[] = {
38946 (char *) "self",(char *) "link", NULL
38947 };
38948
38949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) SWIG_fail;
38950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38951 if (!SWIG_IsOK(res1)) {
38952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetLink" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
38953 }
38954 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38955 {
38956 arg2 = wxString_in_helper(obj1);
38957 if (arg2 == NULL) SWIG_fail;
38958 temp2 = true;
38959 }
38960 {
38961 PyThreadState* __tstate = wxPyBeginAllowThreads();
38962 (arg1)->SetLink((wxString const &)*arg2);
38963 wxPyEndAllowThreads(__tstate);
38964 if (PyErr_Occurred()) SWIG_fail;
38965 }
38966 resultobj = SWIG_Py_Void();
38967 {
38968 if (temp2)
38969 delete arg2;
38970 }
38971 return resultobj;
38972 fail:
38973 {
38974 if (temp2)
38975 delete arg2;
38976 }
38977 return NULL;
38978 }
38979
38980
38981 SWIGINTERN PyObject *_wrap_HelpEvent_GetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
38982 PyObject *resultobj = 0;
38983 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
38984 wxString *result = 0 ;
38985 void *argp1 = 0 ;
38986 int res1 = 0 ;
38987 PyObject *swig_obj[1] ;
38988
38989 if (!args) SWIG_fail;
38990 swig_obj[0] = args;
38991 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
38992 if (!SWIG_IsOK(res1)) {
38993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetTarget" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
38994 }
38995 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
38996 {
38997 PyThreadState* __tstate = wxPyBeginAllowThreads();
38998 {
38999 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
39000 result = (wxString *) &_result_ref;
39001 }
39002 wxPyEndAllowThreads(__tstate);
39003 if (PyErr_Occurred()) SWIG_fail;
39004 }
39005 {
39006 #if wxUSE_UNICODE
39007 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
39008 #else
39009 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
39010 #endif
39011 }
39012 return resultobj;
39013 fail:
39014 return NULL;
39015 }
39016
39017
39018 SWIGINTERN PyObject *_wrap_HelpEvent_SetTarget(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39019 PyObject *resultobj = 0;
39020 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39021 wxString *arg2 = 0 ;
39022 void *argp1 = 0 ;
39023 int res1 = 0 ;
39024 bool temp2 = false ;
39025 PyObject * obj0 = 0 ;
39026 PyObject * obj1 = 0 ;
39027 char * kwnames[] = {
39028 (char *) "self",(char *) "target", NULL
39029 };
39030
39031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) SWIG_fail;
39032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39033 if (!SWIG_IsOK(res1)) {
39034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetTarget" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39035 }
39036 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39037 {
39038 arg2 = wxString_in_helper(obj1);
39039 if (arg2 == NULL) SWIG_fail;
39040 temp2 = true;
39041 }
39042 {
39043 PyThreadState* __tstate = wxPyBeginAllowThreads();
39044 (arg1)->SetTarget((wxString const &)*arg2);
39045 wxPyEndAllowThreads(__tstate);
39046 if (PyErr_Occurred()) SWIG_fail;
39047 }
39048 resultobj = SWIG_Py_Void();
39049 {
39050 if (temp2)
39051 delete arg2;
39052 }
39053 return resultobj;
39054 fail:
39055 {
39056 if (temp2)
39057 delete arg2;
39058 }
39059 return NULL;
39060 }
39061
39062
39063 SWIGINTERN PyObject *_wrap_HelpEvent_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39064 PyObject *resultobj = 0;
39065 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39066 wxHelpEvent::Origin result;
39067 void *argp1 = 0 ;
39068 int res1 = 0 ;
39069 PyObject *swig_obj[1] ;
39070
39071 if (!args) SWIG_fail;
39072 swig_obj[0] = args;
39073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39074 if (!SWIG_IsOK(res1)) {
39075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_GetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent const *""'");
39076 }
39077 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39078 {
39079 PyThreadState* __tstate = wxPyBeginAllowThreads();
39080 result = (wxHelpEvent::Origin)((wxHelpEvent const *)arg1)->GetOrigin();
39081 wxPyEndAllowThreads(__tstate);
39082 if (PyErr_Occurred()) SWIG_fail;
39083 }
39084 resultobj = SWIG_From_int(static_cast< int >(result));
39085 return resultobj;
39086 fail:
39087 return NULL;
39088 }
39089
39090
39091 SWIGINTERN PyObject *_wrap_HelpEvent_SetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39092 PyObject *resultobj = 0;
39093 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
39094 wxHelpEvent::Origin arg2 ;
39095 void *argp1 = 0 ;
39096 int res1 = 0 ;
39097 int val2 ;
39098 int ecode2 = 0 ;
39099 PyObject * obj0 = 0 ;
39100 PyObject * obj1 = 0 ;
39101 char * kwnames[] = {
39102 (char *) "self",(char *) "origin", NULL
39103 };
39104
39105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetOrigin",kwnames,&obj0,&obj1)) SWIG_fail;
39106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpEvent, 0 | 0 );
39107 if (!SWIG_IsOK(res1)) {
39108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpEvent_SetOrigin" "', expected argument " "1"" of type '" "wxHelpEvent *""'");
39109 }
39110 arg1 = reinterpret_cast< wxHelpEvent * >(argp1);
39111 ecode2 = SWIG_AsVal_int(obj1, &val2);
39112 if (!SWIG_IsOK(ecode2)) {
39113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpEvent_SetOrigin" "', expected argument " "2"" of type '" "wxHelpEvent::Origin""'");
39114 }
39115 arg2 = static_cast< wxHelpEvent::Origin >(val2);
39116 {
39117 PyThreadState* __tstate = wxPyBeginAllowThreads();
39118 (arg1)->SetOrigin(arg2);
39119 wxPyEndAllowThreads(__tstate);
39120 if (PyErr_Occurred()) SWIG_fail;
39121 }
39122 resultobj = SWIG_Py_Void();
39123 return resultobj;
39124 fail:
39125 return NULL;
39126 }
39127
39128
39129 SWIGINTERN PyObject *HelpEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39130 PyObject *obj;
39131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39132 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpEvent, SWIG_NewClientData(obj));
39133 return SWIG_Py_Void();
39134 }
39135
39136 SWIGINTERN PyObject *HelpEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39137 return SWIG_Python_InitShadowInstance(args);
39138 }
39139
39140 SWIGINTERN PyObject *_wrap_new_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39141 PyObject *resultobj = 0;
39142 wxWindow *arg1 = (wxWindow *) NULL ;
39143 bool arg2 = (bool) true ;
39144 wxContextHelp *result = 0 ;
39145 void *argp1 = 0 ;
39146 int res1 = 0 ;
39147 bool val2 ;
39148 int ecode2 = 0 ;
39149 PyObject * obj0 = 0 ;
39150 PyObject * obj1 = 0 ;
39151 char * kwnames[] = {
39152 (char *) "window",(char *) "doNow", NULL
39153 };
39154
39155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39156 if (obj0) {
39157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39158 if (!SWIG_IsOK(res1)) {
39159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelp" "', expected argument " "1"" of type '" "wxWindow *""'");
39160 }
39161 arg1 = reinterpret_cast< wxWindow * >(argp1);
39162 }
39163 if (obj1) {
39164 ecode2 = SWIG_AsVal_bool(obj1, &val2);
39165 if (!SWIG_IsOK(ecode2)) {
39166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelp" "', expected argument " "2"" of type '" "bool""'");
39167 }
39168 arg2 = static_cast< bool >(val2);
39169 }
39170 {
39171 if (!wxPyCheckForApp()) SWIG_fail;
39172 PyThreadState* __tstate = wxPyBeginAllowThreads();
39173 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
39174 wxPyEndAllowThreads(__tstate);
39175 if (PyErr_Occurred()) SWIG_fail;
39176 }
39177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelp, SWIG_POINTER_NEW | 0 );
39178 return resultobj;
39179 fail:
39180 return NULL;
39181 }
39182
39183
39184 SWIGINTERN PyObject *_wrap_delete_ContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39185 PyObject *resultobj = 0;
39186 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39187 void *argp1 = 0 ;
39188 int res1 = 0 ;
39189 PyObject *swig_obj[1] ;
39190
39191 if (!args) SWIG_fail;
39192 swig_obj[0] = args;
39193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, SWIG_POINTER_DISOWN | 0 );
39194 if (!SWIG_IsOK(res1)) {
39195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39196 }
39197 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39198 {
39199 PyThreadState* __tstate = wxPyBeginAllowThreads();
39200 delete arg1;
39201
39202 wxPyEndAllowThreads(__tstate);
39203 if (PyErr_Occurred()) SWIG_fail;
39204 }
39205 resultobj = SWIG_Py_Void();
39206 return resultobj;
39207 fail:
39208 return NULL;
39209 }
39210
39211
39212 SWIGINTERN PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39213 PyObject *resultobj = 0;
39214 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39215 wxWindow *arg2 = (wxWindow *) NULL ;
39216 bool result;
39217 void *argp1 = 0 ;
39218 int res1 = 0 ;
39219 void *argp2 = 0 ;
39220 int res2 = 0 ;
39221 PyObject * obj0 = 0 ;
39222 PyObject * obj1 = 0 ;
39223 char * kwnames[] = {
39224 (char *) "self",(char *) "window", NULL
39225 };
39226
39227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39229 if (!SWIG_IsOK(res1)) {
39230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39231 }
39232 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39233 if (obj1) {
39234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39235 if (!SWIG_IsOK(res2)) {
39236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ContextHelp_BeginContextHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39237 }
39238 arg2 = reinterpret_cast< wxWindow * >(argp2);
39239 }
39240 {
39241 PyThreadState* __tstate = wxPyBeginAllowThreads();
39242 result = (bool)(arg1)->BeginContextHelp(arg2);
39243 wxPyEndAllowThreads(__tstate);
39244 if (PyErr_Occurred()) SWIG_fail;
39245 }
39246 {
39247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39248 }
39249 return resultobj;
39250 fail:
39251 return NULL;
39252 }
39253
39254
39255 SWIGINTERN PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39256 PyObject *resultobj = 0;
39257 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
39258 bool result;
39259 void *argp1 = 0 ;
39260 int res1 = 0 ;
39261 PyObject *swig_obj[1] ;
39262
39263 if (!args) SWIG_fail;
39264 swig_obj[0] = args;
39265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxContextHelp, 0 | 0 );
39266 if (!SWIG_IsOK(res1)) {
39267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ContextHelp_EndContextHelp" "', expected argument " "1"" of type '" "wxContextHelp *""'");
39268 }
39269 arg1 = reinterpret_cast< wxContextHelp * >(argp1);
39270 {
39271 PyThreadState* __tstate = wxPyBeginAllowThreads();
39272 result = (bool)(arg1)->EndContextHelp();
39273 wxPyEndAllowThreads(__tstate);
39274 if (PyErr_Occurred()) SWIG_fail;
39275 }
39276 {
39277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39278 }
39279 return resultobj;
39280 fail:
39281 return NULL;
39282 }
39283
39284
39285 SWIGINTERN PyObject *ContextHelp_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39286 PyObject *obj;
39287 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39288 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelp, SWIG_NewClientData(obj));
39289 return SWIG_Py_Void();
39290 }
39291
39292 SWIGINTERN PyObject *ContextHelp_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39293 return SWIG_Python_InitShadowInstance(args);
39294 }
39295
39296 SWIGINTERN PyObject *_wrap_new_ContextHelpButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39297 PyObject *resultobj = 0;
39298 wxWindow *arg1 = (wxWindow *) 0 ;
39299 int arg2 = (int) wxID_CONTEXT_HELP ;
39300 wxPoint const &arg3_defvalue = wxDefaultPosition ;
39301 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
39302 wxSize const &arg4_defvalue = wxDefaultSize ;
39303 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
39304 long arg5 = (long) wxBU_AUTODRAW ;
39305 wxContextHelpButton *result = 0 ;
39306 void *argp1 = 0 ;
39307 int res1 = 0 ;
39308 int val2 ;
39309 int ecode2 = 0 ;
39310 wxPoint temp3 ;
39311 wxSize temp4 ;
39312 long val5 ;
39313 int ecode5 = 0 ;
39314 PyObject * obj0 = 0 ;
39315 PyObject * obj1 = 0 ;
39316 PyObject * obj2 = 0 ;
39317 PyObject * obj3 = 0 ;
39318 PyObject * obj4 = 0 ;
39319 char * kwnames[] = {
39320 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
39321 };
39322
39323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
39324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
39325 if (!SWIG_IsOK(res1)) {
39326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ContextHelpButton" "', expected argument " "1"" of type '" "wxWindow *""'");
39327 }
39328 arg1 = reinterpret_cast< wxWindow * >(argp1);
39329 if (obj1) {
39330 ecode2 = SWIG_AsVal_int(obj1, &val2);
39331 if (!SWIG_IsOK(ecode2)) {
39332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ContextHelpButton" "', expected argument " "2"" of type '" "int""'");
39333 }
39334 arg2 = static_cast< int >(val2);
39335 }
39336 if (obj2) {
39337 {
39338 arg3 = &temp3;
39339 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
39340 }
39341 }
39342 if (obj3) {
39343 {
39344 arg4 = &temp4;
39345 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
39346 }
39347 }
39348 if (obj4) {
39349 ecode5 = SWIG_AsVal_long(obj4, &val5);
39350 if (!SWIG_IsOK(ecode5)) {
39351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_ContextHelpButton" "', expected argument " "5"" of type '" "long""'");
39352 }
39353 arg5 = static_cast< long >(val5);
39354 }
39355 {
39356 if (!wxPyCheckForApp()) SWIG_fail;
39357 PyThreadState* __tstate = wxPyBeginAllowThreads();
39358 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
39359 wxPyEndAllowThreads(__tstate);
39360 if (PyErr_Occurred()) SWIG_fail;
39361 }
39362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxContextHelpButton, SWIG_POINTER_NEW | 0 );
39363 return resultobj;
39364 fail:
39365 return NULL;
39366 }
39367
39368
39369 SWIGINTERN PyObject *ContextHelpButton_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39370 PyObject *obj;
39371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39372 SWIG_TypeNewClientData(SWIGTYPE_p_wxContextHelpButton, SWIG_NewClientData(obj));
39373 return SWIG_Py_Void();
39374 }
39375
39376 SWIGINTERN PyObject *ContextHelpButton_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39377 return SWIG_Python_InitShadowInstance(args);
39378 }
39379
39380 SWIGINTERN PyObject *_wrap_delete_HelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39381 PyObject *resultobj = 0;
39382 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39383 void *argp1 = 0 ;
39384 int res1 = 0 ;
39385 PyObject *swig_obj[1] ;
39386
39387 if (!args) SWIG_fail;
39388 swig_obj[0] = args;
39389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39390 if (!SWIG_IsOK(res1)) {
39391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HelpProvider" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39392 }
39393 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39394 {
39395 PyThreadState* __tstate = wxPyBeginAllowThreads();
39396 delete arg1;
39397
39398 wxPyEndAllowThreads(__tstate);
39399 if (PyErr_Occurred()) SWIG_fail;
39400 }
39401 resultobj = SWIG_Py_Void();
39402 return resultobj;
39403 fail:
39404 return NULL;
39405 }
39406
39407
39408 SWIGINTERN PyObject *_wrap_HelpProvider_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39409 PyObject *resultobj = 0;
39410 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39411 wxHelpProvider *result = 0 ;
39412 int res1 = 0 ;
39413 PyObject * obj0 = 0 ;
39414 char * kwnames[] = {
39415 (char *) "helpProvider", NULL
39416 };
39417
39418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) SWIG_fail;
39419 res1 = SWIG_ConvertPtr(obj0, SWIG_as_voidptrptr(&arg1), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_DISOWN | 0 );
39420 if (!SWIG_IsOK(res1)) {
39421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Set" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39422 }
39423 {
39424 PyThreadState* __tstate = wxPyBeginAllowThreads();
39425 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
39426 wxPyEndAllowThreads(__tstate);
39427 if (PyErr_Occurred()) SWIG_fail;
39428 }
39429 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, SWIG_POINTER_OWN | 0 );
39430 return resultobj;
39431 fail:
39432 return NULL;
39433 }
39434
39435
39436 SWIGINTERN PyObject *_wrap_HelpProvider_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39437 PyObject *resultobj = 0;
39438 wxHelpProvider *result = 0 ;
39439
39440 if (!SWIG_Python_UnpackTuple(args,"HelpProvider_Get",0,0,0)) SWIG_fail;
39441 {
39442 PyThreadState* __tstate = wxPyBeginAllowThreads();
39443 result = (wxHelpProvider *)wxHelpProvider::Get();
39444 wxPyEndAllowThreads(__tstate);
39445 if (PyErr_Occurred()) SWIG_fail;
39446 }
39447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39448 return resultobj;
39449 fail:
39450 return NULL;
39451 }
39452
39453
39454 SWIGINTERN PyObject *_wrap_HelpProvider_GetHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39455 PyObject *resultobj = 0;
39456 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39457 wxWindow *arg2 = (wxWindow *) 0 ;
39458 wxString result;
39459 void *argp1 = 0 ;
39460 int res1 = 0 ;
39461 void *argp2 = 0 ;
39462 int res2 = 0 ;
39463 PyObject * obj0 = 0 ;
39464 PyObject * obj1 = 0 ;
39465 char * kwnames[] = {
39466 (char *) "self",(char *) "window", NULL
39467 };
39468
39469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39471 if (!SWIG_IsOK(res1)) {
39472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_GetHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39473 }
39474 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39476 if (!SWIG_IsOK(res2)) {
39477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_GetHelp" "', expected argument " "2"" of type '" "wxWindow const *""'");
39478 }
39479 arg2 = reinterpret_cast< wxWindow * >(argp2);
39480 {
39481 PyThreadState* __tstate = wxPyBeginAllowThreads();
39482 result = (arg1)->GetHelp((wxWindow const *)arg2);
39483 wxPyEndAllowThreads(__tstate);
39484 if (PyErr_Occurred()) SWIG_fail;
39485 }
39486 {
39487 #if wxUSE_UNICODE
39488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
39489 #else
39490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
39491 #endif
39492 }
39493 return resultobj;
39494 fail:
39495 return NULL;
39496 }
39497
39498
39499 SWIGINTERN PyObject *_wrap_HelpProvider_ShowHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39500 PyObject *resultobj = 0;
39501 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39502 wxWindow *arg2 = (wxWindow *) 0 ;
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 *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39516 if (!SWIG_IsOK(res1)) {
39517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_ShowHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39518 }
39519 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39520 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39521 if (!SWIG_IsOK(res2)) {
39522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_ShowHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39523 }
39524 arg2 = reinterpret_cast< wxWindow * >(argp2);
39525 {
39526 PyThreadState* __tstate = wxPyBeginAllowThreads();
39527 result = (bool)(arg1)->ShowHelp(arg2);
39528 wxPyEndAllowThreads(__tstate);
39529 if (PyErr_Occurred()) SWIG_fail;
39530 }
39531 {
39532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
39533 }
39534 return resultobj;
39535 fail:
39536 return NULL;
39537 }
39538
39539
39540 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39541 PyObject *resultobj = 0;
39542 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39543 wxWindow *arg2 = (wxWindow *) 0 ;
39544 wxString *arg3 = 0 ;
39545 void *argp1 = 0 ;
39546 int res1 = 0 ;
39547 void *argp2 = 0 ;
39548 int res2 = 0 ;
39549 bool temp3 = false ;
39550 PyObject * obj0 = 0 ;
39551 PyObject * obj1 = 0 ;
39552 PyObject * obj2 = 0 ;
39553 char * kwnames[] = {
39554 (char *) "self",(char *) "window",(char *) "text", NULL
39555 };
39556
39557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39559 if (!SWIG_IsOK(res1)) {
39560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39561 }
39562 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39563 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39564 if (!SWIG_IsOK(res2)) {
39565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_AddHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39566 }
39567 arg2 = reinterpret_cast< wxWindow * >(argp2);
39568 {
39569 arg3 = wxString_in_helper(obj2);
39570 if (arg3 == NULL) SWIG_fail;
39571 temp3 = true;
39572 }
39573 {
39574 PyThreadState* __tstate = wxPyBeginAllowThreads();
39575 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39576 wxPyEndAllowThreads(__tstate);
39577 if (PyErr_Occurred()) SWIG_fail;
39578 }
39579 resultobj = SWIG_Py_Void();
39580 {
39581 if (temp3)
39582 delete arg3;
39583 }
39584 return resultobj;
39585 fail:
39586 {
39587 if (temp3)
39588 delete arg3;
39589 }
39590 return NULL;
39591 }
39592
39593
39594 SWIGINTERN PyObject *_wrap_HelpProvider_AddHelpById(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39595 PyObject *resultobj = 0;
39596 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39597 int arg2 ;
39598 wxString *arg3 = 0 ;
39599 void *argp1 = 0 ;
39600 int res1 = 0 ;
39601 int val2 ;
39602 int ecode2 = 0 ;
39603 bool temp3 = false ;
39604 PyObject * obj0 = 0 ;
39605 PyObject * obj1 = 0 ;
39606 PyObject * obj2 = 0 ;
39607 char * kwnames[] = {
39608 (char *) "self",(char *) "id",(char *) "text", NULL
39609 };
39610
39611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
39612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39613 if (!SWIG_IsOK(res1)) {
39614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_AddHelpById" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39615 }
39616 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39617 ecode2 = SWIG_AsVal_int(obj1, &val2);
39618 if (!SWIG_IsOK(ecode2)) {
39619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HelpProvider_AddHelpById" "', expected argument " "2"" of type '" "int""'");
39620 }
39621 arg2 = static_cast< int >(val2);
39622 {
39623 arg3 = wxString_in_helper(obj2);
39624 if (arg3 == NULL) SWIG_fail;
39625 temp3 = true;
39626 }
39627 {
39628 PyThreadState* __tstate = wxPyBeginAllowThreads();
39629 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
39630 wxPyEndAllowThreads(__tstate);
39631 if (PyErr_Occurred()) SWIG_fail;
39632 }
39633 resultobj = SWIG_Py_Void();
39634 {
39635 if (temp3)
39636 delete arg3;
39637 }
39638 return resultobj;
39639 fail:
39640 {
39641 if (temp3)
39642 delete arg3;
39643 }
39644 return NULL;
39645 }
39646
39647
39648 SWIGINTERN PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39649 PyObject *resultobj = 0;
39650 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39651 wxWindow *arg2 = (wxWindow *) 0 ;
39652 void *argp1 = 0 ;
39653 int res1 = 0 ;
39654 void *argp2 = 0 ;
39655 int res2 = 0 ;
39656 PyObject * obj0 = 0 ;
39657 PyObject * obj1 = 0 ;
39658 char * kwnames[] = {
39659 (char *) "self",(char *) "window", NULL
39660 };
39661
39662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) SWIG_fail;
39663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39664 if (!SWIG_IsOK(res1)) {
39665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39666 }
39667 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39668 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
39669 if (!SWIG_IsOK(res2)) {
39670 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HelpProvider_RemoveHelp" "', expected argument " "2"" of type '" "wxWindow *""'");
39671 }
39672 arg2 = reinterpret_cast< wxWindow * >(argp2);
39673 {
39674 PyThreadState* __tstate = wxPyBeginAllowThreads();
39675 (arg1)->RemoveHelp(arg2);
39676 wxPyEndAllowThreads(__tstate);
39677 if (PyErr_Occurred()) SWIG_fail;
39678 }
39679 resultobj = SWIG_Py_Void();
39680 return resultobj;
39681 fail:
39682 return NULL;
39683 }
39684
39685
39686 SWIGINTERN PyObject *_wrap_HelpProvider_Destroy(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39687 PyObject *resultobj = 0;
39688 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
39689 void *argp1 = 0 ;
39690 int res1 = 0 ;
39691 PyObject *swig_obj[1] ;
39692
39693 if (!args) SWIG_fail;
39694 swig_obj[0] = args;
39695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHelpProvider, 0 | 0 );
39696 if (!SWIG_IsOK(res1)) {
39697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HelpProvider_Destroy" "', expected argument " "1"" of type '" "wxHelpProvider *""'");
39698 }
39699 arg1 = reinterpret_cast< wxHelpProvider * >(argp1);
39700 {
39701 PyThreadState* __tstate = wxPyBeginAllowThreads();
39702 wxHelpProvider_Destroy(arg1);
39703 wxPyEndAllowThreads(__tstate);
39704 if (PyErr_Occurred()) SWIG_fail;
39705 }
39706 resultobj = SWIG_Py_Void();
39707 return resultobj;
39708 fail:
39709 return NULL;
39710 }
39711
39712
39713 SWIGINTERN PyObject *HelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39714 PyObject *obj;
39715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39716 SWIG_TypeNewClientData(SWIGTYPE_p_wxHelpProvider, SWIG_NewClientData(obj));
39717 return SWIG_Py_Void();
39718 }
39719
39720 SWIGINTERN PyObject *_wrap_new_SimpleHelpProvider(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39721 PyObject *resultobj = 0;
39722 wxSimpleHelpProvider *result = 0 ;
39723
39724 if (!SWIG_Python_UnpackTuple(args,"new_SimpleHelpProvider",0,0,0)) SWIG_fail;
39725 {
39726 PyThreadState* __tstate = wxPyBeginAllowThreads();
39727 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
39728 wxPyEndAllowThreads(__tstate);
39729 if (PyErr_Occurred()) SWIG_fail;
39730 }
39731 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSimpleHelpProvider, SWIG_POINTER_NEW | 0 );
39732 return resultobj;
39733 fail:
39734 return NULL;
39735 }
39736
39737
39738 SWIGINTERN PyObject *SimpleHelpProvider_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39739 PyObject *obj;
39740 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
39741 SWIG_TypeNewClientData(SWIGTYPE_p_wxSimpleHelpProvider, SWIG_NewClientData(obj));
39742 return SWIG_Py_Void();
39743 }
39744
39745 SWIGINTERN PyObject *SimpleHelpProvider_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39746 return SWIG_Python_InitShadowInstance(args);
39747 }
39748
39749 SWIGINTERN PyObject *_wrap_new_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39750 PyObject *resultobj = 0;
39751 wxBitmap *arg1 = 0 ;
39752 wxCursor const &arg2_defvalue = wxNullCursor ;
39753 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39754 wxGenericDragImage *result = 0 ;
39755 void *argp1 = 0 ;
39756 int res1 = 0 ;
39757 void *argp2 = 0 ;
39758 int res2 = 0 ;
39759 PyObject * obj0 = 0 ;
39760 PyObject * obj1 = 0 ;
39761 char * kwnames[] = {
39762 (char *) "image",(char *) "cursor", NULL
39763 };
39764
39765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) SWIG_fail;
39766 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
39767 if (!SWIG_IsOK(res1)) {
39768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39769 }
39770 if (!argp1) {
39771 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "1"" of type '" "wxBitmap const &""'");
39772 }
39773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
39774 if (obj1) {
39775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39776 if (!SWIG_IsOK(res2)) {
39777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39778 }
39779 if (!argp2) {
39780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragImage" "', expected argument " "2"" of type '" "wxCursor const &""'");
39781 }
39782 arg2 = reinterpret_cast< wxCursor * >(argp2);
39783 }
39784 {
39785 if (!wxPyCheckForApp()) SWIG_fail;
39786 PyThreadState* __tstate = wxPyBeginAllowThreads();
39787 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
39788 wxPyEndAllowThreads(__tstate);
39789 if (PyErr_Occurred()) SWIG_fail;
39790 }
39791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_NEW | 0 );
39792 return resultobj;
39793 fail:
39794 return NULL;
39795 }
39796
39797
39798 SWIGINTERN PyObject *_wrap_new_DragIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39799 PyObject *resultobj = 0;
39800 wxIcon *arg1 = 0 ;
39801 wxCursor const &arg2_defvalue = wxNullCursor ;
39802 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39803 wxGenericDragImage *result = 0 ;
39804 void *argp1 = 0 ;
39805 int res1 = 0 ;
39806 void *argp2 = 0 ;
39807 int res2 = 0 ;
39808 PyObject * obj0 = 0 ;
39809 PyObject * obj1 = 0 ;
39810 char * kwnames[] = {
39811 (char *) "image",(char *) "cursor", NULL
39812 };
39813
39814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) SWIG_fail;
39815 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
39816 if (!SWIG_IsOK(res1)) {
39817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39818 }
39819 if (!argp1) {
39820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
39821 }
39822 arg1 = reinterpret_cast< wxIcon * >(argp1);
39823 if (obj1) {
39824 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39825 if (!SWIG_IsOK(res2)) {
39826 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39827 }
39828 if (!argp2) {
39829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragIcon" "', expected argument " "2"" of type '" "wxCursor const &""'");
39830 }
39831 arg2 = reinterpret_cast< wxCursor * >(argp2);
39832 }
39833 {
39834 if (!wxPyCheckForApp()) SWIG_fail;
39835 PyThreadState* __tstate = wxPyBeginAllowThreads();
39836 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
39837 wxPyEndAllowThreads(__tstate);
39838 if (PyErr_Occurred()) SWIG_fail;
39839 }
39840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39841 return resultobj;
39842 fail:
39843 return NULL;
39844 }
39845
39846
39847 SWIGINTERN PyObject *_wrap_new_DragString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39848 PyObject *resultobj = 0;
39849 wxString *arg1 = 0 ;
39850 wxCursor const &arg2_defvalue = wxNullCursor ;
39851 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
39852 wxGenericDragImage *result = 0 ;
39853 bool temp1 = false ;
39854 void *argp2 = 0 ;
39855 int res2 = 0 ;
39856 PyObject * obj0 = 0 ;
39857 PyObject * obj1 = 0 ;
39858 char * kwnames[] = {
39859 (char *) "str",(char *) "cursor", NULL
39860 };
39861
39862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) SWIG_fail;
39863 {
39864 arg1 = wxString_in_helper(obj0);
39865 if (arg1 == NULL) SWIG_fail;
39866 temp1 = true;
39867 }
39868 if (obj1) {
39869 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
39870 if (!SWIG_IsOK(res2)) {
39871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39872 }
39873 if (!argp2) {
39874 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragString" "', expected argument " "2"" of type '" "wxCursor const &""'");
39875 }
39876 arg2 = reinterpret_cast< wxCursor * >(argp2);
39877 }
39878 {
39879 if (!wxPyCheckForApp()) SWIG_fail;
39880 PyThreadState* __tstate = wxPyBeginAllowThreads();
39881 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
39882 wxPyEndAllowThreads(__tstate);
39883 if (PyErr_Occurred()) SWIG_fail;
39884 }
39885 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39886 {
39887 if (temp1)
39888 delete arg1;
39889 }
39890 return resultobj;
39891 fail:
39892 {
39893 if (temp1)
39894 delete arg1;
39895 }
39896 return NULL;
39897 }
39898
39899
39900 SWIGINTERN PyObject *_wrap_new_DragTreeItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39901 PyObject *resultobj = 0;
39902 wxPyTreeCtrl *arg1 = 0 ;
39903 wxTreeItemId *arg2 = 0 ;
39904 wxGenericDragImage *result = 0 ;
39905 void *argp1 = 0 ;
39906 int res1 = 0 ;
39907 void *argp2 = 0 ;
39908 int res2 = 0 ;
39909 PyObject * obj0 = 0 ;
39910 PyObject * obj1 = 0 ;
39911 char * kwnames[] = {
39912 (char *) "treeCtrl",(char *) "id", NULL
39913 };
39914
39915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) SWIG_fail;
39916 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyTreeCtrl, 0 | 0);
39917 if (!SWIG_IsOK(res1)) {
39918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39919 }
39920 if (!argp1) {
39921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "1"" of type '" "wxPyTreeCtrl const &""'");
39922 }
39923 arg1 = reinterpret_cast< wxPyTreeCtrl * >(argp1);
39924 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxTreeItemId, 0 );
39925 if (!SWIG_IsOK(res2)) {
39926 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39927 }
39928 if (!argp2) {
39929 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragTreeItem" "', expected argument " "2"" of type '" "wxTreeItemId &""'");
39930 }
39931 arg2 = reinterpret_cast< wxTreeItemId * >(argp2);
39932 {
39933 if (!wxPyCheckForApp()) SWIG_fail;
39934 PyThreadState* __tstate = wxPyBeginAllowThreads();
39935 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
39936 wxPyEndAllowThreads(__tstate);
39937 if (PyErr_Occurred()) SWIG_fail;
39938 }
39939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39940 return resultobj;
39941 fail:
39942 return NULL;
39943 }
39944
39945
39946 SWIGINTERN PyObject *_wrap_new_DragListItem(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
39947 PyObject *resultobj = 0;
39948 wxPyListCtrl *arg1 = 0 ;
39949 long arg2 ;
39950 wxGenericDragImage *result = 0 ;
39951 void *argp1 = 0 ;
39952 int res1 = 0 ;
39953 long val2 ;
39954 int ecode2 = 0 ;
39955 PyObject * obj0 = 0 ;
39956 PyObject * obj1 = 0 ;
39957 char * kwnames[] = {
39958 (char *) "listCtrl",(char *) "id", NULL
39959 };
39960
39961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) SWIG_fail;
39962 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPyListCtrl, 0 | 0);
39963 if (!SWIG_IsOK(res1)) {
39964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39965 }
39966 if (!argp1) {
39967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DragListItem" "', expected argument " "1"" of type '" "wxPyListCtrl const &""'");
39968 }
39969 arg1 = reinterpret_cast< wxPyListCtrl * >(argp1);
39970 ecode2 = SWIG_AsVal_long(obj1, &val2);
39971 if (!SWIG_IsOK(ecode2)) {
39972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DragListItem" "', expected argument " "2"" of type '" "long""'");
39973 }
39974 arg2 = static_cast< long >(val2);
39975 {
39976 if (!wxPyCheckForApp()) SWIG_fail;
39977 PyThreadState* __tstate = wxPyBeginAllowThreads();
39978 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
39979 wxPyEndAllowThreads(__tstate);
39980 if (PyErr_Occurred()) SWIG_fail;
39981 }
39982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_OWN | 0 );
39983 return resultobj;
39984 fail:
39985 return NULL;
39986 }
39987
39988
39989 SWIGINTERN PyObject *_wrap_delete_DragImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
39990 PyObject *resultobj = 0;
39991 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
39992 void *argp1 = 0 ;
39993 int res1 = 0 ;
39994 PyObject *swig_obj[1] ;
39995
39996 if (!args) SWIG_fail;
39997 swig_obj[0] = args;
39998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, SWIG_POINTER_DISOWN | 0 );
39999 if (!SWIG_IsOK(res1)) {
40000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DragImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40001 }
40002 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40003 {
40004 PyThreadState* __tstate = wxPyBeginAllowThreads();
40005 delete arg1;
40006
40007 wxPyEndAllowThreads(__tstate);
40008 if (PyErr_Occurred()) SWIG_fail;
40009 }
40010 resultobj = SWIG_Py_Void();
40011 return resultobj;
40012 fail:
40013 return NULL;
40014 }
40015
40016
40017 SWIGINTERN PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40018 PyObject *resultobj = 0;
40019 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40020 wxBitmap *arg2 = (wxBitmap *) 0 ;
40021 void *argp1 = 0 ;
40022 int res1 = 0 ;
40023 void *argp2 = 0 ;
40024 int res2 = 0 ;
40025 PyObject * obj0 = 0 ;
40026 PyObject * obj1 = 0 ;
40027 char * kwnames[] = {
40028 (char *) "self",(char *) "bitmap", NULL
40029 };
40030
40031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
40032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40033 if (!SWIG_IsOK(res1)) {
40034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40035 }
40036 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40037 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
40038 if (!SWIG_IsOK(res2)) {
40039 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_SetBackingBitmap" "', expected argument " "2"" of type '" "wxBitmap *""'");
40040 }
40041 arg2 = reinterpret_cast< wxBitmap * >(argp2);
40042 {
40043 PyThreadState* __tstate = wxPyBeginAllowThreads();
40044 (arg1)->SetBackingBitmap(arg2);
40045 wxPyEndAllowThreads(__tstate);
40046 if (PyErr_Occurred()) SWIG_fail;
40047 }
40048 resultobj = SWIG_Py_Void();
40049 return resultobj;
40050 fail:
40051 return NULL;
40052 }
40053
40054
40055 SWIGINTERN PyObject *_wrap_DragImage_BeginDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40056 PyObject *resultobj = 0;
40057 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40058 wxPoint *arg2 = 0 ;
40059 wxWindow *arg3 = (wxWindow *) 0 ;
40060 bool arg4 = (bool) false ;
40061 wxRect *arg5 = (wxRect *) NULL ;
40062 bool result;
40063 void *argp1 = 0 ;
40064 int res1 = 0 ;
40065 wxPoint temp2 ;
40066 void *argp3 = 0 ;
40067 int res3 = 0 ;
40068 bool val4 ;
40069 int ecode4 = 0 ;
40070 void *argp5 = 0 ;
40071 int res5 = 0 ;
40072 PyObject * obj0 = 0 ;
40073 PyObject * obj1 = 0 ;
40074 PyObject * obj2 = 0 ;
40075 PyObject * obj3 = 0 ;
40076 PyObject * obj4 = 0 ;
40077 char * kwnames[] = {
40078 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
40079 };
40080
40081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40083 if (!SWIG_IsOK(res1)) {
40084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40085 }
40086 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40087 {
40088 arg2 = &temp2;
40089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40090 }
40091 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40092 if (!SWIG_IsOK(res3)) {
40093 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDrag" "', expected argument " "3"" of type '" "wxWindow *""'");
40094 }
40095 arg3 = reinterpret_cast< wxWindow * >(argp3);
40096 if (obj3) {
40097 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40098 if (!SWIG_IsOK(ecode4)) {
40099 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_BeginDrag" "', expected argument " "4"" of type '" "bool""'");
40100 }
40101 arg4 = static_cast< bool >(val4);
40102 }
40103 if (obj4) {
40104 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxRect, 0 | 0 );
40105 if (!SWIG_IsOK(res5)) {
40106 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "DragImage_BeginDrag" "', expected argument " "5"" of type '" "wxRect *""'");
40107 }
40108 arg5 = reinterpret_cast< wxRect * >(argp5);
40109 }
40110 {
40111 PyThreadState* __tstate = wxPyBeginAllowThreads();
40112 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
40113 wxPyEndAllowThreads(__tstate);
40114 if (PyErr_Occurred()) SWIG_fail;
40115 }
40116 {
40117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40118 }
40119 return resultobj;
40120 fail:
40121 return NULL;
40122 }
40123
40124
40125 SWIGINTERN PyObject *_wrap_DragImage_BeginDragBounded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40126 PyObject *resultobj = 0;
40127 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40128 wxPoint *arg2 = 0 ;
40129 wxWindow *arg3 = (wxWindow *) 0 ;
40130 wxWindow *arg4 = (wxWindow *) 0 ;
40131 bool result;
40132 void *argp1 = 0 ;
40133 int res1 = 0 ;
40134 wxPoint temp2 ;
40135 void *argp3 = 0 ;
40136 int res3 = 0 ;
40137 void *argp4 = 0 ;
40138 int res4 = 0 ;
40139 PyObject * obj0 = 0 ;
40140 PyObject * obj1 = 0 ;
40141 PyObject * obj2 = 0 ;
40142 PyObject * obj3 = 0 ;
40143 char * kwnames[] = {
40144 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
40145 };
40146
40147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
40148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40149 if (!SWIG_IsOK(res1)) {
40150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_BeginDragBounded" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40151 }
40152 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40153 {
40154 arg2 = &temp2;
40155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40156 }
40157 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxWindow, 0 | 0 );
40158 if (!SWIG_IsOK(res3)) {
40159 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_BeginDragBounded" "', expected argument " "3"" of type '" "wxWindow *""'");
40160 }
40161 arg3 = reinterpret_cast< wxWindow * >(argp3);
40162 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxWindow, 0 | 0 );
40163 if (!SWIG_IsOK(res4)) {
40164 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DragImage_BeginDragBounded" "', expected argument " "4"" of type '" "wxWindow *""'");
40165 }
40166 arg4 = reinterpret_cast< wxWindow * >(argp4);
40167 {
40168 PyThreadState* __tstate = wxPyBeginAllowThreads();
40169 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
40170 wxPyEndAllowThreads(__tstate);
40171 if (PyErr_Occurred()) SWIG_fail;
40172 }
40173 {
40174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40175 }
40176 return resultobj;
40177 fail:
40178 return NULL;
40179 }
40180
40181
40182 SWIGINTERN PyObject *_wrap_DragImage_EndDrag(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40183 PyObject *resultobj = 0;
40184 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40185 bool result;
40186 void *argp1 = 0 ;
40187 int res1 = 0 ;
40188 PyObject *swig_obj[1] ;
40189
40190 if (!args) SWIG_fail;
40191 swig_obj[0] = args;
40192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40193 if (!SWIG_IsOK(res1)) {
40194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_EndDrag" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40195 }
40196 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40197 {
40198 PyThreadState* __tstate = wxPyBeginAllowThreads();
40199 result = (bool)(arg1)->EndDrag();
40200 wxPyEndAllowThreads(__tstate);
40201 if (PyErr_Occurred()) SWIG_fail;
40202 }
40203 {
40204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40205 }
40206 return resultobj;
40207 fail:
40208 return NULL;
40209 }
40210
40211
40212 SWIGINTERN PyObject *_wrap_DragImage_Move(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40213 PyObject *resultobj = 0;
40214 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40215 wxPoint *arg2 = 0 ;
40216 bool result;
40217 void *argp1 = 0 ;
40218 int res1 = 0 ;
40219 wxPoint temp2 ;
40220 PyObject * obj0 = 0 ;
40221 PyObject * obj1 = 0 ;
40222 char * kwnames[] = {
40223 (char *) "self",(char *) "pt", NULL
40224 };
40225
40226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) SWIG_fail;
40227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40228 if (!SWIG_IsOK(res1)) {
40229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Move" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40230 }
40231 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40232 {
40233 arg2 = &temp2;
40234 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40235 }
40236 {
40237 PyThreadState* __tstate = wxPyBeginAllowThreads();
40238 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
40239 wxPyEndAllowThreads(__tstate);
40240 if (PyErr_Occurred()) SWIG_fail;
40241 }
40242 {
40243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40244 }
40245 return resultobj;
40246 fail:
40247 return NULL;
40248 }
40249
40250
40251 SWIGINTERN PyObject *_wrap_DragImage_Show(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40252 PyObject *resultobj = 0;
40253 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40254 bool result;
40255 void *argp1 = 0 ;
40256 int res1 = 0 ;
40257 PyObject *swig_obj[1] ;
40258
40259 if (!args) SWIG_fail;
40260 swig_obj[0] = args;
40261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40262 if (!SWIG_IsOK(res1)) {
40263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Show" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40264 }
40265 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40266 {
40267 PyThreadState* __tstate = wxPyBeginAllowThreads();
40268 result = (bool)(arg1)->Show();
40269 wxPyEndAllowThreads(__tstate);
40270 if (PyErr_Occurred()) SWIG_fail;
40271 }
40272 {
40273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40274 }
40275 return resultobj;
40276 fail:
40277 return NULL;
40278 }
40279
40280
40281 SWIGINTERN PyObject *_wrap_DragImage_Hide(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40282 PyObject *resultobj = 0;
40283 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40284 bool result;
40285 void *argp1 = 0 ;
40286 int res1 = 0 ;
40287 PyObject *swig_obj[1] ;
40288
40289 if (!args) SWIG_fail;
40290 swig_obj[0] = args;
40291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40292 if (!SWIG_IsOK(res1)) {
40293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_Hide" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40294 }
40295 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40296 {
40297 PyThreadState* __tstate = wxPyBeginAllowThreads();
40298 result = (bool)(arg1)->Hide();
40299 wxPyEndAllowThreads(__tstate);
40300 if (PyErr_Occurred()) SWIG_fail;
40301 }
40302 {
40303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40304 }
40305 return resultobj;
40306 fail:
40307 return NULL;
40308 }
40309
40310
40311 SWIGINTERN PyObject *_wrap_DragImage_GetImageRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40312 PyObject *resultobj = 0;
40313 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40314 wxPoint *arg2 = 0 ;
40315 wxRect result;
40316 void *argp1 = 0 ;
40317 int res1 = 0 ;
40318 wxPoint temp2 ;
40319 PyObject * obj0 = 0 ;
40320 PyObject * obj1 = 0 ;
40321 char * kwnames[] = {
40322 (char *) "self",(char *) "pos", NULL
40323 };
40324
40325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) SWIG_fail;
40326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40327 if (!SWIG_IsOK(res1)) {
40328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_GetImageRect" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40329 }
40330 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40331 {
40332 arg2 = &temp2;
40333 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40334 }
40335 {
40336 PyThreadState* __tstate = wxPyBeginAllowThreads();
40337 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
40338 wxPyEndAllowThreads(__tstate);
40339 if (PyErr_Occurred()) SWIG_fail;
40340 }
40341 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
40342 return resultobj;
40343 fail:
40344 return NULL;
40345 }
40346
40347
40348 SWIGINTERN PyObject *_wrap_DragImage_DoDrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40349 PyObject *resultobj = 0;
40350 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40351 wxDC *arg2 = 0 ;
40352 wxPoint *arg3 = 0 ;
40353 bool result;
40354 void *argp1 = 0 ;
40355 int res1 = 0 ;
40356 void *argp2 = 0 ;
40357 int res2 = 0 ;
40358 wxPoint temp3 ;
40359 PyObject * obj0 = 0 ;
40360 PyObject * obj1 = 0 ;
40361 PyObject * obj2 = 0 ;
40362 char * kwnames[] = {
40363 (char *) "self",(char *) "dc",(char *) "pos", NULL
40364 };
40365
40366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40368 if (!SWIG_IsOK(res1)) {
40369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_DoDrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40370 }
40371 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40372 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40373 if (!SWIG_IsOK(res2)) {
40374 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40375 }
40376 if (!argp2) {
40377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_DoDrawImage" "', expected argument " "2"" of type '" "wxDC &""'");
40378 }
40379 arg2 = reinterpret_cast< wxDC * >(argp2);
40380 {
40381 arg3 = &temp3;
40382 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40383 }
40384 {
40385 PyThreadState* __tstate = wxPyBeginAllowThreads();
40386 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
40387 wxPyEndAllowThreads(__tstate);
40388 if (PyErr_Occurred()) SWIG_fail;
40389 }
40390 {
40391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40392 }
40393 return resultobj;
40394 fail:
40395 return NULL;
40396 }
40397
40398
40399 SWIGINTERN PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40400 PyObject *resultobj = 0;
40401 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40402 wxDC *arg2 = 0 ;
40403 wxMemoryDC *arg3 = 0 ;
40404 wxRect *arg4 = 0 ;
40405 wxRect *arg5 = 0 ;
40406 bool result;
40407 void *argp1 = 0 ;
40408 int res1 = 0 ;
40409 void *argp2 = 0 ;
40410 int res2 = 0 ;
40411 void *argp3 = 0 ;
40412 int res3 = 0 ;
40413 wxRect temp4 ;
40414 wxRect temp5 ;
40415 PyObject * obj0 = 0 ;
40416 PyObject * obj1 = 0 ;
40417 PyObject * obj2 = 0 ;
40418 PyObject * obj3 = 0 ;
40419 PyObject * obj4 = 0 ;
40420 char * kwnames[] = {
40421 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
40422 };
40423
40424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40426 if (!SWIG_IsOK(res1)) {
40427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "1"" of type '" "wxGenericDragImage const *""'");
40428 }
40429 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40430 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
40431 if (!SWIG_IsOK(res2)) {
40432 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40433 }
40434 if (!argp2) {
40435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "2"" of type '" "wxDC &""'");
40436 }
40437 arg2 = reinterpret_cast< wxDC * >(argp2);
40438 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxMemoryDC, 0 );
40439 if (!SWIG_IsOK(res3)) {
40440 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40441 }
40442 if (!argp3) {
40443 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DragImage_UpdateBackingFromWindow" "', expected argument " "3"" of type '" "wxMemoryDC &""'");
40444 }
40445 arg3 = reinterpret_cast< wxMemoryDC * >(argp3);
40446 {
40447 arg4 = &temp4;
40448 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
40449 }
40450 {
40451 arg5 = &temp5;
40452 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
40453 }
40454 {
40455 PyThreadState* __tstate = wxPyBeginAllowThreads();
40456 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
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_RedrawImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40470 PyObject *resultobj = 0;
40471 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
40472 wxPoint *arg2 = 0 ;
40473 wxPoint *arg3 = 0 ;
40474 bool arg4 ;
40475 bool arg5 ;
40476 bool result;
40477 void *argp1 = 0 ;
40478 int res1 = 0 ;
40479 wxPoint temp2 ;
40480 wxPoint temp3 ;
40481 bool val4 ;
40482 int ecode4 = 0 ;
40483 bool val5 ;
40484 int ecode5 = 0 ;
40485 PyObject * obj0 = 0 ;
40486 PyObject * obj1 = 0 ;
40487 PyObject * obj2 = 0 ;
40488 PyObject * obj3 = 0 ;
40489 PyObject * obj4 = 0 ;
40490 char * kwnames[] = {
40491 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
40492 };
40493
40494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
40495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGenericDragImage, 0 | 0 );
40496 if (!SWIG_IsOK(res1)) {
40497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DragImage_RedrawImage" "', expected argument " "1"" of type '" "wxGenericDragImage *""'");
40498 }
40499 arg1 = reinterpret_cast< wxGenericDragImage * >(argp1);
40500 {
40501 arg2 = &temp2;
40502 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
40503 }
40504 {
40505 arg3 = &temp3;
40506 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
40507 }
40508 ecode4 = SWIG_AsVal_bool(obj3, &val4);
40509 if (!SWIG_IsOK(ecode4)) {
40510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DragImage_RedrawImage" "', expected argument " "4"" of type '" "bool""'");
40511 }
40512 arg4 = static_cast< bool >(val4);
40513 ecode5 = SWIG_AsVal_bool(obj4, &val5);
40514 if (!SWIG_IsOK(ecode5)) {
40515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DragImage_RedrawImage" "', expected argument " "5"" of type '" "bool""'");
40516 }
40517 arg5 = static_cast< bool >(val5);
40518 {
40519 PyThreadState* __tstate = wxPyBeginAllowThreads();
40520 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
40521 wxPyEndAllowThreads(__tstate);
40522 if (PyErr_Occurred()) SWIG_fail;
40523 }
40524 {
40525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40526 }
40527 return resultobj;
40528 fail:
40529 return NULL;
40530 }
40531
40532
40533 SWIGINTERN PyObject *DragImage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40534 PyObject *obj;
40535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
40536 SWIG_TypeNewClientData(SWIGTYPE_p_wxGenericDragImage, SWIG_NewClientData(obj));
40537 return SWIG_Py_Void();
40538 }
40539
40540 SWIGINTERN PyObject *DragImage_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40541 return SWIG_Python_InitShadowInstance(args);
40542 }
40543
40544 SWIGINTERN int DatePickerCtrlNameStr_set(PyObject *) {
40545 SWIG_Error(SWIG_AttributeError,"Variable DatePickerCtrlNameStr is read-only.");
40546 return 1;
40547 }
40548
40549
40550 SWIGINTERN PyObject *DatePickerCtrlNameStr_get(void) {
40551 PyObject *pyobj = 0;
40552
40553 {
40554 #if wxUSE_UNICODE
40555 pyobj = PyUnicode_FromWideChar((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40556 #else
40557 pyobj = PyString_FromStringAndSize((&wxPyDatePickerCtrlNameStr)->c_str(), (&wxPyDatePickerCtrlNameStr)->Len());
40558 #endif
40559 }
40560 return pyobj;
40561 }
40562
40563
40564 SWIGINTERN PyObject *_wrap_new_DatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40565 PyObject *resultobj = 0;
40566 wxWindow *arg1 = (wxWindow *) 0 ;
40567 int arg2 = (int) -1 ;
40568 wxDateTime const &arg3_defvalue = wxDefaultDateTime ;
40569 wxDateTime *arg3 = (wxDateTime *) &arg3_defvalue ;
40570 wxPoint const &arg4_defvalue = wxDefaultPosition ;
40571 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
40572 wxSize const &arg5_defvalue = wxDefaultSize ;
40573 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
40574 long arg6 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40575 wxValidator const &arg7_defvalue = wxDefaultValidator ;
40576 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
40577 wxString const &arg8_defvalue = wxPyDatePickerCtrlNameStr ;
40578 wxString *arg8 = (wxString *) &arg8_defvalue ;
40579 wxDatePickerCtrl *result = 0 ;
40580 void *argp1 = 0 ;
40581 int res1 = 0 ;
40582 int val2 ;
40583 int ecode2 = 0 ;
40584 void *argp3 = 0 ;
40585 int res3 = 0 ;
40586 wxPoint temp4 ;
40587 wxSize temp5 ;
40588 long val6 ;
40589 int ecode6 = 0 ;
40590 void *argp7 = 0 ;
40591 int res7 = 0 ;
40592 bool temp8 = false ;
40593 PyObject * obj0 = 0 ;
40594 PyObject * obj1 = 0 ;
40595 PyObject * obj2 = 0 ;
40596 PyObject * obj3 = 0 ;
40597 PyObject * obj4 = 0 ;
40598 PyObject * obj5 = 0 ;
40599 PyObject * obj6 = 0 ;
40600 PyObject * obj7 = 0 ;
40601 char * kwnames[] = {
40602 (char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40603 };
40604
40605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_DatePickerCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
40606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
40607 if (!SWIG_IsOK(res1)) {
40608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DatePickerCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
40609 }
40610 arg1 = reinterpret_cast< wxWindow * >(argp1);
40611 if (obj1) {
40612 ecode2 = SWIG_AsVal_int(obj1, &val2);
40613 if (!SWIG_IsOK(ecode2)) {
40614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DatePickerCtrl" "', expected argument " "2"" of type '" "int""'");
40615 }
40616 arg2 = static_cast< int >(val2);
40617 }
40618 if (obj2) {
40619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40620 if (!SWIG_IsOK(res3)) {
40621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40622 }
40623 if (!argp3) {
40624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40625 }
40626 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40627 }
40628 if (obj3) {
40629 {
40630 arg4 = &temp4;
40631 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
40632 }
40633 }
40634 if (obj4) {
40635 {
40636 arg5 = &temp5;
40637 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
40638 }
40639 }
40640 if (obj5) {
40641 ecode6 = SWIG_AsVal_long(obj5, &val6);
40642 if (!SWIG_IsOK(ecode6)) {
40643 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DatePickerCtrl" "', expected argument " "6"" of type '" "long""'");
40644 }
40645 arg6 = static_cast< long >(val6);
40646 }
40647 if (obj6) {
40648 res7 = SWIG_ConvertPtr(obj6, &argp7, SWIGTYPE_p_wxValidator, 0 | 0);
40649 if (!SWIG_IsOK(res7)) {
40650 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40651 }
40652 if (!argp7) {
40653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DatePickerCtrl" "', expected argument " "7"" of type '" "wxValidator const &""'");
40654 }
40655 arg7 = reinterpret_cast< wxValidator * >(argp7);
40656 }
40657 if (obj7) {
40658 {
40659 arg8 = wxString_in_helper(obj7);
40660 if (arg8 == NULL) SWIG_fail;
40661 temp8 = true;
40662 }
40663 }
40664 {
40665 if (!wxPyCheckForApp()) SWIG_fail;
40666 PyThreadState* __tstate = wxPyBeginAllowThreads();
40667 result = (wxDatePickerCtrl *)new wxDatePickerCtrl(arg1,arg2,(wxDateTime const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
40668 wxPyEndAllowThreads(__tstate);
40669 if (PyErr_Occurred()) SWIG_fail;
40670 }
40671 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_NEW | 0 );
40672 {
40673 if (temp8)
40674 delete arg8;
40675 }
40676 return resultobj;
40677 fail:
40678 {
40679 if (temp8)
40680 delete arg8;
40681 }
40682 return NULL;
40683 }
40684
40685
40686 SWIGINTERN PyObject *_wrap_new_PreDatePickerCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40687 PyObject *resultobj = 0;
40688 wxDatePickerCtrl *result = 0 ;
40689
40690 if (!SWIG_Python_UnpackTuple(args,"new_PreDatePickerCtrl",0,0,0)) SWIG_fail;
40691 {
40692 if (!wxPyCheckForApp()) SWIG_fail;
40693 PyThreadState* __tstate = wxPyBeginAllowThreads();
40694 result = (wxDatePickerCtrl *)new wxDatePickerCtrl();
40695 wxPyEndAllowThreads(__tstate);
40696 if (PyErr_Occurred()) SWIG_fail;
40697 }
40698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDatePickerCtrl, SWIG_POINTER_OWN | 0 );
40699 return resultobj;
40700 fail:
40701 return NULL;
40702 }
40703
40704
40705 SWIGINTERN PyObject *_wrap_DatePickerCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40706 PyObject *resultobj = 0;
40707 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40708 wxWindow *arg2 = (wxWindow *) 0 ;
40709 int arg3 = (int) -1 ;
40710 wxDateTime const &arg4_defvalue = wxDefaultDateTime ;
40711 wxDateTime *arg4 = (wxDateTime *) &arg4_defvalue ;
40712 wxPoint const &arg5_defvalue = wxDefaultPosition ;
40713 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
40714 wxSize const &arg6_defvalue = wxDefaultSize ;
40715 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
40716 long arg7 = (long) wxDP_DEFAULT|wxDP_SHOWCENTURY ;
40717 wxValidator const &arg8_defvalue = wxDefaultValidator ;
40718 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
40719 wxString const &arg9_defvalue = wxPyDatePickerCtrlNameStr ;
40720 wxString *arg9 = (wxString *) &arg9_defvalue ;
40721 bool result;
40722 void *argp1 = 0 ;
40723 int res1 = 0 ;
40724 void *argp2 = 0 ;
40725 int res2 = 0 ;
40726 int val3 ;
40727 int ecode3 = 0 ;
40728 void *argp4 = 0 ;
40729 int res4 = 0 ;
40730 wxPoint temp5 ;
40731 wxSize temp6 ;
40732 long val7 ;
40733 int ecode7 = 0 ;
40734 void *argp8 = 0 ;
40735 int res8 = 0 ;
40736 bool temp9 = false ;
40737 PyObject * obj0 = 0 ;
40738 PyObject * obj1 = 0 ;
40739 PyObject * obj2 = 0 ;
40740 PyObject * obj3 = 0 ;
40741 PyObject * obj4 = 0 ;
40742 PyObject * obj5 = 0 ;
40743 PyObject * obj6 = 0 ;
40744 PyObject * obj7 = 0 ;
40745 PyObject * obj8 = 0 ;
40746 char * kwnames[] = {
40747 (char *) "self",(char *) "parent",(char *) "id",(char *) "dt",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
40748 };
40749
40750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:DatePickerCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
40751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40752 if (!SWIG_IsOK(res1)) {
40753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_Create" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40754 }
40755 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40756 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
40757 if (!SWIG_IsOK(res2)) {
40758 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
40759 }
40760 arg2 = reinterpret_cast< wxWindow * >(argp2);
40761 if (obj2) {
40762 ecode3 = SWIG_AsVal_int(obj2, &val3);
40763 if (!SWIG_IsOK(ecode3)) {
40764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DatePickerCtrl_Create" "', expected argument " "3"" of type '" "int""'");
40765 }
40766 arg3 = static_cast< int >(val3);
40767 }
40768 if (obj3) {
40769 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxDateTime, 0 | 0);
40770 if (!SWIG_IsOK(res4)) {
40771 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40772 }
40773 if (!argp4) {
40774 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "4"" of type '" "wxDateTime const &""'");
40775 }
40776 arg4 = reinterpret_cast< wxDateTime * >(argp4);
40777 }
40778 if (obj4) {
40779 {
40780 arg5 = &temp5;
40781 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
40782 }
40783 }
40784 if (obj5) {
40785 {
40786 arg6 = &temp6;
40787 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
40788 }
40789 }
40790 if (obj6) {
40791 ecode7 = SWIG_AsVal_long(obj6, &val7);
40792 if (!SWIG_IsOK(ecode7)) {
40793 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DatePickerCtrl_Create" "', expected argument " "7"" of type '" "long""'");
40794 }
40795 arg7 = static_cast< long >(val7);
40796 }
40797 if (obj7) {
40798 res8 = SWIG_ConvertPtr(obj7, &argp8, SWIGTYPE_p_wxValidator, 0 | 0);
40799 if (!SWIG_IsOK(res8)) {
40800 SWIG_exception_fail(SWIG_ArgError(res8), "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40801 }
40802 if (!argp8) {
40803 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_Create" "', expected argument " "8"" of type '" "wxValidator const &""'");
40804 }
40805 arg8 = reinterpret_cast< wxValidator * >(argp8);
40806 }
40807 if (obj8) {
40808 {
40809 arg9 = wxString_in_helper(obj8);
40810 if (arg9 == NULL) SWIG_fail;
40811 temp9 = true;
40812 }
40813 }
40814 {
40815 PyThreadState* __tstate = wxPyBeginAllowThreads();
40816 result = (bool)(arg1)->Create(arg2,arg3,(wxDateTime const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
40817 wxPyEndAllowThreads(__tstate);
40818 if (PyErr_Occurred()) SWIG_fail;
40819 }
40820 {
40821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
40822 }
40823 {
40824 if (temp9)
40825 delete arg9;
40826 }
40827 return resultobj;
40828 fail:
40829 {
40830 if (temp9)
40831 delete arg9;
40832 }
40833 return NULL;
40834 }
40835
40836
40837 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40838 PyObject *resultobj = 0;
40839 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40840 wxDateTime *arg2 = 0 ;
40841 void *argp1 = 0 ;
40842 int res1 = 0 ;
40843 void *argp2 = 0 ;
40844 int res2 = 0 ;
40845 PyObject * obj0 = 0 ;
40846 PyObject * obj1 = 0 ;
40847 char * kwnames[] = {
40848 (char *) "self",(char *) "dt", NULL
40849 };
40850
40851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DatePickerCtrl_SetValue",kwnames,&obj0,&obj1)) SWIG_fail;
40852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40853 if (!SWIG_IsOK(res1)) {
40854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40855 }
40856 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40858 if (!SWIG_IsOK(res2)) {
40859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40860 }
40861 if (!argp2) {
40862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetValue" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40863 }
40864 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40865 {
40866 PyThreadState* __tstate = wxPyBeginAllowThreads();
40867 (arg1)->SetValue((wxDateTime const &)*arg2);
40868 wxPyEndAllowThreads(__tstate);
40869 if (PyErr_Occurred()) SWIG_fail;
40870 }
40871 resultobj = SWIG_Py_Void();
40872 return resultobj;
40873 fail:
40874 return NULL;
40875 }
40876
40877
40878 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetValue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40879 PyObject *resultobj = 0;
40880 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40881 wxDateTime result;
40882 void *argp1 = 0 ;
40883 int res1 = 0 ;
40884 PyObject *swig_obj[1] ;
40885
40886 if (!args) SWIG_fail;
40887 swig_obj[0] = args;
40888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40889 if (!SWIG_IsOK(res1)) {
40890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetValue" "', expected argument " "1"" of type '" "wxDatePickerCtrl const *""'");
40891 }
40892 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40893 {
40894 PyThreadState* __tstate = wxPyBeginAllowThreads();
40895 result = ((wxDatePickerCtrl const *)arg1)->GetValue();
40896 wxPyEndAllowThreads(__tstate);
40897 if (PyErr_Occurred()) SWIG_fail;
40898 }
40899 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40900 return resultobj;
40901 fail:
40902 return NULL;
40903 }
40904
40905
40906 SWIGINTERN PyObject *_wrap_DatePickerCtrl_SetRange(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
40907 PyObject *resultobj = 0;
40908 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40909 wxDateTime *arg2 = 0 ;
40910 wxDateTime *arg3 = 0 ;
40911 void *argp1 = 0 ;
40912 int res1 = 0 ;
40913 void *argp2 = 0 ;
40914 int res2 = 0 ;
40915 void *argp3 = 0 ;
40916 int res3 = 0 ;
40917 PyObject * obj0 = 0 ;
40918 PyObject * obj1 = 0 ;
40919 PyObject * obj2 = 0 ;
40920 char * kwnames[] = {
40921 (char *) "self",(char *) "dt1",(char *) "dt2", NULL
40922 };
40923
40924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DatePickerCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
40925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40926 if (!SWIG_IsOK(res1)) {
40927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40928 }
40929 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40930 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDateTime, 0 | 0);
40931 if (!SWIG_IsOK(res2)) {
40932 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40933 }
40934 if (!argp2) {
40935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "2"" of type '" "wxDateTime const &""'");
40936 }
40937 arg2 = reinterpret_cast< wxDateTime * >(argp2);
40938 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDateTime, 0 | 0);
40939 if (!SWIG_IsOK(res3)) {
40940 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40941 }
40942 if (!argp3) {
40943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DatePickerCtrl_SetRange" "', expected argument " "3"" of type '" "wxDateTime const &""'");
40944 }
40945 arg3 = reinterpret_cast< wxDateTime * >(argp3);
40946 {
40947 PyThreadState* __tstate = wxPyBeginAllowThreads();
40948 (arg1)->SetRange((wxDateTime const &)*arg2,(wxDateTime const &)*arg3);
40949 wxPyEndAllowThreads(__tstate);
40950 if (PyErr_Occurred()) SWIG_fail;
40951 }
40952 resultobj = SWIG_Py_Void();
40953 return resultobj;
40954 fail:
40955 return NULL;
40956 }
40957
40958
40959 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetLowerLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40960 PyObject *resultobj = 0;
40961 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40962 wxDateTime result;
40963 void *argp1 = 0 ;
40964 int res1 = 0 ;
40965 PyObject *swig_obj[1] ;
40966
40967 if (!args) SWIG_fail;
40968 swig_obj[0] = args;
40969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40970 if (!SWIG_IsOK(res1)) {
40971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetLowerLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
40972 }
40973 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
40974 {
40975 PyThreadState* __tstate = wxPyBeginAllowThreads();
40976 result = wxDatePickerCtrl_GetLowerLimit(arg1);
40977 wxPyEndAllowThreads(__tstate);
40978 if (PyErr_Occurred()) SWIG_fail;
40979 }
40980 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
40981 return resultobj;
40982 fail:
40983 return NULL;
40984 }
40985
40986
40987 SWIGINTERN PyObject *_wrap_DatePickerCtrl_GetUpperLimit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
40988 PyObject *resultobj = 0;
40989 wxDatePickerCtrl *arg1 = (wxDatePickerCtrl *) 0 ;
40990 wxDateTime result;
40991 void *argp1 = 0 ;
40992 int res1 = 0 ;
40993 PyObject *swig_obj[1] ;
40994
40995 if (!args) SWIG_fail;
40996 swig_obj[0] = args;
40997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDatePickerCtrl, 0 | 0 );
40998 if (!SWIG_IsOK(res1)) {
40999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DatePickerCtrl_GetUpperLimit" "', expected argument " "1"" of type '" "wxDatePickerCtrl *""'");
41000 }
41001 arg1 = reinterpret_cast< wxDatePickerCtrl * >(argp1);
41002 {
41003 PyThreadState* __tstate = wxPyBeginAllowThreads();
41004 result = wxDatePickerCtrl_GetUpperLimit(arg1);
41005 wxPyEndAllowThreads(__tstate);
41006 if (PyErr_Occurred()) SWIG_fail;
41007 }
41008 resultobj = SWIG_NewPointerObj((new wxDateTime(static_cast< const wxDateTime& >(result))), SWIGTYPE_p_wxDateTime, SWIG_POINTER_OWN | 0 );
41009 return resultobj;
41010 fail:
41011 return NULL;
41012 }
41013
41014
41015 SWIGINTERN PyObject *DatePickerCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41016 PyObject *obj;
41017 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41018 SWIG_TypeNewClientData(SWIGTYPE_p_wxDatePickerCtrl, SWIG_NewClientData(obj));
41019 return SWIG_Py_Void();
41020 }
41021
41022 SWIGINTERN PyObject *DatePickerCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41023 return SWIG_Python_InitShadowInstance(args);
41024 }
41025
41026 SWIGINTERN int HyperlinkCtrlNameStr_set(PyObject *) {
41027 SWIG_Error(SWIG_AttributeError,"Variable HyperlinkCtrlNameStr is read-only.");
41028 return 1;
41029 }
41030
41031
41032 SWIGINTERN PyObject *HyperlinkCtrlNameStr_get(void) {
41033 PyObject *pyobj = 0;
41034
41035 {
41036 #if wxUSE_UNICODE
41037 pyobj = PyUnicode_FromWideChar((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41038 #else
41039 pyobj = PyString_FromStringAndSize((&wxPyHyperlinkCtrlNameStr)->c_str(), (&wxPyHyperlinkCtrlNameStr)->Len());
41040 #endif
41041 }
41042 return pyobj;
41043 }
41044
41045
41046 SWIGINTERN PyObject *_wrap_new_HyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41047 PyObject *resultobj = 0;
41048 wxWindow *arg1 = (wxWindow *) 0 ;
41049 int arg2 ;
41050 wxString *arg3 = 0 ;
41051 wxString *arg4 = 0 ;
41052 wxPoint const &arg5_defvalue = wxDefaultPosition ;
41053 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
41054 wxSize const &arg6_defvalue = wxDefaultSize ;
41055 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
41056 long arg7 = (long) wxHL_DEFAULT_STYLE ;
41057 wxString const &arg8_defvalue = wxPyHyperlinkCtrlNameStr ;
41058 wxString *arg8 = (wxString *) &arg8_defvalue ;
41059 wxHyperlinkCtrl *result = 0 ;
41060 void *argp1 = 0 ;
41061 int res1 = 0 ;
41062 int val2 ;
41063 int ecode2 = 0 ;
41064 bool temp3 = false ;
41065 bool temp4 = false ;
41066 wxPoint temp5 ;
41067 wxSize temp6 ;
41068 long val7 ;
41069 int ecode7 = 0 ;
41070 bool temp8 = false ;
41071 PyObject * obj0 = 0 ;
41072 PyObject * obj1 = 0 ;
41073 PyObject * obj2 = 0 ;
41074 PyObject * obj3 = 0 ;
41075 PyObject * obj4 = 0 ;
41076 PyObject * obj5 = 0 ;
41077 PyObject * obj6 = 0 ;
41078 PyObject * obj7 = 0 ;
41079 char * kwnames[] = {
41080 (char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41081 };
41082
41083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:new_HyperlinkCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
41084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
41085 if (!SWIG_IsOK(res1)) {
41086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkCtrl" "', expected argument " "1"" of type '" "wxWindow *""'");
41087 }
41088 arg1 = reinterpret_cast< wxWindow * >(argp1);
41089 ecode2 = SWIG_AsVal_int(obj1, &val2);
41090 if (!SWIG_IsOK(ecode2)) {
41091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkCtrl" "', expected argument " "2"" of type '" "int""'");
41092 }
41093 arg2 = static_cast< int >(val2);
41094 {
41095 arg3 = wxString_in_helper(obj2);
41096 if (arg3 == NULL) SWIG_fail;
41097 temp3 = true;
41098 }
41099 {
41100 arg4 = wxString_in_helper(obj3);
41101 if (arg4 == NULL) SWIG_fail;
41102 temp4 = true;
41103 }
41104 if (obj4) {
41105 {
41106 arg5 = &temp5;
41107 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
41108 }
41109 }
41110 if (obj5) {
41111 {
41112 arg6 = &temp6;
41113 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
41114 }
41115 }
41116 if (obj6) {
41117 ecode7 = SWIG_AsVal_long(obj6, &val7);
41118 if (!SWIG_IsOK(ecode7)) {
41119 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_HyperlinkCtrl" "', expected argument " "7"" of type '" "long""'");
41120 }
41121 arg7 = static_cast< long >(val7);
41122 }
41123 if (obj7) {
41124 {
41125 arg8 = wxString_in_helper(obj7);
41126 if (arg8 == NULL) SWIG_fail;
41127 temp8 = true;
41128 }
41129 }
41130 {
41131 if (!wxPyCheckForApp()) SWIG_fail;
41132 PyThreadState* __tstate = wxPyBeginAllowThreads();
41133 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl(arg1,arg2,(wxString const &)*arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
41134 wxPyEndAllowThreads(__tstate);
41135 if (PyErr_Occurred()) SWIG_fail;
41136 }
41137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_NEW | 0 );
41138 {
41139 if (temp3)
41140 delete arg3;
41141 }
41142 {
41143 if (temp4)
41144 delete arg4;
41145 }
41146 {
41147 if (temp8)
41148 delete arg8;
41149 }
41150 return resultobj;
41151 fail:
41152 {
41153 if (temp3)
41154 delete arg3;
41155 }
41156 {
41157 if (temp4)
41158 delete arg4;
41159 }
41160 {
41161 if (temp8)
41162 delete arg8;
41163 }
41164 return NULL;
41165 }
41166
41167
41168 SWIGINTERN PyObject *_wrap_new_PreHyperlinkCtrl(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41169 PyObject *resultobj = 0;
41170 wxHyperlinkCtrl *result = 0 ;
41171
41172 if (!SWIG_Python_UnpackTuple(args,"new_PreHyperlinkCtrl",0,0,0)) SWIG_fail;
41173 {
41174 if (!wxPyCheckForApp()) SWIG_fail;
41175 PyThreadState* __tstate = wxPyBeginAllowThreads();
41176 result = (wxHyperlinkCtrl *)new wxHyperlinkCtrl();
41177 wxPyEndAllowThreads(__tstate);
41178 if (PyErr_Occurred()) SWIG_fail;
41179 }
41180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkCtrl, SWIG_POINTER_OWN | 0 );
41181 return resultobj;
41182 fail:
41183 return NULL;
41184 }
41185
41186
41187 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41188 PyObject *resultobj = 0;
41189 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41190 wxWindow *arg2 = (wxWindow *) 0 ;
41191 int arg3 ;
41192 wxString *arg4 = 0 ;
41193 wxString *arg5 = 0 ;
41194 wxPoint const &arg6_defvalue = wxDefaultPosition ;
41195 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
41196 wxSize const &arg7_defvalue = wxDefaultSize ;
41197 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
41198 long arg8 = (long) wxHL_DEFAULT_STYLE ;
41199 wxString const &arg9_defvalue = wxPyHyperlinkCtrlNameStr ;
41200 wxString *arg9 = (wxString *) &arg9_defvalue ;
41201 bool result;
41202 void *argp1 = 0 ;
41203 int res1 = 0 ;
41204 void *argp2 = 0 ;
41205 int res2 = 0 ;
41206 int val3 ;
41207 int ecode3 = 0 ;
41208 bool temp4 = false ;
41209 bool temp5 = false ;
41210 wxPoint temp6 ;
41211 wxSize temp7 ;
41212 long val8 ;
41213 int ecode8 = 0 ;
41214 bool temp9 = false ;
41215 PyObject * obj0 = 0 ;
41216 PyObject * obj1 = 0 ;
41217 PyObject * obj2 = 0 ;
41218 PyObject * obj3 = 0 ;
41219 PyObject * obj4 = 0 ;
41220 PyObject * obj5 = 0 ;
41221 PyObject * obj6 = 0 ;
41222 PyObject * obj7 = 0 ;
41223 PyObject * obj8 = 0 ;
41224 char * kwnames[] = {
41225 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "url",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
41226 };
41227
41228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOO:HyperlinkCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) SWIG_fail;
41229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41230 if (!SWIG_IsOK(res1)) {
41231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_Create" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41232 }
41233 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
41235 if (!SWIG_IsOK(res2)) {
41236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HyperlinkCtrl_Create" "', expected argument " "2"" of type '" "wxWindow *""'");
41237 }
41238 arg2 = reinterpret_cast< wxWindow * >(argp2);
41239 ecode3 = SWIG_AsVal_int(obj2, &val3);
41240 if (!SWIG_IsOK(ecode3)) {
41241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HyperlinkCtrl_Create" "', expected argument " "3"" of type '" "int""'");
41242 }
41243 arg3 = static_cast< int >(val3);
41244 {
41245 arg4 = wxString_in_helper(obj3);
41246 if (arg4 == NULL) SWIG_fail;
41247 temp4 = true;
41248 }
41249 {
41250 arg5 = wxString_in_helper(obj4);
41251 if (arg5 == NULL) SWIG_fail;
41252 temp5 = true;
41253 }
41254 if (obj5) {
41255 {
41256 arg6 = &temp6;
41257 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
41258 }
41259 }
41260 if (obj6) {
41261 {
41262 arg7 = &temp7;
41263 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
41264 }
41265 }
41266 if (obj7) {
41267 ecode8 = SWIG_AsVal_long(obj7, &val8);
41268 if (!SWIG_IsOK(ecode8)) {
41269 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "HyperlinkCtrl_Create" "', expected argument " "8"" of type '" "long""'");
41270 }
41271 arg8 = static_cast< long >(val8);
41272 }
41273 if (obj8) {
41274 {
41275 arg9 = wxString_in_helper(obj8);
41276 if (arg9 == NULL) SWIG_fail;
41277 temp9 = true;
41278 }
41279 }
41280 {
41281 PyThreadState* __tstate = wxPyBeginAllowThreads();
41282 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxString const &)*arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxString const &)*arg9);
41283 wxPyEndAllowThreads(__tstate);
41284 if (PyErr_Occurred()) SWIG_fail;
41285 }
41286 {
41287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41288 }
41289 {
41290 if (temp4)
41291 delete arg4;
41292 }
41293 {
41294 if (temp5)
41295 delete arg5;
41296 }
41297 {
41298 if (temp9)
41299 delete arg9;
41300 }
41301 return resultobj;
41302 fail:
41303 {
41304 if (temp4)
41305 delete arg4;
41306 }
41307 {
41308 if (temp5)
41309 delete arg5;
41310 }
41311 {
41312 if (temp9)
41313 delete arg9;
41314 }
41315 return NULL;
41316 }
41317
41318
41319 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41320 PyObject *resultobj = 0;
41321 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41322 wxColour result;
41323 void *argp1 = 0 ;
41324 int res1 = 0 ;
41325 PyObject *swig_obj[1] ;
41326
41327 if (!args) SWIG_fail;
41328 swig_obj[0] = args;
41329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41330 if (!SWIG_IsOK(res1)) {
41331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41332 }
41333 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41334 {
41335 PyThreadState* __tstate = wxPyBeginAllowThreads();
41336 result = ((wxHyperlinkCtrl const *)arg1)->GetHoverColour();
41337 wxPyEndAllowThreads(__tstate);
41338 if (PyErr_Occurred()) SWIG_fail;
41339 }
41340 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41341 return resultobj;
41342 fail:
41343 return NULL;
41344 }
41345
41346
41347 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetHoverColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41348 PyObject *resultobj = 0;
41349 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41350 wxColour *arg2 = 0 ;
41351 void *argp1 = 0 ;
41352 int res1 = 0 ;
41353 wxColour temp2 ;
41354 PyObject * obj0 = 0 ;
41355 PyObject * obj1 = 0 ;
41356 char * kwnames[] = {
41357 (char *) "self",(char *) "colour", NULL
41358 };
41359
41360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetHoverColour",kwnames,&obj0,&obj1)) SWIG_fail;
41361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41362 if (!SWIG_IsOK(res1)) {
41363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetHoverColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41364 }
41365 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41366 {
41367 arg2 = &temp2;
41368 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41369 }
41370 {
41371 PyThreadState* __tstate = wxPyBeginAllowThreads();
41372 (arg1)->SetHoverColour((wxColour const &)*arg2);
41373 wxPyEndAllowThreads(__tstate);
41374 if (PyErr_Occurred()) SWIG_fail;
41375 }
41376 resultobj = SWIG_Py_Void();
41377 return resultobj;
41378 fail:
41379 return NULL;
41380 }
41381
41382
41383 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41384 PyObject *resultobj = 0;
41385 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41386 wxColour result;
41387 void *argp1 = 0 ;
41388 int res1 = 0 ;
41389 PyObject *swig_obj[1] ;
41390
41391 if (!args) SWIG_fail;
41392 swig_obj[0] = args;
41393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41394 if (!SWIG_IsOK(res1)) {
41395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41396 }
41397 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41398 {
41399 PyThreadState* __tstate = wxPyBeginAllowThreads();
41400 result = ((wxHyperlinkCtrl const *)arg1)->GetNormalColour();
41401 wxPyEndAllowThreads(__tstate);
41402 if (PyErr_Occurred()) SWIG_fail;
41403 }
41404 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41405 return resultobj;
41406 fail:
41407 return NULL;
41408 }
41409
41410
41411 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetNormalColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41412 PyObject *resultobj = 0;
41413 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41414 wxColour *arg2 = 0 ;
41415 void *argp1 = 0 ;
41416 int res1 = 0 ;
41417 wxColour temp2 ;
41418 PyObject * obj0 = 0 ;
41419 PyObject * obj1 = 0 ;
41420 char * kwnames[] = {
41421 (char *) "self",(char *) "colour", NULL
41422 };
41423
41424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetNormalColour",kwnames,&obj0,&obj1)) SWIG_fail;
41425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41426 if (!SWIG_IsOK(res1)) {
41427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetNormalColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41428 }
41429 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41430 {
41431 arg2 = &temp2;
41432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41433 }
41434 {
41435 PyThreadState* __tstate = wxPyBeginAllowThreads();
41436 (arg1)->SetNormalColour((wxColour const &)*arg2);
41437 wxPyEndAllowThreads(__tstate);
41438 if (PyErr_Occurred()) SWIG_fail;
41439 }
41440 resultobj = SWIG_Py_Void();
41441 return resultobj;
41442 fail:
41443 return NULL;
41444 }
41445
41446
41447 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41448 PyObject *resultobj = 0;
41449 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41450 wxColour result;
41451 void *argp1 = 0 ;
41452 int res1 = 0 ;
41453 PyObject *swig_obj[1] ;
41454
41455 if (!args) SWIG_fail;
41456 swig_obj[0] = args;
41457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41458 if (!SWIG_IsOK(res1)) {
41459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41460 }
41461 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41462 {
41463 PyThreadState* __tstate = wxPyBeginAllowThreads();
41464 result = ((wxHyperlinkCtrl const *)arg1)->GetVisitedColour();
41465 wxPyEndAllowThreads(__tstate);
41466 if (PyErr_Occurred()) SWIG_fail;
41467 }
41468 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
41469 return resultobj;
41470 fail:
41471 return NULL;
41472 }
41473
41474
41475 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisitedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41476 PyObject *resultobj = 0;
41477 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41478 wxColour *arg2 = 0 ;
41479 void *argp1 = 0 ;
41480 int res1 = 0 ;
41481 wxColour temp2 ;
41482 PyObject * obj0 = 0 ;
41483 PyObject * obj1 = 0 ;
41484 char * kwnames[] = {
41485 (char *) "self",(char *) "colour", NULL
41486 };
41487
41488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetVisitedColour",kwnames,&obj0,&obj1)) SWIG_fail;
41489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41490 if (!SWIG_IsOK(res1)) {
41491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisitedColour" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41492 }
41493 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41494 {
41495 arg2 = &temp2;
41496 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
41497 }
41498 {
41499 PyThreadState* __tstate = wxPyBeginAllowThreads();
41500 (arg1)->SetVisitedColour((wxColour const &)*arg2);
41501 wxPyEndAllowThreads(__tstate);
41502 if (PyErr_Occurred()) SWIG_fail;
41503 }
41504 resultobj = SWIG_Py_Void();
41505 return resultobj;
41506 fail:
41507 return NULL;
41508 }
41509
41510
41511 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41512 PyObject *resultobj = 0;
41513 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41514 wxString result;
41515 void *argp1 = 0 ;
41516 int res1 = 0 ;
41517 PyObject *swig_obj[1] ;
41518
41519 if (!args) SWIG_fail;
41520 swig_obj[0] = args;
41521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41522 if (!SWIG_IsOK(res1)) {
41523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41524 }
41525 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41526 {
41527 PyThreadState* __tstate = wxPyBeginAllowThreads();
41528 result = ((wxHyperlinkCtrl const *)arg1)->GetURL();
41529 wxPyEndAllowThreads(__tstate);
41530 if (PyErr_Occurred()) SWIG_fail;
41531 }
41532 {
41533 #if wxUSE_UNICODE
41534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41535 #else
41536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41537 #endif
41538 }
41539 return resultobj;
41540 fail:
41541 return NULL;
41542 }
41543
41544
41545 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41546 PyObject *resultobj = 0;
41547 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41548 wxString *arg2 = 0 ;
41549 void *argp1 = 0 ;
41550 int res1 = 0 ;
41551 bool temp2 = false ;
41552 PyObject * obj0 = 0 ;
41553 PyObject * obj1 = 0 ;
41554 char * kwnames[] = {
41555 (char *) "self",(char *) "url", NULL
41556 };
41557
41558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkCtrl_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41560 if (!SWIG_IsOK(res1)) {
41561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41562 }
41563 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41564 {
41565 arg2 = wxString_in_helper(obj1);
41566 if (arg2 == NULL) SWIG_fail;
41567 temp2 = true;
41568 }
41569 {
41570 PyThreadState* __tstate = wxPyBeginAllowThreads();
41571 (arg1)->SetURL((wxString const &)*arg2);
41572 wxPyEndAllowThreads(__tstate);
41573 if (PyErr_Occurred()) SWIG_fail;
41574 }
41575 resultobj = SWIG_Py_Void();
41576 {
41577 if (temp2)
41578 delete arg2;
41579 }
41580 return resultobj;
41581 fail:
41582 {
41583 if (temp2)
41584 delete arg2;
41585 }
41586 return NULL;
41587 }
41588
41589
41590 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_SetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41591 PyObject *resultobj = 0;
41592 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41593 bool arg2 = (bool) true ;
41594 void *argp1 = 0 ;
41595 int res1 = 0 ;
41596 bool val2 ;
41597 int ecode2 = 0 ;
41598 PyObject * obj0 = 0 ;
41599 PyObject * obj1 = 0 ;
41600 char * kwnames[] = {
41601 (char *) "self",(char *) "visited", NULL
41602 };
41603
41604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:HyperlinkCtrl_SetVisited",kwnames,&obj0,&obj1)) SWIG_fail;
41605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41606 if (!SWIG_IsOK(res1)) {
41607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl *""'");
41608 }
41609 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41610 if (obj1) {
41611 ecode2 = SWIG_AsVal_bool(obj1, &val2);
41612 if (!SWIG_IsOK(ecode2)) {
41613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HyperlinkCtrl_SetVisited" "', expected argument " "2"" of type '" "bool""'");
41614 }
41615 arg2 = static_cast< bool >(val2);
41616 }
41617 {
41618 PyThreadState* __tstate = wxPyBeginAllowThreads();
41619 (arg1)->SetVisited(arg2);
41620 wxPyEndAllowThreads(__tstate);
41621 if (PyErr_Occurred()) SWIG_fail;
41622 }
41623 resultobj = SWIG_Py_Void();
41624 return resultobj;
41625 fail:
41626 return NULL;
41627 }
41628
41629
41630 SWIGINTERN PyObject *_wrap_HyperlinkCtrl_GetVisited(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41631 PyObject *resultobj = 0;
41632 wxHyperlinkCtrl *arg1 = (wxHyperlinkCtrl *) 0 ;
41633 bool result;
41634 void *argp1 = 0 ;
41635 int res1 = 0 ;
41636 PyObject *swig_obj[1] ;
41637
41638 if (!args) SWIG_fail;
41639 swig_obj[0] = args;
41640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkCtrl, 0 | 0 );
41641 if (!SWIG_IsOK(res1)) {
41642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkCtrl_GetVisited" "', expected argument " "1"" of type '" "wxHyperlinkCtrl const *""'");
41643 }
41644 arg1 = reinterpret_cast< wxHyperlinkCtrl * >(argp1);
41645 {
41646 PyThreadState* __tstate = wxPyBeginAllowThreads();
41647 result = (bool)((wxHyperlinkCtrl const *)arg1)->GetVisited();
41648 wxPyEndAllowThreads(__tstate);
41649 if (PyErr_Occurred()) SWIG_fail;
41650 }
41651 {
41652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
41653 }
41654 return resultobj;
41655 fail:
41656 return NULL;
41657 }
41658
41659
41660 SWIGINTERN PyObject *HyperlinkCtrl_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41661 PyObject *obj;
41662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41663 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkCtrl, SWIG_NewClientData(obj));
41664 return SWIG_Py_Void();
41665 }
41666
41667 SWIGINTERN PyObject *HyperlinkCtrl_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41668 return SWIG_Python_InitShadowInstance(args);
41669 }
41670
41671 SWIGINTERN PyObject *_wrap_new_HyperlinkEvent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41672 PyObject *resultobj = 0;
41673 wxObject *arg1 = (wxObject *) 0 ;
41674 int arg2 ;
41675 wxString *arg3 = 0 ;
41676 wxHyperlinkEvent *result = 0 ;
41677 void *argp1 = 0 ;
41678 int res1 = 0 ;
41679 int val2 ;
41680 int ecode2 = 0 ;
41681 bool temp3 = false ;
41682 PyObject * obj0 = 0 ;
41683 PyObject * obj1 = 0 ;
41684 PyObject * obj2 = 0 ;
41685 char * kwnames[] = {
41686 (char *) "generator",(char *) "id",(char *) "url", NULL
41687 };
41688
41689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_HyperlinkEvent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
41690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxObject, 0 | 0 );
41691 if (!SWIG_IsOK(res1)) {
41692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HyperlinkEvent" "', expected argument " "1"" of type '" "wxObject *""'");
41693 }
41694 arg1 = reinterpret_cast< wxObject * >(argp1);
41695 ecode2 = SWIG_AsVal_int(obj1, &val2);
41696 if (!SWIG_IsOK(ecode2)) {
41697 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_HyperlinkEvent" "', expected argument " "2"" of type '" "int""'");
41698 }
41699 arg2 = static_cast< int >(val2);
41700 {
41701 arg3 = wxString_in_helper(obj2);
41702 if (arg3 == NULL) SWIG_fail;
41703 temp3 = true;
41704 }
41705 {
41706 PyThreadState* __tstate = wxPyBeginAllowThreads();
41707 result = (wxHyperlinkEvent *)new wxHyperlinkEvent(arg1,arg2,(wxString const &)*arg3);
41708 wxPyEndAllowThreads(__tstate);
41709 if (PyErr_Occurred()) SWIG_fail;
41710 }
41711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHyperlinkEvent, SWIG_POINTER_NEW | 0 );
41712 {
41713 if (temp3)
41714 delete arg3;
41715 }
41716 return resultobj;
41717 fail:
41718 {
41719 if (temp3)
41720 delete arg3;
41721 }
41722 return NULL;
41723 }
41724
41725
41726 SWIGINTERN PyObject *_wrap_HyperlinkEvent_GetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41727 PyObject *resultobj = 0;
41728 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41729 wxString result;
41730 void *argp1 = 0 ;
41731 int res1 = 0 ;
41732 PyObject *swig_obj[1] ;
41733
41734 if (!args) SWIG_fail;
41735 swig_obj[0] = args;
41736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41737 if (!SWIG_IsOK(res1)) {
41738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_GetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent const *""'");
41739 }
41740 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41741 {
41742 PyThreadState* __tstate = wxPyBeginAllowThreads();
41743 result = ((wxHyperlinkEvent const *)arg1)->GetURL();
41744 wxPyEndAllowThreads(__tstate);
41745 if (PyErr_Occurred()) SWIG_fail;
41746 }
41747 {
41748 #if wxUSE_UNICODE
41749 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
41750 #else
41751 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
41752 #endif
41753 }
41754 return resultobj;
41755 fail:
41756 return NULL;
41757 }
41758
41759
41760 SWIGINTERN PyObject *_wrap_HyperlinkEvent_SetURL(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
41761 PyObject *resultobj = 0;
41762 wxHyperlinkEvent *arg1 = (wxHyperlinkEvent *) 0 ;
41763 wxString *arg2 = 0 ;
41764 void *argp1 = 0 ;
41765 int res1 = 0 ;
41766 bool temp2 = false ;
41767 PyObject * obj0 = 0 ;
41768 PyObject * obj1 = 0 ;
41769 char * kwnames[] = {
41770 (char *) "self",(char *) "url", NULL
41771 };
41772
41773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HyperlinkEvent_SetURL",kwnames,&obj0,&obj1)) SWIG_fail;
41774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxHyperlinkEvent, 0 | 0 );
41775 if (!SWIG_IsOK(res1)) {
41776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HyperlinkEvent_SetURL" "', expected argument " "1"" of type '" "wxHyperlinkEvent *""'");
41777 }
41778 arg1 = reinterpret_cast< wxHyperlinkEvent * >(argp1);
41779 {
41780 arg2 = wxString_in_helper(obj1);
41781 if (arg2 == NULL) SWIG_fail;
41782 temp2 = true;
41783 }
41784 {
41785 PyThreadState* __tstate = wxPyBeginAllowThreads();
41786 (arg1)->SetURL((wxString const &)*arg2);
41787 wxPyEndAllowThreads(__tstate);
41788 if (PyErr_Occurred()) SWIG_fail;
41789 }
41790 resultobj = SWIG_Py_Void();
41791 {
41792 if (temp2)
41793 delete arg2;
41794 }
41795 return resultobj;
41796 fail:
41797 {
41798 if (temp2)
41799 delete arg2;
41800 }
41801 return NULL;
41802 }
41803
41804
41805 SWIGINTERN PyObject *HyperlinkEvent_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41806 PyObject *obj;
41807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
41808 SWIG_TypeNewClientData(SWIGTYPE_p_wxHyperlinkEvent, SWIG_NewClientData(obj));
41809 return SWIG_Py_Void();
41810 }
41811
41812 SWIGINTERN PyObject *HyperlinkEvent_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
41813 return SWIG_Python_InitShadowInstance(args);
41814 }
41815
41816 static PyMethodDef SwigMethods[] = {
41817 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL},
41818 { (char *)"new_PreButton", (PyCFunction)_wrap_new_PreButton, METH_NOARGS, NULL},
41819 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41820 { (char *)"Button_SetDefault", (PyCFunction)_wrap_Button_SetDefault, METH_O, NULL},
41821 { (char *)"Button_GetDefaultSize", (PyCFunction)_wrap_Button_GetDefaultSize, METH_NOARGS, NULL},
41822 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41823 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL},
41824 { (char *)"Button_swiginit", Button_swiginit, METH_VARARGS, NULL},
41825 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL},
41826 { (char *)"new_PreBitmapButton", (PyCFunction)_wrap_new_PreBitmapButton, METH_NOARGS, NULL},
41827 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41828 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction)_wrap_BitmapButton_GetBitmapLabel, METH_O, NULL},
41829 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction)_wrap_BitmapButton_GetBitmapDisabled, METH_O, NULL},
41830 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction)_wrap_BitmapButton_GetBitmapFocus, METH_O, NULL},
41831 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction)_wrap_BitmapButton_GetBitmapSelected, METH_O, NULL},
41832 { (char *)"BitmapButton_GetBitmapHover", (PyCFunction)_wrap_BitmapButton_GetBitmapHover, METH_O, NULL},
41833 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL},
41834 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL},
41835 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41836 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL},
41837 { (char *)"BitmapButton_SetBitmapHover", (PyCFunction) _wrap_BitmapButton_SetBitmapHover, METH_VARARGS | METH_KEYWORDS, NULL},
41838 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
41839 { (char *)"BitmapButton_GetMarginX", (PyCFunction)_wrap_BitmapButton_GetMarginX, METH_O, NULL},
41840 { (char *)"BitmapButton_GetMarginY", (PyCFunction)_wrap_BitmapButton_GetMarginY, METH_O, NULL},
41841 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL},
41842 { (char *)"BitmapButton_swiginit", BitmapButton_swiginit, METH_VARARGS, NULL},
41843 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
41844 { (char *)"new_PreCheckBox", (PyCFunction)_wrap_new_PreCheckBox, METH_NOARGS, NULL},
41845 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41846 { (char *)"CheckBox_GetValue", (PyCFunction)_wrap_CheckBox_GetValue, METH_O, NULL},
41847 { (char *)"CheckBox_IsChecked", (PyCFunction)_wrap_CheckBox_IsChecked, METH_O, NULL},
41848 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41849 { (char *)"CheckBox_Get3StateValue", (PyCFunction)_wrap_CheckBox_Get3StateValue, METH_O, NULL},
41850 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL},
41851 { (char *)"CheckBox_Is3State", (PyCFunction)_wrap_CheckBox_Is3State, METH_O, NULL},
41852 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction)_wrap_CheckBox_Is3rdStateAllowedForUser, METH_O, NULL},
41853 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41854 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL},
41855 { (char *)"CheckBox_swiginit", CheckBox_swiginit, METH_VARARGS, NULL},
41856 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL},
41857 { (char *)"new_PreChoice", (PyCFunction)_wrap_new_PreChoice, METH_NOARGS, NULL},
41858 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41859 { (char *)"Choice_GetCurrentSelection", (PyCFunction)_wrap_Choice_GetCurrentSelection, METH_O, NULL},
41860 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41861 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL},
41862 { (char *)"Choice_swiginit", Choice_swiginit, METH_VARARGS, NULL},
41863 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL},
41864 { (char *)"new_PreComboBox", (PyCFunction)_wrap_new_PreComboBox, METH_NOARGS, NULL},
41865 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41866 { (char *)"ComboBox_GetValue", (PyCFunction)_wrap_ComboBox_GetValue, METH_O, NULL},
41867 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41868 { (char *)"ComboBox_Copy", (PyCFunction)_wrap_ComboBox_Copy, METH_O, NULL},
41869 { (char *)"ComboBox_Cut", (PyCFunction)_wrap_ComboBox_Cut, METH_O, NULL},
41870 { (char *)"ComboBox_Paste", (PyCFunction)_wrap_ComboBox_Paste, METH_O, NULL},
41871 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
41872 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction)_wrap_ComboBox_GetInsertionPoint, METH_O, NULL},
41873 { (char *)"ComboBox_GetLastPosition", (PyCFunction)_wrap_ComboBox_GetLastPosition, METH_O, NULL},
41874 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
41875 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL},
41876 { (char *)"ComboBox_GetCurrentSelection", (PyCFunction)_wrap_ComboBox_GetCurrentSelection, METH_O, NULL},
41877 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41878 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
41879 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
41880 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction)_wrap_ComboBox_SetInsertionPointEnd, METH_O, NULL},
41881 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
41882 { (char *)"ComboBox_IsEditable", (PyCFunction)_wrap_ComboBox_IsEditable, METH_O, NULL},
41883 { (char *)"ComboBox_Undo", (PyCFunction)_wrap_ComboBox_Undo, METH_O, NULL},
41884 { (char *)"ComboBox_Redo", (PyCFunction)_wrap_ComboBox_Redo, METH_O, NULL},
41885 { (char *)"ComboBox_SelectAll", (PyCFunction)_wrap_ComboBox_SelectAll, METH_O, NULL},
41886 { (char *)"ComboBox_CanCopy", (PyCFunction)_wrap_ComboBox_CanCopy, METH_O, NULL},
41887 { (char *)"ComboBox_CanCut", (PyCFunction)_wrap_ComboBox_CanCut, METH_O, NULL},
41888 { (char *)"ComboBox_CanPaste", (PyCFunction)_wrap_ComboBox_CanPaste, METH_O, NULL},
41889 { (char *)"ComboBox_CanUndo", (PyCFunction)_wrap_ComboBox_CanUndo, METH_O, NULL},
41890 { (char *)"ComboBox_CanRedo", (PyCFunction)_wrap_ComboBox_CanRedo, METH_O, NULL},
41891 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41892 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL},
41893 { (char *)"ComboBox_swiginit", ComboBox_swiginit, METH_VARARGS, NULL},
41894 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL},
41895 { (char *)"new_PreGauge", (PyCFunction)_wrap_new_PreGauge, METH_NOARGS, NULL},
41896 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41897 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
41898 { (char *)"Gauge_GetRange", (PyCFunction)_wrap_Gauge_GetRange, METH_O, NULL},
41899 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
41900 { (char *)"Gauge_GetValue", (PyCFunction)_wrap_Gauge_GetValue, METH_O, NULL},
41901 { (char *)"Gauge_IsVertical", (PyCFunction)_wrap_Gauge_IsVertical, METH_O, NULL},
41902 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL},
41903 { (char *)"Gauge_GetShadowWidth", (PyCFunction)_wrap_Gauge_GetShadowWidth, METH_O, NULL},
41904 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL},
41905 { (char *)"Gauge_GetBezelFace", (PyCFunction)_wrap_Gauge_GetBezelFace, METH_O, NULL},
41906 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41907 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL},
41908 { (char *)"Gauge_swiginit", Gauge_swiginit, METH_VARARGS, NULL},
41909 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL},
41910 { (char *)"new_PreStaticBox", (PyCFunction)_wrap_new_PreStaticBox, METH_NOARGS, NULL},
41911 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41912 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41913 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL},
41914 { (char *)"StaticBox_swiginit", StaticBox_swiginit, METH_VARARGS, NULL},
41915 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL},
41916 { (char *)"new_PreStaticLine", (PyCFunction)_wrap_new_PreStaticLine, METH_NOARGS, NULL},
41917 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41918 { (char *)"StaticLine_IsVertical", (PyCFunction)_wrap_StaticLine_IsVertical, METH_O, NULL},
41919 { (char *)"StaticLine_GetDefaultSize", (PyCFunction)_wrap_StaticLine_GetDefaultSize, METH_NOARGS, NULL},
41920 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41921 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL},
41922 { (char *)"StaticLine_swiginit", StaticLine_swiginit, METH_VARARGS, NULL},
41923 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL},
41924 { (char *)"new_PreStaticText", (PyCFunction)_wrap_new_PreStaticText, METH_NOARGS, NULL},
41925 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41926 { (char *)"StaticText_Wrap", (PyCFunction) _wrap_StaticText_Wrap, METH_VARARGS | METH_KEYWORDS, NULL},
41927 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41928 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL},
41929 { (char *)"StaticText_swiginit", StaticText_swiginit, METH_VARARGS, NULL},
41930 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41931 { (char *)"new_PreStaticBitmap", (PyCFunction)_wrap_new_PreStaticBitmap, METH_NOARGS, NULL},
41932 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41933 { (char *)"StaticBitmap_GetBitmap", (PyCFunction)_wrap_StaticBitmap_GetBitmap, METH_O, NULL},
41934 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
41935 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
41936 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41937 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL},
41938 { (char *)"StaticBitmap_swiginit", StaticBitmap_swiginit, METH_VARARGS, NULL},
41939 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41940 { (char *)"new_PreListBox", (PyCFunction)_wrap_new_PreListBox, METH_NOARGS, NULL},
41941 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41942 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL},
41943 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL},
41944 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL},
41945 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
41946 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41947 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL},
41948 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL},
41949 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL},
41950 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
41951 { (char *)"ListBox_GetSelections", (PyCFunction)_wrap_ListBox_GetSelections, METH_O, NULL},
41952 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL},
41953 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL},
41954 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41955 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
41956 { (char *)"ListBox_IsSorted", (PyCFunction)_wrap_ListBox_IsSorted, METH_O, NULL},
41957 { (char *)"ListBox_HitTest", (PyCFunction) _wrap_ListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
41958 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41959 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41960 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
41961 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
41962 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL},
41963 { (char *)"ListBox_swiginit", ListBox_swiginit, METH_VARARGS, NULL},
41964 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL},
41965 { (char *)"new_PreCheckListBox", (PyCFunction)_wrap_new_PreCheckListBox, METH_NOARGS, NULL},
41966 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
41967 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL},
41968 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL},
41969 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL},
41970 { (char *)"CheckListBox_swiginit", CheckListBox_swiginit, METH_VARARGS, NULL},
41971 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL},
41972 { (char *)"delete_TextAttr", (PyCFunction)_wrap_delete_TextAttr, METH_O, NULL},
41973 { (char *)"TextAttr_Init", (PyCFunction)_wrap_TextAttr_Init, METH_O, NULL},
41974 { (char *)"TextAttr_Merge", (PyCFunction) _wrap_TextAttr_Merge, METH_VARARGS | METH_KEYWORDS, NULL},
41975 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
41976 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
41977 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
41978 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL},
41979 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL},
41980 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41981 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL},
41982 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL},
41983 { (char *)"TextAttr_HasTextColour", (PyCFunction)_wrap_TextAttr_HasTextColour, METH_O, NULL},
41984 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction)_wrap_TextAttr_HasBackgroundColour, METH_O, NULL},
41985 { (char *)"TextAttr_HasFont", (PyCFunction)_wrap_TextAttr_HasFont, METH_O, NULL},
41986 { (char *)"TextAttr_HasAlignment", (PyCFunction)_wrap_TextAttr_HasAlignment, METH_O, NULL},
41987 { (char *)"TextAttr_HasTabs", (PyCFunction)_wrap_TextAttr_HasTabs, METH_O, NULL},
41988 { (char *)"TextAttr_HasLeftIndent", (PyCFunction)_wrap_TextAttr_HasLeftIndent, METH_O, NULL},
41989 { (char *)"TextAttr_HasRightIndent", (PyCFunction)_wrap_TextAttr_HasRightIndent, METH_O, NULL},
41990 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL},
41991 { (char *)"TextAttr_GetTextColour", (PyCFunction)_wrap_TextAttr_GetTextColour, METH_O, NULL},
41992 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction)_wrap_TextAttr_GetBackgroundColour, METH_O, NULL},
41993 { (char *)"TextAttr_GetFont", (PyCFunction)_wrap_TextAttr_GetFont, METH_O, NULL},
41994 { (char *)"TextAttr_GetAlignment", (PyCFunction)_wrap_TextAttr_GetAlignment, METH_O, NULL},
41995 { (char *)"TextAttr_GetTabs", (PyCFunction)_wrap_TextAttr_GetTabs, METH_O, NULL},
41996 { (char *)"TextAttr_GetLeftIndent", (PyCFunction)_wrap_TextAttr_GetLeftIndent, METH_O, NULL},
41997 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction)_wrap_TextAttr_GetLeftSubIndent, METH_O, NULL},
41998 { (char *)"TextAttr_GetRightIndent", (PyCFunction)_wrap_TextAttr_GetRightIndent, METH_O, NULL},
41999 { (char *)"TextAttr_GetFlags", (PyCFunction)_wrap_TextAttr_GetFlags, METH_O, NULL},
42000 { (char *)"TextAttr_IsDefault", (PyCFunction)_wrap_TextAttr_IsDefault, METH_O, NULL},
42001 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL},
42002 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL},
42003 { (char *)"TextAttr_swiginit", TextAttr_swiginit, METH_VARARGS, NULL},
42004 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42005 { (char *)"new_PreTextCtrl", (PyCFunction)_wrap_new_PreTextCtrl, METH_NOARGS, NULL},
42006 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42007 { (char *)"TextCtrl_GetValue", (PyCFunction)_wrap_TextCtrl_GetValue, METH_O, NULL},
42008 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42009 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42010 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL},
42011 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL},
42012 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction)_wrap_TextCtrl_GetNumberOfLines, METH_O, NULL},
42013 { (char *)"TextCtrl_IsModified", (PyCFunction)_wrap_TextCtrl_IsModified, METH_O, NULL},
42014 { (char *)"TextCtrl_IsEditable", (PyCFunction)_wrap_TextCtrl_IsEditable, METH_O, NULL},
42015 { (char *)"TextCtrl_IsSingleLine", (PyCFunction)_wrap_TextCtrl_IsSingleLine, METH_O, NULL},
42016 { (char *)"TextCtrl_IsMultiLine", (PyCFunction)_wrap_TextCtrl_IsMultiLine, METH_O, NULL},
42017 { (char *)"TextCtrl_GetSelection", (PyCFunction)_wrap_TextCtrl_GetSelection, METH_O, NULL},
42018 { (char *)"TextCtrl_GetStringSelection", (PyCFunction)_wrap_TextCtrl_GetStringSelection, METH_O, NULL},
42019 { (char *)"TextCtrl_Clear", (PyCFunction)_wrap_TextCtrl_Clear, METH_O, NULL},
42020 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
42021 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
42022 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
42023 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
42024 { (char *)"TextCtrl_MarkDirty", (PyCFunction)_wrap_TextCtrl_MarkDirty, METH_O, NULL},
42025 { (char *)"TextCtrl_DiscardEdits", (PyCFunction)_wrap_TextCtrl_DiscardEdits, METH_O, NULL},
42026 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL},
42027 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL},
42028 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL},
42029 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL},
42030 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42031 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42032 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42033 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction)_wrap_TextCtrl_GetDefaultStyle, METH_O, NULL},
42034 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42035 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL},
42036 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42037 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42038 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL},
42039 { (char *)"TextCtrl_Copy", (PyCFunction)_wrap_TextCtrl_Copy, METH_O, NULL},
42040 { (char *)"TextCtrl_Cut", (PyCFunction)_wrap_TextCtrl_Cut, METH_O, NULL},
42041 { (char *)"TextCtrl_Paste", (PyCFunction)_wrap_TextCtrl_Paste, METH_O, NULL},
42042 { (char *)"TextCtrl_CanCopy", (PyCFunction)_wrap_TextCtrl_CanCopy, METH_O, NULL},
42043 { (char *)"TextCtrl_CanCut", (PyCFunction)_wrap_TextCtrl_CanCut, METH_O, NULL},
42044 { (char *)"TextCtrl_CanPaste", (PyCFunction)_wrap_TextCtrl_CanPaste, METH_O, NULL},
42045 { (char *)"TextCtrl_Undo", (PyCFunction)_wrap_TextCtrl_Undo, METH_O, NULL},
42046 { (char *)"TextCtrl_Redo", (PyCFunction)_wrap_TextCtrl_Redo, METH_O, NULL},
42047 { (char *)"TextCtrl_CanUndo", (PyCFunction)_wrap_TextCtrl_CanUndo, METH_O, NULL},
42048 { (char *)"TextCtrl_CanRedo", (PyCFunction)_wrap_TextCtrl_CanRedo, METH_O, NULL},
42049 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42050 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction)_wrap_TextCtrl_SetInsertionPointEnd, METH_O, NULL},
42051 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction)_wrap_TextCtrl_GetInsertionPoint, METH_O, NULL},
42052 { (char *)"TextCtrl_GetLastPosition", (PyCFunction)_wrap_TextCtrl_GetLastPosition, METH_O, NULL},
42053 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42054 { (char *)"TextCtrl_SelectAll", (PyCFunction)_wrap_TextCtrl_SelectAll, METH_O, NULL},
42055 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL},
42056 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL},
42057 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42058 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42059 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL},
42060 { (char *)"TextCtrl_swiginit", TextCtrl_swiginit, METH_VARARGS, NULL},
42061 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42062 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction)_wrap_TextUrlEvent_GetMouseEvent, METH_O, NULL},
42063 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction)_wrap_TextUrlEvent_GetURLStart, METH_O, NULL},
42064 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction)_wrap_TextUrlEvent_GetURLEnd, METH_O, NULL},
42065 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL},
42066 { (char *)"TextUrlEvent_swiginit", TextUrlEvent_swiginit, METH_VARARGS, NULL},
42067 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL},
42068 { (char *)"new_PreScrollBar", (PyCFunction)_wrap_new_PreScrollBar, METH_NOARGS, NULL},
42069 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42070 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction)_wrap_ScrollBar_GetThumbPosition, METH_O, NULL},
42071 { (char *)"ScrollBar_GetThumbSize", (PyCFunction)_wrap_ScrollBar_GetThumbSize, METH_O, NULL},
42072 { (char *)"ScrollBar_GetPageSize", (PyCFunction)_wrap_ScrollBar_GetPageSize, METH_O, NULL},
42073 { (char *)"ScrollBar_GetRange", (PyCFunction)_wrap_ScrollBar_GetRange, METH_O, NULL},
42074 { (char *)"ScrollBar_IsVertical", (PyCFunction)_wrap_ScrollBar_IsVertical, METH_O, NULL},
42075 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42076 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42077 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL},
42078 { (char *)"ScrollBar_swiginit", ScrollBar_swiginit, METH_VARARGS, NULL},
42079 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL},
42080 { (char *)"new_PreSpinButton", (PyCFunction)_wrap_new_PreSpinButton, METH_NOARGS, NULL},
42081 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42082 { (char *)"SpinButton_GetValue", (PyCFunction)_wrap_SpinButton_GetValue, METH_O, NULL},
42083 { (char *)"SpinButton_GetMin", (PyCFunction)_wrap_SpinButton_GetMin, METH_O, NULL},
42084 { (char *)"SpinButton_GetMax", (PyCFunction)_wrap_SpinButton_GetMax, METH_O, NULL},
42085 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42086 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42087 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42088 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42089 { (char *)"SpinButton_IsVertical", (PyCFunction)_wrap_SpinButton_IsVertical, METH_O, NULL},
42090 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42091 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL},
42092 { (char *)"SpinButton_swiginit", SpinButton_swiginit, METH_VARARGS, NULL},
42093 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42094 { (char *)"new_PreSpinCtrl", (PyCFunction)_wrap_new_PreSpinCtrl, METH_NOARGS, NULL},
42095 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42096 { (char *)"SpinCtrl_GetValue", (PyCFunction)_wrap_SpinCtrl_GetValue, METH_O, NULL},
42097 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42098 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL},
42099 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42100 { (char *)"SpinCtrl_GetMin", (PyCFunction)_wrap_SpinCtrl_GetMin, METH_O, NULL},
42101 { (char *)"SpinCtrl_GetMax", (PyCFunction)_wrap_SpinCtrl_GetMax, METH_O, NULL},
42102 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42103 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42104 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL},
42105 { (char *)"SpinCtrl_swiginit", SpinCtrl_swiginit, METH_VARARGS, NULL},
42106 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42107 { (char *)"SpinEvent_GetPosition", (PyCFunction)_wrap_SpinEvent_GetPosition, METH_O, NULL},
42108 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42109 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL},
42110 { (char *)"SpinEvent_swiginit", SpinEvent_swiginit, METH_VARARGS, NULL},
42111 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL},
42112 { (char *)"new_PreRadioBox", (PyCFunction)_wrap_new_PreRadioBox, METH_NOARGS, NULL},
42113 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42114 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42115 { (char *)"RadioBox_GetSelection", (PyCFunction)_wrap_RadioBox_GetSelection, METH_O, NULL},
42116 { (char *)"RadioBox_GetStringSelection", (PyCFunction)_wrap_RadioBox_GetStringSelection, METH_O, NULL},
42117 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42118 { (char *)"RadioBox_GetCount", (PyCFunction)_wrap_RadioBox_GetCount, METH_O, NULL},
42119 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL},
42120 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
42121 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL},
42122 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL},
42123 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL},
42124 { (char *)"RadioBox_IsItemEnabled", (PyCFunction) _wrap_RadioBox_IsItemEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42125 { (char *)"RadioBox_IsItemShown", (PyCFunction) _wrap_RadioBox_IsItemShown, METH_VARARGS | METH_KEYWORDS, NULL},
42126 { (char *)"RadioBox_GetColumnCount", (PyCFunction)_wrap_RadioBox_GetColumnCount, METH_O, NULL},
42127 { (char *)"RadioBox_GetRowCount", (PyCFunction)_wrap_RadioBox_GetRowCount, METH_O, NULL},
42128 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42129 { (char *)"RadioBox_SetItemToolTip", (PyCFunction) _wrap_RadioBox_SetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42130 { (char *)"RadioBox_GetItemToolTip", (PyCFunction) _wrap_RadioBox_GetItemToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42131 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42132 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL},
42133 { (char *)"RadioBox_swiginit", RadioBox_swiginit, METH_VARARGS, NULL},
42134 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL},
42135 { (char *)"new_PreRadioButton", (PyCFunction)_wrap_new_PreRadioButton, METH_NOARGS, NULL},
42136 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42137 { (char *)"RadioButton_GetValue", (PyCFunction)_wrap_RadioButton_GetValue, METH_O, NULL},
42138 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42139 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42140 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL},
42141 { (char *)"RadioButton_swiginit", RadioButton_swiginit, METH_VARARGS, NULL},
42142 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL},
42143 { (char *)"new_PreSlider", (PyCFunction)_wrap_new_PreSlider, METH_NOARGS, NULL},
42144 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42145 { (char *)"Slider_GetValue", (PyCFunction)_wrap_Slider_GetValue, METH_O, NULL},
42146 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42147 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42148 { (char *)"Slider_GetMin", (PyCFunction)_wrap_Slider_GetMin, METH_O, NULL},
42149 { (char *)"Slider_GetMax", (PyCFunction)_wrap_Slider_GetMax, METH_O, NULL},
42150 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL},
42151 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL},
42152 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL},
42153 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42154 { (char *)"Slider_GetLineSize", (PyCFunction)_wrap_Slider_GetLineSize, METH_O, NULL},
42155 { (char *)"Slider_GetPageSize", (PyCFunction)_wrap_Slider_GetPageSize, METH_O, NULL},
42156 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL},
42157 { (char *)"Slider_GetThumbLength", (PyCFunction)_wrap_Slider_GetThumbLength, METH_O, NULL},
42158 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL},
42159 { (char *)"Slider_GetTickFreq", (PyCFunction)_wrap_Slider_GetTickFreq, METH_O, NULL},
42160 { (char *)"Slider_ClearTicks", (PyCFunction)_wrap_Slider_ClearTicks, METH_O, NULL},
42161 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL},
42162 { (char *)"Slider_ClearSel", (PyCFunction)_wrap_Slider_ClearSel, METH_O, NULL},
42163 { (char *)"Slider_GetSelEnd", (PyCFunction)_wrap_Slider_GetSelEnd, METH_O, NULL},
42164 { (char *)"Slider_GetSelStart", (PyCFunction)_wrap_Slider_GetSelStart, METH_O, NULL},
42165 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42166 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42167 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL},
42168 { (char *)"Slider_swiginit", Slider_swiginit, METH_VARARGS, NULL},
42169 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL},
42170 { (char *)"new_PreToggleButton", (PyCFunction)_wrap_new_PreToggleButton, METH_NOARGS, NULL},
42171 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42172 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42173 { (char *)"ToggleButton_GetValue", (PyCFunction)_wrap_ToggleButton_GetValue, METH_O, NULL},
42174 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42175 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL},
42176 { (char *)"ToggleButton_swiginit", ToggleButton_swiginit, METH_VARARGS, NULL},
42177 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction)_wrap_BookCtrlBase_GetPageCount, METH_O, NULL},
42178 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL},
42179 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetCurrentPage, METH_O, NULL},
42180 { (char *)"BookCtrlBase_GetSelection", (PyCFunction)_wrap_BookCtrlBase_GetSelection, METH_O, NULL},
42181 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42182 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL},
42183 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42184 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42185 { (char *)"BookCtrlBase_GetImageList", (PyCFunction)_wrap_BookCtrlBase_GetImageList, METH_O, NULL},
42186 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42187 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL},
42188 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL},
42189 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL},
42190 { (char *)"BookCtrlBase_GetInternalBorder", (PyCFunction)_wrap_BookCtrlBase_GetInternalBorder, METH_O, NULL},
42191 { (char *)"BookCtrlBase_SetInternalBorder", (PyCFunction) _wrap_BookCtrlBase_SetInternalBorder, METH_VARARGS | METH_KEYWORDS, NULL},
42192 { (char *)"BookCtrlBase_IsVertical", (PyCFunction)_wrap_BookCtrlBase_IsVertical, METH_O, NULL},
42193 { (char *)"BookCtrlBase_SetControlMargin", (PyCFunction) _wrap_BookCtrlBase_SetControlMargin, METH_VARARGS | METH_KEYWORDS, NULL},
42194 { (char *)"BookCtrlBase_GetControlMargin", (PyCFunction)_wrap_BookCtrlBase_GetControlMargin, METH_O, NULL},
42195 { (char *)"BookCtrlBase_SetFitToCurrentPage", (PyCFunction) _wrap_BookCtrlBase_SetFitToCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL},
42196 { (char *)"BookCtrlBase_GetFitToCurrentPage", (PyCFunction)_wrap_BookCtrlBase_GetFitToCurrentPage, METH_O, NULL},
42197 { (char *)"BookCtrlBase_GetControlSizer", (PyCFunction)_wrap_BookCtrlBase_GetControlSizer, METH_O, NULL},
42198 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL},
42199 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL},
42200 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction)_wrap_BookCtrlBase_DeleteAllPages, METH_O, NULL},
42201 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL},
42202 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL},
42203 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42204 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42205 { (char *)"BookCtrlBase_HitTest", (PyCFunction) _wrap_BookCtrlBase_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42206 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42207 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL},
42208 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42209 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetSelection, METH_O, NULL},
42210 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42211 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction)_wrap_BookCtrlBaseEvent_GetOldSelection, METH_O, NULL},
42212 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42213 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL},
42214 { (char *)"BookCtrlBaseEvent_swiginit", BookCtrlBaseEvent_swiginit, METH_VARARGS, NULL},
42215 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL},
42216 { (char *)"new_PreNotebook", (PyCFunction)_wrap_new_PreNotebook, METH_NOARGS, NULL},
42217 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42218 { (char *)"Notebook_GetRowCount", (PyCFunction)_wrap_Notebook_GetRowCount, METH_O, NULL},
42219 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL},
42220 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL},
42221 { (char *)"Notebook_GetThemeBackgroundColour", (PyCFunction)_wrap_Notebook_GetThemeBackgroundColour, METH_O, NULL},
42222 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42223 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL},
42224 { (char *)"Notebook_swiginit", Notebook_swiginit, METH_VARARGS, NULL},
42225 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42226 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL},
42227 { (char *)"NotebookEvent_swiginit", NotebookEvent_swiginit, METH_VARARGS, NULL},
42228 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL},
42229 { (char *)"new_PreListbook", (PyCFunction)_wrap_new_PreListbook, METH_NOARGS, NULL},
42230 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42231 { (char *)"Listbook_GetListView", (PyCFunction)_wrap_Listbook_GetListView, METH_O, NULL},
42232 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL},
42233 { (char *)"Listbook_swiginit", Listbook_swiginit, METH_VARARGS, NULL},
42234 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42235 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL},
42236 { (char *)"ListbookEvent_swiginit", ListbookEvent_swiginit, METH_VARARGS, NULL},
42237 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL},
42238 { (char *)"new_PreChoicebook", (PyCFunction)_wrap_new_PreChoicebook, METH_NOARGS, NULL},
42239 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42240 { (char *)"Choicebook_GetChoiceCtrl", (PyCFunction)_wrap_Choicebook_GetChoiceCtrl, METH_O, NULL},
42241 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL},
42242 { (char *)"Choicebook_swiginit", Choicebook_swiginit, METH_VARARGS, NULL},
42243 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42244 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL},
42245 { (char *)"ChoicebookEvent_swiginit", ChoicebookEvent_swiginit, METH_VARARGS, NULL},
42246 { (char *)"new_Treebook", (PyCFunction) _wrap_new_Treebook, METH_VARARGS | METH_KEYWORDS, NULL},
42247 { (char *)"new_PreTreebook", (PyCFunction)_wrap_new_PreTreebook, METH_NOARGS, NULL},
42248 { (char *)"Treebook_Create", (PyCFunction) _wrap_Treebook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42249 { (char *)"Treebook_InsertSubPage", (PyCFunction) _wrap_Treebook_InsertSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42250 { (char *)"Treebook_AddSubPage", (PyCFunction) _wrap_Treebook_AddSubPage, METH_VARARGS | METH_KEYWORDS, NULL},
42251 { (char *)"Treebook_IsNodeExpanded", (PyCFunction) _wrap_Treebook_IsNodeExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42252 { (char *)"Treebook_ExpandNode", (PyCFunction) _wrap_Treebook_ExpandNode, METH_VARARGS | METH_KEYWORDS, NULL},
42253 { (char *)"Treebook_CollapseNode", (PyCFunction) _wrap_Treebook_CollapseNode, METH_VARARGS | METH_KEYWORDS, NULL},
42254 { (char *)"Treebook_GetPageParent", (PyCFunction) _wrap_Treebook_GetPageParent, METH_VARARGS | METH_KEYWORDS, NULL},
42255 { (char *)"Treebook_GetTreeCtrl", (PyCFunction)_wrap_Treebook_GetTreeCtrl, METH_O, NULL},
42256 { (char *)"Treebook_swigregister", Treebook_swigregister, METH_VARARGS, NULL},
42257 { (char *)"Treebook_swiginit", Treebook_swiginit, METH_VARARGS, NULL},
42258 { (char *)"new_TreebookEvent", (PyCFunction) _wrap_new_TreebookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42259 { (char *)"TreebookEvent_swigregister", TreebookEvent_swigregister, METH_VARARGS, NULL},
42260 { (char *)"TreebookEvent_swiginit", TreebookEvent_swiginit, METH_VARARGS, NULL},
42261 { (char *)"new_Toolbook", (PyCFunction) _wrap_new_Toolbook, METH_VARARGS | METH_KEYWORDS, NULL},
42262 { (char *)"new_PreToolbook", (PyCFunction)_wrap_new_PreToolbook, METH_NOARGS, NULL},
42263 { (char *)"Toolbook_Create", (PyCFunction) _wrap_Toolbook_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42264 { (char *)"Toolbook_GetToolBar", (PyCFunction)_wrap_Toolbook_GetToolBar, METH_O, NULL},
42265 { (char *)"Toolbook_Realize", (PyCFunction)_wrap_Toolbook_Realize, METH_O, NULL},
42266 { (char *)"Toolbook_swigregister", Toolbook_swigregister, METH_VARARGS, NULL},
42267 { (char *)"Toolbook_swiginit", Toolbook_swiginit, METH_VARARGS, NULL},
42268 { (char *)"new_ToolbookEvent", (PyCFunction) _wrap_new_ToolbookEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42269 { (char *)"ToolbookEvent_swigregister", ToolbookEvent_swigregister, METH_VARARGS, NULL},
42270 { (char *)"ToolbookEvent_swiginit", ToolbookEvent_swiginit, METH_VARARGS, NULL},
42271 { (char *)"ToolBarToolBase_GetId", (PyCFunction)_wrap_ToolBarToolBase_GetId, METH_O, NULL},
42272 { (char *)"ToolBarToolBase_GetControl", (PyCFunction)_wrap_ToolBarToolBase_GetControl, METH_O, NULL},
42273 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction)_wrap_ToolBarToolBase_GetToolBar, METH_O, NULL},
42274 { (char *)"ToolBarToolBase_IsButton", (PyCFunction)_wrap_ToolBarToolBase_IsButton, METH_O, NULL},
42275 { (char *)"ToolBarToolBase_IsControl", (PyCFunction)_wrap_ToolBarToolBase_IsControl, METH_O, NULL},
42276 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction)_wrap_ToolBarToolBase_IsSeparator, METH_O, NULL},
42277 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction)_wrap_ToolBarToolBase_GetStyle, METH_O, NULL},
42278 { (char *)"ToolBarToolBase_GetKind", (PyCFunction)_wrap_ToolBarToolBase_GetKind, METH_O, NULL},
42279 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction)_wrap_ToolBarToolBase_IsEnabled, METH_O, NULL},
42280 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction)_wrap_ToolBarToolBase_IsToggled, METH_O, NULL},
42281 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction)_wrap_ToolBarToolBase_CanBeToggled, METH_O, NULL},
42282 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetNormalBitmap, METH_O, NULL},
42283 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetDisabledBitmap, METH_O, NULL},
42284 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction)_wrap_ToolBarToolBase_GetBitmap, METH_O, NULL},
42285 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction)_wrap_ToolBarToolBase_GetLabel, METH_O, NULL},
42286 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction)_wrap_ToolBarToolBase_GetShortHelp, METH_O, NULL},
42287 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction)_wrap_ToolBarToolBase_GetLongHelp, METH_O, NULL},
42288 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL},
42289 { (char *)"ToolBarToolBase_Toggle", (PyCFunction)_wrap_ToolBarToolBase_Toggle, METH_O, NULL},
42290 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42291 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42292 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42293 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42294 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42295 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42296 { (char *)"ToolBarToolBase_Detach", (PyCFunction)_wrap_ToolBarToolBase_Detach, METH_O, NULL},
42297 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL},
42298 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction)_wrap_ToolBarToolBase_GetClientData, METH_O, NULL},
42299 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42300 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL},
42301 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL},
42302 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL},
42303 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42304 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL},
42305 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL},
42306 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL},
42307 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL},
42308 { (char *)"ToolBarBase_AddSeparator", (PyCFunction)_wrap_ToolBarBase_AddSeparator, METH_O, NULL},
42309 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
42310 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL},
42311 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL},
42312 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL},
42313 { (char *)"ToolBarBase_ClearTools", (PyCFunction)_wrap_ToolBarBase_ClearTools, METH_O, NULL},
42314 { (char *)"ToolBarBase_Realize", (PyCFunction)_wrap_ToolBarBase_Realize, METH_O, NULL},
42315 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL},
42316 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL},
42317 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL},
42318 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42319 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL},
42320 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL},
42321 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL},
42322 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL},
42323 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42324 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42325 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42326 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42327 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
42328 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
42329 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL},
42330 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL},
42331 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction)_wrap_ToolBarBase_GetToolMargins, METH_O, NULL},
42332 { (char *)"ToolBarBase_GetMargins", (PyCFunction)_wrap_ToolBarBase_GetMargins, METH_O, NULL},
42333 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction)_wrap_ToolBarBase_GetToolPacking, METH_O, NULL},
42334 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction)_wrap_ToolBarBase_GetToolSeparation, METH_O, NULL},
42335 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL},
42336 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL},
42337 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction)_wrap_ToolBarBase_GetMaxRows, METH_O, NULL},
42338 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction)_wrap_ToolBarBase_GetMaxCols, METH_O, NULL},
42339 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL},
42340 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction)_wrap_ToolBarBase_GetToolBitmapSize, METH_O, NULL},
42341 { (char *)"ToolBarBase_GetToolSize", (PyCFunction)_wrap_ToolBarBase_GetToolSize, METH_O, NULL},
42342 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42343 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL},
42344 { (char *)"ToolBarBase_IsVertical", (PyCFunction)_wrap_ToolBarBase_IsVertical, METH_O, NULL},
42345 { (char *)"ToolBarBase_GetToolsCount", (PyCFunction)_wrap_ToolBarBase_GetToolsCount, METH_O, NULL},
42346 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL},
42347 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL},
42348 { (char *)"new_PreToolBar", (PyCFunction)_wrap_new_PreToolBar, METH_NOARGS, NULL},
42349 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42350 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42351 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL},
42352 { (char *)"ToolBar_swiginit", ToolBar_swiginit, METH_VARARGS, NULL},
42353 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL},
42354 { (char *)"delete_ListItemAttr", (PyCFunction)_wrap_delete_ListItemAttr, METH_O, NULL},
42355 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42356 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42357 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42358 { (char *)"ListItemAttr_HasTextColour", (PyCFunction)_wrap_ListItemAttr_HasTextColour, METH_O, NULL},
42359 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction)_wrap_ListItemAttr_HasBackgroundColour, METH_O, NULL},
42360 { (char *)"ListItemAttr_HasFont", (PyCFunction)_wrap_ListItemAttr_HasFont, METH_O, NULL},
42361 { (char *)"ListItemAttr_GetTextColour", (PyCFunction)_wrap_ListItemAttr_GetTextColour, METH_O, NULL},
42362 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction)_wrap_ListItemAttr_GetBackgroundColour, METH_O, NULL},
42363 { (char *)"ListItemAttr_GetFont", (PyCFunction)_wrap_ListItemAttr_GetFont, METH_O, NULL},
42364 { (char *)"ListItemAttr_AssignFrom", (PyCFunction) _wrap_ListItemAttr_AssignFrom, METH_VARARGS | METH_KEYWORDS, NULL},
42365 { (char *)"ListItemAttr_Destroy", (PyCFunction)_wrap_ListItemAttr_Destroy, METH_O, NULL},
42366 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL},
42367 { (char *)"ListItemAttr_swiginit", ListItemAttr_swiginit, METH_VARARGS, NULL},
42368 { (char *)"new_ListItem", (PyCFunction)_wrap_new_ListItem, METH_NOARGS, NULL},
42369 { (char *)"delete_ListItem", (PyCFunction)_wrap_delete_ListItem, METH_O, NULL},
42370 { (char *)"ListItem_Clear", (PyCFunction)_wrap_ListItem_Clear, METH_O, NULL},
42371 { (char *)"ListItem_ClearAttributes", (PyCFunction)_wrap_ListItem_ClearAttributes, METH_O, NULL},
42372 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
42373 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42374 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42375 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL},
42376 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL},
42377 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL},
42378 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL},
42379 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42380 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42381 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL},
42382 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42383 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42384 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
42385 { (char *)"ListItem_GetMask", (PyCFunction)_wrap_ListItem_GetMask, METH_O, NULL},
42386 { (char *)"ListItem_GetId", (PyCFunction)_wrap_ListItem_GetId, METH_O, NULL},
42387 { (char *)"ListItem_GetColumn", (PyCFunction)_wrap_ListItem_GetColumn, METH_O, NULL},
42388 { (char *)"ListItem_GetState", (PyCFunction)_wrap_ListItem_GetState, METH_O, NULL},
42389 { (char *)"ListItem_GetText", (PyCFunction)_wrap_ListItem_GetText, METH_O, NULL},
42390 { (char *)"ListItem_GetImage", (PyCFunction)_wrap_ListItem_GetImage, METH_O, NULL},
42391 { (char *)"ListItem_GetData", (PyCFunction)_wrap_ListItem_GetData, METH_O, NULL},
42392 { (char *)"ListItem_GetWidth", (PyCFunction)_wrap_ListItem_GetWidth, METH_O, NULL},
42393 { (char *)"ListItem_GetAlign", (PyCFunction)_wrap_ListItem_GetAlign, METH_O, NULL},
42394 { (char *)"ListItem_GetAttributes", (PyCFunction)_wrap_ListItem_GetAttributes, METH_O, NULL},
42395 { (char *)"ListItem_HasAttributes", (PyCFunction)_wrap_ListItem_HasAttributes, METH_O, NULL},
42396 { (char *)"ListItem_GetTextColour", (PyCFunction)_wrap_ListItem_GetTextColour, METH_O, NULL},
42397 { (char *)"ListItem_GetBackgroundColour", (PyCFunction)_wrap_ListItem_GetBackgroundColour, METH_O, NULL},
42398 { (char *)"ListItem_GetFont", (PyCFunction)_wrap_ListItem_GetFont, METH_O, NULL},
42399 { (char *)"ListItem_m_mask_set", _wrap_ListItem_m_mask_set, METH_VARARGS, NULL},
42400 { (char *)"ListItem_m_mask_get", (PyCFunction)_wrap_ListItem_m_mask_get, METH_O, NULL},
42401 { (char *)"ListItem_m_itemId_set", _wrap_ListItem_m_itemId_set, METH_VARARGS, NULL},
42402 { (char *)"ListItem_m_itemId_get", (PyCFunction)_wrap_ListItem_m_itemId_get, METH_O, NULL},
42403 { (char *)"ListItem_m_col_set", _wrap_ListItem_m_col_set, METH_VARARGS, NULL},
42404 { (char *)"ListItem_m_col_get", (PyCFunction)_wrap_ListItem_m_col_get, METH_O, NULL},
42405 { (char *)"ListItem_m_state_set", _wrap_ListItem_m_state_set, METH_VARARGS, NULL},
42406 { (char *)"ListItem_m_state_get", (PyCFunction)_wrap_ListItem_m_state_get, METH_O, NULL},
42407 { (char *)"ListItem_m_stateMask_set", _wrap_ListItem_m_stateMask_set, METH_VARARGS, NULL},
42408 { (char *)"ListItem_m_stateMask_get", (PyCFunction)_wrap_ListItem_m_stateMask_get, METH_O, NULL},
42409 { (char *)"ListItem_m_text_set", _wrap_ListItem_m_text_set, METH_VARARGS, NULL},
42410 { (char *)"ListItem_m_text_get", (PyCFunction)_wrap_ListItem_m_text_get, METH_O, NULL},
42411 { (char *)"ListItem_m_image_set", _wrap_ListItem_m_image_set, METH_VARARGS, NULL},
42412 { (char *)"ListItem_m_image_get", (PyCFunction)_wrap_ListItem_m_image_get, METH_O, NULL},
42413 { (char *)"ListItem_m_data_set", _wrap_ListItem_m_data_set, METH_VARARGS, NULL},
42414 { (char *)"ListItem_m_data_get", (PyCFunction)_wrap_ListItem_m_data_get, METH_O, NULL},
42415 { (char *)"ListItem_m_format_set", _wrap_ListItem_m_format_set, METH_VARARGS, NULL},
42416 { (char *)"ListItem_m_format_get", (PyCFunction)_wrap_ListItem_m_format_get, METH_O, NULL},
42417 { (char *)"ListItem_m_width_set", _wrap_ListItem_m_width_set, METH_VARARGS, NULL},
42418 { (char *)"ListItem_m_width_get", (PyCFunction)_wrap_ListItem_m_width_get, METH_O, NULL},
42419 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL},
42420 { (char *)"ListItem_swiginit", ListItem_swiginit, METH_VARARGS, NULL},
42421 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42422 { (char *)"ListEvent_m_code_set", _wrap_ListEvent_m_code_set, METH_VARARGS, NULL},
42423 { (char *)"ListEvent_m_code_get", (PyCFunction)_wrap_ListEvent_m_code_get, METH_O, NULL},
42424 { (char *)"ListEvent_m_oldItemIndex_set", _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS, NULL},
42425 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction)_wrap_ListEvent_m_oldItemIndex_get, METH_O, NULL},
42426 { (char *)"ListEvent_m_itemIndex_set", _wrap_ListEvent_m_itemIndex_set, METH_VARARGS, NULL},
42427 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction)_wrap_ListEvent_m_itemIndex_get, METH_O, NULL},
42428 { (char *)"ListEvent_m_col_set", _wrap_ListEvent_m_col_set, METH_VARARGS, NULL},
42429 { (char *)"ListEvent_m_col_get", (PyCFunction)_wrap_ListEvent_m_col_get, METH_O, NULL},
42430 { (char *)"ListEvent_m_pointDrag_set", _wrap_ListEvent_m_pointDrag_set, METH_VARARGS, NULL},
42431 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction)_wrap_ListEvent_m_pointDrag_get, METH_O, NULL},
42432 { (char *)"ListEvent_m_item_get", (PyCFunction)_wrap_ListEvent_m_item_get, METH_O, NULL},
42433 { (char *)"ListEvent_GetKeyCode", (PyCFunction)_wrap_ListEvent_GetKeyCode, METH_O, NULL},
42434 { (char *)"ListEvent_GetIndex", (PyCFunction)_wrap_ListEvent_GetIndex, METH_O, NULL},
42435 { (char *)"ListEvent_GetColumn", (PyCFunction)_wrap_ListEvent_GetColumn, METH_O, NULL},
42436 { (char *)"ListEvent_GetPoint", (PyCFunction)_wrap_ListEvent_GetPoint, METH_O, NULL},
42437 { (char *)"ListEvent_GetLabel", (PyCFunction)_wrap_ListEvent_GetLabel, METH_O, NULL},
42438 { (char *)"ListEvent_GetText", (PyCFunction)_wrap_ListEvent_GetText, METH_O, NULL},
42439 { (char *)"ListEvent_GetImage", (PyCFunction)_wrap_ListEvent_GetImage, METH_O, NULL},
42440 { (char *)"ListEvent_GetData", (PyCFunction)_wrap_ListEvent_GetData, METH_O, NULL},
42441 { (char *)"ListEvent_GetMask", (PyCFunction)_wrap_ListEvent_GetMask, METH_O, NULL},
42442 { (char *)"ListEvent_GetItem", (PyCFunction)_wrap_ListEvent_GetItem, METH_O, NULL},
42443 { (char *)"ListEvent_GetCacheFrom", (PyCFunction)_wrap_ListEvent_GetCacheFrom, METH_O, NULL},
42444 { (char *)"ListEvent_GetCacheTo", (PyCFunction)_wrap_ListEvent_GetCacheTo, METH_O, NULL},
42445 { (char *)"ListEvent_IsEditCancelled", (PyCFunction)_wrap_ListEvent_IsEditCancelled, METH_O, NULL},
42446 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42447 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL},
42448 { (char *)"ListEvent_swiginit", ListEvent_swiginit, METH_VARARGS, NULL},
42449 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42450 { (char *)"new_PreListCtrl", (PyCFunction)_wrap_new_PreListCtrl, METH_NOARGS, NULL},
42451 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42452 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42453 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42454 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42455 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42456 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL},
42457 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction)_wrap_ListCtrl_GetCountPerPage, METH_O, NULL},
42458 { (char *)"ListCtrl_GetViewRect", (PyCFunction)_wrap_ListCtrl_GetViewRect, METH_O, NULL},
42459 { (char *)"ListCtrl_GetEditControl", (PyCFunction)_wrap_ListCtrl_GetEditControl, METH_O, NULL},
42460 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42461 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42462 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42463 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42464 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL},
42465 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42466 { (char *)"ListCtrl_SetItemColumnImage", (PyCFunction) _wrap_ListCtrl_SetItemColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42467 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42468 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42469 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42470 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42471 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42472 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL},
42473 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42474 { (char *)"ListCtrl_GetItemCount", (PyCFunction)_wrap_ListCtrl_GetItemCount, METH_O, NULL},
42475 { (char *)"ListCtrl_GetColumnCount", (PyCFunction)_wrap_ListCtrl_GetColumnCount, METH_O, NULL},
42476 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction)_wrap_ListCtrl_GetItemSpacing, METH_O, NULL},
42477 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42478 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction)_wrap_ListCtrl_GetSelectedItemCount, METH_O, NULL},
42479 { (char *)"ListCtrl_GetTextColour", (PyCFunction)_wrap_ListCtrl_GetTextColour, METH_O, NULL},
42480 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42481 { (char *)"ListCtrl_GetTopItem", (PyCFunction)_wrap_ListCtrl_GetTopItem, METH_O, NULL},
42482 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL},
42483 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL},
42484 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42485 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42486 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42487 { (char *)"ListCtrl_InReportView", (PyCFunction)_wrap_ListCtrl_InReportView, METH_O, NULL},
42488 { (char *)"ListCtrl_IsVirtual", (PyCFunction)_wrap_ListCtrl_IsVirtual, METH_O, NULL},
42489 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL},
42490 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL},
42491 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL},
42492 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL},
42493 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction)_wrap_ListCtrl_DeleteAllItems, METH_O, NULL},
42494 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42495 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction)_wrap_ListCtrl_DeleteAllColumns, METH_O, NULL},
42496 { (char *)"ListCtrl_ClearAll", (PyCFunction)_wrap_ListCtrl_ClearAll, METH_O, NULL},
42497 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42498 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42499 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL},
42500 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42501 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL},
42502 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42503 { (char *)"ListCtrl_HitTestSubItem", (PyCFunction) _wrap_ListCtrl_HitTestSubItem, METH_VARARGS | METH_KEYWORDS, NULL},
42504 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42505 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42506 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL},
42507 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL},
42508 { (char *)"ListCtrl_InsertColumnItem", (PyCFunction) _wrap_ListCtrl_InsertColumnItem, METH_VARARGS | METH_KEYWORDS, NULL},
42509 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL},
42510 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL},
42511 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL},
42512 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42513 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42514 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42515 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42516 { (char *)"ListCtrl_SetItemFont", (PyCFunction) _wrap_ListCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42517 { (char *)"ListCtrl_GetItemFont", (PyCFunction) _wrap_ListCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42518 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL},
42519 { (char *)"ListCtrl_GetMainWindow", (PyCFunction)_wrap_ListCtrl_GetMainWindow, METH_O, NULL},
42520 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42521 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL},
42522 { (char *)"ListCtrl_swiginit", ListCtrl_swiginit, METH_VARARGS, NULL},
42523 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL},
42524 { (char *)"new_PreListView", (PyCFunction)_wrap_new_PreListView, METH_NOARGS, NULL},
42525 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42526 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL},
42527 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL},
42528 { (char *)"ListView_GetFocusedItem", (PyCFunction)_wrap_ListView_GetFocusedItem, METH_O, NULL},
42529 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42530 { (char *)"ListView_GetFirstSelected", (PyCFunction)_wrap_ListView_GetFirstSelected, METH_O, NULL},
42531 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42532 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42533 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL},
42534 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL},
42535 { (char *)"ListView_swiginit", ListView_swiginit, METH_VARARGS, NULL},
42536 { (char *)"new_TreeItemId", (PyCFunction)_wrap_new_TreeItemId, METH_NOARGS, NULL},
42537 { (char *)"delete_TreeItemId", (PyCFunction)_wrap_delete_TreeItemId, METH_O, NULL},
42538 { (char *)"TreeItemId_IsOk", (PyCFunction)_wrap_TreeItemId_IsOk, METH_O, NULL},
42539 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
42540 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
42541 { (char *)"TreeItemId_m_pItem_set", _wrap_TreeItemId_m_pItem_set, METH_VARARGS, NULL},
42542 { (char *)"TreeItemId_m_pItem_get", (PyCFunction)_wrap_TreeItemId_m_pItem_get, METH_O, NULL},
42543 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL},
42544 { (char *)"TreeItemId_swiginit", TreeItemId_swiginit, METH_VARARGS, NULL},
42545 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42546 { (char *)"delete_TreeItemData", (PyCFunction)_wrap_delete_TreeItemData, METH_O, NULL},
42547 { (char *)"TreeItemData_GetData", (PyCFunction)_wrap_TreeItemData_GetData, METH_O, NULL},
42548 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL},
42549 { (char *)"TreeItemData_GetId", (PyCFunction)_wrap_TreeItemData_GetId, METH_O, NULL},
42550 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
42551 { (char *)"TreeItemData_Destroy", (PyCFunction)_wrap_TreeItemData_Destroy, METH_O, NULL},
42552 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL},
42553 { (char *)"TreeItemData_swiginit", TreeItemData_swiginit, METH_VARARGS, NULL},
42554 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42555 { (char *)"TreeEvent_GetItem", (PyCFunction)_wrap_TreeEvent_GetItem, METH_O, NULL},
42556 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL},
42557 { (char *)"TreeEvent_GetOldItem", (PyCFunction)_wrap_TreeEvent_GetOldItem, METH_O, NULL},
42558 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL},
42559 { (char *)"TreeEvent_GetPoint", (PyCFunction)_wrap_TreeEvent_GetPoint, METH_O, NULL},
42560 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL},
42561 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction)_wrap_TreeEvent_GetKeyEvent, METH_O, NULL},
42562 { (char *)"TreeEvent_GetKeyCode", (PyCFunction)_wrap_TreeEvent_GetKeyCode, METH_O, NULL},
42563 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42564 { (char *)"TreeEvent_GetLabel", (PyCFunction)_wrap_TreeEvent_GetLabel, METH_O, NULL},
42565 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42566 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction)_wrap_TreeEvent_IsEditCancelled, METH_O, NULL},
42567 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL},
42568 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL},
42569 { (char *)"TreeEvent_GetToolTip", (PyCFunction)_wrap_TreeEvent_GetToolTip, METH_O, NULL},
42570 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL},
42571 { (char *)"TreeEvent_swiginit", TreeEvent_swiginit, METH_VARARGS, NULL},
42572 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42573 { (char *)"new_PreTreeCtrl", (PyCFunction)_wrap_new_PreTreeCtrl, METH_NOARGS, NULL},
42574 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42575 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42576 { (char *)"TreeCtrl_GetCount", (PyCFunction)_wrap_TreeCtrl_GetCount, METH_O, NULL},
42577 { (char *)"TreeCtrl_GetIndent", (PyCFunction)_wrap_TreeCtrl_GetIndent, METH_O, NULL},
42578 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL},
42579 { (char *)"TreeCtrl_GetSpacing", (PyCFunction)_wrap_TreeCtrl_GetSpacing, METH_O, NULL},
42580 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL},
42581 { (char *)"TreeCtrl_GetImageList", (PyCFunction)_wrap_TreeCtrl_GetImageList, METH_O, NULL},
42582 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction)_wrap_TreeCtrl_GetStateImageList, METH_O, NULL},
42583 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42584 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42585 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42586 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL},
42587 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42588 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42589 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42590 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42591 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42592 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42593 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42594 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL},
42595 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL},
42596 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL},
42597 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL},
42598 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42599 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL},
42600 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL},
42601 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL},
42602 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL},
42603 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL},
42604 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42605 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42606 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL},
42607 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL},
42608 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL},
42609 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL},
42610 { (char *)"TreeCtrl_GetRootItem", (PyCFunction)_wrap_TreeCtrl_GetRootItem, METH_O, NULL},
42611 { (char *)"TreeCtrl_GetSelection", (PyCFunction)_wrap_TreeCtrl_GetSelection, METH_O, NULL},
42612 { (char *)"TreeCtrl_GetSelections", (PyCFunction)_wrap_TreeCtrl_GetSelections, METH_O, NULL},
42613 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL},
42614 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL},
42615 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL},
42616 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL},
42617 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42618 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL},
42619 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction)_wrap_TreeCtrl_GetFirstVisibleItem, METH_O, NULL},
42620 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42621 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42622 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL},
42623 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL},
42624 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL},
42625 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL},
42626 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL},
42627 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL},
42628 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42629 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction)_wrap_TreeCtrl_DeleteAllItems, METH_O, NULL},
42630 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL},
42631 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL},
42632 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL},
42633 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL},
42634 { (char *)"TreeCtrl_Unselect", (PyCFunction)_wrap_TreeCtrl_Unselect, METH_O, NULL},
42635 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42636 { (char *)"TreeCtrl_UnselectAll", (PyCFunction)_wrap_TreeCtrl_UnselectAll, METH_O, NULL},
42637 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL},
42638 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL},
42639 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL},
42640 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL},
42641 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL},
42642 { (char *)"TreeCtrl_GetEditControl", (PyCFunction)_wrap_TreeCtrl_GetEditControl, METH_O, NULL},
42643 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL},
42644 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL},
42645 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL},
42646 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL},
42647 { (char *)"TreeCtrl_SetQuickBestSize", (PyCFunction) _wrap_TreeCtrl_SetQuickBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42648 { (char *)"TreeCtrl_GetQuickBestSize", (PyCFunction)_wrap_TreeCtrl_GetQuickBestSize, METH_O, NULL},
42649 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL},
42650 { (char *)"TreeCtrl_swiginit", TreeCtrl_swiginit, METH_VARARGS, NULL},
42651 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42652 { (char *)"new_PreGenericDirCtrl", (PyCFunction)_wrap_new_PreGenericDirCtrl, METH_NOARGS, NULL},
42653 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42654 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL},
42655 { (char *)"GenericDirCtrl_CollapsePath", (PyCFunction) _wrap_GenericDirCtrl_CollapsePath, METH_VARARGS | METH_KEYWORDS, NULL},
42656 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction)_wrap_GenericDirCtrl_GetDefaultPath, METH_O, NULL},
42657 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL},
42658 { (char *)"GenericDirCtrl_GetPath", (PyCFunction)_wrap_GenericDirCtrl_GetPath, METH_O, NULL},
42659 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction)_wrap_GenericDirCtrl_GetFilePath, METH_O, NULL},
42660 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL},
42661 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL},
42662 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction)_wrap_GenericDirCtrl_GetShowHidden, METH_O, NULL},
42663 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction)_wrap_GenericDirCtrl_GetFilter, METH_O, NULL},
42664 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL},
42665 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction)_wrap_GenericDirCtrl_GetFilterIndex, METH_O, NULL},
42666 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL},
42667 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction)_wrap_GenericDirCtrl_GetRootId, METH_O, NULL},
42668 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetTreeCtrl, METH_O, NULL},
42669 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction)_wrap_GenericDirCtrl_GetFilterListCtrl, METH_O, NULL},
42670 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL},
42671 { (char *)"GenericDirCtrl_DoResize", (PyCFunction)_wrap_GenericDirCtrl_DoResize, METH_O, NULL},
42672 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction)_wrap_GenericDirCtrl_ReCreateTree, METH_O, NULL},
42673 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL},
42674 { (char *)"GenericDirCtrl_swiginit", GenericDirCtrl_swiginit, METH_VARARGS, NULL},
42675 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42676 { (char *)"new_PreDirFilterListCtrl", (PyCFunction)_wrap_new_PreDirFilterListCtrl, METH_NOARGS, NULL},
42677 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42678 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL},
42679 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL},
42680 { (char *)"DirFilterListCtrl_swiginit", DirFilterListCtrl_swiginit, METH_VARARGS, NULL},
42681 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL},
42682 { (char *)"new_PrePyControl", (PyCFunction)_wrap_new_PrePyControl, METH_NOARGS, NULL},
42683 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
42684 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL},
42685 { (char *)"PyControl_DoEraseBackground", (PyCFunction) _wrap_PyControl_DoEraseBackground, METH_VARARGS | METH_KEYWORDS, NULL},
42686 { (char *)"PyControl_DoMoveWindow", (PyCFunction) _wrap_PyControl_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42687 { (char *)"PyControl_DoSetSize", (PyCFunction) _wrap_PyControl_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL},
42688 { (char *)"PyControl_DoSetClientSize", (PyCFunction) _wrap_PyControl_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL},
42689 { (char *)"PyControl_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL},
42690 { (char *)"PyControl_DoGetSize", (PyCFunction)_wrap_PyControl_DoGetSize, METH_O, NULL},
42691 { (char *)"PyControl_DoGetClientSize", (PyCFunction)_wrap_PyControl_DoGetClientSize, METH_O, NULL},
42692 { (char *)"PyControl_DoGetPosition", (PyCFunction)_wrap_PyControl_DoGetPosition, METH_O, NULL},
42693 { (char *)"PyControl_DoGetVirtualSize", (PyCFunction)_wrap_PyControl_DoGetVirtualSize, METH_O, NULL},
42694 { (char *)"PyControl_DoGetBestSize", (PyCFunction)_wrap_PyControl_DoGetBestSize, METH_O, NULL},
42695 { (char *)"PyControl_GetDefaultAttributes", (PyCFunction)_wrap_PyControl_GetDefaultAttributes, METH_O, NULL},
42696 { (char *)"PyControl_OnInternalIdle", (PyCFunction)_wrap_PyControl_OnInternalIdle, METH_O, NULL},
42697 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL},
42698 { (char *)"PyControl_swiginit", PyControl_swiginit, METH_VARARGS, NULL},
42699 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42700 { (char *)"HelpEvent_GetPosition", (PyCFunction)_wrap_HelpEvent_GetPosition, METH_O, NULL},
42701 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL},
42702 { (char *)"HelpEvent_GetLink", (PyCFunction)_wrap_HelpEvent_GetLink, METH_O, NULL},
42703 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL},
42704 { (char *)"HelpEvent_GetTarget", (PyCFunction)_wrap_HelpEvent_GetTarget, METH_O, NULL},
42705 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL},
42706 { (char *)"HelpEvent_GetOrigin", (PyCFunction)_wrap_HelpEvent_GetOrigin, METH_O, NULL},
42707 { (char *)"HelpEvent_SetOrigin", (PyCFunction) _wrap_HelpEvent_SetOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
42708 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL},
42709 { (char *)"HelpEvent_swiginit", HelpEvent_swiginit, METH_VARARGS, NULL},
42710 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42711 { (char *)"delete_ContextHelp", (PyCFunction)_wrap_delete_ContextHelp, METH_O, NULL},
42712 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42713 { (char *)"ContextHelp_EndContextHelp", (PyCFunction)_wrap_ContextHelp_EndContextHelp, METH_O, NULL},
42714 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL},
42715 { (char *)"ContextHelp_swiginit", ContextHelp_swiginit, METH_VARARGS, NULL},
42716 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL},
42717 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL},
42718 { (char *)"ContextHelpButton_swiginit", ContextHelpButton_swiginit, METH_VARARGS, NULL},
42719 { (char *)"delete_HelpProvider", (PyCFunction)_wrap_delete_HelpProvider, METH_O, NULL},
42720 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL},
42721 { (char *)"HelpProvider_Get", (PyCFunction)_wrap_HelpProvider_Get, METH_NOARGS, NULL},
42722 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42723 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42724 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42725 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL},
42726 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL},
42727 { (char *)"HelpProvider_Destroy", (PyCFunction)_wrap_HelpProvider_Destroy, METH_O, NULL},
42728 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL},
42729 { (char *)"new_SimpleHelpProvider", (PyCFunction)_wrap_new_SimpleHelpProvider, METH_NOARGS, NULL},
42730 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL},
42731 { (char *)"SimpleHelpProvider_swiginit", SimpleHelpProvider_swiginit, METH_VARARGS, NULL},
42732 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL},
42733 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL},
42734 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL},
42735 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL},
42736 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL},
42737 { (char *)"delete_DragImage", (PyCFunction)_wrap_delete_DragImage, METH_O, NULL},
42738 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
42739 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL},
42740 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL},
42741 { (char *)"DragImage_EndDrag", (PyCFunction)_wrap_DragImage_EndDrag, METH_O, NULL},
42742 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL},
42743 { (char *)"DragImage_Show", (PyCFunction)_wrap_DragImage_Show, METH_O, NULL},
42744 { (char *)"DragImage_Hide", (PyCFunction)_wrap_DragImage_Hide, METH_O, NULL},
42745 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL},
42746 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42747 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL},
42748 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL},
42749 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL},
42750 { (char *)"DragImage_swiginit", DragImage_swiginit, METH_VARARGS, NULL},
42751 { (char *)"new_DatePickerCtrl", (PyCFunction) _wrap_new_DatePickerCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42752 { (char *)"new_PreDatePickerCtrl", (PyCFunction)_wrap_new_PreDatePickerCtrl, METH_NOARGS, NULL},
42753 { (char *)"DatePickerCtrl_Create", (PyCFunction) _wrap_DatePickerCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42754 { (char *)"DatePickerCtrl_SetValue", (PyCFunction) _wrap_DatePickerCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL},
42755 { (char *)"DatePickerCtrl_GetValue", (PyCFunction)_wrap_DatePickerCtrl_GetValue, METH_O, NULL},
42756 { (char *)"DatePickerCtrl_SetRange", (PyCFunction) _wrap_DatePickerCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL},
42757 { (char *)"DatePickerCtrl_GetLowerLimit", (PyCFunction)_wrap_DatePickerCtrl_GetLowerLimit, METH_O, NULL},
42758 { (char *)"DatePickerCtrl_GetUpperLimit", (PyCFunction)_wrap_DatePickerCtrl_GetUpperLimit, METH_O, NULL},
42759 { (char *)"DatePickerCtrl_swigregister", DatePickerCtrl_swigregister, METH_VARARGS, NULL},
42760 { (char *)"DatePickerCtrl_swiginit", DatePickerCtrl_swiginit, METH_VARARGS, NULL},
42761 { (char *)"new_HyperlinkCtrl", (PyCFunction) _wrap_new_HyperlinkCtrl, METH_VARARGS | METH_KEYWORDS, NULL},
42762 { (char *)"new_PreHyperlinkCtrl", (PyCFunction)_wrap_new_PreHyperlinkCtrl, METH_NOARGS, NULL},
42763 { (char *)"HyperlinkCtrl_Create", (PyCFunction) _wrap_HyperlinkCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL},
42764 { (char *)"HyperlinkCtrl_GetHoverColour", (PyCFunction)_wrap_HyperlinkCtrl_GetHoverColour, METH_O, NULL},
42765 { (char *)"HyperlinkCtrl_SetHoverColour", (PyCFunction) _wrap_HyperlinkCtrl_SetHoverColour, METH_VARARGS | METH_KEYWORDS, NULL},
42766 { (char *)"HyperlinkCtrl_GetNormalColour", (PyCFunction)_wrap_HyperlinkCtrl_GetNormalColour, METH_O, NULL},
42767 { (char *)"HyperlinkCtrl_SetNormalColour", (PyCFunction) _wrap_HyperlinkCtrl_SetNormalColour, METH_VARARGS | METH_KEYWORDS, NULL},
42768 { (char *)"HyperlinkCtrl_GetVisitedColour", (PyCFunction)_wrap_HyperlinkCtrl_GetVisitedColour, METH_O, NULL},
42769 { (char *)"HyperlinkCtrl_SetVisitedColour", (PyCFunction) _wrap_HyperlinkCtrl_SetVisitedColour, METH_VARARGS | METH_KEYWORDS, NULL},
42770 { (char *)"HyperlinkCtrl_GetURL", (PyCFunction)_wrap_HyperlinkCtrl_GetURL, METH_O, NULL},
42771 { (char *)"HyperlinkCtrl_SetURL", (PyCFunction) _wrap_HyperlinkCtrl_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42772 { (char *)"HyperlinkCtrl_SetVisited", (PyCFunction) _wrap_HyperlinkCtrl_SetVisited, METH_VARARGS | METH_KEYWORDS, NULL},
42773 { (char *)"HyperlinkCtrl_GetVisited", (PyCFunction)_wrap_HyperlinkCtrl_GetVisited, METH_O, NULL},
42774 { (char *)"HyperlinkCtrl_swigregister", HyperlinkCtrl_swigregister, METH_VARARGS, NULL},
42775 { (char *)"HyperlinkCtrl_swiginit", HyperlinkCtrl_swiginit, METH_VARARGS, NULL},
42776 { (char *)"new_HyperlinkEvent", (PyCFunction) _wrap_new_HyperlinkEvent, METH_VARARGS | METH_KEYWORDS, NULL},
42777 { (char *)"HyperlinkEvent_GetURL", (PyCFunction)_wrap_HyperlinkEvent_GetURL, METH_O, NULL},
42778 { (char *)"HyperlinkEvent_SetURL", (PyCFunction) _wrap_HyperlinkEvent_SetURL, METH_VARARGS | METH_KEYWORDS, NULL},
42779 { (char *)"HyperlinkEvent_swigregister", HyperlinkEvent_swigregister, METH_VARARGS, NULL},
42780 { (char *)"HyperlinkEvent_swiginit", HyperlinkEvent_swiginit, METH_VARARGS, NULL},
42781 { NULL, NULL, 0, NULL }
42782 };
42783
42784
42785 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
42786
42787 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
42788 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
42789 }
42790 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
42791 return (void *)((wxEvent *) ((wxMenuEvent *) x));
42792 }
42793 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
42794 return (void *)((wxEvent *) ((wxCloseEvent *) x));
42795 }
42796 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
42797 return (void *)((wxEvent *) ((wxMouseEvent *) x));
42798 }
42799 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
42800 return (void *)((wxEvent *) ((wxEraseEvent *) x));
42801 }
42802 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
42803 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
42804 }
42805 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
42806 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
42807 }
42808 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
42809 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
42810 }
42811 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
42812 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
42813 }
42814 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
42815 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
42816 }
42817 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
42818 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
42819 }
42820 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
42821 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
42822 }
42823 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
42824 return (void *)((wxEvent *) ((wxPyEvent *) x));
42825 }
42826 static void *_p_wxListEventTo_p_wxEvent(void *x) {
42827 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
42828 }
42829 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
42830 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
42831 }
42832 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
42833 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
42834 }
42835 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
42836 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
42837 }
42838 static void *_p_wxTreebookEventTo_p_wxEvent(void *x) {
42839 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
42840 }
42841 static void *_p_wxToolbookEventTo_p_wxEvent(void *x) {
42842 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
42843 }
42844 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
42845 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
42846 }
42847 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
42848 return (void *)((wxEvent *) ((wxIdleEvent *) x));
42849 }
42850 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
42851 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
42852 }
42853 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
42854 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
42855 }
42856 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
42857 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
42858 }
42859 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
42860 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
42861 }
42862 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
42863 return (void *)((wxEvent *) ((wxActivateEvent *) x));
42864 }
42865 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
42866 return (void *)((wxEvent *) ((wxSizeEvent *) x));
42867 }
42868 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
42869 return (void *)((wxEvent *) ((wxMoveEvent *) x));
42870 }
42871 static void *_p_wxDateEventTo_p_wxEvent(void *x) {
42872 return (void *)((wxEvent *) (wxCommandEvent *) ((wxDateEvent *) x));
42873 }
42874 static void *_p_wxClipboardTextEventTo_p_wxEvent(void *x) {
42875 return (void *)((wxEvent *) (wxCommandEvent *) ((wxClipboardTextEvent *) x));
42876 }
42877 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
42878 return (void *)((wxEvent *) ((wxPaintEvent *) x));
42879 }
42880 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
42881 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
42882 }
42883 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
42884 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
42885 }
42886 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
42887 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
42888 }
42889 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
42890 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
42891 }
42892 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
42893 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
42894 }
42895 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
42896 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
42897 }
42898 static void *_p_wxHyperlinkEventTo_p_wxEvent(void *x) {
42899 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHyperlinkEvent *) x));
42900 }
42901 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
42902 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
42903 }
42904 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
42905 return (void *)((wxEvent *) ((wxFocusEvent *) x));
42906 }
42907 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
42908 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
42909 }
42910 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
42911 return (void *)((wxEvent *) ((wxShowEvent *) x));
42912 }
42913 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
42914 return (void *)((wxEvent *) ((wxCommandEvent *) x));
42915 }
42916 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
42917 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
42918 }
42919 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
42920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
42921 }
42922 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
42923 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
42924 }
42925 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
42926 return (void *)((wxEvent *) ((wxKeyEvent *) x));
42927 }
42928 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
42929 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
42930 }
42931 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
42932 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
42933 }
42934 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
42935 return (void *)((wxItemContainer *) ((wxComboBox *) x));
42936 }
42937 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
42938 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42939 }
42940 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
42941 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
42942 }
42943 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
42944 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
42945 }
42946 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
42947 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
42948 }
42949 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
42950 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
42951 }
42952 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
42953 return (void *)((wxPyListCtrl *) ((wxListView *) x));
42954 }
42955 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
42956 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
42957 }
42958 static void *_p_wxToolBarTo_p_wxControl(void *x) {
42959 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
42960 }
42961 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
42962 return (void *)((wxControl *) ((wxToggleButton *) x));
42963 }
42964 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
42965 return (void *)((wxControl *) ((wxRadioButton *) x));
42966 }
42967 static void *_p_wxToolbookTo_p_wxControl(void *x) {
42968 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxToolbook *) x));
42969 }
42970 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
42971 return (void *)((wxControl *) ((wxToolBarBase *) x));
42972 }
42973 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
42974 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
42975 }
42976 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
42977 return (void *)((wxControl *) ((wxPyListCtrl *) x));
42978 }
42979 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
42980 return (void *)((wxControl *) ((wxComboBox *) x));
42981 }
42982 static void *_p_wxPyControlTo_p_wxControl(void *x) {
42983 return (void *)((wxControl *) ((wxPyControl *) x));
42984 }
42985 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
42986 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
42987 }
42988 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
42989 return (void *)((wxControl *) ((wxScrollBar *) x));
42990 }
42991 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
42992 return (void *)((wxControl *) ((wxControlWithItems *) x));
42993 }
42994 static void *_p_wxGaugeTo_p_wxControl(void *x) {
42995 return (void *)((wxControl *) ((wxGauge *) x));
42996 }
42997 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
42998 return (void *)((wxControl *) ((wxStaticLine *) x));
42999 }
43000 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
43001 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
43002 }
43003 static void *_p_wxListbookTo_p_wxControl(void *x) {
43004 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
43005 }
43006 static void *_p_wxHyperlinkCtrlTo_p_wxControl(void *x) {
43007 return (void *)((wxControl *) ((wxHyperlinkCtrl *) x));
43008 }
43009 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
43010 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
43011 }
43012 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
43013 return (void *)((wxControl *) ((wxCheckBox *) x));
43014 }
43015 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
43016 return (void *)((wxControl *) ((wxRadioBox *) x));
43017 }
43018 static void *_p_wxChoiceTo_p_wxControl(void *x) {
43019 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
43020 }
43021 static void *_p_wxListBoxTo_p_wxControl(void *x) {
43022 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
43023 }
43024 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
43025 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43026 }
43027 static void *_p_wxListViewTo_p_wxControl(void *x) {
43028 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
43029 }
43030 static void *_p_wxNotebookTo_p_wxControl(void *x) {
43031 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
43032 }
43033 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
43034 return (void *)((wxControl *) ((wxStaticBitmap *) x));
43035 }
43036 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
43037 return (void *)((wxControl *) ((wxSpinCtrl *) x));
43038 }
43039 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
43040 return (void *)((wxControl *) ((wxStaticText *) x));
43041 }
43042 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
43043 return (void *)((wxControl *) ((wxStaticBox *) x));
43044 }
43045 static void *_p_wxSliderTo_p_wxControl(void *x) {
43046 return (void *)((wxControl *) ((wxSlider *) x));
43047 }
43048 static void *_p_wxTreebookTo_p_wxControl(void *x) {
43049 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxTreebook *) x));
43050 }
43051 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
43052 return (void *)((wxControl *) ((wxSpinButton *) x));
43053 }
43054 static void *_p_wxButtonTo_p_wxControl(void *x) {
43055 return (void *)((wxControl *) ((wxButton *) x));
43056 }
43057 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
43058 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
43059 }
43060 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
43061 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43062 }
43063 static void *_p_wxDatePickerCtrlTo_p_wxControl(void *x) {
43064 return (void *)((wxControl *) ((wxDatePickerCtrl *) x));
43065 }
43066 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
43067 return (void *)((wxControl *) ((wxTextCtrl *) x));
43068 }
43069 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
43070 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
43071 }
43072 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
43073 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
43074 }
43075 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
43076 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43077 }
43078 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
43079 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
43080 }
43081 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
43082 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
43083 }
43084 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
43085 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
43086 }
43087 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
43088 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43089 }
43090 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
43091 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43092 }
43093 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
43094 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43095 }
43096 static void *_p_wxTreebookEventTo_p_wxNotifyEvent(void *x) {
43097 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43098 }
43099 static void *_p_wxToolbookEventTo_p_wxNotifyEvent(void *x) {
43100 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43101 }
43102 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
43103 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
43104 }
43105 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
43106 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
43107 }
43108 static void *_p_wxToolbookTo_p_wxBookCtrlBase(void *x) {
43109 return (void *)((wxBookCtrlBase *) ((wxToolbook *) x));
43110 }
43111 static void *_p_wxTreebookTo_p_wxBookCtrlBase(void *x) {
43112 return (void *)((wxBookCtrlBase *) ((wxTreebook *) x));
43113 }
43114 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
43115 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
43116 }
43117 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
43118 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
43119 }
43120 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
43121 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43122 }
43123 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
43124 return (void *)((wxEvtHandler *) ((wxValidator *) x));
43125 }
43126 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
43127 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
43128 }
43129 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
43130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43131 }
43132 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
43133 return (void *)((wxEvtHandler *) ((wxMenu *) x));
43134 }
43135 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
43136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
43137 }
43138 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
43139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
43140 }
43141 static void *_p_wxToolbookTo_p_wxEvtHandler(void *x) {
43142 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43143 }
43144 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
43145 return (void *)((wxEvtHandler *) ((wxWindow *) x));
43146 }
43147 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
43148 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
43149 }
43150 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
43151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
43152 }
43153 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
43154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43155 }
43156 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
43157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43158 }
43159 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
43160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43161 }
43162 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
43163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
43164 }
43165 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
43166 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
43167 }
43168 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
43169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43170 }
43171 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
43172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
43173 }
43174 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
43175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43176 }
43177 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
43178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
43179 }
43180 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
43181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
43182 }
43183 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
43184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43185 }
43186 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
43187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43188 }
43189 static void *_p_wxHyperlinkCtrlTo_p_wxEvtHandler(void *x) {
43190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43191 }
43192 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
43193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43194 }
43195 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
43196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
43197 }
43198 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
43199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
43200 }
43201 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
43202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43203 }
43204 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
43205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43206 }
43207 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
43208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43209 }
43210 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
43211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43212 }
43213 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
43214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43215 }
43216 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
43217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43218 }
43219 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
43220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43221 }
43222 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
43223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
43224 }
43225 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
43226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
43227 }
43228 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
43229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
43230 }
43231 static void *_p_wxTreebookTo_p_wxEvtHandler(void *x) {
43232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43233 }
43234 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
43235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
43236 }
43237 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
43238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
43239 }
43240 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
43241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43242 }
43243 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
43244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43245 }
43246 static void *_p_wxDatePickerCtrlTo_p_wxEvtHandler(void *x) {
43247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43248 }
43249 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
43250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43251 }
43252 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
43253 return (void *)((wxListBox *) ((wxCheckListBox *) x));
43254 }
43255 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
43256 return (void *)((wxButton *) ((wxBitmapButton *) x));
43257 }
43258 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
43259 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
43260 }
43261 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
43262 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
43263 }
43264 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
43265 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
43266 }
43267 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
43268 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
43269 }
43270 static void *_p_wxToolbookTo_p_wxObject(void *x) {
43271 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43272 }
43273 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
43274 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
43275 }
43276 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
43277 return (void *)((wxObject *) ((wxSizerItem *) x));
43278 }
43279 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
43280 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
43281 }
43282 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
43283 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
43284 }
43285 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
43286 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
43287 }
43288 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
43289 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
43290 }
43291 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
43292 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
43293 }
43294 static void *_p_wxSizerTo_p_wxObject(void *x) {
43295 return (void *)((wxObject *) ((wxSizer *) x));
43296 }
43297 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
43298 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
43299 }
43300 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
43301 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
43302 }
43303 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
43304 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
43305 }
43306 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
43307 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
43308 }
43309 static void *_p_wxEventTo_p_wxObject(void *x) {
43310 return (void *)((wxObject *) ((wxEvent *) x));
43311 }
43312 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
43313 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
43314 }
43315 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
43316 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
43317 }
43318 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
43319 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
43320 }
43321 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
43322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
43323 }
43324 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
43325 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
43326 }
43327 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
43328 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43329 }
43330 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
43331 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
43332 }
43333 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
43334 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
43335 }
43336 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
43337 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
43338 }
43339 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
43340 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
43341 }
43342 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
43343 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
43344 }
43345 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
43346 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
43347 }
43348 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
43349 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
43350 }
43351 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
43352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
43353 }
43354 static void *_p_wxControlTo_p_wxObject(void *x) {
43355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
43356 }
43357 static void *_p_wxPyControlTo_p_wxObject(void *x) {
43358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
43359 }
43360 static void *_p_wxGaugeTo_p_wxObject(void *x) {
43361 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
43362 }
43363 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
43364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
43365 }
43366 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
43367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
43368 }
43369 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
43370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
43371 }
43372 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
43373 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
43374 }
43375 static void *_p_wxChoiceTo_p_wxObject(void *x) {
43376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43377 }
43378 static void *_p_wxFSFileTo_p_wxObject(void *x) {
43379 return (void *)((wxObject *) ((wxFSFile *) x));
43380 }
43381 static void *_p_wxPySizerTo_p_wxObject(void *x) {
43382 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
43383 }
43384 static void *_p_wxTreebookTo_p_wxObject(void *x) {
43385 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43386 }
43387 static void *_p_wxListViewTo_p_wxObject(void *x) {
43388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43389 }
43390 static void *_p_wxHyperlinkEventTo_p_wxObject(void *x) {
43391 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHyperlinkEvent *) x));
43392 }
43393 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
43394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
43395 }
43396 static void *_p_wxNotebookTo_p_wxObject(void *x) {
43397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43398 }
43399 static void *_p_wxPyEventTo_p_wxObject(void *x) {
43400 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
43401 }
43402 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
43403 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
43404 }
43405 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
43406 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43407 }
43408 static void *_p_wxListbookTo_p_wxObject(void *x) {
43409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43410 }
43411 static void *_p_wxShowEventTo_p_wxObject(void *x) {
43412 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
43413 }
43414 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
43415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
43416 }
43417 static void *_p_wxSliderTo_p_wxObject(void *x) {
43418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
43419 }
43420 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
43421 return (void *)((wxObject *) ((wxMenuItem *) x));
43422 }
43423 static void *_p_wxDateEventTo_p_wxObject(void *x) {
43424 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
43425 }
43426 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
43427 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
43428 }
43429 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
43430 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
43431 }
43432 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
43433 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
43434 }
43435 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
43436 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
43437 }
43438 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
43439 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
43440 }
43441 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
43442 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
43443 }
43444 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
43445 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
43446 }
43447 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
43448 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
43449 }
43450 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
43451 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
43452 }
43453 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
43454 return (void *)((wxObject *) ((wxContextHelp *) x));
43455 }
43456 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
43457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
43458 }
43459 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
43460 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
43461 }
43462 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
43463 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
43464 }
43465 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
43466 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
43467 }
43468 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
43469 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
43470 }
43471 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
43472 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
43473 }
43474 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
43475 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
43476 }
43477 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
43478 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
43479 }
43480 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
43481 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
43482 }
43483 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
43484 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
43485 }
43486 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
43487 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
43488 }
43489 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
43490 return (void *)((wxObject *) ((wxImageHandler *) x));
43491 }
43492 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
43493 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
43494 }
43495 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
43496 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
43497 }
43498 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
43499 return (void *)((wxObject *) ((wxEvtHandler *) x));
43500 }
43501 static void *_p_wxListEventTo_p_wxObject(void *x) {
43502 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
43503 }
43504 static void *_p_wxListBoxTo_p_wxObject(void *x) {
43505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43506 }
43507 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
43508 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43509 }
43510 static void *_p_wxButtonTo_p_wxObject(void *x) {
43511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
43512 }
43513 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
43514 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
43515 }
43516 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
43517 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
43518 }
43519 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
43520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43521 }
43522 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
43523 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
43524 }
43525 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
43526 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
43527 }
43528 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
43529 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
43530 }
43531 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
43532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
43533 }
43534 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
43535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
43536 }
43537 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
43538 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
43539 }
43540 static void *_p_wxListItemTo_p_wxObject(void *x) {
43541 return (void *)((wxObject *) ((wxListItem *) x));
43542 }
43543 static void *_p_wxImageTo_p_wxObject(void *x) {
43544 return (void *)((wxObject *) ((wxImage *) x));
43545 }
43546 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
43547 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
43548 }
43549 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
43550 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
43551 }
43552 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
43553 return (void *)((wxObject *) ((wxGenericDragImage *) x));
43554 }
43555 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
43556 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
43557 }
43558 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
43559 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43560 }
43561 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
43562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43563 }
43564 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
43565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43566 }
43567 static void *_p_wxTreebookEventTo_p_wxObject(void *x) {
43568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43569 }
43570 static void *_p_wxToolbookEventTo_p_wxObject(void *x) {
43571 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43572 }
43573 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
43574 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43575 }
43576 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
43577 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
43578 }
43579 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
43580 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
43581 }
43582 static void *_p_wxWindowTo_p_wxObject(void *x) {
43583 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
43584 }
43585 static void *_p_wxMenuTo_p_wxObject(void *x) {
43586 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
43587 }
43588 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
43589 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
43590 }
43591 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
43592 return (void *)((wxObject *) ((wxFileSystem *) x));
43593 }
43594 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
43595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
43596 }
43597 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
43598 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
43599 }
43600 static void *_p_wxPyAppTo_p_wxObject(void *x) {
43601 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
43602 }
43603 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
43604 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
43605 }
43606 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
43607 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
43608 }
43609 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
43610 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
43611 }
43612 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
43613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43614 }
43615 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
43616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
43617 }
43618 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
43619 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
43620 }
43621 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
43622 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
43623 }
43624 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
43625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
43626 }
43627 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
43628 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
43629 }
43630 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
43631 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
43632 }
43633 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
43634 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
43635 }
43636 static void *_p_wxDatePickerCtrlTo_p_wxObject(void *x) {
43637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxDatePickerCtrl *) x));
43638 }
43639 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
43640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
43641 }
43642 static void *_p_wxHyperlinkCtrlTo_p_wxObject(void *x) {
43643 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxHyperlinkCtrl *) x));
43644 }
43645 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
43646 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
43647 }
43648 static void *_p_wxToolBarTo_p_wxObject(void *x) {
43649 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43650 }
43651 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
43652 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
43653 }
43654 static void *_p_wxValidatorTo_p_wxObject(void *x) {
43655 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
43656 }
43657 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
43658 return (void *)((wxWindow *) ((wxMenuBar *) x));
43659 }
43660 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
43661 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
43662 }
43663 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
43664 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
43665 }
43666 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
43667 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
43668 }
43669 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
43670 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
43671 }
43672 static void *_p_wxToolbookTo_p_wxWindow(void *x) {
43673 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxToolbook *) x));
43674 }
43675 static void *_p_wxControlTo_p_wxWindow(void *x) {
43676 return (void *)((wxWindow *) ((wxControl *) x));
43677 }
43678 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
43679 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
43680 }
43681 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
43682 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
43683 }
43684 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
43685 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
43686 }
43687 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
43688 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
43689 }
43690 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
43691 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
43692 }
43693 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
43694 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
43695 }
43696 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
43697 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
43698 }
43699 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
43700 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
43701 }
43702 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
43703 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
43704 }
43705 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
43706 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
43707 }
43708 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
43709 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
43710 }
43711 static void *_p_wxListbookTo_p_wxWindow(void *x) {
43712 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
43713 }
43714 static void *_p_wxHyperlinkCtrlTo_p_wxWindow(void *x) {
43715 return (void *)((wxWindow *) (wxControl *) ((wxHyperlinkCtrl *) x));
43716 }
43717 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
43718 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
43719 }
43720 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
43721 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
43722 }
43723 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
43724 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
43725 }
43726 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
43727 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
43728 }
43729 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
43730 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
43731 }
43732 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
43733 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
43734 }
43735 static void *_p_wxListViewTo_p_wxWindow(void *x) {
43736 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
43737 }
43738 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
43739 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
43740 }
43741 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
43742 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
43743 }
43744 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
43745 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
43746 }
43747 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
43748 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
43749 }
43750 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
43751 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
43752 }
43753 static void *_p_wxSliderTo_p_wxWindow(void *x) {
43754 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
43755 }
43756 static void *_p_wxTreebookTo_p_wxWindow(void *x) {
43757 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxTreebook *) x));
43758 }
43759 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
43760 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
43761 }
43762 static void *_p_wxButtonTo_p_wxWindow(void *x) {
43763 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
43764 }
43765 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
43766 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
43767 }
43768 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
43769 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
43770 }
43771 static void *_p_wxDatePickerCtrlTo_p_wxWindow(void *x) {
43772 return (void *)((wxWindow *) (wxControl *) ((wxDatePickerCtrl *) x));
43773 }
43774 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
43775 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
43776 }
43777 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43778 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43779 }
43780 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43781 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43782 }
43783 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43784 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43785 }
43786 static void *_p_wxTreebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43787 return (void *)((wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43788 }
43789 static void *_p_wxToolbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
43790 return (void *)((wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43791 }
43792 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
43793 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
43794 }
43795 static void *_p_wxHyperlinkEventTo_p_wxCommandEvent(void *x) {
43796 return (void *)((wxCommandEvent *) ((wxHyperlinkEvent *) x));
43797 }
43798 static void *_p_wxClipboardTextEventTo_p_wxCommandEvent(void *x) {
43799 return (void *)((wxCommandEvent *) ((wxClipboardTextEvent *) x));
43800 }
43801 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
43802 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
43803 }
43804 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
43805 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
43806 }
43807 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
43808 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
43809 }
43810 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
43811 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
43812 }
43813 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
43814 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
43815 }
43816 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
43817 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
43818 }
43819 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
43820 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
43821 }
43822 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
43823 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
43824 }
43825 static void *_p_wxTreebookEventTo_p_wxCommandEvent(void *x) {
43826 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxTreebookEvent *) x));
43827 }
43828 static void *_p_wxToolbookEventTo_p_wxCommandEvent(void *x) {
43829 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxToolbookEvent *) x));
43830 }
43831 static void *_p_wxDateEventTo_p_wxCommandEvent(void *x) {
43832 return (void *)((wxCommandEvent *) ((wxDateEvent *) x));
43833 }
43834 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
43835 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
43836 }
43837 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
43838 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
43839 }
43840 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
43841 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
43842 }
43843 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
43844 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
43845 }
43846 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
43847 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
43848 }
43849 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
43850 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
43851 }
43852 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
43853 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
43854 }
43855 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
43856 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
43857 }
43858 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
43859 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
43860 }
43861 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
43862 return (void *)((wxControlWithItems *) ((wxChoice *) x));
43863 }
43864 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
43865 return (void *)((wxControlWithItems *) ((wxListBox *) x));
43866 }
43867 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
43868 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
43869 }
43870 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
43871 return (void *)((wxValidator *) ((wxPyValidator *) x));
43872 }
43873 static swig_type_info _swigt__p_bool = {"_p_bool", "bool *", 0, 0, (void*)0, 0};
43874 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
43875 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};
43876 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
43877 static swig_type_info _swigt__p_long = {"_p_long", "long *", 0, 0, (void*)0, 0};
43878 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
43879 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
43880 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
43881 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
43882 static swig_type_info _swigt__p_wxArrayInt = {"_p_wxArrayInt", "wxArrayInt *", 0, 0, (void*)0, 0};
43883 static swig_type_info _swigt__p_wxArrayString = {"_p_wxArrayString", "wxArrayString *", 0, 0, (void*)0, 0};
43884 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
43885 static swig_type_info _swigt__p_wxBitmapButton = {"_p_wxBitmapButton", "wxBitmapButton *", 0, 0, (void*)0, 0};
43886 static swig_type_info _swigt__p_wxBookCtrlBase = {"_p_wxBookCtrlBase", "wxBookCtrlBase *", 0, 0, (void*)0, 0};
43887 static swig_type_info _swigt__p_wxBookCtrlBaseEvent = {"_p_wxBookCtrlBaseEvent", "wxBookCtrlBaseEvent *", 0, 0, (void*)0, 0};
43888 static swig_type_info _swigt__p_wxButton = {"_p_wxButton", "wxButton *", 0, 0, (void*)0, 0};
43889 static swig_type_info _swigt__p_wxCheckBox = {"_p_wxCheckBox", "wxCheckBox *", 0, 0, (void*)0, 0};
43890 static swig_type_info _swigt__p_wxCheckListBox = {"_p_wxCheckListBox", "wxCheckListBox *", 0, 0, (void*)0, 0};
43891 static swig_type_info _swigt__p_wxChoice = {"_p_wxChoice", "wxChoice *", 0, 0, (void*)0, 0};
43892 static swig_type_info _swigt__p_wxChoicebook = {"_p_wxChoicebook", "wxChoicebook *", 0, 0, (void*)0, 0};
43893 static swig_type_info _swigt__p_wxChoicebookEvent = {"_p_wxChoicebookEvent", "wxChoicebookEvent *", 0, 0, (void*)0, 0};
43894 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
43895 static swig_type_info _swigt__p_wxComboBox = {"_p_wxComboBox", "wxComboBox *", 0, 0, (void*)0, 0};
43896 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", "wxCommandEvent *", 0, 0, (void*)0, 0};
43897 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
43898 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
43899 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
43900 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
43901 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
43902 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
43903 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
43904 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
43905 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
43906 static swig_type_info _swigt__p_wxContextHelp = {"_p_wxContextHelp", "wxContextHelp *", 0, 0, (void*)0, 0};
43907 static swig_type_info _swigt__p_wxContextHelpButton = {"_p_wxContextHelpButton", "wxContextHelpButton *", 0, 0, (void*)0, 0};
43908 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", "wxControl *", 0, 0, (void*)0, 0};
43909 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", "wxControlWithItems *", 0, 0, (void*)0, 0};
43910 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
43911 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
43912 static swig_type_info _swigt__p_wxDatePickerCtrl = {"_p_wxDatePickerCtrl", "wxDatePickerCtrl *", 0, 0, (void*)0, 0};
43913 static swig_type_info _swigt__p_wxDateTime = {"_p_wxDateTime", "wxDateTime *", 0, 0, (void*)0, 0};
43914 static swig_type_info _swigt__p_wxDirFilterListCtrl = {"_p_wxDirFilterListCtrl", "wxDirFilterListCtrl *", 0, 0, (void*)0, 0};
43915 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
43916 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", "wxEvent *", 0, 0, (void*)0, 0};
43917 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
43918 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
43919 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
43920 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
43921 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
43922 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
43923 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
43924 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
43925 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
43926 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
43927 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
43928 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
43929 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
43930 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
43931 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
43932 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
43933 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
43934 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
43935 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
43936 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
43937 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
43938 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
43939 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
43940 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
43941 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", "wxEvtHandler *", 0, 0, (void*)0, 0};
43942 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
43943 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
43944 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
43945 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
43946 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
43947 static swig_type_info _swigt__p_wxGauge = {"_p_wxGauge", "wxGauge *", 0, 0, (void*)0, 0};
43948 static swig_type_info _swigt__p_wxGenericDirCtrl = {"_p_wxGenericDirCtrl", "wxGenericDirCtrl *", 0, 0, (void*)0, 0};
43949 static swig_type_info _swigt__p_wxGenericDragImage = {"_p_wxGenericDragImage", "wxGenericDragImage *", 0, 0, (void*)0, 0};
43950 static swig_type_info _swigt__p_wxHelpEvent = {"_p_wxHelpEvent", "wxHelpEvent *", 0, 0, (void*)0, 0};
43951 static swig_type_info _swigt__p_wxHelpProvider = {"_p_wxHelpProvider", "wxHelpProvider *", 0, 0, (void*)0, 0};
43952 static swig_type_info _swigt__p_wxHyperlinkCtrl = {"_p_wxHyperlinkCtrl", "wxHyperlinkCtrl *", 0, 0, (void*)0, 0};
43953 static swig_type_info _swigt__p_wxHyperlinkEvent = {"_p_wxHyperlinkEvent", "wxHyperlinkEvent *", 0, 0, (void*)0, 0};
43954 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
43955 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
43956 static swig_type_info _swigt__p_wxItemContainer = {"_p_wxItemContainer", "wxItemContainer *", 0, 0, (void*)0, 0};
43957 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", "wxKeyEvent *", 0, 0, (void*)0, 0};
43958 static swig_type_info _swigt__p_wxListBox = {"_p_wxListBox", "wxListBox *", 0, 0, (void*)0, 0};
43959 static swig_type_info _swigt__p_wxListEvent = {"_p_wxListEvent", "wxListEvent *", 0, 0, (void*)0, 0};
43960 static swig_type_info _swigt__p_wxListItem = {"_p_wxListItem", "wxListItem *", 0, 0, (void*)0, 0};
43961 static swig_type_info _swigt__p_wxListItemAttr = {"_p_wxListItemAttr", "wxListItemAttr *", 0, 0, (void*)0, 0};
43962 static swig_type_info _swigt__p_wxListView = {"_p_wxListView", "wxListView *", 0, 0, (void*)0, 0};
43963 static swig_type_info _swigt__p_wxListbook = {"_p_wxListbook", "wxListbook *", 0, 0, (void*)0, 0};
43964 static swig_type_info _swigt__p_wxListbookEvent = {"_p_wxListbookEvent", "wxListbookEvent *", 0, 0, (void*)0, 0};
43965 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
43966 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", "wxMouseEvent *", 0, 0, (void*)0, 0};
43967 static swig_type_info _swigt__p_wxNotebook = {"_p_wxNotebook", "wxNotebook *", 0, 0, (void*)0, 0};
43968 static swig_type_info _swigt__p_wxNotebookEvent = {"_p_wxNotebookEvent", "wxNotebookEvent *", 0, 0, (void*)0, 0};
43969 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", "wxNotifyEvent *", 0, 0, (void*)0, 0};
43970 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
43971 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
43972 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
43973 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
43974 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
43975 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
43976 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
43977 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
43978 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
43979 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
43980 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
43981 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
43982 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
43983 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
43984 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
43985 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
43986 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
43987 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
43988 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
43989 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
43990 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
43991 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
43992 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
43993 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
43994 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
43995 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
43996 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
43997 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
43998 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
43999 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", 0, 0, 0, 0, 0};
44000 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
44001 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
44002 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
44003 static swig_type_info _swigt__p_wxPyControl = {"_p_wxPyControl", "wxPyControl *", 0, 0, (void*)0, 0};
44004 static swig_type_info _swigt__p_wxPyListCtrl = {"_p_wxPyListCtrl", "wxPyListCtrl *", 0, 0, (void*)0, 0};
44005 static swig_type_info _swigt__p_wxPyTreeCtrl = {"_p_wxPyTreeCtrl", "wxPyTreeCtrl *", 0, 0, (void*)0, 0};
44006 static swig_type_info _swigt__p_wxPyTreeItemData = {"_p_wxPyTreeItemData", "wxPyTreeItemData *", 0, 0, (void*)0, 0};
44007 static swig_type_info _swigt__p_wxRadioBox = {"_p_wxRadioBox", "wxRadioBox *", 0, 0, (void*)0, 0};
44008 static swig_type_info _swigt__p_wxRadioButton = {"_p_wxRadioButton", "wxRadioButton *", 0, 0, (void*)0, 0};
44009 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
44010 static swig_type_info _swigt__p_wxScrollBar = {"_p_wxScrollBar", "wxScrollBar *", 0, 0, (void*)0, 0};
44011 static swig_type_info _swigt__p_wxSimpleHelpProvider = {"_p_wxSimpleHelpProvider", "wxSimpleHelpProvider *", 0, 0, (void*)0, 0};
44012 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
44013 static swig_type_info _swigt__p_wxSlider = {"_p_wxSlider", "wxSlider *", 0, 0, (void*)0, 0};
44014 static swig_type_info _swigt__p_wxSpinButton = {"_p_wxSpinButton", "wxSpinButton *", 0, 0, (void*)0, 0};
44015 static swig_type_info _swigt__p_wxSpinCtrl = {"_p_wxSpinCtrl", "wxSpinCtrl *", 0, 0, (void*)0, 0};
44016 static swig_type_info _swigt__p_wxSpinEvent = {"_p_wxSpinEvent", "wxSpinEvent *", 0, 0, (void*)0, 0};
44017 static swig_type_info _swigt__p_wxStaticBitmap = {"_p_wxStaticBitmap", "wxStaticBitmap *", 0, 0, (void*)0, 0};
44018 static swig_type_info _swigt__p_wxStaticBox = {"_p_wxStaticBox", "wxStaticBox *", 0, 0, (void*)0, 0};
44019 static swig_type_info _swigt__p_wxStaticLine = {"_p_wxStaticLine", "wxStaticLine *", 0, 0, (void*)0, 0};
44020 static swig_type_info _swigt__p_wxStaticText = {"_p_wxStaticText", "wxStaticText *", 0, 0, (void*)0, 0};
44021 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
44022 static swig_type_info _swigt__p_wxTextAttr = {"_p_wxTextAttr", "wxTextAttr *", 0, 0, (void*)0, 0};
44023 static swig_type_info _swigt__p_wxTextCtrl = {"_p_wxTextCtrl", "wxTextCtrl *", 0, 0, (void*)0, 0};
44024 static swig_type_info _swigt__p_wxTextUrlEvent = {"_p_wxTextUrlEvent", "wxTextUrlEvent *", 0, 0, (void*)0, 0};
44025 static swig_type_info _swigt__p_wxToggleButton = {"_p_wxToggleButton", "wxToggleButton *", 0, 0, (void*)0, 0};
44026 static swig_type_info _swigt__p_wxToolBar = {"_p_wxToolBar", "wxToolBar *", 0, 0, (void*)0, 0};
44027 static swig_type_info _swigt__p_wxToolBarBase = {"_p_wxToolBarBase", "wxToolBarBase *", 0, 0, (void*)0, 0};
44028 static swig_type_info _swigt__p_wxToolBarToolBase = {"_p_wxToolBarToolBase", "wxToolBarToolBase *", 0, 0, (void*)0, 0};
44029 static swig_type_info _swigt__p_wxToolbook = {"_p_wxToolbook", "wxToolbook *", 0, 0, (void*)0, 0};
44030 static swig_type_info _swigt__p_wxToolbookEvent = {"_p_wxToolbookEvent", "wxToolbookEvent *", 0, 0, (void*)0, 0};
44031 static swig_type_info _swigt__p_wxTreeCtrl = {"_p_wxTreeCtrl", "wxTreeCtrl *", 0, 0, (void*)0, 0};
44032 static swig_type_info _swigt__p_wxTreeEvent = {"_p_wxTreeEvent", "wxTreeEvent *", 0, 0, (void*)0, 0};
44033 static swig_type_info _swigt__p_wxTreeItemId = {"_p_wxTreeItemId", "wxTreeItemId *", 0, 0, (void*)0, 0};
44034 static swig_type_info _swigt__p_wxTreebook = {"_p_wxTreebook", "wxTreebook *", 0, 0, (void*)0, 0};
44035 static swig_type_info _swigt__p_wxTreebookEvent = {"_p_wxTreebookEvent", "wxTreebookEvent *", 0, 0, (void*)0, 0};
44036 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", "wxValidator *", 0, 0, (void*)0, 0};
44037 static swig_type_info _swigt__p_wxVisualAttributes = {"_p_wxVisualAttributes", "wxVisualAttributes *", 0, 0, (void*)0, 0};
44038 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
44039
44040 static swig_type_info *swig_type_initial[] = {
44041 &_swigt__p_bool,
44042 &_swigt__p_char,
44043 &_swigt__p_form_ops_t,
44044 &_swigt__p_int,
44045 &_swigt__p_long,
44046 &_swigt__p_unsigned_char,
44047 &_swigt__p_unsigned_int,
44048 &_swigt__p_unsigned_long,
44049 &_swigt__p_void,
44050 &_swigt__p_wxANIHandler,
44051 &_swigt__p_wxAcceleratorTable,
44052 &_swigt__p_wxActivateEvent,
44053 &_swigt__p_wxArrayInt,
44054 &_swigt__p_wxArrayString,
44055 &_swigt__p_wxBMPHandler,
44056 &_swigt__p_wxBitmap,
44057 &_swigt__p_wxBitmapButton,
44058 &_swigt__p_wxBookCtrlBase,
44059 &_swigt__p_wxBookCtrlBaseEvent,
44060 &_swigt__p_wxBoxSizer,
44061 &_swigt__p_wxButton,
44062 &_swigt__p_wxCURHandler,
44063 &_swigt__p_wxCheckBox,
44064 &_swigt__p_wxCheckListBox,
44065 &_swigt__p_wxChildFocusEvent,
44066 &_swigt__p_wxChoice,
44067 &_swigt__p_wxChoicebook,
44068 &_swigt__p_wxChoicebookEvent,
44069 &_swigt__p_wxClipboardTextEvent,
44070 &_swigt__p_wxCloseEvent,
44071 &_swigt__p_wxColour,
44072 &_swigt__p_wxComboBox,
44073 &_swigt__p_wxCommandEvent,
44074 &_swigt__p_wxContextHelp,
44075 &_swigt__p_wxContextHelpButton,
44076 &_swigt__p_wxContextMenuEvent,
44077 &_swigt__p_wxControl,
44078 &_swigt__p_wxControlWithItems,
44079 &_swigt__p_wxCursor,
44080 &_swigt__p_wxDC,
44081 &_swigt__p_wxDateEvent,
44082 &_swigt__p_wxDatePickerCtrl,
44083 &_swigt__p_wxDateTime,
44084 &_swigt__p_wxDirFilterListCtrl,
44085 &_swigt__p_wxDisplayChangedEvent,
44086 &_swigt__p_wxDropFilesEvent,
44087 &_swigt__p_wxDuplexMode,
44088 &_swigt__p_wxEraseEvent,
44089 &_swigt__p_wxEvent,
44090 &_swigt__p_wxEvtHandler,
44091 &_swigt__p_wxFSFile,
44092 &_swigt__p_wxFileSystem,
44093 &_swigt__p_wxFlexGridSizer,
44094 &_swigt__p_wxFocusEvent,
44095 &_swigt__p_wxFont,
44096 &_swigt__p_wxGBSizerItem,
44097 &_swigt__p_wxGIFHandler,
44098 &_swigt__p_wxGauge,
44099 &_swigt__p_wxGenericDirCtrl,
44100 &_swigt__p_wxGenericDragImage,
44101 &_swigt__p_wxGridBagSizer,
44102 &_swigt__p_wxGridSizer,
44103 &_swigt__p_wxHelpEvent,
44104 &_swigt__p_wxHelpProvider,
44105 &_swigt__p_wxHyperlinkCtrl,
44106 &_swigt__p_wxHyperlinkEvent,
44107 &_swigt__p_wxICOHandler,
44108 &_swigt__p_wxIcon,
44109 &_swigt__p_wxIconizeEvent,
44110 &_swigt__p_wxIdleEvent,
44111 &_swigt__p_wxImage,
44112 &_swigt__p_wxImageHandler,
44113 &_swigt__p_wxImageList,
44114 &_swigt__p_wxIndividualLayoutConstraint,
44115 &_swigt__p_wxInitDialogEvent,
44116 &_swigt__p_wxItemContainer,
44117 &_swigt__p_wxJPEGHandler,
44118 &_swigt__p_wxKeyEvent,
44119 &_swigt__p_wxLayoutConstraints,
44120 &_swigt__p_wxListBox,
44121 &_swigt__p_wxListEvent,
44122 &_swigt__p_wxListItem,
44123 &_swigt__p_wxListItemAttr,
44124 &_swigt__p_wxListView,
44125 &_swigt__p_wxListbook,
44126 &_swigt__p_wxListbookEvent,
44127 &_swigt__p_wxMaximizeEvent,
44128 &_swigt__p_wxMemoryDC,
44129 &_swigt__p_wxMenu,
44130 &_swigt__p_wxMenuBar,
44131 &_swigt__p_wxMenuEvent,
44132 &_swigt__p_wxMenuItem,
44133 &_swigt__p_wxMouseCaptureChangedEvent,
44134 &_swigt__p_wxMouseEvent,
44135 &_swigt__p_wxMoveEvent,
44136 &_swigt__p_wxNavigationKeyEvent,
44137 &_swigt__p_wxNcPaintEvent,
44138 &_swigt__p_wxNotebook,
44139 &_swigt__p_wxNotebookEvent,
44140 &_swigt__p_wxNotifyEvent,
44141 &_swigt__p_wxObject,
44142 &_swigt__p_wxPCXHandler,
44143 &_swigt__p_wxPNGHandler,
44144 &_swigt__p_wxPNMHandler,
44145 &_swigt__p_wxPaintEvent,
44146 &_swigt__p_wxPaletteChangedEvent,
44147 &_swigt__p_wxPaperSize,
44148 &_swigt__p_wxPoint,
44149 &_swigt__p_wxPyApp,
44150 &_swigt__p_wxPyCommandEvent,
44151 &_swigt__p_wxPyControl,
44152 &_swigt__p_wxPyEvent,
44153 &_swigt__p_wxPyImageHandler,
44154 &_swigt__p_wxPyListCtrl,
44155 &_swigt__p_wxPySizer,
44156 &_swigt__p_wxPyTreeCtrl,
44157 &_swigt__p_wxPyTreeItemData,
44158 &_swigt__p_wxPyValidator,
44159 &_swigt__p_wxQueryNewPaletteEvent,
44160 &_swigt__p_wxRadioBox,
44161 &_swigt__p_wxRadioButton,
44162 &_swigt__p_wxRect,
44163 &_swigt__p_wxScrollBar,
44164 &_swigt__p_wxScrollEvent,
44165 &_swigt__p_wxScrollWinEvent,
44166 &_swigt__p_wxSetCursorEvent,
44167 &_swigt__p_wxShowEvent,
44168 &_swigt__p_wxSimpleHelpProvider,
44169 &_swigt__p_wxSize,
44170 &_swigt__p_wxSizeEvent,
44171 &_swigt__p_wxSizer,
44172 &_swigt__p_wxSizerItem,
44173 &_swigt__p_wxSlider,
44174 &_swigt__p_wxSpinButton,
44175 &_swigt__p_wxSpinCtrl,
44176 &_swigt__p_wxSpinEvent,
44177 &_swigt__p_wxStaticBitmap,
44178 &_swigt__p_wxStaticBox,
44179 &_swigt__p_wxStaticBoxSizer,
44180 &_swigt__p_wxStaticLine,
44181 &_swigt__p_wxStaticText,
44182 &_swigt__p_wxStdDialogButtonSizer,
44183 &_swigt__p_wxString,
44184 &_swigt__p_wxSysColourChangedEvent,
44185 &_swigt__p_wxTIFFHandler,
44186 &_swigt__p_wxTextAttr,
44187 &_swigt__p_wxTextCtrl,
44188 &_swigt__p_wxTextUrlEvent,
44189 &_swigt__p_wxToggleButton,
44190 &_swigt__p_wxToolBar,
44191 &_swigt__p_wxToolBarBase,
44192 &_swigt__p_wxToolBarToolBase,
44193 &_swigt__p_wxToolbook,
44194 &_swigt__p_wxToolbookEvent,
44195 &_swigt__p_wxTreeCtrl,
44196 &_swigt__p_wxTreeEvent,
44197 &_swigt__p_wxTreeItemId,
44198 &_swigt__p_wxTreebook,
44199 &_swigt__p_wxTreebookEvent,
44200 &_swigt__p_wxUpdateUIEvent,
44201 &_swigt__p_wxValidator,
44202 &_swigt__p_wxVisualAttributes,
44203 &_swigt__p_wxWindow,
44204 &_swigt__p_wxWindowCreateEvent,
44205 &_swigt__p_wxWindowDestroyEvent,
44206 &_swigt__p_wxXPMHandler,
44207 };
44208
44209 static swig_cast_info _swigc__p_bool[] = { {&_swigt__p_bool, 0, 0, 0},{0, 0, 0, 0}};
44210 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
44211 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
44212 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
44213 static swig_cast_info _swigc__p_long[] = { {&_swigt__p_long, 0, 0, 0},{0, 0, 0, 0}};
44214 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
44215 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
44216 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
44217 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
44218 static swig_cast_info _swigc__p_wxArrayInt[] = { {&_swigt__p_wxArrayInt, 0, 0, 0},{0, 0, 0, 0}};
44219 static swig_cast_info _swigc__p_wxArrayString[] = { {&_swigt__p_wxArrayString, 0, 0, 0},{0, 0, 0, 0}};
44220 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
44221 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}};
44222 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}};
44223 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}};
44224 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}};
44225 static swig_cast_info _swigc__p_wxCheckBox[] = { {&_swigt__p_wxCheckBox, 0, 0, 0},{0, 0, 0, 0}};
44226 static swig_cast_info _swigc__p_wxCheckListBox[] = { {&_swigt__p_wxCheckListBox, 0, 0, 0},{0, 0, 0, 0}};
44227 static swig_cast_info _swigc__p_wxChoice[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0}, {&_swigt__p_wxChoice, 0, 0, 0},{0, 0, 0, 0}};
44228 static swig_cast_info _swigc__p_wxChoicebook[] = { {&_swigt__p_wxChoicebook, 0, 0, 0},{0, 0, 0, 0}};
44229 static swig_cast_info _swigc__p_wxChoicebookEvent[] = { {&_swigt__p_wxChoicebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44230 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
44231 static swig_cast_info _swigc__p_wxComboBox[] = { {&_swigt__p_wxComboBox, 0, 0, 0},{0, 0, 0, 0}};
44232 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
44233 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
44234 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
44235 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
44236 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44237 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44238 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
44239 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
44240 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
44241 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}};
44242 static swig_cast_info _swigc__p_wxContextHelp[] = { {&_swigt__p_wxContextHelp, 0, 0, 0},{0, 0, 0, 0}};
44243 static swig_cast_info _swigc__p_wxContextHelpButton[] = { {&_swigt__p_wxContextHelpButton, 0, 0, 0},{0, 0, 0, 0}};
44244 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}};
44245 static swig_cast_info _swigc__p_wxControlWithItems[] = { {&_swigt__p_wxDirFilterListCtrl, _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxChoice, _p_wxChoiceTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxControlWithItems, 0, 0, 0}, {&_swigt__p_wxListBox, _p_wxListBoxTo_p_wxControlWithItems, 0, 0}, {&_swigt__p_wxCheckListBox, _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0},{0, 0, 0, 0}};
44246 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
44247 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxDC, 0, 0, 0},{0, 0, 0, 0}};
44248 static swig_cast_info _swigc__p_wxDatePickerCtrl[] = { {&_swigt__p_wxDatePickerCtrl, 0, 0, 0},{0, 0, 0, 0}};
44249 static swig_cast_info _swigc__p_wxDateTime[] = { {&_swigt__p_wxDateTime, 0, 0, 0},{0, 0, 0, 0}};
44250 static swig_cast_info _swigc__p_wxDirFilterListCtrl[] = { {&_swigt__p_wxDirFilterListCtrl, 0, 0, 0},{0, 0, 0, 0}};
44251 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
44252 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
44253 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
44254 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
44255 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
44256 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
44257 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
44258 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
44259 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
44260 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44261 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44262 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
44263 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
44264 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
44265 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44266 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
44267 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44268 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44269 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44270 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
44271 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
44272 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
44273 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
44274 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44275 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
44276 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}};
44277 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
44278 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
44279 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
44280 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
44281 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}};
44282 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
44283 static swig_cast_info _swigc__p_wxGauge[] = { {&_swigt__p_wxGauge, 0, 0, 0},{0, 0, 0, 0}};
44284 static swig_cast_info _swigc__p_wxGenericDirCtrl[] = { {&_swigt__p_wxGenericDirCtrl, 0, 0, 0},{0, 0, 0, 0}};
44285 static swig_cast_info _swigc__p_wxGenericDragImage[] = { {&_swigt__p_wxGenericDragImage, 0, 0, 0},{0, 0, 0, 0}};
44286 static swig_cast_info _swigc__p_wxHelpEvent[] = { {&_swigt__p_wxHelpEvent, 0, 0, 0},{0, 0, 0, 0}};
44287 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}};
44288 static swig_cast_info _swigc__p_wxHyperlinkCtrl[] = { {&_swigt__p_wxHyperlinkCtrl, 0, 0, 0},{0, 0, 0, 0}};
44289 static swig_cast_info _swigc__p_wxHyperlinkEvent[] = { {&_swigt__p_wxHyperlinkEvent, 0, 0, 0},{0, 0, 0, 0}};
44290 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
44291 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
44292 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}};
44293 static swig_cast_info _swigc__p_wxKeyEvent[] = { {&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
44294 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}};
44295 static swig_cast_info _swigc__p_wxListEvent[] = { {&_swigt__p_wxListEvent, 0, 0, 0},{0, 0, 0, 0}};
44296 static swig_cast_info _swigc__p_wxListItem[] = { {&_swigt__p_wxListItem, 0, 0, 0},{0, 0, 0, 0}};
44297 static swig_cast_info _swigc__p_wxListItemAttr[] = { {&_swigt__p_wxListItemAttr, 0, 0, 0},{0, 0, 0, 0}};
44298 static swig_cast_info _swigc__p_wxListView[] = { {&_swigt__p_wxListView, 0, 0, 0},{0, 0, 0, 0}};
44299 static swig_cast_info _swigc__p_wxListbook[] = { {&_swigt__p_wxListbook, 0, 0, 0},{0, 0, 0, 0}};
44300 static swig_cast_info _swigc__p_wxListbookEvent[] = { {&_swigt__p_wxListbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44301 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
44302 static swig_cast_info _swigc__p_wxMouseEvent[] = { {&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
44303 static swig_cast_info _swigc__p_wxNotebook[] = { {&_swigt__p_wxNotebook, 0, 0, 0},{0, 0, 0, 0}};
44304 static swig_cast_info _swigc__p_wxNotebookEvent[] = { {&_swigt__p_wxNotebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44305 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}};
44306 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
44307 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44308 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
44309 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
44310 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44311 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
44312 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
44313 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
44314 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44315 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
44316 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
44317 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
44318 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
44319 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
44320 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
44321 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
44322 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
44323 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
44324 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
44325 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
44326 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
44327 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
44328 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44329 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
44330 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
44331 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
44332 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
44333 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
44334 static swig_cast_info _swigc__p_wxImage[] = {{&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
44335 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
44336 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}};
44337 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
44338 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
44339 static swig_cast_info _swigc__p_wxPyControl[] = { {&_swigt__p_wxPyControl, 0, 0, 0},{0, 0, 0, 0}};
44340 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}};
44341 static swig_cast_info _swigc__p_wxPyTreeCtrl[] = { {&_swigt__p_wxPyTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44342 static swig_cast_info _swigc__p_wxPyTreeItemData[] = { {&_swigt__p_wxPyTreeItemData, 0, 0, 0},{0, 0, 0, 0}};
44343 static swig_cast_info _swigc__p_wxRadioBox[] = { {&_swigt__p_wxRadioBox, 0, 0, 0},{0, 0, 0, 0}};
44344 static swig_cast_info _swigc__p_wxRadioButton[] = { {&_swigt__p_wxRadioButton, 0, 0, 0},{0, 0, 0, 0}};
44345 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
44346 static swig_cast_info _swigc__p_wxScrollBar[] = { {&_swigt__p_wxScrollBar, 0, 0, 0},{0, 0, 0, 0}};
44347 static swig_cast_info _swigc__p_wxSimpleHelpProvider[] = { {&_swigt__p_wxSimpleHelpProvider, 0, 0, 0},{0, 0, 0, 0}};
44348 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
44349 static swig_cast_info _swigc__p_wxSlider[] = { {&_swigt__p_wxSlider, 0, 0, 0},{0, 0, 0, 0}};
44350 static swig_cast_info _swigc__p_wxSpinButton[] = { {&_swigt__p_wxSpinButton, 0, 0, 0},{0, 0, 0, 0}};
44351 static swig_cast_info _swigc__p_wxSpinCtrl[] = { {&_swigt__p_wxSpinCtrl, 0, 0, 0},{0, 0, 0, 0}};
44352 static swig_cast_info _swigc__p_wxSpinEvent[] = { {&_swigt__p_wxSpinEvent, 0, 0, 0},{0, 0, 0, 0}};
44353 static swig_cast_info _swigc__p_wxStaticBitmap[] = { {&_swigt__p_wxStaticBitmap, 0, 0, 0},{0, 0, 0, 0}};
44354 static swig_cast_info _swigc__p_wxStaticBox[] = { {&_swigt__p_wxStaticBox, 0, 0, 0},{0, 0, 0, 0}};
44355 static swig_cast_info _swigc__p_wxStaticLine[] = { {&_swigt__p_wxStaticLine, 0, 0, 0},{0, 0, 0, 0}};
44356 static swig_cast_info _swigc__p_wxStaticText[] = { {&_swigt__p_wxStaticText, 0, 0, 0},{0, 0, 0, 0}};
44357 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
44358 static swig_cast_info _swigc__p_wxTextAttr[] = { {&_swigt__p_wxTextAttr, 0, 0, 0},{0, 0, 0, 0}};
44359 static swig_cast_info _swigc__p_wxTextCtrl[] = { {&_swigt__p_wxTextCtrl, 0, 0, 0},{0, 0, 0, 0}};
44360 static swig_cast_info _swigc__p_wxTextUrlEvent[] = { {&_swigt__p_wxTextUrlEvent, 0, 0, 0},{0, 0, 0, 0}};
44361 static swig_cast_info _swigc__p_wxToggleButton[] = { {&_swigt__p_wxToggleButton, 0, 0, 0},{0, 0, 0, 0}};
44362 static swig_cast_info _swigc__p_wxToolBar[] = { {&_swigt__p_wxToolBar, 0, 0, 0},{0, 0, 0, 0}};
44363 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}};
44364 static swig_cast_info _swigc__p_wxToolBarToolBase[] = { {&_swigt__p_wxToolBarToolBase, 0, 0, 0},{0, 0, 0, 0}};
44365 static swig_cast_info _swigc__p_wxToolbook[] = { {&_swigt__p_wxToolbook, 0, 0, 0},{0, 0, 0, 0}};
44366 static swig_cast_info _swigc__p_wxToolbookEvent[] = { {&_swigt__p_wxToolbookEvent, 0, 0, 0},{0, 0, 0, 0}};
44367 static swig_cast_info _swigc__p_wxTreeCtrl[] = { {&_swigt__p_wxTreeCtrl, 0, 0, 0},{0, 0, 0, 0}};
44368 static swig_cast_info _swigc__p_wxTreeEvent[] = { {&_swigt__p_wxTreeEvent, 0, 0, 0},{0, 0, 0, 0}};
44369 static swig_cast_info _swigc__p_wxTreeItemId[] = { {&_swigt__p_wxTreeItemId, 0, 0, 0},{0, 0, 0, 0}};
44370 static swig_cast_info _swigc__p_wxTreebook[] = { {&_swigt__p_wxTreebook, 0, 0, 0},{0, 0, 0, 0}};
44371 static swig_cast_info _swigc__p_wxTreebookEvent[] = { {&_swigt__p_wxTreebookEvent, 0, 0, 0},{0, 0, 0, 0}};
44372 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}};
44373 static swig_cast_info _swigc__p_wxVisualAttributes[] = { {&_swigt__p_wxVisualAttributes, 0, 0, 0},{0, 0, 0, 0}};
44374 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}};
44375
44376 static swig_cast_info *swig_cast_initial[] = {
44377 _swigc__p_bool,
44378 _swigc__p_char,
44379 _swigc__p_form_ops_t,
44380 _swigc__p_int,
44381 _swigc__p_long,
44382 _swigc__p_unsigned_char,
44383 _swigc__p_unsigned_int,
44384 _swigc__p_unsigned_long,
44385 _swigc__p_void,
44386 _swigc__p_wxANIHandler,
44387 _swigc__p_wxAcceleratorTable,
44388 _swigc__p_wxActivateEvent,
44389 _swigc__p_wxArrayInt,
44390 _swigc__p_wxArrayString,
44391 _swigc__p_wxBMPHandler,
44392 _swigc__p_wxBitmap,
44393 _swigc__p_wxBitmapButton,
44394 _swigc__p_wxBookCtrlBase,
44395 _swigc__p_wxBookCtrlBaseEvent,
44396 _swigc__p_wxBoxSizer,
44397 _swigc__p_wxButton,
44398 _swigc__p_wxCURHandler,
44399 _swigc__p_wxCheckBox,
44400 _swigc__p_wxCheckListBox,
44401 _swigc__p_wxChildFocusEvent,
44402 _swigc__p_wxChoice,
44403 _swigc__p_wxChoicebook,
44404 _swigc__p_wxChoicebookEvent,
44405 _swigc__p_wxClipboardTextEvent,
44406 _swigc__p_wxCloseEvent,
44407 _swigc__p_wxColour,
44408 _swigc__p_wxComboBox,
44409 _swigc__p_wxCommandEvent,
44410 _swigc__p_wxContextHelp,
44411 _swigc__p_wxContextHelpButton,
44412 _swigc__p_wxContextMenuEvent,
44413 _swigc__p_wxControl,
44414 _swigc__p_wxControlWithItems,
44415 _swigc__p_wxCursor,
44416 _swigc__p_wxDC,
44417 _swigc__p_wxDateEvent,
44418 _swigc__p_wxDatePickerCtrl,
44419 _swigc__p_wxDateTime,
44420 _swigc__p_wxDirFilterListCtrl,
44421 _swigc__p_wxDisplayChangedEvent,
44422 _swigc__p_wxDropFilesEvent,
44423 _swigc__p_wxDuplexMode,
44424 _swigc__p_wxEraseEvent,
44425 _swigc__p_wxEvent,
44426 _swigc__p_wxEvtHandler,
44427 _swigc__p_wxFSFile,
44428 _swigc__p_wxFileSystem,
44429 _swigc__p_wxFlexGridSizer,
44430 _swigc__p_wxFocusEvent,
44431 _swigc__p_wxFont,
44432 _swigc__p_wxGBSizerItem,
44433 _swigc__p_wxGIFHandler,
44434 _swigc__p_wxGauge,
44435 _swigc__p_wxGenericDirCtrl,
44436 _swigc__p_wxGenericDragImage,
44437 _swigc__p_wxGridBagSizer,
44438 _swigc__p_wxGridSizer,
44439 _swigc__p_wxHelpEvent,
44440 _swigc__p_wxHelpProvider,
44441 _swigc__p_wxHyperlinkCtrl,
44442 _swigc__p_wxHyperlinkEvent,
44443 _swigc__p_wxICOHandler,
44444 _swigc__p_wxIcon,
44445 _swigc__p_wxIconizeEvent,
44446 _swigc__p_wxIdleEvent,
44447 _swigc__p_wxImage,
44448 _swigc__p_wxImageHandler,
44449 _swigc__p_wxImageList,
44450 _swigc__p_wxIndividualLayoutConstraint,
44451 _swigc__p_wxInitDialogEvent,
44452 _swigc__p_wxItemContainer,
44453 _swigc__p_wxJPEGHandler,
44454 _swigc__p_wxKeyEvent,
44455 _swigc__p_wxLayoutConstraints,
44456 _swigc__p_wxListBox,
44457 _swigc__p_wxListEvent,
44458 _swigc__p_wxListItem,
44459 _swigc__p_wxListItemAttr,
44460 _swigc__p_wxListView,
44461 _swigc__p_wxListbook,
44462 _swigc__p_wxListbookEvent,
44463 _swigc__p_wxMaximizeEvent,
44464 _swigc__p_wxMemoryDC,
44465 _swigc__p_wxMenu,
44466 _swigc__p_wxMenuBar,
44467 _swigc__p_wxMenuEvent,
44468 _swigc__p_wxMenuItem,
44469 _swigc__p_wxMouseCaptureChangedEvent,
44470 _swigc__p_wxMouseEvent,
44471 _swigc__p_wxMoveEvent,
44472 _swigc__p_wxNavigationKeyEvent,
44473 _swigc__p_wxNcPaintEvent,
44474 _swigc__p_wxNotebook,
44475 _swigc__p_wxNotebookEvent,
44476 _swigc__p_wxNotifyEvent,
44477 _swigc__p_wxObject,
44478 _swigc__p_wxPCXHandler,
44479 _swigc__p_wxPNGHandler,
44480 _swigc__p_wxPNMHandler,
44481 _swigc__p_wxPaintEvent,
44482 _swigc__p_wxPaletteChangedEvent,
44483 _swigc__p_wxPaperSize,
44484 _swigc__p_wxPoint,
44485 _swigc__p_wxPyApp,
44486 _swigc__p_wxPyCommandEvent,
44487 _swigc__p_wxPyControl,
44488 _swigc__p_wxPyEvent,
44489 _swigc__p_wxPyImageHandler,
44490 _swigc__p_wxPyListCtrl,
44491 _swigc__p_wxPySizer,
44492 _swigc__p_wxPyTreeCtrl,
44493 _swigc__p_wxPyTreeItemData,
44494 _swigc__p_wxPyValidator,
44495 _swigc__p_wxQueryNewPaletteEvent,
44496 _swigc__p_wxRadioBox,
44497 _swigc__p_wxRadioButton,
44498 _swigc__p_wxRect,
44499 _swigc__p_wxScrollBar,
44500 _swigc__p_wxScrollEvent,
44501 _swigc__p_wxScrollWinEvent,
44502 _swigc__p_wxSetCursorEvent,
44503 _swigc__p_wxShowEvent,
44504 _swigc__p_wxSimpleHelpProvider,
44505 _swigc__p_wxSize,
44506 _swigc__p_wxSizeEvent,
44507 _swigc__p_wxSizer,
44508 _swigc__p_wxSizerItem,
44509 _swigc__p_wxSlider,
44510 _swigc__p_wxSpinButton,
44511 _swigc__p_wxSpinCtrl,
44512 _swigc__p_wxSpinEvent,
44513 _swigc__p_wxStaticBitmap,
44514 _swigc__p_wxStaticBox,
44515 _swigc__p_wxStaticBoxSizer,
44516 _swigc__p_wxStaticLine,
44517 _swigc__p_wxStaticText,
44518 _swigc__p_wxStdDialogButtonSizer,
44519 _swigc__p_wxString,
44520 _swigc__p_wxSysColourChangedEvent,
44521 _swigc__p_wxTIFFHandler,
44522 _swigc__p_wxTextAttr,
44523 _swigc__p_wxTextCtrl,
44524 _swigc__p_wxTextUrlEvent,
44525 _swigc__p_wxToggleButton,
44526 _swigc__p_wxToolBar,
44527 _swigc__p_wxToolBarBase,
44528 _swigc__p_wxToolBarToolBase,
44529 _swigc__p_wxToolbook,
44530 _swigc__p_wxToolbookEvent,
44531 _swigc__p_wxTreeCtrl,
44532 _swigc__p_wxTreeEvent,
44533 _swigc__p_wxTreeItemId,
44534 _swigc__p_wxTreebook,
44535 _swigc__p_wxTreebookEvent,
44536 _swigc__p_wxUpdateUIEvent,
44537 _swigc__p_wxValidator,
44538 _swigc__p_wxVisualAttributes,
44539 _swigc__p_wxWindow,
44540 _swigc__p_wxWindowCreateEvent,
44541 _swigc__p_wxWindowDestroyEvent,
44542 _swigc__p_wxXPMHandler,
44543 };
44544
44545
44546 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
44547
44548 static swig_const_info swig_const_table[] = {
44549 {0, 0, 0, 0.0, 0, 0}};
44550
44551 #ifdef __cplusplus
44552 }
44553 #endif
44554 /* -----------------------------------------------------------------------------
44555 * Type initialization:
44556 * This problem is tough by the requirement that no dynamic
44557 * memory is used. Also, since swig_type_info structures store pointers to
44558 * swig_cast_info structures and swig_cast_info structures store pointers back
44559 * to swig_type_info structures, we need some lookup code at initialization.
44560 * The idea is that swig generates all the structures that are needed.
44561 * The runtime then collects these partially filled structures.
44562 * The SWIG_InitializeModule function takes these initial arrays out of
44563 * swig_module, and does all the lookup, filling in the swig_module.types
44564 * array with the correct data and linking the correct swig_cast_info
44565 * structures together.
44566 *
44567 * The generated swig_type_info structures are assigned staticly to an initial
44568 * array. We just loop though that array, and handle each type individually.
44569 * First we lookup if this type has been already loaded, and if so, use the
44570 * loaded structure instead of the generated one. Then we have to fill in the
44571 * cast linked list. The cast data is initially stored in something like a
44572 * two-dimensional array. Each row corresponds to a type (there are the same
44573 * number of rows as there are in the swig_type_initial array). Each entry in
44574 * a column is one of the swig_cast_info structures for that type.
44575 * The cast_initial array is actually an array of arrays, because each row has
44576 * a variable number of columns. So to actually build the cast linked list,
44577 * we find the array of casts associated with the type, and loop through it
44578 * adding the casts to the list. The one last trick we need to do is making
44579 * sure the type pointer in the swig_cast_info struct is correct.
44580 *
44581 * First off, we lookup the cast->type name to see if it is already loaded.
44582 * There are three cases to handle:
44583 * 1) If the cast->type has already been loaded AND the type we are adding
44584 * casting info to has not been loaded (it is in this module), THEN we
44585 * replace the cast->type pointer with the type pointer that has already
44586 * been loaded.
44587 * 2) If BOTH types (the one we are adding casting info to, and the
44588 * cast->type) are loaded, THEN the cast info has already been loaded by
44589 * the previous module so we just ignore it.
44590 * 3) Finally, if cast->type has not already been loaded, then we add that
44591 * swig_cast_info to the linked list (because the cast->type) pointer will
44592 * be correct.
44593 * ----------------------------------------------------------------------------- */
44594
44595 #ifdef __cplusplus
44596 extern "C" {
44597 #if 0
44598 } /* c-mode */
44599 #endif
44600 #endif
44601
44602 #if 0
44603 #define SWIGRUNTIME_DEBUG
44604 #endif
44605
44606 SWIGRUNTIME void
44607 SWIG_InitializeModule(void *clientdata) {
44608 size_t i;
44609 swig_module_info *module_head;
44610 static int init_run = 0;
44611
44612 clientdata = clientdata;
44613
44614 if (init_run) return;
44615 init_run = 1;
44616
44617 /* Initialize the swig_module */
44618 swig_module.type_initial = swig_type_initial;
44619 swig_module.cast_initial = swig_cast_initial;
44620
44621 /* Try and load any already created modules */
44622 module_head = SWIG_GetModule(clientdata);
44623 if (module_head) {
44624 swig_module.next = module_head->next;
44625 module_head->next = &swig_module;
44626 } else {
44627 /* This is the first module loaded */
44628 swig_module.next = &swig_module;
44629 SWIG_SetModule(clientdata, &swig_module);
44630 }
44631
44632 /* Now work on filling in swig_module.types */
44633 #ifdef SWIGRUNTIME_DEBUG
44634 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
44635 #endif
44636 for (i = 0; i < swig_module.size; ++i) {
44637 swig_type_info *type = 0;
44638 swig_type_info *ret;
44639 swig_cast_info *cast;
44640
44641 #ifdef SWIGRUNTIME_DEBUG
44642 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44643 #endif
44644
44645 /* if there is another module already loaded */
44646 if (swig_module.next != &swig_module) {
44647 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
44648 }
44649 if (type) {
44650 /* Overwrite clientdata field */
44651 #ifdef SWIGRUNTIME_DEBUG
44652 printf("SWIG_InitializeModule: found type %s\n", type->name);
44653 #endif
44654 if (swig_module.type_initial[i]->clientdata) {
44655 type->clientdata = swig_module.type_initial[i]->clientdata;
44656 #ifdef SWIGRUNTIME_DEBUG
44657 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
44658 #endif
44659 }
44660 } else {
44661 type = swig_module.type_initial[i];
44662 }
44663
44664 /* Insert casting types */
44665 cast = swig_module.cast_initial[i];
44666 while (cast->type) {
44667 /* Don't need to add information already in the list */
44668 ret = 0;
44669 #ifdef SWIGRUNTIME_DEBUG
44670 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
44671 #endif
44672 if (swig_module.next != &swig_module) {
44673 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
44674 #ifdef SWIGRUNTIME_DEBUG
44675 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
44676 #endif
44677 }
44678 if (ret) {
44679 if (type == swig_module.type_initial[i]) {
44680 #ifdef SWIGRUNTIME_DEBUG
44681 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
44682 #endif
44683 cast->type = ret;
44684 ret = 0;
44685 } else {
44686 /* Check for casting already in the list */
44687 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
44688 #ifdef SWIGRUNTIME_DEBUG
44689 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
44690 #endif
44691 if (!ocast) ret = 0;
44692 }
44693 }
44694
44695 if (!ret) {
44696 #ifdef SWIGRUNTIME_DEBUG
44697 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
44698 #endif
44699 if (type->cast) {
44700 type->cast->prev = cast;
44701 cast->next = type->cast;
44702 }
44703 type->cast = cast;
44704 }
44705 cast++;
44706 }
44707 /* Set entry in modules->types array equal to the type */
44708 swig_module.types[i] = type;
44709 }
44710 swig_module.types[i] = 0;
44711
44712 #ifdef SWIGRUNTIME_DEBUG
44713 printf("**** SWIG_InitializeModule: Cast List ******\n");
44714 for (i = 0; i < swig_module.size; ++i) {
44715 int j = 0;
44716 swig_cast_info *cast = swig_module.cast_initial[i];
44717 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
44718 while (cast->type) {
44719 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
44720 cast++;
44721 ++j;
44722 }
44723 printf("---- Total casts: %d\n",j);
44724 }
44725 printf("**** SWIG_InitializeModule: Cast List ******\n");
44726 #endif
44727 }
44728
44729 /* This function will propagate the clientdata field of type to
44730 * any new swig_type_info structures that have been added into the list
44731 * of equivalent types. It is like calling
44732 * SWIG_TypeClientData(type, clientdata) a second time.
44733 */
44734 SWIGRUNTIME void
44735 SWIG_PropagateClientData(void) {
44736 size_t i;
44737 swig_cast_info *equiv;
44738 static int init_run = 0;
44739
44740 if (init_run) return;
44741 init_run = 1;
44742
44743 for (i = 0; i < swig_module.size; i++) {
44744 if (swig_module.types[i]->clientdata) {
44745 equiv = swig_module.types[i]->cast;
44746 while (equiv) {
44747 if (!equiv->converter) {
44748 if (equiv->type && !equiv->type->clientdata)
44749 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
44750 }
44751 equiv = equiv->next;
44752 }
44753 }
44754 }
44755 }
44756
44757 #ifdef __cplusplus
44758 #if 0
44759 {
44760 /* c-mode */
44761 #endif
44762 }
44763 #endif
44764
44765
44766
44767 #ifdef __cplusplus
44768 extern "C" {
44769 #endif
44770
44771 /* Python-specific SWIG API */
44772 #define SWIG_newvarlink() SWIG_Python_newvarlink()
44773 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
44774 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
44775
44776 /* -----------------------------------------------------------------------------
44777 * global variable support code.
44778 * ----------------------------------------------------------------------------- */
44779
44780 typedef struct swig_globalvar {
44781 char *name; /* Name of global variable */
44782 PyObject *(*get_attr)(void); /* Return the current value */
44783 int (*set_attr)(PyObject *); /* Set the value */
44784 struct swig_globalvar *next;
44785 } swig_globalvar;
44786
44787 typedef struct swig_varlinkobject {
44788 PyObject_HEAD
44789 swig_globalvar *vars;
44790 } swig_varlinkobject;
44791
44792 SWIGINTERN PyObject *
44793 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
44794 return PyString_FromString("<Swig global variables>");
44795 }
44796
44797 SWIGINTERN PyObject *
44798 swig_varlink_str(swig_varlinkobject *v) {
44799 PyObject *str = PyString_FromString("(");
44800 swig_globalvar *var;
44801 for (var = v->vars; var; var=var->next) {
44802 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
44803 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
44804 }
44805 PyString_ConcatAndDel(&str,PyString_FromString(")"));
44806 return str;
44807 }
44808
44809 SWIGINTERN int
44810 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
44811 PyObject *str = swig_varlink_str(v);
44812 fprintf(fp,"Swig global variables ");
44813 fprintf(fp,"%s\n", PyString_AsString(str));
44814 Py_DECREF(str);
44815 return 0;
44816 }
44817
44818 SWIGINTERN void
44819 swig_varlink_dealloc(swig_varlinkobject *v) {
44820 swig_globalvar *var = v->vars;
44821 while (var) {
44822 swig_globalvar *n = var->next;
44823 free(var->name);
44824 free(var);
44825 var = n;
44826 }
44827 }
44828
44829 SWIGINTERN PyObject *
44830 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
44831 PyObject *res = NULL;
44832 swig_globalvar *var = v->vars;
44833 while (var) {
44834 if (strcmp(var->name,n) == 0) {
44835 res = (*var->get_attr)();
44836 break;
44837 }
44838 var = var->next;
44839 }
44840 if (res == NULL && !PyErr_Occurred()) {
44841 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44842 }
44843 return res;
44844 }
44845
44846 SWIGINTERN int
44847 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
44848 int res = 1;
44849 swig_globalvar *var = v->vars;
44850 while (var) {
44851 if (strcmp(var->name,n) == 0) {
44852 res = (*var->set_attr)(p);
44853 break;
44854 }
44855 var = var->next;
44856 }
44857 if (res == 1 && !PyErr_Occurred()) {
44858 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
44859 }
44860 return res;
44861 }
44862
44863 SWIGINTERN PyTypeObject*
44864 swig_varlink_type(void) {
44865 static char varlink__doc__[] = "Swig var link object";
44866 static PyTypeObject varlink_type;
44867 static int type_init = 0;
44868 if (!type_init) {
44869 const PyTypeObject tmp
44870 = {
44871 PyObject_HEAD_INIT(NULL)
44872 0, /* Number of items in variable part (ob_size) */
44873 (char *)"swigvarlink", /* Type name (tp_name) */
44874 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
44875 0, /* Itemsize (tp_itemsize) */
44876 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
44877 (printfunc) swig_varlink_print, /* Print (tp_print) */
44878 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
44879 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
44880 0, /* tp_compare */
44881 (reprfunc) swig_varlink_repr, /* tp_repr */
44882 0, /* tp_as_number */
44883 0, /* tp_as_sequence */
44884 0, /* tp_as_mapping */
44885 0, /* tp_hash */
44886 0, /* tp_call */
44887 (reprfunc)swig_varlink_str, /* tp_str */
44888 0, /* tp_getattro */
44889 0, /* tp_setattro */
44890 0, /* tp_as_buffer */
44891 0, /* tp_flags */
44892 varlink__doc__, /* tp_doc */
44893 0, /* tp_traverse */
44894 0, /* tp_clear */
44895 0, /* tp_richcompare */
44896 0, /* tp_weaklistoffset */
44897 #if PY_VERSION_HEX >= 0x02020000
44898 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
44899 #endif
44900 #if PY_VERSION_HEX >= 0x02030000
44901 0, /* tp_del */
44902 #endif
44903 #ifdef COUNT_ALLOCS
44904 0,0,0,0 /* tp_alloc -> tp_next */
44905 #endif
44906 };
44907 varlink_type = tmp;
44908 varlink_type.ob_type = &PyType_Type;
44909 type_init = 1;
44910 }
44911 return &varlink_type;
44912 }
44913
44914 /* Create a variable linking object for use later */
44915 SWIGINTERN PyObject *
44916 SWIG_Python_newvarlink(void) {
44917 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
44918 if (result) {
44919 result->vars = 0;
44920 }
44921 return ((PyObject*) result);
44922 }
44923
44924 SWIGINTERN void
44925 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
44926 swig_varlinkobject *v = (swig_varlinkobject *) p;
44927 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
44928 if (gv) {
44929 size_t size = strlen(name)+1;
44930 gv->name = (char *)malloc(size);
44931 if (gv->name) {
44932 strncpy(gv->name,name,size);
44933 gv->get_attr = get_attr;
44934 gv->set_attr = set_attr;
44935 gv->next = v->vars;
44936 }
44937 }
44938 v->vars = gv;
44939 }
44940
44941 SWIGINTERN PyObject *
44942 SWIG_globals() {
44943 static PyObject *_SWIG_globals = 0;
44944 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
44945 return _SWIG_globals;
44946 }
44947
44948 /* -----------------------------------------------------------------------------
44949 * constants/methods manipulation
44950 * ----------------------------------------------------------------------------- */
44951
44952 /* Install Constants */
44953 SWIGINTERN void
44954 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
44955 PyObject *obj = 0;
44956 size_t i;
44957 for (i = 0; constants[i].type; ++i) {
44958 switch(constants[i].type) {
44959 case SWIG_PY_POINTER:
44960 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
44961 break;
44962 case SWIG_PY_BINARY:
44963 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
44964 break;
44965 default:
44966 obj = 0;
44967 break;
44968 }
44969 if (obj) {
44970 PyDict_SetItemString(d, constants[i].name, obj);
44971 Py_DECREF(obj);
44972 }
44973 }
44974 }
44975
44976 /* -----------------------------------------------------------------------------*/
44977 /* Fix SwigMethods to carry the callback ptrs when needed */
44978 /* -----------------------------------------------------------------------------*/
44979
44980 SWIGINTERN void
44981 SWIG_Python_FixMethods(PyMethodDef *methods,
44982 swig_const_info *const_table,
44983 swig_type_info **types,
44984 swig_type_info **types_initial) {
44985 size_t i;
44986 for (i = 0; methods[i].ml_name; ++i) {
44987 char *c = methods[i].ml_doc;
44988 if (c && (c = strstr(c, "swig_ptr: "))) {
44989 int j;
44990 swig_const_info *ci = 0;
44991 char *name = c + 10;
44992 for (j = 0; const_table[j].type; ++j) {
44993 if (strncmp(const_table[j].name, name,
44994 strlen(const_table[j].name)) == 0) {
44995 ci = &(const_table[j]);
44996 break;
44997 }
44998 }
44999 if (ci) {
45000 size_t shift = (ci->ptype) - types;
45001 swig_type_info *ty = types_initial[shift];
45002 size_t ldoc = (c - methods[i].ml_doc);
45003 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
45004 char *ndoc = (char*)malloc(ldoc + lptr + 10);
45005 if (ndoc) {
45006 char *buff = ndoc;
45007 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
45008 if (ptr) {
45009 strncpy(buff, methods[i].ml_doc, ldoc);
45010 buff += ldoc;
45011 strncpy(buff, "swig_ptr: ", 10);
45012 buff += 10;
45013 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
45014 methods[i].ml_doc = ndoc;
45015 }
45016 }
45017 }
45018 }
45019 }
45020 }
45021
45022 #ifdef __cplusplus
45023 }
45024 #endif
45025
45026 /* -----------------------------------------------------------------------------*
45027 * Partial Init method
45028 * -----------------------------------------------------------------------------*/
45029
45030 #ifdef __cplusplus
45031 extern "C"
45032 #endif
45033 SWIGEXPORT void SWIG_init(void) {
45034 PyObject *m, *d;
45035
45036 /* Fix SwigMethods to carry the callback ptrs when needed */
45037 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
45038
45039 m = Py_InitModule((char *) SWIG_name, SwigMethods);
45040 d = PyModule_GetDict(m);
45041
45042 SWIG_InitializeModule(0);
45043 SWIG_InstallConstants(d,swig_const_table);
45044
45045
45046 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
45047 SWIG_addvarlink(SWIG_globals(),(char*)"ButtonNameStr",ButtonNameStr_get, ButtonNameStr_set);
45048 SWIG_Python_SetConstant(d, "BU_LEFT",SWIG_From_int(static_cast< int >(wxBU_LEFT)));
45049 SWIG_Python_SetConstant(d, "BU_TOP",SWIG_From_int(static_cast< int >(wxBU_TOP)));
45050 SWIG_Python_SetConstant(d, "BU_RIGHT",SWIG_From_int(static_cast< int >(wxBU_RIGHT)));
45051 SWIG_Python_SetConstant(d, "BU_BOTTOM",SWIG_From_int(static_cast< int >(wxBU_BOTTOM)));
45052 SWIG_Python_SetConstant(d, "BU_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBU_ALIGN_MASK)));
45053 SWIG_Python_SetConstant(d, "BU_EXACTFIT",SWIG_From_int(static_cast< int >(wxBU_EXACTFIT)));
45054 SWIG_Python_SetConstant(d, "BU_AUTODRAW",SWIG_From_int(static_cast< int >(wxBU_AUTODRAW)));
45055 SWIG_addvarlink(SWIG_globals(),(char*)"CheckBoxNameStr",CheckBoxNameStr_get, CheckBoxNameStr_set);
45056 SWIG_Python_SetConstant(d, "CHK_2STATE",SWIG_From_int(static_cast< int >(wxCHK_2STATE)));
45057 SWIG_Python_SetConstant(d, "CHK_3STATE",SWIG_From_int(static_cast< int >(wxCHK_3STATE)));
45058 SWIG_Python_SetConstant(d, "CHK_ALLOW_3RD_STATE_FOR_USER",SWIG_From_int(static_cast< int >(wxCHK_ALLOW_3RD_STATE_FOR_USER)));
45059 SWIG_Python_SetConstant(d, "CHK_UNCHECKED",SWIG_From_int(static_cast< int >(wxCHK_UNCHECKED)));
45060 SWIG_Python_SetConstant(d, "CHK_CHECKED",SWIG_From_int(static_cast< int >(wxCHK_CHECKED)));
45061 SWIG_Python_SetConstant(d, "CHK_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCHK_UNDETERMINED)));
45062 SWIG_addvarlink(SWIG_globals(),(char*)"ChoiceNameStr",ChoiceNameStr_get, ChoiceNameStr_set);
45063 SWIG_addvarlink(SWIG_globals(),(char*)"ComboBoxNameStr",ComboBoxNameStr_get, ComboBoxNameStr_set);
45064 SWIG_addvarlink(SWIG_globals(),(char*)"GaugeNameStr",GaugeNameStr_get, GaugeNameStr_set);
45065 SWIG_Python_SetConstant(d, "GA_HORIZONTAL",SWIG_From_int(static_cast< int >(wxGA_HORIZONTAL)));
45066 SWIG_Python_SetConstant(d, "GA_VERTICAL",SWIG_From_int(static_cast< int >(wxGA_VERTICAL)));
45067 SWIG_Python_SetConstant(d, "GA_SMOOTH",SWIG_From_int(static_cast< int >(wxGA_SMOOTH)));
45068 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBitmapNameStr",StaticBitmapNameStr_get, StaticBitmapNameStr_set);
45069 SWIG_addvarlink(SWIG_globals(),(char*)"StaticBoxNameStr",StaticBoxNameStr_get, StaticBoxNameStr_set);
45070 SWIG_addvarlink(SWIG_globals(),(char*)"StaticTextNameStr",StaticTextNameStr_get, StaticTextNameStr_set);
45071 SWIG_addvarlink(SWIG_globals(),(char*)"ListBoxNameStr",ListBoxNameStr_get, ListBoxNameStr_set);
45072 SWIG_addvarlink(SWIG_globals(),(char*)"TextCtrlNameStr",TextCtrlNameStr_get, TextCtrlNameStr_set);
45073 SWIG_Python_SetConstant(d, "TE_NO_VSCROLL",SWIG_From_int(static_cast< int >(wxTE_NO_VSCROLL)));
45074 SWIG_Python_SetConstant(d, "TE_AUTO_SCROLL",SWIG_From_int(static_cast< int >(wxTE_AUTO_SCROLL)));
45075 SWIG_Python_SetConstant(d, "TE_READONLY",SWIG_From_int(static_cast< int >(wxTE_READONLY)));
45076 SWIG_Python_SetConstant(d, "TE_MULTILINE",SWIG_From_int(static_cast< int >(wxTE_MULTILINE)));
45077 SWIG_Python_SetConstant(d, "TE_PROCESS_TAB",SWIG_From_int(static_cast< int >(wxTE_PROCESS_TAB)));
45078 SWIG_Python_SetConstant(d, "TE_LEFT",SWIG_From_int(static_cast< int >(wxTE_LEFT)));
45079 SWIG_Python_SetConstant(d, "TE_CENTER",SWIG_From_int(static_cast< int >(wxTE_CENTER)));
45080 SWIG_Python_SetConstant(d, "TE_RIGHT",SWIG_From_int(static_cast< int >(wxTE_RIGHT)));
45081 SWIG_Python_SetConstant(d, "TE_CENTRE",SWIG_From_int(static_cast< int >(wxTE_CENTRE)));
45082 SWIG_Python_SetConstant(d, "TE_RICH",SWIG_From_int(static_cast< int >(wxTE_RICH)));
45083 SWIG_Python_SetConstant(d, "TE_PROCESS_ENTER",SWIG_From_int(static_cast< int >(wxTE_PROCESS_ENTER)));
45084 SWIG_Python_SetConstant(d, "TE_PASSWORD",SWIG_From_int(static_cast< int >(wxTE_PASSWORD)));
45085 SWIG_Python_SetConstant(d, "TE_AUTO_URL",SWIG_From_int(static_cast< int >(wxTE_AUTO_URL)));
45086 SWIG_Python_SetConstant(d, "TE_NOHIDESEL",SWIG_From_int(static_cast< int >(wxTE_NOHIDESEL)));
45087 SWIG_Python_SetConstant(d, "TE_DONTWRAP",SWIG_From_int(static_cast< int >(wxTE_DONTWRAP)));
45088 SWIG_Python_SetConstant(d, "TE_CHARWRAP",SWIG_From_int(static_cast< int >(wxTE_CHARWRAP)));
45089 SWIG_Python_SetConstant(d, "TE_WORDWRAP",SWIG_From_int(static_cast< int >(wxTE_WORDWRAP)));
45090 SWIG_Python_SetConstant(d, "TE_BESTWRAP",SWIG_From_int(static_cast< int >(wxTE_BESTWRAP)));
45091 SWIG_Python_SetConstant(d, "TE_RICH2",SWIG_From_int(static_cast< int >(wxTE_RICH2)));
45092 SWIG_Python_SetConstant(d, "TE_CAPITALIZE",SWIG_From_int(static_cast< int >(wxTE_CAPITALIZE)));
45093 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_DEFAULT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_DEFAULT)));
45094 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_LEFT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_LEFT)));
45095 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTRE",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTRE)));
45096 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_CENTER",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_CENTER)));
45097 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_RIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_RIGHT)));
45098 SWIG_Python_SetConstant(d, "TEXT_ALIGNMENT_JUSTIFIED",SWIG_From_int(static_cast< int >(wxTEXT_ALIGNMENT_JUSTIFIED)));
45099 SWIG_Python_SetConstant(d, "TEXT_ATTR_TEXT_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TEXT_COLOUR)));
45100 SWIG_Python_SetConstant(d, "TEXT_ATTR_BACKGROUND_COLOUR",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_BACKGROUND_COLOUR)));
45101 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_FACE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_FACE)));
45102 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_SIZE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_SIZE)));
45103 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_WEIGHT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_WEIGHT)));
45104 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_ITALIC)));
45105 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT_UNDERLINE",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT_UNDERLINE)));
45106 SWIG_Python_SetConstant(d, "TEXT_ATTR_FONT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_FONT)));
45107 SWIG_Python_SetConstant(d, "TEXT_ATTR_ALIGNMENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_ALIGNMENT)));
45108 SWIG_Python_SetConstant(d, "TEXT_ATTR_LEFT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_LEFT_INDENT)));
45109 SWIG_Python_SetConstant(d, "TEXT_ATTR_RIGHT_INDENT",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_RIGHT_INDENT)));
45110 SWIG_Python_SetConstant(d, "TEXT_ATTR_TABS",SWIG_From_int(static_cast< int >(wxTEXT_ATTR_TABS)));
45111 SWIG_Python_SetConstant(d, "TE_HT_UNKNOWN",SWIG_From_int(static_cast< int >(wxTE_HT_UNKNOWN)));
45112 SWIG_Python_SetConstant(d, "TE_HT_BEFORE",SWIG_From_int(static_cast< int >(wxTE_HT_BEFORE)));
45113 SWIG_Python_SetConstant(d, "TE_HT_ON_TEXT",SWIG_From_int(static_cast< int >(wxTE_HT_ON_TEXT)));
45114 SWIG_Python_SetConstant(d, "TE_HT_BELOW",SWIG_From_int(static_cast< int >(wxTE_HT_BELOW)));
45115 SWIG_Python_SetConstant(d, "TE_HT_BEYOND",SWIG_From_int(static_cast< int >(wxTE_HT_BEYOND)));
45116 SWIG_Python_SetConstant(d, "OutOfRangeTextCoord",SWIG_From_int(static_cast< int >(wxOutOfRangeTextCoord)));
45117 SWIG_Python_SetConstant(d, "InvalidTextCoord",SWIG_From_int(static_cast< int >(wxInvalidTextCoord)));
45118 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
45119 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
45120 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
45121 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
45122 SWIG_addvarlink(SWIG_globals(),(char*)"ScrollBarNameStr",ScrollBarNameStr_get, ScrollBarNameStr_set);
45123 SWIG_addvarlink(SWIG_globals(),(char*)"SPIN_BUTTON_NAME",SPIN_BUTTON_NAME_get, SPIN_BUTTON_NAME_set);
45124 SWIG_addvarlink(SWIG_globals(),(char*)"SpinCtrlNameStr",SpinCtrlNameStr_get, SpinCtrlNameStr_set);
45125 SWIG_Python_SetConstant(d, "SP_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSP_HORIZONTAL)));
45126 SWIG_Python_SetConstant(d, "SP_VERTICAL",SWIG_From_int(static_cast< int >(wxSP_VERTICAL)));
45127 SWIG_Python_SetConstant(d, "SP_ARROW_KEYS",SWIG_From_int(static_cast< int >(wxSP_ARROW_KEYS)));
45128 SWIG_Python_SetConstant(d, "SP_WRAP",SWIG_From_int(static_cast< int >(wxSP_WRAP)));
45129 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
45130 SWIG_addvarlink(SWIG_globals(),(char*)"RadioBoxNameStr",RadioBoxNameStr_get, RadioBoxNameStr_set);
45131 SWIG_addvarlink(SWIG_globals(),(char*)"RadioButtonNameStr",RadioButtonNameStr_get, RadioButtonNameStr_set);
45132 SWIG_addvarlink(SWIG_globals(),(char*)"SliderNameStr",SliderNameStr_get, SliderNameStr_set);
45133 SWIG_Python_SetConstant(d, "SL_HORIZONTAL",SWIG_From_int(static_cast< int >(wxSL_HORIZONTAL)));
45134 SWIG_Python_SetConstant(d, "SL_VERTICAL",SWIG_From_int(static_cast< int >(wxSL_VERTICAL)));
45135 SWIG_Python_SetConstant(d, "SL_TICKS",SWIG_From_int(static_cast< int >(wxSL_TICKS)));
45136 SWIG_Python_SetConstant(d, "SL_AUTOTICKS",SWIG_From_int(static_cast< int >(wxSL_AUTOTICKS)));
45137 SWIG_Python_SetConstant(d, "SL_LABELS",SWIG_From_int(static_cast< int >(wxSL_LABELS)));
45138 SWIG_Python_SetConstant(d, "SL_LEFT",SWIG_From_int(static_cast< int >(wxSL_LEFT)));
45139 SWIG_Python_SetConstant(d, "SL_TOP",SWIG_From_int(static_cast< int >(wxSL_TOP)));
45140 SWIG_Python_SetConstant(d, "SL_RIGHT",SWIG_From_int(static_cast< int >(wxSL_RIGHT)));
45141 SWIG_Python_SetConstant(d, "SL_BOTTOM",SWIG_From_int(static_cast< int >(wxSL_BOTTOM)));
45142 SWIG_Python_SetConstant(d, "SL_BOTH",SWIG_From_int(static_cast< int >(wxSL_BOTH)));
45143 SWIG_Python_SetConstant(d, "SL_SELRANGE",SWIG_From_int(static_cast< int >(wxSL_SELRANGE)));
45144 SWIG_Python_SetConstant(d, "SL_INVERSE",SWIG_From_int(static_cast< int >(wxSL_INVERSE)));
45145 SWIG_addvarlink(SWIG_globals(),(char*)"ToggleButtonNameStr",ToggleButtonNameStr_get, ToggleButtonNameStr_set);
45146 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
45147 SWIG_addvarlink(SWIG_globals(),(char*)"NotebookNameStr",NotebookNameStr_get, NotebookNameStr_set);
45148 SWIG_Python_SetConstant(d, "BK_DEFAULT",SWIG_From_int(static_cast< int >(wxBK_DEFAULT)));
45149 SWIG_Python_SetConstant(d, "BK_TOP",SWIG_From_int(static_cast< int >(wxBK_TOP)));
45150 SWIG_Python_SetConstant(d, "BK_BOTTOM",SWIG_From_int(static_cast< int >(wxBK_BOTTOM)));
45151 SWIG_Python_SetConstant(d, "BK_LEFT",SWIG_From_int(static_cast< int >(wxBK_LEFT)));
45152 SWIG_Python_SetConstant(d, "BK_RIGHT",SWIG_From_int(static_cast< int >(wxBK_RIGHT)));
45153 SWIG_Python_SetConstant(d, "BK_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxBK_ALIGN_MASK)));
45154 SWIG_Python_SetConstant(d, "BK_BUTTONBAR",SWIG_From_int(static_cast< int >(wxBK_BUTTONBAR)));
45155 SWIG_Python_SetConstant(d, "NB_FIXEDWIDTH",SWIG_From_int(static_cast< int >(wxNB_FIXEDWIDTH)));
45156 SWIG_Python_SetConstant(d, "NB_TOP",SWIG_From_int(static_cast< int >(wxNB_TOP)));
45157 SWIG_Python_SetConstant(d, "NB_LEFT",SWIG_From_int(static_cast< int >(wxNB_LEFT)));
45158 SWIG_Python_SetConstant(d, "NB_RIGHT",SWIG_From_int(static_cast< int >(wxNB_RIGHT)));
45159 SWIG_Python_SetConstant(d, "NB_BOTTOM",SWIG_From_int(static_cast< int >(wxNB_BOTTOM)));
45160 SWIG_Python_SetConstant(d, "NB_MULTILINE",SWIG_From_int(static_cast< int >(wxNB_MULTILINE)));
45161 SWIG_Python_SetConstant(d, "NB_NOPAGETHEME",SWIG_From_int(static_cast< int >(wxNB_NOPAGETHEME)));
45162 SWIG_Python_SetConstant(d, "NB_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxNB_HITTEST_NOWHERE)));
45163 SWIG_Python_SetConstant(d, "NB_HITTEST_ONICON",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONICON)));
45164 SWIG_Python_SetConstant(d, "NB_HITTEST_ONLABEL",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONLABEL)));
45165 SWIG_Python_SetConstant(d, "NB_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxNB_HITTEST_ONITEM)));
45166 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
45167 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
45168 SWIG_Python_SetConstant(d, "LB_DEFAULT",SWIG_From_int(static_cast< int >(wxLB_DEFAULT)));
45169 SWIG_Python_SetConstant(d, "LB_TOP",SWIG_From_int(static_cast< int >(wxLB_TOP)));
45170 SWIG_Python_SetConstant(d, "LB_BOTTOM",SWIG_From_int(static_cast< int >(wxLB_BOTTOM)));
45171 SWIG_Python_SetConstant(d, "LB_LEFT",SWIG_From_int(static_cast< int >(wxLB_LEFT)));
45172 SWIG_Python_SetConstant(d, "LB_RIGHT",SWIG_From_int(static_cast< int >(wxLB_RIGHT)));
45173 SWIG_Python_SetConstant(d, "LB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxLB_ALIGN_MASK)));
45174 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
45175 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
45176 SWIG_Python_SetConstant(d, "CHB_DEFAULT",SWIG_From_int(static_cast< int >(wxCHB_DEFAULT)));
45177 SWIG_Python_SetConstant(d, "CHB_TOP",SWIG_From_int(static_cast< int >(wxCHB_TOP)));
45178 SWIG_Python_SetConstant(d, "CHB_BOTTOM",SWIG_From_int(static_cast< int >(wxCHB_BOTTOM)));
45179 SWIG_Python_SetConstant(d, "CHB_LEFT",SWIG_From_int(static_cast< int >(wxCHB_LEFT)));
45180 SWIG_Python_SetConstant(d, "CHB_RIGHT",SWIG_From_int(static_cast< int >(wxCHB_RIGHT)));
45181 SWIG_Python_SetConstant(d, "CHB_ALIGN_MASK",SWIG_From_int(static_cast< int >(wxCHB_ALIGN_MASK)));
45182 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
45183 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
45184 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGED));
45185 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_PAGE_CHANGING));
45186 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_COLLAPSED));
45187 PyDict_SetItemString(d, "wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREEBOOK_NODE_EXPANDED));
45188 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGED));
45189 PyDict_SetItemString(d, "wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TOOLBOOK_PAGE_CHANGING));
45190 SWIG_Python_SetConstant(d, "TOOL_STYLE_BUTTON",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_BUTTON)));
45191 SWIG_Python_SetConstant(d, "TOOL_STYLE_SEPARATOR",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_SEPARATOR)));
45192 SWIG_Python_SetConstant(d, "TOOL_STYLE_CONTROL",SWIG_From_int(static_cast< int >(wxTOOL_STYLE_CONTROL)));
45193 SWIG_Python_SetConstant(d, "TB_HORIZONTAL",SWIG_From_int(static_cast< int >(wxTB_HORIZONTAL)));
45194 SWIG_Python_SetConstant(d, "TB_VERTICAL",SWIG_From_int(static_cast< int >(wxTB_VERTICAL)));
45195 SWIG_Python_SetConstant(d, "TB_3DBUTTONS",SWIG_From_int(static_cast< int >(wxTB_3DBUTTONS)));
45196 SWIG_Python_SetConstant(d, "TB_FLAT",SWIG_From_int(static_cast< int >(wxTB_FLAT)));
45197 SWIG_Python_SetConstant(d, "TB_DOCKABLE",SWIG_From_int(static_cast< int >(wxTB_DOCKABLE)));
45198 SWIG_Python_SetConstant(d, "TB_NOICONS",SWIG_From_int(static_cast< int >(wxTB_NOICONS)));
45199 SWIG_Python_SetConstant(d, "TB_TEXT",SWIG_From_int(static_cast< int >(wxTB_TEXT)));
45200 SWIG_Python_SetConstant(d, "TB_NODIVIDER",SWIG_From_int(static_cast< int >(wxTB_NODIVIDER)));
45201 SWIG_Python_SetConstant(d, "TB_NOALIGN",SWIG_From_int(static_cast< int >(wxTB_NOALIGN)));
45202 SWIG_Python_SetConstant(d, "TB_HORZ_LAYOUT",SWIG_From_int(static_cast< int >(wxTB_HORZ_LAYOUT)));
45203 SWIG_Python_SetConstant(d, "TB_HORZ_TEXT",SWIG_From_int(static_cast< int >(wxTB_HORZ_TEXT)));
45204 SWIG_Python_SetConstant(d, "TB_NO_TOOLTIPS",SWIG_From_int(static_cast< int >(wxTB_NO_TOOLTIPS)));
45205 SWIG_addvarlink(SWIG_globals(),(char*)"ListCtrlNameStr",ListCtrlNameStr_get, ListCtrlNameStr_set);
45206 SWIG_Python_SetConstant(d, "LC_VRULES",SWIG_From_int(static_cast< int >(wxLC_VRULES)));
45207 SWIG_Python_SetConstant(d, "LC_HRULES",SWIG_From_int(static_cast< int >(wxLC_HRULES)));
45208 SWIG_Python_SetConstant(d, "LC_ICON",SWIG_From_int(static_cast< int >(wxLC_ICON)));
45209 SWIG_Python_SetConstant(d, "LC_SMALL_ICON",SWIG_From_int(static_cast< int >(wxLC_SMALL_ICON)));
45210 SWIG_Python_SetConstant(d, "LC_LIST",SWIG_From_int(static_cast< int >(wxLC_LIST)));
45211 SWIG_Python_SetConstant(d, "LC_REPORT",SWIG_From_int(static_cast< int >(wxLC_REPORT)));
45212 SWIG_Python_SetConstant(d, "LC_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLC_ALIGN_TOP)));
45213 SWIG_Python_SetConstant(d, "LC_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLC_ALIGN_LEFT)));
45214 SWIG_Python_SetConstant(d, "LC_AUTOARRANGE",SWIG_From_int(static_cast< int >(wxLC_AUTOARRANGE)));
45215 SWIG_Python_SetConstant(d, "LC_VIRTUAL",SWIG_From_int(static_cast< int >(wxLC_VIRTUAL)));
45216 SWIG_Python_SetConstant(d, "LC_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxLC_EDIT_LABELS)));
45217 SWIG_Python_SetConstant(d, "LC_NO_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_HEADER)));
45218 SWIG_Python_SetConstant(d, "LC_NO_SORT_HEADER",SWIG_From_int(static_cast< int >(wxLC_NO_SORT_HEADER)));
45219 SWIG_Python_SetConstant(d, "LC_SINGLE_SEL",SWIG_From_int(static_cast< int >(wxLC_SINGLE_SEL)));
45220 SWIG_Python_SetConstant(d, "LC_SORT_ASCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_ASCENDING)));
45221 SWIG_Python_SetConstant(d, "LC_SORT_DESCENDING",SWIG_From_int(static_cast< int >(wxLC_SORT_DESCENDING)));
45222 SWIG_Python_SetConstant(d, "LC_MASK_TYPE",SWIG_From_int(static_cast< int >(wxLC_MASK_TYPE)));
45223 SWIG_Python_SetConstant(d, "LC_MASK_ALIGN",SWIG_From_int(static_cast< int >(wxLC_MASK_ALIGN)));
45224 SWIG_Python_SetConstant(d, "LC_MASK_SORT",SWIG_From_int(static_cast< int >(wxLC_MASK_SORT)));
45225 SWIG_Python_SetConstant(d, "LIST_MASK_STATE",SWIG_From_int(static_cast< int >(wxLIST_MASK_STATE)));
45226 SWIG_Python_SetConstant(d, "LIST_MASK_TEXT",SWIG_From_int(static_cast< int >(wxLIST_MASK_TEXT)));
45227 SWIG_Python_SetConstant(d, "LIST_MASK_IMAGE",SWIG_From_int(static_cast< int >(wxLIST_MASK_IMAGE)));
45228 SWIG_Python_SetConstant(d, "LIST_MASK_DATA",SWIG_From_int(static_cast< int >(wxLIST_MASK_DATA)));
45229 SWIG_Python_SetConstant(d, "LIST_SET_ITEM",SWIG_From_int(static_cast< int >(wxLIST_SET_ITEM)));
45230 SWIG_Python_SetConstant(d, "LIST_MASK_WIDTH",SWIG_From_int(static_cast< int >(wxLIST_MASK_WIDTH)));
45231 SWIG_Python_SetConstant(d, "LIST_MASK_FORMAT",SWIG_From_int(static_cast< int >(wxLIST_MASK_FORMAT)));
45232 SWIG_Python_SetConstant(d, "LIST_STATE_DONTCARE",SWIG_From_int(static_cast< int >(wxLIST_STATE_DONTCARE)));
45233 SWIG_Python_SetConstant(d, "LIST_STATE_DROPHILITED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DROPHILITED)));
45234 SWIG_Python_SetConstant(d, "LIST_STATE_FOCUSED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FOCUSED)));
45235 SWIG_Python_SetConstant(d, "LIST_STATE_SELECTED",SWIG_From_int(static_cast< int >(wxLIST_STATE_SELECTED)));
45236 SWIG_Python_SetConstant(d, "LIST_STATE_CUT",SWIG_From_int(static_cast< int >(wxLIST_STATE_CUT)));
45237 SWIG_Python_SetConstant(d, "LIST_STATE_DISABLED",SWIG_From_int(static_cast< int >(wxLIST_STATE_DISABLED)));
45238 SWIG_Python_SetConstant(d, "LIST_STATE_FILTERED",SWIG_From_int(static_cast< int >(wxLIST_STATE_FILTERED)));
45239 SWIG_Python_SetConstant(d, "LIST_STATE_INUSE",SWIG_From_int(static_cast< int >(wxLIST_STATE_INUSE)));
45240 SWIG_Python_SetConstant(d, "LIST_STATE_PICKED",SWIG_From_int(static_cast< int >(wxLIST_STATE_PICKED)));
45241 SWIG_Python_SetConstant(d, "LIST_STATE_SOURCE",SWIG_From_int(static_cast< int >(wxLIST_STATE_SOURCE)));
45242 SWIG_Python_SetConstant(d, "LIST_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ABOVE)));
45243 SWIG_Python_SetConstant(d, "LIST_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_BELOW)));
45244 SWIG_Python_SetConstant(d, "LIST_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_NOWHERE)));
45245 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMICON)));
45246 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMLABEL)));
45247 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMRIGHT)));
45248 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEMSTATEICON)));
45249 SWIG_Python_SetConstant(d, "LIST_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TOLEFT)));
45250 SWIG_Python_SetConstant(d, "LIST_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_TORIGHT)));
45251 SWIG_Python_SetConstant(d, "LIST_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxLIST_HITTEST_ONITEM)));
45252 SWIG_Python_SetConstant(d, "LIST_GETSUBITEMRECT_WHOLEITEM",SWIG_From_int(static_cast< int >(wxLIST_GETSUBITEMRECT_WHOLEITEM)));
45253 SWIG_Python_SetConstant(d, "LIST_NEXT_ABOVE",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ABOVE)));
45254 SWIG_Python_SetConstant(d, "LIST_NEXT_ALL",SWIG_From_int(static_cast< int >(wxLIST_NEXT_ALL)));
45255 SWIG_Python_SetConstant(d, "LIST_NEXT_BELOW",SWIG_From_int(static_cast< int >(wxLIST_NEXT_BELOW)));
45256 SWIG_Python_SetConstant(d, "LIST_NEXT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_LEFT)));
45257 SWIG_Python_SetConstant(d, "LIST_NEXT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_NEXT_RIGHT)));
45258 SWIG_Python_SetConstant(d, "LIST_ALIGN_DEFAULT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_DEFAULT)));
45259 SWIG_Python_SetConstant(d, "LIST_ALIGN_LEFT",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_LEFT)));
45260 SWIG_Python_SetConstant(d, "LIST_ALIGN_TOP",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_TOP)));
45261 SWIG_Python_SetConstant(d, "LIST_ALIGN_SNAP_TO_GRID",SWIG_From_int(static_cast< int >(wxLIST_ALIGN_SNAP_TO_GRID)));
45262 SWIG_Python_SetConstant(d, "LIST_FORMAT_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_LEFT)));
45263 SWIG_Python_SetConstant(d, "LIST_FORMAT_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_RIGHT)));
45264 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTRE",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTRE)));
45265 SWIG_Python_SetConstant(d, "LIST_FORMAT_CENTER",SWIG_From_int(static_cast< int >(wxLIST_FORMAT_CENTER)));
45266 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE)));
45267 SWIG_Python_SetConstant(d, "LIST_AUTOSIZE_USEHEADER",SWIG_From_int(static_cast< int >(wxLIST_AUTOSIZE_USEHEADER)));
45268 SWIG_Python_SetConstant(d, "LIST_RECT_BOUNDS",SWIG_From_int(static_cast< int >(wxLIST_RECT_BOUNDS)));
45269 SWIG_Python_SetConstant(d, "LIST_RECT_ICON",SWIG_From_int(static_cast< int >(wxLIST_RECT_ICON)));
45270 SWIG_Python_SetConstant(d, "LIST_RECT_LABEL",SWIG_From_int(static_cast< int >(wxLIST_RECT_LABEL)));
45271 SWIG_Python_SetConstant(d, "LIST_FIND_UP",SWIG_From_int(static_cast< int >(wxLIST_FIND_UP)));
45272 SWIG_Python_SetConstant(d, "LIST_FIND_DOWN",SWIG_From_int(static_cast< int >(wxLIST_FIND_DOWN)));
45273 SWIG_Python_SetConstant(d, "LIST_FIND_LEFT",SWIG_From_int(static_cast< int >(wxLIST_FIND_LEFT)));
45274 SWIG_Python_SetConstant(d, "LIST_FIND_RIGHT",SWIG_From_int(static_cast< int >(wxLIST_FIND_RIGHT)));
45275 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
45276 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
45277 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
45278 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
45279 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
45280 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
45281 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
45282 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
45283 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
45284 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
45285 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
45286 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
45287 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
45288 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
45289 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
45290 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
45291 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
45292 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
45293 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
45294 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
45295
45296 // Map renamed classes back to their common name for OOR
45297 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
45298
45299 SWIG_addvarlink(SWIG_globals(),(char*)"TreeCtrlNameStr",TreeCtrlNameStr_get, TreeCtrlNameStr_set);
45300 SWIG_Python_SetConstant(d, "TR_NO_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_NO_BUTTONS)));
45301 SWIG_Python_SetConstant(d, "TR_HAS_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_HAS_BUTTONS)));
45302 SWIG_Python_SetConstant(d, "TR_NO_LINES",SWIG_From_int(static_cast< int >(wxTR_NO_LINES)));
45303 SWIG_Python_SetConstant(d, "TR_LINES_AT_ROOT",SWIG_From_int(static_cast< int >(wxTR_LINES_AT_ROOT)));
45304 SWIG_Python_SetConstant(d, "TR_SINGLE",SWIG_From_int(static_cast< int >(wxTR_SINGLE)));
45305 SWIG_Python_SetConstant(d, "TR_MULTIPLE",SWIG_From_int(static_cast< int >(wxTR_MULTIPLE)));
45306 SWIG_Python_SetConstant(d, "TR_EXTENDED",SWIG_From_int(static_cast< int >(wxTR_EXTENDED)));
45307 SWIG_Python_SetConstant(d, "TR_HAS_VARIABLE_ROW_HEIGHT",SWIG_From_int(static_cast< int >(wxTR_HAS_VARIABLE_ROW_HEIGHT)));
45308 SWIG_Python_SetConstant(d, "TR_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxTR_EDIT_LABELS)));
45309 SWIG_Python_SetConstant(d, "TR_HIDE_ROOT",SWIG_From_int(static_cast< int >(wxTR_HIDE_ROOT)));
45310 SWIG_Python_SetConstant(d, "TR_ROW_LINES",SWIG_From_int(static_cast< int >(wxTR_ROW_LINES)));
45311 SWIG_Python_SetConstant(d, "TR_FULL_ROW_HIGHLIGHT",SWIG_From_int(static_cast< int >(wxTR_FULL_ROW_HIGHLIGHT)));
45312 SWIG_Python_SetConstant(d, "TR_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxTR_DEFAULT_STYLE)));
45313 SWIG_Python_SetConstant(d, "TR_TWIST_BUTTONS",SWIG_From_int(static_cast< int >(wxTR_TWIST_BUTTONS)));
45314 SWIG_Python_SetConstant(d, "TreeItemIcon_Normal",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Normal)));
45315 SWIG_Python_SetConstant(d, "TreeItemIcon_Selected",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Selected)));
45316 SWIG_Python_SetConstant(d, "TreeItemIcon_Expanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Expanded)));
45317 SWIG_Python_SetConstant(d, "TreeItemIcon_SelectedExpanded",SWIG_From_int(static_cast< int >(wxTreeItemIcon_SelectedExpanded)));
45318 SWIG_Python_SetConstant(d, "TreeItemIcon_Max",SWIG_From_int(static_cast< int >(wxTreeItemIcon_Max)));
45319 SWIG_Python_SetConstant(d, "TREE_HITTEST_ABOVE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ABOVE)));
45320 SWIG_Python_SetConstant(d, "TREE_HITTEST_BELOW",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_BELOW)));
45321 SWIG_Python_SetConstant(d, "TREE_HITTEST_NOWHERE",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_NOWHERE)));
45322 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMBUTTON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMBUTTON)));
45323 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMICON)));
45324 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMINDENT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMINDENT)));
45325 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLABEL",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLABEL)));
45326 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMRIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMRIGHT)));
45327 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMSTATEICON",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMSTATEICON)));
45328 SWIG_Python_SetConstant(d, "TREE_HITTEST_TOLEFT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TOLEFT)));
45329 SWIG_Python_SetConstant(d, "TREE_HITTEST_TORIGHT",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_TORIGHT)));
45330 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMUPPERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMUPPERPART)));
45331 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEMLOWERPART",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEMLOWERPART)));
45332 SWIG_Python_SetConstant(d, "TREE_HITTEST_ONITEM",SWIG_From_int(static_cast< int >(wxTREE_HITTEST_ONITEM)));
45333 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
45334 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
45335 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
45336 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
45337 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
45338 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
45339 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
45340 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
45341 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
45342 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
45343 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
45344 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
45345 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
45346 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
45347 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
45348 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
45349 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
45350 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
45351 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
45352 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
45353 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MENU", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MENU));
45354
45355 // Map renamed classes back to their common name for OOR
45356 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
45357 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
45358
45359 SWIG_addvarlink(SWIG_globals(),(char*)"DirDialogDefaultFolderStr",DirDialogDefaultFolderStr_get, DirDialogDefaultFolderStr_set);
45360 SWIG_Python_SetConstant(d, "DIRCTRL_DIR_ONLY",SWIG_From_int(static_cast< int >(wxDIRCTRL_DIR_ONLY)));
45361 SWIG_Python_SetConstant(d, "DIRCTRL_SELECT_FIRST",SWIG_From_int(static_cast< int >(wxDIRCTRL_SELECT_FIRST)));
45362 SWIG_Python_SetConstant(d, "DIRCTRL_SHOW_FILTERS",SWIG_From_int(static_cast< int >(wxDIRCTRL_SHOW_FILTERS)));
45363 SWIG_Python_SetConstant(d, "DIRCTRL_3D_INTERNAL",SWIG_From_int(static_cast< int >(wxDIRCTRL_3D_INTERNAL)));
45364 SWIG_Python_SetConstant(d, "DIRCTRL_EDIT_LABELS",SWIG_From_int(static_cast< int >(wxDIRCTRL_EDIT_LABELS)));
45365 SWIG_Python_SetConstant(d, "FRAME_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxFRAME_EX_CONTEXTHELP)));
45366 SWIG_Python_SetConstant(d, "DIALOG_EX_CONTEXTHELP",SWIG_From_int(static_cast< int >(wxDIALOG_EX_CONTEXTHELP)));
45367 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
45368 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
45369 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Unknown",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Unknown)));
45370 SWIG_Python_SetConstant(d, "HelpEvent_Origin_Keyboard",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_Keyboard)));
45371 SWIG_Python_SetConstant(d, "HelpEvent_Origin_HelpButton",SWIG_From_int(static_cast< int >(wxHelpEvent::Origin_HelpButton)));
45372
45373 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
45374
45375 SWIG_addvarlink(SWIG_globals(),(char*)"DatePickerCtrlNameStr",DatePickerCtrlNameStr_get, DatePickerCtrlNameStr_set);
45376 SWIG_Python_SetConstant(d, "DP_DEFAULT",SWIG_From_int(static_cast< int >(wxDP_DEFAULT)));
45377 SWIG_Python_SetConstant(d, "DP_SPIN",SWIG_From_int(static_cast< int >(wxDP_SPIN)));
45378 SWIG_Python_SetConstant(d, "DP_DROPDOWN",SWIG_From_int(static_cast< int >(wxDP_DROPDOWN)));
45379 SWIG_Python_SetConstant(d, "DP_SHOWCENTURY",SWIG_From_int(static_cast< int >(wxDP_SHOWCENTURY)));
45380 SWIG_Python_SetConstant(d, "DP_ALLOWNONE",SWIG_From_int(static_cast< int >(wxDP_ALLOWNONE)));
45381 SWIG_addvarlink(SWIG_globals(),(char*)"HyperlinkCtrlNameStr",HyperlinkCtrlNameStr_get, HyperlinkCtrlNameStr_set);
45382 SWIG_Python_SetConstant(d, "HL_CONTEXTMENU",SWIG_From_int(static_cast< int >(wxHL_CONTEXTMENU)));
45383 SWIG_Python_SetConstant(d, "HL_DEFAULT_STYLE",SWIG_From_int(static_cast< int >(wxHL_DEFAULT_STYLE)));
45384 PyDict_SetItemString(d, "wxEVT_COMMAND_HYPERLINK", PyInt_FromLong(wxEVT_COMMAND_HYPERLINK));
45385 }
45386