]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
b205686c7e917d52faede0bd243b0b257c40108b
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
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_NOINCLUDE
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 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
212 #define SWIGTYPE_p_wxSizer swig_types[1]
213 #define SWIGTYPE_p_wxCheckBox swig_types[2]
214 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[3]
215 #define SWIGTYPE_p_wxEvent swig_types[4]
216 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[5]
217 #define SWIGTYPE_p_bool swig_types[6]
218 #define SWIGTYPE_p_wxPyTreeItemData swig_types[7]
219 #define SWIGTYPE_p_wxItemContainer swig_types[8]
220 #define SWIGTYPE_p_wxPyListCtrl swig_types[9]
221 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10]
222 #define SWIGTYPE_p_wxStaticLine swig_types[11]
223 #define SWIGTYPE_p_wxControl swig_types[12]
224 #define SWIGTYPE_p_wxPyControl swig_types[13]
225 #define SWIGTYPE_p_wxGauge swig_types[14]
226 #define SWIGTYPE_p_wxToolBarBase swig_types[15]
227 #define SWIGTYPE_p_wxFont swig_types[16]
228 #define SWIGTYPE_p_wxToggleButton swig_types[17]
229 #define SWIGTYPE_p_wxRadioButton swig_types[18]
230 #define SWIGTYPE_p_wxChoice swig_types[19]
231 #define SWIGTYPE_p_wxMemoryDC swig_types[20]
232 #define SWIGTYPE_p_wxListItemAttr swig_types[21]
233 #define SWIGTYPE_p_void swig_types[22]
234 #define SWIGTYPE_p_int swig_types[23]
235 #define SWIGTYPE_p_wxSize swig_types[24]
236 #define SWIGTYPE_p_wxDC swig_types[25]
237 #define SWIGTYPE_p_wxListView swig_types[26]
238 #define SWIGTYPE_p_wxIcon swig_types[27]
239 #define SWIGTYPE_p_wxVisualAttributes swig_types[28]
240 #define SWIGTYPE_p_wxTextCtrl swig_types[29]
241 #define SWIGTYPE_p_wxNotebook swig_types[30]
242 #define SWIGTYPE_p_wxChoicebook swig_types[31]
243 #define SWIGTYPE_p_wxNotifyEvent swig_types[32]
244 #define SWIGTYPE_p_wxArrayString swig_types[33]
245 #define SWIGTYPE_p_wxListbook swig_types[34]
246 #define SWIGTYPE_p_wxStaticBitmap swig_types[35]
247 #define SWIGTYPE_p_wxSlider swig_types[36]
248 #define SWIGTYPE_p_wxStaticBox swig_types[37]
249 #define SWIGTYPE_p_wxArrayInt swig_types[38]
250 #define SWIGTYPE_p_wxContextHelp swig_types[39]
251 #define SWIGTYPE_p_long swig_types[40]
252 #define SWIGTYPE_p_wxBookCtrlBase swig_types[41]
253 #define SWIGTYPE_p_wxEvtHandler swig_types[42]
254 #define SWIGTYPE_p_wxListEvent swig_types[43]
255 #define SWIGTYPE_p_wxCheckListBox swig_types[44]
256 #define SWIGTYPE_p_wxListBox swig_types[45]
257 #define SWIGTYPE_p_wxSpinButton swig_types[46]
258 #define SWIGTYPE_p_wxButton swig_types[47]
259 #define SWIGTYPE_p_wxBitmapButton swig_types[48]
260 #define SWIGTYPE_p_wxRect swig_types[49]
261 #define SWIGTYPE_p_wxContextHelpButton swig_types[50]
262 #define SWIGTYPE_p_wxRadioBox swig_types[51]
263 #define SWIGTYPE_p_wxScrollBar swig_types[52]
264 #define SWIGTYPE_p_char swig_types[53]
265 #define SWIGTYPE_p_wxTreeItemId swig_types[54]
266 #define SWIGTYPE_p_wxComboBox swig_types[55]
267 #define SWIGTYPE_p_wxHelpEvent swig_types[56]
268 #define SWIGTYPE_p_wxListItem swig_types[57]
269 #define SWIGTYPE_p_wxNotebookSizer swig_types[58]
270 #define SWIGTYPE_p_wxSpinEvent swig_types[59]
271 #define SWIGTYPE_p_wxGenericDragImage swig_types[60]
272 #define SWIGTYPE_p_wxSpinCtrl swig_types[61]
273 #define SWIGTYPE_p_wxImageList swig_types[62]
274 #define SWIGTYPE_p_wxHelpProvider swig_types[63]
275 #define SWIGTYPE_p_wxTextAttr swig_types[64]
276 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65]
277 #define SWIGTYPE_p_wxPoint swig_types[66]
278 #define SWIGTYPE_p_wxChoicebookEvent swig_types[67]
279 #define SWIGTYPE_p_wxListbookEvent swig_types[68]
280 #define SWIGTYPE_p_wxNotebookEvent swig_types[69]
281 #define SWIGTYPE_p_wxObject swig_types[70]
282 #define SWIGTYPE_p_wxCursor swig_types[71]
283 #define SWIGTYPE_p_wxKeyEvent swig_types[72]
284 #define SWIGTYPE_p_wxWindow swig_types[73]
285 #define SWIGTYPE_p_wxString swig_types[74]
286 #define SWIGTYPE_p_wxBitmap swig_types[75]
287 #define SWIGTYPE_p_wxTreeEvent swig_types[76]
288 #define SWIGTYPE_p_wxMouseEvent swig_types[77]
289 #define SWIGTYPE_p_wxBookCtrlBaseEvent swig_types[78]
290 #define SWIGTYPE_p_wxCommandEvent swig_types[79]
291 #define SWIGTYPE_p_wxStaticText swig_types[80]
292 #define SWIGTYPE_p_wxControlWithItems swig_types[81]
293 #define SWIGTYPE_p_wxToolBarToolBase swig_types[82]
294 #define SWIGTYPE_p_wxColour swig_types[83]
295 #define SWIGTYPE_p_wxToolBar swig_types[84]
296 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[85]
297 #define SWIGTYPE_p_wxValidator swig_types[86]
298 static swig_type_info *swig_types[88];
299
300 /* -------- TYPES TABLE (END) -------- */
301
302
303 /*-----------------------------------------------
304 @(target):= _controls_.so
305 ------------------------------------------------*/
306 #define SWIG_init init_controls_
307
308 #define SWIG_name "_controls_"
309
310 /* Auxiliar swig macros that appear in the header */
311
312 #define SWIG_OLDOBJ 1
313 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
314 #define SWIG_PYSTR SWIG_NEWOBJ + 1
315
316 #ifdef __cplusplus
317 #define SWIGSTATICINLINE(a) static inline a
318 #define SWIGSTATIC(a) static a
319 #define swig_new_array(size,Type) (new Type[(size)])
320 #define swig_delete(cptr) delete cptr
321 #define swig_delete_array(cptr) delete[] cptr
322 #define swig_const_cast(a,Type) const_cast<Type >(a)
323 #define swig_static_cast(a,Type) static_cast<Type >(a)
324 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
325 #define swig_new_copy(ptr,Type) (new Type(*ptr))
326 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
327
328 #else /* C case */
329
330 #define SWIGSTATICINLINE(a) static a
331 #define SWIGSTATIC(a) static a
332 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
333 #define swig_delete(cptr) free((char*)cptr)
334 #define swig_delete_array(cptr) free((char*)cptr)
335 #define swig_const_cast(a,Type) (Type)(a)
336 #define swig_static_cast(a,Type) (Type)(a)
337 #define swig_reinterpret_cast(a,Type) (Type)(a)
338 #define swig_numeric_cast(a,Type) (Type)(a)
339 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
340
341 #endif /* __cplusplus */
342
343
344 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
345 #define SWIG_From_signed_SS_char PyInt_FromLong
346 /*@@*/
347 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
348 #define SWIG_From_unsigned_SS_char PyInt_FromLong
349 /*@@*/
350 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
351 #define SWIG_From_short PyInt_FromLong
352 /*@@*/
353 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
354 #define SWIG_From_unsigned_SS_short PyInt_FromLong
355 /*@@*/
356 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
357 #define SWIG_From_int PyInt_FromLong
358 /*@@*/
359 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
360 #define SWIG_From_long PyInt_FromLong
361 /*@@*/
362 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
363 #define SWIG_From_float PyFloat_FromDouble
364 /*@@*/
365 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
366 #define SWIG_From_double PyFloat_FromDouble
367 /*@@*/
368
369
370 #include "wx/wxPython/wxPython.h"
371 #include "wx/wxPython/pyclasses.h"
372
373 static const wxString wxPyPanelNameStr(wxPanelNameStr);
374 static const wxString wxPyEmptyString(wxEmptyString);
375 static const wxString wxPyControlNameStr(wxControlNameStr);
376
377 const wxArrayString wxPyEmptyStringArray;
378
379 static const wxString wxPyButtonNameStr(wxButtonNameStr);
380
381 #include <limits.h>
382
383
384 SWIGSTATICINLINE(int)
385 SWIG_CheckLongInRange(long value, long min_value, long max_value,
386 const char *errmsg)
387 {
388 if (value < min_value) {
389 if (errmsg) {
390 PyErr_Format(PyExc_OverflowError,
391 "value %ld is less than '%s' minimum %ld",
392 value, errmsg, min_value);
393 }
394 return 0;
395 } else if (value > max_value) {
396 if (errmsg) {
397 PyErr_Format(PyExc_OverflowError,
398 "value %ld is greater than '%s' maximum %ld",
399 value, errmsg, max_value);
400 }
401 return 0;
402 }
403 return 1;
404 }
405
406
407 // See my_fragments.i
408 SWIGSTATICINLINE(int)
409 SWIG_AsVal_long(PyObject* obj, long* val)
410 {
411 if (PyNumber_Check(obj)) {
412 if (val) *val = PyInt_AsLong(obj);
413 return 1;
414 }
415 else {
416 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
417 obj->ob_type->tp_name);
418 PyErr_SetObject(PyExc_TypeError, errmsg);
419 Py_DECREF(errmsg);
420 }
421 return 0;
422 }
423
424
425 #if INT_MAX != LONG_MAX
426 SWIGSTATICINLINE(int)
427 SWIG_AsVal_int(PyObject *obj, int *val)
428 {
429 const char* errmsg = val ? "int" : 0;
430 long v;
431 if (SWIG_AsVal_long(obj, &v)) {
432 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
433 if (val) *val = swig_numeric_cast(v, int);
434 return 1;
435 } else {
436 return 0;
437 }
438 } else {
439 PyErr_Clear();
440 }
441 if (val) {
442 PyErr_SetString(PyExc_TypeError, "an int is expected");
443 }
444 return 0;
445 }
446 #else
447 SWIGSTATICINLINE(int)
448 SWIG_AsVal_int(PyObject *obj, int *val)
449 {
450 return SWIG_AsVal_long(obj,(long*)val);
451 }
452 #endif
453
454
455 SWIGSTATICINLINE(int)
456 SWIG_As_int(PyObject* obj)
457 {
458 int v;
459 if (!SWIG_AsVal_int(obj, &v)) {
460 /*
461 this is needed to make valgrind/purify happier. the other
462 solution is throw an exception, but since this code should work
463 with plain C ....
464 */
465 memset((void*)&v, 0, sizeof(int));
466 }
467 return v;
468 }
469
470
471 SWIGSTATICINLINE(long)
472 SWIG_As_long(PyObject* obj)
473 {
474 long v;
475 if (!SWIG_AsVal_long(obj, &v)) {
476 /*
477 this is needed to make valgrind/purify happier. the other
478 solution is throw an exception, but since this code should work
479 with plain C ....
480 */
481 memset((void*)&v, 0, sizeof(long));
482 }
483 return v;
484 }
485
486
487 SWIGSTATICINLINE(int)
488 SWIG_Check_int(PyObject* obj)
489 {
490 return SWIG_AsVal_int(obj, (int*)0);
491 }
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_Check_long(PyObject* obj)
496 {
497 return SWIG_AsVal_long(obj, (long*)0);
498 }
499
500 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
501
502 SWIGSTATICINLINE(int)
503 SWIG_AsVal_bool(PyObject *obj, bool *val)
504 {
505 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
506 if (obj == Py_True) {
507 if (val) *val = true;
508 return 1;
509 }
510 if (obj == Py_False) {
511 if (val) *val = false;
512 return 1;
513 }
514 int res = 0;
515 if (SWIG_AsVal_int(obj, &res)) {
516 if (val) *val = (bool)res;
517 return 1;
518 }
519 if (val) {
520 PyErr_SetString(PyExc_TypeError, "a bool is expected");
521 }
522 return 0;
523 }
524
525
526 SWIGSTATICINLINE(bool)
527 SWIG_As_bool(PyObject* obj)
528 {
529 bool v;
530 if (!SWIG_AsVal_bool(obj, &v)) {
531 /*
532 this is needed to make valgrind/purify happier. the other
533 solution is throw an exception, but since this code should work
534 with plain C ....
535 */
536 memset((void*)&v, 0, sizeof(bool));
537 }
538 return v;
539 }
540
541
542 SWIGSTATICINLINE(int)
543 SWIG_Check_bool(PyObject* obj)
544 {
545 return SWIG_AsVal_bool(obj, (bool*)0);
546 }
547
548 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
549 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
550
551 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
552 PyObject* o2;
553 PyObject* o3;
554
555 if (!target) {
556 target = o;
557 } else if (target == Py_None) {
558 Py_DECREF(Py_None);
559 target = o;
560 } else {
561 if (!PyTuple_Check(target)) {
562 o2 = target;
563 target = PyTuple_New(1);
564 PyTuple_SetItem(target, 0, o2);
565 }
566 o3 = PyTuple_New(1);
567 PyTuple_SetItem(o3, 0, o);
568
569 o2 = target;
570 target = PySequence_Concat(o2, o3);
571 Py_DECREF(o2);
572 Py_DECREF(o3);
573 }
574 return target;
575 }
576
577
578 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
579 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
580 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
581 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
582
583 #include <wx/checklst.h>
584
585
586 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
587 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
588 if (clientData) {
589 wxPyClientData* data = new wxPyClientData(clientData);
590 self->Insert(item, pos, data);
591 } else
592 self->Insert(item, pos);
593 }
594 PyObject *wxListBox_GetSelections(wxListBox *self){
595 wxArrayInt lst;
596 self->GetSelections(lst);
597 PyObject *tup = PyTuple_New(lst.GetCount());
598 for(size_t i=0; i<lst.GetCount(); i++) {
599 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
600 }
601 return tup;
602 }
603 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
604 #ifdef __WXMSW__
605 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
606 self->GetItem(item)->SetTextColour(c);
607 #endif
608 }
609 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
610 #ifdef __WXMSW__
611 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
612 self->GetItem(item)->SetBackgroundColour(c);
613 #endif
614 }
615 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
616 #ifdef __WXMSW__
617 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
618 self->GetItem(item)->SetFont(f);
619 #endif
620 }
621 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
622
623 // See my_fragments.i
624 SWIGSTATICINLINE(int)
625 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
626 {
627 long v = 0;
628 if (SWIG_AsVal_long(obj, &v) && v < 0) {
629 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
630 return 0;
631 }
632 else if (val)
633 *val = (unsigned long)v;
634 return 1;
635 }
636
637
638 SWIGSTATICINLINE(unsigned long)
639 SWIG_As_unsigned_SS_long(PyObject* obj)
640 {
641 unsigned long v;
642 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
643 /*
644 this is needed to make valgrind/purify happier. the other
645 solution is throw an exception, but since this code should work
646 with plain C ....
647 */
648 memset((void*)&v, 0, sizeof(unsigned long));
649 }
650 return v;
651 }
652
653
654 SWIGSTATICINLINE(int)
655 SWIG_Check_unsigned_SS_long(PyObject* obj)
656 {
657 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
658 }
659
660 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
661 self->AppendText(text);
662 }
663 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
664 return self->GetValue().Mid(from, to - from);
665 }
666 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
667 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
668 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
669 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
670 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
671
672 #include <wx/slider.h>
673
674
675 static const wxString wxPySliderNameStr(wxSliderNameStr);
676 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
677
678 #if !wxUSE_TOGGLEBTN
679 // implement dummy items for platforms that don't have this class
680
681 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
682
683 class wxToggleButton : public wxControl
684 {
685 public:
686 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
687 const wxPoint&, const wxSize&, long,
688 const wxValidator&, const wxString&)
689 { wxPyRaiseNotImplemented(); }
690
691 wxToggleButton()
692 { wxPyRaiseNotImplemented(); }
693 };
694 #endif
695
696 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
697
698 SWIGSTATICINLINE(PyObject* )
699 SWIG_From_unsigned_SS_long(unsigned long value)
700 {
701 return (value > LONG_MAX) ?
702 PyLong_FromUnsignedLong(value)
703 : PyInt_FromLong(swig_numeric_cast(value,long));
704 }
705
706 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
707 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
708 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
709 if (udata) {
710 Py_INCREF(udata->m_obj);
711 return udata->m_obj;
712 } else {
713 Py_INCREF(Py_None);
714 return Py_None;
715 }
716 }
717 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
718 self->SetClientData(new wxPyUserData(clientData));
719 }
720 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
721 wxPyUserData* udata = NULL;
722 if (clientData && clientData != Py_None)
723 udata = new wxPyUserData(clientData);
724 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
725 shortHelp, longHelp, udata);
726 }
727 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
728 wxPyUserData* udata = NULL;
729 if (clientData && clientData != Py_None)
730 udata = new wxPyUserData(clientData);
731 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
732 shortHelp, longHelp, udata);
733 }
734 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
735 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
736 if (udata) {
737 Py_INCREF(udata->m_obj);
738 return udata->m_obj;
739 } else {
740 Py_INCREF(Py_None);
741 return Py_None;
742 }
743 }
744 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
745 self->SetToolClientData(id, new wxPyUserData(clientData));
746 }
747
748 #include <wx/listctrl.h>
749
750 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
751 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
752 // Python aware sorting function for wxPyListCtrl
753 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
754 int retval = 0;
755 PyObject* func = (PyObject*)funcPtr;
756 bool blocked = wxPyBeginBlockThreads();
757
758 PyObject* args = Py_BuildValue("(ii)", item1, item2);
759 PyObject* result = PyEval_CallObject(func, args);
760 Py_DECREF(args);
761 if (result) {
762 retval = PyInt_AsLong(result);
763 Py_DECREF(result);
764 }
765
766 wxPyEndBlockThreads(blocked);
767 return retval;
768 }
769
770 // C++ Version of a Python aware class
771 class wxPyListCtrl : public wxListCtrl {
772 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
773 public:
774 wxPyListCtrl() : wxListCtrl() {}
775 wxPyListCtrl(wxWindow* parent, wxWindowID id,
776 const wxPoint& pos,
777 const wxSize& size,
778 long style,
779 const wxValidator& validator,
780 const wxString& name) :
781 wxListCtrl(parent, id, pos, size, style, validator, name) {}
782
783 bool Create(wxWindow* parent, wxWindowID id,
784 const wxPoint& pos,
785 const wxSize& size,
786 long style,
787 const wxValidator& validator,
788 const wxString& name) {
789 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
790 }
791
792 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
793 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
794
795 // use the virtual version to avoid a confusing assert in the base class
796 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
797
798 PYPRIVATE;
799 };
800
801 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
802
803 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
804 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
805 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
806
807
808 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
809 wxListItem item;
810 item.SetMask( wxLIST_MASK_STATE |
811 wxLIST_MASK_TEXT |
812 wxLIST_MASK_IMAGE |
813 wxLIST_MASK_DATA |
814 wxLIST_SET_ITEM |
815 wxLIST_MASK_WIDTH |
816 wxLIST_MASK_FORMAT
817 );
818 if (self->GetColumn(col, item))
819 return new wxListItem(item);
820 else
821 return NULL;
822 }
823 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
824 wxListItem* info = new wxListItem;
825 info->m_itemId = itemId;
826 info->m_col = col;
827 info->m_mask = 0xFFFF;
828 self->GetItem(*info);
829 return info;
830 }
831 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
832 wxPoint pos;
833 self->GetItemPosition(item, pos);
834 return pos;
835 }
836 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
837 wxRect rect;
838 self->GetItemRect(item, rect, code);
839 return rect;
840 }
841
842 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
843 if (!PyCallable_Check(func))
844 return false;
845 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
846 }
847 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
848
849 return self;
850
851
852
853 }
854
855 #include <wx/treectrl.h>
856 #include "wx/wxPython/pytree.h"
857
858 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
859 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
860 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
861 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
862 // C++ version of Python aware wxTreeCtrl
863 class wxPyTreeCtrl : public wxTreeCtrl {
864 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
865 public:
866 wxPyTreeCtrl() : wxTreeCtrl() {}
867 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
868 const wxPoint& pos,
869 const wxSize& size,
870 long style,
871 const wxValidator& validator,
872 const wxString& name) :
873 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
874
875 bool Create(wxWindow *parent, wxWindowID id,
876 const wxPoint& pos,
877 const wxSize& size,
878 long style,
879 const wxValidator& validator,
880 const wxString& name) {
881 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
882 }
883
884
885 int OnCompareItems(const wxTreeItemId& item1,
886 const wxTreeItemId& item2) {
887 int rval = 0;
888 bool found;
889 bool blocked = wxPyBeginBlockThreads();
890 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
891 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
892 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
893 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
894 Py_DECREF(o1);
895 Py_DECREF(o2);
896 }
897 wxPyEndBlockThreads(blocked);
898 if (! found)
899 rval = wxTreeCtrl::OnCompareItems(item1, item2);
900 return rval;
901 }
902 PYPRIVATE;
903 };
904
905 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
906
907
908
909 #if UINT_MAX < LONG_MAX
910 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
911 #define SWIG_From_unsigned_SS_int SWIG_From_long
912 /*@@*/
913 #else
914 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
915 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
916 /*@@*/
917 #endif
918
919
920 SWIGSTATICINLINE(int)
921 SWIG_CheckUnsignedLongInRange(unsigned long value,
922 unsigned long max_value,
923 const char *errmsg)
924 {
925 if (value > max_value) {
926 if (errmsg) {
927 PyErr_Format(PyExc_OverflowError,
928 "value %ld is greater than '%s' minimum %ld",
929 value, errmsg, max_value);
930 }
931 return 0;
932 }
933 return 1;
934 }
935
936
937 #if UINT_MAX != ULONG_MAX
938 SWIGSTATICINLINE(int)
939 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
940 {
941 const char* errmsg = val ? "unsigned int" : 0;
942 unsigned long v;
943 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
944 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
945 if (val) *val = swig_numeric_cast(v, unsigned int);
946 return 1;
947 }
948 } else {
949 PyErr_Clear();
950 }
951 if (val) {
952 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
953 }
954 return 0;
955 }
956 #else
957 SWIGSTATICINLINE(unsigned int)
958 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
959 {
960 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
961 }
962 #endif
963
964
965 SWIGSTATICINLINE(unsigned int)
966 SWIG_As_unsigned_SS_int(PyObject* obj)
967 {
968 unsigned int v;
969 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
970 /*
971 this is needed to make valgrind/purify happier. the other
972 solution is throw an exception, but since this code should work
973 with plain C ....
974 */
975 memset((void*)&v, 0, sizeof(unsigned int));
976 }
977 return v;
978 }
979
980
981 SWIGSTATICINLINE(int)
982 SWIG_Check_unsigned_SS_int(PyObject* obj)
983 {
984 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
985 }
986
987 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
988 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
989 if (data == NULL) {
990 data = new wxPyTreeItemData();
991 data->SetId(item); // set the id
992 self->SetItemData(item, data);
993 }
994 return data;
995 }
996 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
997 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
998 if (data == NULL) {
999 data = new wxPyTreeItemData();
1000 data->SetId(item); // set the id
1001 self->SetItemData(item, data);
1002 }
1003 return data->GetData();
1004 }
1005 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1006 data->SetId(item); // set the id
1007 self->SetItemData(item, data);
1008 }
1009 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1010 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1011 if (data == NULL) {
1012 data = new wxPyTreeItemData(obj);
1013 data->SetId(item); // set the id
1014 self->SetItemData(item, data);
1015 } else
1016 data->SetData(obj);
1017 }
1018 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1019 bool blocked = wxPyBeginBlockThreads();
1020 PyObject* rval = PyList_New(0);
1021 wxArrayTreeItemIds array;
1022 size_t num, x;
1023 num = self->GetSelections(array);
1024 for (x=0; x < num; x++) {
1025 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1026 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
1027 PyList_Append(rval, item);
1028 Py_DECREF(item);
1029 }
1030 wxPyEndBlockThreads(blocked);
1031 return rval;
1032 }
1033 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1034 void* cookie = 0;
1035 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1036 bool blocked = wxPyBeginBlockThreads();
1037 PyObject* tup = PyTuple_New(2);
1038 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1039 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1040 wxPyEndBlockThreads(blocked);
1041 return tup;
1042 }
1043 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1044 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1045 bool blocked = wxPyBeginBlockThreads();
1046 PyObject* tup = PyTuple_New(2);
1047 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1048 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1049 wxPyEndBlockThreads(blocked);
1050 return tup;
1051 }
1052 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1053 wxRect rect;
1054 if (self->GetBoundingRect(item, rect, textOnly)) {
1055 bool blocked = wxPyBeginBlockThreads();
1056 wxRect* r = new wxRect(rect);
1057 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
1058 wxPyEndBlockThreads(blocked);
1059 return val;
1060 }
1061 else
1062 RETURN_NONE();
1063 }
1064 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1065
1066 SWIGSTATICINLINE(PyObject*)
1067 SWIG_From_bool(bool value)
1068 {
1069 PyObject *obj = value ? Py_True : Py_False;
1070 Py_INCREF(obj);
1071 return obj;
1072 }
1073
1074
1075 // C++ version of Python aware wxControl
1076 class wxPyControl : public wxControl
1077 {
1078 DECLARE_DYNAMIC_CLASS(wxPyControl)
1079 public:
1080 wxPyControl() : wxControl() {}
1081 wxPyControl(wxWindow* parent, const wxWindowID id,
1082 const wxPoint& pos = wxDefaultPosition,
1083 const wxSize& size = wxDefaultSize,
1084 long style = 0,
1085 const wxValidator& validator=wxDefaultValidator,
1086 const wxString& name = wxPyControlNameStr)
1087 : wxControl(parent, id, pos, size, style, validator, name) {}
1088
1089 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1090
1091 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1092 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1093 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1094 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1095
1096 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1097 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1098 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1099
1100 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1101 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1102
1103 DEC_PYCALLBACK__(InitDialog);
1104 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1105 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1106 DEC_PYCALLBACK_BOOL_(Validate);
1107
1108 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1109 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1110 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1111
1112 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1113 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1114
1115 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1116 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1117 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1118
1119 PYPRIVATE;
1120 };
1121
1122 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1123
1124 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1125 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1126 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1127 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1128
1129 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1130 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1131 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1132
1133 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1134 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1135
1136 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1137 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1138 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1139 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1140
1141 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1142 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1143 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1144
1145 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1146 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1147
1148 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1149 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1150 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1151
1152
1153
1154 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1155
1156 #include <wx/generic/dragimgg.h>
1157
1158 #ifdef __cplusplus
1159 extern "C" {
1160 #endif
1161 static int _wrap_ButtonNameStr_set(PyObject *) {
1162 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1163 return 1;
1164 }
1165
1166
1167 static PyObject *_wrap_ButtonNameStr_get() {
1168 PyObject *pyobj;
1169
1170 {
1171 #if wxUSE_UNICODE
1172 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1173 #else
1174 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1175 #endif
1176 }
1177 return pyobj;
1178 }
1179
1180
1181 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1182 PyObject *resultobj;
1183 wxWindow *arg1 = (wxWindow *) 0 ;
1184 int arg2 = (int) -1 ;
1185 wxString const &arg3_defvalue = wxPyEmptyString ;
1186 wxString *arg3 = (wxString *) &arg3_defvalue ;
1187 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1188 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1189 wxSize const &arg5_defvalue = wxDefaultSize ;
1190 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1191 long arg6 = (long) 0 ;
1192 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1193 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1194 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1195 wxString *arg8 = (wxString *) &arg8_defvalue ;
1196 wxButton *result;
1197 bool temp3 = false ;
1198 wxPoint temp4 ;
1199 wxSize temp5 ;
1200 bool temp8 = false ;
1201 PyObject * obj0 = 0 ;
1202 PyObject * obj1 = 0 ;
1203 PyObject * obj2 = 0 ;
1204 PyObject * obj3 = 0 ;
1205 PyObject * obj4 = 0 ;
1206 PyObject * obj5 = 0 ;
1207 PyObject * obj6 = 0 ;
1208 PyObject * obj7 = 0 ;
1209 char *kwnames[] = {
1210 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1211 };
1212
1213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1216 if (obj1) {
1217 arg2 = (int)SWIG_As_int(obj1);
1218 if (PyErr_Occurred()) SWIG_fail;
1219 }
1220 if (obj2) {
1221 {
1222 arg3 = wxString_in_helper(obj2);
1223 if (arg3 == NULL) SWIG_fail;
1224 temp3 = true;
1225 }
1226 }
1227 if (obj3) {
1228 {
1229 arg4 = &temp4;
1230 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1231 }
1232 }
1233 if (obj4) {
1234 {
1235 arg5 = &temp5;
1236 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1237 }
1238 }
1239 if (obj5) {
1240 arg6 = (long)SWIG_As_long(obj5);
1241 if (PyErr_Occurred()) SWIG_fail;
1242 }
1243 if (obj6) {
1244 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1245 SWIG_POINTER_EXCEPTION | 0)) == -1)
1246 SWIG_fail;
1247 if (arg7 == NULL) {
1248 PyErr_SetString(PyExc_TypeError,"null reference");
1249 SWIG_fail;
1250 }
1251 }
1252 if (obj7) {
1253 {
1254 arg8 = wxString_in_helper(obj7);
1255 if (arg8 == NULL) SWIG_fail;
1256 temp8 = true;
1257 }
1258 }
1259 {
1260 if (!wxPyCheckForApp()) SWIG_fail;
1261 PyThreadState* __tstate = wxPyBeginAllowThreads();
1262 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1263
1264 wxPyEndAllowThreads(__tstate);
1265 if (PyErr_Occurred()) SWIG_fail;
1266 }
1267 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1268 {
1269 if (temp3)
1270 delete arg3;
1271 }
1272 {
1273 if (temp8)
1274 delete arg8;
1275 }
1276 return resultobj;
1277 fail:
1278 {
1279 if (temp3)
1280 delete arg3;
1281 }
1282 {
1283 if (temp8)
1284 delete arg8;
1285 }
1286 return NULL;
1287 }
1288
1289
1290 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1291 PyObject *resultobj;
1292 wxButton *result;
1293 char *kwnames[] = {
1294 NULL
1295 };
1296
1297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1298 {
1299 if (!wxPyCheckForApp()) SWIG_fail;
1300 PyThreadState* __tstate = wxPyBeginAllowThreads();
1301 result = (wxButton *)new wxButton();
1302
1303 wxPyEndAllowThreads(__tstate);
1304 if (PyErr_Occurred()) SWIG_fail;
1305 }
1306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1307 return resultobj;
1308 fail:
1309 return NULL;
1310 }
1311
1312
1313 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1314 PyObject *resultobj;
1315 wxButton *arg1 = (wxButton *) 0 ;
1316 wxWindow *arg2 = (wxWindow *) 0 ;
1317 int arg3 = (int) -1 ;
1318 wxString const &arg4_defvalue = wxPyEmptyString ;
1319 wxString *arg4 = (wxString *) &arg4_defvalue ;
1320 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1321 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1322 wxSize const &arg6_defvalue = wxDefaultSize ;
1323 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1324 long arg7 = (long) 0 ;
1325 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1326 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1327 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1328 wxString *arg9 = (wxString *) &arg9_defvalue ;
1329 bool result;
1330 bool temp4 = false ;
1331 wxPoint temp5 ;
1332 wxSize temp6 ;
1333 bool temp9 = false ;
1334 PyObject * obj0 = 0 ;
1335 PyObject * obj1 = 0 ;
1336 PyObject * obj2 = 0 ;
1337 PyObject * obj3 = 0 ;
1338 PyObject * obj4 = 0 ;
1339 PyObject * obj5 = 0 ;
1340 PyObject * obj6 = 0 ;
1341 PyObject * obj7 = 0 ;
1342 PyObject * obj8 = 0 ;
1343 char *kwnames[] = {
1344 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1345 };
1346
1347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1352 if (obj2) {
1353 arg3 = (int)SWIG_As_int(obj2);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 }
1356 if (obj3) {
1357 {
1358 arg4 = wxString_in_helper(obj3);
1359 if (arg4 == NULL) SWIG_fail;
1360 temp4 = true;
1361 }
1362 }
1363 if (obj4) {
1364 {
1365 arg5 = &temp5;
1366 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1367 }
1368 }
1369 if (obj5) {
1370 {
1371 arg6 = &temp6;
1372 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1373 }
1374 }
1375 if (obj6) {
1376 arg7 = (long)SWIG_As_long(obj6);
1377 if (PyErr_Occurred()) SWIG_fail;
1378 }
1379 if (obj7) {
1380 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1381 SWIG_POINTER_EXCEPTION | 0)) == -1)
1382 SWIG_fail;
1383 if (arg8 == NULL) {
1384 PyErr_SetString(PyExc_TypeError,"null reference");
1385 SWIG_fail;
1386 }
1387 }
1388 if (obj8) {
1389 {
1390 arg9 = wxString_in_helper(obj8);
1391 if (arg9 == NULL) SWIG_fail;
1392 temp9 = true;
1393 }
1394 }
1395 {
1396 PyThreadState* __tstate = wxPyBeginAllowThreads();
1397 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1398
1399 wxPyEndAllowThreads(__tstate);
1400 if (PyErr_Occurred()) SWIG_fail;
1401 }
1402 {
1403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1404 }
1405 {
1406 if (temp4)
1407 delete arg4;
1408 }
1409 {
1410 if (temp9)
1411 delete arg9;
1412 }
1413 return resultobj;
1414 fail:
1415 {
1416 if (temp4)
1417 delete arg4;
1418 }
1419 {
1420 if (temp9)
1421 delete arg9;
1422 }
1423 return NULL;
1424 }
1425
1426
1427 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1428 PyObject *resultobj;
1429 wxButton *arg1 = (wxButton *) 0 ;
1430 PyObject * obj0 = 0 ;
1431 char *kwnames[] = {
1432 (char *) "self", NULL
1433 };
1434
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 (arg1)->SetDefault();
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) SWIG_fail;
1444 }
1445 Py_INCREF(Py_None); resultobj = Py_None;
1446 return resultobj;
1447 fail:
1448 return NULL;
1449 }
1450
1451
1452 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1453 PyObject *resultobj;
1454 wxSize result;
1455 char *kwnames[] = {
1456 NULL
1457 };
1458
1459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1460 {
1461 PyThreadState* __tstate = wxPyBeginAllowThreads();
1462 result = wxButton::GetDefaultSize();
1463
1464 wxPyEndAllowThreads(__tstate);
1465 if (PyErr_Occurred()) SWIG_fail;
1466 }
1467 {
1468 wxSize * resultptr;
1469 resultptr = new wxSize((wxSize &) result);
1470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1471 }
1472 return resultobj;
1473 fail:
1474 return NULL;
1475 }
1476
1477
1478 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1481 wxVisualAttributes result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "variant", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1488 if (obj0) {
1489 arg1 = (int)SWIG_As_int(obj0);
1490 if (PyErr_Occurred()) SWIG_fail;
1491 }
1492 {
1493 if (!wxPyCheckForApp()) SWIG_fail;
1494 PyThreadState* __tstate = wxPyBeginAllowThreads();
1495 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1496
1497 wxPyEndAllowThreads(__tstate);
1498 if (PyErr_Occurred()) SWIG_fail;
1499 }
1500 {
1501 wxVisualAttributes * resultptr;
1502 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1504 }
1505 return resultobj;
1506 fail:
1507 return NULL;
1508 }
1509
1510
1511 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1512 PyObject *obj;
1513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1514 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1515 Py_INCREF(obj);
1516 return Py_BuildValue((char *)"");
1517 }
1518 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1519 PyObject *resultobj;
1520 wxWindow *arg1 = (wxWindow *) 0 ;
1521 int arg2 = (int) -1 ;
1522 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1523 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1524 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1525 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1526 wxSize const &arg5_defvalue = wxDefaultSize ;
1527 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1528 long arg6 = (long) wxBU_AUTODRAW ;
1529 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1530 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1531 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1532 wxString *arg8 = (wxString *) &arg8_defvalue ;
1533 wxBitmapButton *result;
1534 wxPoint temp4 ;
1535 wxSize temp5 ;
1536 bool temp8 = false ;
1537 PyObject * obj0 = 0 ;
1538 PyObject * obj1 = 0 ;
1539 PyObject * obj2 = 0 ;
1540 PyObject * obj3 = 0 ;
1541 PyObject * obj4 = 0 ;
1542 PyObject * obj5 = 0 ;
1543 PyObject * obj6 = 0 ;
1544 PyObject * obj7 = 0 ;
1545 char *kwnames[] = {
1546 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1547 };
1548
1549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1552 if (obj1) {
1553 arg2 = (int)SWIG_As_int(obj1);
1554 if (PyErr_Occurred()) SWIG_fail;
1555 }
1556 if (obj2) {
1557 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1)
1559 SWIG_fail;
1560 if (arg3 == NULL) {
1561 PyErr_SetString(PyExc_TypeError,"null reference");
1562 SWIG_fail;
1563 }
1564 }
1565 if (obj3) {
1566 {
1567 arg4 = &temp4;
1568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1569 }
1570 }
1571 if (obj4) {
1572 {
1573 arg5 = &temp5;
1574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1575 }
1576 }
1577 if (obj5) {
1578 arg6 = (long)SWIG_As_long(obj5);
1579 if (PyErr_Occurred()) SWIG_fail;
1580 }
1581 if (obj6) {
1582 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1583 SWIG_POINTER_EXCEPTION | 0)) == -1)
1584 SWIG_fail;
1585 if (arg7 == NULL) {
1586 PyErr_SetString(PyExc_TypeError,"null reference");
1587 SWIG_fail;
1588 }
1589 }
1590 if (obj7) {
1591 {
1592 arg8 = wxString_in_helper(obj7);
1593 if (arg8 == NULL) SWIG_fail;
1594 temp8 = true;
1595 }
1596 }
1597 {
1598 if (!wxPyCheckForApp()) SWIG_fail;
1599 PyThreadState* __tstate = wxPyBeginAllowThreads();
1600 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1601
1602 wxPyEndAllowThreads(__tstate);
1603 if (PyErr_Occurred()) SWIG_fail;
1604 }
1605 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1606 {
1607 if (temp8)
1608 delete arg8;
1609 }
1610 return resultobj;
1611 fail:
1612 {
1613 if (temp8)
1614 delete arg8;
1615 }
1616 return NULL;
1617 }
1618
1619
1620 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1621 PyObject *resultobj;
1622 wxBitmapButton *result;
1623 char *kwnames[] = {
1624 NULL
1625 };
1626
1627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1628 {
1629 if (!wxPyCheckForApp()) SWIG_fail;
1630 PyThreadState* __tstate = wxPyBeginAllowThreads();
1631 result = (wxBitmapButton *)new wxBitmapButton();
1632
1633 wxPyEndAllowThreads(__tstate);
1634 if (PyErr_Occurred()) SWIG_fail;
1635 }
1636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1637 return resultobj;
1638 fail:
1639 return NULL;
1640 }
1641
1642
1643 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1644 PyObject *resultobj;
1645 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1646 wxWindow *arg2 = (wxWindow *) 0 ;
1647 int arg3 = (int) -1 ;
1648 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1649 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1650 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1651 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1652 wxSize const &arg6_defvalue = wxDefaultSize ;
1653 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1654 long arg7 = (long) wxBU_AUTODRAW ;
1655 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1656 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1657 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1658 wxString *arg9 = (wxString *) &arg9_defvalue ;
1659 bool result;
1660 wxPoint temp5 ;
1661 wxSize temp6 ;
1662 bool temp9 = false ;
1663 PyObject * obj0 = 0 ;
1664 PyObject * obj1 = 0 ;
1665 PyObject * obj2 = 0 ;
1666 PyObject * obj3 = 0 ;
1667 PyObject * obj4 = 0 ;
1668 PyObject * obj5 = 0 ;
1669 PyObject * obj6 = 0 ;
1670 PyObject * obj7 = 0 ;
1671 PyObject * obj8 = 0 ;
1672 char *kwnames[] = {
1673 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1674 };
1675
1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1681 if (obj2) {
1682 arg3 = (int)SWIG_As_int(obj2);
1683 if (PyErr_Occurred()) SWIG_fail;
1684 }
1685 if (obj3) {
1686 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1687 SWIG_POINTER_EXCEPTION | 0)) == -1)
1688 SWIG_fail;
1689 if (arg4 == NULL) {
1690 PyErr_SetString(PyExc_TypeError,"null reference");
1691 SWIG_fail;
1692 }
1693 }
1694 if (obj4) {
1695 {
1696 arg5 = &temp5;
1697 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1698 }
1699 }
1700 if (obj5) {
1701 {
1702 arg6 = &temp6;
1703 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1704 }
1705 }
1706 if (obj6) {
1707 arg7 = (long)SWIG_As_long(obj6);
1708 if (PyErr_Occurred()) SWIG_fail;
1709 }
1710 if (obj7) {
1711 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1712 SWIG_POINTER_EXCEPTION | 0)) == -1)
1713 SWIG_fail;
1714 if (arg8 == NULL) {
1715 PyErr_SetString(PyExc_TypeError,"null reference");
1716 SWIG_fail;
1717 }
1718 }
1719 if (obj8) {
1720 {
1721 arg9 = wxString_in_helper(obj8);
1722 if (arg9 == NULL) SWIG_fail;
1723 temp9 = true;
1724 }
1725 }
1726 {
1727 PyThreadState* __tstate = wxPyBeginAllowThreads();
1728 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1729
1730 wxPyEndAllowThreads(__tstate);
1731 if (PyErr_Occurred()) SWIG_fail;
1732 }
1733 {
1734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1735 }
1736 {
1737 if (temp9)
1738 delete arg9;
1739 }
1740 return resultobj;
1741 fail:
1742 {
1743 if (temp9)
1744 delete arg9;
1745 }
1746 return NULL;
1747 }
1748
1749
1750 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1751 PyObject *resultobj;
1752 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1753 wxBitmap result;
1754 PyObject * obj0 = 0 ;
1755 char *kwnames[] = {
1756 (char *) "self", NULL
1757 };
1758
1759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1762 {
1763 PyThreadState* __tstate = wxPyBeginAllowThreads();
1764 result = (arg1)->GetBitmapLabel();
1765
1766 wxPyEndAllowThreads(__tstate);
1767 if (PyErr_Occurred()) SWIG_fail;
1768 }
1769 {
1770 wxBitmap * resultptr;
1771 resultptr = new wxBitmap((wxBitmap &) result);
1772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1773 }
1774 return resultobj;
1775 fail:
1776 return NULL;
1777 }
1778
1779
1780 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1781 PyObject *resultobj;
1782 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1783 wxBitmap result;
1784 PyObject * obj0 = 0 ;
1785 char *kwnames[] = {
1786 (char *) "self", NULL
1787 };
1788
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1792 {
1793 PyThreadState* __tstate = wxPyBeginAllowThreads();
1794 result = (arg1)->GetBitmapDisabled();
1795
1796 wxPyEndAllowThreads(__tstate);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 {
1800 wxBitmap * resultptr;
1801 resultptr = new wxBitmap((wxBitmap &) result);
1802 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1803 }
1804 return resultobj;
1805 fail:
1806 return NULL;
1807 }
1808
1809
1810 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1811 PyObject *resultobj;
1812 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1813 wxBitmap result;
1814 PyObject * obj0 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "self", NULL
1817 };
1818
1819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1822 {
1823 PyThreadState* __tstate = wxPyBeginAllowThreads();
1824 result = (arg1)->GetBitmapFocus();
1825
1826 wxPyEndAllowThreads(__tstate);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 {
1830 wxBitmap * resultptr;
1831 resultptr = new wxBitmap((wxBitmap &) result);
1832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1833 }
1834 return resultobj;
1835 fail:
1836 return NULL;
1837 }
1838
1839
1840 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1841 PyObject *resultobj;
1842 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1843 wxBitmap result;
1844 PyObject * obj0 = 0 ;
1845 char *kwnames[] = {
1846 (char *) "self", NULL
1847 };
1848
1849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1852 {
1853 PyThreadState* __tstate = wxPyBeginAllowThreads();
1854 result = (arg1)->GetBitmapSelected();
1855
1856 wxPyEndAllowThreads(__tstate);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 {
1860 wxBitmap * resultptr;
1861 resultptr = new wxBitmap((wxBitmap &) result);
1862 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1863 }
1864 return resultobj;
1865 fail:
1866 return NULL;
1867 }
1868
1869
1870 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1871 PyObject *resultobj;
1872 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1873 wxBitmap *arg2 = 0 ;
1874 PyObject * obj0 = 0 ;
1875 PyObject * obj1 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self",(char *) "bitmap", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1883 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1884 SWIG_POINTER_EXCEPTION | 0)) == -1)
1885 SWIG_fail;
1886 if (arg2 == NULL) {
1887 PyErr_SetString(PyExc_TypeError,"null reference");
1888 SWIG_fail;
1889 }
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
1897 Py_INCREF(Py_None); resultobj = Py_None;
1898 return resultobj;
1899 fail:
1900 return NULL;
1901 }
1902
1903
1904 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1907 wxBitmap *arg2 = 0 ;
1908 PyObject * obj0 = 0 ;
1909 PyObject * obj1 = 0 ;
1910 char *kwnames[] = {
1911 (char *) "self",(char *) "bitmap", NULL
1912 };
1913
1914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1918 SWIG_POINTER_EXCEPTION | 0)) == -1)
1919 SWIG_fail;
1920 if (arg2 == NULL) {
1921 PyErr_SetString(PyExc_TypeError,"null reference");
1922 SWIG_fail;
1923 }
1924 {
1925 PyThreadState* __tstate = wxPyBeginAllowThreads();
1926 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1927
1928 wxPyEndAllowThreads(__tstate);
1929 if (PyErr_Occurred()) SWIG_fail;
1930 }
1931 Py_INCREF(Py_None); resultobj = Py_None;
1932 return resultobj;
1933 fail:
1934 return NULL;
1935 }
1936
1937
1938 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1939 PyObject *resultobj;
1940 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1941 wxBitmap *arg2 = 0 ;
1942 PyObject * obj0 = 0 ;
1943 PyObject * obj1 = 0 ;
1944 char *kwnames[] = {
1945 (char *) "self",(char *) "bitmap", NULL
1946 };
1947
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1952 SWIG_POINTER_EXCEPTION | 0)) == -1)
1953 SWIG_fail;
1954 if (arg2 == NULL) {
1955 PyErr_SetString(PyExc_TypeError,"null reference");
1956 SWIG_fail;
1957 }
1958 {
1959 PyThreadState* __tstate = wxPyBeginAllowThreads();
1960 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1961
1962 wxPyEndAllowThreads(__tstate);
1963 if (PyErr_Occurred()) SWIG_fail;
1964 }
1965 Py_INCREF(Py_None); resultobj = Py_None;
1966 return resultobj;
1967 fail:
1968 return NULL;
1969 }
1970
1971
1972 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1973 PyObject *resultobj;
1974 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1975 wxBitmap *arg2 = 0 ;
1976 PyObject * obj0 = 0 ;
1977 PyObject * obj1 = 0 ;
1978 char *kwnames[] = {
1979 (char *) "self",(char *) "bitmap", NULL
1980 };
1981
1982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1986 SWIG_POINTER_EXCEPTION | 0)) == -1)
1987 SWIG_fail;
1988 if (arg2 == NULL) {
1989 PyErr_SetString(PyExc_TypeError,"null reference");
1990 SWIG_fail;
1991 }
1992 {
1993 PyThreadState* __tstate = wxPyBeginAllowThreads();
1994 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1995
1996 wxPyEndAllowThreads(__tstate);
1997 if (PyErr_Occurred()) SWIG_fail;
1998 }
1999 Py_INCREF(Py_None); resultobj = Py_None;
2000 return resultobj;
2001 fail:
2002 return NULL;
2003 }
2004
2005
2006 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2007 PyObject *resultobj;
2008 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2009 int arg2 ;
2010 int arg3 ;
2011 PyObject * obj0 = 0 ;
2012 PyObject * obj1 = 0 ;
2013 PyObject * obj2 = 0 ;
2014 char *kwnames[] = {
2015 (char *) "self",(char *) "x",(char *) "y", NULL
2016 };
2017
2018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2021 arg2 = (int)SWIG_As_int(obj1);
2022 if (PyErr_Occurred()) SWIG_fail;
2023 arg3 = (int)SWIG_As_int(obj2);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 {
2026 PyThreadState* __tstate = wxPyBeginAllowThreads();
2027 (arg1)->SetMargins(arg2,arg3);
2028
2029 wxPyEndAllowThreads(__tstate);
2030 if (PyErr_Occurred()) SWIG_fail;
2031 }
2032 Py_INCREF(Py_None); resultobj = Py_None;
2033 return resultobj;
2034 fail:
2035 return NULL;
2036 }
2037
2038
2039 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2040 PyObject *resultobj;
2041 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2042 int result;
2043 PyObject * obj0 = 0 ;
2044 char *kwnames[] = {
2045 (char *) "self", NULL
2046 };
2047
2048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2051 {
2052 PyThreadState* __tstate = wxPyBeginAllowThreads();
2053 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2054
2055 wxPyEndAllowThreads(__tstate);
2056 if (PyErr_Occurred()) SWIG_fail;
2057 }
2058 resultobj = SWIG_From_int((int)result);
2059 return resultobj;
2060 fail:
2061 return NULL;
2062 }
2063
2064
2065 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2066 PyObject *resultobj;
2067 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2068 int result;
2069 PyObject * obj0 = 0 ;
2070 char *kwnames[] = {
2071 (char *) "self", NULL
2072 };
2073
2074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2077 {
2078 PyThreadState* __tstate = wxPyBeginAllowThreads();
2079 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2080
2081 wxPyEndAllowThreads(__tstate);
2082 if (PyErr_Occurred()) SWIG_fail;
2083 }
2084 resultobj = SWIG_From_int((int)result);
2085 return resultobj;
2086 fail:
2087 return NULL;
2088 }
2089
2090
2091 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2092 PyObject *obj;
2093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2094 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2095 Py_INCREF(obj);
2096 return Py_BuildValue((char *)"");
2097 }
2098 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2099 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2100 return 1;
2101 }
2102
2103
2104 static PyObject *_wrap_CheckBoxNameStr_get() {
2105 PyObject *pyobj;
2106
2107 {
2108 #if wxUSE_UNICODE
2109 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2110 #else
2111 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2112 #endif
2113 }
2114 return pyobj;
2115 }
2116
2117
2118 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxWindow *arg1 = (wxWindow *) 0 ;
2121 int arg2 = (int) -1 ;
2122 wxString const &arg3_defvalue = wxPyEmptyString ;
2123 wxString *arg3 = (wxString *) &arg3_defvalue ;
2124 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2125 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2126 wxSize const &arg5_defvalue = wxDefaultSize ;
2127 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2128 long arg6 = (long) 0 ;
2129 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2130 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2131 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2132 wxString *arg8 = (wxString *) &arg8_defvalue ;
2133 wxCheckBox *result;
2134 bool temp3 = false ;
2135 wxPoint temp4 ;
2136 wxSize temp5 ;
2137 bool temp8 = false ;
2138 PyObject * obj0 = 0 ;
2139 PyObject * obj1 = 0 ;
2140 PyObject * obj2 = 0 ;
2141 PyObject * obj3 = 0 ;
2142 PyObject * obj4 = 0 ;
2143 PyObject * obj5 = 0 ;
2144 PyObject * obj6 = 0 ;
2145 PyObject * obj7 = 0 ;
2146 char *kwnames[] = {
2147 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2148 };
2149
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2153 if (obj1) {
2154 arg2 = (int)SWIG_As_int(obj1);
2155 if (PyErr_Occurred()) SWIG_fail;
2156 }
2157 if (obj2) {
2158 {
2159 arg3 = wxString_in_helper(obj2);
2160 if (arg3 == NULL) SWIG_fail;
2161 temp3 = true;
2162 }
2163 }
2164 if (obj3) {
2165 {
2166 arg4 = &temp4;
2167 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2168 }
2169 }
2170 if (obj4) {
2171 {
2172 arg5 = &temp5;
2173 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2174 }
2175 }
2176 if (obj5) {
2177 arg6 = (long)SWIG_As_long(obj5);
2178 if (PyErr_Occurred()) SWIG_fail;
2179 }
2180 if (obj6) {
2181 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2182 SWIG_POINTER_EXCEPTION | 0)) == -1)
2183 SWIG_fail;
2184 if (arg7 == NULL) {
2185 PyErr_SetString(PyExc_TypeError,"null reference");
2186 SWIG_fail;
2187 }
2188 }
2189 if (obj7) {
2190 {
2191 arg8 = wxString_in_helper(obj7);
2192 if (arg8 == NULL) SWIG_fail;
2193 temp8 = true;
2194 }
2195 }
2196 {
2197 if (!wxPyCheckForApp()) SWIG_fail;
2198 PyThreadState* __tstate = wxPyBeginAllowThreads();
2199 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2200
2201 wxPyEndAllowThreads(__tstate);
2202 if (PyErr_Occurred()) SWIG_fail;
2203 }
2204 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2205 {
2206 if (temp3)
2207 delete arg3;
2208 }
2209 {
2210 if (temp8)
2211 delete arg8;
2212 }
2213 return resultobj;
2214 fail:
2215 {
2216 if (temp3)
2217 delete arg3;
2218 }
2219 {
2220 if (temp8)
2221 delete arg8;
2222 }
2223 return NULL;
2224 }
2225
2226
2227 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2228 PyObject *resultobj;
2229 wxCheckBox *result;
2230 char *kwnames[] = {
2231 NULL
2232 };
2233
2234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2235 {
2236 if (!wxPyCheckForApp()) SWIG_fail;
2237 PyThreadState* __tstate = wxPyBeginAllowThreads();
2238 result = (wxCheckBox *)new wxCheckBox();
2239
2240 wxPyEndAllowThreads(__tstate);
2241 if (PyErr_Occurred()) SWIG_fail;
2242 }
2243 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2244 return resultobj;
2245 fail:
2246 return NULL;
2247 }
2248
2249
2250 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2251 PyObject *resultobj;
2252 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2253 wxWindow *arg2 = (wxWindow *) 0 ;
2254 int arg3 = (int) -1 ;
2255 wxString const &arg4_defvalue = wxPyEmptyString ;
2256 wxString *arg4 = (wxString *) &arg4_defvalue ;
2257 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2258 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2259 wxSize const &arg6_defvalue = wxDefaultSize ;
2260 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2261 long arg7 = (long) 0 ;
2262 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2263 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2264 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2265 wxString *arg9 = (wxString *) &arg9_defvalue ;
2266 bool result;
2267 bool temp4 = false ;
2268 wxPoint temp5 ;
2269 wxSize temp6 ;
2270 bool temp9 = false ;
2271 PyObject * obj0 = 0 ;
2272 PyObject * obj1 = 0 ;
2273 PyObject * obj2 = 0 ;
2274 PyObject * obj3 = 0 ;
2275 PyObject * obj4 = 0 ;
2276 PyObject * obj5 = 0 ;
2277 PyObject * obj6 = 0 ;
2278 PyObject * obj7 = 0 ;
2279 PyObject * obj8 = 0 ;
2280 char *kwnames[] = {
2281 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2282 };
2283
2284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2287 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2288 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2289 if (obj2) {
2290 arg3 = (int)SWIG_As_int(obj2);
2291 if (PyErr_Occurred()) SWIG_fail;
2292 }
2293 if (obj3) {
2294 {
2295 arg4 = wxString_in_helper(obj3);
2296 if (arg4 == NULL) SWIG_fail;
2297 temp4 = true;
2298 }
2299 }
2300 if (obj4) {
2301 {
2302 arg5 = &temp5;
2303 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2304 }
2305 }
2306 if (obj5) {
2307 {
2308 arg6 = &temp6;
2309 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2310 }
2311 }
2312 if (obj6) {
2313 arg7 = (long)SWIG_As_long(obj6);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 if (obj7) {
2317 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2318 SWIG_POINTER_EXCEPTION | 0)) == -1)
2319 SWIG_fail;
2320 if (arg8 == NULL) {
2321 PyErr_SetString(PyExc_TypeError,"null reference");
2322 SWIG_fail;
2323 }
2324 }
2325 if (obj8) {
2326 {
2327 arg9 = wxString_in_helper(obj8);
2328 if (arg9 == NULL) SWIG_fail;
2329 temp9 = true;
2330 }
2331 }
2332 {
2333 PyThreadState* __tstate = wxPyBeginAllowThreads();
2334 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2335
2336 wxPyEndAllowThreads(__tstate);
2337 if (PyErr_Occurred()) SWIG_fail;
2338 }
2339 {
2340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2341 }
2342 {
2343 if (temp4)
2344 delete arg4;
2345 }
2346 {
2347 if (temp9)
2348 delete arg9;
2349 }
2350 return resultobj;
2351 fail:
2352 {
2353 if (temp4)
2354 delete arg4;
2355 }
2356 {
2357 if (temp9)
2358 delete arg9;
2359 }
2360 return NULL;
2361 }
2362
2363
2364 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2367 bool result;
2368 PyObject * obj0 = 0 ;
2369 char *kwnames[] = {
2370 (char *) "self", NULL
2371 };
2372
2373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2376 {
2377 PyThreadState* __tstate = wxPyBeginAllowThreads();
2378 result = (bool)(arg1)->GetValue();
2379
2380 wxPyEndAllowThreads(__tstate);
2381 if (PyErr_Occurred()) SWIG_fail;
2382 }
2383 {
2384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2385 }
2386 return resultobj;
2387 fail:
2388 return NULL;
2389 }
2390
2391
2392 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2393 PyObject *resultobj;
2394 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2395 bool result;
2396 PyObject * obj0 = 0 ;
2397 char *kwnames[] = {
2398 (char *) "self", NULL
2399 };
2400
2401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2404 {
2405 PyThreadState* __tstate = wxPyBeginAllowThreads();
2406 result = (bool)(arg1)->IsChecked();
2407
2408 wxPyEndAllowThreads(__tstate);
2409 if (PyErr_Occurred()) SWIG_fail;
2410 }
2411 {
2412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2413 }
2414 return resultobj;
2415 fail:
2416 return NULL;
2417 }
2418
2419
2420 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2421 PyObject *resultobj;
2422 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2423 bool arg2 ;
2424 PyObject * obj0 = 0 ;
2425 PyObject * obj1 = 0 ;
2426 char *kwnames[] = {
2427 (char *) "self",(char *) "state", NULL
2428 };
2429
2430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2433 arg2 = (bool)SWIG_As_bool(obj1);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 (arg1)->SetValue(arg2);
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 Py_INCREF(Py_None); resultobj = Py_None;
2443 return resultobj;
2444 fail:
2445 return NULL;
2446 }
2447
2448
2449 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2450 PyObject *resultobj;
2451 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2452 int result;
2453 PyObject * obj0 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "self", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2461 {
2462 PyThreadState* __tstate = wxPyBeginAllowThreads();
2463 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2464
2465 wxPyEndAllowThreads(__tstate);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 resultobj = SWIG_From_int((int)result);
2469 return resultobj;
2470 fail:
2471 return NULL;
2472 }
2473
2474
2475 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2476 PyObject *resultobj;
2477 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2478 int arg2 ;
2479 PyObject * obj0 = 0 ;
2480 PyObject * obj1 = 0 ;
2481 char *kwnames[] = {
2482 (char *) "self",(char *) "state", NULL
2483 };
2484
2485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2488 arg2 = (int)SWIG_As_int(obj1);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 Py_INCREF(Py_None); resultobj = Py_None;
2498 return resultobj;
2499 fail:
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2507 bool result;
2508 PyObject * obj0 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 {
2524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2525 }
2526 return resultobj;
2527 fail:
2528 return NULL;
2529 }
2530
2531
2532 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2533 PyObject *resultobj;
2534 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2535 bool result;
2536 PyObject * obj0 = 0 ;
2537 char *kwnames[] = {
2538 (char *) "self", NULL
2539 };
2540
2541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2544 {
2545 PyThreadState* __tstate = wxPyBeginAllowThreads();
2546 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2547
2548 wxPyEndAllowThreads(__tstate);
2549 if (PyErr_Occurred()) SWIG_fail;
2550 }
2551 {
2552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2553 }
2554 return resultobj;
2555 fail:
2556 return NULL;
2557 }
2558
2559
2560 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2561 PyObject *resultobj;
2562 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2563 wxVisualAttributes result;
2564 PyObject * obj0 = 0 ;
2565 char *kwnames[] = {
2566 (char *) "variant", NULL
2567 };
2568
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2570 if (obj0) {
2571 arg1 = (int)SWIG_As_int(obj0);
2572 if (PyErr_Occurred()) SWIG_fail;
2573 }
2574 {
2575 if (!wxPyCheckForApp()) SWIG_fail;
2576 PyThreadState* __tstate = wxPyBeginAllowThreads();
2577 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2578
2579 wxPyEndAllowThreads(__tstate);
2580 if (PyErr_Occurred()) SWIG_fail;
2581 }
2582 {
2583 wxVisualAttributes * resultptr;
2584 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2585 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2586 }
2587 return resultobj;
2588 fail:
2589 return NULL;
2590 }
2591
2592
2593 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2594 PyObject *obj;
2595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2596 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2597 Py_INCREF(obj);
2598 return Py_BuildValue((char *)"");
2599 }
2600 static int _wrap_ChoiceNameStr_set(PyObject *) {
2601 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2602 return 1;
2603 }
2604
2605
2606 static PyObject *_wrap_ChoiceNameStr_get() {
2607 PyObject *pyobj;
2608
2609 {
2610 #if wxUSE_UNICODE
2611 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2612 #else
2613 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2614 #endif
2615 }
2616 return pyobj;
2617 }
2618
2619
2620 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2621 PyObject *resultobj;
2622 wxWindow *arg1 = (wxWindow *) 0 ;
2623 int arg2 = (int) -1 ;
2624 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2625 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2626 wxSize const &arg4_defvalue = wxDefaultSize ;
2627 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2628 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2629 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2630 long arg6 = (long) 0 ;
2631 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2632 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2633 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2634 wxString *arg8 = (wxString *) &arg8_defvalue ;
2635 wxChoice *result;
2636 wxPoint temp3 ;
2637 wxSize temp4 ;
2638 bool temp5 = false ;
2639 bool temp8 = false ;
2640 PyObject * obj0 = 0 ;
2641 PyObject * obj1 = 0 ;
2642 PyObject * obj2 = 0 ;
2643 PyObject * obj3 = 0 ;
2644 PyObject * obj4 = 0 ;
2645 PyObject * obj5 = 0 ;
2646 PyObject * obj6 = 0 ;
2647 PyObject * obj7 = 0 ;
2648 char *kwnames[] = {
2649 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2650 };
2651
2652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2655 if (obj1) {
2656 arg2 = (int)SWIG_As_int(obj1);
2657 if (PyErr_Occurred()) SWIG_fail;
2658 }
2659 if (obj2) {
2660 {
2661 arg3 = &temp3;
2662 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2663 }
2664 }
2665 if (obj3) {
2666 {
2667 arg4 = &temp4;
2668 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2669 }
2670 }
2671 if (obj4) {
2672 {
2673 if (! PySequence_Check(obj4)) {
2674 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2675 SWIG_fail;
2676 }
2677 arg5 = new wxArrayString;
2678 temp5 = true;
2679 int i, len=PySequence_Length(obj4);
2680 for (i=0; i<len; i++) {
2681 PyObject* item = PySequence_GetItem(obj4, i);
2682 #if wxUSE_UNICODE
2683 PyObject* str = PyObject_Unicode(item);
2684 #else
2685 PyObject* str = PyObject_Str(item);
2686 #endif
2687 if (PyErr_Occurred()) SWIG_fail;
2688 arg5->Add(Py2wxString(str));
2689 Py_DECREF(item);
2690 Py_DECREF(str);
2691 }
2692 }
2693 }
2694 if (obj5) {
2695 arg6 = (long)SWIG_As_long(obj5);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 if (obj6) {
2699 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2700 SWIG_POINTER_EXCEPTION | 0)) == -1)
2701 SWIG_fail;
2702 if (arg7 == NULL) {
2703 PyErr_SetString(PyExc_TypeError,"null reference");
2704 SWIG_fail;
2705 }
2706 }
2707 if (obj7) {
2708 {
2709 arg8 = wxString_in_helper(obj7);
2710 if (arg8 == NULL) SWIG_fail;
2711 temp8 = true;
2712 }
2713 }
2714 {
2715 if (!wxPyCheckForApp()) SWIG_fail;
2716 PyThreadState* __tstate = wxPyBeginAllowThreads();
2717 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2718
2719 wxPyEndAllowThreads(__tstate);
2720 if (PyErr_Occurred()) SWIG_fail;
2721 }
2722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2723 {
2724 if (temp5) delete arg5;
2725 }
2726 {
2727 if (temp8)
2728 delete arg8;
2729 }
2730 return resultobj;
2731 fail:
2732 {
2733 if (temp5) delete arg5;
2734 }
2735 {
2736 if (temp8)
2737 delete arg8;
2738 }
2739 return NULL;
2740 }
2741
2742
2743 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2744 PyObject *resultobj;
2745 wxChoice *result;
2746 char *kwnames[] = {
2747 NULL
2748 };
2749
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2751 {
2752 if (!wxPyCheckForApp()) SWIG_fail;
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 result = (wxChoice *)new wxChoice();
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2760 return resultobj;
2761 fail:
2762 return NULL;
2763 }
2764
2765
2766 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2767 PyObject *resultobj;
2768 wxChoice *arg1 = (wxChoice *) 0 ;
2769 wxWindow *arg2 = (wxWindow *) 0 ;
2770 int arg3 = (int) -1 ;
2771 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2772 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2773 wxSize const &arg5_defvalue = wxDefaultSize ;
2774 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2775 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2776 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2777 long arg7 = (long) 0 ;
2778 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2779 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2780 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2781 wxString *arg9 = (wxString *) &arg9_defvalue ;
2782 bool result;
2783 wxPoint temp4 ;
2784 wxSize temp5 ;
2785 bool temp6 = false ;
2786 bool temp9 = false ;
2787 PyObject * obj0 = 0 ;
2788 PyObject * obj1 = 0 ;
2789 PyObject * obj2 = 0 ;
2790 PyObject * obj3 = 0 ;
2791 PyObject * obj4 = 0 ;
2792 PyObject * obj5 = 0 ;
2793 PyObject * obj6 = 0 ;
2794 PyObject * obj7 = 0 ;
2795 PyObject * obj8 = 0 ;
2796 char *kwnames[] = {
2797 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2798 };
2799
2800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2805 if (obj2) {
2806 arg3 = (int)SWIG_As_int(obj2);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 if (obj3) {
2810 {
2811 arg4 = &temp4;
2812 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2813 }
2814 }
2815 if (obj4) {
2816 {
2817 arg5 = &temp5;
2818 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2819 }
2820 }
2821 if (obj5) {
2822 {
2823 if (! PySequence_Check(obj5)) {
2824 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2825 SWIG_fail;
2826 }
2827 arg6 = new wxArrayString;
2828 temp6 = true;
2829 int i, len=PySequence_Length(obj5);
2830 for (i=0; i<len; i++) {
2831 PyObject* item = PySequence_GetItem(obj5, i);
2832 #if wxUSE_UNICODE
2833 PyObject* str = PyObject_Unicode(item);
2834 #else
2835 PyObject* str = PyObject_Str(item);
2836 #endif
2837 if (PyErr_Occurred()) SWIG_fail;
2838 arg6->Add(Py2wxString(str));
2839 Py_DECREF(item);
2840 Py_DECREF(str);
2841 }
2842 }
2843 }
2844 if (obj6) {
2845 arg7 = (long)SWIG_As_long(obj6);
2846 if (PyErr_Occurred()) SWIG_fail;
2847 }
2848 if (obj7) {
2849 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2850 SWIG_POINTER_EXCEPTION | 0)) == -1)
2851 SWIG_fail;
2852 if (arg8 == NULL) {
2853 PyErr_SetString(PyExc_TypeError,"null reference");
2854 SWIG_fail;
2855 }
2856 }
2857 if (obj8) {
2858 {
2859 arg9 = wxString_in_helper(obj8);
2860 if (arg9 == NULL) SWIG_fail;
2861 temp9 = true;
2862 }
2863 }
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 {
2872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2873 }
2874 {
2875 if (temp6) delete arg6;
2876 }
2877 {
2878 if (temp9)
2879 delete arg9;
2880 }
2881 return resultobj;
2882 fail:
2883 {
2884 if (temp6) delete arg6;
2885 }
2886 {
2887 if (temp9)
2888 delete arg9;
2889 }
2890 return NULL;
2891 }
2892
2893
2894 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2895 PyObject *resultobj;
2896 wxChoice *arg1 = (wxChoice *) 0 ;
2897 int arg2 ;
2898 PyObject * obj0 = 0 ;
2899 PyObject * obj1 = 0 ;
2900 char *kwnames[] = {
2901 (char *) "self",(char *) "n", NULL
2902 };
2903
2904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2907 arg2 = (int)SWIG_As_int(obj1);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 {
2910 PyThreadState* __tstate = wxPyBeginAllowThreads();
2911 (arg1)->SetSelection(arg2);
2912
2913 wxPyEndAllowThreads(__tstate);
2914 if (PyErr_Occurred()) SWIG_fail;
2915 }
2916 Py_INCREF(Py_None); resultobj = Py_None;
2917 return resultobj;
2918 fail:
2919 return NULL;
2920 }
2921
2922
2923 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2924 PyObject *resultobj;
2925 wxChoice *arg1 = (wxChoice *) 0 ;
2926 wxString *arg2 = 0 ;
2927 bool result;
2928 bool temp2 = false ;
2929 PyObject * obj0 = 0 ;
2930 PyObject * obj1 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "self",(char *) "string", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2938 {
2939 arg2 = wxString_in_helper(obj1);
2940 if (arg2 == NULL) SWIG_fail;
2941 temp2 = true;
2942 }
2943 {
2944 PyThreadState* __tstate = wxPyBeginAllowThreads();
2945 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2946
2947 wxPyEndAllowThreads(__tstate);
2948 if (PyErr_Occurred()) SWIG_fail;
2949 }
2950 {
2951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2952 }
2953 {
2954 if (temp2)
2955 delete arg2;
2956 }
2957 return resultobj;
2958 fail:
2959 {
2960 if (temp2)
2961 delete arg2;
2962 }
2963 return NULL;
2964 }
2965
2966
2967 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2968 PyObject *resultobj;
2969 wxChoice *arg1 = (wxChoice *) 0 ;
2970 int arg2 ;
2971 wxString *arg3 = 0 ;
2972 bool temp3 = false ;
2973 PyObject * obj0 = 0 ;
2974 PyObject * obj1 = 0 ;
2975 PyObject * obj2 = 0 ;
2976 char *kwnames[] = {
2977 (char *) "self",(char *) "n",(char *) "string", NULL
2978 };
2979
2980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2983 arg2 = (int)SWIG_As_int(obj1);
2984 if (PyErr_Occurred()) SWIG_fail;
2985 {
2986 arg3 = wxString_in_helper(obj2);
2987 if (arg3 == NULL) SWIG_fail;
2988 temp3 = true;
2989 }
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 (arg1)->SetString(arg2,(wxString const &)*arg3);
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 Py_INCREF(Py_None); resultobj = Py_None;
2998 {
2999 if (temp3)
3000 delete arg3;
3001 }
3002 return resultobj;
3003 fail:
3004 {
3005 if (temp3)
3006 delete arg3;
3007 }
3008 return NULL;
3009 }
3010
3011
3012 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3013 PyObject *resultobj;
3014 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3015 wxVisualAttributes result;
3016 PyObject * obj0 = 0 ;
3017 char *kwnames[] = {
3018 (char *) "variant", NULL
3019 };
3020
3021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3022 if (obj0) {
3023 arg1 = (int)SWIG_As_int(obj0);
3024 if (PyErr_Occurred()) SWIG_fail;
3025 }
3026 {
3027 if (!wxPyCheckForApp()) SWIG_fail;
3028 PyThreadState* __tstate = wxPyBeginAllowThreads();
3029 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3030
3031 wxPyEndAllowThreads(__tstate);
3032 if (PyErr_Occurred()) SWIG_fail;
3033 }
3034 {
3035 wxVisualAttributes * resultptr;
3036 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3038 }
3039 return resultobj;
3040 fail:
3041 return NULL;
3042 }
3043
3044
3045 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3046 PyObject *obj;
3047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3048 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3049 Py_INCREF(obj);
3050 return Py_BuildValue((char *)"");
3051 }
3052 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3053 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3054 return 1;
3055 }
3056
3057
3058 static PyObject *_wrap_ComboBoxNameStr_get() {
3059 PyObject *pyobj;
3060
3061 {
3062 #if wxUSE_UNICODE
3063 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3064 #else
3065 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3066 #endif
3067 }
3068 return pyobj;
3069 }
3070
3071
3072 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3073 PyObject *resultobj;
3074 wxWindow *arg1 = (wxWindow *) 0 ;
3075 int arg2 = (int) -1 ;
3076 wxString const &arg3_defvalue = wxPyEmptyString ;
3077 wxString *arg3 = (wxString *) &arg3_defvalue ;
3078 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3079 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3080 wxSize const &arg5_defvalue = wxDefaultSize ;
3081 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3082 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3083 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3084 long arg7 = (long) 0 ;
3085 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3086 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3087 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3088 wxString *arg9 = (wxString *) &arg9_defvalue ;
3089 wxComboBox *result;
3090 bool temp3 = false ;
3091 wxPoint temp4 ;
3092 wxSize temp5 ;
3093 bool temp6 = false ;
3094 bool temp9 = false ;
3095 PyObject * obj0 = 0 ;
3096 PyObject * obj1 = 0 ;
3097 PyObject * obj2 = 0 ;
3098 PyObject * obj3 = 0 ;
3099 PyObject * obj4 = 0 ;
3100 PyObject * obj5 = 0 ;
3101 PyObject * obj6 = 0 ;
3102 PyObject * obj7 = 0 ;
3103 PyObject * obj8 = 0 ;
3104 char *kwnames[] = {
3105 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3106 };
3107
3108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3111 if (obj1) {
3112 arg2 = (int)SWIG_As_int(obj1);
3113 if (PyErr_Occurred()) SWIG_fail;
3114 }
3115 if (obj2) {
3116 {
3117 arg3 = wxString_in_helper(obj2);
3118 if (arg3 == NULL) SWIG_fail;
3119 temp3 = true;
3120 }
3121 }
3122 if (obj3) {
3123 {
3124 arg4 = &temp4;
3125 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3126 }
3127 }
3128 if (obj4) {
3129 {
3130 arg5 = &temp5;
3131 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3132 }
3133 }
3134 if (obj5) {
3135 {
3136 if (! PySequence_Check(obj5)) {
3137 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3138 SWIG_fail;
3139 }
3140 arg6 = new wxArrayString;
3141 temp6 = true;
3142 int i, len=PySequence_Length(obj5);
3143 for (i=0; i<len; i++) {
3144 PyObject* item = PySequence_GetItem(obj5, i);
3145 #if wxUSE_UNICODE
3146 PyObject* str = PyObject_Unicode(item);
3147 #else
3148 PyObject* str = PyObject_Str(item);
3149 #endif
3150 if (PyErr_Occurred()) SWIG_fail;
3151 arg6->Add(Py2wxString(str));
3152 Py_DECREF(item);
3153 Py_DECREF(str);
3154 }
3155 }
3156 }
3157 if (obj6) {
3158 arg7 = (long)SWIG_As_long(obj6);
3159 if (PyErr_Occurred()) SWIG_fail;
3160 }
3161 if (obj7) {
3162 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3163 SWIG_POINTER_EXCEPTION | 0)) == -1)
3164 SWIG_fail;
3165 if (arg8 == NULL) {
3166 PyErr_SetString(PyExc_TypeError,"null reference");
3167 SWIG_fail;
3168 }
3169 }
3170 if (obj8) {
3171 {
3172 arg9 = wxString_in_helper(obj8);
3173 if (arg9 == NULL) SWIG_fail;
3174 temp9 = true;
3175 }
3176 }
3177 {
3178 if (!wxPyCheckForApp()) SWIG_fail;
3179 PyThreadState* __tstate = wxPyBeginAllowThreads();
3180 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);
3181
3182 wxPyEndAllowThreads(__tstate);
3183 if (PyErr_Occurred()) SWIG_fail;
3184 }
3185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3186 {
3187 if (temp3)
3188 delete arg3;
3189 }
3190 {
3191 if (temp6) delete arg6;
3192 }
3193 {
3194 if (temp9)
3195 delete arg9;
3196 }
3197 return resultobj;
3198 fail:
3199 {
3200 if (temp3)
3201 delete arg3;
3202 }
3203 {
3204 if (temp6) delete arg6;
3205 }
3206 {
3207 if (temp9)
3208 delete arg9;
3209 }
3210 return NULL;
3211 }
3212
3213
3214 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3215 PyObject *resultobj;
3216 wxComboBox *result;
3217 char *kwnames[] = {
3218 NULL
3219 };
3220
3221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3222 {
3223 if (!wxPyCheckForApp()) SWIG_fail;
3224 PyThreadState* __tstate = wxPyBeginAllowThreads();
3225 result = (wxComboBox *)new wxComboBox();
3226
3227 wxPyEndAllowThreads(__tstate);
3228 if (PyErr_Occurred()) SWIG_fail;
3229 }
3230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxComboBox *arg1 = (wxComboBox *) 0 ;
3240 wxWindow *arg2 = (wxWindow *) 0 ;
3241 int arg3 = (int) -1 ;
3242 wxString const &arg4_defvalue = wxPyEmptyString ;
3243 wxString *arg4 = (wxString *) &arg4_defvalue ;
3244 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3245 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3246 wxSize const &arg6_defvalue = wxDefaultSize ;
3247 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3248 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3249 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3250 long arg8 = (long) 0 ;
3251 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3252 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3253 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3254 wxString *arg10 = (wxString *) &arg10_defvalue ;
3255 bool result;
3256 bool temp4 = false ;
3257 wxPoint temp5 ;
3258 wxSize temp6 ;
3259 bool temp7 = false ;
3260 bool temp10 = false ;
3261 PyObject * obj0 = 0 ;
3262 PyObject * obj1 = 0 ;
3263 PyObject * obj2 = 0 ;
3264 PyObject * obj3 = 0 ;
3265 PyObject * obj4 = 0 ;
3266 PyObject * obj5 = 0 ;
3267 PyObject * obj6 = 0 ;
3268 PyObject * obj7 = 0 ;
3269 PyObject * obj8 = 0 ;
3270 PyObject * obj9 = 0 ;
3271 char *kwnames[] = {
3272 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3273 };
3274
3275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3280 if (obj2) {
3281 arg3 = (int)SWIG_As_int(obj2);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 if (obj3) {
3285 {
3286 arg4 = wxString_in_helper(obj3);
3287 if (arg4 == NULL) SWIG_fail;
3288 temp4 = true;
3289 }
3290 }
3291 if (obj4) {
3292 {
3293 arg5 = &temp5;
3294 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3295 }
3296 }
3297 if (obj5) {
3298 {
3299 arg6 = &temp6;
3300 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3301 }
3302 }
3303 if (obj6) {
3304 {
3305 if (! PySequence_Check(obj6)) {
3306 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3307 SWIG_fail;
3308 }
3309 arg7 = new wxArrayString;
3310 temp7 = true;
3311 int i, len=PySequence_Length(obj6);
3312 for (i=0; i<len; i++) {
3313 PyObject* item = PySequence_GetItem(obj6, i);
3314 #if wxUSE_UNICODE
3315 PyObject* str = PyObject_Unicode(item);
3316 #else
3317 PyObject* str = PyObject_Str(item);
3318 #endif
3319 if (PyErr_Occurred()) SWIG_fail;
3320 arg7->Add(Py2wxString(str));
3321 Py_DECREF(item);
3322 Py_DECREF(str);
3323 }
3324 }
3325 }
3326 if (obj7) {
3327 arg8 = (long)SWIG_As_long(obj7);
3328 if (PyErr_Occurred()) SWIG_fail;
3329 }
3330 if (obj8) {
3331 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3332 SWIG_POINTER_EXCEPTION | 0)) == -1)
3333 SWIG_fail;
3334 if (arg9 == NULL) {
3335 PyErr_SetString(PyExc_TypeError,"null reference");
3336 SWIG_fail;
3337 }
3338 }
3339 if (obj9) {
3340 {
3341 arg10 = wxString_in_helper(obj9);
3342 if (arg10 == NULL) SWIG_fail;
3343 temp10 = true;
3344 }
3345 }
3346 {
3347 PyThreadState* __tstate = wxPyBeginAllowThreads();
3348 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);
3349
3350 wxPyEndAllowThreads(__tstate);
3351 if (PyErr_Occurred()) SWIG_fail;
3352 }
3353 {
3354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3355 }
3356 {
3357 if (temp4)
3358 delete arg4;
3359 }
3360 {
3361 if (temp7) delete arg7;
3362 }
3363 {
3364 if (temp10)
3365 delete arg10;
3366 }
3367 return resultobj;
3368 fail:
3369 {
3370 if (temp4)
3371 delete arg4;
3372 }
3373 {
3374 if (temp7) delete arg7;
3375 }
3376 {
3377 if (temp10)
3378 delete arg10;
3379 }
3380 return NULL;
3381 }
3382
3383
3384 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3385 PyObject *resultobj;
3386 wxComboBox *arg1 = (wxComboBox *) 0 ;
3387 wxString result;
3388 PyObject * obj0 = 0 ;
3389 char *kwnames[] = {
3390 (char *) "self", NULL
3391 };
3392
3393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 result = ((wxComboBox const *)arg1)->GetValue();
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
3403 {
3404 #if wxUSE_UNICODE
3405 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3406 #else
3407 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3408 #endif
3409 }
3410 return resultobj;
3411 fail:
3412 return NULL;
3413 }
3414
3415
3416 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3417 PyObject *resultobj;
3418 wxComboBox *arg1 = (wxComboBox *) 0 ;
3419 wxString *arg2 = 0 ;
3420 bool temp2 = false ;
3421 PyObject * obj0 = 0 ;
3422 PyObject * obj1 = 0 ;
3423 char *kwnames[] = {
3424 (char *) "self",(char *) "value", NULL
3425 };
3426
3427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3430 {
3431 arg2 = wxString_in_helper(obj1);
3432 if (arg2 == NULL) SWIG_fail;
3433 temp2 = true;
3434 }
3435 {
3436 PyThreadState* __tstate = wxPyBeginAllowThreads();
3437 (arg1)->SetValue((wxString const &)*arg2);
3438
3439 wxPyEndAllowThreads(__tstate);
3440 if (PyErr_Occurred()) SWIG_fail;
3441 }
3442 Py_INCREF(Py_None); resultobj = Py_None;
3443 {
3444 if (temp2)
3445 delete arg2;
3446 }
3447 return resultobj;
3448 fail:
3449 {
3450 if (temp2)
3451 delete arg2;
3452 }
3453 return NULL;
3454 }
3455
3456
3457 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3458 PyObject *resultobj;
3459 wxComboBox *arg1 = (wxComboBox *) 0 ;
3460 PyObject * obj0 = 0 ;
3461 char *kwnames[] = {
3462 (char *) "self", NULL
3463 };
3464
3465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3468 {
3469 PyThreadState* __tstate = wxPyBeginAllowThreads();
3470 (arg1)->Copy();
3471
3472 wxPyEndAllowThreads(__tstate);
3473 if (PyErr_Occurred()) SWIG_fail;
3474 }
3475 Py_INCREF(Py_None); resultobj = Py_None;
3476 return resultobj;
3477 fail:
3478 return NULL;
3479 }
3480
3481
3482 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3483 PyObject *resultobj;
3484 wxComboBox *arg1 = (wxComboBox *) 0 ;
3485 PyObject * obj0 = 0 ;
3486 char *kwnames[] = {
3487 (char *) "self", NULL
3488 };
3489
3490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3493 {
3494 PyThreadState* __tstate = wxPyBeginAllowThreads();
3495 (arg1)->Cut();
3496
3497 wxPyEndAllowThreads(__tstate);
3498 if (PyErr_Occurred()) SWIG_fail;
3499 }
3500 Py_INCREF(Py_None); resultobj = Py_None;
3501 return resultobj;
3502 fail:
3503 return NULL;
3504 }
3505
3506
3507 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3508 PyObject *resultobj;
3509 wxComboBox *arg1 = (wxComboBox *) 0 ;
3510 PyObject * obj0 = 0 ;
3511 char *kwnames[] = {
3512 (char *) "self", NULL
3513 };
3514
3515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3518 {
3519 PyThreadState* __tstate = wxPyBeginAllowThreads();
3520 (arg1)->Paste();
3521
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 Py_INCREF(Py_None); resultobj = Py_None;
3526 return resultobj;
3527 fail:
3528 return NULL;
3529 }
3530
3531
3532 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3533 PyObject *resultobj;
3534 wxComboBox *arg1 = (wxComboBox *) 0 ;
3535 long arg2 ;
3536 PyObject * obj0 = 0 ;
3537 PyObject * obj1 = 0 ;
3538 char *kwnames[] = {
3539 (char *) "self",(char *) "pos", NULL
3540 };
3541
3542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3545 arg2 = (long)SWIG_As_long(obj1);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 (arg1)->SetInsertionPoint(arg2);
3550
3551 wxPyEndAllowThreads(__tstate);
3552 if (PyErr_Occurred()) SWIG_fail;
3553 }
3554 Py_INCREF(Py_None); resultobj = Py_None;
3555 return resultobj;
3556 fail:
3557 return NULL;
3558 }
3559
3560
3561 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3562 PyObject *resultobj;
3563 wxComboBox *arg1 = (wxComboBox *) 0 ;
3564 long result;
3565 PyObject * obj0 = 0 ;
3566 char *kwnames[] = {
3567 (char *) "self", NULL
3568 };
3569
3570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) SWIG_fail;
3579 }
3580 resultobj = SWIG_From_long((long)result);
3581 return resultobj;
3582 fail:
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxComboBox *arg1 = (wxComboBox *) 0 ;
3590 long result;
3591 PyObject * obj0 = 0 ;
3592 char *kwnames[] = {
3593 (char *) "self", NULL
3594 };
3595
3596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3599 {
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3602
3603 wxPyEndAllowThreads(__tstate);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 resultobj = SWIG_From_long((long)result);
3607 return resultobj;
3608 fail:
3609 return NULL;
3610 }
3611
3612
3613 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj;
3615 wxComboBox *arg1 = (wxComboBox *) 0 ;
3616 long arg2 ;
3617 long arg3 ;
3618 wxString *arg4 = 0 ;
3619 bool temp4 = false ;
3620 PyObject * obj0 = 0 ;
3621 PyObject * obj1 = 0 ;
3622 PyObject * obj2 = 0 ;
3623 PyObject * obj3 = 0 ;
3624 char *kwnames[] = {
3625 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3626 };
3627
3628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3631 arg2 = (long)SWIG_As_long(obj1);
3632 if (PyErr_Occurred()) SWIG_fail;
3633 arg3 = (long)SWIG_As_long(obj2);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 {
3636 arg4 = wxString_in_helper(obj3);
3637 if (arg4 == NULL) SWIG_fail;
3638 temp4 = true;
3639 }
3640 {
3641 PyThreadState* __tstate = wxPyBeginAllowThreads();
3642 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3643
3644 wxPyEndAllowThreads(__tstate);
3645 if (PyErr_Occurred()) SWIG_fail;
3646 }
3647 Py_INCREF(Py_None); resultobj = Py_None;
3648 {
3649 if (temp4)
3650 delete arg4;
3651 }
3652 return resultobj;
3653 fail:
3654 {
3655 if (temp4)
3656 delete arg4;
3657 }
3658 return NULL;
3659 }
3660
3661
3662 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3663 PyObject *resultobj;
3664 wxComboBox *arg1 = (wxComboBox *) 0 ;
3665 int arg2 ;
3666 PyObject * obj0 = 0 ;
3667 PyObject * obj1 = 0 ;
3668 char *kwnames[] = {
3669 (char *) "self",(char *) "n", NULL
3670 };
3671
3672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3675 arg2 = (int)SWIG_As_int(obj1);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 {
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 (arg1)->SetSelection(arg2);
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 Py_INCREF(Py_None); resultobj = Py_None;
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3692 PyObject *resultobj;
3693 wxComboBox *arg1 = (wxComboBox *) 0 ;
3694 long arg2 ;
3695 long arg3 ;
3696 PyObject * obj0 = 0 ;
3697 PyObject * obj1 = 0 ;
3698 PyObject * obj2 = 0 ;
3699 char *kwnames[] = {
3700 (char *) "self",(char *) "from",(char *) "to", NULL
3701 };
3702
3703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3706 arg2 = (long)SWIG_As_long(obj1);
3707 if (PyErr_Occurred()) SWIG_fail;
3708 arg3 = (long)SWIG_As_long(obj2);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 {
3711 PyThreadState* __tstate = wxPyBeginAllowThreads();
3712 (arg1)->SetSelection(arg2,arg3);
3713
3714 wxPyEndAllowThreads(__tstate);
3715 if (PyErr_Occurred()) SWIG_fail;
3716 }
3717 Py_INCREF(Py_None); resultobj = Py_None;
3718 return resultobj;
3719 fail:
3720 return NULL;
3721 }
3722
3723
3724 static PyObject *_wrap_ComboBox_GetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 wxComboBox *arg1 = (wxComboBox *) 0 ;
3727 long *arg2 = (long *) 0 ;
3728 long *arg3 = (long *) 0 ;
3729 long temp2 ;
3730 int res2 = 0 ;
3731 long temp3 ;
3732 int res3 = 0 ;
3733 PyObject * obj0 = 0 ;
3734 char *kwnames[] = {
3735 (char *) "self", NULL
3736 };
3737
3738 arg2 = &temp2; res2 = SWIG_NEWOBJ;
3739 arg3 = &temp3; res3 = SWIG_NEWOBJ;
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetMark",kwnames,&obj0)) goto fail;
3741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 (arg1)->GetSelection(arg2,arg3);
3746
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 Py_INCREF(Py_None); resultobj = Py_None;
3751 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
3752 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
3753 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
3754 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
3755 return resultobj;
3756 fail:
3757 return NULL;
3758 }
3759
3760
3761 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3762 PyObject *resultobj;
3763 wxComboBox *arg1 = (wxComboBox *) 0 ;
3764 wxString *arg2 = 0 ;
3765 bool result;
3766 bool temp2 = false ;
3767 PyObject * obj0 = 0 ;
3768 PyObject * obj1 = 0 ;
3769 char *kwnames[] = {
3770 (char *) "self",(char *) "string", NULL
3771 };
3772
3773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3776 {
3777 arg2 = wxString_in_helper(obj1);
3778 if (arg2 == NULL) SWIG_fail;
3779 temp2 = true;
3780 }
3781 {
3782 PyThreadState* __tstate = wxPyBeginAllowThreads();
3783 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3784
3785 wxPyEndAllowThreads(__tstate);
3786 if (PyErr_Occurred()) SWIG_fail;
3787 }
3788 {
3789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3790 }
3791 {
3792 if (temp2)
3793 delete arg2;
3794 }
3795 return resultobj;
3796 fail:
3797 {
3798 if (temp2)
3799 delete arg2;
3800 }
3801 return NULL;
3802 }
3803
3804
3805 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3806 PyObject *resultobj;
3807 wxComboBox *arg1 = (wxComboBox *) 0 ;
3808 int arg2 ;
3809 wxString *arg3 = 0 ;
3810 bool temp3 = false ;
3811 PyObject * obj0 = 0 ;
3812 PyObject * obj1 = 0 ;
3813 PyObject * obj2 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "self",(char *) "n",(char *) "string", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3821 arg2 = (int)SWIG_As_int(obj1);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 {
3824 arg3 = wxString_in_helper(obj2);
3825 if (arg3 == NULL) SWIG_fail;
3826 temp3 = true;
3827 }
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 (arg1)->SetString(arg2,(wxString const &)*arg3);
3831
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 Py_INCREF(Py_None); resultobj = Py_None;
3836 {
3837 if (temp3)
3838 delete arg3;
3839 }
3840 return resultobj;
3841 fail:
3842 {
3843 if (temp3)
3844 delete arg3;
3845 }
3846 return NULL;
3847 }
3848
3849
3850 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3851 PyObject *resultobj;
3852 wxComboBox *arg1 = (wxComboBox *) 0 ;
3853 bool arg2 ;
3854 PyObject * obj0 = 0 ;
3855 PyObject * obj1 = 0 ;
3856 char *kwnames[] = {
3857 (char *) "self",(char *) "editable", NULL
3858 };
3859
3860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3863 arg2 = (bool)SWIG_As_bool(obj1);
3864 if (PyErr_Occurred()) SWIG_fail;
3865 {
3866 PyThreadState* __tstate = wxPyBeginAllowThreads();
3867 (arg1)->SetEditable(arg2);
3868
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 Py_INCREF(Py_None); resultobj = Py_None;
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 wxComboBox *arg1 = (wxComboBox *) 0 ;
3882 PyObject * obj0 = 0 ;
3883 char *kwnames[] = {
3884 (char *) "self", NULL
3885 };
3886
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3890 {
3891 PyThreadState* __tstate = wxPyBeginAllowThreads();
3892 (arg1)->SetInsertionPointEnd();
3893
3894 wxPyEndAllowThreads(__tstate);
3895 if (PyErr_Occurred()) SWIG_fail;
3896 }
3897 Py_INCREF(Py_None); resultobj = Py_None;
3898 return resultobj;
3899 fail:
3900 return NULL;
3901 }
3902
3903
3904 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3905 PyObject *resultobj;
3906 wxComboBox *arg1 = (wxComboBox *) 0 ;
3907 long arg2 ;
3908 long arg3 ;
3909 PyObject * obj0 = 0 ;
3910 PyObject * obj1 = 0 ;
3911 PyObject * obj2 = 0 ;
3912 char *kwnames[] = {
3913 (char *) "self",(char *) "from",(char *) "to", NULL
3914 };
3915
3916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3919 arg2 = (long)SWIG_As_long(obj1);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 arg3 = (long)SWIG_As_long(obj2);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 (arg1)->Remove(arg2,arg3);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 return resultobj;
3932 fail:
3933 return NULL;
3934 }
3935
3936
3937 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3940 wxVisualAttributes result;
3941 PyObject * obj0 = 0 ;
3942 char *kwnames[] = {
3943 (char *) "variant", NULL
3944 };
3945
3946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3947 if (obj0) {
3948 arg1 = (int)SWIG_As_int(obj0);
3949 if (PyErr_Occurred()) SWIG_fail;
3950 }
3951 {
3952 if (!wxPyCheckForApp()) SWIG_fail;
3953 PyThreadState* __tstate = wxPyBeginAllowThreads();
3954 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3955
3956 wxPyEndAllowThreads(__tstate);
3957 if (PyErr_Occurred()) SWIG_fail;
3958 }
3959 {
3960 wxVisualAttributes * resultptr;
3961 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3962 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3963 }
3964 return resultobj;
3965 fail:
3966 return NULL;
3967 }
3968
3969
3970 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3971 PyObject *obj;
3972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3973 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3974 Py_INCREF(obj);
3975 return Py_BuildValue((char *)"");
3976 }
3977 static int _wrap_GaugeNameStr_set(PyObject *) {
3978 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3979 return 1;
3980 }
3981
3982
3983 static PyObject *_wrap_GaugeNameStr_get() {
3984 PyObject *pyobj;
3985
3986 {
3987 #if wxUSE_UNICODE
3988 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3989 #else
3990 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3991 #endif
3992 }
3993 return pyobj;
3994 }
3995
3996
3997 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxWindow *arg1 = (wxWindow *) 0 ;
4000 int arg2 = (int) -1 ;
4001 int arg3 = (int) 100 ;
4002 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4003 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4004 wxSize const &arg5_defvalue = wxDefaultSize ;
4005 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4006 long arg6 = (long) wxGA_HORIZONTAL ;
4007 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4008 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4009 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
4010 wxString *arg8 = (wxString *) &arg8_defvalue ;
4011 wxGauge *result;
4012 wxPoint temp4 ;
4013 wxSize temp5 ;
4014 bool temp8 = false ;
4015 PyObject * obj0 = 0 ;
4016 PyObject * obj1 = 0 ;
4017 PyObject * obj2 = 0 ;
4018 PyObject * obj3 = 0 ;
4019 PyObject * obj4 = 0 ;
4020 PyObject * obj5 = 0 ;
4021 PyObject * obj6 = 0 ;
4022 PyObject * obj7 = 0 ;
4023 char *kwnames[] = {
4024 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4025 };
4026
4027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4030 if (obj1) {
4031 arg2 = (int)SWIG_As_int(obj1);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 if (obj2) {
4035 arg3 = (int)SWIG_As_int(obj2);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 if (obj3) {
4039 {
4040 arg4 = &temp4;
4041 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4042 }
4043 }
4044 if (obj4) {
4045 {
4046 arg5 = &temp5;
4047 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4048 }
4049 }
4050 if (obj5) {
4051 arg6 = (long)SWIG_As_long(obj5);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 if (obj6) {
4055 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4056 SWIG_POINTER_EXCEPTION | 0)) == -1)
4057 SWIG_fail;
4058 if (arg7 == NULL) {
4059 PyErr_SetString(PyExc_TypeError,"null reference");
4060 SWIG_fail;
4061 }
4062 }
4063 if (obj7) {
4064 {
4065 arg8 = wxString_in_helper(obj7);
4066 if (arg8 == NULL) SWIG_fail;
4067 temp8 = true;
4068 }
4069 }
4070 {
4071 if (!wxPyCheckForApp()) SWIG_fail;
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4079 {
4080 if (temp8)
4081 delete arg8;
4082 }
4083 return resultobj;
4084 fail:
4085 {
4086 if (temp8)
4087 delete arg8;
4088 }
4089 return NULL;
4090 }
4091
4092
4093 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4094 PyObject *resultobj;
4095 wxGauge *result;
4096 char *kwnames[] = {
4097 NULL
4098 };
4099
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4101 {
4102 if (!wxPyCheckForApp()) SWIG_fail;
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 result = (wxGauge *)new wxGauge();
4105
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4110 return resultobj;
4111 fail:
4112 return NULL;
4113 }
4114
4115
4116 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4117 PyObject *resultobj;
4118 wxGauge *arg1 = (wxGauge *) 0 ;
4119 wxWindow *arg2 = (wxWindow *) 0 ;
4120 int arg3 = (int) -1 ;
4121 int arg4 = (int) 100 ;
4122 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4123 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4124 wxSize const &arg6_defvalue = wxDefaultSize ;
4125 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4126 long arg7 = (long) wxGA_HORIZONTAL ;
4127 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4128 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4129 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4130 wxString *arg9 = (wxString *) &arg9_defvalue ;
4131 bool result;
4132 wxPoint temp5 ;
4133 wxSize temp6 ;
4134 bool temp9 = false ;
4135 PyObject * obj0 = 0 ;
4136 PyObject * obj1 = 0 ;
4137 PyObject * obj2 = 0 ;
4138 PyObject * obj3 = 0 ;
4139 PyObject * obj4 = 0 ;
4140 PyObject * obj5 = 0 ;
4141 PyObject * obj6 = 0 ;
4142 PyObject * obj7 = 0 ;
4143 PyObject * obj8 = 0 ;
4144 char *kwnames[] = {
4145 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4146 };
4147
4148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4153 if (obj2) {
4154 arg3 = (int)SWIG_As_int(obj2);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 if (obj3) {
4158 arg4 = (int)SWIG_As_int(obj3);
4159 if (PyErr_Occurred()) SWIG_fail;
4160 }
4161 if (obj4) {
4162 {
4163 arg5 = &temp5;
4164 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4165 }
4166 }
4167 if (obj5) {
4168 {
4169 arg6 = &temp6;
4170 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4171 }
4172 }
4173 if (obj6) {
4174 arg7 = (long)SWIG_As_long(obj6);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 if (obj7) {
4178 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4179 SWIG_POINTER_EXCEPTION | 0)) == -1)
4180 SWIG_fail;
4181 if (arg8 == NULL) {
4182 PyErr_SetString(PyExc_TypeError,"null reference");
4183 SWIG_fail;
4184 }
4185 }
4186 if (obj8) {
4187 {
4188 arg9 = wxString_in_helper(obj8);
4189 if (arg9 == NULL) SWIG_fail;
4190 temp9 = true;
4191 }
4192 }
4193 {
4194 PyThreadState* __tstate = wxPyBeginAllowThreads();
4195 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4196
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 {
4201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4202 }
4203 {
4204 if (temp9)
4205 delete arg9;
4206 }
4207 return resultobj;
4208 fail:
4209 {
4210 if (temp9)
4211 delete arg9;
4212 }
4213 return NULL;
4214 }
4215
4216
4217 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4218 PyObject *resultobj;
4219 wxGauge *arg1 = (wxGauge *) 0 ;
4220 int arg2 ;
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 char *kwnames[] = {
4224 (char *) "self",(char *) "range", NULL
4225 };
4226
4227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4230 arg2 = (int)SWIG_As_int(obj1);
4231 if (PyErr_Occurred()) SWIG_fail;
4232 {
4233 PyThreadState* __tstate = wxPyBeginAllowThreads();
4234 (arg1)->SetRange(arg2);
4235
4236 wxPyEndAllowThreads(__tstate);
4237 if (PyErr_Occurred()) SWIG_fail;
4238 }
4239 Py_INCREF(Py_None); resultobj = Py_None;
4240 return resultobj;
4241 fail:
4242 return NULL;
4243 }
4244
4245
4246 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4247 PyObject *resultobj;
4248 wxGauge *arg1 = (wxGauge *) 0 ;
4249 int result;
4250 PyObject * obj0 = 0 ;
4251 char *kwnames[] = {
4252 (char *) "self", NULL
4253 };
4254
4255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 result = (int)((wxGauge const *)arg1)->GetRange();
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_From_int((int)result);
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4273 PyObject *resultobj;
4274 wxGauge *arg1 = (wxGauge *) 0 ;
4275 int arg2 ;
4276 PyObject * obj0 = 0 ;
4277 PyObject * obj1 = 0 ;
4278 char *kwnames[] = {
4279 (char *) "self",(char *) "pos", NULL
4280 };
4281
4282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4285 arg2 = (int)SWIG_As_int(obj1);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 (arg1)->SetValue(arg2);
4290
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 Py_INCREF(Py_None); resultobj = Py_None;
4295 return resultobj;
4296 fail:
4297 return NULL;
4298 }
4299
4300
4301 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4302 PyObject *resultobj;
4303 wxGauge *arg1 = (wxGauge *) 0 ;
4304 int result;
4305 PyObject * obj0 = 0 ;
4306 char *kwnames[] = {
4307 (char *) "self", NULL
4308 };
4309
4310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4313 {
4314 PyThreadState* __tstate = wxPyBeginAllowThreads();
4315 result = (int)((wxGauge const *)arg1)->GetValue();
4316
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 resultobj = SWIG_From_int((int)result);
4321 return resultobj;
4322 fail:
4323 return NULL;
4324 }
4325
4326
4327 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj;
4329 wxGauge *arg1 = (wxGauge *) 0 ;
4330 bool result;
4331 PyObject * obj0 = 0 ;
4332 char *kwnames[] = {
4333 (char *) "self", NULL
4334 };
4335
4336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4339 {
4340 PyThreadState* __tstate = wxPyBeginAllowThreads();
4341 result = (bool)((wxGauge const *)arg1)->IsVertical();
4342
4343 wxPyEndAllowThreads(__tstate);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 {
4347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4348 }
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj;
4357 wxGauge *arg1 = (wxGauge *) 0 ;
4358 int arg2 ;
4359 PyObject * obj0 = 0 ;
4360 PyObject * obj1 = 0 ;
4361 char *kwnames[] = {
4362 (char *) "self",(char *) "w", NULL
4363 };
4364
4365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4368 arg2 = (int)SWIG_As_int(obj1);
4369 if (PyErr_Occurred()) SWIG_fail;
4370 {
4371 PyThreadState* __tstate = wxPyBeginAllowThreads();
4372 (arg1)->SetShadowWidth(arg2);
4373
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 Py_INCREF(Py_None); resultobj = Py_None;
4378 return resultobj;
4379 fail:
4380 return NULL;
4381 }
4382
4383
4384 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4385 PyObject *resultobj;
4386 wxGauge *arg1 = (wxGauge *) 0 ;
4387 int result;
4388 PyObject * obj0 = 0 ;
4389 char *kwnames[] = {
4390 (char *) "self", NULL
4391 };
4392
4393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4396 {
4397 PyThreadState* __tstate = wxPyBeginAllowThreads();
4398 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4399
4400 wxPyEndAllowThreads(__tstate);
4401 if (PyErr_Occurred()) SWIG_fail;
4402 }
4403 resultobj = SWIG_From_int((int)result);
4404 return resultobj;
4405 fail:
4406 return NULL;
4407 }
4408
4409
4410 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4411 PyObject *resultobj;
4412 wxGauge *arg1 = (wxGauge *) 0 ;
4413 int arg2 ;
4414 PyObject * obj0 = 0 ;
4415 PyObject * obj1 = 0 ;
4416 char *kwnames[] = {
4417 (char *) "self",(char *) "w", NULL
4418 };
4419
4420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4423 arg2 = (int)SWIG_As_int(obj1);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 (arg1)->SetBezelFace(arg2);
4428
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 Py_INCREF(Py_None); resultobj = Py_None;
4433 return resultobj;
4434 fail:
4435 return NULL;
4436 }
4437
4438
4439 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4440 PyObject *resultobj;
4441 wxGauge *arg1 = (wxGauge *) 0 ;
4442 int result;
4443 PyObject * obj0 = 0 ;
4444 char *kwnames[] = {
4445 (char *) "self", NULL
4446 };
4447
4448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4451 {
4452 PyThreadState* __tstate = wxPyBeginAllowThreads();
4453 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4454
4455 wxPyEndAllowThreads(__tstate);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 resultobj = SWIG_From_int((int)result);
4459 return resultobj;
4460 fail:
4461 return NULL;
4462 }
4463
4464
4465 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4466 PyObject *resultobj;
4467 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4468 wxVisualAttributes result;
4469 PyObject * obj0 = 0 ;
4470 char *kwnames[] = {
4471 (char *) "variant", NULL
4472 };
4473
4474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4475 if (obj0) {
4476 arg1 = (int)SWIG_As_int(obj0);
4477 if (PyErr_Occurred()) SWIG_fail;
4478 }
4479 {
4480 if (!wxPyCheckForApp()) SWIG_fail;
4481 PyThreadState* __tstate = wxPyBeginAllowThreads();
4482 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4483
4484 wxPyEndAllowThreads(__tstate);
4485 if (PyErr_Occurred()) SWIG_fail;
4486 }
4487 {
4488 wxVisualAttributes * resultptr;
4489 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4490 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4491 }
4492 return resultobj;
4493 fail:
4494 return NULL;
4495 }
4496
4497
4498 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4499 PyObject *obj;
4500 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4501 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4502 Py_INCREF(obj);
4503 return Py_BuildValue((char *)"");
4504 }
4505 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4506 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4507 return 1;
4508 }
4509
4510
4511 static PyObject *_wrap_StaticBitmapNameStr_get() {
4512 PyObject *pyobj;
4513
4514 {
4515 #if wxUSE_UNICODE
4516 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4517 #else
4518 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4519 #endif
4520 }
4521 return pyobj;
4522 }
4523
4524
4525 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4526 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4527 return 1;
4528 }
4529
4530
4531 static PyObject *_wrap_StaticBoxNameStr_get() {
4532 PyObject *pyobj;
4533
4534 {
4535 #if wxUSE_UNICODE
4536 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4537 #else
4538 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4539 #endif
4540 }
4541 return pyobj;
4542 }
4543
4544
4545 static int _wrap_StaticTextNameStr_set(PyObject *) {
4546 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4547 return 1;
4548 }
4549
4550
4551 static PyObject *_wrap_StaticTextNameStr_get() {
4552 PyObject *pyobj;
4553
4554 {
4555 #if wxUSE_UNICODE
4556 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4557 #else
4558 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4559 #endif
4560 }
4561 return pyobj;
4562 }
4563
4564
4565 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxWindow *arg1 = (wxWindow *) 0 ;
4568 int arg2 = (int) -1 ;
4569 wxString const &arg3_defvalue = wxPyEmptyString ;
4570 wxString *arg3 = (wxString *) &arg3_defvalue ;
4571 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4572 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4573 wxSize const &arg5_defvalue = wxDefaultSize ;
4574 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4575 long arg6 = (long) 0 ;
4576 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4577 wxString *arg7 = (wxString *) &arg7_defvalue ;
4578 wxStaticBox *result;
4579 bool temp3 = false ;
4580 wxPoint temp4 ;
4581 wxSize temp5 ;
4582 bool temp7 = false ;
4583 PyObject * obj0 = 0 ;
4584 PyObject * obj1 = 0 ;
4585 PyObject * obj2 = 0 ;
4586 PyObject * obj3 = 0 ;
4587 PyObject * obj4 = 0 ;
4588 PyObject * obj5 = 0 ;
4589 PyObject * obj6 = 0 ;
4590 char *kwnames[] = {
4591 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4592 };
4593
4594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4597 if (obj1) {
4598 arg2 = (int)SWIG_As_int(obj1);
4599 if (PyErr_Occurred()) SWIG_fail;
4600 }
4601 if (obj2) {
4602 {
4603 arg3 = wxString_in_helper(obj2);
4604 if (arg3 == NULL) SWIG_fail;
4605 temp3 = true;
4606 }
4607 }
4608 if (obj3) {
4609 {
4610 arg4 = &temp4;
4611 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4612 }
4613 }
4614 if (obj4) {
4615 {
4616 arg5 = &temp5;
4617 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4618 }
4619 }
4620 if (obj5) {
4621 arg6 = (long)SWIG_As_long(obj5);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 if (obj6) {
4625 {
4626 arg7 = wxString_in_helper(obj6);
4627 if (arg7 == NULL) SWIG_fail;
4628 temp7 = true;
4629 }
4630 }
4631 {
4632 if (!wxPyCheckForApp()) SWIG_fail;
4633 PyThreadState* __tstate = wxPyBeginAllowThreads();
4634 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4635
4636 wxPyEndAllowThreads(__tstate);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4640 {
4641 if (temp3)
4642 delete arg3;
4643 }
4644 {
4645 if (temp7)
4646 delete arg7;
4647 }
4648 return resultobj;
4649 fail:
4650 {
4651 if (temp3)
4652 delete arg3;
4653 }
4654 {
4655 if (temp7)
4656 delete arg7;
4657 }
4658 return NULL;
4659 }
4660
4661
4662 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4663 PyObject *resultobj;
4664 wxStaticBox *result;
4665 char *kwnames[] = {
4666 NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4670 {
4671 if (!wxPyCheckForApp()) SWIG_fail;
4672 PyThreadState* __tstate = wxPyBeginAllowThreads();
4673 result = (wxStaticBox *)new wxStaticBox();
4674
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4679 return resultobj;
4680 fail:
4681 return NULL;
4682 }
4683
4684
4685 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4686 PyObject *resultobj;
4687 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4688 wxWindow *arg2 = (wxWindow *) 0 ;
4689 int arg3 = (int) -1 ;
4690 wxString const &arg4_defvalue = wxPyEmptyString ;
4691 wxString *arg4 = (wxString *) &arg4_defvalue ;
4692 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4693 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4694 wxSize const &arg6_defvalue = wxDefaultSize ;
4695 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4696 long arg7 = (long) 0 ;
4697 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4698 wxString *arg8 = (wxString *) &arg8_defvalue ;
4699 bool result;
4700 bool temp4 = false ;
4701 wxPoint temp5 ;
4702 wxSize temp6 ;
4703 bool temp8 = false ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 PyObject * obj2 = 0 ;
4707 PyObject * obj3 = 0 ;
4708 PyObject * obj4 = 0 ;
4709 PyObject * obj5 = 0 ;
4710 PyObject * obj6 = 0 ;
4711 PyObject * obj7 = 0 ;
4712 char *kwnames[] = {
4713 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4714 };
4715
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4719 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4721 if (obj2) {
4722 arg3 = (int)SWIG_As_int(obj2);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 }
4725 if (obj3) {
4726 {
4727 arg4 = wxString_in_helper(obj3);
4728 if (arg4 == NULL) SWIG_fail;
4729 temp4 = true;
4730 }
4731 }
4732 if (obj4) {
4733 {
4734 arg5 = &temp5;
4735 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4736 }
4737 }
4738 if (obj5) {
4739 {
4740 arg6 = &temp6;
4741 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4742 }
4743 }
4744 if (obj6) {
4745 arg7 = (long)SWIG_As_long(obj6);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 if (obj7) {
4749 {
4750 arg8 = wxString_in_helper(obj7);
4751 if (arg8 == NULL) SWIG_fail;
4752 temp8 = true;
4753 }
4754 }
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4758
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 {
4763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4764 }
4765 {
4766 if (temp4)
4767 delete arg4;
4768 }
4769 {
4770 if (temp8)
4771 delete arg8;
4772 }
4773 return resultobj;
4774 fail:
4775 {
4776 if (temp4)
4777 delete arg4;
4778 }
4779 {
4780 if (temp8)
4781 delete arg8;
4782 }
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4790 wxVisualAttributes result;
4791 PyObject * obj0 = 0 ;
4792 char *kwnames[] = {
4793 (char *) "variant", NULL
4794 };
4795
4796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4797 if (obj0) {
4798 arg1 = (int)SWIG_As_int(obj0);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 }
4801 {
4802 if (!wxPyCheckForApp()) SWIG_fail;
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4805
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 {
4810 wxVisualAttributes * resultptr;
4811 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4812 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4813 }
4814 return resultobj;
4815 fail:
4816 return NULL;
4817 }
4818
4819
4820 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4821 PyObject *obj;
4822 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4823 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4824 Py_INCREF(obj);
4825 return Py_BuildValue((char *)"");
4826 }
4827 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4828 PyObject *resultobj;
4829 wxWindow *arg1 = (wxWindow *) 0 ;
4830 int arg2 = (int) -1 ;
4831 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4832 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4833 wxSize const &arg4_defvalue = wxDefaultSize ;
4834 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4835 long arg5 = (long) wxLI_HORIZONTAL ;
4836 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4837 wxString *arg6 = (wxString *) &arg6_defvalue ;
4838 wxStaticLine *result;
4839 wxPoint temp3 ;
4840 wxSize temp4 ;
4841 bool temp6 = false ;
4842 PyObject * obj0 = 0 ;
4843 PyObject * obj1 = 0 ;
4844 PyObject * obj2 = 0 ;
4845 PyObject * obj3 = 0 ;
4846 PyObject * obj4 = 0 ;
4847 PyObject * obj5 = 0 ;
4848 char *kwnames[] = {
4849 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4850 };
4851
4852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4855 if (obj1) {
4856 arg2 = (int)SWIG_As_int(obj1);
4857 if (PyErr_Occurred()) SWIG_fail;
4858 }
4859 if (obj2) {
4860 {
4861 arg3 = &temp3;
4862 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4863 }
4864 }
4865 if (obj3) {
4866 {
4867 arg4 = &temp4;
4868 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4869 }
4870 }
4871 if (obj4) {
4872 arg5 = (long)SWIG_As_long(obj4);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 if (obj5) {
4876 {
4877 arg6 = wxString_in_helper(obj5);
4878 if (arg6 == NULL) SWIG_fail;
4879 temp6 = true;
4880 }
4881 }
4882 {
4883 if (!wxPyCheckForApp()) SWIG_fail;
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4891 {
4892 if (temp6)
4893 delete arg6;
4894 }
4895 return resultobj;
4896 fail:
4897 {
4898 if (temp6)
4899 delete arg6;
4900 }
4901 return NULL;
4902 }
4903
4904
4905 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4906 PyObject *resultobj;
4907 wxStaticLine *result;
4908 char *kwnames[] = {
4909 NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4913 {
4914 if (!wxPyCheckForApp()) SWIG_fail;
4915 PyThreadState* __tstate = wxPyBeginAllowThreads();
4916 result = (wxStaticLine *)new wxStaticLine();
4917
4918 wxPyEndAllowThreads(__tstate);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4922 return resultobj;
4923 fail:
4924 return NULL;
4925 }
4926
4927
4928 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4929 PyObject *resultobj;
4930 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4931 wxWindow *arg2 = (wxWindow *) 0 ;
4932 int arg3 = (int) -1 ;
4933 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4934 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4935 wxSize const &arg5_defvalue = wxDefaultSize ;
4936 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4937 long arg6 = (long) wxLI_HORIZONTAL ;
4938 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4939 wxString *arg7 = (wxString *) &arg7_defvalue ;
4940 bool result;
4941 wxPoint temp4 ;
4942 wxSize temp5 ;
4943 bool temp7 = false ;
4944 PyObject * obj0 = 0 ;
4945 PyObject * obj1 = 0 ;
4946 PyObject * obj2 = 0 ;
4947 PyObject * obj3 = 0 ;
4948 PyObject * obj4 = 0 ;
4949 PyObject * obj5 = 0 ;
4950 PyObject * obj6 = 0 ;
4951 char *kwnames[] = {
4952 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4953 };
4954
4955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4958 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4960 if (obj2) {
4961 arg3 = (int)SWIG_As_int(obj2);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 if (obj3) {
4965 {
4966 arg4 = &temp4;
4967 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4968 }
4969 }
4970 if (obj4) {
4971 {
4972 arg5 = &temp5;
4973 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4974 }
4975 }
4976 if (obj5) {
4977 arg6 = (long)SWIG_As_long(obj5);
4978 if (PyErr_Occurred()) SWIG_fail;
4979 }
4980 if (obj6) {
4981 {
4982 arg7 = wxString_in_helper(obj6);
4983 if (arg7 == NULL) SWIG_fail;
4984 temp7 = true;
4985 }
4986 }
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 {
4995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4996 }
4997 {
4998 if (temp7)
4999 delete arg7;
5000 }
5001 return resultobj;
5002 fail:
5003 {
5004 if (temp7)
5005 delete arg7;
5006 }
5007 return NULL;
5008 }
5009
5010
5011 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
5012 PyObject *resultobj;
5013 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
5014 bool result;
5015 PyObject * obj0 = 0 ;
5016 char *kwnames[] = {
5017 (char *) "self", NULL
5018 };
5019
5020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
5021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
5022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5023 {
5024 PyThreadState* __tstate = wxPyBeginAllowThreads();
5025 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
5026
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 }
5030 {
5031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5032 }
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 int result;
5042 char *kwnames[] = {
5043 NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 result = (int)wxStaticLine::GetDefaultSize();
5050
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_From_int((int)result);
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5064 wxVisualAttributes result;
5065 PyObject * obj0 = 0 ;
5066 char *kwnames[] = {
5067 (char *) "variant", NULL
5068 };
5069
5070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5071 if (obj0) {
5072 arg1 = (int)SWIG_As_int(obj0);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 {
5076 if (!wxPyCheckForApp()) SWIG_fail;
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5079
5080 wxPyEndAllowThreads(__tstate);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 {
5084 wxVisualAttributes * resultptr;
5085 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5087 }
5088 return resultobj;
5089 fail:
5090 return NULL;
5091 }
5092
5093
5094 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5095 PyObject *obj;
5096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5097 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5098 Py_INCREF(obj);
5099 return Py_BuildValue((char *)"");
5100 }
5101 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj;
5103 wxWindow *arg1 = (wxWindow *) 0 ;
5104 int arg2 = (int) -1 ;
5105 wxString const &arg3_defvalue = wxPyEmptyString ;
5106 wxString *arg3 = (wxString *) &arg3_defvalue ;
5107 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5108 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5109 wxSize const &arg5_defvalue = wxDefaultSize ;
5110 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5111 long arg6 = (long) 0 ;
5112 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5113 wxString *arg7 = (wxString *) &arg7_defvalue ;
5114 wxStaticText *result;
5115 bool temp3 = false ;
5116 wxPoint temp4 ;
5117 wxSize temp5 ;
5118 bool temp7 = false ;
5119 PyObject * obj0 = 0 ;
5120 PyObject * obj1 = 0 ;
5121 PyObject * obj2 = 0 ;
5122 PyObject * obj3 = 0 ;
5123 PyObject * obj4 = 0 ;
5124 PyObject * obj5 = 0 ;
5125 PyObject * obj6 = 0 ;
5126 char *kwnames[] = {
5127 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5128 };
5129
5130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5133 if (obj1) {
5134 arg2 = (int)SWIG_As_int(obj1);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 if (obj2) {
5138 {
5139 arg3 = wxString_in_helper(obj2);
5140 if (arg3 == NULL) SWIG_fail;
5141 temp3 = true;
5142 }
5143 }
5144 if (obj3) {
5145 {
5146 arg4 = &temp4;
5147 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5148 }
5149 }
5150 if (obj4) {
5151 {
5152 arg5 = &temp5;
5153 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5154 }
5155 }
5156 if (obj5) {
5157 arg6 = (long)SWIG_As_long(obj5);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 if (obj6) {
5161 {
5162 arg7 = wxString_in_helper(obj6);
5163 if (arg7 == NULL) SWIG_fail;
5164 temp7 = true;
5165 }
5166 }
5167 {
5168 if (!wxPyCheckForApp()) SWIG_fail;
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5176 {
5177 if (temp3)
5178 delete arg3;
5179 }
5180 {
5181 if (temp7)
5182 delete arg7;
5183 }
5184 return resultobj;
5185 fail:
5186 {
5187 if (temp3)
5188 delete arg3;
5189 }
5190 {
5191 if (temp7)
5192 delete arg7;
5193 }
5194 return NULL;
5195 }
5196
5197
5198 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5199 PyObject *resultobj;
5200 wxStaticText *result;
5201 char *kwnames[] = {
5202 NULL
5203 };
5204
5205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5206 {
5207 if (!wxPyCheckForApp()) SWIG_fail;
5208 PyThreadState* __tstate = wxPyBeginAllowThreads();
5209 result = (wxStaticText *)new wxStaticText();
5210
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5215 return resultobj;
5216 fail:
5217 return NULL;
5218 }
5219
5220
5221 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5222 PyObject *resultobj;
5223 wxStaticText *arg1 = (wxStaticText *) 0 ;
5224 wxWindow *arg2 = (wxWindow *) 0 ;
5225 int arg3 = (int) -1 ;
5226 wxString const &arg4_defvalue = wxPyEmptyString ;
5227 wxString *arg4 = (wxString *) &arg4_defvalue ;
5228 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5229 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5230 wxSize const &arg6_defvalue = wxDefaultSize ;
5231 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5232 long arg7 = (long) 0 ;
5233 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5234 wxString *arg8 = (wxString *) &arg8_defvalue ;
5235 bool result;
5236 bool temp4 = false ;
5237 wxPoint temp5 ;
5238 wxSize temp6 ;
5239 bool temp8 = false ;
5240 PyObject * obj0 = 0 ;
5241 PyObject * obj1 = 0 ;
5242 PyObject * obj2 = 0 ;
5243 PyObject * obj3 = 0 ;
5244 PyObject * obj4 = 0 ;
5245 PyObject * obj5 = 0 ;
5246 PyObject * obj6 = 0 ;
5247 PyObject * obj7 = 0 ;
5248 char *kwnames[] = {
5249 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5250 };
5251
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5257 if (obj2) {
5258 arg3 = (int)SWIG_As_int(obj2);
5259 if (PyErr_Occurred()) SWIG_fail;
5260 }
5261 if (obj3) {
5262 {
5263 arg4 = wxString_in_helper(obj3);
5264 if (arg4 == NULL) SWIG_fail;
5265 temp4 = true;
5266 }
5267 }
5268 if (obj4) {
5269 {
5270 arg5 = &temp5;
5271 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5272 }
5273 }
5274 if (obj5) {
5275 {
5276 arg6 = &temp6;
5277 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5278 }
5279 }
5280 if (obj6) {
5281 arg7 = (long)SWIG_As_long(obj6);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 if (obj7) {
5285 {
5286 arg8 = wxString_in_helper(obj7);
5287 if (arg8 == NULL) SWIG_fail;
5288 temp8 = true;
5289 }
5290 }
5291 {
5292 PyThreadState* __tstate = wxPyBeginAllowThreads();
5293 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5294
5295 wxPyEndAllowThreads(__tstate);
5296 if (PyErr_Occurred()) SWIG_fail;
5297 }
5298 {
5299 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5300 }
5301 {
5302 if (temp4)
5303 delete arg4;
5304 }
5305 {
5306 if (temp8)
5307 delete arg8;
5308 }
5309 return resultobj;
5310 fail:
5311 {
5312 if (temp4)
5313 delete arg4;
5314 }
5315 {
5316 if (temp8)
5317 delete arg8;
5318 }
5319 return NULL;
5320 }
5321
5322
5323 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5326 wxVisualAttributes result;
5327 PyObject * obj0 = 0 ;
5328 char *kwnames[] = {
5329 (char *) "variant", NULL
5330 };
5331
5332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5333 if (obj0) {
5334 arg1 = (int)SWIG_As_int(obj0);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 {
5338 if (!wxPyCheckForApp()) SWIG_fail;
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5341
5342 wxPyEndAllowThreads(__tstate);
5343 if (PyErr_Occurred()) SWIG_fail;
5344 }
5345 {
5346 wxVisualAttributes * resultptr;
5347 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5348 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5349 }
5350 return resultobj;
5351 fail:
5352 return NULL;
5353 }
5354
5355
5356 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5357 PyObject *obj;
5358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5359 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5360 Py_INCREF(obj);
5361 return Py_BuildValue((char *)"");
5362 }
5363 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5364 PyObject *resultobj;
5365 wxWindow *arg1 = (wxWindow *) 0 ;
5366 int arg2 = (int) -1 ;
5367 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5368 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5369 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5370 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5371 wxSize const &arg5_defvalue = wxDefaultSize ;
5372 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5373 long arg6 = (long) 0 ;
5374 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5375 wxString *arg7 = (wxString *) &arg7_defvalue ;
5376 wxStaticBitmap *result;
5377 wxPoint temp4 ;
5378 wxSize temp5 ;
5379 bool temp7 = false ;
5380 PyObject * obj0 = 0 ;
5381 PyObject * obj1 = 0 ;
5382 PyObject * obj2 = 0 ;
5383 PyObject * obj3 = 0 ;
5384 PyObject * obj4 = 0 ;
5385 PyObject * obj5 = 0 ;
5386 PyObject * obj6 = 0 ;
5387 char *kwnames[] = {
5388 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5389 };
5390
5391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5394 if (obj1) {
5395 arg2 = (int)SWIG_As_int(obj1);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 if (obj2) {
5399 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5400 SWIG_POINTER_EXCEPTION | 0)) == -1)
5401 SWIG_fail;
5402 if (arg3 == NULL) {
5403 PyErr_SetString(PyExc_TypeError,"null reference");
5404 SWIG_fail;
5405 }
5406 }
5407 if (obj3) {
5408 {
5409 arg4 = &temp4;
5410 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5411 }
5412 }
5413 if (obj4) {
5414 {
5415 arg5 = &temp5;
5416 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5417 }
5418 }
5419 if (obj5) {
5420 arg6 = (long)SWIG_As_long(obj5);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 if (obj6) {
5424 {
5425 arg7 = wxString_in_helper(obj6);
5426 if (arg7 == NULL) SWIG_fail;
5427 temp7 = true;
5428 }
5429 }
5430 {
5431 if (!wxPyCheckForApp()) SWIG_fail;
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5434
5435 wxPyEndAllowThreads(__tstate);
5436 if (PyErr_Occurred()) SWIG_fail;
5437 }
5438 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5439 {
5440 if (temp7)
5441 delete arg7;
5442 }
5443 return resultobj;
5444 fail:
5445 {
5446 if (temp7)
5447 delete arg7;
5448 }
5449 return NULL;
5450 }
5451
5452
5453 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5454 PyObject *resultobj;
5455 wxStaticBitmap *result;
5456 char *kwnames[] = {
5457 NULL
5458 };
5459
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5461 {
5462 if (!wxPyCheckForApp()) SWIG_fail;
5463 PyThreadState* __tstate = wxPyBeginAllowThreads();
5464 result = (wxStaticBitmap *)new wxStaticBitmap();
5465
5466 wxPyEndAllowThreads(__tstate);
5467 if (PyErr_Occurred()) SWIG_fail;
5468 }
5469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5470 return resultobj;
5471 fail:
5472 return NULL;
5473 }
5474
5475
5476 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5477 PyObject *resultobj;
5478 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5479 wxWindow *arg2 = (wxWindow *) 0 ;
5480 int arg3 = (int) -1 ;
5481 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5482 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5483 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5484 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5485 wxSize const &arg6_defvalue = wxDefaultSize ;
5486 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5487 long arg7 = (long) 0 ;
5488 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5489 wxString *arg8 = (wxString *) &arg8_defvalue ;
5490 bool result;
5491 wxPoint temp5 ;
5492 wxSize temp6 ;
5493 bool temp8 = false ;
5494 PyObject * obj0 = 0 ;
5495 PyObject * obj1 = 0 ;
5496 PyObject * obj2 = 0 ;
5497 PyObject * obj3 = 0 ;
5498 PyObject * obj4 = 0 ;
5499 PyObject * obj5 = 0 ;
5500 PyObject * obj6 = 0 ;
5501 PyObject * obj7 = 0 ;
5502 char *kwnames[] = {
5503 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5504 };
5505
5506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5509 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5511 if (obj2) {
5512 arg3 = (int)SWIG_As_int(obj2);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 }
5515 if (obj3) {
5516 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5517 SWIG_POINTER_EXCEPTION | 0)) == -1)
5518 SWIG_fail;
5519 if (arg4 == NULL) {
5520 PyErr_SetString(PyExc_TypeError,"null reference");
5521 SWIG_fail;
5522 }
5523 }
5524 if (obj4) {
5525 {
5526 arg5 = &temp5;
5527 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5528 }
5529 }
5530 if (obj5) {
5531 {
5532 arg6 = &temp6;
5533 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5534 }
5535 }
5536 if (obj6) {
5537 arg7 = (long)SWIG_As_long(obj6);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 if (obj7) {
5541 {
5542 arg8 = wxString_in_helper(obj7);
5543 if (arg8 == NULL) SWIG_fail;
5544 temp8 = true;
5545 }
5546 }
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 {
5555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5556 }
5557 {
5558 if (temp8)
5559 delete arg8;
5560 }
5561 return resultobj;
5562 fail:
5563 {
5564 if (temp8)
5565 delete arg8;
5566 }
5567 return NULL;
5568 }
5569
5570
5571 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5572 PyObject *resultobj;
5573 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5574 wxBitmap result;
5575 PyObject * obj0 = 0 ;
5576 char *kwnames[] = {
5577 (char *) "self", NULL
5578 };
5579
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5583 {
5584 PyThreadState* __tstate = wxPyBeginAllowThreads();
5585 result = (arg1)->GetBitmap();
5586
5587 wxPyEndAllowThreads(__tstate);
5588 if (PyErr_Occurred()) SWIG_fail;
5589 }
5590 {
5591 wxBitmap * resultptr;
5592 resultptr = new wxBitmap((wxBitmap &) result);
5593 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5594 }
5595 return resultobj;
5596 fail:
5597 return NULL;
5598 }
5599
5600
5601 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5602 PyObject *resultobj;
5603 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5604 wxBitmap *arg2 = 0 ;
5605 PyObject * obj0 = 0 ;
5606 PyObject * obj1 = 0 ;
5607 char *kwnames[] = {
5608 (char *) "self",(char *) "bitmap", NULL
5609 };
5610
5611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5615 SWIG_POINTER_EXCEPTION | 0)) == -1)
5616 SWIG_fail;
5617 if (arg2 == NULL) {
5618 PyErr_SetString(PyExc_TypeError,"null reference");
5619 SWIG_fail;
5620 }
5621 {
5622 PyThreadState* __tstate = wxPyBeginAllowThreads();
5623 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5624
5625 wxPyEndAllowThreads(__tstate);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 }
5628 Py_INCREF(Py_None); resultobj = Py_None;
5629 return resultobj;
5630 fail:
5631 return NULL;
5632 }
5633
5634
5635 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5636 PyObject *resultobj;
5637 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5638 wxIcon *arg2 = 0 ;
5639 PyObject * obj0 = 0 ;
5640 PyObject * obj1 = 0 ;
5641 char *kwnames[] = {
5642 (char *) "self",(char *) "icon", NULL
5643 };
5644
5645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5649 SWIG_POINTER_EXCEPTION | 0)) == -1)
5650 SWIG_fail;
5651 if (arg2 == NULL) {
5652 PyErr_SetString(PyExc_TypeError,"null reference");
5653 SWIG_fail;
5654 }
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 (arg1)->SetIcon((wxIcon const &)*arg2);
5658
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 Py_INCREF(Py_None); resultobj = Py_None;
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5670 PyObject *resultobj;
5671 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5672 wxVisualAttributes result;
5673 PyObject * obj0 = 0 ;
5674 char *kwnames[] = {
5675 (char *) "variant", NULL
5676 };
5677
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5679 if (obj0) {
5680 arg1 = (int)SWIG_As_int(obj0);
5681 if (PyErr_Occurred()) SWIG_fail;
5682 }
5683 {
5684 if (!wxPyCheckForApp()) SWIG_fail;
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 {
5692 wxVisualAttributes * resultptr;
5693 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5694 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5695 }
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5703 PyObject *obj;
5704 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5705 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5706 Py_INCREF(obj);
5707 return Py_BuildValue((char *)"");
5708 }
5709 static int _wrap_ListBoxNameStr_set(PyObject *) {
5710 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5711 return 1;
5712 }
5713
5714
5715 static PyObject *_wrap_ListBoxNameStr_get() {
5716 PyObject *pyobj;
5717
5718 {
5719 #if wxUSE_UNICODE
5720 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5721 #else
5722 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5723 #endif
5724 }
5725 return pyobj;
5726 }
5727
5728
5729 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5730 PyObject *resultobj;
5731 wxWindow *arg1 = (wxWindow *) 0 ;
5732 int arg2 = (int) -1 ;
5733 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5734 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5735 wxSize const &arg4_defvalue = wxDefaultSize ;
5736 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5737 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5738 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5739 long arg6 = (long) 0 ;
5740 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5741 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5742 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5743 wxString *arg8 = (wxString *) &arg8_defvalue ;
5744 wxListBox *result;
5745 wxPoint temp3 ;
5746 wxSize temp4 ;
5747 bool temp5 = false ;
5748 bool temp8 = false ;
5749 PyObject * obj0 = 0 ;
5750 PyObject * obj1 = 0 ;
5751 PyObject * obj2 = 0 ;
5752 PyObject * obj3 = 0 ;
5753 PyObject * obj4 = 0 ;
5754 PyObject * obj5 = 0 ;
5755 PyObject * obj6 = 0 ;
5756 PyObject * obj7 = 0 ;
5757 char *kwnames[] = {
5758 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5759 };
5760
5761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5764 if (obj1) {
5765 arg2 = (int)SWIG_As_int(obj1);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 if (obj2) {
5769 {
5770 arg3 = &temp3;
5771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5772 }
5773 }
5774 if (obj3) {
5775 {
5776 arg4 = &temp4;
5777 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5778 }
5779 }
5780 if (obj4) {
5781 {
5782 if (! PySequence_Check(obj4)) {
5783 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5784 SWIG_fail;
5785 }
5786 arg5 = new wxArrayString;
5787 temp5 = true;
5788 int i, len=PySequence_Length(obj4);
5789 for (i=0; i<len; i++) {
5790 PyObject* item = PySequence_GetItem(obj4, i);
5791 #if wxUSE_UNICODE
5792 PyObject* str = PyObject_Unicode(item);
5793 #else
5794 PyObject* str = PyObject_Str(item);
5795 #endif
5796 if (PyErr_Occurred()) SWIG_fail;
5797 arg5->Add(Py2wxString(str));
5798 Py_DECREF(item);
5799 Py_DECREF(str);
5800 }
5801 }
5802 }
5803 if (obj5) {
5804 arg6 = (long)SWIG_As_long(obj5);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 if (obj6) {
5808 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5809 SWIG_POINTER_EXCEPTION | 0)) == -1)
5810 SWIG_fail;
5811 if (arg7 == NULL) {
5812 PyErr_SetString(PyExc_TypeError,"null reference");
5813 SWIG_fail;
5814 }
5815 }
5816 if (obj7) {
5817 {
5818 arg8 = wxString_in_helper(obj7);
5819 if (arg8 == NULL) SWIG_fail;
5820 temp8 = true;
5821 }
5822 }
5823 {
5824 if (!wxPyCheckForApp()) SWIG_fail;
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5827
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5832 {
5833 if (temp5) delete arg5;
5834 }
5835 {
5836 if (temp8)
5837 delete arg8;
5838 }
5839 return resultobj;
5840 fail:
5841 {
5842 if (temp5) delete arg5;
5843 }
5844 {
5845 if (temp8)
5846 delete arg8;
5847 }
5848 return NULL;
5849 }
5850
5851
5852 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5853 PyObject *resultobj;
5854 wxListBox *result;
5855 char *kwnames[] = {
5856 NULL
5857 };
5858
5859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5860 {
5861 if (!wxPyCheckForApp()) SWIG_fail;
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 result = (wxListBox *)new wxListBox();
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxListBox *arg1 = (wxListBox *) 0 ;
5878 wxWindow *arg2 = (wxWindow *) 0 ;
5879 int arg3 = (int) -1 ;
5880 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5881 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5882 wxSize const &arg5_defvalue = wxDefaultSize ;
5883 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5884 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5885 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5886 long arg7 = (long) 0 ;
5887 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5888 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5889 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5890 wxString *arg9 = (wxString *) &arg9_defvalue ;
5891 bool result;
5892 wxPoint temp4 ;
5893 wxSize temp5 ;
5894 bool temp6 = false ;
5895 bool temp9 = false ;
5896 PyObject * obj0 = 0 ;
5897 PyObject * obj1 = 0 ;
5898 PyObject * obj2 = 0 ;
5899 PyObject * obj3 = 0 ;
5900 PyObject * obj4 = 0 ;
5901 PyObject * obj5 = 0 ;
5902 PyObject * obj6 = 0 ;
5903 PyObject * obj7 = 0 ;
5904 PyObject * obj8 = 0 ;
5905 char *kwnames[] = {
5906 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5907 };
5908
5909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5912 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5914 if (obj2) {
5915 arg3 = (int)SWIG_As_int(obj2);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 if (obj3) {
5919 {
5920 arg4 = &temp4;
5921 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5922 }
5923 }
5924 if (obj4) {
5925 {
5926 arg5 = &temp5;
5927 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5928 }
5929 }
5930 if (obj5) {
5931 {
5932 if (! PySequence_Check(obj5)) {
5933 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5934 SWIG_fail;
5935 }
5936 arg6 = new wxArrayString;
5937 temp6 = true;
5938 int i, len=PySequence_Length(obj5);
5939 for (i=0; i<len; i++) {
5940 PyObject* item = PySequence_GetItem(obj5, i);
5941 #if wxUSE_UNICODE
5942 PyObject* str = PyObject_Unicode(item);
5943 #else
5944 PyObject* str = PyObject_Str(item);
5945 #endif
5946 if (PyErr_Occurred()) SWIG_fail;
5947 arg6->Add(Py2wxString(str));
5948 Py_DECREF(item);
5949 Py_DECREF(str);
5950 }
5951 }
5952 }
5953 if (obj6) {
5954 arg7 = (long)SWIG_As_long(obj6);
5955 if (PyErr_Occurred()) SWIG_fail;
5956 }
5957 if (obj7) {
5958 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5959 SWIG_POINTER_EXCEPTION | 0)) == -1)
5960 SWIG_fail;
5961 if (arg8 == NULL) {
5962 PyErr_SetString(PyExc_TypeError,"null reference");
5963 SWIG_fail;
5964 }
5965 }
5966 if (obj8) {
5967 {
5968 arg9 = wxString_in_helper(obj8);
5969 if (arg9 == NULL) SWIG_fail;
5970 temp9 = true;
5971 }
5972 }
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 {
5981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5982 }
5983 {
5984 if (temp6) delete arg6;
5985 }
5986 {
5987 if (temp9)
5988 delete arg9;
5989 }
5990 return resultobj;
5991 fail:
5992 {
5993 if (temp6) delete arg6;
5994 }
5995 {
5996 if (temp9)
5997 delete arg9;
5998 }
5999 return NULL;
6000 }
6001
6002
6003 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 wxListBox *arg1 = (wxListBox *) 0 ;
6006 wxString *arg2 = 0 ;
6007 int arg3 ;
6008 PyObject *arg4 = (PyObject *) NULL ;
6009 bool temp2 = false ;
6010 PyObject * obj0 = 0 ;
6011 PyObject * obj1 = 0 ;
6012 PyObject * obj2 = 0 ;
6013 PyObject * obj3 = 0 ;
6014 char *kwnames[] = {
6015 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
6016 };
6017
6018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6021 {
6022 arg2 = wxString_in_helper(obj1);
6023 if (arg2 == NULL) SWIG_fail;
6024 temp2 = true;
6025 }
6026 arg3 = (int)SWIG_As_int(obj2);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 if (obj3) {
6029 arg4 = obj3;
6030 }
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 Py_INCREF(Py_None); resultobj = Py_None;
6039 {
6040 if (temp2)
6041 delete arg2;
6042 }
6043 return resultobj;
6044 fail:
6045 {
6046 if (temp2)
6047 delete arg2;
6048 }
6049 return NULL;
6050 }
6051
6052
6053 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj;
6055 wxListBox *arg1 = (wxListBox *) 0 ;
6056 wxArrayString *arg2 = 0 ;
6057 int arg3 ;
6058 bool temp2 = false ;
6059 PyObject * obj0 = 0 ;
6060 PyObject * obj1 = 0 ;
6061 PyObject * obj2 = 0 ;
6062 char *kwnames[] = {
6063 (char *) "self",(char *) "items",(char *) "pos", NULL
6064 };
6065
6066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6069 {
6070 if (! PySequence_Check(obj1)) {
6071 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6072 SWIG_fail;
6073 }
6074 arg2 = new wxArrayString;
6075 temp2 = true;
6076 int i, len=PySequence_Length(obj1);
6077 for (i=0; i<len; i++) {
6078 PyObject* item = PySequence_GetItem(obj1, i);
6079 #if wxUSE_UNICODE
6080 PyObject* str = PyObject_Unicode(item);
6081 #else
6082 PyObject* str = PyObject_Str(item);
6083 #endif
6084 if (PyErr_Occurred()) SWIG_fail;
6085 arg2->Add(Py2wxString(str));
6086 Py_DECREF(item);
6087 Py_DECREF(str);
6088 }
6089 }
6090 arg3 = (int)SWIG_As_int(obj2);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 {
6093 PyThreadState* __tstate = wxPyBeginAllowThreads();
6094 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6095
6096 wxPyEndAllowThreads(__tstate);
6097 if (PyErr_Occurred()) SWIG_fail;
6098 }
6099 Py_INCREF(Py_None); resultobj = Py_None;
6100 {
6101 if (temp2) delete arg2;
6102 }
6103 return resultobj;
6104 fail:
6105 {
6106 if (temp2) delete arg2;
6107 }
6108 return NULL;
6109 }
6110
6111
6112 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6113 PyObject *resultobj;
6114 wxListBox *arg1 = (wxListBox *) 0 ;
6115 wxArrayString *arg2 = 0 ;
6116 bool temp2 = false ;
6117 PyObject * obj0 = 0 ;
6118 PyObject * obj1 = 0 ;
6119 char *kwnames[] = {
6120 (char *) "self",(char *) "items", NULL
6121 };
6122
6123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6126 {
6127 if (! PySequence_Check(obj1)) {
6128 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6129 SWIG_fail;
6130 }
6131 arg2 = new wxArrayString;
6132 temp2 = true;
6133 int i, len=PySequence_Length(obj1);
6134 for (i=0; i<len; i++) {
6135 PyObject* item = PySequence_GetItem(obj1, i);
6136 #if wxUSE_UNICODE
6137 PyObject* str = PyObject_Unicode(item);
6138 #else
6139 PyObject* str = PyObject_Str(item);
6140 #endif
6141 if (PyErr_Occurred()) SWIG_fail;
6142 arg2->Add(Py2wxString(str));
6143 Py_DECREF(item);
6144 Py_DECREF(str);
6145 }
6146 }
6147 {
6148 PyThreadState* __tstate = wxPyBeginAllowThreads();
6149 (arg1)->Set((wxArrayString const &)*arg2);
6150
6151 wxPyEndAllowThreads(__tstate);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 Py_INCREF(Py_None); resultobj = Py_None;
6155 {
6156 if (temp2) delete arg2;
6157 }
6158 return resultobj;
6159 fail:
6160 {
6161 if (temp2) delete arg2;
6162 }
6163 return NULL;
6164 }
6165
6166
6167 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj;
6169 wxListBox *arg1 = (wxListBox *) 0 ;
6170 int arg2 ;
6171 bool result;
6172 PyObject * obj0 = 0 ;
6173 PyObject * obj1 = 0 ;
6174 char *kwnames[] = {
6175 (char *) "self",(char *) "n", NULL
6176 };
6177
6178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6181 arg2 = (int)SWIG_As_int(obj1);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 {
6184 PyThreadState* __tstate = wxPyBeginAllowThreads();
6185 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6186
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 {
6191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6192 }
6193 return resultobj;
6194 fail:
6195 return NULL;
6196 }
6197
6198
6199 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6200 PyObject *resultobj;
6201 wxListBox *arg1 = (wxListBox *) 0 ;
6202 int arg2 ;
6203 bool arg3 = (bool) true ;
6204 PyObject * obj0 = 0 ;
6205 PyObject * obj1 = 0 ;
6206 PyObject * obj2 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "self",(char *) "n",(char *) "select", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6214 arg2 = (int)SWIG_As_int(obj1);
6215 if (PyErr_Occurred()) SWIG_fail;
6216 if (obj2) {
6217 arg3 = (bool)SWIG_As_bool(obj2);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 {
6221 PyThreadState* __tstate = wxPyBeginAllowThreads();
6222 (arg1)->SetSelection(arg2,arg3);
6223
6224 wxPyEndAllowThreads(__tstate);
6225 if (PyErr_Occurred()) SWIG_fail;
6226 }
6227 Py_INCREF(Py_None); resultobj = Py_None;
6228 return resultobj;
6229 fail:
6230 return NULL;
6231 }
6232
6233
6234 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6235 PyObject *resultobj;
6236 wxListBox *arg1 = (wxListBox *) 0 ;
6237 int arg2 ;
6238 PyObject * obj0 = 0 ;
6239 PyObject * obj1 = 0 ;
6240 char *kwnames[] = {
6241 (char *) "self",(char *) "n", NULL
6242 };
6243
6244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6247 arg2 = (int)SWIG_As_int(obj1);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 {
6250 PyThreadState* __tstate = wxPyBeginAllowThreads();
6251 (arg1)->Select(arg2);
6252
6253 wxPyEndAllowThreads(__tstate);
6254 if (PyErr_Occurred()) SWIG_fail;
6255 }
6256 Py_INCREF(Py_None); resultobj = Py_None;
6257 return resultobj;
6258 fail:
6259 return NULL;
6260 }
6261
6262
6263 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6264 PyObject *resultobj;
6265 wxListBox *arg1 = (wxListBox *) 0 ;
6266 int arg2 ;
6267 PyObject * obj0 = 0 ;
6268 PyObject * obj1 = 0 ;
6269 char *kwnames[] = {
6270 (char *) "self",(char *) "n", NULL
6271 };
6272
6273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6276 arg2 = (int)SWIG_As_int(obj1);
6277 if (PyErr_Occurred()) SWIG_fail;
6278 {
6279 PyThreadState* __tstate = wxPyBeginAllowThreads();
6280 (arg1)->Deselect(arg2);
6281
6282 wxPyEndAllowThreads(__tstate);
6283 if (PyErr_Occurred()) SWIG_fail;
6284 }
6285 Py_INCREF(Py_None); resultobj = Py_None;
6286 return resultobj;
6287 fail:
6288 return NULL;
6289 }
6290
6291
6292 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6293 PyObject *resultobj;
6294 wxListBox *arg1 = (wxListBox *) 0 ;
6295 int arg2 = (int) -1 ;
6296 PyObject * obj0 = 0 ;
6297 PyObject * obj1 = 0 ;
6298 char *kwnames[] = {
6299 (char *) "self",(char *) "itemToLeaveSelected", NULL
6300 };
6301
6302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6305 if (obj1) {
6306 arg2 = (int)SWIG_As_int(obj1);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 (arg1)->DeselectAll(arg2);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 Py_INCREF(Py_None); resultobj = Py_None;
6317 return resultobj;
6318 fail:
6319 return NULL;
6320 }
6321
6322
6323 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj;
6325 wxListBox *arg1 = (wxListBox *) 0 ;
6326 wxString *arg2 = 0 ;
6327 bool arg3 = (bool) true ;
6328 bool result;
6329 bool temp2 = false ;
6330 PyObject * obj0 = 0 ;
6331 PyObject * obj1 = 0 ;
6332 PyObject * obj2 = 0 ;
6333 char *kwnames[] = {
6334 (char *) "self",(char *) "s",(char *) "select", NULL
6335 };
6336
6337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6340 {
6341 arg2 = wxString_in_helper(obj1);
6342 if (arg2 == NULL) SWIG_fail;
6343 temp2 = true;
6344 }
6345 if (obj2) {
6346 arg3 = (bool)SWIG_As_bool(obj2);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 {
6350 PyThreadState* __tstate = wxPyBeginAllowThreads();
6351 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6352
6353 wxPyEndAllowThreads(__tstate);
6354 if (PyErr_Occurred()) SWIG_fail;
6355 }
6356 {
6357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6358 }
6359 {
6360 if (temp2)
6361 delete arg2;
6362 }
6363 return resultobj;
6364 fail:
6365 {
6366 if (temp2)
6367 delete arg2;
6368 }
6369 return NULL;
6370 }
6371
6372
6373 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj;
6375 wxListBox *arg1 = (wxListBox *) 0 ;
6376 PyObject *result;
6377 PyObject * obj0 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "self", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6385 {
6386 PyThreadState* __tstate = wxPyBeginAllowThreads();
6387 result = (PyObject *)wxListBox_GetSelections(arg1);
6388
6389 wxPyEndAllowThreads(__tstate);
6390 if (PyErr_Occurred()) SWIG_fail;
6391 }
6392 resultobj = result;
6393 return resultobj;
6394 fail:
6395 return NULL;
6396 }
6397
6398
6399 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6400 PyObject *resultobj;
6401 wxListBox *arg1 = (wxListBox *) 0 ;
6402 int arg2 ;
6403 PyObject * obj0 = 0 ;
6404 PyObject * obj1 = 0 ;
6405 char *kwnames[] = {
6406 (char *) "self",(char *) "n", NULL
6407 };
6408
6409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6412 arg2 = (int)SWIG_As_int(obj1);
6413 if (PyErr_Occurred()) SWIG_fail;
6414 {
6415 PyThreadState* __tstate = wxPyBeginAllowThreads();
6416 (arg1)->SetFirstItem(arg2);
6417
6418 wxPyEndAllowThreads(__tstate);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 }
6421 Py_INCREF(Py_None); resultobj = Py_None;
6422 return resultobj;
6423 fail:
6424 return NULL;
6425 }
6426
6427
6428 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6429 PyObject *resultobj;
6430 wxListBox *arg1 = (wxListBox *) 0 ;
6431 wxString *arg2 = 0 ;
6432 bool temp2 = false ;
6433 PyObject * obj0 = 0 ;
6434 PyObject * obj1 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self",(char *) "s", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6442 {
6443 arg2 = wxString_in_helper(obj1);
6444 if (arg2 == NULL) SWIG_fail;
6445 temp2 = true;
6446 }
6447 {
6448 PyThreadState* __tstate = wxPyBeginAllowThreads();
6449 (arg1)->SetFirstItem((wxString const &)*arg2);
6450
6451 wxPyEndAllowThreads(__tstate);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 Py_INCREF(Py_None); resultobj = Py_None;
6455 {
6456 if (temp2)
6457 delete arg2;
6458 }
6459 return resultobj;
6460 fail:
6461 {
6462 if (temp2)
6463 delete arg2;
6464 }
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxListBox *arg1 = (wxListBox *) 0 ;
6472 int arg2 ;
6473 PyObject * obj0 = 0 ;
6474 PyObject * obj1 = 0 ;
6475 char *kwnames[] = {
6476 (char *) "self",(char *) "n", NULL
6477 };
6478
6479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6482 arg2 = (int)SWIG_As_int(obj1);
6483 if (PyErr_Occurred()) SWIG_fail;
6484 {
6485 PyThreadState* __tstate = wxPyBeginAllowThreads();
6486 (arg1)->EnsureVisible(arg2);
6487
6488 wxPyEndAllowThreads(__tstate);
6489 if (PyErr_Occurred()) SWIG_fail;
6490 }
6491 Py_INCREF(Py_None); resultobj = Py_None;
6492 return resultobj;
6493 fail:
6494 return NULL;
6495 }
6496
6497
6498 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxListBox *arg1 = (wxListBox *) 0 ;
6501 wxString *arg2 = 0 ;
6502 bool temp2 = false ;
6503 PyObject * obj0 = 0 ;
6504 PyObject * obj1 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "self",(char *) "s", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6512 {
6513 arg2 = wxString_in_helper(obj1);
6514 if (arg2 == NULL) SWIG_fail;
6515 temp2 = true;
6516 }
6517 {
6518 PyThreadState* __tstate = wxPyBeginAllowThreads();
6519 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6520
6521 wxPyEndAllowThreads(__tstate);
6522 if (PyErr_Occurred()) SWIG_fail;
6523 }
6524 Py_INCREF(Py_None); resultobj = Py_None;
6525 {
6526 if (temp2)
6527 delete arg2;
6528 }
6529 return resultobj;
6530 fail:
6531 {
6532 if (temp2)
6533 delete arg2;
6534 }
6535 return NULL;
6536 }
6537
6538
6539 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxListBox *arg1 = (wxListBox *) 0 ;
6542 bool result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (bool)((wxListBox const *)arg1)->IsSorted();
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 {
6559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6560 }
6561 return resultobj;
6562 fail:
6563 return NULL;
6564 }
6565
6566
6567 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6568 PyObject *resultobj;
6569 wxListBox *arg1 = (wxListBox *) 0 ;
6570 int arg2 ;
6571 wxColour *arg3 = 0 ;
6572 wxColour temp3 ;
6573 PyObject * obj0 = 0 ;
6574 PyObject * obj1 = 0 ;
6575 PyObject * obj2 = 0 ;
6576 char *kwnames[] = {
6577 (char *) "self",(char *) "item",(char *) "c", NULL
6578 };
6579
6580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6583 arg2 = (int)SWIG_As_int(obj1);
6584 if (PyErr_Occurred()) SWIG_fail;
6585 {
6586 arg3 = &temp3;
6587 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6588 }
6589 {
6590 PyThreadState* __tstate = wxPyBeginAllowThreads();
6591 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6592
6593 wxPyEndAllowThreads(__tstate);
6594 if (PyErr_Occurred()) SWIG_fail;
6595 }
6596 Py_INCREF(Py_None); resultobj = Py_None;
6597 return resultobj;
6598 fail:
6599 return NULL;
6600 }
6601
6602
6603 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6604 PyObject *resultobj;
6605 wxListBox *arg1 = (wxListBox *) 0 ;
6606 int arg2 ;
6607 wxColour *arg3 = 0 ;
6608 wxColour temp3 ;
6609 PyObject * obj0 = 0 ;
6610 PyObject * obj1 = 0 ;
6611 PyObject * obj2 = 0 ;
6612 char *kwnames[] = {
6613 (char *) "self",(char *) "item",(char *) "c", NULL
6614 };
6615
6616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6619 arg2 = (int)SWIG_As_int(obj1);
6620 if (PyErr_Occurred()) SWIG_fail;
6621 {
6622 arg3 = &temp3;
6623 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6624 }
6625 {
6626 PyThreadState* __tstate = wxPyBeginAllowThreads();
6627 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6628
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 Py_INCREF(Py_None); resultobj = Py_None;
6633 return resultobj;
6634 fail:
6635 return NULL;
6636 }
6637
6638
6639 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj;
6641 wxListBox *arg1 = (wxListBox *) 0 ;
6642 int arg2 ;
6643 wxFont *arg3 = 0 ;
6644 PyObject * obj0 = 0 ;
6645 PyObject * obj1 = 0 ;
6646 PyObject * obj2 = 0 ;
6647 char *kwnames[] = {
6648 (char *) "self",(char *) "item",(char *) "f", NULL
6649 };
6650
6651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6654 arg2 = (int)SWIG_As_int(obj1);
6655 if (PyErr_Occurred()) SWIG_fail;
6656 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6657 SWIG_POINTER_EXCEPTION | 0)) == -1)
6658 SWIG_fail;
6659 if (arg3 == NULL) {
6660 PyErr_SetString(PyExc_TypeError,"null reference");
6661 SWIG_fail;
6662 }
6663 {
6664 PyThreadState* __tstate = wxPyBeginAllowThreads();
6665 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6666
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 Py_INCREF(Py_None); resultobj = Py_None;
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6680 wxVisualAttributes result;
6681 PyObject * obj0 = 0 ;
6682 char *kwnames[] = {
6683 (char *) "variant", NULL
6684 };
6685
6686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6687 if (obj0) {
6688 arg1 = (int)SWIG_As_int(obj0);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 {
6692 if (!wxPyCheckForApp()) SWIG_fail;
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6695
6696 wxPyEndAllowThreads(__tstate);
6697 if (PyErr_Occurred()) SWIG_fail;
6698 }
6699 {
6700 wxVisualAttributes * resultptr;
6701 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6703 }
6704 return resultobj;
6705 fail:
6706 return NULL;
6707 }
6708
6709
6710 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6711 PyObject *obj;
6712 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6713 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6714 Py_INCREF(obj);
6715 return Py_BuildValue((char *)"");
6716 }
6717 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6718 PyObject *resultobj;
6719 wxWindow *arg1 = (wxWindow *) 0 ;
6720 int arg2 = (int) -1 ;
6721 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6722 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6723 wxSize const &arg4_defvalue = wxDefaultSize ;
6724 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6725 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6726 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6727 long arg6 = (long) 0 ;
6728 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6729 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6730 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6731 wxString *arg8 = (wxString *) &arg8_defvalue ;
6732 wxCheckListBox *result;
6733 wxPoint temp3 ;
6734 wxSize temp4 ;
6735 bool temp5 = false ;
6736 bool temp8 = false ;
6737 PyObject * obj0 = 0 ;
6738 PyObject * obj1 = 0 ;
6739 PyObject * obj2 = 0 ;
6740 PyObject * obj3 = 0 ;
6741 PyObject * obj4 = 0 ;
6742 PyObject * obj5 = 0 ;
6743 PyObject * obj6 = 0 ;
6744 PyObject * obj7 = 0 ;
6745 char *kwnames[] = {
6746 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6752 if (obj1) {
6753 arg2 = (int)SWIG_As_int(obj1);
6754 if (PyErr_Occurred()) SWIG_fail;
6755 }
6756 if (obj2) {
6757 {
6758 arg3 = &temp3;
6759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6760 }
6761 }
6762 if (obj3) {
6763 {
6764 arg4 = &temp4;
6765 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6766 }
6767 }
6768 if (obj4) {
6769 {
6770 if (! PySequence_Check(obj4)) {
6771 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6772 SWIG_fail;
6773 }
6774 arg5 = new wxArrayString;
6775 temp5 = true;
6776 int i, len=PySequence_Length(obj4);
6777 for (i=0; i<len; i++) {
6778 PyObject* item = PySequence_GetItem(obj4, i);
6779 #if wxUSE_UNICODE
6780 PyObject* str = PyObject_Unicode(item);
6781 #else
6782 PyObject* str = PyObject_Str(item);
6783 #endif
6784 if (PyErr_Occurred()) SWIG_fail;
6785 arg5->Add(Py2wxString(str));
6786 Py_DECREF(item);
6787 Py_DECREF(str);
6788 }
6789 }
6790 }
6791 if (obj5) {
6792 arg6 = (long)SWIG_As_long(obj5);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 if (obj6) {
6796 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6797 SWIG_POINTER_EXCEPTION | 0)) == -1)
6798 SWIG_fail;
6799 if (arg7 == NULL) {
6800 PyErr_SetString(PyExc_TypeError,"null reference");
6801 SWIG_fail;
6802 }
6803 }
6804 if (obj7) {
6805 {
6806 arg8 = wxString_in_helper(obj7);
6807 if (arg8 == NULL) SWIG_fail;
6808 temp8 = true;
6809 }
6810 }
6811 {
6812 if (!wxPyCheckForApp()) SWIG_fail;
6813 PyThreadState* __tstate = wxPyBeginAllowThreads();
6814 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6815
6816 wxPyEndAllowThreads(__tstate);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6820 {
6821 if (temp5) delete arg5;
6822 }
6823 {
6824 if (temp8)
6825 delete arg8;
6826 }
6827 return resultobj;
6828 fail:
6829 {
6830 if (temp5) delete arg5;
6831 }
6832 {
6833 if (temp8)
6834 delete arg8;
6835 }
6836 return NULL;
6837 }
6838
6839
6840 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6841 PyObject *resultobj;
6842 wxCheckListBox *result;
6843 char *kwnames[] = {
6844 NULL
6845 };
6846
6847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6848 {
6849 if (!wxPyCheckForApp()) SWIG_fail;
6850 PyThreadState* __tstate = wxPyBeginAllowThreads();
6851 result = (wxCheckListBox *)new wxCheckListBox();
6852
6853 wxPyEndAllowThreads(__tstate);
6854 if (PyErr_Occurred()) SWIG_fail;
6855 }
6856 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6857 return resultobj;
6858 fail:
6859 return NULL;
6860 }
6861
6862
6863 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6864 PyObject *resultobj;
6865 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6866 wxWindow *arg2 = (wxWindow *) 0 ;
6867 int arg3 = (int) -1 ;
6868 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6869 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6870 wxSize const &arg5_defvalue = wxDefaultSize ;
6871 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6872 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6873 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6874 long arg7 = (long) 0 ;
6875 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6876 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6877 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6878 wxString *arg9 = (wxString *) &arg9_defvalue ;
6879 bool result;
6880 wxPoint temp4 ;
6881 wxSize temp5 ;
6882 bool temp6 = false ;
6883 bool temp9 = false ;
6884 PyObject * obj0 = 0 ;
6885 PyObject * obj1 = 0 ;
6886 PyObject * obj2 = 0 ;
6887 PyObject * obj3 = 0 ;
6888 PyObject * obj4 = 0 ;
6889 PyObject * obj5 = 0 ;
6890 PyObject * obj6 = 0 ;
6891 PyObject * obj7 = 0 ;
6892 PyObject * obj8 = 0 ;
6893 char *kwnames[] = {
6894 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6895 };
6896
6897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6900 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6902 if (obj2) {
6903 arg3 = (int)SWIG_As_int(obj2);
6904 if (PyErr_Occurred()) SWIG_fail;
6905 }
6906 if (obj3) {
6907 {
6908 arg4 = &temp4;
6909 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6910 }
6911 }
6912 if (obj4) {
6913 {
6914 arg5 = &temp5;
6915 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6916 }
6917 }
6918 if (obj5) {
6919 {
6920 if (! PySequence_Check(obj5)) {
6921 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6922 SWIG_fail;
6923 }
6924 arg6 = new wxArrayString;
6925 temp6 = true;
6926 int i, len=PySequence_Length(obj5);
6927 for (i=0; i<len; i++) {
6928 PyObject* item = PySequence_GetItem(obj5, i);
6929 #if wxUSE_UNICODE
6930 PyObject* str = PyObject_Unicode(item);
6931 #else
6932 PyObject* str = PyObject_Str(item);
6933 #endif
6934 if (PyErr_Occurred()) SWIG_fail;
6935 arg6->Add(Py2wxString(str));
6936 Py_DECREF(item);
6937 Py_DECREF(str);
6938 }
6939 }
6940 }
6941 if (obj6) {
6942 arg7 = (long)SWIG_As_long(obj6);
6943 if (PyErr_Occurred()) SWIG_fail;
6944 }
6945 if (obj7) {
6946 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6947 SWIG_POINTER_EXCEPTION | 0)) == -1)
6948 SWIG_fail;
6949 if (arg8 == NULL) {
6950 PyErr_SetString(PyExc_TypeError,"null reference");
6951 SWIG_fail;
6952 }
6953 }
6954 if (obj8) {
6955 {
6956 arg9 = wxString_in_helper(obj8);
6957 if (arg9 == NULL) SWIG_fail;
6958 temp9 = true;
6959 }
6960 }
6961 {
6962 PyThreadState* __tstate = wxPyBeginAllowThreads();
6963 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6964
6965 wxPyEndAllowThreads(__tstate);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 }
6968 {
6969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6970 }
6971 {
6972 if (temp6) delete arg6;
6973 }
6974 {
6975 if (temp9)
6976 delete arg9;
6977 }
6978 return resultobj;
6979 fail:
6980 {
6981 if (temp6) delete arg6;
6982 }
6983 {
6984 if (temp9)
6985 delete arg9;
6986 }
6987 return NULL;
6988 }
6989
6990
6991 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj;
6993 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6994 int arg2 ;
6995 bool result;
6996 PyObject * obj0 = 0 ;
6997 PyObject * obj1 = 0 ;
6998 char *kwnames[] = {
6999 (char *) "self",(char *) "index", NULL
7000 };
7001
7002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
7003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7005 arg2 = (int)SWIG_As_int(obj1);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 result = (bool)(arg1)->IsChecked(arg2);
7010
7011 wxPyEndAllowThreads(__tstate);
7012 if (PyErr_Occurred()) SWIG_fail;
7013 }
7014 {
7015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7016 }
7017 return resultobj;
7018 fail:
7019 return NULL;
7020 }
7021
7022
7023 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
7024 PyObject *resultobj;
7025 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7026 int arg2 ;
7027 int arg3 = (int) true ;
7028 PyObject * obj0 = 0 ;
7029 PyObject * obj1 = 0 ;
7030 PyObject * obj2 = 0 ;
7031 char *kwnames[] = {
7032 (char *) "self",(char *) "index",(char *) "check", NULL
7033 };
7034
7035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
7036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7038 arg2 = (int)SWIG_As_int(obj1);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 if (obj2) {
7041 arg3 = (int)SWIG_As_int(obj2);
7042 if (PyErr_Occurred()) SWIG_fail;
7043 }
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 (arg1)->Check(arg2,arg3);
7047
7048 wxPyEndAllowThreads(__tstate);
7049 if (PyErr_Occurred()) SWIG_fail;
7050 }
7051 Py_INCREF(Py_None); resultobj = Py_None;
7052 return resultobj;
7053 fail:
7054 return NULL;
7055 }
7056
7057
7058 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7059 PyObject *resultobj;
7060 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7061 int result;
7062 PyObject * obj0 = 0 ;
7063 char *kwnames[] = {
7064 (char *) "self", NULL
7065 };
7066
7067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7070 {
7071 PyThreadState* __tstate = wxPyBeginAllowThreads();
7072 result = (int)(arg1)->GetItemHeight();
7073
7074 wxPyEndAllowThreads(__tstate);
7075 if (PyErr_Occurred()) SWIG_fail;
7076 }
7077 resultobj = SWIG_From_int((int)result);
7078 return resultobj;
7079 fail:
7080 return NULL;
7081 }
7082
7083
7084 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7085 PyObject *resultobj;
7086 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7087 wxPoint *arg2 = 0 ;
7088 int result;
7089 wxPoint temp2 ;
7090 PyObject * obj0 = 0 ;
7091 PyObject * obj1 = 0 ;
7092 char *kwnames[] = {
7093 (char *) "self",(char *) "pt", NULL
7094 };
7095
7096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7099 {
7100 arg2 = &temp2;
7101 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7102 }
7103 {
7104 PyThreadState* __tstate = wxPyBeginAllowThreads();
7105 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7106
7107 wxPyEndAllowThreads(__tstate);
7108 if (PyErr_Occurred()) SWIG_fail;
7109 }
7110 resultobj = SWIG_From_int((int)result);
7111 return resultobj;
7112 fail:
7113 return NULL;
7114 }
7115
7116
7117 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7118 PyObject *resultobj;
7119 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7120 int arg2 ;
7121 int arg3 ;
7122 int result;
7123 PyObject * obj0 = 0 ;
7124 PyObject * obj1 = 0 ;
7125 PyObject * obj2 = 0 ;
7126 char *kwnames[] = {
7127 (char *) "self",(char *) "x",(char *) "y", NULL
7128 };
7129
7130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7133 arg2 = (int)SWIG_As_int(obj1);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 arg3 = (int)SWIG_As_int(obj2);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 {
7138 PyThreadState* __tstate = wxPyBeginAllowThreads();
7139 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7140
7141 wxPyEndAllowThreads(__tstate);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_From_int((int)result);
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7152 PyObject *obj;
7153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7154 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7155 Py_INCREF(obj);
7156 return Py_BuildValue((char *)"");
7157 }
7158 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7159 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7160 return 1;
7161 }
7162
7163
7164 static PyObject *_wrap_TextCtrlNameStr_get() {
7165 PyObject *pyobj;
7166
7167 {
7168 #if wxUSE_UNICODE
7169 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7170 #else
7171 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7172 #endif
7173 }
7174 return pyobj;
7175 }
7176
7177
7178 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7179 PyObject *resultobj;
7180 wxColour const &arg1_defvalue = wxNullColour ;
7181 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7182 wxColour const &arg2_defvalue = wxNullColour ;
7183 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7184 wxFont const &arg3_defvalue = wxNullFont ;
7185 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7186 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7187 wxTextAttr *result;
7188 wxColour temp1 ;
7189 wxColour temp2 ;
7190 PyObject * obj0 = 0 ;
7191 PyObject * obj1 = 0 ;
7192 PyObject * obj2 = 0 ;
7193 PyObject * obj3 = 0 ;
7194 char *kwnames[] = {
7195 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7196 };
7197
7198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7199 if (obj0) {
7200 {
7201 arg1 = &temp1;
7202 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7203 }
7204 }
7205 if (obj1) {
7206 {
7207 arg2 = &temp2;
7208 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7209 }
7210 }
7211 if (obj2) {
7212 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7213 SWIG_POINTER_EXCEPTION | 0)) == -1)
7214 SWIG_fail;
7215 if (arg3 == NULL) {
7216 PyErr_SetString(PyExc_TypeError,"null reference");
7217 SWIG_fail;
7218 }
7219 }
7220 if (obj3) {
7221 arg4 = (int)SWIG_As_int(obj3);
7222 if (PyErr_Occurred()) SWIG_fail;
7223 }
7224 {
7225 PyThreadState* __tstate = wxPyBeginAllowThreads();
7226 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7227
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7239 PyObject *resultobj;
7240 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7241 PyObject * obj0 = 0 ;
7242 char *kwnames[] = {
7243 (char *) "self", NULL
7244 };
7245
7246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7249 {
7250 PyThreadState* __tstate = wxPyBeginAllowThreads();
7251 delete arg1;
7252
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 Py_INCREF(Py_None); resultobj = Py_None;
7257 return resultobj;
7258 fail:
7259 return NULL;
7260 }
7261
7262
7263 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7264 PyObject *resultobj;
7265 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7266 PyObject * obj0 = 0 ;
7267 char *kwnames[] = {
7268 (char *) "self", NULL
7269 };
7270
7271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7274 {
7275 PyThreadState* __tstate = wxPyBeginAllowThreads();
7276 (arg1)->Init();
7277
7278 wxPyEndAllowThreads(__tstate);
7279 if (PyErr_Occurred()) SWIG_fail;
7280 }
7281 Py_INCREF(Py_None); resultobj = Py_None;
7282 return resultobj;
7283 fail:
7284 return NULL;
7285 }
7286
7287
7288 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7289 PyObject *resultobj;
7290 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7291 wxColour *arg2 = 0 ;
7292 wxColour temp2 ;
7293 PyObject * obj0 = 0 ;
7294 PyObject * obj1 = 0 ;
7295 char *kwnames[] = {
7296 (char *) "self",(char *) "colText", NULL
7297 };
7298
7299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7302 {
7303 arg2 = &temp2;
7304 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7305 }
7306 {
7307 PyThreadState* __tstate = wxPyBeginAllowThreads();
7308 (arg1)->SetTextColour((wxColour const &)*arg2);
7309
7310 wxPyEndAllowThreads(__tstate);
7311 if (PyErr_Occurred()) SWIG_fail;
7312 }
7313 Py_INCREF(Py_None); resultobj = Py_None;
7314 return resultobj;
7315 fail:
7316 return NULL;
7317 }
7318
7319
7320 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7321 PyObject *resultobj;
7322 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7323 wxColour *arg2 = 0 ;
7324 wxColour temp2 ;
7325 PyObject * obj0 = 0 ;
7326 PyObject * obj1 = 0 ;
7327 char *kwnames[] = {
7328 (char *) "self",(char *) "colBack", NULL
7329 };
7330
7331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7334 {
7335 arg2 = &temp2;
7336 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 Py_INCREF(Py_None); resultobj = Py_None;
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7355 wxFont *arg2 = 0 ;
7356 long arg3 = (long) wxTEXT_ATTR_FONT ;
7357 PyObject * obj0 = 0 ;
7358 PyObject * obj1 = 0 ;
7359 PyObject * obj2 = 0 ;
7360 char *kwnames[] = {
7361 (char *) "self",(char *) "font",(char *) "flags", NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7368 SWIG_POINTER_EXCEPTION | 0)) == -1)
7369 SWIG_fail;
7370 if (arg2 == NULL) {
7371 PyErr_SetString(PyExc_TypeError,"null reference");
7372 SWIG_fail;
7373 }
7374 if (obj2) {
7375 arg3 = (long)SWIG_As_long(obj2);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 {
7379 PyThreadState* __tstate = wxPyBeginAllowThreads();
7380 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7381
7382 wxPyEndAllowThreads(__tstate);
7383 if (PyErr_Occurred()) SWIG_fail;
7384 }
7385 Py_INCREF(Py_None); resultobj = Py_None;
7386 return resultobj;
7387 fail:
7388 return NULL;
7389 }
7390
7391
7392 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7393 PyObject *resultobj;
7394 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7395 int arg2 ;
7396 PyObject * obj0 = 0 ;
7397 PyObject * obj1 = 0 ;
7398 char *kwnames[] = {
7399 (char *) "self",(char *) "alignment", NULL
7400 };
7401
7402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7405 arg2 = (int)SWIG_As_int(obj1);
7406 if (PyErr_Occurred()) SWIG_fail;
7407 {
7408 PyThreadState* __tstate = wxPyBeginAllowThreads();
7409 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7410
7411 wxPyEndAllowThreads(__tstate);
7412 if (PyErr_Occurred()) SWIG_fail;
7413 }
7414 Py_INCREF(Py_None); resultobj = Py_None;
7415 return resultobj;
7416 fail:
7417 return NULL;
7418 }
7419
7420
7421 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7422 PyObject *resultobj;
7423 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7424 wxArrayInt *arg2 = 0 ;
7425 bool temp2 = false ;
7426 PyObject * obj0 = 0 ;
7427 PyObject * obj1 = 0 ;
7428 char *kwnames[] = {
7429 (char *) "self",(char *) "tabs", NULL
7430 };
7431
7432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7435 {
7436 if (! PySequence_Check(obj1)) {
7437 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7438 SWIG_fail;
7439 }
7440 arg2 = new wxArrayInt;
7441 temp2 = true;
7442 int i, len=PySequence_Length(obj1);
7443 for (i=0; i<len; i++) {
7444 PyObject* item = PySequence_GetItem(obj1, i);
7445 PyObject* number = PyNumber_Int(item);
7446 arg2->Add(PyInt_AS_LONG(number));
7447 Py_DECREF(item);
7448 Py_DECREF(number);
7449 }
7450 }
7451 {
7452 PyThreadState* __tstate = wxPyBeginAllowThreads();
7453 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7454
7455 wxPyEndAllowThreads(__tstate);
7456 if (PyErr_Occurred()) SWIG_fail;
7457 }
7458 Py_INCREF(Py_None); resultobj = Py_None;
7459 {
7460 if (temp2) delete arg2;
7461 }
7462 return resultobj;
7463 fail:
7464 {
7465 if (temp2) delete arg2;
7466 }
7467 return NULL;
7468 }
7469
7470
7471 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7472 PyObject *resultobj;
7473 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7474 int arg2 ;
7475 int arg3 = (int) 0 ;
7476 PyObject * obj0 = 0 ;
7477 PyObject * obj1 = 0 ;
7478 PyObject * obj2 = 0 ;
7479 char *kwnames[] = {
7480 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7481 };
7482
7483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7486 arg2 = (int)SWIG_As_int(obj1);
7487 if (PyErr_Occurred()) SWIG_fail;
7488 if (obj2) {
7489 arg3 = (int)SWIG_As_int(obj2);
7490 if (PyErr_Occurred()) SWIG_fail;
7491 }
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 (arg1)->SetLeftIndent(arg2,arg3);
7495
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 Py_INCREF(Py_None); resultobj = Py_None;
7500 return resultobj;
7501 fail:
7502 return NULL;
7503 }
7504
7505
7506 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7507 PyObject *resultobj;
7508 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7509 int arg2 ;
7510 PyObject * obj0 = 0 ;
7511 PyObject * obj1 = 0 ;
7512 char *kwnames[] = {
7513 (char *) "self",(char *) "indent", NULL
7514 };
7515
7516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7519 arg2 = (int)SWIG_As_int(obj1);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 {
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 (arg1)->SetRightIndent(arg2);
7524
7525 wxPyEndAllowThreads(__tstate);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 Py_INCREF(Py_None); resultobj = Py_None;
7529 return resultobj;
7530 fail:
7531 return NULL;
7532 }
7533
7534
7535 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj;
7537 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7538 long arg2 ;
7539 PyObject * obj0 = 0 ;
7540 PyObject * obj1 = 0 ;
7541 char *kwnames[] = {
7542 (char *) "self",(char *) "flags", NULL
7543 };
7544
7545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7548 arg2 = (long)SWIG_As_long(obj1);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 {
7551 PyThreadState* __tstate = wxPyBeginAllowThreads();
7552 (arg1)->SetFlags(arg2);
7553
7554 wxPyEndAllowThreads(__tstate);
7555 if (PyErr_Occurred()) SWIG_fail;
7556 }
7557 Py_INCREF(Py_None); resultobj = Py_None;
7558 return resultobj;
7559 fail:
7560 return NULL;
7561 }
7562
7563
7564 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7565 PyObject *resultobj;
7566 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7567 bool result;
7568 PyObject * obj0 = 0 ;
7569 char *kwnames[] = {
7570 (char *) "self", NULL
7571 };
7572
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7576 {
7577 PyThreadState* __tstate = wxPyBeginAllowThreads();
7578 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7579
7580 wxPyEndAllowThreads(__tstate);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 {
7584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7585 }
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj;
7594 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7595 bool result;
7596 PyObject * obj0 = 0 ;
7597 char *kwnames[] = {
7598 (char *) "self", NULL
7599 };
7600
7601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7604 {
7605 PyThreadState* __tstate = wxPyBeginAllowThreads();
7606 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7607
7608 wxPyEndAllowThreads(__tstate);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 }
7611 {
7612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7613 }
7614 return resultobj;
7615 fail:
7616 return NULL;
7617 }
7618
7619
7620 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7621 PyObject *resultobj;
7622 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7623 bool result;
7624 PyObject * obj0 = 0 ;
7625 char *kwnames[] = {
7626 (char *) "self", NULL
7627 };
7628
7629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7632 {
7633 PyThreadState* __tstate = wxPyBeginAllowThreads();
7634 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7635
7636 wxPyEndAllowThreads(__tstate);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 {
7640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7641 }
7642 return resultobj;
7643 fail:
7644 return NULL;
7645 }
7646
7647
7648 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7649 PyObject *resultobj;
7650 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7651 bool result;
7652 PyObject * obj0 = 0 ;
7653 char *kwnames[] = {
7654 (char *) "self", NULL
7655 };
7656
7657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7663
7664 wxPyEndAllowThreads(__tstate);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 {
7668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7669 }
7670 return resultobj;
7671 fail:
7672 return NULL;
7673 }
7674
7675
7676 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7677 PyObject *resultobj;
7678 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7679 bool result;
7680 PyObject * obj0 = 0 ;
7681 char *kwnames[] = {
7682 (char *) "self", NULL
7683 };
7684
7685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7688 {
7689 PyThreadState* __tstate = wxPyBeginAllowThreads();
7690 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7691
7692 wxPyEndAllowThreads(__tstate);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 }
7695 {
7696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7697 }
7698 return resultobj;
7699 fail:
7700 return NULL;
7701 }
7702
7703
7704 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7705 PyObject *resultobj;
7706 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7707 bool result;
7708 PyObject * obj0 = 0 ;
7709 char *kwnames[] = {
7710 (char *) "self", NULL
7711 };
7712
7713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7719
7720 wxPyEndAllowThreads(__tstate);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 {
7724 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7725 }
7726 return resultobj;
7727 fail:
7728 return NULL;
7729 }
7730
7731
7732 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj;
7734 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7735 bool result;
7736 PyObject * obj0 = 0 ;
7737 char *kwnames[] = {
7738 (char *) "self", NULL
7739 };
7740
7741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7744 {
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7747
7748 wxPyEndAllowThreads(__tstate);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 {
7752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7753 }
7754 return resultobj;
7755 fail:
7756 return NULL;
7757 }
7758
7759
7760 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7761 PyObject *resultobj;
7762 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7763 long arg2 ;
7764 bool result;
7765 PyObject * obj0 = 0 ;
7766 PyObject * obj1 = 0 ;
7767 char *kwnames[] = {
7768 (char *) "self",(char *) "flag", NULL
7769 };
7770
7771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7774 arg2 = (long)SWIG_As_long(obj1);
7775 if (PyErr_Occurred()) SWIG_fail;
7776 {
7777 PyThreadState* __tstate = wxPyBeginAllowThreads();
7778 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7779
7780 wxPyEndAllowThreads(__tstate);
7781 if (PyErr_Occurred()) SWIG_fail;
7782 }
7783 {
7784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7785 }
7786 return resultobj;
7787 fail:
7788 return NULL;
7789 }
7790
7791
7792 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7793 PyObject *resultobj;
7794 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7795 wxColour *result;
7796 PyObject * obj0 = 0 ;
7797 char *kwnames[] = {
7798 (char *) "self", NULL
7799 };
7800
7801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7804 {
7805 PyThreadState* __tstate = wxPyBeginAllowThreads();
7806 {
7807 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7808 result = (wxColour *) &_result_ref;
7809 }
7810
7811 wxPyEndAllowThreads(__tstate);
7812 if (PyErr_Occurred()) SWIG_fail;
7813 }
7814 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7815 return resultobj;
7816 fail:
7817 return NULL;
7818 }
7819
7820
7821 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7822 PyObject *resultobj;
7823 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7824 wxColour *result;
7825 PyObject * obj0 = 0 ;
7826 char *kwnames[] = {
7827 (char *) "self", NULL
7828 };
7829
7830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7833 {
7834 PyThreadState* __tstate = wxPyBeginAllowThreads();
7835 {
7836 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7837 result = (wxColour *) &_result_ref;
7838 }
7839
7840 wxPyEndAllowThreads(__tstate);
7841 if (PyErr_Occurred()) SWIG_fail;
7842 }
7843 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7844 return resultobj;
7845 fail:
7846 return NULL;
7847 }
7848
7849
7850 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7851 PyObject *resultobj;
7852 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7853 wxFont *result;
7854 PyObject * obj0 = 0 ;
7855 char *kwnames[] = {
7856 (char *) "self", NULL
7857 };
7858
7859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 {
7865 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7866 result = (wxFont *) &_result_ref;
7867 }
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 {
7873 wxFont* resultptr = new wxFont(*result);
7874 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7875 }
7876 return resultobj;
7877 fail:
7878 return NULL;
7879 }
7880
7881
7882 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7883 PyObject *resultobj;
7884 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7885 int result;
7886 PyObject * obj0 = 0 ;
7887 char *kwnames[] = {
7888 (char *) "self", NULL
7889 };
7890
7891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7894 {
7895 PyThreadState* __tstate = wxPyBeginAllowThreads();
7896 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7897
7898 wxPyEndAllowThreads(__tstate);
7899 if (PyErr_Occurred()) SWIG_fail;
7900 }
7901 resultobj = SWIG_From_int((int)result);
7902 return resultobj;
7903 fail:
7904 return NULL;
7905 }
7906
7907
7908 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7909 PyObject *resultobj;
7910 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7911 wxArrayInt *result;
7912 PyObject * obj0 = 0 ;
7913 char *kwnames[] = {
7914 (char *) "self", NULL
7915 };
7916
7917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7920 {
7921 PyThreadState* __tstate = wxPyBeginAllowThreads();
7922 {
7923 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7924 result = (wxArrayInt *) &_result_ref;
7925 }
7926
7927 wxPyEndAllowThreads(__tstate);
7928 if (PyErr_Occurred()) SWIG_fail;
7929 }
7930 {
7931 resultobj = PyList_New(0);
7932 size_t idx;
7933 for (idx = 0; idx < result->GetCount(); idx += 1) {
7934 PyObject* val = PyInt_FromLong( result->Item(idx) );
7935 PyList_Append(resultobj, val);
7936 Py_DECREF(val);
7937 }
7938 }
7939 return resultobj;
7940 fail:
7941 return NULL;
7942 }
7943
7944
7945 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7946 PyObject *resultobj;
7947 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7948 long result;
7949 PyObject * obj0 = 0 ;
7950 char *kwnames[] = {
7951 (char *) "self", NULL
7952 };
7953
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7957 {
7958 PyThreadState* __tstate = wxPyBeginAllowThreads();
7959 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7960
7961 wxPyEndAllowThreads(__tstate);
7962 if (PyErr_Occurred()) SWIG_fail;
7963 }
7964 resultobj = SWIG_From_long((long)result);
7965 return resultobj;
7966 fail:
7967 return NULL;
7968 }
7969
7970
7971 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7972 PyObject *resultobj;
7973 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7974 long result;
7975 PyObject * obj0 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self", NULL
7978 };
7979
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7983 {
7984 PyThreadState* __tstate = wxPyBeginAllowThreads();
7985 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7986
7987 wxPyEndAllowThreads(__tstate);
7988 if (PyErr_Occurred()) SWIG_fail;
7989 }
7990 resultobj = SWIG_From_long((long)result);
7991 return resultobj;
7992 fail:
7993 return NULL;
7994 }
7995
7996
7997 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7998 PyObject *resultobj;
7999 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8000 long result;
8001 PyObject * obj0 = 0 ;
8002 char *kwnames[] = {
8003 (char *) "self", NULL
8004 };
8005
8006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
8007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8009 {
8010 PyThreadState* __tstate = wxPyBeginAllowThreads();
8011 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
8012
8013 wxPyEndAllowThreads(__tstate);
8014 if (PyErr_Occurred()) SWIG_fail;
8015 }
8016 resultobj = SWIG_From_long((long)result);
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj;
8025 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8026 long result;
8027 PyObject * obj0 = 0 ;
8028 char *kwnames[] = {
8029 (char *) "self", NULL
8030 };
8031
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
8033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8035 {
8036 PyThreadState* __tstate = wxPyBeginAllowThreads();
8037 result = (long)((wxTextAttr const *)arg1)->GetFlags();
8038
8039 wxPyEndAllowThreads(__tstate);
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_From_long((long)result);
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj;
8051 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8052 bool result;
8053 PyObject * obj0 = 0 ;
8054 char *kwnames[] = {
8055 (char *) "self", NULL
8056 };
8057
8058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8061 {
8062 PyThreadState* __tstate = wxPyBeginAllowThreads();
8063 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8064
8065 wxPyEndAllowThreads(__tstate);
8066 if (PyErr_Occurred()) SWIG_fail;
8067 }
8068 {
8069 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8070 }
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxTextAttr *arg1 = 0 ;
8080 wxTextAttr *arg2 = 0 ;
8081 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8082 wxTextAttr result;
8083 PyObject * obj0 = 0 ;
8084 PyObject * obj1 = 0 ;
8085 PyObject * obj2 = 0 ;
8086 char *kwnames[] = {
8087 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8088 };
8089
8090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8092 SWIG_POINTER_EXCEPTION | 0)) == -1)
8093 SWIG_fail;
8094 if (arg1 == NULL) {
8095 PyErr_SetString(PyExc_TypeError,"null reference");
8096 SWIG_fail;
8097 }
8098 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8099 SWIG_POINTER_EXCEPTION | 0)) == -1)
8100 SWIG_fail;
8101 if (arg2 == NULL) {
8102 PyErr_SetString(PyExc_TypeError,"null reference");
8103 SWIG_fail;
8104 }
8105 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8107 {
8108 PyThreadState* __tstate = wxPyBeginAllowThreads();
8109 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8110
8111 wxPyEndAllowThreads(__tstate);
8112 if (PyErr_Occurred()) SWIG_fail;
8113 }
8114 {
8115 wxTextAttr * resultptr;
8116 resultptr = new wxTextAttr((wxTextAttr &) result);
8117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8118 }
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8126 PyObject *obj;
8127 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8128 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8129 Py_INCREF(obj);
8130 return Py_BuildValue((char *)"");
8131 }
8132 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxWindow *arg1 = (wxWindow *) 0 ;
8135 int arg2 = (int) -1 ;
8136 wxString const &arg3_defvalue = wxPyEmptyString ;
8137 wxString *arg3 = (wxString *) &arg3_defvalue ;
8138 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8139 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8140 wxSize const &arg5_defvalue = wxDefaultSize ;
8141 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8142 long arg6 = (long) 0 ;
8143 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8144 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8145 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8146 wxString *arg8 = (wxString *) &arg8_defvalue ;
8147 wxTextCtrl *result;
8148 bool temp3 = false ;
8149 wxPoint temp4 ;
8150 wxSize temp5 ;
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 *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8162 };
8163
8164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8167 if (obj1) {
8168 arg2 = (int)SWIG_As_int(obj1);
8169 if (PyErr_Occurred()) SWIG_fail;
8170 }
8171 if (obj2) {
8172 {
8173 arg3 = wxString_in_helper(obj2);
8174 if (arg3 == NULL) SWIG_fail;
8175 temp3 = true;
8176 }
8177 }
8178 if (obj3) {
8179 {
8180 arg4 = &temp4;
8181 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8182 }
8183 }
8184 if (obj4) {
8185 {
8186 arg5 = &temp5;
8187 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8188 }
8189 }
8190 if (obj5) {
8191 arg6 = (long)SWIG_As_long(obj5);
8192 if (PyErr_Occurred()) SWIG_fail;
8193 }
8194 if (obj6) {
8195 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8196 SWIG_POINTER_EXCEPTION | 0)) == -1)
8197 SWIG_fail;
8198 if (arg7 == NULL) {
8199 PyErr_SetString(PyExc_TypeError,"null reference");
8200 SWIG_fail;
8201 }
8202 }
8203 if (obj7) {
8204 {
8205 arg8 = wxString_in_helper(obj7);
8206 if (arg8 == NULL) SWIG_fail;
8207 temp8 = true;
8208 }
8209 }
8210 {
8211 if (!wxPyCheckForApp()) SWIG_fail;
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8219 {
8220 if (temp3)
8221 delete arg3;
8222 }
8223 {
8224 if (temp8)
8225 delete arg8;
8226 }
8227 return resultobj;
8228 fail:
8229 {
8230 if (temp3)
8231 delete arg3;
8232 }
8233 {
8234 if (temp8)
8235 delete arg8;
8236 }
8237 return NULL;
8238 }
8239
8240
8241 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8242 PyObject *resultobj;
8243 wxTextCtrl *result;
8244 char *kwnames[] = {
8245 NULL
8246 };
8247
8248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8249 {
8250 if (!wxPyCheckForApp()) SWIG_fail;
8251 PyThreadState* __tstate = wxPyBeginAllowThreads();
8252 result = (wxTextCtrl *)new wxTextCtrl();
8253
8254 wxPyEndAllowThreads(__tstate);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8258 return resultobj;
8259 fail:
8260 return NULL;
8261 }
8262
8263
8264 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8265 PyObject *resultobj;
8266 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8267 wxWindow *arg2 = (wxWindow *) 0 ;
8268 int arg3 = (int) -1 ;
8269 wxString const &arg4_defvalue = wxPyEmptyString ;
8270 wxString *arg4 = (wxString *) &arg4_defvalue ;
8271 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8272 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8273 wxSize const &arg6_defvalue = wxDefaultSize ;
8274 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8275 long arg7 = (long) 0 ;
8276 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8277 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8278 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8279 wxString *arg9 = (wxString *) &arg9_defvalue ;
8280 bool result;
8281 bool temp4 = false ;
8282 wxPoint temp5 ;
8283 wxSize temp6 ;
8284 bool temp9 = false ;
8285 PyObject * obj0 = 0 ;
8286 PyObject * obj1 = 0 ;
8287 PyObject * obj2 = 0 ;
8288 PyObject * obj3 = 0 ;
8289 PyObject * obj4 = 0 ;
8290 PyObject * obj5 = 0 ;
8291 PyObject * obj6 = 0 ;
8292 PyObject * obj7 = 0 ;
8293 PyObject * obj8 = 0 ;
8294 char *kwnames[] = {
8295 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8296 };
8297
8298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8301 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8303 if (obj2) {
8304 arg3 = (int)SWIG_As_int(obj2);
8305 if (PyErr_Occurred()) SWIG_fail;
8306 }
8307 if (obj3) {
8308 {
8309 arg4 = wxString_in_helper(obj3);
8310 if (arg4 == NULL) SWIG_fail;
8311 temp4 = true;
8312 }
8313 }
8314 if (obj4) {
8315 {
8316 arg5 = &temp5;
8317 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8318 }
8319 }
8320 if (obj5) {
8321 {
8322 arg6 = &temp6;
8323 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8324 }
8325 }
8326 if (obj6) {
8327 arg7 = (long)SWIG_As_long(obj6);
8328 if (PyErr_Occurred()) SWIG_fail;
8329 }
8330 if (obj7) {
8331 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8332 SWIG_POINTER_EXCEPTION | 0)) == -1)
8333 SWIG_fail;
8334 if (arg8 == NULL) {
8335 PyErr_SetString(PyExc_TypeError,"null reference");
8336 SWIG_fail;
8337 }
8338 }
8339 if (obj8) {
8340 {
8341 arg9 = wxString_in_helper(obj8);
8342 if (arg9 == NULL) SWIG_fail;
8343 temp9 = true;
8344 }
8345 }
8346 {
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8349
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 {
8354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8355 }
8356 {
8357 if (temp4)
8358 delete arg4;
8359 }
8360 {
8361 if (temp9)
8362 delete arg9;
8363 }
8364 return resultobj;
8365 fail:
8366 {
8367 if (temp4)
8368 delete arg4;
8369 }
8370 {
8371 if (temp9)
8372 delete arg9;
8373 }
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8381 wxString result;
8382 PyObject * obj0 = 0 ;
8383 char *kwnames[] = {
8384 (char *) "self", NULL
8385 };
8386
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8390 {
8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
8392 result = ((wxTextCtrl const *)arg1)->GetValue();
8393
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 {
8398 #if wxUSE_UNICODE
8399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8400 #else
8401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8402 #endif
8403 }
8404 return resultobj;
8405 fail:
8406 return NULL;
8407 }
8408
8409
8410 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj;
8412 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8413 wxString *arg2 = 0 ;
8414 bool temp2 = false ;
8415 PyObject * obj0 = 0 ;
8416 PyObject * obj1 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self",(char *) "value", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 {
8425 arg2 = wxString_in_helper(obj1);
8426 if (arg2 == NULL) SWIG_fail;
8427 temp2 = true;
8428 }
8429 {
8430 PyThreadState* __tstate = wxPyBeginAllowThreads();
8431 (arg1)->SetValue((wxString const &)*arg2);
8432
8433 wxPyEndAllowThreads(__tstate);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 Py_INCREF(Py_None); resultobj = Py_None;
8437 {
8438 if (temp2)
8439 delete arg2;
8440 }
8441 return resultobj;
8442 fail:
8443 {
8444 if (temp2)
8445 delete arg2;
8446 }
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8454 long arg2 ;
8455 long arg3 ;
8456 wxString result;
8457 PyObject * obj0 = 0 ;
8458 PyObject * obj1 = 0 ;
8459 PyObject * obj2 = 0 ;
8460 char *kwnames[] = {
8461 (char *) "self",(char *) "from",(char *) "to", NULL
8462 };
8463
8464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8467 arg2 = (long)SWIG_As_long(obj1);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 arg3 = (long)SWIG_As_long(obj2);
8470 if (PyErr_Occurred()) SWIG_fail;
8471 {
8472 PyThreadState* __tstate = wxPyBeginAllowThreads();
8473 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8474
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 {
8479 #if wxUSE_UNICODE
8480 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8481 #else
8482 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8483 #endif
8484 }
8485 return resultobj;
8486 fail:
8487 return NULL;
8488 }
8489
8490
8491 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj;
8493 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8494 long arg2 ;
8495 int result;
8496 PyObject * obj0 = 0 ;
8497 PyObject * obj1 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self",(char *) "lineNo", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8505 arg2 = (long)SWIG_As_long(obj1);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 {
8508 PyThreadState* __tstate = wxPyBeginAllowThreads();
8509 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8510
8511 wxPyEndAllowThreads(__tstate);
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_From_int((int)result);
8515 return resultobj;
8516 fail:
8517 return NULL;
8518 }
8519
8520
8521 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8522 PyObject *resultobj;
8523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8524 long arg2 ;
8525 wxString result;
8526 PyObject * obj0 = 0 ;
8527 PyObject * obj1 = 0 ;
8528 char *kwnames[] = {
8529 (char *) "self",(char *) "lineNo", NULL
8530 };
8531
8532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8535 arg2 = (long)SWIG_As_long(obj1);
8536 if (PyErr_Occurred()) SWIG_fail;
8537 {
8538 PyThreadState* __tstate = wxPyBeginAllowThreads();
8539 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8540
8541 wxPyEndAllowThreads(__tstate);
8542 if (PyErr_Occurred()) SWIG_fail;
8543 }
8544 {
8545 #if wxUSE_UNICODE
8546 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8547 #else
8548 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8549 #endif
8550 }
8551 return resultobj;
8552 fail:
8553 return NULL;
8554 }
8555
8556
8557 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8558 PyObject *resultobj;
8559 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8560 int result;
8561 PyObject * obj0 = 0 ;
8562 char *kwnames[] = {
8563 (char *) "self", NULL
8564 };
8565
8566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8569 {
8570 PyThreadState* __tstate = wxPyBeginAllowThreads();
8571 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8572
8573 wxPyEndAllowThreads(__tstate);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 }
8576 resultobj = SWIG_From_int((int)result);
8577 return resultobj;
8578 fail:
8579 return NULL;
8580 }
8581
8582
8583 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8584 PyObject *resultobj;
8585 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8586 bool result;
8587 PyObject * obj0 = 0 ;
8588 char *kwnames[] = {
8589 (char *) "self", NULL
8590 };
8591
8592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 {
8603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8604 }
8605 return resultobj;
8606 fail:
8607 return NULL;
8608 }
8609
8610
8611 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8612 PyObject *resultobj;
8613 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8614 bool result;
8615 PyObject * obj0 = 0 ;
8616 char *kwnames[] = {
8617 (char *) "self", NULL
8618 };
8619
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
8625 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 {
8631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8632 }
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj;
8641 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8642 bool result;
8643 PyObject * obj0 = 0 ;
8644 char *kwnames[] = {
8645 (char *) "self", NULL
8646 };
8647
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 {
8659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8660 }
8661 return resultobj;
8662 fail:
8663 return NULL;
8664 }
8665
8666
8667 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8668 PyObject *resultobj;
8669 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8670 bool result;
8671 PyObject * obj0 = 0 ;
8672 char *kwnames[] = {
8673 (char *) "self", NULL
8674 };
8675
8676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8679 {
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8682
8683 wxPyEndAllowThreads(__tstate);
8684 if (PyErr_Occurred()) SWIG_fail;
8685 }
8686 {
8687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8688 }
8689 return resultobj;
8690 fail:
8691 return NULL;
8692 }
8693
8694
8695 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj;
8697 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8698 long *arg2 = (long *) 0 ;
8699 long *arg3 = (long *) 0 ;
8700 long temp2 ;
8701 int res2 = 0 ;
8702 long temp3 ;
8703 int res3 = 0 ;
8704 PyObject * obj0 = 0 ;
8705 char *kwnames[] = {
8706 (char *) "self", NULL
8707 };
8708
8709 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8710 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8717
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 Py_INCREF(Py_None); resultobj = Py_None;
8722 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8723 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8724 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8725 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8726 return resultobj;
8727 fail:
8728 return NULL;
8729 }
8730
8731
8732 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8733 PyObject *resultobj;
8734 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8735 wxString result;
8736 PyObject * obj0 = 0 ;
8737 char *kwnames[] = {
8738 (char *) "self", NULL
8739 };
8740
8741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8747
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 {
8752 #if wxUSE_UNICODE
8753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8754 #else
8755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8756 #endif
8757 }
8758 return resultobj;
8759 fail:
8760 return NULL;
8761 }
8762
8763
8764 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8765 PyObject *resultobj;
8766 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8767 PyObject * obj0 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 (arg1)->Clear();
8778
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 Py_INCREF(Py_None); resultobj = Py_None;
8783 return resultobj;
8784 fail:
8785 return NULL;
8786 }
8787
8788
8789 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8790 PyObject *resultobj;
8791 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8792 long arg2 ;
8793 long arg3 ;
8794 wxString *arg4 = 0 ;
8795 bool temp4 = false ;
8796 PyObject * obj0 = 0 ;
8797 PyObject * obj1 = 0 ;
8798 PyObject * obj2 = 0 ;
8799 PyObject * obj3 = 0 ;
8800 char *kwnames[] = {
8801 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8802 };
8803
8804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8807 arg2 = (long)SWIG_As_long(obj1);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 arg3 = (long)SWIG_As_long(obj2);
8810 if (PyErr_Occurred()) SWIG_fail;
8811 {
8812 arg4 = wxString_in_helper(obj3);
8813 if (arg4 == NULL) SWIG_fail;
8814 temp4 = true;
8815 }
8816 {
8817 PyThreadState* __tstate = wxPyBeginAllowThreads();
8818 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8819
8820 wxPyEndAllowThreads(__tstate);
8821 if (PyErr_Occurred()) SWIG_fail;
8822 }
8823 Py_INCREF(Py_None); resultobj = Py_None;
8824 {
8825 if (temp4)
8826 delete arg4;
8827 }
8828 return resultobj;
8829 fail:
8830 {
8831 if (temp4)
8832 delete arg4;
8833 }
8834 return NULL;
8835 }
8836
8837
8838 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8839 PyObject *resultobj;
8840 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8841 long arg2 ;
8842 long arg3 ;
8843 PyObject * obj0 = 0 ;
8844 PyObject * obj1 = 0 ;
8845 PyObject * obj2 = 0 ;
8846 char *kwnames[] = {
8847 (char *) "self",(char *) "from",(char *) "to", NULL
8848 };
8849
8850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8853 arg2 = (long)SWIG_As_long(obj1);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 arg3 = (long)SWIG_As_long(obj2);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 (arg1)->Remove(arg2,arg3);
8860
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 Py_INCREF(Py_None); resultobj = Py_None;
8865 return resultobj;
8866 fail:
8867 return NULL;
8868 }
8869
8870
8871 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8872 PyObject *resultobj;
8873 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8874 wxString *arg2 = 0 ;
8875 bool result;
8876 bool temp2 = false ;
8877 PyObject * obj0 = 0 ;
8878 PyObject * obj1 = 0 ;
8879 char *kwnames[] = {
8880 (char *) "self",(char *) "file", NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8886 {
8887 arg2 = wxString_in_helper(obj1);
8888 if (arg2 == NULL) SWIG_fail;
8889 temp2 = true;
8890 }
8891 {
8892 PyThreadState* __tstate = wxPyBeginAllowThreads();
8893 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8894
8895 wxPyEndAllowThreads(__tstate);
8896 if (PyErr_Occurred()) SWIG_fail;
8897 }
8898 {
8899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8900 }
8901 {
8902 if (temp2)
8903 delete arg2;
8904 }
8905 return resultobj;
8906 fail:
8907 {
8908 if (temp2)
8909 delete arg2;
8910 }
8911 return NULL;
8912 }
8913
8914
8915 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8916 PyObject *resultobj;
8917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8918 wxString const &arg2_defvalue = wxPyEmptyString ;
8919 wxString *arg2 = (wxString *) &arg2_defvalue ;
8920 bool result;
8921 bool temp2 = false ;
8922 PyObject * obj0 = 0 ;
8923 PyObject * obj1 = 0 ;
8924 char *kwnames[] = {
8925 (char *) "self",(char *) "file", NULL
8926 };
8927
8928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8931 if (obj1) {
8932 {
8933 arg2 = wxString_in_helper(obj1);
8934 if (arg2 == NULL) SWIG_fail;
8935 temp2 = true;
8936 }
8937 }
8938 {
8939 PyThreadState* __tstate = wxPyBeginAllowThreads();
8940 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8941
8942 wxPyEndAllowThreads(__tstate);
8943 if (PyErr_Occurred()) SWIG_fail;
8944 }
8945 {
8946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8947 }
8948 {
8949 if (temp2)
8950 delete arg2;
8951 }
8952 return resultobj;
8953 fail:
8954 {
8955 if (temp2)
8956 delete arg2;
8957 }
8958 return NULL;
8959 }
8960
8961
8962 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8963 PyObject *resultobj;
8964 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8965 PyObject * obj0 = 0 ;
8966 char *kwnames[] = {
8967 (char *) "self", NULL
8968 };
8969
8970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8973 {
8974 PyThreadState* __tstate = wxPyBeginAllowThreads();
8975 (arg1)->MarkDirty();
8976
8977 wxPyEndAllowThreads(__tstate);
8978 if (PyErr_Occurred()) SWIG_fail;
8979 }
8980 Py_INCREF(Py_None); resultobj = Py_None;
8981 return resultobj;
8982 fail:
8983 return NULL;
8984 }
8985
8986
8987 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8988 PyObject *resultobj;
8989 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8990 PyObject * obj0 = 0 ;
8991 char *kwnames[] = {
8992 (char *) "self", NULL
8993 };
8994
8995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8998 {
8999 PyThreadState* __tstate = wxPyBeginAllowThreads();
9000 (arg1)->DiscardEdits();
9001
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 Py_INCREF(Py_None); resultobj = Py_None;
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj;
9014 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9015 unsigned long arg2 ;
9016 PyObject * obj0 = 0 ;
9017 PyObject * obj1 = 0 ;
9018 char *kwnames[] = {
9019 (char *) "self",(char *) "len", NULL
9020 };
9021
9022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
9023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9025 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
9026 if (PyErr_Occurred()) SWIG_fail;
9027 {
9028 PyThreadState* __tstate = wxPyBeginAllowThreads();
9029 (arg1)->SetMaxLength(arg2);
9030
9031 wxPyEndAllowThreads(__tstate);
9032 if (PyErr_Occurred()) SWIG_fail;
9033 }
9034 Py_INCREF(Py_None); resultobj = Py_None;
9035 return resultobj;
9036 fail:
9037 return NULL;
9038 }
9039
9040
9041 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9042 PyObject *resultobj;
9043 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9044 wxString *arg2 = 0 ;
9045 bool temp2 = false ;
9046 PyObject * obj0 = 0 ;
9047 PyObject * obj1 = 0 ;
9048 char *kwnames[] = {
9049 (char *) "self",(char *) "text", NULL
9050 };
9051
9052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9055 {
9056 arg2 = wxString_in_helper(obj1);
9057 if (arg2 == NULL) SWIG_fail;
9058 temp2 = true;
9059 }
9060 {
9061 PyThreadState* __tstate = wxPyBeginAllowThreads();
9062 (arg1)->WriteText((wxString const &)*arg2);
9063
9064 wxPyEndAllowThreads(__tstate);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 }
9067 Py_INCREF(Py_None); resultobj = Py_None;
9068 {
9069 if (temp2)
9070 delete arg2;
9071 }
9072 return resultobj;
9073 fail:
9074 {
9075 if (temp2)
9076 delete arg2;
9077 }
9078 return NULL;
9079 }
9080
9081
9082 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj;
9084 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9085 wxString *arg2 = 0 ;
9086 bool temp2 = false ;
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 char *kwnames[] = {
9090 (char *) "self",(char *) "text", NULL
9091 };
9092
9093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9096 {
9097 arg2 = wxString_in_helper(obj1);
9098 if (arg2 == NULL) SWIG_fail;
9099 temp2 = true;
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 (arg1)->AppendText((wxString const &)*arg2);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 Py_INCREF(Py_None); resultobj = Py_None;
9109 {
9110 if (temp2)
9111 delete arg2;
9112 }
9113 return resultobj;
9114 fail:
9115 {
9116 if (temp2)
9117 delete arg2;
9118 }
9119 return NULL;
9120 }
9121
9122
9123 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9124 PyObject *resultobj;
9125 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9126 wxKeyEvent *arg2 = 0 ;
9127 bool result;
9128 PyObject * obj0 = 0 ;
9129 PyObject * obj1 = 0 ;
9130 char *kwnames[] = {
9131 (char *) "self",(char *) "event", NULL
9132 };
9133
9134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9137 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9138 SWIG_POINTER_EXCEPTION | 0)) == -1)
9139 SWIG_fail;
9140 if (arg2 == NULL) {
9141 PyErr_SetString(PyExc_TypeError,"null reference");
9142 SWIG_fail;
9143 }
9144 {
9145 PyThreadState* __tstate = wxPyBeginAllowThreads();
9146 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9147
9148 wxPyEndAllowThreads(__tstate);
9149 if (PyErr_Occurred()) SWIG_fail;
9150 }
9151 {
9152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9153 }
9154 return resultobj;
9155 fail:
9156 return NULL;
9157 }
9158
9159
9160 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9161 PyObject *resultobj;
9162 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9163 long arg2 ;
9164 long arg3 ;
9165 wxTextAttr *arg4 = 0 ;
9166 bool result;
9167 PyObject * obj0 = 0 ;
9168 PyObject * obj1 = 0 ;
9169 PyObject * obj2 = 0 ;
9170 PyObject * obj3 = 0 ;
9171 char *kwnames[] = {
9172 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9173 };
9174
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9178 arg2 = (long)SWIG_As_long(obj1);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 arg3 = (long)SWIG_As_long(obj2);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9183 SWIG_POINTER_EXCEPTION | 0)) == -1)
9184 SWIG_fail;
9185 if (arg4 == NULL) {
9186 PyErr_SetString(PyExc_TypeError,"null reference");
9187 SWIG_fail;
9188 }
9189 {
9190 PyThreadState* __tstate = wxPyBeginAllowThreads();
9191 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9192
9193 wxPyEndAllowThreads(__tstate);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 {
9197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9198 }
9199 return resultobj;
9200 fail:
9201 return NULL;
9202 }
9203
9204
9205 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9206 PyObject *resultobj;
9207 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9208 long arg2 ;
9209 wxTextAttr *arg3 = 0 ;
9210 bool result;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9213 PyObject * obj2 = 0 ;
9214 char *kwnames[] = {
9215 (char *) "self",(char *) "position",(char *) "style", NULL
9216 };
9217
9218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9221 arg2 = (long)SWIG_As_long(obj1);
9222 if (PyErr_Occurred()) SWIG_fail;
9223 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9224 SWIG_POINTER_EXCEPTION | 0)) == -1)
9225 SWIG_fail;
9226 if (arg3 == NULL) {
9227 PyErr_SetString(PyExc_TypeError,"null reference");
9228 SWIG_fail;
9229 }
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 {
9238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9239 }
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj;
9248 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9249 wxTextAttr *arg2 = 0 ;
9250 bool result;
9251 PyObject * obj0 = 0 ;
9252 PyObject * obj1 = 0 ;
9253 char *kwnames[] = {
9254 (char *) "self",(char *) "style", NULL
9255 };
9256
9257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9260 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9261 SWIG_POINTER_EXCEPTION | 0)) == -1)
9262 SWIG_fail;
9263 if (arg2 == NULL) {
9264 PyErr_SetString(PyExc_TypeError,"null reference");
9265 SWIG_fail;
9266 }
9267 {
9268 PyThreadState* __tstate = wxPyBeginAllowThreads();
9269 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9270
9271 wxPyEndAllowThreads(__tstate);
9272 if (PyErr_Occurred()) SWIG_fail;
9273 }
9274 {
9275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9276 }
9277 return resultobj;
9278 fail:
9279 return NULL;
9280 }
9281
9282
9283 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9284 PyObject *resultobj;
9285 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9286 wxTextAttr *result;
9287 PyObject * obj0 = 0 ;
9288 char *kwnames[] = {
9289 (char *) "self", NULL
9290 };
9291
9292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9295 {
9296 PyThreadState* __tstate = wxPyBeginAllowThreads();
9297 {
9298 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9299 result = (wxTextAttr *) &_result_ref;
9300 }
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9306 return resultobj;
9307 fail:
9308 return NULL;
9309 }
9310
9311
9312 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj;
9314 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9315 long arg2 ;
9316 long arg3 ;
9317 long result;
9318 PyObject * obj0 = 0 ;
9319 PyObject * obj1 = 0 ;
9320 PyObject * obj2 = 0 ;
9321 char *kwnames[] = {
9322 (char *) "self",(char *) "x",(char *) "y", NULL
9323 };
9324
9325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9328 arg2 = (long)SWIG_As_long(obj1);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 arg3 = (long)SWIG_As_long(obj2);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9335
9336 wxPyEndAllowThreads(__tstate);
9337 if (PyErr_Occurred()) SWIG_fail;
9338 }
9339 resultobj = SWIG_From_long((long)result);
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9347 PyObject *resultobj;
9348 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9349 long arg2 ;
9350 long *arg3 = (long *) 0 ;
9351 long *arg4 = (long *) 0 ;
9352 long temp3 ;
9353 int res3 = 0 ;
9354 long temp4 ;
9355 int res4 = 0 ;
9356 PyObject * obj0 = 0 ;
9357 PyObject * obj1 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self",(char *) "pos", NULL
9360 };
9361
9362 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9363 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9367 arg2 = (long)SWIG_As_long(obj1);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 Py_INCREF(Py_None); resultobj = Py_None;
9377 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9378 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9379 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9380 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9381 return resultobj;
9382 fail:
9383 return NULL;
9384 }
9385
9386
9387 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9388 PyObject *resultobj;
9389 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9390 long arg2 ;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self",(char *) "pos", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9400 arg2 = (long)SWIG_As_long(obj1);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 {
9403 PyThreadState* __tstate = wxPyBeginAllowThreads();
9404 (arg1)->ShowPosition(arg2);
9405
9406 wxPyEndAllowThreads(__tstate);
9407 if (PyErr_Occurred()) SWIG_fail;
9408 }
9409 Py_INCREF(Py_None); resultobj = Py_None;
9410 return resultobj;
9411 fail:
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9417 PyObject *resultobj;
9418 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9419 wxPoint *arg2 = 0 ;
9420 long *arg3 = (long *) 0 ;
9421 long *arg4 = (long *) 0 ;
9422 int result;
9423 wxPoint temp2 ;
9424 long temp3 ;
9425 int res3 = 0 ;
9426 long temp4 ;
9427 int res4 = 0 ;
9428 PyObject * obj0 = 0 ;
9429 PyObject * obj1 = 0 ;
9430 char *kwnames[] = {
9431 (char *) "self",(char *) "pt", NULL
9432 };
9433
9434 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9435 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9439 {
9440 arg2 = &temp2;
9441 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9442 }
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = SWIG_From_int((int)result);
9451 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9452 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9453 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9454 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9455 return resultobj;
9456 fail:
9457 return NULL;
9458 }
9459
9460
9461 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9462 PyObject *resultobj;
9463 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9464 wxPoint *arg2 = 0 ;
9465 long *arg3 = (long *) 0 ;
9466 int result;
9467 wxPoint temp2 ;
9468 long temp3 ;
9469 int res3 = 0 ;
9470 PyObject * obj0 = 0 ;
9471 PyObject * obj1 = 0 ;
9472 char *kwnames[] = {
9473 (char *) "self",(char *) "pt", NULL
9474 };
9475
9476 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9480 {
9481 arg2 = &temp2;
9482 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9483 }
9484 {
9485 PyThreadState* __tstate = wxPyBeginAllowThreads();
9486 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9487
9488 wxPyEndAllowThreads(__tstate);
9489 if (PyErr_Occurred()) SWIG_fail;
9490 }
9491 resultobj = SWIG_From_int((int)result);
9492 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9493 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9494 return resultobj;
9495 fail:
9496 return NULL;
9497 }
9498
9499
9500 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9501 PyObject *resultobj;
9502 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9503 PyObject * obj0 = 0 ;
9504 char *kwnames[] = {
9505 (char *) "self", NULL
9506 };
9507
9508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9511 {
9512 PyThreadState* __tstate = wxPyBeginAllowThreads();
9513 (arg1)->Copy();
9514
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 Py_INCREF(Py_None); resultobj = Py_None;
9519 return resultobj;
9520 fail:
9521 return NULL;
9522 }
9523
9524
9525 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9526 PyObject *resultobj;
9527 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9528 PyObject * obj0 = 0 ;
9529 char *kwnames[] = {
9530 (char *) "self", NULL
9531 };
9532
9533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 (arg1)->Cut();
9539
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 Py_INCREF(Py_None); resultobj = Py_None;
9544 return resultobj;
9545 fail:
9546 return NULL;
9547 }
9548
9549
9550 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj;
9552 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9553 PyObject * obj0 = 0 ;
9554 char *kwnames[] = {
9555 (char *) "self", NULL
9556 };
9557
9558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9561 {
9562 PyThreadState* __tstate = wxPyBeginAllowThreads();
9563 (arg1)->Paste();
9564
9565 wxPyEndAllowThreads(__tstate);
9566 if (PyErr_Occurred()) SWIG_fail;
9567 }
9568 Py_INCREF(Py_None); resultobj = Py_None;
9569 return resultobj;
9570 fail:
9571 return NULL;
9572 }
9573
9574
9575 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9576 PyObject *resultobj;
9577 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9578 bool result;
9579 PyObject * obj0 = 0 ;
9580 char *kwnames[] = {
9581 (char *) "self", NULL
9582 };
9583
9584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9590
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 {
9595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9596 }
9597 return resultobj;
9598 fail:
9599 return NULL;
9600 }
9601
9602
9603 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9604 PyObject *resultobj;
9605 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9606 bool result;
9607 PyObject * obj0 = 0 ;
9608 char *kwnames[] = {
9609 (char *) "self", NULL
9610 };
9611
9612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9615 {
9616 PyThreadState* __tstate = wxPyBeginAllowThreads();
9617 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9618
9619 wxPyEndAllowThreads(__tstate);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 {
9623 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9624 }
9625 return resultobj;
9626 fail:
9627 return NULL;
9628 }
9629
9630
9631 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9632 PyObject *resultobj;
9633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9634 bool result;
9635 PyObject * obj0 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "self", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9643 {
9644 PyThreadState* __tstate = wxPyBeginAllowThreads();
9645 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9646
9647 wxPyEndAllowThreads(__tstate);
9648 if (PyErr_Occurred()) SWIG_fail;
9649 }
9650 {
9651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9652 }
9653 return resultobj;
9654 fail:
9655 return NULL;
9656 }
9657
9658
9659 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj;
9661 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9662 PyObject * obj0 = 0 ;
9663 char *kwnames[] = {
9664 (char *) "self", NULL
9665 };
9666
9667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9670 {
9671 PyThreadState* __tstate = wxPyBeginAllowThreads();
9672 (arg1)->Undo();
9673
9674 wxPyEndAllowThreads(__tstate);
9675 if (PyErr_Occurred()) SWIG_fail;
9676 }
9677 Py_INCREF(Py_None); resultobj = Py_None;
9678 return resultobj;
9679 fail:
9680 return NULL;
9681 }
9682
9683
9684 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9685 PyObject *resultobj;
9686 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9687 PyObject * obj0 = 0 ;
9688 char *kwnames[] = {
9689 (char *) "self", NULL
9690 };
9691
9692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9695 {
9696 PyThreadState* __tstate = wxPyBeginAllowThreads();
9697 (arg1)->Redo();
9698
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 Py_INCREF(Py_None); resultobj = Py_None;
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9712 bool result;
9713 PyObject * obj0 = 0 ;
9714 char *kwnames[] = {
9715 (char *) "self", NULL
9716 };
9717
9718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9721 {
9722 PyThreadState* __tstate = wxPyBeginAllowThreads();
9723 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9724
9725 wxPyEndAllowThreads(__tstate);
9726 if (PyErr_Occurred()) SWIG_fail;
9727 }
9728 {
9729 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9730 }
9731 return resultobj;
9732 fail:
9733 return NULL;
9734 }
9735
9736
9737 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9738 PyObject *resultobj;
9739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9740 bool result;
9741 PyObject * obj0 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "self", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9749 {
9750 PyThreadState* __tstate = wxPyBeginAllowThreads();
9751 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9752
9753 wxPyEndAllowThreads(__tstate);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 {
9757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9758 }
9759 return resultobj;
9760 fail:
9761 return NULL;
9762 }
9763
9764
9765 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj;
9767 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9768 long arg2 ;
9769 PyObject * obj0 = 0 ;
9770 PyObject * obj1 = 0 ;
9771 char *kwnames[] = {
9772 (char *) "self",(char *) "pos", NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9778 arg2 = (long)SWIG_As_long(obj1);
9779 if (PyErr_Occurred()) SWIG_fail;
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 (arg1)->SetInsertionPoint(arg2);
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 Py_INCREF(Py_None); resultobj = Py_None;
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj;
9796 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9797 PyObject * obj0 = 0 ;
9798 char *kwnames[] = {
9799 (char *) "self", NULL
9800 };
9801
9802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9805 {
9806 PyThreadState* __tstate = wxPyBeginAllowThreads();
9807 (arg1)->SetInsertionPointEnd();
9808
9809 wxPyEndAllowThreads(__tstate);
9810 if (PyErr_Occurred()) SWIG_fail;
9811 }
9812 Py_INCREF(Py_None); resultobj = Py_None;
9813 return resultobj;
9814 fail:
9815 return NULL;
9816 }
9817
9818
9819 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9820 PyObject *resultobj;
9821 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9822 long result;
9823 PyObject * obj0 = 0 ;
9824 char *kwnames[] = {
9825 (char *) "self", NULL
9826 };
9827
9828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9831 {
9832 PyThreadState* __tstate = wxPyBeginAllowThreads();
9833 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9834
9835 wxPyEndAllowThreads(__tstate);
9836 if (PyErr_Occurred()) SWIG_fail;
9837 }
9838 resultobj = SWIG_From_long((long)result);
9839 return resultobj;
9840 fail:
9841 return NULL;
9842 }
9843
9844
9845 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9846 PyObject *resultobj;
9847 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9848 long result;
9849 PyObject * obj0 = 0 ;
9850 char *kwnames[] = {
9851 (char *) "self", NULL
9852 };
9853
9854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9857 {
9858 PyThreadState* __tstate = wxPyBeginAllowThreads();
9859 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9860
9861 wxPyEndAllowThreads(__tstate);
9862 if (PyErr_Occurred()) SWIG_fail;
9863 }
9864 resultobj = SWIG_From_long((long)result);
9865 return resultobj;
9866 fail:
9867 return NULL;
9868 }
9869
9870
9871 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9872 PyObject *resultobj;
9873 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9874 long arg2 ;
9875 long arg3 ;
9876 PyObject * obj0 = 0 ;
9877 PyObject * obj1 = 0 ;
9878 PyObject * obj2 = 0 ;
9879 char *kwnames[] = {
9880 (char *) "self",(char *) "from",(char *) "to", NULL
9881 };
9882
9883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9886 arg2 = (long)SWIG_As_long(obj1);
9887 if (PyErr_Occurred()) SWIG_fail;
9888 arg3 = (long)SWIG_As_long(obj2);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 (arg1)->SetSelection(arg2,arg3);
9893
9894 wxPyEndAllowThreads(__tstate);
9895 if (PyErr_Occurred()) SWIG_fail;
9896 }
9897 Py_INCREF(Py_None); resultobj = Py_None;
9898 return resultobj;
9899 fail:
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9907 PyObject * obj0 = 0 ;
9908 char *kwnames[] = {
9909 (char *) "self", NULL
9910 };
9911
9912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9915 {
9916 PyThreadState* __tstate = wxPyBeginAllowThreads();
9917 (arg1)->SelectAll();
9918
9919 wxPyEndAllowThreads(__tstate);
9920 if (PyErr_Occurred()) SWIG_fail;
9921 }
9922 Py_INCREF(Py_None); resultobj = Py_None;
9923 return resultobj;
9924 fail:
9925 return NULL;
9926 }
9927
9928
9929 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9930 PyObject *resultobj;
9931 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9932 bool arg2 ;
9933 PyObject * obj0 = 0 ;
9934 PyObject * obj1 = 0 ;
9935 char *kwnames[] = {
9936 (char *) "self",(char *) "editable", NULL
9937 };
9938
9939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9942 arg2 = (bool)SWIG_As_bool(obj1);
9943 if (PyErr_Occurred()) SWIG_fail;
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 (arg1)->SetEditable(arg2);
9947
9948 wxPyEndAllowThreads(__tstate);
9949 if (PyErr_Occurred()) SWIG_fail;
9950 }
9951 Py_INCREF(Py_None); resultobj = Py_None;
9952 return resultobj;
9953 fail:
9954 return NULL;
9955 }
9956
9957
9958 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9959 PyObject *resultobj;
9960 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9961 bool arg2 = (bool) true ;
9962 bool result;
9963 PyObject * obj0 = 0 ;
9964 PyObject * obj1 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self",(char *) "show", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9972 if (obj1) {
9973 arg2 = (bool)SWIG_As_bool(obj1);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 {
9977 PyThreadState* __tstate = wxPyBeginAllowThreads();
9978 result = (bool)(arg1)->ShowNativeCaret(arg2);
9979
9980 wxPyEndAllowThreads(__tstate);
9981 if (PyErr_Occurred()) SWIG_fail;
9982 }
9983 {
9984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9985 }
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9993 PyObject *resultobj;
9994 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9995 bool result;
9996 PyObject * obj0 = 0 ;
9997 char *kwnames[] = {
9998 (char *) "self", NULL
9999 };
10000
10001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
10002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = (bool)(arg1)->HideNativeCaret();
10007
10008 wxPyEndAllowThreads(__tstate);
10009 if (PyErr_Occurred()) SWIG_fail;
10010 }
10011 {
10012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10013 }
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
10021 PyObject *resultobj;
10022 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10023 wxString *arg2 = 0 ;
10024 bool temp2 = false ;
10025 PyObject * obj0 = 0 ;
10026 PyObject * obj1 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self",(char *) "text", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 {
10035 arg2 = wxString_in_helper(obj1);
10036 if (arg2 == NULL) SWIG_fail;
10037 temp2 = true;
10038 }
10039 {
10040 PyThreadState* __tstate = wxPyBeginAllowThreads();
10041 wxTextCtrl_write(arg1,(wxString const &)*arg2);
10042
10043 wxPyEndAllowThreads(__tstate);
10044 if (PyErr_Occurred()) SWIG_fail;
10045 }
10046 Py_INCREF(Py_None); resultobj = Py_None;
10047 {
10048 if (temp2)
10049 delete arg2;
10050 }
10051 return resultobj;
10052 fail:
10053 {
10054 if (temp2)
10055 delete arg2;
10056 }
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10064 long arg2 ;
10065 long arg3 ;
10066 wxString result;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 PyObject * obj2 = 0 ;
10070 char *kwnames[] = {
10071 (char *) "self",(char *) "from",(char *) "to", NULL
10072 };
10073
10074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10077 arg2 = (long)SWIG_As_long(obj1);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 arg3 = (long)SWIG_As_long(obj2);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 {
10089 #if wxUSE_UNICODE
10090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10091 #else
10092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10093 #endif
10094 }
10095 return resultobj;
10096 fail:
10097 return NULL;
10098 }
10099
10100
10101 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10102 PyObject *resultobj;
10103 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10104 wxVisualAttributes result;
10105 PyObject * obj0 = 0 ;
10106 char *kwnames[] = {
10107 (char *) "variant", NULL
10108 };
10109
10110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10111 if (obj0) {
10112 arg1 = (int)SWIG_As_int(obj0);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 {
10116 if (!wxPyCheckForApp()) SWIG_fail;
10117 PyThreadState* __tstate = wxPyBeginAllowThreads();
10118 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10119
10120 wxPyEndAllowThreads(__tstate);
10121 if (PyErr_Occurred()) SWIG_fail;
10122 }
10123 {
10124 wxVisualAttributes * resultptr;
10125 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10126 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10127 }
10128 return resultobj;
10129 fail:
10130 return NULL;
10131 }
10132
10133
10134 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10135 PyObject *obj;
10136 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10137 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10138 Py_INCREF(obj);
10139 return Py_BuildValue((char *)"");
10140 }
10141 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj;
10143 int arg1 ;
10144 wxMouseEvent *arg2 = 0 ;
10145 long arg3 ;
10146 long arg4 ;
10147 wxTextUrlEvent *result;
10148 PyObject * obj0 = 0 ;
10149 PyObject * obj1 = 0 ;
10150 PyObject * obj2 = 0 ;
10151 PyObject * obj3 = 0 ;
10152 char *kwnames[] = {
10153 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10154 };
10155
10156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10157 arg1 = (int)SWIG_As_int(obj0);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10160 SWIG_POINTER_EXCEPTION | 0)) == -1)
10161 SWIG_fail;
10162 if (arg2 == NULL) {
10163 PyErr_SetString(PyExc_TypeError,"null reference");
10164 SWIG_fail;
10165 }
10166 arg3 = (long)SWIG_As_long(obj2);
10167 if (PyErr_Occurred()) SWIG_fail;
10168 arg4 = (long)SWIG_As_long(obj3);
10169 if (PyErr_Occurred()) SWIG_fail;
10170 {
10171 PyThreadState* __tstate = wxPyBeginAllowThreads();
10172 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10173
10174 wxPyEndAllowThreads(__tstate);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10178 return resultobj;
10179 fail:
10180 return NULL;
10181 }
10182
10183
10184 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10185 PyObject *resultobj;
10186 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10187 wxMouseEvent *result;
10188 PyObject * obj0 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 {
10199 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10200 result = (wxMouseEvent *) &_result_ref;
10201 }
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10216 long result;
10217 PyObject * obj0 = 0 ;
10218 char *kwnames[] = {
10219 (char *) "self", NULL
10220 };
10221
10222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10228
10229 wxPyEndAllowThreads(__tstate);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 resultobj = SWIG_From_long((long)result);
10233 return resultobj;
10234 fail:
10235 return NULL;
10236 }
10237
10238
10239 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10240 PyObject *resultobj;
10241 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10242 long result;
10243 PyObject * obj0 = 0 ;
10244 char *kwnames[] = {
10245 (char *) "self", NULL
10246 };
10247
10248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10251 {
10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
10253 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10254
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 resultobj = SWIG_From_long((long)result);
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10266 PyObject *obj;
10267 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10268 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10269 Py_INCREF(obj);
10270 return Py_BuildValue((char *)"");
10271 }
10272 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10273 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10274 return 1;
10275 }
10276
10277
10278 static PyObject *_wrap_ScrollBarNameStr_get() {
10279 PyObject *pyobj;
10280
10281 {
10282 #if wxUSE_UNICODE
10283 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10284 #else
10285 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10286 #endif
10287 }
10288 return pyobj;
10289 }
10290
10291
10292 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10293 PyObject *resultobj;
10294 wxWindow *arg1 = (wxWindow *) 0 ;
10295 int arg2 = (int) -1 ;
10296 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10297 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10298 wxSize const &arg4_defvalue = wxDefaultSize ;
10299 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10300 long arg5 = (long) wxSB_HORIZONTAL ;
10301 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10302 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10303 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10304 wxString *arg7 = (wxString *) &arg7_defvalue ;
10305 wxScrollBar *result;
10306 wxPoint temp3 ;
10307 wxSize temp4 ;
10308 bool temp7 = false ;
10309 PyObject * obj0 = 0 ;
10310 PyObject * obj1 = 0 ;
10311 PyObject * obj2 = 0 ;
10312 PyObject * obj3 = 0 ;
10313 PyObject * obj4 = 0 ;
10314 PyObject * obj5 = 0 ;
10315 PyObject * obj6 = 0 ;
10316 char *kwnames[] = {
10317 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10318 };
10319
10320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10323 if (obj1) {
10324 arg2 = (int)SWIG_As_int(obj1);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 if (obj2) {
10328 {
10329 arg3 = &temp3;
10330 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10331 }
10332 }
10333 if (obj3) {
10334 {
10335 arg4 = &temp4;
10336 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10337 }
10338 }
10339 if (obj4) {
10340 arg5 = (long)SWIG_As_long(obj4);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 if (obj5) {
10344 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10345 SWIG_POINTER_EXCEPTION | 0)) == -1)
10346 SWIG_fail;
10347 if (arg6 == NULL) {
10348 PyErr_SetString(PyExc_TypeError,"null reference");
10349 SWIG_fail;
10350 }
10351 }
10352 if (obj6) {
10353 {
10354 arg7 = wxString_in_helper(obj6);
10355 if (arg7 == NULL) SWIG_fail;
10356 temp7 = true;
10357 }
10358 }
10359 {
10360 if (!wxPyCheckForApp()) SWIG_fail;
10361 PyThreadState* __tstate = wxPyBeginAllowThreads();
10362 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10363
10364 wxPyEndAllowThreads(__tstate);
10365 if (PyErr_Occurred()) SWIG_fail;
10366 }
10367 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10368 {
10369 if (temp7)
10370 delete arg7;
10371 }
10372 return resultobj;
10373 fail:
10374 {
10375 if (temp7)
10376 delete arg7;
10377 }
10378 return NULL;
10379 }
10380
10381
10382 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10383 PyObject *resultobj;
10384 wxScrollBar *result;
10385 char *kwnames[] = {
10386 NULL
10387 };
10388
10389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10390 {
10391 if (!wxPyCheckForApp()) SWIG_fail;
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 result = (wxScrollBar *)new wxScrollBar();
10394
10395 wxPyEndAllowThreads(__tstate);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 }
10398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10399 return resultobj;
10400 fail:
10401 return NULL;
10402 }
10403
10404
10405 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10406 PyObject *resultobj;
10407 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10408 wxWindow *arg2 = (wxWindow *) 0 ;
10409 int arg3 = (int) -1 ;
10410 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10411 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10412 wxSize const &arg5_defvalue = wxDefaultSize ;
10413 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10414 long arg6 = (long) wxSB_HORIZONTAL ;
10415 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10416 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10417 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10418 wxString *arg8 = (wxString *) &arg8_defvalue ;
10419 bool result;
10420 wxPoint temp4 ;
10421 wxSize temp5 ;
10422 bool temp8 = false ;
10423 PyObject * obj0 = 0 ;
10424 PyObject * obj1 = 0 ;
10425 PyObject * obj2 = 0 ;
10426 PyObject * obj3 = 0 ;
10427 PyObject * obj4 = 0 ;
10428 PyObject * obj5 = 0 ;
10429 PyObject * obj6 = 0 ;
10430 PyObject * obj7 = 0 ;
10431 char *kwnames[] = {
10432 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10433 };
10434
10435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10438 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10440 if (obj2) {
10441 arg3 = (int)SWIG_As_int(obj2);
10442 if (PyErr_Occurred()) SWIG_fail;
10443 }
10444 if (obj3) {
10445 {
10446 arg4 = &temp4;
10447 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10448 }
10449 }
10450 if (obj4) {
10451 {
10452 arg5 = &temp5;
10453 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10454 }
10455 }
10456 if (obj5) {
10457 arg6 = (long)SWIG_As_long(obj5);
10458 if (PyErr_Occurred()) SWIG_fail;
10459 }
10460 if (obj6) {
10461 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10462 SWIG_POINTER_EXCEPTION | 0)) == -1)
10463 SWIG_fail;
10464 if (arg7 == NULL) {
10465 PyErr_SetString(PyExc_TypeError,"null reference");
10466 SWIG_fail;
10467 }
10468 }
10469 if (obj7) {
10470 {
10471 arg8 = wxString_in_helper(obj7);
10472 if (arg8 == NULL) SWIG_fail;
10473 temp8 = true;
10474 }
10475 }
10476 {
10477 PyThreadState* __tstate = wxPyBeginAllowThreads();
10478 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10479
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 {
10484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10485 }
10486 {
10487 if (temp8)
10488 delete arg8;
10489 }
10490 return resultobj;
10491 fail:
10492 {
10493 if (temp8)
10494 delete arg8;
10495 }
10496 return NULL;
10497 }
10498
10499
10500 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj;
10502 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10503 int result;
10504 PyObject * obj0 = 0 ;
10505 char *kwnames[] = {
10506 (char *) "self", NULL
10507 };
10508
10509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
10514 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10515
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_From_int((int)result);
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10527 PyObject *resultobj;
10528 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10529 int result;
10530 PyObject * obj0 = 0 ;
10531 char *kwnames[] = {
10532 (char *) "self", NULL
10533 };
10534
10535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10541
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 resultobj = SWIG_From_int((int)result);
10546 return resultobj;
10547 fail:
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj;
10554 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10555 int result;
10556 PyObject * obj0 = 0 ;
10557 char *kwnames[] = {
10558 (char *) "self", NULL
10559 };
10560
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10567
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 resultobj = SWIG_From_int((int)result);
10572 return resultobj;
10573 fail:
10574 return NULL;
10575 }
10576
10577
10578 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10579 PyObject *resultobj;
10580 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10581 int result;
10582 PyObject * obj0 = 0 ;
10583 char *kwnames[] = {
10584 (char *) "self", NULL
10585 };
10586
10587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 result = (int)((wxScrollBar const *)arg1)->GetRange();
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 resultobj = SWIG_From_int((int)result);
10598 return resultobj;
10599 fail:
10600 return NULL;
10601 }
10602
10603
10604 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10605 PyObject *resultobj;
10606 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10607 bool result;
10608 PyObject * obj0 = 0 ;
10609 char *kwnames[] = {
10610 (char *) "self", NULL
10611 };
10612
10613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10619
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 {
10624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10625 }
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10633 PyObject *resultobj;
10634 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10635 int arg2 ;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 char *kwnames[] = {
10639 (char *) "self",(char *) "viewStart", NULL
10640 };
10641
10642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10645 arg2 = (int)SWIG_As_int(obj1);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 (arg1)->SetThumbPosition(arg2);
10650
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 Py_INCREF(Py_None); resultobj = Py_None;
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10664 int arg2 ;
10665 int arg3 ;
10666 int arg4 ;
10667 int arg5 ;
10668 bool arg6 = (bool) true ;
10669 PyObject * obj0 = 0 ;
10670 PyObject * obj1 = 0 ;
10671 PyObject * obj2 = 0 ;
10672 PyObject * obj3 = 0 ;
10673 PyObject * obj4 = 0 ;
10674 PyObject * obj5 = 0 ;
10675 char *kwnames[] = {
10676 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10677 };
10678
10679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10682 arg2 = (int)SWIG_As_int(obj1);
10683 if (PyErr_Occurred()) SWIG_fail;
10684 arg3 = (int)SWIG_As_int(obj2);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 arg4 = (int)SWIG_As_int(obj3);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 arg5 = (int)SWIG_As_int(obj4);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 if (obj5) {
10691 arg6 = (bool)SWIG_As_bool(obj5);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 }
10694 {
10695 PyThreadState* __tstate = wxPyBeginAllowThreads();
10696 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10697
10698 wxPyEndAllowThreads(__tstate);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 }
10701 Py_INCREF(Py_None); resultobj = Py_None;
10702 return resultobj;
10703 fail:
10704 return NULL;
10705 }
10706
10707
10708 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10709 PyObject *resultobj;
10710 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10711 wxVisualAttributes result;
10712 PyObject * obj0 = 0 ;
10713 char *kwnames[] = {
10714 (char *) "variant", NULL
10715 };
10716
10717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10718 if (obj0) {
10719 arg1 = (int)SWIG_As_int(obj0);
10720 if (PyErr_Occurred()) SWIG_fail;
10721 }
10722 {
10723 if (!wxPyCheckForApp()) SWIG_fail;
10724 PyThreadState* __tstate = wxPyBeginAllowThreads();
10725 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10726
10727 wxPyEndAllowThreads(__tstate);
10728 if (PyErr_Occurred()) SWIG_fail;
10729 }
10730 {
10731 wxVisualAttributes * resultptr;
10732 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10733 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10734 }
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10742 PyObject *obj;
10743 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10744 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10745 Py_INCREF(obj);
10746 return Py_BuildValue((char *)"");
10747 }
10748 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10749 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10750 return 1;
10751 }
10752
10753
10754 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10755 PyObject *pyobj;
10756
10757 {
10758 #if wxUSE_UNICODE
10759 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10760 #else
10761 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10762 #endif
10763 }
10764 return pyobj;
10765 }
10766
10767
10768 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10769 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10770 return 1;
10771 }
10772
10773
10774 static PyObject *_wrap_SpinCtrlNameStr_get() {
10775 PyObject *pyobj;
10776
10777 {
10778 #if wxUSE_UNICODE
10779 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10780 #else
10781 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10782 #endif
10783 }
10784 return pyobj;
10785 }
10786
10787
10788 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10789 PyObject *resultobj;
10790 wxWindow *arg1 = (wxWindow *) 0 ;
10791 int arg2 = (int) -1 ;
10792 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10793 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10794 wxSize const &arg4_defvalue = wxDefaultSize ;
10795 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10796 long arg5 = (long) wxSP_HORIZONTAL ;
10797 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10798 wxString *arg6 = (wxString *) &arg6_defvalue ;
10799 wxSpinButton *result;
10800 wxPoint temp3 ;
10801 wxSize temp4 ;
10802 bool temp6 = false ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 PyObject * obj2 = 0 ;
10806 PyObject * obj3 = 0 ;
10807 PyObject * obj4 = 0 ;
10808 PyObject * obj5 = 0 ;
10809 char *kwnames[] = {
10810 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10811 };
10812
10813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10816 if (obj1) {
10817 arg2 = (int)SWIG_As_int(obj1);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 if (obj2) {
10821 {
10822 arg3 = &temp3;
10823 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10824 }
10825 }
10826 if (obj3) {
10827 {
10828 arg4 = &temp4;
10829 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10830 }
10831 }
10832 if (obj4) {
10833 arg5 = (long)SWIG_As_long(obj4);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 if (obj5) {
10837 {
10838 arg6 = wxString_in_helper(obj5);
10839 if (arg6 == NULL) SWIG_fail;
10840 temp6 = true;
10841 }
10842 }
10843 {
10844 if (!wxPyCheckForApp()) SWIG_fail;
10845 PyThreadState* __tstate = wxPyBeginAllowThreads();
10846 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10847
10848 wxPyEndAllowThreads(__tstate);
10849 if (PyErr_Occurred()) SWIG_fail;
10850 }
10851 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10852 {
10853 if (temp6)
10854 delete arg6;
10855 }
10856 return resultobj;
10857 fail:
10858 {
10859 if (temp6)
10860 delete arg6;
10861 }
10862 return NULL;
10863 }
10864
10865
10866 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10867 PyObject *resultobj;
10868 wxSpinButton *result;
10869 char *kwnames[] = {
10870 NULL
10871 };
10872
10873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10874 {
10875 if (!wxPyCheckForApp()) SWIG_fail;
10876 PyThreadState* __tstate = wxPyBeginAllowThreads();
10877 result = (wxSpinButton *)new wxSpinButton();
10878
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10883 return resultobj;
10884 fail:
10885 return NULL;
10886 }
10887
10888
10889 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10890 PyObject *resultobj;
10891 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10892 wxWindow *arg2 = (wxWindow *) 0 ;
10893 int arg3 = (int) -1 ;
10894 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10895 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10896 wxSize const &arg5_defvalue = wxDefaultSize ;
10897 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10898 long arg6 = (long) wxSP_HORIZONTAL ;
10899 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10900 wxString *arg7 = (wxString *) &arg7_defvalue ;
10901 bool result;
10902 wxPoint temp4 ;
10903 wxSize temp5 ;
10904 bool temp7 = false ;
10905 PyObject * obj0 = 0 ;
10906 PyObject * obj1 = 0 ;
10907 PyObject * obj2 = 0 ;
10908 PyObject * obj3 = 0 ;
10909 PyObject * obj4 = 0 ;
10910 PyObject * obj5 = 0 ;
10911 PyObject * obj6 = 0 ;
10912 char *kwnames[] = {
10913 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10914 };
10915
10916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10921 if (obj2) {
10922 arg3 = (int)SWIG_As_int(obj2);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 }
10925 if (obj3) {
10926 {
10927 arg4 = &temp4;
10928 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10929 }
10930 }
10931 if (obj4) {
10932 {
10933 arg5 = &temp5;
10934 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10935 }
10936 }
10937 if (obj5) {
10938 arg6 = (long)SWIG_As_long(obj5);
10939 if (PyErr_Occurred()) SWIG_fail;
10940 }
10941 if (obj6) {
10942 {
10943 arg7 = wxString_in_helper(obj6);
10944 if (arg7 == NULL) SWIG_fail;
10945 temp7 = true;
10946 }
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 {
10956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10957 }
10958 {
10959 if (temp7)
10960 delete arg7;
10961 }
10962 return resultobj;
10963 fail:
10964 {
10965 if (temp7)
10966 delete arg7;
10967 }
10968 return NULL;
10969 }
10970
10971
10972 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10973 PyObject *resultobj;
10974 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10975 int result;
10976 PyObject * obj0 = 0 ;
10977 char *kwnames[] = {
10978 (char *) "self", NULL
10979 };
10980
10981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 result = (int)((wxSpinButton const *)arg1)->GetValue();
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_From_int((int)result);
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj;
11000 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11001 int result;
11002 PyObject * obj0 = 0 ;
11003 char *kwnames[] = {
11004 (char *) "self", NULL
11005 };
11006
11007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
11008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11010 {
11011 PyThreadState* __tstate = wxPyBeginAllowThreads();
11012 result = (int)((wxSpinButton const *)arg1)->GetMin();
11013
11014 wxPyEndAllowThreads(__tstate);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 }
11017 resultobj = SWIG_From_int((int)result);
11018 return resultobj;
11019 fail:
11020 return NULL;
11021 }
11022
11023
11024 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11025 PyObject *resultobj;
11026 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11027 int result;
11028 PyObject * obj0 = 0 ;
11029 char *kwnames[] = {
11030 (char *) "self", NULL
11031 };
11032
11033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
11034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11036 {
11037 PyThreadState* __tstate = wxPyBeginAllowThreads();
11038 result = (int)((wxSpinButton const *)arg1)->GetMax();
11039
11040 wxPyEndAllowThreads(__tstate);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 resultobj = SWIG_From_int((int)result);
11044 return resultobj;
11045 fail:
11046 return NULL;
11047 }
11048
11049
11050 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11051 PyObject *resultobj;
11052 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11053 int arg2 ;
11054 PyObject * obj0 = 0 ;
11055 PyObject * obj1 = 0 ;
11056 char *kwnames[] = {
11057 (char *) "self",(char *) "val", NULL
11058 };
11059
11060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11063 arg2 = (int)SWIG_As_int(obj1);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 {
11066 PyThreadState* __tstate = wxPyBeginAllowThreads();
11067 (arg1)->SetValue(arg2);
11068
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 Py_INCREF(Py_None); resultobj = Py_None;
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11080 PyObject *resultobj;
11081 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11082 int arg2 ;
11083 PyObject * obj0 = 0 ;
11084 PyObject * obj1 = 0 ;
11085 char *kwnames[] = {
11086 (char *) "self",(char *) "minVal", NULL
11087 };
11088
11089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11092 arg2 = (int)SWIG_As_int(obj1);
11093 if (PyErr_Occurred()) SWIG_fail;
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 (arg1)->SetMin(arg2);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 Py_INCREF(Py_None); resultobj = Py_None;
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj;
11110 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11111 int arg2 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 char *kwnames[] = {
11115 (char *) "self",(char *) "maxVal", NULL
11116 };
11117
11118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11121 arg2 = (int)SWIG_As_int(obj1);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 (arg1)->SetMax(arg2);
11126
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 Py_INCREF(Py_None); resultobj = Py_None;
11131 return resultobj;
11132 fail:
11133 return NULL;
11134 }
11135
11136
11137 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11138 PyObject *resultobj;
11139 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11140 int arg2 ;
11141 int arg3 ;
11142 PyObject * obj0 = 0 ;
11143 PyObject * obj1 = 0 ;
11144 PyObject * obj2 = 0 ;
11145 char *kwnames[] = {
11146 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11147 };
11148
11149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11152 arg2 = (int)SWIG_As_int(obj1);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 arg3 = (int)SWIG_As_int(obj2);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 {
11157 PyThreadState* __tstate = wxPyBeginAllowThreads();
11158 (arg1)->SetRange(arg2,arg3);
11159
11160 wxPyEndAllowThreads(__tstate);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 }
11163 Py_INCREF(Py_None); resultobj = Py_None;
11164 return resultobj;
11165 fail:
11166 return NULL;
11167 }
11168
11169
11170 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11171 PyObject *resultobj;
11172 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11173 bool result;
11174 PyObject * obj0 = 0 ;
11175 char *kwnames[] = {
11176 (char *) "self", NULL
11177 };
11178
11179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11185
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 {
11190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11191 }
11192 return resultobj;
11193 fail:
11194 return NULL;
11195 }
11196
11197
11198 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11201 wxVisualAttributes result;
11202 PyObject * obj0 = 0 ;
11203 char *kwnames[] = {
11204 (char *) "variant", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11208 if (obj0) {
11209 arg1 = (int)SWIG_As_int(obj0);
11210 if (PyErr_Occurred()) SWIG_fail;
11211 }
11212 {
11213 if (!wxPyCheckForApp()) SWIG_fail;
11214 PyThreadState* __tstate = wxPyBeginAllowThreads();
11215 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11216
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 {
11221 wxVisualAttributes * resultptr;
11222 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11224 }
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11232 PyObject *obj;
11233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11234 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11235 Py_INCREF(obj);
11236 return Py_BuildValue((char *)"");
11237 }
11238 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj;
11240 wxWindow *arg1 = (wxWindow *) 0 ;
11241 int arg2 = (int) -1 ;
11242 wxString const &arg3_defvalue = wxPyEmptyString ;
11243 wxString *arg3 = (wxString *) &arg3_defvalue ;
11244 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11245 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11246 wxSize const &arg5_defvalue = wxDefaultSize ;
11247 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11248 long arg6 = (long) wxSP_ARROW_KEYS ;
11249 int arg7 = (int) 0 ;
11250 int arg8 = (int) 100 ;
11251 int arg9 = (int) 0 ;
11252 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11253 wxString *arg10 = (wxString *) &arg10_defvalue ;
11254 wxSpinCtrl *result;
11255 bool temp3 = false ;
11256 wxPoint temp4 ;
11257 wxSize temp5 ;
11258 bool temp10 = false ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 PyObject * obj2 = 0 ;
11262 PyObject * obj3 = 0 ;
11263 PyObject * obj4 = 0 ;
11264 PyObject * obj5 = 0 ;
11265 PyObject * obj6 = 0 ;
11266 PyObject * obj7 = 0 ;
11267 PyObject * obj8 = 0 ;
11268 PyObject * obj9 = 0 ;
11269 char *kwnames[] = {
11270 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11271 };
11272
11273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11276 if (obj1) {
11277 arg2 = (int)SWIG_As_int(obj1);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 if (obj2) {
11281 {
11282 arg3 = wxString_in_helper(obj2);
11283 if (arg3 == NULL) SWIG_fail;
11284 temp3 = true;
11285 }
11286 }
11287 if (obj3) {
11288 {
11289 arg4 = &temp4;
11290 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11291 }
11292 }
11293 if (obj4) {
11294 {
11295 arg5 = &temp5;
11296 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11297 }
11298 }
11299 if (obj5) {
11300 arg6 = (long)SWIG_As_long(obj5);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 if (obj6) {
11304 arg7 = (int)SWIG_As_int(obj6);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 if (obj7) {
11308 arg8 = (int)SWIG_As_int(obj7);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 if (obj8) {
11312 arg9 = (int)SWIG_As_int(obj8);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 if (obj9) {
11316 {
11317 arg10 = wxString_in_helper(obj9);
11318 if (arg10 == NULL) SWIG_fail;
11319 temp10 = true;
11320 }
11321 }
11322 {
11323 if (!wxPyCheckForApp()) SWIG_fail;
11324 PyThreadState* __tstate = wxPyBeginAllowThreads();
11325 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11326
11327 wxPyEndAllowThreads(__tstate);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11331 {
11332 if (temp3)
11333 delete arg3;
11334 }
11335 {
11336 if (temp10)
11337 delete arg10;
11338 }
11339 return resultobj;
11340 fail:
11341 {
11342 if (temp3)
11343 delete arg3;
11344 }
11345 {
11346 if (temp10)
11347 delete arg10;
11348 }
11349 return NULL;
11350 }
11351
11352
11353 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj;
11355 wxSpinCtrl *result;
11356 char *kwnames[] = {
11357 NULL
11358 };
11359
11360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11361 {
11362 if (!wxPyCheckForApp()) SWIG_fail;
11363 PyThreadState* __tstate = wxPyBeginAllowThreads();
11364 result = (wxSpinCtrl *)new wxSpinCtrl();
11365
11366 wxPyEndAllowThreads(__tstate);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11370 return resultobj;
11371 fail:
11372 return NULL;
11373 }
11374
11375
11376 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11377 PyObject *resultobj;
11378 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11379 wxWindow *arg2 = (wxWindow *) 0 ;
11380 int arg3 = (int) -1 ;
11381 wxString const &arg4_defvalue = wxPyEmptyString ;
11382 wxString *arg4 = (wxString *) &arg4_defvalue ;
11383 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11384 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11385 wxSize const &arg6_defvalue = wxDefaultSize ;
11386 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11387 long arg7 = (long) wxSP_ARROW_KEYS ;
11388 int arg8 = (int) 0 ;
11389 int arg9 = (int) 100 ;
11390 int arg10 = (int) 0 ;
11391 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11392 wxString *arg11 = (wxString *) &arg11_defvalue ;
11393 bool result;
11394 bool temp4 = false ;
11395 wxPoint temp5 ;
11396 wxSize temp6 ;
11397 bool temp11 = false ;
11398 PyObject * obj0 = 0 ;
11399 PyObject * obj1 = 0 ;
11400 PyObject * obj2 = 0 ;
11401 PyObject * obj3 = 0 ;
11402 PyObject * obj4 = 0 ;
11403 PyObject * obj5 = 0 ;
11404 PyObject * obj6 = 0 ;
11405 PyObject * obj7 = 0 ;
11406 PyObject * obj8 = 0 ;
11407 PyObject * obj9 = 0 ;
11408 PyObject * obj10 = 0 ;
11409 char *kwnames[] = {
11410 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11411 };
11412
11413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11418 if (obj2) {
11419 arg3 = (int)SWIG_As_int(obj2);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 }
11422 if (obj3) {
11423 {
11424 arg4 = wxString_in_helper(obj3);
11425 if (arg4 == NULL) SWIG_fail;
11426 temp4 = true;
11427 }
11428 }
11429 if (obj4) {
11430 {
11431 arg5 = &temp5;
11432 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11433 }
11434 }
11435 if (obj5) {
11436 {
11437 arg6 = &temp6;
11438 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11439 }
11440 }
11441 if (obj6) {
11442 arg7 = (long)SWIG_As_long(obj6);
11443 if (PyErr_Occurred()) SWIG_fail;
11444 }
11445 if (obj7) {
11446 arg8 = (int)SWIG_As_int(obj7);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 if (obj8) {
11450 arg9 = (int)SWIG_As_int(obj8);
11451 if (PyErr_Occurred()) SWIG_fail;
11452 }
11453 if (obj9) {
11454 arg10 = (int)SWIG_As_int(obj9);
11455 if (PyErr_Occurred()) SWIG_fail;
11456 }
11457 if (obj10) {
11458 {
11459 arg11 = wxString_in_helper(obj10);
11460 if (arg11 == NULL) SWIG_fail;
11461 temp11 = true;
11462 }
11463 }
11464 {
11465 PyThreadState* __tstate = wxPyBeginAllowThreads();
11466 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11467
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 {
11472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11473 }
11474 {
11475 if (temp4)
11476 delete arg4;
11477 }
11478 {
11479 if (temp11)
11480 delete arg11;
11481 }
11482 return resultobj;
11483 fail:
11484 {
11485 if (temp4)
11486 delete arg4;
11487 }
11488 {
11489 if (temp11)
11490 delete arg11;
11491 }
11492 return NULL;
11493 }
11494
11495
11496 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11497 PyObject *resultobj;
11498 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11499 int result;
11500 PyObject * obj0 = 0 ;
11501 char *kwnames[] = {
11502 (char *) "self", NULL
11503 };
11504
11505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11511
11512 wxPyEndAllowThreads(__tstate);
11513 if (PyErr_Occurred()) SWIG_fail;
11514 }
11515 resultobj = SWIG_From_int((int)result);
11516 return resultobj;
11517 fail:
11518 return NULL;
11519 }
11520
11521
11522 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11523 PyObject *resultobj;
11524 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11525 int arg2 ;
11526 PyObject * obj0 = 0 ;
11527 PyObject * obj1 = 0 ;
11528 char *kwnames[] = {
11529 (char *) "self",(char *) "value", NULL
11530 };
11531
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11535 arg2 = (int)SWIG_As_int(obj1);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 (arg1)->SetValue(arg2);
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 Py_INCREF(Py_None); resultobj = Py_None;
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj;
11553 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11554 wxString *arg2 = 0 ;
11555 bool temp2 = false ;
11556 PyObject * obj0 = 0 ;
11557 PyObject * obj1 = 0 ;
11558 char *kwnames[] = {
11559 (char *) "self",(char *) "text", NULL
11560 };
11561
11562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 {
11566 arg2 = wxString_in_helper(obj1);
11567 if (arg2 == NULL) SWIG_fail;
11568 temp2 = true;
11569 }
11570 {
11571 PyThreadState* __tstate = wxPyBeginAllowThreads();
11572 (arg1)->SetValue((wxString const &)*arg2);
11573
11574 wxPyEndAllowThreads(__tstate);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 }
11577 Py_INCREF(Py_None); resultobj = Py_None;
11578 {
11579 if (temp2)
11580 delete arg2;
11581 }
11582 return resultobj;
11583 fail:
11584 {
11585 if (temp2)
11586 delete arg2;
11587 }
11588 return NULL;
11589 }
11590
11591
11592 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11593 PyObject *resultobj;
11594 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11595 int arg2 ;
11596 int arg3 ;
11597 PyObject * obj0 = 0 ;
11598 PyObject * obj1 = 0 ;
11599 PyObject * obj2 = 0 ;
11600 char *kwnames[] = {
11601 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11602 };
11603
11604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11607 arg2 = (int)SWIG_As_int(obj1);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 arg3 = (int)SWIG_As_int(obj2);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 {
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 (arg1)->SetRange(arg2,arg3);
11614
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 Py_INCREF(Py_None); resultobj = Py_None;
11619 return resultobj;
11620 fail:
11621 return NULL;
11622 }
11623
11624
11625 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11626 PyObject *resultobj;
11627 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11628 int result;
11629 PyObject * obj0 = 0 ;
11630 char *kwnames[] = {
11631 (char *) "self", NULL
11632 };
11633
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11640
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 resultobj = SWIG_From_int((int)result);
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj;
11653 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11654 int result;
11655 PyObject * obj0 = 0 ;
11656 char *kwnames[] = {
11657 (char *) "self", NULL
11658 };
11659
11660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11663 {
11664 PyThreadState* __tstate = wxPyBeginAllowThreads();
11665 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11666
11667 wxPyEndAllowThreads(__tstate);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 resultobj = SWIG_From_int((int)result);
11671 return resultobj;
11672 fail:
11673 return NULL;
11674 }
11675
11676
11677 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11678 PyObject *resultobj;
11679 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11680 long arg2 ;
11681 long arg3 ;
11682 PyObject * obj0 = 0 ;
11683 PyObject * obj1 = 0 ;
11684 PyObject * obj2 = 0 ;
11685 char *kwnames[] = {
11686 (char *) "self",(char *) "from",(char *) "to", NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11692 arg2 = (long)SWIG_As_long(obj1);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 arg3 = (long)SWIG_As_long(obj2);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 (arg1)->SetSelection(arg2,arg3);
11699
11700 wxPyEndAllowThreads(__tstate);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 Py_INCREF(Py_None); resultobj = Py_None;
11704 return resultobj;
11705 fail:
11706 return NULL;
11707 }
11708
11709
11710 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11711 PyObject *resultobj;
11712 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11713 wxVisualAttributes result;
11714 PyObject * obj0 = 0 ;
11715 char *kwnames[] = {
11716 (char *) "variant", NULL
11717 };
11718
11719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11720 if (obj0) {
11721 arg1 = (int)SWIG_As_int(obj0);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 {
11725 if (!wxPyCheckForApp()) SWIG_fail;
11726 PyThreadState* __tstate = wxPyBeginAllowThreads();
11727 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11728
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 {
11733 wxVisualAttributes * resultptr;
11734 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11736 }
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11744 PyObject *obj;
11745 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11746 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11747 Py_INCREF(obj);
11748 return Py_BuildValue((char *)"");
11749 }
11750 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11751 PyObject *resultobj;
11752 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11753 int arg2 = (int) 0 ;
11754 wxSpinEvent *result;
11755 PyObject * obj0 = 0 ;
11756 PyObject * obj1 = 0 ;
11757 char *kwnames[] = {
11758 (char *) "commandType",(char *) "winid", NULL
11759 };
11760
11761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11762 if (obj0) {
11763 arg1 = (wxEventType)SWIG_As_int(obj0);
11764 if (PyErr_Occurred()) SWIG_fail;
11765 }
11766 if (obj1) {
11767 arg2 = (int)SWIG_As_int(obj1);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11773
11774 wxPyEndAllowThreads(__tstate);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 }
11777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11778 return resultobj;
11779 fail:
11780 return NULL;
11781 }
11782
11783
11784 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11785 PyObject *resultobj;
11786 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11787 int result;
11788 PyObject * obj0 = 0 ;
11789 char *kwnames[] = {
11790 (char *) "self", NULL
11791 };
11792
11793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11796 {
11797 PyThreadState* __tstate = wxPyBeginAllowThreads();
11798 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11799
11800 wxPyEndAllowThreads(__tstate);
11801 if (PyErr_Occurred()) SWIG_fail;
11802 }
11803 resultobj = SWIG_From_int((int)result);
11804 return resultobj;
11805 fail:
11806 return NULL;
11807 }
11808
11809
11810 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11811 PyObject *resultobj;
11812 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11813 int arg2 ;
11814 PyObject * obj0 = 0 ;
11815 PyObject * obj1 = 0 ;
11816 char *kwnames[] = {
11817 (char *) "self",(char *) "pos", NULL
11818 };
11819
11820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11823 arg2 = (int)SWIG_As_int(obj1);
11824 if (PyErr_Occurred()) SWIG_fail;
11825 {
11826 PyThreadState* __tstate = wxPyBeginAllowThreads();
11827 (arg1)->SetPosition(arg2);
11828
11829 wxPyEndAllowThreads(__tstate);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 Py_INCREF(Py_None); resultobj = Py_None;
11833 return resultobj;
11834 fail:
11835 return NULL;
11836 }
11837
11838
11839 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11840 PyObject *obj;
11841 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11842 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11843 Py_INCREF(obj);
11844 return Py_BuildValue((char *)"");
11845 }
11846 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11847 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11848 return 1;
11849 }
11850
11851
11852 static PyObject *_wrap_RadioBoxNameStr_get() {
11853 PyObject *pyobj;
11854
11855 {
11856 #if wxUSE_UNICODE
11857 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11858 #else
11859 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11860 #endif
11861 }
11862 return pyobj;
11863 }
11864
11865
11866 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11867 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11868 return 1;
11869 }
11870
11871
11872 static PyObject *_wrap_RadioButtonNameStr_get() {
11873 PyObject *pyobj;
11874
11875 {
11876 #if wxUSE_UNICODE
11877 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11878 #else
11879 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11880 #endif
11881 }
11882 return pyobj;
11883 }
11884
11885
11886 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11887 PyObject *resultobj;
11888 wxWindow *arg1 = (wxWindow *) 0 ;
11889 int arg2 = (int) -1 ;
11890 wxString const &arg3_defvalue = wxPyEmptyString ;
11891 wxString *arg3 = (wxString *) &arg3_defvalue ;
11892 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11893 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11894 wxSize const &arg5_defvalue = wxDefaultSize ;
11895 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11896 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11897 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11898 int arg7 = (int) 0 ;
11899 long arg8 = (long) wxRA_HORIZONTAL ;
11900 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11901 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11902 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11903 wxString *arg10 = (wxString *) &arg10_defvalue ;
11904 wxRadioBox *result;
11905 bool temp3 = false ;
11906 wxPoint temp4 ;
11907 wxSize temp5 ;
11908 bool temp6 = false ;
11909 bool temp10 = false ;
11910 PyObject * obj0 = 0 ;
11911 PyObject * obj1 = 0 ;
11912 PyObject * obj2 = 0 ;
11913 PyObject * obj3 = 0 ;
11914 PyObject * obj4 = 0 ;
11915 PyObject * obj5 = 0 ;
11916 PyObject * obj6 = 0 ;
11917 PyObject * obj7 = 0 ;
11918 PyObject * obj8 = 0 ;
11919 PyObject * obj9 = 0 ;
11920 char *kwnames[] = {
11921 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11922 };
11923
11924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11927 if (obj1) {
11928 arg2 = (int)SWIG_As_int(obj1);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 if (obj2) {
11932 {
11933 arg3 = wxString_in_helper(obj2);
11934 if (arg3 == NULL) SWIG_fail;
11935 temp3 = true;
11936 }
11937 }
11938 if (obj3) {
11939 {
11940 arg4 = &temp4;
11941 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11942 }
11943 }
11944 if (obj4) {
11945 {
11946 arg5 = &temp5;
11947 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11948 }
11949 }
11950 if (obj5) {
11951 {
11952 if (! PySequence_Check(obj5)) {
11953 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11954 SWIG_fail;
11955 }
11956 arg6 = new wxArrayString;
11957 temp6 = true;
11958 int i, len=PySequence_Length(obj5);
11959 for (i=0; i<len; i++) {
11960 PyObject* item = PySequence_GetItem(obj5, i);
11961 #if wxUSE_UNICODE
11962 PyObject* str = PyObject_Unicode(item);
11963 #else
11964 PyObject* str = PyObject_Str(item);
11965 #endif
11966 if (PyErr_Occurred()) SWIG_fail;
11967 arg6->Add(Py2wxString(str));
11968 Py_DECREF(item);
11969 Py_DECREF(str);
11970 }
11971 }
11972 }
11973 if (obj6) {
11974 arg7 = (int)SWIG_As_int(obj6);
11975 if (PyErr_Occurred()) SWIG_fail;
11976 }
11977 if (obj7) {
11978 arg8 = (long)SWIG_As_long(obj7);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 if (obj8) {
11982 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11983 SWIG_POINTER_EXCEPTION | 0)) == -1)
11984 SWIG_fail;
11985 if (arg9 == NULL) {
11986 PyErr_SetString(PyExc_TypeError,"null reference");
11987 SWIG_fail;
11988 }
11989 }
11990 if (obj9) {
11991 {
11992 arg10 = wxString_in_helper(obj9);
11993 if (arg10 == NULL) SWIG_fail;
11994 temp10 = true;
11995 }
11996 }
11997 {
11998 if (!wxPyCheckForApp()) SWIG_fail;
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 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);
12001
12002 wxPyEndAllowThreads(__tstate);
12003 if (PyErr_Occurred()) SWIG_fail;
12004 }
12005 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12006 {
12007 if (temp3)
12008 delete arg3;
12009 }
12010 {
12011 if (temp6) delete arg6;
12012 }
12013 {
12014 if (temp10)
12015 delete arg10;
12016 }
12017 return resultobj;
12018 fail:
12019 {
12020 if (temp3)
12021 delete arg3;
12022 }
12023 {
12024 if (temp6) delete arg6;
12025 }
12026 {
12027 if (temp10)
12028 delete arg10;
12029 }
12030 return NULL;
12031 }
12032
12033
12034 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
12035 PyObject *resultobj;
12036 wxRadioBox *result;
12037 char *kwnames[] = {
12038 NULL
12039 };
12040
12041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
12042 {
12043 if (!wxPyCheckForApp()) SWIG_fail;
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (wxRadioBox *)new wxRadioBox();
12046
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12051 return resultobj;
12052 fail:
12053 return NULL;
12054 }
12055
12056
12057 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12058 PyObject *resultobj;
12059 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12060 wxWindow *arg2 = (wxWindow *) 0 ;
12061 int arg3 = (int) -1 ;
12062 wxString const &arg4_defvalue = wxPyEmptyString ;
12063 wxString *arg4 = (wxString *) &arg4_defvalue ;
12064 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12065 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12066 wxSize const &arg6_defvalue = wxDefaultSize ;
12067 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12068 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12069 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12070 int arg8 = (int) 0 ;
12071 long arg9 = (long) wxRA_HORIZONTAL ;
12072 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12073 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12074 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12075 wxString *arg11 = (wxString *) &arg11_defvalue ;
12076 bool result;
12077 bool temp4 = false ;
12078 wxPoint temp5 ;
12079 wxSize temp6 ;
12080 bool temp7 = false ;
12081 bool temp11 = false ;
12082 PyObject * obj0 = 0 ;
12083 PyObject * obj1 = 0 ;
12084 PyObject * obj2 = 0 ;
12085 PyObject * obj3 = 0 ;
12086 PyObject * obj4 = 0 ;
12087 PyObject * obj5 = 0 ;
12088 PyObject * obj6 = 0 ;
12089 PyObject * obj7 = 0 ;
12090 PyObject * obj8 = 0 ;
12091 PyObject * obj9 = 0 ;
12092 PyObject * obj10 = 0 ;
12093 char *kwnames[] = {
12094 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12095 };
12096
12097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12102 if (obj2) {
12103 arg3 = (int)SWIG_As_int(obj2);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 if (obj3) {
12107 {
12108 arg4 = wxString_in_helper(obj3);
12109 if (arg4 == NULL) SWIG_fail;
12110 temp4 = true;
12111 }
12112 }
12113 if (obj4) {
12114 {
12115 arg5 = &temp5;
12116 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12117 }
12118 }
12119 if (obj5) {
12120 {
12121 arg6 = &temp6;
12122 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12123 }
12124 }
12125 if (obj6) {
12126 {
12127 if (! PySequence_Check(obj6)) {
12128 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12129 SWIG_fail;
12130 }
12131 arg7 = new wxArrayString;
12132 temp7 = true;
12133 int i, len=PySequence_Length(obj6);
12134 for (i=0; i<len; i++) {
12135 PyObject* item = PySequence_GetItem(obj6, i);
12136 #if wxUSE_UNICODE
12137 PyObject* str = PyObject_Unicode(item);
12138 #else
12139 PyObject* str = PyObject_Str(item);
12140 #endif
12141 if (PyErr_Occurred()) SWIG_fail;
12142 arg7->Add(Py2wxString(str));
12143 Py_DECREF(item);
12144 Py_DECREF(str);
12145 }
12146 }
12147 }
12148 if (obj7) {
12149 arg8 = (int)SWIG_As_int(obj7);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 if (obj8) {
12153 arg9 = (long)SWIG_As_long(obj8);
12154 if (PyErr_Occurred()) SWIG_fail;
12155 }
12156 if (obj9) {
12157 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12158 SWIG_POINTER_EXCEPTION | 0)) == -1)
12159 SWIG_fail;
12160 if (arg10 == NULL) {
12161 PyErr_SetString(PyExc_TypeError,"null reference");
12162 SWIG_fail;
12163 }
12164 }
12165 if (obj10) {
12166 {
12167 arg11 = wxString_in_helper(obj10);
12168 if (arg11 == NULL) SWIG_fail;
12169 temp11 = true;
12170 }
12171 }
12172 {
12173 PyThreadState* __tstate = wxPyBeginAllowThreads();
12174 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);
12175
12176 wxPyEndAllowThreads(__tstate);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 {
12180 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12181 }
12182 {
12183 if (temp4)
12184 delete arg4;
12185 }
12186 {
12187 if (temp7) delete arg7;
12188 }
12189 {
12190 if (temp11)
12191 delete arg11;
12192 }
12193 return resultobj;
12194 fail:
12195 {
12196 if (temp4)
12197 delete arg4;
12198 }
12199 {
12200 if (temp7) delete arg7;
12201 }
12202 {
12203 if (temp11)
12204 delete arg11;
12205 }
12206 return NULL;
12207 }
12208
12209
12210 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12211 PyObject *resultobj;
12212 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12213 int arg2 ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 char *kwnames[] = {
12217 (char *) "self",(char *) "n", NULL
12218 };
12219
12220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12223 arg2 = (int)SWIG_As_int(obj1);
12224 if (PyErr_Occurred()) SWIG_fail;
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 (arg1)->SetSelection(arg2);
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 Py_INCREF(Py_None); resultobj = Py_None;
12233 return resultobj;
12234 fail:
12235 return NULL;
12236 }
12237
12238
12239 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12240 PyObject *resultobj;
12241 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12242 int result;
12243 PyObject * obj0 = 0 ;
12244 char *kwnames[] = {
12245 (char *) "self", NULL
12246 };
12247
12248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12251 {
12252 PyThreadState* __tstate = wxPyBeginAllowThreads();
12253 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12254
12255 wxPyEndAllowThreads(__tstate);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 resultobj = SWIG_From_int((int)result);
12259 return resultobj;
12260 fail:
12261 return NULL;
12262 }
12263
12264
12265 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12266 PyObject *resultobj;
12267 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12268 wxString result;
12269 PyObject * obj0 = 0 ;
12270 char *kwnames[] = {
12271 (char *) "self", NULL
12272 };
12273
12274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285 #if wxUSE_UNICODE
12286 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12287 #else
12288 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12289 #endif
12290 }
12291 return resultobj;
12292 fail:
12293 return NULL;
12294 }
12295
12296
12297 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12298 PyObject *resultobj;
12299 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12300 wxString *arg2 = 0 ;
12301 bool result;
12302 bool temp2 = false ;
12303 PyObject * obj0 = 0 ;
12304 PyObject * obj1 = 0 ;
12305 char *kwnames[] = {
12306 (char *) "self",(char *) "s", NULL
12307 };
12308
12309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12312 {
12313 arg2 = wxString_in_helper(obj1);
12314 if (arg2 == NULL) SWIG_fail;
12315 temp2 = true;
12316 }
12317 {
12318 PyThreadState* __tstate = wxPyBeginAllowThreads();
12319 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12320
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 {
12325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12326 }
12327 {
12328 if (temp2)
12329 delete arg2;
12330 }
12331 return resultobj;
12332 fail:
12333 {
12334 if (temp2)
12335 delete arg2;
12336 }
12337 return NULL;
12338 }
12339
12340
12341 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12342 PyObject *resultobj;
12343 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12344 int result;
12345 PyObject * obj0 = 0 ;
12346 char *kwnames[] = {
12347 (char *) "self", NULL
12348 };
12349
12350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 result = (int)((wxRadioBox const *)arg1)->GetCount();
12356
12357 wxPyEndAllowThreads(__tstate);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 resultobj = SWIG_From_int((int)result);
12361 return resultobj;
12362 fail:
12363 return NULL;
12364 }
12365
12366
12367 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12368 PyObject *resultobj;
12369 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12370 wxString *arg2 = 0 ;
12371 int result;
12372 bool temp2 = false ;
12373 PyObject * obj0 = 0 ;
12374 PyObject * obj1 = 0 ;
12375 char *kwnames[] = {
12376 (char *) "self",(char *) "s", NULL
12377 };
12378
12379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12382 {
12383 arg2 = wxString_in_helper(obj1);
12384 if (arg2 == NULL) SWIG_fail;
12385 temp2 = true;
12386 }
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12390
12391 wxPyEndAllowThreads(__tstate);
12392 if (PyErr_Occurred()) SWIG_fail;
12393 }
12394 resultobj = SWIG_From_int((int)result);
12395 {
12396 if (temp2)
12397 delete arg2;
12398 }
12399 return resultobj;
12400 fail:
12401 {
12402 if (temp2)
12403 delete arg2;
12404 }
12405 return NULL;
12406 }
12407
12408
12409 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12410 PyObject *resultobj;
12411 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12412 int arg2 ;
12413 wxString result;
12414 PyObject * obj0 = 0 ;
12415 PyObject * obj1 = 0 ;
12416 char *kwnames[] = {
12417 (char *) "self",(char *) "n", NULL
12418 };
12419
12420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12423 arg2 = (int)SWIG_As_int(obj1);
12424 if (PyErr_Occurred()) SWIG_fail;
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 {
12433 #if wxUSE_UNICODE
12434 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12435 #else
12436 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12437 #endif
12438 }
12439 return resultobj;
12440 fail:
12441 return NULL;
12442 }
12443
12444
12445 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12446 PyObject *resultobj;
12447 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12448 int arg2 ;
12449 wxString *arg3 = 0 ;
12450 bool temp3 = false ;
12451 PyObject * obj0 = 0 ;
12452 PyObject * obj1 = 0 ;
12453 PyObject * obj2 = 0 ;
12454 char *kwnames[] = {
12455 (char *) "self",(char *) "n",(char *) "label", NULL
12456 };
12457
12458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12461 arg2 = (int)SWIG_As_int(obj1);
12462 if (PyErr_Occurred()) SWIG_fail;
12463 {
12464 arg3 = wxString_in_helper(obj2);
12465 if (arg3 == NULL) SWIG_fail;
12466 temp3 = true;
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 (arg1)->SetString(arg2,(wxString const &)*arg3);
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 Py_INCREF(Py_None); resultobj = Py_None;
12476 {
12477 if (temp3)
12478 delete arg3;
12479 }
12480 return resultobj;
12481 fail:
12482 {
12483 if (temp3)
12484 delete arg3;
12485 }
12486 return NULL;
12487 }
12488
12489
12490 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj;
12492 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12493 int arg2 ;
12494 bool arg3 = (bool) true ;
12495 PyObject * obj0 = 0 ;
12496 PyObject * obj1 = 0 ;
12497 PyObject * obj2 = 0 ;
12498 char *kwnames[] = {
12499 (char *) "self",(char *) "n",(char *) "enable", NULL
12500 };
12501
12502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12505 arg2 = (int)SWIG_As_int(obj1);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 if (obj2) {
12508 arg3 = (bool)SWIG_As_bool(obj2);
12509 if (PyErr_Occurred()) SWIG_fail;
12510 }
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 (arg1)->Enable(arg2,arg3);
12514
12515 wxPyEndAllowThreads(__tstate);
12516 if (PyErr_Occurred()) SWIG_fail;
12517 }
12518 Py_INCREF(Py_None); resultobj = Py_None;
12519 return resultobj;
12520 fail:
12521 return NULL;
12522 }
12523
12524
12525 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12526 PyObject *resultobj;
12527 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12528 int arg2 ;
12529 bool arg3 = (bool) true ;
12530 PyObject * obj0 = 0 ;
12531 PyObject * obj1 = 0 ;
12532 PyObject * obj2 = 0 ;
12533 char *kwnames[] = {
12534 (char *) "self",(char *) "n",(char *) "show", NULL
12535 };
12536
12537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12540 arg2 = (int)SWIG_As_int(obj1);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 if (obj2) {
12543 arg3 = (bool)SWIG_As_bool(obj2);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->Show(arg2,arg3);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 return resultobj;
12555 fail:
12556 return NULL;
12557 }
12558
12559
12560 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12561 PyObject *resultobj;
12562 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12563 int result;
12564 PyObject * obj0 = 0 ;
12565 char *kwnames[] = {
12566 (char *) "self", NULL
12567 };
12568
12569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 resultobj = SWIG_From_int((int)result);
12580 return resultobj;
12581 fail:
12582 return NULL;
12583 }
12584
12585
12586 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12587 PyObject *resultobj;
12588 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12589 int result;
12590 PyObject * obj0 = 0 ;
12591 char *kwnames[] = {
12592 (char *) "self", NULL
12593 };
12594
12595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = SWIG_From_int((int)result);
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12613 PyObject *resultobj;
12614 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12615 int arg2 ;
12616 int arg3 ;
12617 long arg4 ;
12618 int result;
12619 PyObject * obj0 = 0 ;
12620 PyObject * obj1 = 0 ;
12621 PyObject * obj2 = 0 ;
12622 PyObject * obj3 = 0 ;
12623 char *kwnames[] = {
12624 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12625 };
12626
12627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12630 arg2 = (int)SWIG_As_int(obj1);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 arg3 = (int)SWIG_As_int(obj2);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 arg4 = (long)SWIG_As_long(obj3);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12639
12640 wxPyEndAllowThreads(__tstate);
12641 if (PyErr_Occurred()) SWIG_fail;
12642 }
12643 resultobj = SWIG_From_int((int)result);
12644 return resultobj;
12645 fail:
12646 return NULL;
12647 }
12648
12649
12650 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12653 wxVisualAttributes result;
12654 PyObject * obj0 = 0 ;
12655 char *kwnames[] = {
12656 (char *) "variant", NULL
12657 };
12658
12659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12660 if (obj0) {
12661 arg1 = (int)SWIG_As_int(obj0);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 if (!wxPyCheckForApp()) SWIG_fail;
12666 PyThreadState* __tstate = wxPyBeginAllowThreads();
12667 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12668
12669 wxPyEndAllowThreads(__tstate);
12670 if (PyErr_Occurred()) SWIG_fail;
12671 }
12672 {
12673 wxVisualAttributes * resultptr;
12674 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12675 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12676 }
12677 return resultobj;
12678 fail:
12679 return NULL;
12680 }
12681
12682
12683 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12684 PyObject *obj;
12685 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12686 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12687 Py_INCREF(obj);
12688 return Py_BuildValue((char *)"");
12689 }
12690 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12691 PyObject *resultobj;
12692 wxWindow *arg1 = (wxWindow *) 0 ;
12693 int arg2 = (int) -1 ;
12694 wxString const &arg3_defvalue = wxPyEmptyString ;
12695 wxString *arg3 = (wxString *) &arg3_defvalue ;
12696 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12697 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12698 wxSize const &arg5_defvalue = wxDefaultSize ;
12699 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12700 long arg6 = (long) 0 ;
12701 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12702 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12703 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12704 wxString *arg8 = (wxString *) &arg8_defvalue ;
12705 wxRadioButton *result;
12706 bool temp3 = false ;
12707 wxPoint temp4 ;
12708 wxSize temp5 ;
12709 bool temp8 = false ;
12710 PyObject * obj0 = 0 ;
12711 PyObject * obj1 = 0 ;
12712 PyObject * obj2 = 0 ;
12713 PyObject * obj3 = 0 ;
12714 PyObject * obj4 = 0 ;
12715 PyObject * obj5 = 0 ;
12716 PyObject * obj6 = 0 ;
12717 PyObject * obj7 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12725 if (obj1) {
12726 arg2 = (int)SWIG_As_int(obj1);
12727 if (PyErr_Occurred()) SWIG_fail;
12728 }
12729 if (obj2) {
12730 {
12731 arg3 = wxString_in_helper(obj2);
12732 if (arg3 == NULL) SWIG_fail;
12733 temp3 = true;
12734 }
12735 }
12736 if (obj3) {
12737 {
12738 arg4 = &temp4;
12739 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12740 }
12741 }
12742 if (obj4) {
12743 {
12744 arg5 = &temp5;
12745 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12746 }
12747 }
12748 if (obj5) {
12749 arg6 = (long)SWIG_As_long(obj5);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 if (obj6) {
12753 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12754 SWIG_POINTER_EXCEPTION | 0)) == -1)
12755 SWIG_fail;
12756 if (arg7 == NULL) {
12757 PyErr_SetString(PyExc_TypeError,"null reference");
12758 SWIG_fail;
12759 }
12760 }
12761 if (obj7) {
12762 {
12763 arg8 = wxString_in_helper(obj7);
12764 if (arg8 == NULL) SWIG_fail;
12765 temp8 = true;
12766 }
12767 }
12768 {
12769 if (!wxPyCheckForApp()) SWIG_fail;
12770 PyThreadState* __tstate = wxPyBeginAllowThreads();
12771 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12772
12773 wxPyEndAllowThreads(__tstate);
12774 if (PyErr_Occurred()) SWIG_fail;
12775 }
12776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12777 {
12778 if (temp3)
12779 delete arg3;
12780 }
12781 {
12782 if (temp8)
12783 delete arg8;
12784 }
12785 return resultobj;
12786 fail:
12787 {
12788 if (temp3)
12789 delete arg3;
12790 }
12791 {
12792 if (temp8)
12793 delete arg8;
12794 }
12795 return NULL;
12796 }
12797
12798
12799 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12800 PyObject *resultobj;
12801 wxRadioButton *result;
12802 char *kwnames[] = {
12803 NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12807 {
12808 if (!wxPyCheckForApp()) SWIG_fail;
12809 PyThreadState* __tstate = wxPyBeginAllowThreads();
12810 result = (wxRadioButton *)new wxRadioButton();
12811
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12823 PyObject *resultobj;
12824 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12825 wxWindow *arg2 = (wxWindow *) 0 ;
12826 int arg3 = (int) -1 ;
12827 wxString const &arg4_defvalue = wxPyEmptyString ;
12828 wxString *arg4 = (wxString *) &arg4_defvalue ;
12829 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12830 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12831 wxSize const &arg6_defvalue = wxDefaultSize ;
12832 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12833 long arg7 = (long) 0 ;
12834 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12835 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12836 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12837 wxString *arg9 = (wxString *) &arg9_defvalue ;
12838 bool result;
12839 bool temp4 = false ;
12840 wxPoint temp5 ;
12841 wxSize temp6 ;
12842 bool temp9 = false ;
12843 PyObject * obj0 = 0 ;
12844 PyObject * obj1 = 0 ;
12845 PyObject * obj2 = 0 ;
12846 PyObject * obj3 = 0 ;
12847 PyObject * obj4 = 0 ;
12848 PyObject * obj5 = 0 ;
12849 PyObject * obj6 = 0 ;
12850 PyObject * obj7 = 0 ;
12851 PyObject * obj8 = 0 ;
12852 char *kwnames[] = {
12853 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12854 };
12855
12856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12859 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12861 if (obj2) {
12862 arg3 = (int)SWIG_As_int(obj2);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 if (obj3) {
12866 {
12867 arg4 = wxString_in_helper(obj3);
12868 if (arg4 == NULL) SWIG_fail;
12869 temp4 = true;
12870 }
12871 }
12872 if (obj4) {
12873 {
12874 arg5 = &temp5;
12875 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12876 }
12877 }
12878 if (obj5) {
12879 {
12880 arg6 = &temp6;
12881 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12882 }
12883 }
12884 if (obj6) {
12885 arg7 = (long)SWIG_As_long(obj6);
12886 if (PyErr_Occurred()) SWIG_fail;
12887 }
12888 if (obj7) {
12889 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12890 SWIG_POINTER_EXCEPTION | 0)) == -1)
12891 SWIG_fail;
12892 if (arg8 == NULL) {
12893 PyErr_SetString(PyExc_TypeError,"null reference");
12894 SWIG_fail;
12895 }
12896 }
12897 if (obj8) {
12898 {
12899 arg9 = wxString_in_helper(obj8);
12900 if (arg9 == NULL) SWIG_fail;
12901 temp9 = true;
12902 }
12903 }
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 {
12912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12913 }
12914 {
12915 if (temp4)
12916 delete arg4;
12917 }
12918 {
12919 if (temp9)
12920 delete arg9;
12921 }
12922 return resultobj;
12923 fail:
12924 {
12925 if (temp4)
12926 delete arg4;
12927 }
12928 {
12929 if (temp9)
12930 delete arg9;
12931 }
12932 return NULL;
12933 }
12934
12935
12936 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12937 PyObject *resultobj;
12938 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12939 bool result;
12940 PyObject * obj0 = 0 ;
12941 char *kwnames[] = {
12942 (char *) "self", NULL
12943 };
12944
12945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12948 {
12949 PyThreadState* __tstate = wxPyBeginAllowThreads();
12950 result = (bool)(arg1)->GetValue();
12951
12952 wxPyEndAllowThreads(__tstate);
12953 if (PyErr_Occurred()) SWIG_fail;
12954 }
12955 {
12956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12957 }
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12967 bool arg2 ;
12968 PyObject * obj0 = 0 ;
12969 PyObject * obj1 = 0 ;
12970 char *kwnames[] = {
12971 (char *) "self",(char *) "value", NULL
12972 };
12973
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12977 arg2 = (bool)SWIG_As_bool(obj1);
12978 if (PyErr_Occurred()) SWIG_fail;
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 (arg1)->SetValue(arg2);
12982
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 Py_INCREF(Py_None); resultobj = Py_None;
12987 return resultobj;
12988 fail:
12989 return NULL;
12990 }
12991
12992
12993 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12994 PyObject *resultobj;
12995 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12996 wxVisualAttributes result;
12997 PyObject * obj0 = 0 ;
12998 char *kwnames[] = {
12999 (char *) "variant", NULL
13000 };
13001
13002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13003 if (obj0) {
13004 arg1 = (int)SWIG_As_int(obj0);
13005 if (PyErr_Occurred()) SWIG_fail;
13006 }
13007 {
13008 if (!wxPyCheckForApp()) SWIG_fail;
13009 PyThreadState* __tstate = wxPyBeginAllowThreads();
13010 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13011
13012 wxPyEndAllowThreads(__tstate);
13013 if (PyErr_Occurred()) SWIG_fail;
13014 }
13015 {
13016 wxVisualAttributes * resultptr;
13017 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13018 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13019 }
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
13027 PyObject *obj;
13028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13029 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
13030 Py_INCREF(obj);
13031 return Py_BuildValue((char *)"");
13032 }
13033 static int _wrap_SliderNameStr_set(PyObject *) {
13034 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
13035 return 1;
13036 }
13037
13038
13039 static PyObject *_wrap_SliderNameStr_get() {
13040 PyObject *pyobj;
13041
13042 {
13043 #if wxUSE_UNICODE
13044 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13045 #else
13046 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13047 #endif
13048 }
13049 return pyobj;
13050 }
13051
13052
13053 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13054 PyObject *resultobj;
13055 wxWindow *arg1 = (wxWindow *) 0 ;
13056 int arg2 = (int) -1 ;
13057 int arg3 = (int) 0 ;
13058 int arg4 = (int) 0 ;
13059 int arg5 = (int) 100 ;
13060 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13061 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13062 wxSize const &arg7_defvalue = wxDefaultSize ;
13063 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13064 long arg8 = (long) wxSL_HORIZONTAL ;
13065 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13066 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13067 wxString const &arg10_defvalue = wxPySliderNameStr ;
13068 wxString *arg10 = (wxString *) &arg10_defvalue ;
13069 wxSlider *result;
13070 wxPoint temp6 ;
13071 wxSize temp7 ;
13072 bool temp10 = false ;
13073 PyObject * obj0 = 0 ;
13074 PyObject * obj1 = 0 ;
13075 PyObject * obj2 = 0 ;
13076 PyObject * obj3 = 0 ;
13077 PyObject * obj4 = 0 ;
13078 PyObject * obj5 = 0 ;
13079 PyObject * obj6 = 0 ;
13080 PyObject * obj7 = 0 ;
13081 PyObject * obj8 = 0 ;
13082 PyObject * obj9 = 0 ;
13083 char *kwnames[] = {
13084 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13085 };
13086
13087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13090 if (obj1) {
13091 arg2 = (int)SWIG_As_int(obj1);
13092 if (PyErr_Occurred()) SWIG_fail;
13093 }
13094 if (obj2) {
13095 arg3 = (int)SWIG_As_int(obj2);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 if (obj3) {
13099 arg4 = (int)SWIG_As_int(obj3);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 if (obj4) {
13103 arg5 = (int)SWIG_As_int(obj4);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 if (obj5) {
13107 {
13108 arg6 = &temp6;
13109 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13110 }
13111 }
13112 if (obj6) {
13113 {
13114 arg7 = &temp7;
13115 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13116 }
13117 }
13118 if (obj7) {
13119 arg8 = (long)SWIG_As_long(obj7);
13120 if (PyErr_Occurred()) SWIG_fail;
13121 }
13122 if (obj8) {
13123 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13124 SWIG_POINTER_EXCEPTION | 0)) == -1)
13125 SWIG_fail;
13126 if (arg9 == NULL) {
13127 PyErr_SetString(PyExc_TypeError,"null reference");
13128 SWIG_fail;
13129 }
13130 }
13131 if (obj9) {
13132 {
13133 arg10 = wxString_in_helper(obj9);
13134 if (arg10 == NULL) SWIG_fail;
13135 temp10 = true;
13136 }
13137 }
13138 {
13139 if (!wxPyCheckForApp()) SWIG_fail;
13140 PyThreadState* __tstate = wxPyBeginAllowThreads();
13141 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13142
13143 wxPyEndAllowThreads(__tstate);
13144 if (PyErr_Occurred()) SWIG_fail;
13145 }
13146 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13147 {
13148 if (temp10)
13149 delete arg10;
13150 }
13151 return resultobj;
13152 fail:
13153 {
13154 if (temp10)
13155 delete arg10;
13156 }
13157 return NULL;
13158 }
13159
13160
13161 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj;
13163 wxSlider *result;
13164 char *kwnames[] = {
13165 NULL
13166 };
13167
13168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13169 {
13170 if (!wxPyCheckForApp()) SWIG_fail;
13171 PyThreadState* __tstate = wxPyBeginAllowThreads();
13172 result = (wxSlider *)new wxSlider();
13173
13174 wxPyEndAllowThreads(__tstate);
13175 if (PyErr_Occurred()) SWIG_fail;
13176 }
13177 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13185 PyObject *resultobj;
13186 wxSlider *arg1 = (wxSlider *) 0 ;
13187 wxWindow *arg2 = (wxWindow *) 0 ;
13188 int arg3 = (int) -1 ;
13189 int arg4 = (int) 0 ;
13190 int arg5 = (int) 0 ;
13191 int arg6 = (int) 100 ;
13192 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13193 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13194 wxSize const &arg8_defvalue = wxDefaultSize ;
13195 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13196 long arg9 = (long) wxSL_HORIZONTAL ;
13197 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13198 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13199 wxString const &arg11_defvalue = wxPySliderNameStr ;
13200 wxString *arg11 = (wxString *) &arg11_defvalue ;
13201 bool result;
13202 wxPoint temp7 ;
13203 wxSize temp8 ;
13204 bool temp11 = false ;
13205 PyObject * obj0 = 0 ;
13206 PyObject * obj1 = 0 ;
13207 PyObject * obj2 = 0 ;
13208 PyObject * obj3 = 0 ;
13209 PyObject * obj4 = 0 ;
13210 PyObject * obj5 = 0 ;
13211 PyObject * obj6 = 0 ;
13212 PyObject * obj7 = 0 ;
13213 PyObject * obj8 = 0 ;
13214 PyObject * obj9 = 0 ;
13215 PyObject * obj10 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13225 if (obj2) {
13226 arg3 = (int)SWIG_As_int(obj2);
13227 if (PyErr_Occurred()) SWIG_fail;
13228 }
13229 if (obj3) {
13230 arg4 = (int)SWIG_As_int(obj3);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 if (obj4) {
13234 arg5 = (int)SWIG_As_int(obj4);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 if (obj5) {
13238 arg6 = (int)SWIG_As_int(obj5);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 if (obj6) {
13242 {
13243 arg7 = &temp7;
13244 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13245 }
13246 }
13247 if (obj7) {
13248 {
13249 arg8 = &temp8;
13250 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13251 }
13252 }
13253 if (obj8) {
13254 arg9 = (long)SWIG_As_long(obj8);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 }
13257 if (obj9) {
13258 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13259 SWIG_POINTER_EXCEPTION | 0)) == -1)
13260 SWIG_fail;
13261 if (arg10 == NULL) {
13262 PyErr_SetString(PyExc_TypeError,"null reference");
13263 SWIG_fail;
13264 }
13265 }
13266 if (obj10) {
13267 {
13268 arg11 = wxString_in_helper(obj10);
13269 if (arg11 == NULL) SWIG_fail;
13270 temp11 = true;
13271 }
13272 }
13273 {
13274 PyThreadState* __tstate = wxPyBeginAllowThreads();
13275 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13276
13277 wxPyEndAllowThreads(__tstate);
13278 if (PyErr_Occurred()) SWIG_fail;
13279 }
13280 {
13281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13282 }
13283 {
13284 if (temp11)
13285 delete arg11;
13286 }
13287 return resultobj;
13288 fail:
13289 {
13290 if (temp11)
13291 delete arg11;
13292 }
13293 return NULL;
13294 }
13295
13296
13297 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13298 PyObject *resultobj;
13299 wxSlider *arg1 = (wxSlider *) 0 ;
13300 int result;
13301 PyObject * obj0 = 0 ;
13302 char *kwnames[] = {
13303 (char *) "self", NULL
13304 };
13305
13306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 result = (int)((wxSlider const *)arg1)->GetValue();
13312
13313 wxPyEndAllowThreads(__tstate);
13314 if (PyErr_Occurred()) SWIG_fail;
13315 }
13316 resultobj = SWIG_From_int((int)result);
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj;
13325 wxSlider *arg1 = (wxSlider *) 0 ;
13326 int arg2 ;
13327 PyObject * obj0 = 0 ;
13328 PyObject * obj1 = 0 ;
13329 char *kwnames[] = {
13330 (char *) "self",(char *) "value", NULL
13331 };
13332
13333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13336 arg2 = (int)SWIG_As_int(obj1);
13337 if (PyErr_Occurred()) SWIG_fail;
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 (arg1)->SetValue(arg2);
13341
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 Py_INCREF(Py_None); resultobj = Py_None;
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj;
13354 wxSlider *arg1 = (wxSlider *) 0 ;
13355 int arg2 ;
13356 int arg3 ;
13357 PyObject * obj0 = 0 ;
13358 PyObject * obj1 = 0 ;
13359 PyObject * obj2 = 0 ;
13360 char *kwnames[] = {
13361 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13362 };
13363
13364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13367 arg2 = (int)SWIG_As_int(obj1);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 arg3 = (int)SWIG_As_int(obj2);
13370 if (PyErr_Occurred()) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 (arg1)->SetRange(arg2,arg3);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 Py_INCREF(Py_None); resultobj = Py_None;
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxSlider *arg1 = (wxSlider *) 0 ;
13388 int result;
13389 PyObject * obj0 = 0 ;
13390 char *kwnames[] = {
13391 (char *) "self", NULL
13392 };
13393
13394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (int)((wxSlider const *)arg1)->GetMin();
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 resultobj = SWIG_From_int((int)result);
13405 return resultobj;
13406 fail:
13407 return NULL;
13408 }
13409
13410
13411 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj;
13413 wxSlider *arg1 = (wxSlider *) 0 ;
13414 int result;
13415 PyObject * obj0 = 0 ;
13416 char *kwnames[] = {
13417 (char *) "self", NULL
13418 };
13419
13420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (int)((wxSlider const *)arg1)->GetMax();
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 resultobj = SWIG_From_int((int)result);
13431 return resultobj;
13432 fail:
13433 return NULL;
13434 }
13435
13436
13437 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13438 PyObject *resultobj;
13439 wxSlider *arg1 = (wxSlider *) 0 ;
13440 int arg2 ;
13441 PyObject * obj0 = 0 ;
13442 PyObject * obj1 = 0 ;
13443 char *kwnames[] = {
13444 (char *) "self",(char *) "minValue", NULL
13445 };
13446
13447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13450 arg2 = (int)SWIG_As_int(obj1);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 {
13453 PyThreadState* __tstate = wxPyBeginAllowThreads();
13454 (arg1)->SetMin(arg2);
13455
13456 wxPyEndAllowThreads(__tstate);
13457 if (PyErr_Occurred()) SWIG_fail;
13458 }
13459 Py_INCREF(Py_None); resultobj = Py_None;
13460 return resultobj;
13461 fail:
13462 return NULL;
13463 }
13464
13465
13466 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13467 PyObject *resultobj;
13468 wxSlider *arg1 = (wxSlider *) 0 ;
13469 int arg2 ;
13470 PyObject * obj0 = 0 ;
13471 PyObject * obj1 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self",(char *) "maxValue", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 arg2 = (int)SWIG_As_int(obj1);
13480 if (PyErr_Occurred()) SWIG_fail;
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 (arg1)->SetMax(arg2);
13484
13485 wxPyEndAllowThreads(__tstate);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 }
13488 Py_INCREF(Py_None); resultobj = Py_None;
13489 return resultobj;
13490 fail:
13491 return NULL;
13492 }
13493
13494
13495 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13496 PyObject *resultobj;
13497 wxSlider *arg1 = (wxSlider *) 0 ;
13498 int arg2 ;
13499 PyObject * obj0 = 0 ;
13500 PyObject * obj1 = 0 ;
13501 char *kwnames[] = {
13502 (char *) "self",(char *) "lineSize", NULL
13503 };
13504
13505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13508 arg2 = (int)SWIG_As_int(obj1);
13509 if (PyErr_Occurred()) SWIG_fail;
13510 {
13511 PyThreadState* __tstate = wxPyBeginAllowThreads();
13512 (arg1)->SetLineSize(arg2);
13513
13514 wxPyEndAllowThreads(__tstate);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 Py_INCREF(Py_None); resultobj = Py_None;
13518 return resultobj;
13519 fail:
13520 return NULL;
13521 }
13522
13523
13524 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13525 PyObject *resultobj;
13526 wxSlider *arg1 = (wxSlider *) 0 ;
13527 int arg2 ;
13528 PyObject * obj0 = 0 ;
13529 PyObject * obj1 = 0 ;
13530 char *kwnames[] = {
13531 (char *) "self",(char *) "pageSize", NULL
13532 };
13533
13534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13537 arg2 = (int)SWIG_As_int(obj1);
13538 if (PyErr_Occurred()) SWIG_fail;
13539 {
13540 PyThreadState* __tstate = wxPyBeginAllowThreads();
13541 (arg1)->SetPageSize(arg2);
13542
13543 wxPyEndAllowThreads(__tstate);
13544 if (PyErr_Occurred()) SWIG_fail;
13545 }
13546 Py_INCREF(Py_None); resultobj = Py_None;
13547 return resultobj;
13548 fail:
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 wxSlider *arg1 = (wxSlider *) 0 ;
13556 int result;
13557 PyObject * obj0 = 0 ;
13558 char *kwnames[] = {
13559 (char *) "self", NULL
13560 };
13561
13562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13565 {
13566 PyThreadState* __tstate = wxPyBeginAllowThreads();
13567 result = (int)((wxSlider const *)arg1)->GetLineSize();
13568
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 resultobj = SWIG_From_int((int)result);
13573 return resultobj;
13574 fail:
13575 return NULL;
13576 }
13577
13578
13579 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13580 PyObject *resultobj;
13581 wxSlider *arg1 = (wxSlider *) 0 ;
13582 int result;
13583 PyObject * obj0 = 0 ;
13584 char *kwnames[] = {
13585 (char *) "self", NULL
13586 };
13587
13588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13591 {
13592 PyThreadState* __tstate = wxPyBeginAllowThreads();
13593 result = (int)((wxSlider const *)arg1)->GetPageSize();
13594
13595 wxPyEndAllowThreads(__tstate);
13596 if (PyErr_Occurred()) SWIG_fail;
13597 }
13598 resultobj = SWIG_From_int((int)result);
13599 return resultobj;
13600 fail:
13601 return NULL;
13602 }
13603
13604
13605 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13606 PyObject *resultobj;
13607 wxSlider *arg1 = (wxSlider *) 0 ;
13608 int arg2 ;
13609 PyObject * obj0 = 0 ;
13610 PyObject * obj1 = 0 ;
13611 char *kwnames[] = {
13612 (char *) "self",(char *) "lenPixels", NULL
13613 };
13614
13615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13618 arg2 = (int)SWIG_As_int(obj1);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 {
13621 PyThreadState* __tstate = wxPyBeginAllowThreads();
13622 (arg1)->SetThumbLength(arg2);
13623
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 Py_INCREF(Py_None); resultobj = Py_None;
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj;
13636 wxSlider *arg1 = (wxSlider *) 0 ;
13637 int result;
13638 PyObject * obj0 = 0 ;
13639 char *kwnames[] = {
13640 (char *) "self", NULL
13641 };
13642
13643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13646 {
13647 PyThreadState* __tstate = wxPyBeginAllowThreads();
13648 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13649
13650 wxPyEndAllowThreads(__tstate);
13651 if (PyErr_Occurred()) SWIG_fail;
13652 }
13653 resultobj = SWIG_From_int((int)result);
13654 return resultobj;
13655 fail:
13656 return NULL;
13657 }
13658
13659
13660 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13661 PyObject *resultobj;
13662 wxSlider *arg1 = (wxSlider *) 0 ;
13663 int arg2 ;
13664 int arg3 = (int) 1 ;
13665 PyObject * obj0 = 0 ;
13666 PyObject * obj1 = 0 ;
13667 PyObject * obj2 = 0 ;
13668 char *kwnames[] = {
13669 (char *) "self",(char *) "n",(char *) "pos", NULL
13670 };
13671
13672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13675 arg2 = (int)SWIG_As_int(obj1);
13676 if (PyErr_Occurred()) SWIG_fail;
13677 if (obj2) {
13678 arg3 = (int)SWIG_As_int(obj2);
13679 if (PyErr_Occurred()) SWIG_fail;
13680 }
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 (arg1)->SetTickFreq(arg2,arg3);
13684
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 Py_INCREF(Py_None); resultobj = Py_None;
13689 return resultobj;
13690 fail:
13691 return NULL;
13692 }
13693
13694
13695 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13696 PyObject *resultobj;
13697 wxSlider *arg1 = (wxSlider *) 0 ;
13698 int result;
13699 PyObject * obj0 = 0 ;
13700 char *kwnames[] = {
13701 (char *) "self", NULL
13702 };
13703
13704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13707 {
13708 PyThreadState* __tstate = wxPyBeginAllowThreads();
13709 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13710
13711 wxPyEndAllowThreads(__tstate);
13712 if (PyErr_Occurred()) SWIG_fail;
13713 }
13714 resultobj = SWIG_From_int((int)result);
13715 return resultobj;
13716 fail:
13717 return NULL;
13718 }
13719
13720
13721 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13722 PyObject *resultobj;
13723 wxSlider *arg1 = (wxSlider *) 0 ;
13724 PyObject * obj0 = 0 ;
13725 char *kwnames[] = {
13726 (char *) "self", NULL
13727 };
13728
13729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 (arg1)->ClearTicks();
13735
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 Py_INCREF(Py_None); resultobj = Py_None;
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxSlider *arg1 = (wxSlider *) 0 ;
13749 int arg2 ;
13750 PyObject * obj0 = 0 ;
13751 PyObject * obj1 = 0 ;
13752 char *kwnames[] = {
13753 (char *) "self",(char *) "tickPos", NULL
13754 };
13755
13756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13759 arg2 = (int)SWIG_As_int(obj1);
13760 if (PyErr_Occurred()) SWIG_fail;
13761 {
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 (arg1)->SetTick(arg2);
13764
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 Py_INCREF(Py_None); resultobj = Py_None;
13769 return resultobj;
13770 fail:
13771 return NULL;
13772 }
13773
13774
13775 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxSlider *arg1 = (wxSlider *) 0 ;
13778 PyObject * obj0 = 0 ;
13779 char *kwnames[] = {
13780 (char *) "self", NULL
13781 };
13782
13783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13786 {
13787 PyThreadState* __tstate = wxPyBeginAllowThreads();
13788 (arg1)->ClearSel();
13789
13790 wxPyEndAllowThreads(__tstate);
13791 if (PyErr_Occurred()) SWIG_fail;
13792 }
13793 Py_INCREF(Py_None); resultobj = Py_None;
13794 return resultobj;
13795 fail:
13796 return NULL;
13797 }
13798
13799
13800 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13801 PyObject *resultobj;
13802 wxSlider *arg1 = (wxSlider *) 0 ;
13803 int result;
13804 PyObject * obj0 = 0 ;
13805 char *kwnames[] = {
13806 (char *) "self", NULL
13807 };
13808
13809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13815
13816 wxPyEndAllowThreads(__tstate);
13817 if (PyErr_Occurred()) SWIG_fail;
13818 }
13819 resultobj = SWIG_From_int((int)result);
13820 return resultobj;
13821 fail:
13822 return NULL;
13823 }
13824
13825
13826 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13827 PyObject *resultobj;
13828 wxSlider *arg1 = (wxSlider *) 0 ;
13829 int result;
13830 PyObject * obj0 = 0 ;
13831 char *kwnames[] = {
13832 (char *) "self", NULL
13833 };
13834
13835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 result = (int)((wxSlider const *)arg1)->GetSelStart();
13841
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 resultobj = SWIG_From_int((int)result);
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj;
13854 wxSlider *arg1 = (wxSlider *) 0 ;
13855 int arg2 ;
13856 int arg3 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 PyObject * obj2 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self",(char *) "min",(char *) "max", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13867 arg2 = (int)SWIG_As_int(obj1);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 arg3 = (int)SWIG_As_int(obj2);
13870 if (PyErr_Occurred()) SWIG_fail;
13871 {
13872 PyThreadState* __tstate = wxPyBeginAllowThreads();
13873 (arg1)->SetSelection(arg2,arg3);
13874
13875 wxPyEndAllowThreads(__tstate);
13876 if (PyErr_Occurred()) SWIG_fail;
13877 }
13878 Py_INCREF(Py_None); resultobj = Py_None;
13879 return resultobj;
13880 fail:
13881 return NULL;
13882 }
13883
13884
13885 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13886 PyObject *resultobj;
13887 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13888 wxVisualAttributes result;
13889 PyObject * obj0 = 0 ;
13890 char *kwnames[] = {
13891 (char *) "variant", NULL
13892 };
13893
13894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13895 if (obj0) {
13896 arg1 = (int)SWIG_As_int(obj0);
13897 if (PyErr_Occurred()) SWIG_fail;
13898 }
13899 {
13900 if (!wxPyCheckForApp()) SWIG_fail;
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13903
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 {
13908 wxVisualAttributes * resultptr;
13909 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13911 }
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13919 PyObject *obj;
13920 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13921 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13922 Py_INCREF(obj);
13923 return Py_BuildValue((char *)"");
13924 }
13925 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13926 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13927 return 1;
13928 }
13929
13930
13931 static PyObject *_wrap_ToggleButtonNameStr_get() {
13932 PyObject *pyobj;
13933
13934 {
13935 #if wxUSE_UNICODE
13936 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13937 #else
13938 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13939 #endif
13940 }
13941 return pyobj;
13942 }
13943
13944
13945 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13946 PyObject *resultobj;
13947 wxWindow *arg1 = (wxWindow *) 0 ;
13948 int arg2 = (int) -1 ;
13949 wxString const &arg3_defvalue = wxPyEmptyString ;
13950 wxString *arg3 = (wxString *) &arg3_defvalue ;
13951 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13952 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13953 wxSize const &arg5_defvalue = wxDefaultSize ;
13954 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13955 long arg6 = (long) 0 ;
13956 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13957 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13958 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13959 wxString *arg8 = (wxString *) &arg8_defvalue ;
13960 wxToggleButton *result;
13961 bool temp3 = false ;
13962 wxPoint temp4 ;
13963 wxSize temp5 ;
13964 bool temp8 = false ;
13965 PyObject * obj0 = 0 ;
13966 PyObject * obj1 = 0 ;
13967 PyObject * obj2 = 0 ;
13968 PyObject * obj3 = 0 ;
13969 PyObject * obj4 = 0 ;
13970 PyObject * obj5 = 0 ;
13971 PyObject * obj6 = 0 ;
13972 PyObject * obj7 = 0 ;
13973 char *kwnames[] = {
13974 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13975 };
13976
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 if (obj1) {
13981 arg2 = (int)SWIG_As_int(obj1);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 if (obj2) {
13985 {
13986 arg3 = wxString_in_helper(obj2);
13987 if (arg3 == NULL) SWIG_fail;
13988 temp3 = true;
13989 }
13990 }
13991 if (obj3) {
13992 {
13993 arg4 = &temp4;
13994 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13995 }
13996 }
13997 if (obj4) {
13998 {
13999 arg5 = &temp5;
14000 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14001 }
14002 }
14003 if (obj5) {
14004 arg6 = (long)SWIG_As_long(obj5);
14005 if (PyErr_Occurred()) SWIG_fail;
14006 }
14007 if (obj6) {
14008 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
14009 SWIG_POINTER_EXCEPTION | 0)) == -1)
14010 SWIG_fail;
14011 if (arg7 == NULL) {
14012 PyErr_SetString(PyExc_TypeError,"null reference");
14013 SWIG_fail;
14014 }
14015 }
14016 if (obj7) {
14017 {
14018 arg8 = wxString_in_helper(obj7);
14019 if (arg8 == NULL) SWIG_fail;
14020 temp8 = true;
14021 }
14022 }
14023 {
14024 if (!wxPyCheckForApp()) SWIG_fail;
14025 PyThreadState* __tstate = wxPyBeginAllowThreads();
14026 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14027
14028 wxPyEndAllowThreads(__tstate);
14029 if (PyErr_Occurred()) SWIG_fail;
14030 }
14031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14032 {
14033 if (temp3)
14034 delete arg3;
14035 }
14036 {
14037 if (temp8)
14038 delete arg8;
14039 }
14040 return resultobj;
14041 fail:
14042 {
14043 if (temp3)
14044 delete arg3;
14045 }
14046 {
14047 if (temp8)
14048 delete arg8;
14049 }
14050 return NULL;
14051 }
14052
14053
14054 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14055 PyObject *resultobj;
14056 wxToggleButton *result;
14057 char *kwnames[] = {
14058 NULL
14059 };
14060
14061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14062 {
14063 if (!wxPyCheckForApp()) SWIG_fail;
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 result = (wxToggleButton *)new wxToggleButton();
14066
14067 wxPyEndAllowThreads(__tstate);
14068 if (PyErr_Occurred()) SWIG_fail;
14069 }
14070 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14071 return resultobj;
14072 fail:
14073 return NULL;
14074 }
14075
14076
14077 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14078 PyObject *resultobj;
14079 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14080 wxWindow *arg2 = (wxWindow *) 0 ;
14081 int arg3 = (int) -1 ;
14082 wxString const &arg4_defvalue = wxPyEmptyString ;
14083 wxString *arg4 = (wxString *) &arg4_defvalue ;
14084 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14085 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14086 wxSize const &arg6_defvalue = wxDefaultSize ;
14087 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14088 long arg7 = (long) 0 ;
14089 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14090 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14091 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14092 wxString *arg9 = (wxString *) &arg9_defvalue ;
14093 bool result;
14094 bool temp4 = false ;
14095 wxPoint temp5 ;
14096 wxSize temp6 ;
14097 bool temp9 = false ;
14098 PyObject * obj0 = 0 ;
14099 PyObject * obj1 = 0 ;
14100 PyObject * obj2 = 0 ;
14101 PyObject * obj3 = 0 ;
14102 PyObject * obj4 = 0 ;
14103 PyObject * obj5 = 0 ;
14104 PyObject * obj6 = 0 ;
14105 PyObject * obj7 = 0 ;
14106 PyObject * obj8 = 0 ;
14107 char *kwnames[] = {
14108 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14109 };
14110
14111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14116 if (obj2) {
14117 arg3 = (int)SWIG_As_int(obj2);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 if (obj3) {
14121 {
14122 arg4 = wxString_in_helper(obj3);
14123 if (arg4 == NULL) SWIG_fail;
14124 temp4 = true;
14125 }
14126 }
14127 if (obj4) {
14128 {
14129 arg5 = &temp5;
14130 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14131 }
14132 }
14133 if (obj5) {
14134 {
14135 arg6 = &temp6;
14136 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14137 }
14138 }
14139 if (obj6) {
14140 arg7 = (long)SWIG_As_long(obj6);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 if (obj7) {
14144 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14145 SWIG_POINTER_EXCEPTION | 0)) == -1)
14146 SWIG_fail;
14147 if (arg8 == NULL) {
14148 PyErr_SetString(PyExc_TypeError,"null reference");
14149 SWIG_fail;
14150 }
14151 }
14152 if (obj8) {
14153 {
14154 arg9 = wxString_in_helper(obj8);
14155 if (arg9 == NULL) SWIG_fail;
14156 temp9 = true;
14157 }
14158 }
14159 {
14160 PyThreadState* __tstate = wxPyBeginAllowThreads();
14161 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14162
14163 wxPyEndAllowThreads(__tstate);
14164 if (PyErr_Occurred()) SWIG_fail;
14165 }
14166 {
14167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14168 }
14169 {
14170 if (temp4)
14171 delete arg4;
14172 }
14173 {
14174 if (temp9)
14175 delete arg9;
14176 }
14177 return resultobj;
14178 fail:
14179 {
14180 if (temp4)
14181 delete arg4;
14182 }
14183 {
14184 if (temp9)
14185 delete arg9;
14186 }
14187 return NULL;
14188 }
14189
14190
14191 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14192 PyObject *resultobj;
14193 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14194 bool arg2 ;
14195 PyObject * obj0 = 0 ;
14196 PyObject * obj1 = 0 ;
14197 char *kwnames[] = {
14198 (char *) "self",(char *) "value", NULL
14199 };
14200
14201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14204 arg2 = (bool)SWIG_As_bool(obj1);
14205 if (PyErr_Occurred()) SWIG_fail;
14206 {
14207 PyThreadState* __tstate = wxPyBeginAllowThreads();
14208 (arg1)->SetValue(arg2);
14209
14210 wxPyEndAllowThreads(__tstate);
14211 if (PyErr_Occurred()) SWIG_fail;
14212 }
14213 Py_INCREF(Py_None); resultobj = Py_None;
14214 return resultobj;
14215 fail:
14216 return NULL;
14217 }
14218
14219
14220 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14221 PyObject *resultobj;
14222 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14223 bool result;
14224 PyObject * obj0 = 0 ;
14225 char *kwnames[] = {
14226 (char *) "self", NULL
14227 };
14228
14229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14232 {
14233 PyThreadState* __tstate = wxPyBeginAllowThreads();
14234 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14235
14236 wxPyEndAllowThreads(__tstate);
14237 if (PyErr_Occurred()) SWIG_fail;
14238 }
14239 {
14240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14241 }
14242 return resultobj;
14243 fail:
14244 return NULL;
14245 }
14246
14247
14248 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14249 PyObject *resultobj;
14250 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14251 wxString *arg2 = 0 ;
14252 bool temp2 = false ;
14253 PyObject * obj0 = 0 ;
14254 PyObject * obj1 = 0 ;
14255 char *kwnames[] = {
14256 (char *) "self",(char *) "label", NULL
14257 };
14258
14259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14262 {
14263 arg2 = wxString_in_helper(obj1);
14264 if (arg2 == NULL) SWIG_fail;
14265 temp2 = true;
14266 }
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 (arg1)->SetLabel((wxString const &)*arg2);
14270
14271 wxPyEndAllowThreads(__tstate);
14272 if (PyErr_Occurred()) SWIG_fail;
14273 }
14274 Py_INCREF(Py_None); resultobj = Py_None;
14275 {
14276 if (temp2)
14277 delete arg2;
14278 }
14279 return resultobj;
14280 fail:
14281 {
14282 if (temp2)
14283 delete arg2;
14284 }
14285 return NULL;
14286 }
14287
14288
14289 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj;
14291 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14292 wxVisualAttributes result;
14293 PyObject * obj0 = 0 ;
14294 char *kwnames[] = {
14295 (char *) "variant", NULL
14296 };
14297
14298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14299 if (obj0) {
14300 arg1 = (int)SWIG_As_int(obj0);
14301 if (PyErr_Occurred()) SWIG_fail;
14302 }
14303 {
14304 if (!wxPyCheckForApp()) SWIG_fail;
14305 PyThreadState* __tstate = wxPyBeginAllowThreads();
14306 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14307
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 {
14312 wxVisualAttributes * resultptr;
14313 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14314 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14315 }
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14323 PyObject *obj;
14324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14325 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14326 Py_INCREF(obj);
14327 return Py_BuildValue((char *)"");
14328 }
14329 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14330 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14331 return 1;
14332 }
14333
14334
14335 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14336 PyObject *pyobj;
14337
14338 {
14339 #if wxUSE_UNICODE
14340 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14341 #else
14342 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14343 #endif
14344 }
14345 return pyobj;
14346 }
14347
14348
14349 static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14350 PyObject *resultobj;
14351 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14352 size_t result;
14353 PyObject * obj0 = 0 ;
14354 char *kwnames[] = {
14355 (char *) "self", NULL
14356 };
14357
14358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail;
14359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14361 {
14362 PyThreadState* __tstate = wxPyBeginAllowThreads();
14363 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
14364
14365 wxPyEndAllowThreads(__tstate);
14366 if (PyErr_Occurred()) SWIG_fail;
14367 }
14368 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14369 return resultobj;
14370 fail:
14371 return NULL;
14372 }
14373
14374
14375 static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj;
14377 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14378 size_t arg2 ;
14379 wxWindow *result;
14380 PyObject * obj0 = 0 ;
14381 PyObject * obj1 = 0 ;
14382 char *kwnames[] = {
14383 (char *) "self",(char *) "n", NULL
14384 };
14385
14386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail;
14387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14389 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (wxWindow *)(arg1)->GetPage(arg2);
14394
14395 wxPyEndAllowThreads(__tstate);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 }
14398 {
14399 resultobj = wxPyMake_wxObject(result, 0);
14400 }
14401 return resultobj;
14402 fail:
14403 return NULL;
14404 }
14405
14406
14407 static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj;
14409 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14410 wxWindow *result;
14411 PyObject * obj0 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "self", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail;
14417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14419 {
14420 PyThreadState* __tstate = wxPyBeginAllowThreads();
14421 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
14422
14423 wxPyEndAllowThreads(__tstate);
14424 if (PyErr_Occurred()) SWIG_fail;
14425 }
14426 {
14427 resultobj = wxPyMake_wxObject(result, 0);
14428 }
14429 return resultobj;
14430 fail:
14431 return NULL;
14432 }
14433
14434
14435 static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14436 PyObject *resultobj;
14437 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14438 int result;
14439 PyObject * obj0 = 0 ;
14440 char *kwnames[] = {
14441 (char *) "self", NULL
14442 };
14443
14444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail;
14445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14447 {
14448 PyThreadState* __tstate = wxPyBeginAllowThreads();
14449 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
14450
14451 wxPyEndAllowThreads(__tstate);
14452 if (PyErr_Occurred()) SWIG_fail;
14453 }
14454 resultobj = SWIG_From_int((int)result);
14455 return resultobj;
14456 fail:
14457 return NULL;
14458 }
14459
14460
14461 static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14462 PyObject *resultobj;
14463 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14464 size_t arg2 ;
14465 wxString *arg3 = 0 ;
14466 bool result;
14467 bool temp3 = false ;
14468 PyObject * obj0 = 0 ;
14469 PyObject * obj1 = 0 ;
14470 PyObject * obj2 = 0 ;
14471 char *kwnames[] = {
14472 (char *) "self",(char *) "n",(char *) "strText", NULL
14473 };
14474
14475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14478 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14479 if (PyErr_Occurred()) SWIG_fail;
14480 {
14481 arg3 = wxString_in_helper(obj2);
14482 if (arg3 == NULL) SWIG_fail;
14483 temp3 = true;
14484 }
14485 {
14486 PyThreadState* __tstate = wxPyBeginAllowThreads();
14487 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14488
14489 wxPyEndAllowThreads(__tstate);
14490 if (PyErr_Occurred()) SWIG_fail;
14491 }
14492 {
14493 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14494 }
14495 {
14496 if (temp3)
14497 delete arg3;
14498 }
14499 return resultobj;
14500 fail:
14501 {
14502 if (temp3)
14503 delete arg3;
14504 }
14505 return NULL;
14506 }
14507
14508
14509 static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14510 PyObject *resultobj;
14511 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14512 size_t arg2 ;
14513 wxString result;
14514 PyObject * obj0 = 0 ;
14515 PyObject * obj1 = 0 ;
14516 char *kwnames[] = {
14517 (char *) "self",(char *) "n", NULL
14518 };
14519
14520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14523 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14524 if (PyErr_Occurred()) SWIG_fail;
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
14528
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 {
14533 #if wxUSE_UNICODE
14534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14535 #else
14536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14537 #endif
14538 }
14539 return resultobj;
14540 fail:
14541 return NULL;
14542 }
14543
14544
14545 static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14546 PyObject *resultobj;
14547 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14548 wxImageList *arg2 = (wxImageList *) 0 ;
14549 PyObject * obj0 = 0 ;
14550 PyObject * obj1 = 0 ;
14551 char *kwnames[] = {
14552 (char *) "self",(char *) "imageList", NULL
14553 };
14554
14555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14558 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 (arg1)->SetImageList(arg2);
14563
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 Py_INCREF(Py_None); resultobj = Py_None;
14568 return resultobj;
14569 fail:
14570 return NULL;
14571 }
14572
14573
14574 static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj;
14576 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14577 wxImageList *arg2 = (wxImageList *) 0 ;
14578 PyObject * obj0 = 0 ;
14579 PyObject * obj1 = 0 ;
14580 char *kwnames[] = {
14581 (char *) "self",(char *) "imageList", NULL
14582 };
14583
14584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14588 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14589 {
14590 PyThreadState* __tstate = wxPyBeginAllowThreads();
14591 (arg1)->AssignImageList(arg2);
14592
14593 wxPyEndAllowThreads(__tstate);
14594 if (PyErr_Occurred()) SWIG_fail;
14595 }
14596 Py_INCREF(Py_None); resultobj = Py_None;
14597 return resultobj;
14598 fail:
14599 return NULL;
14600 }
14601
14602
14603 static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14606 wxImageList *result;
14607 PyObject * obj0 = 0 ;
14608 char *kwnames[] = {
14609 (char *) "self", NULL
14610 };
14611
14612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail;
14613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14615 {
14616 PyThreadState* __tstate = wxPyBeginAllowThreads();
14617 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
14618
14619 wxPyEndAllowThreads(__tstate);
14620 if (PyErr_Occurred()) SWIG_fail;
14621 }
14622 {
14623 resultobj = wxPyMake_wxObject(result, 0);
14624 }
14625 return resultobj;
14626 fail:
14627 return NULL;
14628 }
14629
14630
14631 static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14634 size_t arg2 ;
14635 int result;
14636 PyObject * obj0 = 0 ;
14637 PyObject * obj1 = 0 ;
14638 char *kwnames[] = {
14639 (char *) "self",(char *) "n", NULL
14640 };
14641
14642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14645 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14646 if (PyErr_Occurred()) SWIG_fail;
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
14650
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 resultobj = SWIG_From_int((int)result);
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14662 PyObject *resultobj;
14663 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14664 size_t arg2 ;
14665 int arg3 ;
14666 bool result;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 PyObject * obj2 = 0 ;
14670 char *kwnames[] = {
14671 (char *) "self",(char *) "n",(char *) "imageId", NULL
14672 };
14673
14674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14677 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14678 if (PyErr_Occurred()) SWIG_fail;
14679 arg3 = (int)SWIG_As_int(obj2);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14684
14685 wxPyEndAllowThreads(__tstate);
14686 if (PyErr_Occurred()) SWIG_fail;
14687 }
14688 {
14689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14690 }
14691 return resultobj;
14692 fail:
14693 return NULL;
14694 }
14695
14696
14697 static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14698 PyObject *resultobj;
14699 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14700 wxSize *arg2 = 0 ;
14701 wxSize temp2 ;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 char *kwnames[] = {
14705 (char *) "self",(char *) "size", NULL
14706 };
14707
14708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14711 {
14712 arg2 = &temp2;
14713 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14714 }
14715 {
14716 PyThreadState* __tstate = wxPyBeginAllowThreads();
14717 (arg1)->SetPageSize((wxSize const &)*arg2);
14718
14719 wxPyEndAllowThreads(__tstate);
14720 if (PyErr_Occurred()) SWIG_fail;
14721 }
14722 Py_INCREF(Py_None); resultobj = Py_None;
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14730 PyObject *resultobj;
14731 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14732 wxSize *arg2 = 0 ;
14733 wxSize result;
14734 wxSize temp2 ;
14735 PyObject * obj0 = 0 ;
14736 PyObject * obj1 = 0 ;
14737 char *kwnames[] = {
14738 (char *) "self",(char *) "sizePage", NULL
14739 };
14740
14741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14744 {
14745 arg2 = &temp2;
14746 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14747 }
14748 {
14749 PyThreadState* __tstate = wxPyBeginAllowThreads();
14750 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14751
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 {
14756 wxSize * resultptr;
14757 resultptr = new wxSize((wxSize &) result);
14758 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14759 }
14760 return resultobj;
14761 fail:
14762 return NULL;
14763 }
14764
14765
14766 static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14767 PyObject *resultobj;
14768 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14769 size_t arg2 ;
14770 bool result;
14771 PyObject * obj0 = 0 ;
14772 PyObject * obj1 = 0 ;
14773 char *kwnames[] = {
14774 (char *) "self",(char *) "n", NULL
14775 };
14776
14777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14780 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 {
14783 PyThreadState* __tstate = wxPyBeginAllowThreads();
14784 result = (bool)(arg1)->DeletePage(arg2);
14785
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 {
14790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14791 }
14792 return resultobj;
14793 fail:
14794 return NULL;
14795 }
14796
14797
14798 static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14799 PyObject *resultobj;
14800 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14801 size_t arg2 ;
14802 bool result;
14803 PyObject * obj0 = 0 ;
14804 PyObject * obj1 = 0 ;
14805 char *kwnames[] = {
14806 (char *) "self",(char *) "n", NULL
14807 };
14808
14809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14812 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 {
14815 PyThreadState* __tstate = wxPyBeginAllowThreads();
14816 result = (bool)(arg1)->RemovePage(arg2);
14817
14818 wxPyEndAllowThreads(__tstate);
14819 if (PyErr_Occurred()) SWIG_fail;
14820 }
14821 {
14822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14823 }
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj;
14832 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14833 bool result;
14834 PyObject * obj0 = 0 ;
14835 char *kwnames[] = {
14836 (char *) "self", NULL
14837 };
14838
14839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail;
14840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14842 {
14843 PyThreadState* __tstate = wxPyBeginAllowThreads();
14844 result = (bool)(arg1)->DeleteAllPages();
14845
14846 wxPyEndAllowThreads(__tstate);
14847 if (PyErr_Occurred()) SWIG_fail;
14848 }
14849 {
14850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14851 }
14852 return resultobj;
14853 fail:
14854 return NULL;
14855 }
14856
14857
14858 static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14859 PyObject *resultobj;
14860 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14861 wxWindow *arg2 = (wxWindow *) 0 ;
14862 wxString *arg3 = 0 ;
14863 bool arg4 = (bool) false ;
14864 int arg5 = (int) -1 ;
14865 bool result;
14866 bool temp3 = false ;
14867 PyObject * obj0 = 0 ;
14868 PyObject * obj1 = 0 ;
14869 PyObject * obj2 = 0 ;
14870 PyObject * obj3 = 0 ;
14871 PyObject * obj4 = 0 ;
14872 char *kwnames[] = {
14873 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14874 };
14875
14876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14881 {
14882 arg3 = wxString_in_helper(obj2);
14883 if (arg3 == NULL) SWIG_fail;
14884 temp3 = true;
14885 }
14886 if (obj3) {
14887 arg4 = (bool)SWIG_As_bool(obj3);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 if (obj4) {
14891 arg5 = (int)SWIG_As_int(obj4);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14897
14898 wxPyEndAllowThreads(__tstate);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 }
14901 {
14902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14903 }
14904 {
14905 if (temp3)
14906 delete arg3;
14907 }
14908 return resultobj;
14909 fail:
14910 {
14911 if (temp3)
14912 delete arg3;
14913 }
14914 return NULL;
14915 }
14916
14917
14918 static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14919 PyObject *resultobj;
14920 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14921 size_t arg2 ;
14922 wxWindow *arg3 = (wxWindow *) 0 ;
14923 wxString *arg4 = 0 ;
14924 bool arg5 = (bool) false ;
14925 int arg6 = (int) -1 ;
14926 bool result;
14927 bool temp4 = false ;
14928 PyObject * obj0 = 0 ;
14929 PyObject * obj1 = 0 ;
14930 PyObject * obj2 = 0 ;
14931 PyObject * obj3 = 0 ;
14932 PyObject * obj4 = 0 ;
14933 PyObject * obj5 = 0 ;
14934 char *kwnames[] = {
14935 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14936 };
14937
14938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14941 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14945 {
14946 arg4 = wxString_in_helper(obj3);
14947 if (arg4 == NULL) SWIG_fail;
14948 temp4 = true;
14949 }
14950 if (obj4) {
14951 arg5 = (bool)SWIG_As_bool(obj4);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 if (obj5) {
14955 arg6 = (int)SWIG_As_int(obj5);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 {
14966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14967 }
14968 {
14969 if (temp4)
14970 delete arg4;
14971 }
14972 return resultobj;
14973 fail:
14974 {
14975 if (temp4)
14976 delete arg4;
14977 }
14978 return NULL;
14979 }
14980
14981
14982 static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14983 PyObject *resultobj;
14984 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14985 size_t arg2 ;
14986 int result;
14987 PyObject * obj0 = 0 ;
14988 PyObject * obj1 = 0 ;
14989 char *kwnames[] = {
14990 (char *) "self",(char *) "n", NULL
14991 };
14992
14993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14996 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14997 if (PyErr_Occurred()) SWIG_fail;
14998 {
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = (int)(arg1)->SetSelection(arg2);
15001
15002 wxPyEndAllowThreads(__tstate);
15003 if (PyErr_Occurred()) SWIG_fail;
15004 }
15005 resultobj = SWIG_From_int((int)result);
15006 return resultobj;
15007 fail:
15008 return NULL;
15009 }
15010
15011
15012 static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj;
15014 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15015 bool arg2 = (bool) true ;
15016 PyObject * obj0 = 0 ;
15017 PyObject * obj1 = 0 ;
15018 char *kwnames[] = {
15019 (char *) "self",(char *) "forward", NULL
15020 };
15021
15022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
15023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15025 if (obj1) {
15026 arg2 = (bool)SWIG_As_bool(obj1);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 {
15030 PyThreadState* __tstate = wxPyBeginAllowThreads();
15031 (arg1)->AdvanceSelection(arg2);
15032
15033 wxPyEndAllowThreads(__tstate);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 Py_INCREF(Py_None); resultobj = Py_None;
15037 return resultobj;
15038 fail:
15039 return NULL;
15040 }
15041
15042
15043 static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15044 PyObject *resultobj;
15045 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15046 wxVisualAttributes result;
15047 PyObject * obj0 = 0 ;
15048 char *kwnames[] = {
15049 (char *) "variant", NULL
15050 };
15051
15052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15053 if (obj0) {
15054 arg1 = (int)SWIG_As_int(obj0);
15055 if (PyErr_Occurred()) SWIG_fail;
15056 }
15057 {
15058 if (!wxPyCheckForApp()) SWIG_fail;
15059 PyThreadState* __tstate = wxPyBeginAllowThreads();
15060 result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1);
15061
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 {
15066 wxVisualAttributes * resultptr;
15067 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15068 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15069 }
15070 return resultobj;
15071 fail:
15072 return NULL;
15073 }
15074
15075
15076 static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) {
15077 PyObject *obj;
15078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15079 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj);
15080 Py_INCREF(obj);
15081 return Py_BuildValue((char *)"");
15082 }
15083 static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15084 PyObject *resultobj;
15085 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15086 int arg2 = (int) 0 ;
15087 int arg3 = (int) -1 ;
15088 int arg4 = (int) -1 ;
15089 wxBookCtrlBaseEvent *result;
15090 PyObject * obj0 = 0 ;
15091 PyObject * obj1 = 0 ;
15092 PyObject * obj2 = 0 ;
15093 PyObject * obj3 = 0 ;
15094 char *kwnames[] = {
15095 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15096 };
15097
15098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15099 if (obj0) {
15100 arg1 = (wxEventType)SWIG_As_int(obj0);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 if (obj1) {
15104 arg2 = (int)SWIG_As_int(obj1);
15105 if (PyErr_Occurred()) SWIG_fail;
15106 }
15107 if (obj2) {
15108 arg3 = (int)SWIG_As_int(obj2);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 }
15111 if (obj3) {
15112 arg4 = (int)SWIG_As_int(obj3);
15113 if (PyErr_Occurred()) SWIG_fail;
15114 }
15115 {
15116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15117 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
15118
15119 wxPyEndAllowThreads(__tstate);
15120 if (PyErr_Occurred()) SWIG_fail;
15121 }
15122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1);
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj;
15131 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15132 int result;
15133 PyObject * obj0 = 0 ;
15134 char *kwnames[] = {
15135 (char *) "self", NULL
15136 };
15137
15138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail;
15139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15141 {
15142 PyThreadState* __tstate = wxPyBeginAllowThreads();
15143 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
15144
15145 wxPyEndAllowThreads(__tstate);
15146 if (PyErr_Occurred()) SWIG_fail;
15147 }
15148 resultobj = SWIG_From_int((int)result);
15149 return resultobj;
15150 fail:
15151 return NULL;
15152 }
15153
15154
15155 static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15156 PyObject *resultobj;
15157 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15158 int arg2 ;
15159 PyObject * obj0 = 0 ;
15160 PyObject * obj1 = 0 ;
15161 char *kwnames[] = {
15162 (char *) "self",(char *) "nSel", NULL
15163 };
15164
15165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15168 arg2 = (int)SWIG_As_int(obj1);
15169 if (PyErr_Occurred()) SWIG_fail;
15170 {
15171 PyThreadState* __tstate = wxPyBeginAllowThreads();
15172 (arg1)->SetSelection(arg2);
15173
15174 wxPyEndAllowThreads(__tstate);
15175 if (PyErr_Occurred()) SWIG_fail;
15176 }
15177 Py_INCREF(Py_None); resultobj = Py_None;
15178 return resultobj;
15179 fail:
15180 return NULL;
15181 }
15182
15183
15184 static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15185 PyObject *resultobj;
15186 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15187 int result;
15188 PyObject * obj0 = 0 ;
15189 char *kwnames[] = {
15190 (char *) "self", NULL
15191 };
15192
15193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15196 {
15197 PyThreadState* __tstate = wxPyBeginAllowThreads();
15198 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
15199
15200 wxPyEndAllowThreads(__tstate);
15201 if (PyErr_Occurred()) SWIG_fail;
15202 }
15203 resultobj = SWIG_From_int((int)result);
15204 return resultobj;
15205 fail:
15206 return NULL;
15207 }
15208
15209
15210 static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15211 PyObject *resultobj;
15212 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15213 int arg2 ;
15214 PyObject * obj0 = 0 ;
15215 PyObject * obj1 = 0 ;
15216 char *kwnames[] = {
15217 (char *) "self",(char *) "nOldSel", NULL
15218 };
15219
15220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15223 arg2 = (int)SWIG_As_int(obj1);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 {
15226 PyThreadState* __tstate = wxPyBeginAllowThreads();
15227 (arg1)->SetOldSelection(arg2);
15228
15229 wxPyEndAllowThreads(__tstate);
15230 if (PyErr_Occurred()) SWIG_fail;
15231 }
15232 Py_INCREF(Py_None); resultobj = Py_None;
15233 return resultobj;
15234 fail:
15235 return NULL;
15236 }
15237
15238
15239 static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) {
15240 PyObject *obj;
15241 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15242 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj);
15243 Py_INCREF(obj);
15244 return Py_BuildValue((char *)"");
15245 }
15246 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15247 PyObject *resultobj;
15248 wxWindow *arg1 = (wxWindow *) 0 ;
15249 int arg2 = (int) -1 ;
15250 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15251 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15252 wxSize const &arg4_defvalue = wxDefaultSize ;
15253 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15254 long arg5 = (long) 0 ;
15255 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15256 wxString *arg6 = (wxString *) &arg6_defvalue ;
15257 wxNotebook *result;
15258 wxPoint temp3 ;
15259 wxSize temp4 ;
15260 bool temp6 = false ;
15261 PyObject * obj0 = 0 ;
15262 PyObject * obj1 = 0 ;
15263 PyObject * obj2 = 0 ;
15264 PyObject * obj3 = 0 ;
15265 PyObject * obj4 = 0 ;
15266 PyObject * obj5 = 0 ;
15267 char *kwnames[] = {
15268 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15269 };
15270
15271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15274 if (obj1) {
15275 arg2 = (int)SWIG_As_int(obj1);
15276 if (PyErr_Occurred()) SWIG_fail;
15277 }
15278 if (obj2) {
15279 {
15280 arg3 = &temp3;
15281 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15282 }
15283 }
15284 if (obj3) {
15285 {
15286 arg4 = &temp4;
15287 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15288 }
15289 }
15290 if (obj4) {
15291 arg5 = (long)SWIG_As_long(obj4);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 if (obj5) {
15295 {
15296 arg6 = wxString_in_helper(obj5);
15297 if (arg6 == NULL) SWIG_fail;
15298 temp6 = true;
15299 }
15300 }
15301 {
15302 if (!wxPyCheckForApp()) SWIG_fail;
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15310 {
15311 if (temp6)
15312 delete arg6;
15313 }
15314 return resultobj;
15315 fail:
15316 {
15317 if (temp6)
15318 delete arg6;
15319 }
15320 return NULL;
15321 }
15322
15323
15324 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15325 PyObject *resultobj;
15326 wxNotebook *result;
15327 char *kwnames[] = {
15328 NULL
15329 };
15330
15331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15332 {
15333 if (!wxPyCheckForApp()) SWIG_fail;
15334 PyThreadState* __tstate = wxPyBeginAllowThreads();
15335 result = (wxNotebook *)new wxNotebook();
15336
15337 wxPyEndAllowThreads(__tstate);
15338 if (PyErr_Occurred()) SWIG_fail;
15339 }
15340 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15341 return resultobj;
15342 fail:
15343 return NULL;
15344 }
15345
15346
15347 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15348 PyObject *resultobj;
15349 wxNotebook *arg1 = (wxNotebook *) 0 ;
15350 wxWindow *arg2 = (wxWindow *) 0 ;
15351 int arg3 = (int) -1 ;
15352 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15353 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15354 wxSize const &arg5_defvalue = wxDefaultSize ;
15355 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15356 long arg6 = (long) 0 ;
15357 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15358 wxString *arg7 = (wxString *) &arg7_defvalue ;
15359 bool result;
15360 wxPoint temp4 ;
15361 wxSize temp5 ;
15362 bool temp7 = false ;
15363 PyObject * obj0 = 0 ;
15364 PyObject * obj1 = 0 ;
15365 PyObject * obj2 = 0 ;
15366 PyObject * obj3 = 0 ;
15367 PyObject * obj4 = 0 ;
15368 PyObject * obj5 = 0 ;
15369 PyObject * obj6 = 0 ;
15370 char *kwnames[] = {
15371 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15372 };
15373
15374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15379 if (obj2) {
15380 arg3 = (int)SWIG_As_int(obj2);
15381 if (PyErr_Occurred()) SWIG_fail;
15382 }
15383 if (obj3) {
15384 {
15385 arg4 = &temp4;
15386 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15387 }
15388 }
15389 if (obj4) {
15390 {
15391 arg5 = &temp5;
15392 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15393 }
15394 }
15395 if (obj5) {
15396 arg6 = (long)SWIG_As_long(obj5);
15397 if (PyErr_Occurred()) SWIG_fail;
15398 }
15399 if (obj6) {
15400 {
15401 arg7 = wxString_in_helper(obj6);
15402 if (arg7 == NULL) SWIG_fail;
15403 temp7 = true;
15404 }
15405 }
15406 {
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15409
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 {
15414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15415 }
15416 {
15417 if (temp7)
15418 delete arg7;
15419 }
15420 return resultobj;
15421 fail:
15422 {
15423 if (temp7)
15424 delete arg7;
15425 }
15426 return NULL;
15427 }
15428
15429
15430 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15431 PyObject *resultobj;
15432 wxNotebook *arg1 = (wxNotebook *) 0 ;
15433 int result;
15434 PyObject * obj0 = 0 ;
15435 char *kwnames[] = {
15436 (char *) "self", NULL
15437 };
15438
15439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15442 {
15443 PyThreadState* __tstate = wxPyBeginAllowThreads();
15444 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15445
15446 wxPyEndAllowThreads(__tstate);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 resultobj = SWIG_From_int((int)result);
15450 return resultobj;
15451 fail:
15452 return NULL;
15453 }
15454
15455
15456 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15457 PyObject *resultobj;
15458 wxNotebook *arg1 = (wxNotebook *) 0 ;
15459 wxSize *arg2 = 0 ;
15460 wxSize temp2 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 char *kwnames[] = {
15464 (char *) "self",(char *) "padding", NULL
15465 };
15466
15467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15470 {
15471 arg2 = &temp2;
15472 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15473 }
15474 {
15475 PyThreadState* __tstate = wxPyBeginAllowThreads();
15476 (arg1)->SetPadding((wxSize const &)*arg2);
15477
15478 wxPyEndAllowThreads(__tstate);
15479 if (PyErr_Occurred()) SWIG_fail;
15480 }
15481 Py_INCREF(Py_None); resultobj = Py_None;
15482 return resultobj;
15483 fail:
15484 return NULL;
15485 }
15486
15487
15488 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15489 PyObject *resultobj;
15490 wxNotebook *arg1 = (wxNotebook *) 0 ;
15491 wxSize *arg2 = 0 ;
15492 wxSize temp2 ;
15493 PyObject * obj0 = 0 ;
15494 PyObject * obj1 = 0 ;
15495 char *kwnames[] = {
15496 (char *) "self",(char *) "sz", NULL
15497 };
15498
15499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15502 {
15503 arg2 = &temp2;
15504 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15505 }
15506 {
15507 PyThreadState* __tstate = wxPyBeginAllowThreads();
15508 (arg1)->SetTabSize((wxSize const &)*arg2);
15509
15510 wxPyEndAllowThreads(__tstate);
15511 if (PyErr_Occurred()) SWIG_fail;
15512 }
15513 Py_INCREF(Py_None); resultobj = Py_None;
15514 return resultobj;
15515 fail:
15516 return NULL;
15517 }
15518
15519
15520 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15521 PyObject *resultobj;
15522 wxNotebook *arg1 = (wxNotebook *) 0 ;
15523 wxPoint *arg2 = 0 ;
15524 long *arg3 = (long *) 0 ;
15525 int result;
15526 wxPoint temp2 ;
15527 long temp3 ;
15528 int res3 = 0 ;
15529 PyObject * obj0 = 0 ;
15530 PyObject * obj1 = 0 ;
15531 char *kwnames[] = {
15532 (char *) "self",(char *) "pt", NULL
15533 };
15534
15535 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15539 {
15540 arg2 = &temp2;
15541 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15542 }
15543 {
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15546
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_From_int((int)result);
15551 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15552 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15560 PyObject *resultobj;
15561 wxNotebook *arg1 = (wxNotebook *) 0 ;
15562 wxSize *arg2 = 0 ;
15563 wxSize result;
15564 wxSize temp2 ;
15565 PyObject * obj0 = 0 ;
15566 PyObject * obj1 = 0 ;
15567 char *kwnames[] = {
15568 (char *) "self",(char *) "sizePage", NULL
15569 };
15570
15571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15574 {
15575 arg2 = &temp2;
15576 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15577 }
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 {
15586 wxSize * resultptr;
15587 resultptr = new wxSize((wxSize &) result);
15588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15589 }
15590 return resultobj;
15591 fail:
15592 return NULL;
15593 }
15594
15595
15596 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj;
15598 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15599 wxVisualAttributes result;
15600 PyObject * obj0 = 0 ;
15601 char *kwnames[] = {
15602 (char *) "variant", NULL
15603 };
15604
15605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15606 if (obj0) {
15607 arg1 = (int)SWIG_As_int(obj0);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 {
15611 if (!wxPyCheckForApp()) SWIG_fail;
15612 PyThreadState* __tstate = wxPyBeginAllowThreads();
15613 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15614
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 {
15619 wxVisualAttributes * resultptr;
15620 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15621 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15622 }
15623 return resultobj;
15624 fail:
15625 return NULL;
15626 }
15627
15628
15629 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15630 PyObject *obj;
15631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15632 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15633 Py_INCREF(obj);
15634 return Py_BuildValue((char *)"");
15635 }
15636 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15637 PyObject *resultobj;
15638 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15639 int arg2 = (int) 0 ;
15640 int arg3 = (int) -1 ;
15641 int arg4 = (int) -1 ;
15642 wxNotebookEvent *result;
15643 PyObject * obj0 = 0 ;
15644 PyObject * obj1 = 0 ;
15645 PyObject * obj2 = 0 ;
15646 PyObject * obj3 = 0 ;
15647 char *kwnames[] = {
15648 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15649 };
15650
15651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15652 if (obj0) {
15653 arg1 = (wxEventType)SWIG_As_int(obj0);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 }
15656 if (obj1) {
15657 arg2 = (int)SWIG_As_int(obj1);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 if (obj2) {
15661 arg3 = (int)SWIG_As_int(obj2);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 if (obj3) {
15665 arg4 = (int)SWIG_As_int(obj3);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 {
15669 PyThreadState* __tstate = wxPyBeginAllowThreads();
15670 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15671
15672 wxPyEndAllowThreads(__tstate);
15673 if (PyErr_Occurred()) SWIG_fail;
15674 }
15675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15676 return resultobj;
15677 fail:
15678 return NULL;
15679 }
15680
15681
15682 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15683 PyObject *obj;
15684 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15685 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15686 Py_INCREF(obj);
15687 return Py_BuildValue((char *)"");
15688 }
15689 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15690 PyObject *resultobj;
15691 wxWindow *arg1 = (wxWindow *) 0 ;
15692 int arg2 = (int) -1 ;
15693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15695 wxSize const &arg4_defvalue = wxDefaultSize ;
15696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15697 long arg5 = (long) 0 ;
15698 wxString const &arg6_defvalue = wxPyEmptyString ;
15699 wxString *arg6 = (wxString *) &arg6_defvalue ;
15700 wxListbook *result;
15701 wxPoint temp3 ;
15702 wxSize temp4 ;
15703 bool temp6 = false ;
15704 PyObject * obj0 = 0 ;
15705 PyObject * obj1 = 0 ;
15706 PyObject * obj2 = 0 ;
15707 PyObject * obj3 = 0 ;
15708 PyObject * obj4 = 0 ;
15709 PyObject * obj5 = 0 ;
15710 char *kwnames[] = {
15711 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15712 };
15713
15714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15717 if (obj1) {
15718 arg2 = (int)SWIG_As_int(obj1);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 if (obj2) {
15722 {
15723 arg3 = &temp3;
15724 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15725 }
15726 }
15727 if (obj3) {
15728 {
15729 arg4 = &temp4;
15730 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15731 }
15732 }
15733 if (obj4) {
15734 arg5 = (long)SWIG_As_long(obj4);
15735 if (PyErr_Occurred()) SWIG_fail;
15736 }
15737 if (obj5) {
15738 {
15739 arg6 = wxString_in_helper(obj5);
15740 if (arg6 == NULL) SWIG_fail;
15741 temp6 = true;
15742 }
15743 }
15744 {
15745 if (!wxPyCheckForApp()) SWIG_fail;
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15753 {
15754 if (temp6)
15755 delete arg6;
15756 }
15757 return resultobj;
15758 fail:
15759 {
15760 if (temp6)
15761 delete arg6;
15762 }
15763 return NULL;
15764 }
15765
15766
15767 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15768 PyObject *resultobj;
15769 wxListbook *result;
15770 char *kwnames[] = {
15771 NULL
15772 };
15773
15774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15775 {
15776 if (!wxPyCheckForApp()) SWIG_fail;
15777 PyThreadState* __tstate = wxPyBeginAllowThreads();
15778 result = (wxListbook *)new wxListbook();
15779
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj;
15792 wxListbook *arg1 = (wxListbook *) 0 ;
15793 wxWindow *arg2 = (wxWindow *) 0 ;
15794 int arg3 = (int) -1 ;
15795 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15796 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15797 wxSize const &arg5_defvalue = wxDefaultSize ;
15798 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15799 long arg6 = (long) 0 ;
15800 wxString const &arg7_defvalue = wxPyEmptyString ;
15801 wxString *arg7 = (wxString *) &arg7_defvalue ;
15802 bool result;
15803 wxPoint temp4 ;
15804 wxSize temp5 ;
15805 bool temp7 = 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 char *kwnames[] = {
15814 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15815 };
15816
15817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15822 if (obj2) {
15823 arg3 = (int)SWIG_As_int(obj2);
15824 if (PyErr_Occurred()) SWIG_fail;
15825 }
15826 if (obj3) {
15827 {
15828 arg4 = &temp4;
15829 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15830 }
15831 }
15832 if (obj4) {
15833 {
15834 arg5 = &temp5;
15835 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15836 }
15837 }
15838 if (obj5) {
15839 arg6 = (long)SWIG_As_long(obj5);
15840 if (PyErr_Occurred()) SWIG_fail;
15841 }
15842 if (obj6) {
15843 {
15844 arg7 = wxString_in_helper(obj6);
15845 if (arg7 == NULL) SWIG_fail;
15846 temp7 = true;
15847 }
15848 }
15849 {
15850 PyThreadState* __tstate = wxPyBeginAllowThreads();
15851 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15852
15853 wxPyEndAllowThreads(__tstate);
15854 if (PyErr_Occurred()) SWIG_fail;
15855 }
15856 {
15857 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15858 }
15859 {
15860 if (temp7)
15861 delete arg7;
15862 }
15863 return resultobj;
15864 fail:
15865 {
15866 if (temp7)
15867 delete arg7;
15868 }
15869 return NULL;
15870 }
15871
15872
15873 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15874 PyObject *resultobj;
15875 wxListbook *arg1 = (wxListbook *) 0 ;
15876 bool result;
15877 PyObject * obj0 = 0 ;
15878 char *kwnames[] = {
15879 (char *) "self", NULL
15880 };
15881
15882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = (bool)((wxListbook const *)arg1)->IsVertical();
15888
15889 wxPyEndAllowThreads(__tstate);
15890 if (PyErr_Occurred()) SWIG_fail;
15891 }
15892 {
15893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15894 }
15895 return resultobj;
15896 fail:
15897 return NULL;
15898 }
15899
15900
15901 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15902 PyObject *resultobj;
15903 wxListbook *arg1 = (wxListbook *) 0 ;
15904 wxListView *result;
15905 PyObject * obj0 = 0 ;
15906 char *kwnames[] = {
15907 (char *) "self", NULL
15908 };
15909
15910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (wxListView *)(arg1)->GetListView();
15916
15917 wxPyEndAllowThreads(__tstate);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15921 return resultobj;
15922 fail:
15923 return NULL;
15924 }
15925
15926
15927 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15928 PyObject *obj;
15929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15930 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15931 Py_INCREF(obj);
15932 return Py_BuildValue((char *)"");
15933 }
15934 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15935 PyObject *resultobj;
15936 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15937 int arg2 = (int) 0 ;
15938 int arg3 = (int) -1 ;
15939 int arg4 = (int) -1 ;
15940 wxListbookEvent *result;
15941 PyObject * obj0 = 0 ;
15942 PyObject * obj1 = 0 ;
15943 PyObject * obj2 = 0 ;
15944 PyObject * obj3 = 0 ;
15945 char *kwnames[] = {
15946 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15947 };
15948
15949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15950 if (obj0) {
15951 arg1 = (wxEventType)SWIG_As_int(obj0);
15952 if (PyErr_Occurred()) SWIG_fail;
15953 }
15954 if (obj1) {
15955 arg2 = (int)SWIG_As_int(obj1);
15956 if (PyErr_Occurred()) SWIG_fail;
15957 }
15958 if (obj2) {
15959 arg3 = (int)SWIG_As_int(obj2);
15960 if (PyErr_Occurred()) SWIG_fail;
15961 }
15962 if (obj3) {
15963 arg4 = (int)SWIG_As_int(obj3);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 PyThreadState* __tstate = wxPyBeginAllowThreads();
15968 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15969
15970 wxPyEndAllowThreads(__tstate);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15974 return resultobj;
15975 fail:
15976 return NULL;
15977 }
15978
15979
15980 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15981 PyObject *obj;
15982 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15983 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15984 Py_INCREF(obj);
15985 return Py_BuildValue((char *)"");
15986 }
15987 static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) {
15988 PyObject *resultobj;
15989 wxWindow *arg1 = (wxWindow *) 0 ;
15990 int arg2 ;
15991 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15992 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15993 wxSize const &arg4_defvalue = wxDefaultSize ;
15994 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15995 long arg5 = (long) 0 ;
15996 wxString const &arg6_defvalue = wxPyEmptyString ;
15997 wxString *arg6 = (wxString *) &arg6_defvalue ;
15998 wxChoicebook *result;
15999 wxPoint temp3 ;
16000 wxSize temp4 ;
16001 bool temp6 = false ;
16002 PyObject * obj0 = 0 ;
16003 PyObject * obj1 = 0 ;
16004 PyObject * obj2 = 0 ;
16005 PyObject * obj3 = 0 ;
16006 PyObject * obj4 = 0 ;
16007 PyObject * obj5 = 0 ;
16008 char *kwnames[] = {
16009 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16010 };
16011
16012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16015 arg2 = (int)SWIG_As_int(obj1);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 if (obj2) {
16018 {
16019 arg3 = &temp3;
16020 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16021 }
16022 }
16023 if (obj3) {
16024 {
16025 arg4 = &temp4;
16026 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
16027 }
16028 }
16029 if (obj4) {
16030 arg5 = (long)SWIG_As_long(obj4);
16031 if (PyErr_Occurred()) SWIG_fail;
16032 }
16033 if (obj5) {
16034 {
16035 arg6 = wxString_in_helper(obj5);
16036 if (arg6 == NULL) SWIG_fail;
16037 temp6 = true;
16038 }
16039 }
16040 {
16041 if (!wxPyCheckForApp()) SWIG_fail;
16042 PyThreadState* __tstate = wxPyBeginAllowThreads();
16043 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
16044
16045 wxPyEndAllowThreads(__tstate);
16046 if (PyErr_Occurred()) SWIG_fail;
16047 }
16048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16049 {
16050 if (temp6)
16051 delete arg6;
16052 }
16053 return resultobj;
16054 fail:
16055 {
16056 if (temp6)
16057 delete arg6;
16058 }
16059 return NULL;
16060 }
16061
16062
16063 static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16064 PyObject *resultobj;
16065 wxChoicebook *result;
16066 char *kwnames[] = {
16067 NULL
16068 };
16069
16070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail;
16071 {
16072 if (!wxPyCheckForApp()) SWIG_fail;
16073 PyThreadState* __tstate = wxPyBeginAllowThreads();
16074 result = (wxChoicebook *)new wxChoicebook();
16075
16076 wxPyEndAllowThreads(__tstate);
16077 if (PyErr_Occurred()) SWIG_fail;
16078 }
16079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16080 return resultobj;
16081 fail:
16082 return NULL;
16083 }
16084
16085
16086 static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
16087 PyObject *resultobj;
16088 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16089 wxWindow *arg2 = (wxWindow *) 0 ;
16090 int arg3 ;
16091 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16092 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16093 wxSize const &arg5_defvalue = wxDefaultSize ;
16094 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16095 long arg6 = (long) 0 ;
16096 wxString const &arg7_defvalue = wxPyEmptyString ;
16097 wxString *arg7 = (wxString *) &arg7_defvalue ;
16098 bool result;
16099 wxPoint temp4 ;
16100 wxSize temp5 ;
16101 bool temp7 = false ;
16102 PyObject * obj0 = 0 ;
16103 PyObject * obj1 = 0 ;
16104 PyObject * obj2 = 0 ;
16105 PyObject * obj3 = 0 ;
16106 PyObject * obj4 = 0 ;
16107 PyObject * obj5 = 0 ;
16108 PyObject * obj6 = 0 ;
16109 char *kwnames[] = {
16110 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16111 };
16112
16113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16118 arg3 = (int)SWIG_As_int(obj2);
16119 if (PyErr_Occurred()) SWIG_fail;
16120 if (obj3) {
16121 {
16122 arg4 = &temp4;
16123 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16124 }
16125 }
16126 if (obj4) {
16127 {
16128 arg5 = &temp5;
16129 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16130 }
16131 }
16132 if (obj5) {
16133 arg6 = (long)SWIG_As_long(obj5);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 if (obj6) {
16137 {
16138 arg7 = wxString_in_helper(obj6);
16139 if (arg7 == NULL) SWIG_fail;
16140 temp7 = true;
16141 }
16142 }
16143 {
16144 PyThreadState* __tstate = wxPyBeginAllowThreads();
16145 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
16146
16147 wxPyEndAllowThreads(__tstate);
16148 if (PyErr_Occurred()) SWIG_fail;
16149 }
16150 {
16151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16152 }
16153 {
16154 if (temp7)
16155 delete arg7;
16156 }
16157 return resultobj;
16158 fail:
16159 {
16160 if (temp7)
16161 delete arg7;
16162 }
16163 return NULL;
16164 }
16165
16166
16167 static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
16168 PyObject *resultobj;
16169 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16170 bool result;
16171 PyObject * obj0 = 0 ;
16172 char *kwnames[] = {
16173 (char *) "self", NULL
16174 };
16175
16176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail;
16177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16179 {
16180 PyThreadState* __tstate = wxPyBeginAllowThreads();
16181 result = (bool)((wxChoicebook const *)arg1)->IsVertical();
16182
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16188 }
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj;
16197 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16198 bool result;
16199 PyObject * obj0 = 0 ;
16200 char *kwnames[] = {
16201 (char *) "self", NULL
16202 };
16203
16204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail;
16205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (bool)(arg1)->DeleteAllPages();
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 {
16215 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16216 }
16217 return resultobj;
16218 fail:
16219 return NULL;
16220 }
16221
16222
16223 static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) {
16224 PyObject *obj;
16225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16226 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj);
16227 Py_INCREF(obj);
16228 return Py_BuildValue((char *)"");
16229 }
16230 static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj;
16232 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16233 int arg2 = (int) 0 ;
16234 int arg3 = (int) -1 ;
16235 int arg4 = (int) -1 ;
16236 wxChoicebookEvent *result;
16237 PyObject * obj0 = 0 ;
16238 PyObject * obj1 = 0 ;
16239 PyObject * obj2 = 0 ;
16240 PyObject * obj3 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16246 if (obj0) {
16247 arg1 = (wxEventType)SWIG_As_int(obj0);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 if (obj1) {
16251 arg2 = (int)SWIG_As_int(obj1);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 if (obj2) {
16255 arg3 = (int)SWIG_As_int(obj2);
16256 if (PyErr_Occurred()) SWIG_fail;
16257 }
16258 if (obj3) {
16259 arg4 = (int)SWIG_As_int(obj3);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
16265
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1);
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) {
16277 PyObject *obj;
16278 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16279 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj);
16280 Py_INCREF(obj);
16281 return Py_BuildValue((char *)"");
16282 }
16283 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16284 PyObject *resultobj;
16285 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
16286 wxBookCtrlSizer *result;
16287 PyObject * obj0 = 0 ;
16288 char *kwnames[] = {
16289 (char *) "nb", NULL
16290 };
16291
16292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
16293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
16294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16295 {
16296 PyThreadState* __tstate = wxPyBeginAllowThreads();
16297 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
16298
16299 wxPyEndAllowThreads(__tstate);
16300 if (PyErr_Occurred()) SWIG_fail;
16301 }
16302 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
16303 return resultobj;
16304 fail:
16305 return NULL;
16306 }
16307
16308
16309 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16310 PyObject *resultobj;
16311 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16312 PyObject * obj0 = 0 ;
16313 char *kwnames[] = {
16314 (char *) "self", NULL
16315 };
16316
16317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16320 {
16321 PyThreadState* __tstate = wxPyBeginAllowThreads();
16322 (arg1)->RecalcSizes();
16323
16324 wxPyEndAllowThreads(__tstate);
16325 if (PyErr_Occurred()) SWIG_fail;
16326 }
16327 Py_INCREF(Py_None); resultobj = Py_None;
16328 return resultobj;
16329 fail:
16330 return NULL;
16331 }
16332
16333
16334 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj;
16336 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16337 wxSize result;
16338 PyObject * obj0 = 0 ;
16339 char *kwnames[] = {
16340 (char *) "self", NULL
16341 };
16342
16343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (arg1)->CalcMin();
16349
16350 wxPyEndAllowThreads(__tstate);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 }
16353 {
16354 wxSize * resultptr;
16355 resultptr = new wxSize((wxSize &) result);
16356 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16357 }
16358 return resultobj;
16359 fail:
16360 return NULL;
16361 }
16362
16363
16364 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj;
16366 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16367 wxBookCtrlBase *result;
16368 PyObject * obj0 = 0 ;
16369 char *kwnames[] = {
16370 (char *) "self", NULL
16371 };
16372
16373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16376 {
16377 PyThreadState* __tstate = wxPyBeginAllowThreads();
16378 result = (wxBookCtrlBase *)(arg1)->GetControl();
16379
16380 wxPyEndAllowThreads(__tstate);
16381 if (PyErr_Occurred()) SWIG_fail;
16382 }
16383 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0);
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16391 PyObject *obj;
16392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16393 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16394 Py_INCREF(obj);
16395 return Py_BuildValue((char *)"");
16396 }
16397 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16398 PyObject *resultobj;
16399 wxNotebook *arg1 = (wxNotebook *) 0 ;
16400 wxNotebookSizer *result;
16401 PyObject * obj0 = 0 ;
16402 char *kwnames[] = {
16403 (char *) "nb", NULL
16404 };
16405
16406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16412
16413 wxPyEndAllowThreads(__tstate);
16414 if (PyErr_Occurred()) SWIG_fail;
16415 }
16416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16417 return resultobj;
16418 fail:
16419 return NULL;
16420 }
16421
16422
16423 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16424 PyObject *resultobj;
16425 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16426 PyObject * obj0 = 0 ;
16427 char *kwnames[] = {
16428 (char *) "self", NULL
16429 };
16430
16431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 (arg1)->RecalcSizes();
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 Py_INCREF(Py_None); resultobj = Py_None;
16442 return resultobj;
16443 fail:
16444 return NULL;
16445 }
16446
16447
16448 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16451 wxSize result;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (arg1)->CalcMin();
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 {
16468 wxSize * resultptr;
16469 resultptr = new wxSize((wxSize &) result);
16470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16471 }
16472 return resultobj;
16473 fail:
16474 return NULL;
16475 }
16476
16477
16478 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16479 PyObject *resultobj;
16480 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16481 wxNotebook *result;
16482 PyObject * obj0 = 0 ;
16483 char *kwnames[] = {
16484 (char *) "self", NULL
16485 };
16486
16487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 result = (wxNotebook *)(arg1)->GetNotebook();
16493
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 {
16498 resultobj = wxPyMake_wxObject(result, 0);
16499 }
16500 return resultobj;
16501 fail:
16502 return NULL;
16503 }
16504
16505
16506 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16507 PyObject *obj;
16508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16509 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16510 Py_INCREF(obj);
16511 return Py_BuildValue((char *)"");
16512 }
16513 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16514 PyObject *resultobj;
16515 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16516 int result;
16517 PyObject * obj0 = 0 ;
16518 char *kwnames[] = {
16519 (char *) "self", NULL
16520 };
16521
16522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16525 {
16526 PyThreadState* __tstate = wxPyBeginAllowThreads();
16527 result = (int)(arg1)->GetId();
16528
16529 wxPyEndAllowThreads(__tstate);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 }
16532 resultobj = SWIG_From_int((int)result);
16533 return resultobj;
16534 fail:
16535 return NULL;
16536 }
16537
16538
16539 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16540 PyObject *resultobj;
16541 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16542 wxControl *result;
16543 PyObject * obj0 = 0 ;
16544 char *kwnames[] = {
16545 (char *) "self", NULL
16546 };
16547
16548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16551 {
16552 PyThreadState* __tstate = wxPyBeginAllowThreads();
16553 result = (wxControl *)(arg1)->GetControl();
16554
16555 wxPyEndAllowThreads(__tstate);
16556 if (PyErr_Occurred()) SWIG_fail;
16557 }
16558 {
16559 resultobj = wxPyMake_wxObject(result, 0);
16560 }
16561 return resultobj;
16562 fail:
16563 return NULL;
16564 }
16565
16566
16567 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16568 PyObject *resultobj;
16569 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16570 wxToolBarBase *result;
16571 PyObject * obj0 = 0 ;
16572 char *kwnames[] = {
16573 (char *) "self", NULL
16574 };
16575
16576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16579 {
16580 PyThreadState* __tstate = wxPyBeginAllowThreads();
16581 result = (wxToolBarBase *)(arg1)->GetToolBar();
16582
16583 wxPyEndAllowThreads(__tstate);
16584 if (PyErr_Occurred()) SWIG_fail;
16585 }
16586 {
16587 resultobj = wxPyMake_wxObject(result, 0);
16588 }
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj;
16597 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16598 int result;
16599 PyObject * obj0 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "self", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16607 {
16608 PyThreadState* __tstate = wxPyBeginAllowThreads();
16609 result = (int)(arg1)->IsButton();
16610
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
16614 resultobj = SWIG_From_int((int)result);
16615 return resultobj;
16616 fail:
16617 return NULL;
16618 }
16619
16620
16621 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16622 PyObject *resultobj;
16623 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16624 int result;
16625 PyObject * obj0 = 0 ;
16626 char *kwnames[] = {
16627 (char *) "self", NULL
16628 };
16629
16630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16633 {
16634 PyThreadState* __tstate = wxPyBeginAllowThreads();
16635 result = (int)(arg1)->IsControl();
16636
16637 wxPyEndAllowThreads(__tstate);
16638 if (PyErr_Occurred()) SWIG_fail;
16639 }
16640 resultobj = SWIG_From_int((int)result);
16641 return resultobj;
16642 fail:
16643 return NULL;
16644 }
16645
16646
16647 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16648 PyObject *resultobj;
16649 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16650 int result;
16651 PyObject * obj0 = 0 ;
16652 char *kwnames[] = {
16653 (char *) "self", NULL
16654 };
16655
16656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16659 {
16660 PyThreadState* __tstate = wxPyBeginAllowThreads();
16661 result = (int)(arg1)->IsSeparator();
16662
16663 wxPyEndAllowThreads(__tstate);
16664 if (PyErr_Occurred()) SWIG_fail;
16665 }
16666 resultobj = SWIG_From_int((int)result);
16667 return resultobj;
16668 fail:
16669 return NULL;
16670 }
16671
16672
16673 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16674 PyObject *resultobj;
16675 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16676 int result;
16677 PyObject * obj0 = 0 ;
16678 char *kwnames[] = {
16679 (char *) "self", NULL
16680 };
16681
16682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16685 {
16686 PyThreadState* __tstate = wxPyBeginAllowThreads();
16687 result = (int)(arg1)->GetStyle();
16688
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 resultobj = SWIG_From_int((int)result);
16693 return resultobj;
16694 fail:
16695 return NULL;
16696 }
16697
16698
16699 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16700 PyObject *resultobj;
16701 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16702 int result;
16703 PyObject * obj0 = 0 ;
16704 char *kwnames[] = {
16705 (char *) "self", NULL
16706 };
16707
16708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 result = (int)(arg1)->GetKind();
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 resultobj = SWIG_From_int((int)result);
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16728 bool result;
16729 PyObject * obj0 = 0 ;
16730 char *kwnames[] = {
16731 (char *) "self", NULL
16732 };
16733
16734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16737 {
16738 PyThreadState* __tstate = wxPyBeginAllowThreads();
16739 result = (bool)(arg1)->IsEnabled();
16740
16741 wxPyEndAllowThreads(__tstate);
16742 if (PyErr_Occurred()) SWIG_fail;
16743 }
16744 {
16745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16746 }
16747 return resultobj;
16748 fail:
16749 return NULL;
16750 }
16751
16752
16753 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj;
16755 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16756 bool result;
16757 PyObject * obj0 = 0 ;
16758 char *kwnames[] = {
16759 (char *) "self", NULL
16760 };
16761
16762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16765 {
16766 PyThreadState* __tstate = wxPyBeginAllowThreads();
16767 result = (bool)(arg1)->IsToggled();
16768
16769 wxPyEndAllowThreads(__tstate);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 {
16773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16774 }
16775 return resultobj;
16776 fail:
16777 return NULL;
16778 }
16779
16780
16781 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16782 PyObject *resultobj;
16783 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16784 bool result;
16785 PyObject * obj0 = 0 ;
16786 char *kwnames[] = {
16787 (char *) "self", NULL
16788 };
16789
16790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16793 {
16794 PyThreadState* __tstate = wxPyBeginAllowThreads();
16795 result = (bool)(arg1)->CanBeToggled();
16796
16797 wxPyEndAllowThreads(__tstate);
16798 if (PyErr_Occurred()) SWIG_fail;
16799 }
16800 {
16801 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16802 }
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16810 PyObject *resultobj;
16811 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16812 wxBitmap *result;
16813 PyObject * obj0 = 0 ;
16814 char *kwnames[] = {
16815 (char *) "self", NULL
16816 };
16817
16818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 {
16824 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16825 result = (wxBitmap *) &_result_ref;
16826 }
16827
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832 wxBitmap* resultptr = new wxBitmap(*result);
16833 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16834 }
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16842 PyObject *resultobj;
16843 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16844 wxBitmap *result;
16845 PyObject * obj0 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "self", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 {
16856 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16857 result = (wxBitmap *) &_result_ref;
16858 }
16859
16860 wxPyEndAllowThreads(__tstate);
16861 if (PyErr_Occurred()) SWIG_fail;
16862 }
16863 {
16864 wxBitmap* resultptr = new wxBitmap(*result);
16865 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16866 }
16867 return resultobj;
16868 fail:
16869 return NULL;
16870 }
16871
16872
16873 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16874 PyObject *resultobj;
16875 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16876 wxBitmap result;
16877 PyObject * obj0 = 0 ;
16878 char *kwnames[] = {
16879 (char *) "self", NULL
16880 };
16881
16882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (arg1)->GetBitmap();
16888
16889 wxPyEndAllowThreads(__tstate);
16890 if (PyErr_Occurred()) SWIG_fail;
16891 }
16892 {
16893 wxBitmap * resultptr;
16894 resultptr = new wxBitmap((wxBitmap &) result);
16895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16896 }
16897 return resultobj;
16898 fail:
16899 return NULL;
16900 }
16901
16902
16903 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj;
16905 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16906 wxString result;
16907 PyObject * obj0 = 0 ;
16908 char *kwnames[] = {
16909 (char *) "self", NULL
16910 };
16911
16912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
16917 result = (arg1)->GetLabel();
16918
16919 wxPyEndAllowThreads(__tstate);
16920 if (PyErr_Occurred()) SWIG_fail;
16921 }
16922 {
16923 #if wxUSE_UNICODE
16924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16925 #else
16926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16927 #endif
16928 }
16929 return resultobj;
16930 fail:
16931 return NULL;
16932 }
16933
16934
16935 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16936 PyObject *resultobj;
16937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16938 wxString result;
16939 PyObject * obj0 = 0 ;
16940 char *kwnames[] = {
16941 (char *) "self", NULL
16942 };
16943
16944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16947 {
16948 PyThreadState* __tstate = wxPyBeginAllowThreads();
16949 result = (arg1)->GetShortHelp();
16950
16951 wxPyEndAllowThreads(__tstate);
16952 if (PyErr_Occurred()) SWIG_fail;
16953 }
16954 {
16955 #if wxUSE_UNICODE
16956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16957 #else
16958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16959 #endif
16960 }
16961 return resultobj;
16962 fail:
16963 return NULL;
16964 }
16965
16966
16967 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16968 PyObject *resultobj;
16969 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16970 wxString result;
16971 PyObject * obj0 = 0 ;
16972 char *kwnames[] = {
16973 (char *) "self", NULL
16974 };
16975
16976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = (arg1)->GetLongHelp();
16982
16983 wxPyEndAllowThreads(__tstate);
16984 if (PyErr_Occurred()) SWIG_fail;
16985 }
16986 {
16987 #if wxUSE_UNICODE
16988 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16989 #else
16990 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16991 #endif
16992 }
16993 return resultobj;
16994 fail:
16995 return NULL;
16996 }
16997
16998
16999 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj;
17001 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17002 bool arg2 ;
17003 bool result;
17004 PyObject * obj0 = 0 ;
17005 PyObject * obj1 = 0 ;
17006 char *kwnames[] = {
17007 (char *) "self",(char *) "enable", NULL
17008 };
17009
17010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
17011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17013 arg2 = (bool)SWIG_As_bool(obj1);
17014 if (PyErr_Occurred()) SWIG_fail;
17015 {
17016 PyThreadState* __tstate = wxPyBeginAllowThreads();
17017 result = (bool)(arg1)->Enable(arg2);
17018
17019 wxPyEndAllowThreads(__tstate);
17020 if (PyErr_Occurred()) SWIG_fail;
17021 }
17022 {
17023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17024 }
17025 return resultobj;
17026 fail:
17027 return NULL;
17028 }
17029
17030
17031 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
17032 PyObject *resultobj;
17033 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17034 PyObject * obj0 = 0 ;
17035 char *kwnames[] = {
17036 (char *) "self", NULL
17037 };
17038
17039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
17040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17042 {
17043 PyThreadState* __tstate = wxPyBeginAllowThreads();
17044 (arg1)->Toggle();
17045
17046 wxPyEndAllowThreads(__tstate);
17047 if (PyErr_Occurred()) SWIG_fail;
17048 }
17049 Py_INCREF(Py_None); resultobj = Py_None;
17050 return resultobj;
17051 fail:
17052 return NULL;
17053 }
17054
17055
17056 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17057 PyObject *resultobj;
17058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17059 bool arg2 ;
17060 bool result;
17061 PyObject * obj0 = 0 ;
17062 PyObject * obj1 = 0 ;
17063 char *kwnames[] = {
17064 (char *) "self",(char *) "toggle", NULL
17065 };
17066
17067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
17068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17070 arg2 = (bool)SWIG_As_bool(obj1);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 {
17073 PyThreadState* __tstate = wxPyBeginAllowThreads();
17074 result = (bool)(arg1)->SetToggle(arg2);
17075
17076 wxPyEndAllowThreads(__tstate);
17077 if (PyErr_Occurred()) SWIG_fail;
17078 }
17079 {
17080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17081 }
17082 return resultobj;
17083 fail:
17084 return NULL;
17085 }
17086
17087
17088 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17089 PyObject *resultobj;
17090 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17091 wxString *arg2 = 0 ;
17092 bool result;
17093 bool temp2 = false ;
17094 PyObject * obj0 = 0 ;
17095 PyObject * obj1 = 0 ;
17096 char *kwnames[] = {
17097 (char *) "self",(char *) "help", NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
17101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17103 {
17104 arg2 = wxString_in_helper(obj1);
17105 if (arg2 == NULL) SWIG_fail;
17106 temp2 = true;
17107 }
17108 {
17109 PyThreadState* __tstate = wxPyBeginAllowThreads();
17110 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
17111
17112 wxPyEndAllowThreads(__tstate);
17113 if (PyErr_Occurred()) SWIG_fail;
17114 }
17115 {
17116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17117 }
17118 {
17119 if (temp2)
17120 delete arg2;
17121 }
17122 return resultobj;
17123 fail:
17124 {
17125 if (temp2)
17126 delete arg2;
17127 }
17128 return NULL;
17129 }
17130
17131
17132 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17133 PyObject *resultobj;
17134 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17135 wxString *arg2 = 0 ;
17136 bool result;
17137 bool temp2 = false ;
17138 PyObject * obj0 = 0 ;
17139 PyObject * obj1 = 0 ;
17140 char *kwnames[] = {
17141 (char *) "self",(char *) "help", NULL
17142 };
17143
17144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
17145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17147 {
17148 arg2 = wxString_in_helper(obj1);
17149 if (arg2 == NULL) SWIG_fail;
17150 temp2 = true;
17151 }
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 {
17160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17161 }
17162 {
17163 if (temp2)
17164 delete arg2;
17165 }
17166 return resultobj;
17167 fail:
17168 {
17169 if (temp2)
17170 delete arg2;
17171 }
17172 return NULL;
17173 }
17174
17175
17176 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17177 PyObject *resultobj;
17178 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17179 wxBitmap *arg2 = 0 ;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 char *kwnames[] = {
17183 (char *) "self",(char *) "bmp", NULL
17184 };
17185
17186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
17187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17190 SWIG_POINTER_EXCEPTION | 0)) == -1)
17191 SWIG_fail;
17192 if (arg2 == NULL) {
17193 PyErr_SetString(PyExc_TypeError,"null reference");
17194 SWIG_fail;
17195 }
17196 {
17197 PyThreadState* __tstate = wxPyBeginAllowThreads();
17198 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
17199
17200 wxPyEndAllowThreads(__tstate);
17201 if (PyErr_Occurred()) SWIG_fail;
17202 }
17203 Py_INCREF(Py_None); resultobj = Py_None;
17204 return resultobj;
17205 fail:
17206 return NULL;
17207 }
17208
17209
17210 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17211 PyObject *resultobj;
17212 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17213 wxBitmap *arg2 = 0 ;
17214 PyObject * obj0 = 0 ;
17215 PyObject * obj1 = 0 ;
17216 char *kwnames[] = {
17217 (char *) "self",(char *) "bmp", NULL
17218 };
17219
17220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
17221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17224 SWIG_POINTER_EXCEPTION | 0)) == -1)
17225 SWIG_fail;
17226 if (arg2 == NULL) {
17227 PyErr_SetString(PyExc_TypeError,"null reference");
17228 SWIG_fail;
17229 }
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
17233
17234 wxPyEndAllowThreads(__tstate);
17235 if (PyErr_Occurred()) SWIG_fail;
17236 }
17237 Py_INCREF(Py_None); resultobj = Py_None;
17238 return resultobj;
17239 fail:
17240 return NULL;
17241 }
17242
17243
17244 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17245 PyObject *resultobj;
17246 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17247 wxString *arg2 = 0 ;
17248 bool temp2 = false ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 char *kwnames[] = {
17252 (char *) "self",(char *) "label", NULL
17253 };
17254
17255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
17256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17258 {
17259 arg2 = wxString_in_helper(obj1);
17260 if (arg2 == NULL) SWIG_fail;
17261 temp2 = true;
17262 }
17263 {
17264 PyThreadState* __tstate = wxPyBeginAllowThreads();
17265 (arg1)->SetLabel((wxString const &)*arg2);
17266
17267 wxPyEndAllowThreads(__tstate);
17268 if (PyErr_Occurred()) SWIG_fail;
17269 }
17270 Py_INCREF(Py_None); resultobj = Py_None;
17271 {
17272 if (temp2)
17273 delete arg2;
17274 }
17275 return resultobj;
17276 fail:
17277 {
17278 if (temp2)
17279 delete arg2;
17280 }
17281 return NULL;
17282 }
17283
17284
17285 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj;
17287 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17288 PyObject * obj0 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 (arg1)->Detach();
17299
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 Py_INCREF(Py_None); resultobj = Py_None;
17304 return resultobj;
17305 fail:
17306 return NULL;
17307 }
17308
17309
17310 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
17311 PyObject *resultobj;
17312 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17313 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self",(char *) "tbar", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
17324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17325 {
17326 PyThreadState* __tstate = wxPyBeginAllowThreads();
17327 (arg1)->Attach(arg2);
17328
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 Py_INCREF(Py_None); resultobj = Py_None;
17333 return resultobj;
17334 fail:
17335 return NULL;
17336 }
17337
17338
17339 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17340 PyObject *resultobj;
17341 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17342 PyObject *result;
17343 PyObject * obj0 = 0 ;
17344 char *kwnames[] = {
17345 (char *) "self", NULL
17346 };
17347
17348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17351 {
17352 PyThreadState* __tstate = wxPyBeginAllowThreads();
17353 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17354
17355 wxPyEndAllowThreads(__tstate);
17356 if (PyErr_Occurred()) SWIG_fail;
17357 }
17358 resultobj = result;
17359 return resultobj;
17360 fail:
17361 return NULL;
17362 }
17363
17364
17365 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17366 PyObject *resultobj;
17367 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17368 PyObject *arg2 = (PyObject *) 0 ;
17369 PyObject * obj0 = 0 ;
17370 PyObject * obj1 = 0 ;
17371 char *kwnames[] = {
17372 (char *) "self",(char *) "clientData", NULL
17373 };
17374
17375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17378 arg2 = obj1;
17379 {
17380 PyThreadState* __tstate = wxPyBeginAllowThreads();
17381 wxToolBarToolBase_SetClientData(arg1,arg2);
17382
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 Py_INCREF(Py_None); resultobj = Py_None;
17387 return resultobj;
17388 fail:
17389 return NULL;
17390 }
17391
17392
17393 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17394 PyObject *obj;
17395 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17396 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17397 Py_INCREF(obj);
17398 return Py_BuildValue((char *)"");
17399 }
17400 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj;
17402 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17403 int arg2 ;
17404 wxString *arg3 = 0 ;
17405 wxBitmap *arg4 = 0 ;
17406 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17407 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17408 int arg6 = (int) wxITEM_NORMAL ;
17409 wxString const &arg7_defvalue = wxPyEmptyString ;
17410 wxString *arg7 = (wxString *) &arg7_defvalue ;
17411 wxString const &arg8_defvalue = wxPyEmptyString ;
17412 wxString *arg8 = (wxString *) &arg8_defvalue ;
17413 PyObject *arg9 = (PyObject *) NULL ;
17414 wxToolBarToolBase *result;
17415 bool temp3 = false ;
17416 bool temp7 = false ;
17417 bool temp8 = false ;
17418 PyObject * obj0 = 0 ;
17419 PyObject * obj1 = 0 ;
17420 PyObject * obj2 = 0 ;
17421 PyObject * obj3 = 0 ;
17422 PyObject * obj4 = 0 ;
17423 PyObject * obj5 = 0 ;
17424 PyObject * obj6 = 0 ;
17425 PyObject * obj7 = 0 ;
17426 PyObject * obj8 = 0 ;
17427 char *kwnames[] = {
17428 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17429 };
17430
17431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17434 arg2 = (int)SWIG_As_int(obj1);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 {
17437 arg3 = wxString_in_helper(obj2);
17438 if (arg3 == NULL) SWIG_fail;
17439 temp3 = true;
17440 }
17441 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17442 SWIG_POINTER_EXCEPTION | 0)) == -1)
17443 SWIG_fail;
17444 if (arg4 == NULL) {
17445 PyErr_SetString(PyExc_TypeError,"null reference");
17446 SWIG_fail;
17447 }
17448 if (obj4) {
17449 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17450 SWIG_POINTER_EXCEPTION | 0)) == -1)
17451 SWIG_fail;
17452 if (arg5 == NULL) {
17453 PyErr_SetString(PyExc_TypeError,"null reference");
17454 SWIG_fail;
17455 }
17456 }
17457 if (obj5) {
17458 arg6 = (int)SWIG_As_int(obj5);
17459 if (PyErr_Occurred()) SWIG_fail;
17460 }
17461 if (obj6) {
17462 {
17463 arg7 = wxString_in_helper(obj6);
17464 if (arg7 == NULL) SWIG_fail;
17465 temp7 = true;
17466 }
17467 }
17468 if (obj7) {
17469 {
17470 arg8 = wxString_in_helper(obj7);
17471 if (arg8 == NULL) SWIG_fail;
17472 temp8 = true;
17473 }
17474 }
17475 if (obj8) {
17476 arg9 = obj8;
17477 }
17478 {
17479 PyThreadState* __tstate = wxPyBeginAllowThreads();
17480 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17481
17482 wxPyEndAllowThreads(__tstate);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 }
17485 {
17486 resultobj = wxPyMake_wxObject(result, 0);
17487 }
17488 {
17489 if (temp3)
17490 delete arg3;
17491 }
17492 {
17493 if (temp7)
17494 delete arg7;
17495 }
17496 {
17497 if (temp8)
17498 delete arg8;
17499 }
17500 return resultobj;
17501 fail:
17502 {
17503 if (temp3)
17504 delete arg3;
17505 }
17506 {
17507 if (temp7)
17508 delete arg7;
17509 }
17510 {
17511 if (temp8)
17512 delete arg8;
17513 }
17514 return NULL;
17515 }
17516
17517
17518 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj;
17520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17521 size_t arg2 ;
17522 int arg3 ;
17523 wxString *arg4 = 0 ;
17524 wxBitmap *arg5 = 0 ;
17525 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17526 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17527 int arg7 = (int) wxITEM_NORMAL ;
17528 wxString const &arg8_defvalue = wxPyEmptyString ;
17529 wxString *arg8 = (wxString *) &arg8_defvalue ;
17530 wxString const &arg9_defvalue = wxPyEmptyString ;
17531 wxString *arg9 = (wxString *) &arg9_defvalue ;
17532 PyObject *arg10 = (PyObject *) NULL ;
17533 wxToolBarToolBase *result;
17534 bool temp4 = false ;
17535 bool temp8 = false ;
17536 bool temp9 = false ;
17537 PyObject * obj0 = 0 ;
17538 PyObject * obj1 = 0 ;
17539 PyObject * obj2 = 0 ;
17540 PyObject * obj3 = 0 ;
17541 PyObject * obj4 = 0 ;
17542 PyObject * obj5 = 0 ;
17543 PyObject * obj6 = 0 ;
17544 PyObject * obj7 = 0 ;
17545 PyObject * obj8 = 0 ;
17546 PyObject * obj9 = 0 ;
17547 char *kwnames[] = {
17548 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17549 };
17550
17551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17554 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17555 if (PyErr_Occurred()) SWIG_fail;
17556 arg3 = (int)SWIG_As_int(obj2);
17557 if (PyErr_Occurred()) SWIG_fail;
17558 {
17559 arg4 = wxString_in_helper(obj3);
17560 if (arg4 == NULL) SWIG_fail;
17561 temp4 = true;
17562 }
17563 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17564 SWIG_POINTER_EXCEPTION | 0)) == -1)
17565 SWIG_fail;
17566 if (arg5 == NULL) {
17567 PyErr_SetString(PyExc_TypeError,"null reference");
17568 SWIG_fail;
17569 }
17570 if (obj5) {
17571 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17572 SWIG_POINTER_EXCEPTION | 0)) == -1)
17573 SWIG_fail;
17574 if (arg6 == NULL) {
17575 PyErr_SetString(PyExc_TypeError,"null reference");
17576 SWIG_fail;
17577 }
17578 }
17579 if (obj6) {
17580 arg7 = (int)SWIG_As_int(obj6);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 if (obj7) {
17584 {
17585 arg8 = wxString_in_helper(obj7);
17586 if (arg8 == NULL) SWIG_fail;
17587 temp8 = true;
17588 }
17589 }
17590 if (obj8) {
17591 {
17592 arg9 = wxString_in_helper(obj8);
17593 if (arg9 == NULL) SWIG_fail;
17594 temp9 = true;
17595 }
17596 }
17597 if (obj9) {
17598 arg10 = obj9;
17599 }
17600 {
17601 PyThreadState* __tstate = wxPyBeginAllowThreads();
17602 result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10);
17603
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 {
17608 resultobj = wxPyMake_wxObject(result, 0);
17609 }
17610 {
17611 if (temp4)
17612 delete arg4;
17613 }
17614 {
17615 if (temp8)
17616 delete arg8;
17617 }
17618 {
17619 if (temp9)
17620 delete arg9;
17621 }
17622 return resultobj;
17623 fail:
17624 {
17625 if (temp4)
17626 delete arg4;
17627 }
17628 {
17629 if (temp8)
17630 delete arg8;
17631 }
17632 {
17633 if (temp9)
17634 delete arg9;
17635 }
17636 return NULL;
17637 }
17638
17639
17640 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17641 PyObject *resultobj;
17642 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17643 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17644 wxToolBarToolBase *result;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 char *kwnames[] = {
17648 (char *) "self",(char *) "tool", NULL
17649 };
17650
17651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17654 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17656 {
17657 PyThreadState* __tstate = wxPyBeginAllowThreads();
17658 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17659
17660 wxPyEndAllowThreads(__tstate);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 }
17663 {
17664 resultobj = wxPyMake_wxObject(result, 0);
17665 }
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj;
17674 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17675 size_t arg2 ;
17676 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17677 wxToolBarToolBase *result;
17678 PyObject * obj0 = 0 ;
17679 PyObject * obj1 = 0 ;
17680 PyObject * obj2 = 0 ;
17681 char *kwnames[] = {
17682 (char *) "self",(char *) "pos",(char *) "tool", NULL
17683 };
17684
17685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17688 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17689 if (PyErr_Occurred()) SWIG_fail;
17690 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17695
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 {
17700 resultobj = wxPyMake_wxObject(result, 0);
17701 }
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj;
17710 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17711 wxControl *arg2 = (wxControl *) 0 ;
17712 wxToolBarToolBase *result;
17713 PyObject * obj0 = 0 ;
17714 PyObject * obj1 = 0 ;
17715 char *kwnames[] = {
17716 (char *) "self",(char *) "control", NULL
17717 };
17718
17719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17722 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17724 {
17725 PyThreadState* __tstate = wxPyBeginAllowThreads();
17726 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17727
17728 wxPyEndAllowThreads(__tstate);
17729 if (PyErr_Occurred()) SWIG_fail;
17730 }
17731 {
17732 resultobj = wxPyMake_wxObject(result, 0);
17733 }
17734 return resultobj;
17735 fail:
17736 return NULL;
17737 }
17738
17739
17740 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17741 PyObject *resultobj;
17742 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17743 size_t arg2 ;
17744 wxControl *arg3 = (wxControl *) 0 ;
17745 wxToolBarToolBase *result;
17746 PyObject * obj0 = 0 ;
17747 PyObject * obj1 = 0 ;
17748 PyObject * obj2 = 0 ;
17749 char *kwnames[] = {
17750 (char *) "self",(char *) "pos",(char *) "control", NULL
17751 };
17752
17753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17756 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17757 if (PyErr_Occurred()) SWIG_fail;
17758 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17760 {
17761 PyThreadState* __tstate = wxPyBeginAllowThreads();
17762 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17763
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 {
17768 resultobj = wxPyMake_wxObject(result, 0);
17769 }
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj;
17778 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17779 int arg2 ;
17780 wxControl *result;
17781 PyObject * obj0 = 0 ;
17782 PyObject * obj1 = 0 ;
17783 char *kwnames[] = {
17784 (char *) "self",(char *) "id", NULL
17785 };
17786
17787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17790 arg2 = (int)SWIG_As_int(obj1);
17791 if (PyErr_Occurred()) SWIG_fail;
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 result = (wxControl *)(arg1)->FindControl(arg2);
17795
17796 wxPyEndAllowThreads(__tstate);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 }
17799 {
17800 resultobj = wxPyMake_wxObject(result, 0);
17801 }
17802 return resultobj;
17803 fail:
17804 return NULL;
17805 }
17806
17807
17808 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17809 PyObject *resultobj;
17810 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17811 wxToolBarToolBase *result;
17812 PyObject * obj0 = 0 ;
17813 char *kwnames[] = {
17814 (char *) "self", NULL
17815 };
17816
17817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 {
17828 resultobj = wxPyMake_wxObject(result, 0);
17829 }
17830 return resultobj;
17831 fail:
17832 return NULL;
17833 }
17834
17835
17836 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17837 PyObject *resultobj;
17838 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17839 size_t arg2 ;
17840 wxToolBarToolBase *result;
17841 PyObject * obj0 = 0 ;
17842 PyObject * obj1 = 0 ;
17843 char *kwnames[] = {
17844 (char *) "self",(char *) "pos", NULL
17845 };
17846
17847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17850 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 {
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 {
17860 resultobj = wxPyMake_wxObject(result, 0);
17861 }
17862 return resultobj;
17863 fail:
17864 return NULL;
17865 }
17866
17867
17868 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj;
17870 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17871 int arg2 ;
17872 wxToolBarToolBase *result;
17873 PyObject * obj0 = 0 ;
17874 PyObject * obj1 = 0 ;
17875 char *kwnames[] = {
17876 (char *) "self",(char *) "id", NULL
17877 };
17878
17879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17882 arg2 = (int)SWIG_As_int(obj1);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 {
17885 PyThreadState* __tstate = wxPyBeginAllowThreads();
17886 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17887
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 {
17892 resultobj = wxPyMake_wxObject(result, 0);
17893 }
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17901 PyObject *resultobj;
17902 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17903 size_t arg2 ;
17904 bool result;
17905 PyObject * obj0 = 0 ;
17906 PyObject * obj1 = 0 ;
17907 char *kwnames[] = {
17908 (char *) "self",(char *) "pos", NULL
17909 };
17910
17911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17914 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 result = (bool)(arg1)->DeleteToolByPos(arg2);
17919
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 {
17924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17925 }
17926 return resultobj;
17927 fail:
17928 return NULL;
17929 }
17930
17931
17932 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj;
17934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17935 int arg2 ;
17936 bool result;
17937 PyObject * obj0 = 0 ;
17938 PyObject * obj1 = 0 ;
17939 char *kwnames[] = {
17940 (char *) "self",(char *) "id", NULL
17941 };
17942
17943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17946 arg2 = (int)SWIG_As_int(obj1);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 {
17949 PyThreadState* __tstate = wxPyBeginAllowThreads();
17950 result = (bool)(arg1)->DeleteTool(arg2);
17951
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 {
17956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17957 }
17958 return resultobj;
17959 fail:
17960 return NULL;
17961 }
17962
17963
17964 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj;
17966 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17967 PyObject * obj0 = 0 ;
17968 char *kwnames[] = {
17969 (char *) "self", NULL
17970 };
17971
17972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 (arg1)->ClearTools();
17978
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 Py_INCREF(Py_None); resultobj = Py_None;
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj;
17991 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17992 bool result;
17993 PyObject * obj0 = 0 ;
17994 char *kwnames[] = {
17995 (char *) "self", NULL
17996 };
17997
17998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 result = (bool)(arg1)->Realize();
18004
18005 wxPyEndAllowThreads(__tstate);
18006 if (PyErr_Occurred()) SWIG_fail;
18007 }
18008 {
18009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18010 }
18011 return resultobj;
18012 fail:
18013 return NULL;
18014 }
18015
18016
18017 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
18018 PyObject *resultobj;
18019 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18020 int arg2 ;
18021 bool arg3 ;
18022 PyObject * obj0 = 0 ;
18023 PyObject * obj1 = 0 ;
18024 PyObject * obj2 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self",(char *) "id",(char *) "enable", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 arg2 = (int)SWIG_As_int(obj1);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 arg3 = (bool)SWIG_As_bool(obj2);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 {
18037 PyThreadState* __tstate = wxPyBeginAllowThreads();
18038 (arg1)->EnableTool(arg2,arg3);
18039
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 Py_INCREF(Py_None); resultobj = Py_None;
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18053 int arg2 ;
18054 bool arg3 ;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 PyObject * obj2 = 0 ;
18058 char *kwnames[] = {
18059 (char *) "self",(char *) "id",(char *) "toggle", NULL
18060 };
18061
18062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18065 arg2 = (int)SWIG_As_int(obj1);
18066 if (PyErr_Occurred()) SWIG_fail;
18067 arg3 = (bool)SWIG_As_bool(obj2);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 {
18070 PyThreadState* __tstate = wxPyBeginAllowThreads();
18071 (arg1)->ToggleTool(arg2,arg3);
18072
18073 wxPyEndAllowThreads(__tstate);
18074 if (PyErr_Occurred()) SWIG_fail;
18075 }
18076 Py_INCREF(Py_None); resultobj = Py_None;
18077 return resultobj;
18078 fail:
18079 return NULL;
18080 }
18081
18082
18083 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
18084 PyObject *resultobj;
18085 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18086 int arg2 ;
18087 bool arg3 ;
18088 PyObject * obj0 = 0 ;
18089 PyObject * obj1 = 0 ;
18090 PyObject * obj2 = 0 ;
18091 char *kwnames[] = {
18092 (char *) "self",(char *) "id",(char *) "toggle", NULL
18093 };
18094
18095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
18096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18098 arg2 = (int)SWIG_As_int(obj1);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 arg3 = (bool)SWIG_As_bool(obj2);
18101 if (PyErr_Occurred()) SWIG_fail;
18102 {
18103 PyThreadState* __tstate = wxPyBeginAllowThreads();
18104 (arg1)->SetToggle(arg2,arg3);
18105
18106 wxPyEndAllowThreads(__tstate);
18107 if (PyErr_Occurred()) SWIG_fail;
18108 }
18109 Py_INCREF(Py_None); resultobj = Py_None;
18110 return resultobj;
18111 fail:
18112 return NULL;
18113 }
18114
18115
18116 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18117 PyObject *resultobj;
18118 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18119 int arg2 ;
18120 PyObject *result;
18121 PyObject * obj0 = 0 ;
18122 PyObject * obj1 = 0 ;
18123 char *kwnames[] = {
18124 (char *) "self",(char *) "id", NULL
18125 };
18126
18127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
18128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18130 arg2 = (int)SWIG_As_int(obj1);
18131 if (PyErr_Occurred()) SWIG_fail;
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
18135
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 resultobj = result;
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj;
18148 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18149 int arg2 ;
18150 PyObject *arg3 = (PyObject *) 0 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 PyObject * obj2 = 0 ;
18154 char *kwnames[] = {
18155 (char *) "self",(char *) "id",(char *) "clientData", NULL
18156 };
18157
18158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
18159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18161 arg2 = (int)SWIG_As_int(obj1);
18162 if (PyErr_Occurred()) SWIG_fail;
18163 arg3 = obj2;
18164 {
18165 PyThreadState* __tstate = wxPyBeginAllowThreads();
18166 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
18167
18168 wxPyEndAllowThreads(__tstate);
18169 if (PyErr_Occurred()) SWIG_fail;
18170 }
18171 Py_INCREF(Py_None); resultobj = Py_None;
18172 return resultobj;
18173 fail:
18174 return NULL;
18175 }
18176
18177
18178 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
18179 PyObject *resultobj;
18180 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18181 int arg2 ;
18182 int result;
18183 PyObject * obj0 = 0 ;
18184 PyObject * obj1 = 0 ;
18185 char *kwnames[] = {
18186 (char *) "self",(char *) "id", NULL
18187 };
18188
18189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
18190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18192 arg2 = (int)SWIG_As_int(obj1);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 {
18195 PyThreadState* __tstate = wxPyBeginAllowThreads();
18196 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
18197
18198 wxPyEndAllowThreads(__tstate);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 resultobj = SWIG_From_int((int)result);
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj;
18210 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18211 int arg2 ;
18212 bool result;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 char *kwnames[] = {
18216 (char *) "self",(char *) "id", NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
18220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18222 arg2 = (int)SWIG_As_int(obj1);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 result = (bool)(arg1)->GetToolState(arg2);
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 {
18232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18233 }
18234 return resultobj;
18235 fail:
18236 return NULL;
18237 }
18238
18239
18240 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj;
18242 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18243 int arg2 ;
18244 bool result;
18245 PyObject * obj0 = 0 ;
18246 PyObject * obj1 = 0 ;
18247 char *kwnames[] = {
18248 (char *) "self",(char *) "id", NULL
18249 };
18250
18251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
18252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18254 arg2 = (int)SWIG_As_int(obj1);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 {
18257 PyThreadState* __tstate = wxPyBeginAllowThreads();
18258 result = (bool)(arg1)->GetToolEnabled(arg2);
18259
18260 wxPyEndAllowThreads(__tstate);
18261 if (PyErr_Occurred()) SWIG_fail;
18262 }
18263 {
18264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18265 }
18266 return resultobj;
18267 fail:
18268 return NULL;
18269 }
18270
18271
18272 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj;
18274 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18275 int arg2 ;
18276 wxString *arg3 = 0 ;
18277 bool temp3 = false ;
18278 PyObject * obj0 = 0 ;
18279 PyObject * obj1 = 0 ;
18280 PyObject * obj2 = 0 ;
18281 char *kwnames[] = {
18282 (char *) "self",(char *) "id",(char *) "helpString", NULL
18283 };
18284
18285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18288 arg2 = (int)SWIG_As_int(obj1);
18289 if (PyErr_Occurred()) SWIG_fail;
18290 {
18291 arg3 = wxString_in_helper(obj2);
18292 if (arg3 == NULL) SWIG_fail;
18293 temp3 = true;
18294 }
18295 {
18296 PyThreadState* __tstate = wxPyBeginAllowThreads();
18297 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
18298
18299 wxPyEndAllowThreads(__tstate);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 }
18302 Py_INCREF(Py_None); resultobj = Py_None;
18303 {
18304 if (temp3)
18305 delete arg3;
18306 }
18307 return resultobj;
18308 fail:
18309 {
18310 if (temp3)
18311 delete arg3;
18312 }
18313 return NULL;
18314 }
18315
18316
18317 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18318 PyObject *resultobj;
18319 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18320 int arg2 ;
18321 wxString result;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 char *kwnames[] = {
18325 (char *) "self",(char *) "id", NULL
18326 };
18327
18328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
18329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18331 arg2 = (int)SWIG_As_int(obj1);
18332 if (PyErr_Occurred()) SWIG_fail;
18333 {
18334 PyThreadState* __tstate = wxPyBeginAllowThreads();
18335 result = (arg1)->GetToolShortHelp(arg2);
18336
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 {
18341 #if wxUSE_UNICODE
18342 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18343 #else
18344 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18345 #endif
18346 }
18347 return resultobj;
18348 fail:
18349 return NULL;
18350 }
18351
18352
18353 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18354 PyObject *resultobj;
18355 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18356 int arg2 ;
18357 wxString *arg3 = 0 ;
18358 bool temp3 = false ;
18359 PyObject * obj0 = 0 ;
18360 PyObject * obj1 = 0 ;
18361 PyObject * obj2 = 0 ;
18362 char *kwnames[] = {
18363 (char *) "self",(char *) "id",(char *) "helpString", NULL
18364 };
18365
18366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18369 arg2 = (int)SWIG_As_int(obj1);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 {
18372 arg3 = wxString_in_helper(obj2);
18373 if (arg3 == NULL) SWIG_fail;
18374 temp3 = true;
18375 }
18376 {
18377 PyThreadState* __tstate = wxPyBeginAllowThreads();
18378 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18379
18380 wxPyEndAllowThreads(__tstate);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 }
18383 Py_INCREF(Py_None); resultobj = Py_None;
18384 {
18385 if (temp3)
18386 delete arg3;
18387 }
18388 return resultobj;
18389 fail:
18390 {
18391 if (temp3)
18392 delete arg3;
18393 }
18394 return NULL;
18395 }
18396
18397
18398 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18399 PyObject *resultobj;
18400 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18401 int arg2 ;
18402 wxString result;
18403 PyObject * obj0 = 0 ;
18404 PyObject * obj1 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self",(char *) "id", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 arg2 = (int)SWIG_As_int(obj1);
18413 if (PyErr_Occurred()) SWIG_fail;
18414 {
18415 PyThreadState* __tstate = wxPyBeginAllowThreads();
18416 result = (arg1)->GetToolLongHelp(arg2);
18417
18418 wxPyEndAllowThreads(__tstate);
18419 if (PyErr_Occurred()) SWIG_fail;
18420 }
18421 {
18422 #if wxUSE_UNICODE
18423 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18424 #else
18425 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18426 #endif
18427 }
18428 return resultobj;
18429 fail:
18430 return NULL;
18431 }
18432
18433
18434 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18435 PyObject *resultobj;
18436 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18437 int arg2 ;
18438 int arg3 ;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 PyObject * obj2 = 0 ;
18442 char *kwnames[] = {
18443 (char *) "self",(char *) "x",(char *) "y", NULL
18444 };
18445
18446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18449 arg2 = (int)SWIG_As_int(obj1);
18450 if (PyErr_Occurred()) SWIG_fail;
18451 arg3 = (int)SWIG_As_int(obj2);
18452 if (PyErr_Occurred()) SWIG_fail;
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 (arg1)->SetMargins(arg2,arg3);
18456
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 Py_INCREF(Py_None); resultobj = Py_None;
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj;
18469 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18470 wxSize *arg2 = 0 ;
18471 wxSize temp2 ;
18472 PyObject * obj0 = 0 ;
18473 PyObject * obj1 = 0 ;
18474 char *kwnames[] = {
18475 (char *) "self",(char *) "size", NULL
18476 };
18477
18478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18481 {
18482 arg2 = &temp2;
18483 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18484 }
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 (arg1)->SetMargins((wxSize const &)*arg2);
18488
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 Py_INCREF(Py_None); resultobj = Py_None;
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj;
18501 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18502 int arg2 ;
18503 PyObject * obj0 = 0 ;
18504 PyObject * obj1 = 0 ;
18505 char *kwnames[] = {
18506 (char *) "self",(char *) "packing", NULL
18507 };
18508
18509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18512 arg2 = (int)SWIG_As_int(obj1);
18513 if (PyErr_Occurred()) SWIG_fail;
18514 {
18515 PyThreadState* __tstate = wxPyBeginAllowThreads();
18516 (arg1)->SetToolPacking(arg2);
18517
18518 wxPyEndAllowThreads(__tstate);
18519 if (PyErr_Occurred()) SWIG_fail;
18520 }
18521 Py_INCREF(Py_None); resultobj = Py_None;
18522 return resultobj;
18523 fail:
18524 return NULL;
18525 }
18526
18527
18528 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18529 PyObject *resultobj;
18530 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18531 int arg2 ;
18532 PyObject * obj0 = 0 ;
18533 PyObject * obj1 = 0 ;
18534 char *kwnames[] = {
18535 (char *) "self",(char *) "separation", NULL
18536 };
18537
18538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18541 arg2 = (int)SWIG_As_int(obj1);
18542 if (PyErr_Occurred()) SWIG_fail;
18543 {
18544 PyThreadState* __tstate = wxPyBeginAllowThreads();
18545 (arg1)->SetToolSeparation(arg2);
18546
18547 wxPyEndAllowThreads(__tstate);
18548 if (PyErr_Occurred()) SWIG_fail;
18549 }
18550 Py_INCREF(Py_None); resultobj = Py_None;
18551 return resultobj;
18552 fail:
18553 return NULL;
18554 }
18555
18556
18557 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18558 PyObject *resultobj;
18559 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18560 wxSize result;
18561 PyObject * obj0 = 0 ;
18562 char *kwnames[] = {
18563 (char *) "self", NULL
18564 };
18565
18566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18569 {
18570 PyThreadState* __tstate = wxPyBeginAllowThreads();
18571 result = (arg1)->GetToolMargins();
18572
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 {
18577 wxSize * resultptr;
18578 resultptr = new wxSize((wxSize &) result);
18579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18580 }
18581 return resultobj;
18582 fail:
18583 return NULL;
18584 }
18585
18586
18587 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18588 PyObject *resultobj;
18589 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18590 wxSize result;
18591 PyObject * obj0 = 0 ;
18592 char *kwnames[] = {
18593 (char *) "self", NULL
18594 };
18595
18596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18599 {
18600 PyThreadState* __tstate = wxPyBeginAllowThreads();
18601 result = (arg1)->GetMargins();
18602
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 {
18607 wxSize * resultptr;
18608 resultptr = new wxSize((wxSize &) result);
18609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18610 }
18611 return resultobj;
18612 fail:
18613 return NULL;
18614 }
18615
18616
18617 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj;
18619 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18620 int result;
18621 PyObject * obj0 = 0 ;
18622 char *kwnames[] = {
18623 (char *) "self", NULL
18624 };
18625
18626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18629 {
18630 PyThreadState* __tstate = wxPyBeginAllowThreads();
18631 result = (int)(arg1)->GetToolPacking();
18632
18633 wxPyEndAllowThreads(__tstate);
18634 if (PyErr_Occurred()) SWIG_fail;
18635 }
18636 resultobj = SWIG_From_int((int)result);
18637 return resultobj;
18638 fail:
18639 return NULL;
18640 }
18641
18642
18643 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18644 PyObject *resultobj;
18645 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18646 int result;
18647 PyObject * obj0 = 0 ;
18648 char *kwnames[] = {
18649 (char *) "self", NULL
18650 };
18651
18652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 result = (int)(arg1)->GetToolSeparation();
18658
18659 wxPyEndAllowThreads(__tstate);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 }
18662 resultobj = SWIG_From_int((int)result);
18663 return resultobj;
18664 fail:
18665 return NULL;
18666 }
18667
18668
18669 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18670 PyObject *resultobj;
18671 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18672 int arg2 ;
18673 PyObject * obj0 = 0 ;
18674 PyObject * obj1 = 0 ;
18675 char *kwnames[] = {
18676 (char *) "self",(char *) "nRows", NULL
18677 };
18678
18679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18682 arg2 = (int)SWIG_As_int(obj1);
18683 if (PyErr_Occurred()) SWIG_fail;
18684 {
18685 PyThreadState* __tstate = wxPyBeginAllowThreads();
18686 (arg1)->SetRows(arg2);
18687
18688 wxPyEndAllowThreads(__tstate);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 }
18691 Py_INCREF(Py_None); resultobj = Py_None;
18692 return resultobj;
18693 fail:
18694 return NULL;
18695 }
18696
18697
18698 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18699 PyObject *resultobj;
18700 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18701 int arg2 ;
18702 int arg3 ;
18703 PyObject * obj0 = 0 ;
18704 PyObject * obj1 = 0 ;
18705 PyObject * obj2 = 0 ;
18706 char *kwnames[] = {
18707 (char *) "self",(char *) "rows",(char *) "cols", NULL
18708 };
18709
18710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18713 arg2 = (int)SWIG_As_int(obj1);
18714 if (PyErr_Occurred()) SWIG_fail;
18715 arg3 = (int)SWIG_As_int(obj2);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 (arg1)->SetMaxRowsCols(arg2,arg3);
18720
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 Py_INCREF(Py_None); resultobj = Py_None;
18725 return resultobj;
18726 fail:
18727 return NULL;
18728 }
18729
18730
18731 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18732 PyObject *resultobj;
18733 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18734 int result;
18735 PyObject * obj0 = 0 ;
18736 char *kwnames[] = {
18737 (char *) "self", NULL
18738 };
18739
18740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18743 {
18744 PyThreadState* __tstate = wxPyBeginAllowThreads();
18745 result = (int)(arg1)->GetMaxRows();
18746
18747 wxPyEndAllowThreads(__tstate);
18748 if (PyErr_Occurred()) SWIG_fail;
18749 }
18750 resultobj = SWIG_From_int((int)result);
18751 return resultobj;
18752 fail:
18753 return NULL;
18754 }
18755
18756
18757 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18758 PyObject *resultobj;
18759 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18760 int result;
18761 PyObject * obj0 = 0 ;
18762 char *kwnames[] = {
18763 (char *) "self", NULL
18764 };
18765
18766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18769 {
18770 PyThreadState* __tstate = wxPyBeginAllowThreads();
18771 result = (int)(arg1)->GetMaxCols();
18772
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 resultobj = SWIG_From_int((int)result);
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18784 PyObject *resultobj;
18785 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18786 wxSize *arg2 = 0 ;
18787 wxSize temp2 ;
18788 PyObject * obj0 = 0 ;
18789 PyObject * obj1 = 0 ;
18790 char *kwnames[] = {
18791 (char *) "self",(char *) "size", NULL
18792 };
18793
18794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18797 {
18798 arg2 = &temp2;
18799 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18800 }
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18804
18805 wxPyEndAllowThreads(__tstate);
18806 if (PyErr_Occurred()) SWIG_fail;
18807 }
18808 Py_INCREF(Py_None); resultobj = Py_None;
18809 return resultobj;
18810 fail:
18811 return NULL;
18812 }
18813
18814
18815 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18816 PyObject *resultobj;
18817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18818 wxSize result;
18819 PyObject * obj0 = 0 ;
18820 char *kwnames[] = {
18821 (char *) "self", NULL
18822 };
18823
18824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 result = (arg1)->GetToolBitmapSize();
18830
18831 wxPyEndAllowThreads(__tstate);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 }
18834 {
18835 wxSize * resultptr;
18836 resultptr = new wxSize((wxSize &) result);
18837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18838 }
18839 return resultobj;
18840 fail:
18841 return NULL;
18842 }
18843
18844
18845 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj;
18847 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18848 wxSize result;
18849 PyObject * obj0 = 0 ;
18850 char *kwnames[] = {
18851 (char *) "self", NULL
18852 };
18853
18854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18857 {
18858 PyThreadState* __tstate = wxPyBeginAllowThreads();
18859 result = (arg1)->GetToolSize();
18860
18861 wxPyEndAllowThreads(__tstate);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 {
18865 wxSize * resultptr;
18866 resultptr = new wxSize((wxSize &) result);
18867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18868 }
18869 return resultobj;
18870 fail:
18871 return NULL;
18872 }
18873
18874
18875 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18876 PyObject *resultobj;
18877 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18878 int arg2 ;
18879 int arg3 ;
18880 wxToolBarToolBase *result;
18881 PyObject * obj0 = 0 ;
18882 PyObject * obj1 = 0 ;
18883 PyObject * obj2 = 0 ;
18884 char *kwnames[] = {
18885 (char *) "self",(char *) "x",(char *) "y", NULL
18886 };
18887
18888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18891 arg2 = (int)SWIG_As_int(obj1);
18892 if (PyErr_Occurred()) SWIG_fail;
18893 arg3 = (int)SWIG_As_int(obj2);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18898
18899 wxPyEndAllowThreads(__tstate);
18900 if (PyErr_Occurred()) SWIG_fail;
18901 }
18902 {
18903 resultobj = wxPyMake_wxObject(result, 0);
18904 }
18905 return resultobj;
18906 fail:
18907 return NULL;
18908 }
18909
18910
18911 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18912 PyObject *resultobj;
18913 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18914 int arg2 ;
18915 wxToolBarToolBase *result;
18916 PyObject * obj0 = 0 ;
18917 PyObject * obj1 = 0 ;
18918 char *kwnames[] = {
18919 (char *) "self",(char *) "toolid", NULL
18920 };
18921
18922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18925 arg2 = (int)SWIG_As_int(obj1);
18926 if (PyErr_Occurred()) SWIG_fail;
18927 {
18928 PyThreadState* __tstate = wxPyBeginAllowThreads();
18929 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18930
18931 wxPyEndAllowThreads(__tstate);
18932 if (PyErr_Occurred()) SWIG_fail;
18933 }
18934 {
18935 resultobj = wxPyMake_wxObject(result, 0);
18936 }
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18944 PyObject *resultobj;
18945 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18946 bool result;
18947 PyObject * obj0 = 0 ;
18948 char *kwnames[] = {
18949 (char *) "self", NULL
18950 };
18951
18952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 result = (bool)(arg1)->IsVertical();
18958
18959 wxPyEndAllowThreads(__tstate);
18960 if (PyErr_Occurred()) SWIG_fail;
18961 }
18962 {
18963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18964 }
18965 return resultobj;
18966 fail:
18967 return NULL;
18968 }
18969
18970
18971 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18972 PyObject *obj;
18973 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18974 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18975 Py_INCREF(obj);
18976 return Py_BuildValue((char *)"");
18977 }
18978 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18979 PyObject *resultobj;
18980 wxWindow *arg1 = (wxWindow *) 0 ;
18981 int arg2 = (int) -1 ;
18982 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18983 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18984 wxSize const &arg4_defvalue = wxDefaultSize ;
18985 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18986 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18987 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18988 wxString *arg6 = (wxString *) &arg6_defvalue ;
18989 wxToolBar *result;
18990 wxPoint temp3 ;
18991 wxSize temp4 ;
18992 bool temp6 = false ;
18993 PyObject * obj0 = 0 ;
18994 PyObject * obj1 = 0 ;
18995 PyObject * obj2 = 0 ;
18996 PyObject * obj3 = 0 ;
18997 PyObject * obj4 = 0 ;
18998 PyObject * obj5 = 0 ;
18999 char *kwnames[] = {
19000 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19001 };
19002
19003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19006 if (obj1) {
19007 arg2 = (int)SWIG_As_int(obj1);
19008 if (PyErr_Occurred()) SWIG_fail;
19009 }
19010 if (obj2) {
19011 {
19012 arg3 = &temp3;
19013 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19014 }
19015 }
19016 if (obj3) {
19017 {
19018 arg4 = &temp4;
19019 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19020 }
19021 }
19022 if (obj4) {
19023 arg5 = (long)SWIG_As_long(obj4);
19024 if (PyErr_Occurred()) SWIG_fail;
19025 }
19026 if (obj5) {
19027 {
19028 arg6 = wxString_in_helper(obj5);
19029 if (arg6 == NULL) SWIG_fail;
19030 temp6 = true;
19031 }
19032 }
19033 {
19034 if (!wxPyCheckForApp()) SWIG_fail;
19035 PyThreadState* __tstate = wxPyBeginAllowThreads();
19036 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
19037
19038 wxPyEndAllowThreads(__tstate);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 }
19041 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19042 {
19043 if (temp6)
19044 delete arg6;
19045 }
19046 return resultobj;
19047 fail:
19048 {
19049 if (temp6)
19050 delete arg6;
19051 }
19052 return NULL;
19053 }
19054
19055
19056 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19057 PyObject *resultobj;
19058 wxToolBar *result;
19059 char *kwnames[] = {
19060 NULL
19061 };
19062
19063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
19064 {
19065 if (!wxPyCheckForApp()) SWIG_fail;
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 result = (wxToolBar *)new wxToolBar();
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19073 return resultobj;
19074 fail:
19075 return NULL;
19076 }
19077
19078
19079 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 wxToolBar *arg1 = (wxToolBar *) 0 ;
19082 wxWindow *arg2 = (wxWindow *) 0 ;
19083 int arg3 = (int) -1 ;
19084 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19085 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19086 wxSize const &arg5_defvalue = wxDefaultSize ;
19087 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19088 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19089 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
19090 wxString *arg7 = (wxString *) &arg7_defvalue ;
19091 bool result;
19092 wxPoint temp4 ;
19093 wxSize temp5 ;
19094 bool temp7 = false ;
19095 PyObject * obj0 = 0 ;
19096 PyObject * obj1 = 0 ;
19097 PyObject * obj2 = 0 ;
19098 PyObject * obj3 = 0 ;
19099 PyObject * obj4 = 0 ;
19100 PyObject * obj5 = 0 ;
19101 PyObject * obj6 = 0 ;
19102 char *kwnames[] = {
19103 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19104 };
19105
19106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19111 if (obj2) {
19112 arg3 = (int)SWIG_As_int(obj2);
19113 if (PyErr_Occurred()) SWIG_fail;
19114 }
19115 if (obj3) {
19116 {
19117 arg4 = &temp4;
19118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19119 }
19120 }
19121 if (obj4) {
19122 {
19123 arg5 = &temp5;
19124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19125 }
19126 }
19127 if (obj5) {
19128 arg6 = (long)SWIG_As_long(obj5);
19129 if (PyErr_Occurred()) SWIG_fail;
19130 }
19131 if (obj6) {
19132 {
19133 arg7 = wxString_in_helper(obj6);
19134 if (arg7 == NULL) SWIG_fail;
19135 temp7 = true;
19136 }
19137 }
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
19141
19142 wxPyEndAllowThreads(__tstate);
19143 if (PyErr_Occurred()) SWIG_fail;
19144 }
19145 {
19146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19147 }
19148 {
19149 if (temp7)
19150 delete arg7;
19151 }
19152 return resultobj;
19153 fail:
19154 {
19155 if (temp7)
19156 delete arg7;
19157 }
19158 return NULL;
19159 }
19160
19161
19162 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19163 PyObject *resultobj;
19164 wxToolBar *arg1 = (wxToolBar *) 0 ;
19165 int arg2 ;
19166 int arg3 ;
19167 wxToolBarToolBase *result;
19168 PyObject * obj0 = 0 ;
19169 PyObject * obj1 = 0 ;
19170 PyObject * obj2 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "self",(char *) "x",(char *) "y", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19178 arg2 = (int)SWIG_As_int(obj1);
19179 if (PyErr_Occurred()) SWIG_fail;
19180 arg3 = (int)SWIG_As_int(obj2);
19181 if (PyErr_Occurred()) SWIG_fail;
19182 {
19183 PyThreadState* __tstate = wxPyBeginAllowThreads();
19184 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19185
19186 wxPyEndAllowThreads(__tstate);
19187 if (PyErr_Occurred()) SWIG_fail;
19188 }
19189 {
19190 resultobj = wxPyMake_wxObject(result, 0);
19191 }
19192 return resultobj;
19193 fail:
19194 return NULL;
19195 }
19196
19197
19198 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19199 PyObject *resultobj;
19200 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
19201 wxVisualAttributes result;
19202 PyObject * obj0 = 0 ;
19203 char *kwnames[] = {
19204 (char *) "variant", NULL
19205 };
19206
19207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
19208 if (obj0) {
19209 arg1 = (int)SWIG_As_int(obj0);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 {
19213 if (!wxPyCheckForApp()) SWIG_fail;
19214 PyThreadState* __tstate = wxPyBeginAllowThreads();
19215 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
19216
19217 wxPyEndAllowThreads(__tstate);
19218 if (PyErr_Occurred()) SWIG_fail;
19219 }
19220 {
19221 wxVisualAttributes * resultptr;
19222 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
19223 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
19224 }
19225 return resultobj;
19226 fail:
19227 return NULL;
19228 }
19229
19230
19231 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
19232 PyObject *obj;
19233 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19234 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
19235 Py_INCREF(obj);
19236 return Py_BuildValue((char *)"");
19237 }
19238 static int _wrap_ListCtrlNameStr_set(PyObject *) {
19239 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
19240 return 1;
19241 }
19242
19243
19244 static PyObject *_wrap_ListCtrlNameStr_get() {
19245 PyObject *pyobj;
19246
19247 {
19248 #if wxUSE_UNICODE
19249 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19250 #else
19251 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19252 #endif
19253 }
19254 return pyobj;
19255 }
19256
19257
19258 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
19259 PyObject *resultobj;
19260 wxColour const &arg1_defvalue = wxNullColour ;
19261 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
19262 wxColour const &arg2_defvalue = wxNullColour ;
19263 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
19264 wxFont const &arg3_defvalue = wxNullFont ;
19265 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
19266 wxListItemAttr *result;
19267 wxColour temp1 ;
19268 wxColour temp2 ;
19269 PyObject * obj0 = 0 ;
19270 PyObject * obj1 = 0 ;
19271 PyObject * obj2 = 0 ;
19272 char *kwnames[] = {
19273 (char *) "colText",(char *) "colBack",(char *) "font", NULL
19274 };
19275
19276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
19277 if (obj0) {
19278 {
19279 arg1 = &temp1;
19280 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
19281 }
19282 }
19283 if (obj1) {
19284 {
19285 arg2 = &temp2;
19286 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19287 }
19288 }
19289 if (obj2) {
19290 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
19291 SWIG_POINTER_EXCEPTION | 0)) == -1)
19292 SWIG_fail;
19293 if (arg3 == NULL) {
19294 PyErr_SetString(PyExc_TypeError,"null reference");
19295 SWIG_fail;
19296 }
19297 }
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
19301
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj;
19314 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19315 wxColour *arg2 = 0 ;
19316 wxColour temp2 ;
19317 PyObject * obj0 = 0 ;
19318 PyObject * obj1 = 0 ;
19319 char *kwnames[] = {
19320 (char *) "self",(char *) "colText", NULL
19321 };
19322
19323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19326 {
19327 arg2 = &temp2;
19328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19329 }
19330 {
19331 PyThreadState* __tstate = wxPyBeginAllowThreads();
19332 (arg1)->SetTextColour((wxColour const &)*arg2);
19333
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 Py_INCREF(Py_None); resultobj = Py_None;
19338 return resultobj;
19339 fail:
19340 return NULL;
19341 }
19342
19343
19344 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19345 PyObject *resultobj;
19346 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19347 wxColour *arg2 = 0 ;
19348 wxColour temp2 ;
19349 PyObject * obj0 = 0 ;
19350 PyObject * obj1 = 0 ;
19351 char *kwnames[] = {
19352 (char *) "self",(char *) "colBack", NULL
19353 };
19354
19355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19358 {
19359 arg2 = &temp2;
19360 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19361 }
19362 {
19363 PyThreadState* __tstate = wxPyBeginAllowThreads();
19364 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19365
19366 wxPyEndAllowThreads(__tstate);
19367 if (PyErr_Occurred()) SWIG_fail;
19368 }
19369 Py_INCREF(Py_None); resultobj = Py_None;
19370 return resultobj;
19371 fail:
19372 return NULL;
19373 }
19374
19375
19376 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19377 PyObject *resultobj;
19378 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19379 wxFont *arg2 = 0 ;
19380 PyObject * obj0 = 0 ;
19381 PyObject * obj1 = 0 ;
19382 char *kwnames[] = {
19383 (char *) "self",(char *) "font", NULL
19384 };
19385
19386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19389 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19390 SWIG_POINTER_EXCEPTION | 0)) == -1)
19391 SWIG_fail;
19392 if (arg2 == NULL) {
19393 PyErr_SetString(PyExc_TypeError,"null reference");
19394 SWIG_fail;
19395 }
19396 {
19397 PyThreadState* __tstate = wxPyBeginAllowThreads();
19398 (arg1)->SetFont((wxFont const &)*arg2);
19399
19400 wxPyEndAllowThreads(__tstate);
19401 if (PyErr_Occurred()) SWIG_fail;
19402 }
19403 Py_INCREF(Py_None); resultobj = Py_None;
19404 return resultobj;
19405 fail:
19406 return NULL;
19407 }
19408
19409
19410 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19411 PyObject *resultobj;
19412 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19413 bool result;
19414 PyObject * obj0 = 0 ;
19415 char *kwnames[] = {
19416 (char *) "self", NULL
19417 };
19418
19419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19422 {
19423 PyThreadState* __tstate = wxPyBeginAllowThreads();
19424 result = (bool)(arg1)->HasTextColour();
19425
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 {
19430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19431 }
19432 return resultobj;
19433 fail:
19434 return NULL;
19435 }
19436
19437
19438 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19439 PyObject *resultobj;
19440 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19441 bool result;
19442 PyObject * obj0 = 0 ;
19443 char *kwnames[] = {
19444 (char *) "self", NULL
19445 };
19446
19447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19450 {
19451 PyThreadState* __tstate = wxPyBeginAllowThreads();
19452 result = (bool)(arg1)->HasBackgroundColour();
19453
19454 wxPyEndAllowThreads(__tstate);
19455 if (PyErr_Occurred()) SWIG_fail;
19456 }
19457 {
19458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19459 }
19460 return resultobj;
19461 fail:
19462 return NULL;
19463 }
19464
19465
19466 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19467 PyObject *resultobj;
19468 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19469 bool result;
19470 PyObject * obj0 = 0 ;
19471 char *kwnames[] = {
19472 (char *) "self", NULL
19473 };
19474
19475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19478 {
19479 PyThreadState* __tstate = wxPyBeginAllowThreads();
19480 result = (bool)(arg1)->HasFont();
19481
19482 wxPyEndAllowThreads(__tstate);
19483 if (PyErr_Occurred()) SWIG_fail;
19484 }
19485 {
19486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19487 }
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj;
19496 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19497 wxColour result;
19498 PyObject * obj0 = 0 ;
19499 char *kwnames[] = {
19500 (char *) "self", NULL
19501 };
19502
19503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19506 {
19507 PyThreadState* __tstate = wxPyBeginAllowThreads();
19508 result = (arg1)->GetTextColour();
19509
19510 wxPyEndAllowThreads(__tstate);
19511 if (PyErr_Occurred()) SWIG_fail;
19512 }
19513 {
19514 wxColour * resultptr;
19515 resultptr = new wxColour((wxColour &) result);
19516 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19517 }
19518 return resultobj;
19519 fail:
19520 return NULL;
19521 }
19522
19523
19524 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19525 PyObject *resultobj;
19526 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19527 wxColour result;
19528 PyObject * obj0 = 0 ;
19529 char *kwnames[] = {
19530 (char *) "self", NULL
19531 };
19532
19533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19536 {
19537 PyThreadState* __tstate = wxPyBeginAllowThreads();
19538 result = (arg1)->GetBackgroundColour();
19539
19540 wxPyEndAllowThreads(__tstate);
19541 if (PyErr_Occurred()) SWIG_fail;
19542 }
19543 {
19544 wxColour * resultptr;
19545 resultptr = new wxColour((wxColour &) result);
19546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19547 }
19548 return resultobj;
19549 fail:
19550 return NULL;
19551 }
19552
19553
19554 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19555 PyObject *resultobj;
19556 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19557 wxFont result;
19558 PyObject * obj0 = 0 ;
19559 char *kwnames[] = {
19560 (char *) "self", NULL
19561 };
19562
19563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19566 {
19567 PyThreadState* __tstate = wxPyBeginAllowThreads();
19568 result = (arg1)->GetFont();
19569
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 {
19574 wxFont * resultptr;
19575 resultptr = new wxFont((wxFont &) result);
19576 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19577 }
19578 return resultobj;
19579 fail:
19580 return NULL;
19581 }
19582
19583
19584 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj;
19586 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19587 PyObject * obj0 = 0 ;
19588 char *kwnames[] = {
19589 (char *) "self", NULL
19590 };
19591
19592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 wxListItemAttr_Destroy(arg1);
19598
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 Py_INCREF(Py_None); resultobj = Py_None;
19603 return resultobj;
19604 fail:
19605 return NULL;
19606 }
19607
19608
19609 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19610 PyObject *obj;
19611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19612 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19613 Py_INCREF(obj);
19614 return Py_BuildValue((char *)"");
19615 }
19616 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19617 PyObject *resultobj;
19618 wxListItem *result;
19619 char *kwnames[] = {
19620 NULL
19621 };
19622
19623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 result = (wxListItem *)new wxListItem();
19627
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 {
19632 resultobj = wxPyMake_wxObject(result, 1);
19633 }
19634 return resultobj;
19635 fail:
19636 return NULL;
19637 }
19638
19639
19640 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19641 PyObject *resultobj;
19642 wxListItem *arg1 = (wxListItem *) 0 ;
19643 PyObject * obj0 = 0 ;
19644 char *kwnames[] = {
19645 (char *) "self", NULL
19646 };
19647
19648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19651 {
19652 PyThreadState* __tstate = wxPyBeginAllowThreads();
19653 delete arg1;
19654
19655 wxPyEndAllowThreads(__tstate);
19656 if (PyErr_Occurred()) SWIG_fail;
19657 }
19658 Py_INCREF(Py_None); resultobj = Py_None;
19659 return resultobj;
19660 fail:
19661 return NULL;
19662 }
19663
19664
19665 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19666 PyObject *resultobj;
19667 wxListItem *arg1 = (wxListItem *) 0 ;
19668 PyObject * obj0 = 0 ;
19669 char *kwnames[] = {
19670 (char *) "self", NULL
19671 };
19672
19673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19676 {
19677 PyThreadState* __tstate = wxPyBeginAllowThreads();
19678 (arg1)->Clear();
19679
19680 wxPyEndAllowThreads(__tstate);
19681 if (PyErr_Occurred()) SWIG_fail;
19682 }
19683 Py_INCREF(Py_None); resultobj = Py_None;
19684 return resultobj;
19685 fail:
19686 return NULL;
19687 }
19688
19689
19690 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19691 PyObject *resultobj;
19692 wxListItem *arg1 = (wxListItem *) 0 ;
19693 PyObject * obj0 = 0 ;
19694 char *kwnames[] = {
19695 (char *) "self", NULL
19696 };
19697
19698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19701 {
19702 PyThreadState* __tstate = wxPyBeginAllowThreads();
19703 (arg1)->ClearAttributes();
19704
19705 wxPyEndAllowThreads(__tstate);
19706 if (PyErr_Occurred()) SWIG_fail;
19707 }
19708 Py_INCREF(Py_None); resultobj = Py_None;
19709 return resultobj;
19710 fail:
19711 return NULL;
19712 }
19713
19714
19715 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19716 PyObject *resultobj;
19717 wxListItem *arg1 = (wxListItem *) 0 ;
19718 long arg2 ;
19719 PyObject * obj0 = 0 ;
19720 PyObject * obj1 = 0 ;
19721 char *kwnames[] = {
19722 (char *) "self",(char *) "mask", NULL
19723 };
19724
19725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19728 arg2 = (long)SWIG_As_long(obj1);
19729 if (PyErr_Occurred()) SWIG_fail;
19730 {
19731 PyThreadState* __tstate = wxPyBeginAllowThreads();
19732 (arg1)->SetMask(arg2);
19733
19734 wxPyEndAllowThreads(__tstate);
19735 if (PyErr_Occurred()) SWIG_fail;
19736 }
19737 Py_INCREF(Py_None); resultobj = Py_None;
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj;
19746 wxListItem *arg1 = (wxListItem *) 0 ;
19747 long arg2 ;
19748 PyObject * obj0 = 0 ;
19749 PyObject * obj1 = 0 ;
19750 char *kwnames[] = {
19751 (char *) "self",(char *) "id", NULL
19752 };
19753
19754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19757 arg2 = (long)SWIG_As_long(obj1);
19758 if (PyErr_Occurred()) SWIG_fail;
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->SetId(arg2);
19762
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 Py_INCREF(Py_None); resultobj = Py_None;
19767 return resultobj;
19768 fail:
19769 return NULL;
19770 }
19771
19772
19773 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj;
19775 wxListItem *arg1 = (wxListItem *) 0 ;
19776 int arg2 ;
19777 PyObject * obj0 = 0 ;
19778 PyObject * obj1 = 0 ;
19779 char *kwnames[] = {
19780 (char *) "self",(char *) "col", NULL
19781 };
19782
19783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19786 arg2 = (int)SWIG_As_int(obj1);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 {
19789 PyThreadState* __tstate = wxPyBeginAllowThreads();
19790 (arg1)->SetColumn(arg2);
19791
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 Py_INCREF(Py_None); resultobj = Py_None;
19796 return resultobj;
19797 fail:
19798 return NULL;
19799 }
19800
19801
19802 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19803 PyObject *resultobj;
19804 wxListItem *arg1 = (wxListItem *) 0 ;
19805 long arg2 ;
19806 PyObject * obj0 = 0 ;
19807 PyObject * obj1 = 0 ;
19808 char *kwnames[] = {
19809 (char *) "self",(char *) "state", NULL
19810 };
19811
19812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19815 arg2 = (long)SWIG_As_long(obj1);
19816 if (PyErr_Occurred()) SWIG_fail;
19817 {
19818 PyThreadState* __tstate = wxPyBeginAllowThreads();
19819 (arg1)->SetState(arg2);
19820
19821 wxPyEndAllowThreads(__tstate);
19822 if (PyErr_Occurred()) SWIG_fail;
19823 }
19824 Py_INCREF(Py_None); resultobj = Py_None;
19825 return resultobj;
19826 fail:
19827 return NULL;
19828 }
19829
19830
19831 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19832 PyObject *resultobj;
19833 wxListItem *arg1 = (wxListItem *) 0 ;
19834 long arg2 ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 char *kwnames[] = {
19838 (char *) "self",(char *) "stateMask", NULL
19839 };
19840
19841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19844 arg2 = (long)SWIG_As_long(obj1);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 {
19847 PyThreadState* __tstate = wxPyBeginAllowThreads();
19848 (arg1)->SetStateMask(arg2);
19849
19850 wxPyEndAllowThreads(__tstate);
19851 if (PyErr_Occurred()) SWIG_fail;
19852 }
19853 Py_INCREF(Py_None); resultobj = Py_None;
19854 return resultobj;
19855 fail:
19856 return NULL;
19857 }
19858
19859
19860 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19861 PyObject *resultobj;
19862 wxListItem *arg1 = (wxListItem *) 0 ;
19863 wxString *arg2 = 0 ;
19864 bool temp2 = false ;
19865 PyObject * obj0 = 0 ;
19866 PyObject * obj1 = 0 ;
19867 char *kwnames[] = {
19868 (char *) "self",(char *) "text", NULL
19869 };
19870
19871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19874 {
19875 arg2 = wxString_in_helper(obj1);
19876 if (arg2 == NULL) SWIG_fail;
19877 temp2 = true;
19878 }
19879 {
19880 PyThreadState* __tstate = wxPyBeginAllowThreads();
19881 (arg1)->SetText((wxString const &)*arg2);
19882
19883 wxPyEndAllowThreads(__tstate);
19884 if (PyErr_Occurred()) SWIG_fail;
19885 }
19886 Py_INCREF(Py_None); resultobj = Py_None;
19887 {
19888 if (temp2)
19889 delete arg2;
19890 }
19891 return resultobj;
19892 fail:
19893 {
19894 if (temp2)
19895 delete arg2;
19896 }
19897 return NULL;
19898 }
19899
19900
19901 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19902 PyObject *resultobj;
19903 wxListItem *arg1 = (wxListItem *) 0 ;
19904 int arg2 ;
19905 PyObject * obj0 = 0 ;
19906 PyObject * obj1 = 0 ;
19907 char *kwnames[] = {
19908 (char *) "self",(char *) "image", NULL
19909 };
19910
19911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19914 arg2 = (int)SWIG_As_int(obj1);
19915 if (PyErr_Occurred()) SWIG_fail;
19916 {
19917 PyThreadState* __tstate = wxPyBeginAllowThreads();
19918 (arg1)->SetImage(arg2);
19919
19920 wxPyEndAllowThreads(__tstate);
19921 if (PyErr_Occurred()) SWIG_fail;
19922 }
19923 Py_INCREF(Py_None); resultobj = Py_None;
19924 return resultobj;
19925 fail:
19926 return NULL;
19927 }
19928
19929
19930 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19931 PyObject *resultobj;
19932 wxListItem *arg1 = (wxListItem *) 0 ;
19933 long arg2 ;
19934 PyObject * obj0 = 0 ;
19935 PyObject * obj1 = 0 ;
19936 char *kwnames[] = {
19937 (char *) "self",(char *) "data", NULL
19938 };
19939
19940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19943 arg2 = (long)SWIG_As_long(obj1);
19944 if (PyErr_Occurred()) SWIG_fail;
19945 {
19946 PyThreadState* __tstate = wxPyBeginAllowThreads();
19947 (arg1)->SetData(arg2);
19948
19949 wxPyEndAllowThreads(__tstate);
19950 if (PyErr_Occurred()) SWIG_fail;
19951 }
19952 Py_INCREF(Py_None); resultobj = Py_None;
19953 return resultobj;
19954 fail:
19955 return NULL;
19956 }
19957
19958
19959 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19960 PyObject *resultobj;
19961 wxListItem *arg1 = (wxListItem *) 0 ;
19962 int arg2 ;
19963 PyObject * obj0 = 0 ;
19964 PyObject * obj1 = 0 ;
19965 char *kwnames[] = {
19966 (char *) "self",(char *) "width", NULL
19967 };
19968
19969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19972 arg2 = (int)SWIG_As_int(obj1);
19973 if (PyErr_Occurred()) SWIG_fail;
19974 {
19975 PyThreadState* __tstate = wxPyBeginAllowThreads();
19976 (arg1)->SetWidth(arg2);
19977
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 Py_INCREF(Py_None); resultobj = Py_None;
19982 return resultobj;
19983 fail:
19984 return NULL;
19985 }
19986
19987
19988 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19989 PyObject *resultobj;
19990 wxListItem *arg1 = (wxListItem *) 0 ;
19991 int arg2 ;
19992 PyObject * obj0 = 0 ;
19993 PyObject * obj1 = 0 ;
19994 char *kwnames[] = {
19995 (char *) "self",(char *) "align", NULL
19996 };
19997
19998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20001 arg2 = (int)SWIG_As_int(obj1);
20002 if (PyErr_Occurred()) SWIG_fail;
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 (arg1)->SetAlign((wxListColumnFormat )arg2);
20006
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 Py_INCREF(Py_None); resultobj = Py_None;
20011 return resultobj;
20012 fail:
20013 return NULL;
20014 }
20015
20016
20017 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20018 PyObject *resultobj;
20019 wxListItem *arg1 = (wxListItem *) 0 ;
20020 wxColour *arg2 = 0 ;
20021 wxColour temp2 ;
20022 PyObject * obj0 = 0 ;
20023 PyObject * obj1 = 0 ;
20024 char *kwnames[] = {
20025 (char *) "self",(char *) "colText", NULL
20026 };
20027
20028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
20029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20031 {
20032 arg2 = &temp2;
20033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20034 }
20035 {
20036 PyThreadState* __tstate = wxPyBeginAllowThreads();
20037 (arg1)->SetTextColour((wxColour const &)*arg2);
20038
20039 wxPyEndAllowThreads(__tstate);
20040 if (PyErr_Occurred()) SWIG_fail;
20041 }
20042 Py_INCREF(Py_None); resultobj = Py_None;
20043 return resultobj;
20044 fail:
20045 return NULL;
20046 }
20047
20048
20049 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20050 PyObject *resultobj;
20051 wxListItem *arg1 = (wxListItem *) 0 ;
20052 wxColour *arg2 = 0 ;
20053 wxColour temp2 ;
20054 PyObject * obj0 = 0 ;
20055 PyObject * obj1 = 0 ;
20056 char *kwnames[] = {
20057 (char *) "self",(char *) "colBack", NULL
20058 };
20059
20060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20063 {
20064 arg2 = &temp2;
20065 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20066 }
20067 {
20068 PyThreadState* __tstate = wxPyBeginAllowThreads();
20069 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
20070
20071 wxPyEndAllowThreads(__tstate);
20072 if (PyErr_Occurred()) SWIG_fail;
20073 }
20074 Py_INCREF(Py_None); resultobj = Py_None;
20075 return resultobj;
20076 fail:
20077 return NULL;
20078 }
20079
20080
20081 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20082 PyObject *resultobj;
20083 wxListItem *arg1 = (wxListItem *) 0 ;
20084 wxFont *arg2 = 0 ;
20085 PyObject * obj0 = 0 ;
20086 PyObject * obj1 = 0 ;
20087 char *kwnames[] = {
20088 (char *) "self",(char *) "font", NULL
20089 };
20090
20091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
20092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
20095 SWIG_POINTER_EXCEPTION | 0)) == -1)
20096 SWIG_fail;
20097 if (arg2 == NULL) {
20098 PyErr_SetString(PyExc_TypeError,"null reference");
20099 SWIG_fail;
20100 }
20101 {
20102 PyThreadState* __tstate = wxPyBeginAllowThreads();
20103 (arg1)->SetFont((wxFont const &)*arg2);
20104
20105 wxPyEndAllowThreads(__tstate);
20106 if (PyErr_Occurred()) SWIG_fail;
20107 }
20108 Py_INCREF(Py_None); resultobj = Py_None;
20109 return resultobj;
20110 fail:
20111 return NULL;
20112 }
20113
20114
20115 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
20116 PyObject *resultobj;
20117 wxListItem *arg1 = (wxListItem *) 0 ;
20118 long result;
20119 PyObject * obj0 = 0 ;
20120 char *kwnames[] = {
20121 (char *) "self", NULL
20122 };
20123
20124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
20125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20127 {
20128 PyThreadState* __tstate = wxPyBeginAllowThreads();
20129 result = (long)(arg1)->GetMask();
20130
20131 wxPyEndAllowThreads(__tstate);
20132 if (PyErr_Occurred()) SWIG_fail;
20133 }
20134 resultobj = SWIG_From_long((long)result);
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj;
20143 wxListItem *arg1 = (wxListItem *) 0 ;
20144 long result;
20145 PyObject * obj0 = 0 ;
20146 char *kwnames[] = {
20147 (char *) "self", NULL
20148 };
20149
20150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
20151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 result = (long)(arg1)->GetId();
20156
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 resultobj = SWIG_From_long((long)result);
20161 return resultobj;
20162 fail:
20163 return NULL;
20164 }
20165
20166
20167 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20168 PyObject *resultobj;
20169 wxListItem *arg1 = (wxListItem *) 0 ;
20170 int result;
20171 PyObject * obj0 = 0 ;
20172 char *kwnames[] = {
20173 (char *) "self", NULL
20174 };
20175
20176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
20177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20179 {
20180 PyThreadState* __tstate = wxPyBeginAllowThreads();
20181 result = (int)(arg1)->GetColumn();
20182
20183 wxPyEndAllowThreads(__tstate);
20184 if (PyErr_Occurred()) SWIG_fail;
20185 }
20186 resultobj = SWIG_From_int((int)result);
20187 return resultobj;
20188 fail:
20189 return NULL;
20190 }
20191
20192
20193 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
20194 PyObject *resultobj;
20195 wxListItem *arg1 = (wxListItem *) 0 ;
20196 long result;
20197 PyObject * obj0 = 0 ;
20198 char *kwnames[] = {
20199 (char *) "self", NULL
20200 };
20201
20202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
20203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 result = (long)(arg1)->GetState();
20208
20209 wxPyEndAllowThreads(__tstate);
20210 if (PyErr_Occurred()) SWIG_fail;
20211 }
20212 resultobj = SWIG_From_long((long)result);
20213 return resultobj;
20214 fail:
20215 return NULL;
20216 }
20217
20218
20219 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20220 PyObject *resultobj;
20221 wxListItem *arg1 = (wxListItem *) 0 ;
20222 wxString *result;
20223 PyObject * obj0 = 0 ;
20224 char *kwnames[] = {
20225 (char *) "self", NULL
20226 };
20227
20228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
20229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20231 {
20232 PyThreadState* __tstate = wxPyBeginAllowThreads();
20233 {
20234 wxString const &_result_ref = (arg1)->GetText();
20235 result = (wxString *) &_result_ref;
20236 }
20237
20238 wxPyEndAllowThreads(__tstate);
20239 if (PyErr_Occurred()) SWIG_fail;
20240 }
20241 {
20242 #if wxUSE_UNICODE
20243 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20244 #else
20245 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20246 #endif
20247 }
20248 return resultobj;
20249 fail:
20250 return NULL;
20251 }
20252
20253
20254 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20255 PyObject *resultobj;
20256 wxListItem *arg1 = (wxListItem *) 0 ;
20257 int result;
20258 PyObject * obj0 = 0 ;
20259 char *kwnames[] = {
20260 (char *) "self", NULL
20261 };
20262
20263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
20264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 result = (int)(arg1)->GetImage();
20269
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 resultobj = SWIG_From_int((int)result);
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj;
20282 wxListItem *arg1 = (wxListItem *) 0 ;
20283 long result;
20284 PyObject * obj0 = 0 ;
20285 char *kwnames[] = {
20286 (char *) "self", NULL
20287 };
20288
20289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
20290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20292 {
20293 PyThreadState* __tstate = wxPyBeginAllowThreads();
20294 result = (long)(arg1)->GetData();
20295
20296 wxPyEndAllowThreads(__tstate);
20297 if (PyErr_Occurred()) SWIG_fail;
20298 }
20299 resultobj = SWIG_From_long((long)result);
20300 return resultobj;
20301 fail:
20302 return NULL;
20303 }
20304
20305
20306 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20307 PyObject *resultobj;
20308 wxListItem *arg1 = (wxListItem *) 0 ;
20309 int result;
20310 PyObject * obj0 = 0 ;
20311 char *kwnames[] = {
20312 (char *) "self", NULL
20313 };
20314
20315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
20316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20318 {
20319 PyThreadState* __tstate = wxPyBeginAllowThreads();
20320 result = (int)(arg1)->GetWidth();
20321
20322 wxPyEndAllowThreads(__tstate);
20323 if (PyErr_Occurred()) SWIG_fail;
20324 }
20325 resultobj = SWIG_From_int((int)result);
20326 return resultobj;
20327 fail:
20328 return NULL;
20329 }
20330
20331
20332 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20333 PyObject *resultobj;
20334 wxListItem *arg1 = (wxListItem *) 0 ;
20335 int result;
20336 PyObject * obj0 = 0 ;
20337 char *kwnames[] = {
20338 (char *) "self", NULL
20339 };
20340
20341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20344 {
20345 PyThreadState* __tstate = wxPyBeginAllowThreads();
20346 result = (int)(arg1)->GetAlign();
20347
20348 wxPyEndAllowThreads(__tstate);
20349 if (PyErr_Occurred()) SWIG_fail;
20350 }
20351 resultobj = SWIG_From_int((int)result);
20352 return resultobj;
20353 fail:
20354 return NULL;
20355 }
20356
20357
20358 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20359 PyObject *resultobj;
20360 wxListItem *arg1 = (wxListItem *) 0 ;
20361 wxListItemAttr *result;
20362 PyObject * obj0 = 0 ;
20363 char *kwnames[] = {
20364 (char *) "self", NULL
20365 };
20366
20367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20370 {
20371 PyThreadState* __tstate = wxPyBeginAllowThreads();
20372 result = (wxListItemAttr *)(arg1)->GetAttributes();
20373
20374 wxPyEndAllowThreads(__tstate);
20375 if (PyErr_Occurred()) SWIG_fail;
20376 }
20377 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20378 return resultobj;
20379 fail:
20380 return NULL;
20381 }
20382
20383
20384 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20385 PyObject *resultobj;
20386 wxListItem *arg1 = (wxListItem *) 0 ;
20387 bool result;
20388 PyObject * obj0 = 0 ;
20389 char *kwnames[] = {
20390 (char *) "self", NULL
20391 };
20392
20393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20396 {
20397 PyThreadState* __tstate = wxPyBeginAllowThreads();
20398 result = (bool)(arg1)->HasAttributes();
20399
20400 wxPyEndAllowThreads(__tstate);
20401 if (PyErr_Occurred()) SWIG_fail;
20402 }
20403 {
20404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20405 }
20406 return resultobj;
20407 fail:
20408 return NULL;
20409 }
20410
20411
20412 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20413 PyObject *resultobj;
20414 wxListItem *arg1 = (wxListItem *) 0 ;
20415 wxColour result;
20416 PyObject * obj0 = 0 ;
20417 char *kwnames[] = {
20418 (char *) "self", NULL
20419 };
20420
20421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20424 {
20425 PyThreadState* __tstate = wxPyBeginAllowThreads();
20426 result = ((wxListItem const *)arg1)->GetTextColour();
20427
20428 wxPyEndAllowThreads(__tstate);
20429 if (PyErr_Occurred()) SWIG_fail;
20430 }
20431 {
20432 wxColour * resultptr;
20433 resultptr = new wxColour((wxColour &) result);
20434 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20435 }
20436 return resultobj;
20437 fail:
20438 return NULL;
20439 }
20440
20441
20442 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20443 PyObject *resultobj;
20444 wxListItem *arg1 = (wxListItem *) 0 ;
20445 wxColour result;
20446 PyObject * obj0 = 0 ;
20447 char *kwnames[] = {
20448 (char *) "self", NULL
20449 };
20450
20451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20454 {
20455 PyThreadState* __tstate = wxPyBeginAllowThreads();
20456 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20457
20458 wxPyEndAllowThreads(__tstate);
20459 if (PyErr_Occurred()) SWIG_fail;
20460 }
20461 {
20462 wxColour * resultptr;
20463 resultptr = new wxColour((wxColour &) result);
20464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20465 }
20466 return resultobj;
20467 fail:
20468 return NULL;
20469 }
20470
20471
20472 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20473 PyObject *resultobj;
20474 wxListItem *arg1 = (wxListItem *) 0 ;
20475 wxFont result;
20476 PyObject * obj0 = 0 ;
20477 char *kwnames[] = {
20478 (char *) "self", NULL
20479 };
20480
20481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20484 {
20485 PyThreadState* __tstate = wxPyBeginAllowThreads();
20486 result = ((wxListItem const *)arg1)->GetFont();
20487
20488 wxPyEndAllowThreads(__tstate);
20489 if (PyErr_Occurred()) SWIG_fail;
20490 }
20491 {
20492 wxFont * resultptr;
20493 resultptr = new wxFont((wxFont &) result);
20494 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20495 }
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20503 PyObject *resultobj;
20504 wxListItem *arg1 = (wxListItem *) 0 ;
20505 long arg2 ;
20506 PyObject * obj0 = 0 ;
20507 PyObject * obj1 = 0 ;
20508 char *kwnames[] = {
20509 (char *) "self",(char *) "m_mask", NULL
20510 };
20511
20512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20515 arg2 = (long)SWIG_As_long(obj1);
20516 if (PyErr_Occurred()) SWIG_fail;
20517 if (arg1) (arg1)->m_mask = arg2;
20518
20519 Py_INCREF(Py_None); resultobj = Py_None;
20520 return resultobj;
20521 fail:
20522 return NULL;
20523 }
20524
20525
20526 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20527 PyObject *resultobj;
20528 wxListItem *arg1 = (wxListItem *) 0 ;
20529 long result;
20530 PyObject * obj0 = 0 ;
20531 char *kwnames[] = {
20532 (char *) "self", NULL
20533 };
20534
20535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20538 result = (long) ((arg1)->m_mask);
20539
20540 resultobj = SWIG_From_long((long)result);
20541 return resultobj;
20542 fail:
20543 return NULL;
20544 }
20545
20546
20547 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20548 PyObject *resultobj;
20549 wxListItem *arg1 = (wxListItem *) 0 ;
20550 long arg2 ;
20551 PyObject * obj0 = 0 ;
20552 PyObject * obj1 = 0 ;
20553 char *kwnames[] = {
20554 (char *) "self",(char *) "m_itemId", NULL
20555 };
20556
20557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20560 arg2 = (long)SWIG_As_long(obj1);
20561 if (PyErr_Occurred()) SWIG_fail;
20562 if (arg1) (arg1)->m_itemId = arg2;
20563
20564 Py_INCREF(Py_None); resultobj = Py_None;
20565 return resultobj;
20566 fail:
20567 return NULL;
20568 }
20569
20570
20571 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20572 PyObject *resultobj;
20573 wxListItem *arg1 = (wxListItem *) 0 ;
20574 long result;
20575 PyObject * obj0 = 0 ;
20576 char *kwnames[] = {
20577 (char *) "self", NULL
20578 };
20579
20580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20583 result = (long) ((arg1)->m_itemId);
20584
20585 resultobj = SWIG_From_long((long)result);
20586 return resultobj;
20587 fail:
20588 return NULL;
20589 }
20590
20591
20592 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20593 PyObject *resultobj;
20594 wxListItem *arg1 = (wxListItem *) 0 ;
20595 int arg2 ;
20596 PyObject * obj0 = 0 ;
20597 PyObject * obj1 = 0 ;
20598 char *kwnames[] = {
20599 (char *) "self",(char *) "m_col", NULL
20600 };
20601
20602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20605 arg2 = (int)SWIG_As_int(obj1);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 if (arg1) (arg1)->m_col = arg2;
20608
20609 Py_INCREF(Py_None); resultobj = Py_None;
20610 return resultobj;
20611 fail:
20612 return NULL;
20613 }
20614
20615
20616 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20617 PyObject *resultobj;
20618 wxListItem *arg1 = (wxListItem *) 0 ;
20619 int result;
20620 PyObject * obj0 = 0 ;
20621 char *kwnames[] = {
20622 (char *) "self", NULL
20623 };
20624
20625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20628 result = (int) ((arg1)->m_col);
20629
20630 resultobj = SWIG_From_int((int)result);
20631 return resultobj;
20632 fail:
20633 return NULL;
20634 }
20635
20636
20637 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20638 PyObject *resultobj;
20639 wxListItem *arg1 = (wxListItem *) 0 ;
20640 long arg2 ;
20641 PyObject * obj0 = 0 ;
20642 PyObject * obj1 = 0 ;
20643 char *kwnames[] = {
20644 (char *) "self",(char *) "m_state", NULL
20645 };
20646
20647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20650 arg2 = (long)SWIG_As_long(obj1);
20651 if (PyErr_Occurred()) SWIG_fail;
20652 if (arg1) (arg1)->m_state = arg2;
20653
20654 Py_INCREF(Py_None); resultobj = Py_None;
20655 return resultobj;
20656 fail:
20657 return NULL;
20658 }
20659
20660
20661 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20662 PyObject *resultobj;
20663 wxListItem *arg1 = (wxListItem *) 0 ;
20664 long result;
20665 PyObject * obj0 = 0 ;
20666 char *kwnames[] = {
20667 (char *) "self", NULL
20668 };
20669
20670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20673 result = (long) ((arg1)->m_state);
20674
20675 resultobj = SWIG_From_long((long)result);
20676 return resultobj;
20677 fail:
20678 return NULL;
20679 }
20680
20681
20682 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20683 PyObject *resultobj;
20684 wxListItem *arg1 = (wxListItem *) 0 ;
20685 long arg2 ;
20686 PyObject * obj0 = 0 ;
20687 PyObject * obj1 = 0 ;
20688 char *kwnames[] = {
20689 (char *) "self",(char *) "m_stateMask", NULL
20690 };
20691
20692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20695 arg2 = (long)SWIG_As_long(obj1);
20696 if (PyErr_Occurred()) SWIG_fail;
20697 if (arg1) (arg1)->m_stateMask = arg2;
20698
20699 Py_INCREF(Py_None); resultobj = Py_None;
20700 return resultobj;
20701 fail:
20702 return NULL;
20703 }
20704
20705
20706 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20707 PyObject *resultobj;
20708 wxListItem *arg1 = (wxListItem *) 0 ;
20709 long result;
20710 PyObject * obj0 = 0 ;
20711 char *kwnames[] = {
20712 (char *) "self", NULL
20713 };
20714
20715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20718 result = (long) ((arg1)->m_stateMask);
20719
20720 resultobj = SWIG_From_long((long)result);
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20728 PyObject *resultobj;
20729 wxListItem *arg1 = (wxListItem *) 0 ;
20730 wxString *arg2 = (wxString *) 0 ;
20731 bool temp2 = false ;
20732 PyObject * obj0 = 0 ;
20733 PyObject * obj1 = 0 ;
20734 char *kwnames[] = {
20735 (char *) "self",(char *) "m_text", NULL
20736 };
20737
20738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20741 {
20742 arg2 = wxString_in_helper(obj1);
20743 if (arg2 == NULL) SWIG_fail;
20744 temp2 = true;
20745 }
20746 if (arg1) (arg1)->m_text = *arg2;
20747
20748 Py_INCREF(Py_None); resultobj = Py_None;
20749 {
20750 if (temp2)
20751 delete arg2;
20752 }
20753 return resultobj;
20754 fail:
20755 {
20756 if (temp2)
20757 delete arg2;
20758 }
20759 return NULL;
20760 }
20761
20762
20763 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20764 PyObject *resultobj;
20765 wxListItem *arg1 = (wxListItem *) 0 ;
20766 wxString *result;
20767 PyObject * obj0 = 0 ;
20768 char *kwnames[] = {
20769 (char *) "self", NULL
20770 };
20771
20772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20775 result = (wxString *)& ((arg1)->m_text);
20776
20777 {
20778 #if wxUSE_UNICODE
20779 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20780 #else
20781 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20782 #endif
20783 }
20784 return resultobj;
20785 fail:
20786 return NULL;
20787 }
20788
20789
20790 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20791 PyObject *resultobj;
20792 wxListItem *arg1 = (wxListItem *) 0 ;
20793 int arg2 ;
20794 PyObject * obj0 = 0 ;
20795 PyObject * obj1 = 0 ;
20796 char *kwnames[] = {
20797 (char *) "self",(char *) "m_image", NULL
20798 };
20799
20800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20803 arg2 = (int)SWIG_As_int(obj1);
20804 if (PyErr_Occurred()) SWIG_fail;
20805 if (arg1) (arg1)->m_image = arg2;
20806
20807 Py_INCREF(Py_None); resultobj = Py_None;
20808 return resultobj;
20809 fail:
20810 return NULL;
20811 }
20812
20813
20814 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20815 PyObject *resultobj;
20816 wxListItem *arg1 = (wxListItem *) 0 ;
20817 int result;
20818 PyObject * obj0 = 0 ;
20819 char *kwnames[] = {
20820 (char *) "self", NULL
20821 };
20822
20823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20826 result = (int) ((arg1)->m_image);
20827
20828 resultobj = SWIG_From_int((int)result);
20829 return resultobj;
20830 fail:
20831 return NULL;
20832 }
20833
20834
20835 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20836 PyObject *resultobj;
20837 wxListItem *arg1 = (wxListItem *) 0 ;
20838 long arg2 ;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 char *kwnames[] = {
20842 (char *) "self",(char *) "m_data", NULL
20843 };
20844
20845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20848 arg2 = (long)SWIG_As_long(obj1);
20849 if (PyErr_Occurred()) SWIG_fail;
20850 if (arg1) (arg1)->m_data = arg2;
20851
20852 Py_INCREF(Py_None); resultobj = Py_None;
20853 return resultobj;
20854 fail:
20855 return NULL;
20856 }
20857
20858
20859 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20860 PyObject *resultobj;
20861 wxListItem *arg1 = (wxListItem *) 0 ;
20862 long result;
20863 PyObject * obj0 = 0 ;
20864 char *kwnames[] = {
20865 (char *) "self", NULL
20866 };
20867
20868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20869 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20871 result = (long) ((arg1)->m_data);
20872
20873 resultobj = SWIG_From_long((long)result);
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj;
20882 wxListItem *arg1 = (wxListItem *) 0 ;
20883 int arg2 ;
20884 PyObject * obj0 = 0 ;
20885 PyObject * obj1 = 0 ;
20886 char *kwnames[] = {
20887 (char *) "self",(char *) "m_format", NULL
20888 };
20889
20890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20893 arg2 = (int)SWIG_As_int(obj1);
20894 if (PyErr_Occurred()) SWIG_fail;
20895 if (arg1) (arg1)->m_format = arg2;
20896
20897 Py_INCREF(Py_None); resultobj = Py_None;
20898 return resultobj;
20899 fail:
20900 return NULL;
20901 }
20902
20903
20904 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20905 PyObject *resultobj;
20906 wxListItem *arg1 = (wxListItem *) 0 ;
20907 int result;
20908 PyObject * obj0 = 0 ;
20909 char *kwnames[] = {
20910 (char *) "self", NULL
20911 };
20912
20913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20916 result = (int) ((arg1)->m_format);
20917
20918 resultobj = SWIG_From_int((int)result);
20919 return resultobj;
20920 fail:
20921 return NULL;
20922 }
20923
20924
20925 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20926 PyObject *resultobj;
20927 wxListItem *arg1 = (wxListItem *) 0 ;
20928 int arg2 ;
20929 PyObject * obj0 = 0 ;
20930 PyObject * obj1 = 0 ;
20931 char *kwnames[] = {
20932 (char *) "self",(char *) "m_width", NULL
20933 };
20934
20935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20938 arg2 = (int)SWIG_As_int(obj1);
20939 if (PyErr_Occurred()) SWIG_fail;
20940 if (arg1) (arg1)->m_width = arg2;
20941
20942 Py_INCREF(Py_None); resultobj = Py_None;
20943 return resultobj;
20944 fail:
20945 return NULL;
20946 }
20947
20948
20949 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20950 PyObject *resultobj;
20951 wxListItem *arg1 = (wxListItem *) 0 ;
20952 int result;
20953 PyObject * obj0 = 0 ;
20954 char *kwnames[] = {
20955 (char *) "self", NULL
20956 };
20957
20958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20961 result = (int) ((arg1)->m_width);
20962
20963 resultobj = SWIG_From_int((int)result);
20964 return resultobj;
20965 fail:
20966 return NULL;
20967 }
20968
20969
20970 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20971 PyObject *obj;
20972 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20973 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20974 Py_INCREF(obj);
20975 return Py_BuildValue((char *)"");
20976 }
20977 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20978 PyObject *resultobj;
20979 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20980 int arg2 = (int) 0 ;
20981 wxListEvent *result;
20982 PyObject * obj0 = 0 ;
20983 PyObject * obj1 = 0 ;
20984 char *kwnames[] = {
20985 (char *) "commandType",(char *) "id", NULL
20986 };
20987
20988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20989 if (obj0) {
20990 arg1 = (wxEventType)SWIG_As_int(obj0);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 if (obj1) {
20994 arg2 = (int)SWIG_As_int(obj1);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = (wxListEvent *)new wxListEvent(arg1,arg2);
21000
21001 wxPyEndAllowThreads(__tstate);
21002 if (PyErr_Occurred()) SWIG_fail;
21003 }
21004 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
21005 return resultobj;
21006 fail:
21007 return NULL;
21008 }
21009
21010
21011 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
21012 PyObject *resultobj;
21013 wxListEvent *arg1 = (wxListEvent *) 0 ;
21014 int arg2 ;
21015 PyObject * obj0 = 0 ;
21016 PyObject * obj1 = 0 ;
21017 char *kwnames[] = {
21018 (char *) "self",(char *) "m_code", NULL
21019 };
21020
21021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
21022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21024 arg2 = (int)SWIG_As_int(obj1);
21025 if (PyErr_Occurred()) SWIG_fail;
21026 if (arg1) (arg1)->m_code = arg2;
21027
21028 Py_INCREF(Py_None); resultobj = Py_None;
21029 return resultobj;
21030 fail:
21031 return NULL;
21032 }
21033
21034
21035 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
21036 PyObject *resultobj;
21037 wxListEvent *arg1 = (wxListEvent *) 0 ;
21038 int result;
21039 PyObject * obj0 = 0 ;
21040 char *kwnames[] = {
21041 (char *) "self", NULL
21042 };
21043
21044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
21045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21047 result = (int) ((arg1)->m_code);
21048
21049 resultobj = SWIG_From_int((int)result);
21050 return resultobj;
21051 fail:
21052 return NULL;
21053 }
21054
21055
21056 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21057 PyObject *resultobj;
21058 wxListEvent *arg1 = (wxListEvent *) 0 ;
21059 long arg2 ;
21060 PyObject * obj0 = 0 ;
21061 PyObject * obj1 = 0 ;
21062 char *kwnames[] = {
21063 (char *) "self",(char *) "m_oldItemIndex", NULL
21064 };
21065
21066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21069 arg2 = (long)SWIG_As_long(obj1);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 if (arg1) (arg1)->m_oldItemIndex = arg2;
21072
21073 Py_INCREF(Py_None); resultobj = Py_None;
21074 return resultobj;
21075 fail:
21076 return NULL;
21077 }
21078
21079
21080 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21081 PyObject *resultobj;
21082 wxListEvent *arg1 = (wxListEvent *) 0 ;
21083 long result;
21084 PyObject * obj0 = 0 ;
21085 char *kwnames[] = {
21086 (char *) "self", NULL
21087 };
21088
21089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
21090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21092 result = (long) ((arg1)->m_oldItemIndex);
21093
21094 resultobj = SWIG_From_long((long)result);
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21102 PyObject *resultobj;
21103 wxListEvent *arg1 = (wxListEvent *) 0 ;
21104 long arg2 ;
21105 PyObject * obj0 = 0 ;
21106 PyObject * obj1 = 0 ;
21107 char *kwnames[] = {
21108 (char *) "self",(char *) "m_itemIndex", NULL
21109 };
21110
21111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21114 arg2 = (long)SWIG_As_long(obj1);
21115 if (PyErr_Occurred()) SWIG_fail;
21116 if (arg1) (arg1)->m_itemIndex = arg2;
21117
21118 Py_INCREF(Py_None); resultobj = Py_None;
21119 return resultobj;
21120 fail:
21121 return NULL;
21122 }
21123
21124
21125 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21126 PyObject *resultobj;
21127 wxListEvent *arg1 = (wxListEvent *) 0 ;
21128 long result;
21129 PyObject * obj0 = 0 ;
21130 char *kwnames[] = {
21131 (char *) "self", NULL
21132 };
21133
21134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
21135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21137 result = (long) ((arg1)->m_itemIndex);
21138
21139 resultobj = SWIG_From_long((long)result);
21140 return resultobj;
21141 fail:
21142 return NULL;
21143 }
21144
21145
21146 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
21147 PyObject *resultobj;
21148 wxListEvent *arg1 = (wxListEvent *) 0 ;
21149 int arg2 ;
21150 PyObject * obj0 = 0 ;
21151 PyObject * obj1 = 0 ;
21152 char *kwnames[] = {
21153 (char *) "self",(char *) "m_col", NULL
21154 };
21155
21156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
21157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21159 arg2 = (int)SWIG_As_int(obj1);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 if (arg1) (arg1)->m_col = arg2;
21162
21163 Py_INCREF(Py_None); resultobj = Py_None;
21164 return resultobj;
21165 fail:
21166 return NULL;
21167 }
21168
21169
21170 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
21171 PyObject *resultobj;
21172 wxListEvent *arg1 = (wxListEvent *) 0 ;
21173 int result;
21174 PyObject * obj0 = 0 ;
21175 char *kwnames[] = {
21176 (char *) "self", NULL
21177 };
21178
21179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
21180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21182 result = (int) ((arg1)->m_col);
21183
21184 resultobj = SWIG_From_int((int)result);
21185 return resultobj;
21186 fail:
21187 return NULL;
21188 }
21189
21190
21191 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
21192 PyObject *resultobj;
21193 wxListEvent *arg1 = (wxListEvent *) 0 ;
21194 wxPoint *arg2 = (wxPoint *) 0 ;
21195 PyObject * obj0 = 0 ;
21196 PyObject * obj1 = 0 ;
21197 char *kwnames[] = {
21198 (char *) "self",(char *) "m_pointDrag", NULL
21199 };
21200
21201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
21202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
21205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21206 if (arg1) (arg1)->m_pointDrag = *arg2;
21207
21208 Py_INCREF(Py_None); resultobj = Py_None;
21209 return resultobj;
21210 fail:
21211 return NULL;
21212 }
21213
21214
21215 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
21216 PyObject *resultobj;
21217 wxListEvent *arg1 = (wxListEvent *) 0 ;
21218 wxPoint *result;
21219 PyObject * obj0 = 0 ;
21220 char *kwnames[] = {
21221 (char *) "self", NULL
21222 };
21223
21224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
21225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21227 result = (wxPoint *)& ((arg1)->m_pointDrag);
21228
21229 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
21230 return resultobj;
21231 fail:
21232 return NULL;
21233 }
21234
21235
21236 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
21237 PyObject *resultobj;
21238 wxListEvent *arg1 = (wxListEvent *) 0 ;
21239 wxListItem *result;
21240 PyObject * obj0 = 0 ;
21241 char *kwnames[] = {
21242 (char *) "self", NULL
21243 };
21244
21245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
21246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21248 result = (wxListItem *)& ((arg1)->m_item);
21249
21250 {
21251 resultobj = wxPyMake_wxObject(result, 0);
21252 }
21253 return resultobj;
21254 fail:
21255 return NULL;
21256 }
21257
21258
21259 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
21260 PyObject *resultobj;
21261 wxListEvent *arg1 = (wxListEvent *) 0 ;
21262 int result;
21263 PyObject * obj0 = 0 ;
21264 char *kwnames[] = {
21265 (char *) "self", NULL
21266 };
21267
21268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
21269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21271 {
21272 PyThreadState* __tstate = wxPyBeginAllowThreads();
21273 result = (int)(arg1)->GetKeyCode();
21274
21275 wxPyEndAllowThreads(__tstate);
21276 if (PyErr_Occurred()) SWIG_fail;
21277 }
21278 resultobj = SWIG_From_int((int)result);
21279 return resultobj;
21280 fail:
21281 return NULL;
21282 }
21283
21284
21285 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
21286 PyObject *resultobj;
21287 wxListEvent *arg1 = (wxListEvent *) 0 ;
21288 long result;
21289 PyObject * obj0 = 0 ;
21290 char *kwnames[] = {
21291 (char *) "self", NULL
21292 };
21293
21294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
21295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21297 {
21298 PyThreadState* __tstate = wxPyBeginAllowThreads();
21299 result = (long)(arg1)->GetIndex();
21300
21301 wxPyEndAllowThreads(__tstate);
21302 if (PyErr_Occurred()) SWIG_fail;
21303 }
21304 resultobj = SWIG_From_long((long)result);
21305 return resultobj;
21306 fail:
21307 return NULL;
21308 }
21309
21310
21311 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21312 PyObject *resultobj;
21313 wxListEvent *arg1 = (wxListEvent *) 0 ;
21314 int result;
21315 PyObject * obj0 = 0 ;
21316 char *kwnames[] = {
21317 (char *) "self", NULL
21318 };
21319
21320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
21321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21323 {
21324 PyThreadState* __tstate = wxPyBeginAllowThreads();
21325 result = (int)(arg1)->GetColumn();
21326
21327 wxPyEndAllowThreads(__tstate);
21328 if (PyErr_Occurred()) SWIG_fail;
21329 }
21330 resultobj = SWIG_From_int((int)result);
21331 return resultobj;
21332 fail:
21333 return NULL;
21334 }
21335
21336
21337 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21338 PyObject *resultobj;
21339 wxListEvent *arg1 = (wxListEvent *) 0 ;
21340 wxPoint result;
21341 PyObject * obj0 = 0 ;
21342 char *kwnames[] = {
21343 (char *) "self", NULL
21344 };
21345
21346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 result = (arg1)->GetPoint();
21352
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 {
21357 wxPoint * resultptr;
21358 resultptr = new wxPoint((wxPoint &) result);
21359 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21360 }
21361 return resultobj;
21362 fail:
21363 return NULL;
21364 }
21365
21366
21367 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21368 PyObject *resultobj;
21369 wxListEvent *arg1 = (wxListEvent *) 0 ;
21370 wxString *result;
21371 PyObject * obj0 = 0 ;
21372 char *kwnames[] = {
21373 (char *) "self", NULL
21374 };
21375
21376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21379 {
21380 PyThreadState* __tstate = wxPyBeginAllowThreads();
21381 {
21382 wxString const &_result_ref = (arg1)->GetLabel();
21383 result = (wxString *) &_result_ref;
21384 }
21385
21386 wxPyEndAllowThreads(__tstate);
21387 if (PyErr_Occurred()) SWIG_fail;
21388 }
21389 {
21390 #if wxUSE_UNICODE
21391 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21392 #else
21393 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21394 #endif
21395 }
21396 return resultobj;
21397 fail:
21398 return NULL;
21399 }
21400
21401
21402 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21403 PyObject *resultobj;
21404 wxListEvent *arg1 = (wxListEvent *) 0 ;
21405 wxString *result;
21406 PyObject * obj0 = 0 ;
21407 char *kwnames[] = {
21408 (char *) "self", NULL
21409 };
21410
21411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21414 {
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 {
21417 wxString const &_result_ref = (arg1)->GetText();
21418 result = (wxString *) &_result_ref;
21419 }
21420
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 {
21425 #if wxUSE_UNICODE
21426 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21427 #else
21428 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21429 #endif
21430 }
21431 return resultobj;
21432 fail:
21433 return NULL;
21434 }
21435
21436
21437 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21438 PyObject *resultobj;
21439 wxListEvent *arg1 = (wxListEvent *) 0 ;
21440 int result;
21441 PyObject * obj0 = 0 ;
21442 char *kwnames[] = {
21443 (char *) "self", NULL
21444 };
21445
21446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21449 {
21450 PyThreadState* __tstate = wxPyBeginAllowThreads();
21451 result = (int)(arg1)->GetImage();
21452
21453 wxPyEndAllowThreads(__tstate);
21454 if (PyErr_Occurred()) SWIG_fail;
21455 }
21456 resultobj = SWIG_From_int((int)result);
21457 return resultobj;
21458 fail:
21459 return NULL;
21460 }
21461
21462
21463 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21464 PyObject *resultobj;
21465 wxListEvent *arg1 = (wxListEvent *) 0 ;
21466 long result;
21467 PyObject * obj0 = 0 ;
21468 char *kwnames[] = {
21469 (char *) "self", NULL
21470 };
21471
21472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21475 {
21476 PyThreadState* __tstate = wxPyBeginAllowThreads();
21477 result = (long)(arg1)->GetData();
21478
21479 wxPyEndAllowThreads(__tstate);
21480 if (PyErr_Occurred()) SWIG_fail;
21481 }
21482 resultobj = SWIG_From_long((long)result);
21483 return resultobj;
21484 fail:
21485 return NULL;
21486 }
21487
21488
21489 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21490 PyObject *resultobj;
21491 wxListEvent *arg1 = (wxListEvent *) 0 ;
21492 long result;
21493 PyObject * obj0 = 0 ;
21494 char *kwnames[] = {
21495 (char *) "self", NULL
21496 };
21497
21498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21501 {
21502 PyThreadState* __tstate = wxPyBeginAllowThreads();
21503 result = (long)(arg1)->GetMask();
21504
21505 wxPyEndAllowThreads(__tstate);
21506 if (PyErr_Occurred()) SWIG_fail;
21507 }
21508 resultobj = SWIG_From_long((long)result);
21509 return resultobj;
21510 fail:
21511 return NULL;
21512 }
21513
21514
21515 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21516 PyObject *resultobj;
21517 wxListEvent *arg1 = (wxListEvent *) 0 ;
21518 wxListItem *result;
21519 PyObject * obj0 = 0 ;
21520 char *kwnames[] = {
21521 (char *) "self", NULL
21522 };
21523
21524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 {
21530 wxListItem const &_result_ref = (arg1)->GetItem();
21531 result = (wxListItem *) &_result_ref;
21532 }
21533
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21538 return resultobj;
21539 fail:
21540 return NULL;
21541 }
21542
21543
21544 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21545 PyObject *resultobj;
21546 wxListEvent *arg1 = (wxListEvent *) 0 ;
21547 long result;
21548 PyObject * obj0 = 0 ;
21549 char *kwnames[] = {
21550 (char *) "self", NULL
21551 };
21552
21553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21556 {
21557 PyThreadState* __tstate = wxPyBeginAllowThreads();
21558 result = (long)(arg1)->GetCacheFrom();
21559
21560 wxPyEndAllowThreads(__tstate);
21561 if (PyErr_Occurred()) SWIG_fail;
21562 }
21563 resultobj = SWIG_From_long((long)result);
21564 return resultobj;
21565 fail:
21566 return NULL;
21567 }
21568
21569
21570 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21571 PyObject *resultobj;
21572 wxListEvent *arg1 = (wxListEvent *) 0 ;
21573 long result;
21574 PyObject * obj0 = 0 ;
21575 char *kwnames[] = {
21576 (char *) "self", NULL
21577 };
21578
21579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (long)(arg1)->GetCacheTo();
21585
21586 wxPyEndAllowThreads(__tstate);
21587 if (PyErr_Occurred()) SWIG_fail;
21588 }
21589 resultobj = SWIG_From_long((long)result);
21590 return resultobj;
21591 fail:
21592 return NULL;
21593 }
21594
21595
21596 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21597 PyObject *resultobj;
21598 wxListEvent *arg1 = (wxListEvent *) 0 ;
21599 bool result;
21600 PyObject * obj0 = 0 ;
21601 char *kwnames[] = {
21602 (char *) "self", NULL
21603 };
21604
21605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21608 {
21609 PyThreadState* __tstate = wxPyBeginAllowThreads();
21610 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21611
21612 wxPyEndAllowThreads(__tstate);
21613 if (PyErr_Occurred()) SWIG_fail;
21614 }
21615 {
21616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21617 }
21618 return resultobj;
21619 fail:
21620 return NULL;
21621 }
21622
21623
21624 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21625 PyObject *resultobj;
21626 wxListEvent *arg1 = (wxListEvent *) 0 ;
21627 bool arg2 ;
21628 PyObject * obj0 = 0 ;
21629 PyObject * obj1 = 0 ;
21630 char *kwnames[] = {
21631 (char *) "self",(char *) "editCancelled", NULL
21632 };
21633
21634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21637 arg2 = (bool)SWIG_As_bool(obj1);
21638 if (PyErr_Occurred()) SWIG_fail;
21639 {
21640 PyThreadState* __tstate = wxPyBeginAllowThreads();
21641 (arg1)->SetEditCanceled(arg2);
21642
21643 wxPyEndAllowThreads(__tstate);
21644 if (PyErr_Occurred()) SWIG_fail;
21645 }
21646 Py_INCREF(Py_None); resultobj = Py_None;
21647 return resultobj;
21648 fail:
21649 return NULL;
21650 }
21651
21652
21653 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21654 PyObject *obj;
21655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21656 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21657 Py_INCREF(obj);
21658 return Py_BuildValue((char *)"");
21659 }
21660 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21661 PyObject *resultobj;
21662 wxWindow *arg1 = (wxWindow *) 0 ;
21663 int arg2 = (int) -1 ;
21664 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21665 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21666 wxSize const &arg4_defvalue = wxDefaultSize ;
21667 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21668 long arg5 = (long) wxLC_ICON ;
21669 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21670 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21671 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21672 wxString *arg7 = (wxString *) &arg7_defvalue ;
21673 wxPyListCtrl *result;
21674 wxPoint temp3 ;
21675 wxSize temp4 ;
21676 bool temp7 = false ;
21677 PyObject * obj0 = 0 ;
21678 PyObject * obj1 = 0 ;
21679 PyObject * obj2 = 0 ;
21680 PyObject * obj3 = 0 ;
21681 PyObject * obj4 = 0 ;
21682 PyObject * obj5 = 0 ;
21683 PyObject * obj6 = 0 ;
21684 char *kwnames[] = {
21685 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21686 };
21687
21688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21691 if (obj1) {
21692 arg2 = (int)SWIG_As_int(obj1);
21693 if (PyErr_Occurred()) SWIG_fail;
21694 }
21695 if (obj2) {
21696 {
21697 arg3 = &temp3;
21698 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21699 }
21700 }
21701 if (obj3) {
21702 {
21703 arg4 = &temp4;
21704 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21705 }
21706 }
21707 if (obj4) {
21708 arg5 = (long)SWIG_As_long(obj4);
21709 if (PyErr_Occurred()) SWIG_fail;
21710 }
21711 if (obj5) {
21712 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21713 SWIG_POINTER_EXCEPTION | 0)) == -1)
21714 SWIG_fail;
21715 if (arg6 == NULL) {
21716 PyErr_SetString(PyExc_TypeError,"null reference");
21717 SWIG_fail;
21718 }
21719 }
21720 if (obj6) {
21721 {
21722 arg7 = wxString_in_helper(obj6);
21723 if (arg7 == NULL) SWIG_fail;
21724 temp7 = true;
21725 }
21726 }
21727 {
21728 if (!wxPyCheckForApp()) SWIG_fail;
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21731
21732 wxPyEndAllowThreads(__tstate);
21733 if (PyErr_Occurred()) SWIG_fail;
21734 }
21735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21736 {
21737 if (temp7)
21738 delete arg7;
21739 }
21740 return resultobj;
21741 fail:
21742 {
21743 if (temp7)
21744 delete arg7;
21745 }
21746 return NULL;
21747 }
21748
21749
21750 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21751 PyObject *resultobj;
21752 wxPyListCtrl *result;
21753 char *kwnames[] = {
21754 NULL
21755 };
21756
21757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21758 {
21759 if (!wxPyCheckForApp()) SWIG_fail;
21760 PyThreadState* __tstate = wxPyBeginAllowThreads();
21761 result = (wxPyListCtrl *)new wxPyListCtrl();
21762
21763 wxPyEndAllowThreads(__tstate);
21764 if (PyErr_Occurred()) SWIG_fail;
21765 }
21766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21767 return resultobj;
21768 fail:
21769 return NULL;
21770 }
21771
21772
21773 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21774 PyObject *resultobj;
21775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21776 wxWindow *arg2 = (wxWindow *) 0 ;
21777 int arg3 = (int) -1 ;
21778 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21779 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21780 wxSize const &arg5_defvalue = wxDefaultSize ;
21781 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21782 long arg6 = (long) wxLC_ICON ;
21783 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21784 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21785 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21786 wxString *arg8 = (wxString *) &arg8_defvalue ;
21787 bool result;
21788 wxPoint temp4 ;
21789 wxSize temp5 ;
21790 bool temp8 = false ;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 PyObject * obj2 = 0 ;
21794 PyObject * obj3 = 0 ;
21795 PyObject * obj4 = 0 ;
21796 PyObject * obj5 = 0 ;
21797 PyObject * obj6 = 0 ;
21798 PyObject * obj7 = 0 ;
21799 char *kwnames[] = {
21800 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21801 };
21802
21803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21808 if (obj2) {
21809 arg3 = (int)SWIG_As_int(obj2);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 if (obj3) {
21813 {
21814 arg4 = &temp4;
21815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21816 }
21817 }
21818 if (obj4) {
21819 {
21820 arg5 = &temp5;
21821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21822 }
21823 }
21824 if (obj5) {
21825 arg6 = (long)SWIG_As_long(obj5);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 if (obj6) {
21829 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21830 SWIG_POINTER_EXCEPTION | 0)) == -1)
21831 SWIG_fail;
21832 if (arg7 == NULL) {
21833 PyErr_SetString(PyExc_TypeError,"null reference");
21834 SWIG_fail;
21835 }
21836 }
21837 if (obj7) {
21838 {
21839 arg8 = wxString_in_helper(obj7);
21840 if (arg8 == NULL) SWIG_fail;
21841 temp8 = true;
21842 }
21843 }
21844 {
21845 PyThreadState* __tstate = wxPyBeginAllowThreads();
21846 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21847
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 {
21852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21853 }
21854 {
21855 if (temp8)
21856 delete arg8;
21857 }
21858 return resultobj;
21859 fail:
21860 {
21861 if (temp8)
21862 delete arg8;
21863 }
21864 return NULL;
21865 }
21866
21867
21868 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21869 PyObject *resultobj;
21870 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21871 PyObject *arg2 = (PyObject *) 0 ;
21872 PyObject *arg3 = (PyObject *) 0 ;
21873 PyObject * obj0 = 0 ;
21874 PyObject * obj1 = 0 ;
21875 PyObject * obj2 = 0 ;
21876 char *kwnames[] = {
21877 (char *) "self",(char *) "self",(char *) "_class", NULL
21878 };
21879
21880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21883 arg2 = obj1;
21884 arg3 = obj2;
21885 {
21886 PyThreadState* __tstate = wxPyBeginAllowThreads();
21887 (arg1)->_setCallbackInfo(arg2,arg3);
21888
21889 wxPyEndAllowThreads(__tstate);
21890 if (PyErr_Occurred()) SWIG_fail;
21891 }
21892 Py_INCREF(Py_None); resultobj = Py_None;
21893 return resultobj;
21894 fail:
21895 return NULL;
21896 }
21897
21898
21899 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21900 PyObject *resultobj;
21901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21902 wxColour *arg2 = 0 ;
21903 bool result;
21904 wxColour temp2 ;
21905 PyObject * obj0 = 0 ;
21906 PyObject * obj1 = 0 ;
21907 char *kwnames[] = {
21908 (char *) "self",(char *) "col", NULL
21909 };
21910
21911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21914 {
21915 arg2 = &temp2;
21916 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21917 }
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 {
21926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21927 }
21928 return resultobj;
21929 fail:
21930 return NULL;
21931 }
21932
21933
21934 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21935 PyObject *resultobj;
21936 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21937 wxColour *arg2 = 0 ;
21938 bool result;
21939 wxColour temp2 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char *kwnames[] = {
21943 (char *) "self",(char *) "col", NULL
21944 };
21945
21946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21949 {
21950 arg2 = &temp2;
21951 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21952 }
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21956
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21962 }
21963 return resultobj;
21964 fail:
21965 return NULL;
21966 }
21967
21968
21969 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21970 PyObject *resultobj;
21971 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21972 int arg2 ;
21973 wxListItem *result;
21974 PyObject * obj0 = 0 ;
21975 PyObject * obj1 = 0 ;
21976 char *kwnames[] = {
21977 (char *) "self",(char *) "col", NULL
21978 };
21979
21980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21983 arg2 = (int)SWIG_As_int(obj1);
21984 if (PyErr_Occurred()) SWIG_fail;
21985 {
21986 PyThreadState* __tstate = wxPyBeginAllowThreads();
21987 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21988
21989 wxPyEndAllowThreads(__tstate);
21990 if (PyErr_Occurred()) SWIG_fail;
21991 }
21992 {
21993 resultobj = wxPyMake_wxObject(result, 0);
21994 }
21995 return resultobj;
21996 fail:
21997 return NULL;
21998 }
21999
22000
22001 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22002 PyObject *resultobj;
22003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22004 int arg2 ;
22005 wxListItem *arg3 = 0 ;
22006 bool result;
22007 PyObject * obj0 = 0 ;
22008 PyObject * obj1 = 0 ;
22009 PyObject * obj2 = 0 ;
22010 char *kwnames[] = {
22011 (char *) "self",(char *) "col",(char *) "item", NULL
22012 };
22013
22014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
22015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22017 arg2 = (int)SWIG_As_int(obj1);
22018 if (PyErr_Occurred()) SWIG_fail;
22019 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22020 SWIG_POINTER_EXCEPTION | 0)) == -1)
22021 SWIG_fail;
22022 if (arg3 == NULL) {
22023 PyErr_SetString(PyExc_TypeError,"null reference");
22024 SWIG_fail;
22025 }
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = (bool)(arg1)->SetColumn(arg2,*arg3);
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 {
22034 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22035 }
22036 return resultobj;
22037 fail:
22038 return NULL;
22039 }
22040
22041
22042 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22043 PyObject *resultobj;
22044 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22045 int arg2 ;
22046 int result;
22047 PyObject * obj0 = 0 ;
22048 PyObject * obj1 = 0 ;
22049 char *kwnames[] = {
22050 (char *) "self",(char *) "col", NULL
22051 };
22052
22053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
22054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22056 arg2 = (int)SWIG_As_int(obj1);
22057 if (PyErr_Occurred()) SWIG_fail;
22058 {
22059 PyThreadState* __tstate = wxPyBeginAllowThreads();
22060 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
22061
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 resultobj = SWIG_From_int((int)result);
22066 return resultobj;
22067 fail:
22068 return NULL;
22069 }
22070
22071
22072 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22073 PyObject *resultobj;
22074 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22075 int arg2 ;
22076 int arg3 ;
22077 bool result;
22078 PyObject * obj0 = 0 ;
22079 PyObject * obj1 = 0 ;
22080 PyObject * obj2 = 0 ;
22081 char *kwnames[] = {
22082 (char *) "self",(char *) "col",(char *) "width", NULL
22083 };
22084
22085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
22086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 arg2 = (int)SWIG_As_int(obj1);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 arg3 = (int)SWIG_As_int(obj2);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 {
22093 PyThreadState* __tstate = wxPyBeginAllowThreads();
22094 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
22095
22096 wxPyEndAllowThreads(__tstate);
22097 if (PyErr_Occurred()) SWIG_fail;
22098 }
22099 {
22100 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22101 }
22102 return resultobj;
22103 fail:
22104 return NULL;
22105 }
22106
22107
22108 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
22109 PyObject *resultobj;
22110 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22111 int result;
22112 PyObject * obj0 = 0 ;
22113 char *kwnames[] = {
22114 (char *) "self", NULL
22115 };
22116
22117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
22118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22120 {
22121 PyThreadState* __tstate = wxPyBeginAllowThreads();
22122 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
22123
22124 wxPyEndAllowThreads(__tstate);
22125 if (PyErr_Occurred()) SWIG_fail;
22126 }
22127 resultobj = SWIG_From_int((int)result);
22128 return resultobj;
22129 fail:
22130 return NULL;
22131 }
22132
22133
22134 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
22135 PyObject *resultobj;
22136 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22137 wxRect result;
22138 PyObject * obj0 = 0 ;
22139 char *kwnames[] = {
22140 (char *) "self", NULL
22141 };
22142
22143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
22144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
22149
22150 wxPyEndAllowThreads(__tstate);
22151 if (PyErr_Occurred()) SWIG_fail;
22152 }
22153 {
22154 wxRect * resultptr;
22155 resultptr = new wxRect((wxRect &) result);
22156 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22157 }
22158 return resultobj;
22159 fail:
22160 return NULL;
22161 }
22162
22163
22164 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
22165 PyObject *resultobj;
22166 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22167 wxTextCtrl *result;
22168 PyObject * obj0 = 0 ;
22169 char *kwnames[] = {
22170 (char *) "self", NULL
22171 };
22172
22173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
22174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
22179
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 {
22184 resultobj = wxPyMake_wxObject(result, 0);
22185 }
22186 return resultobj;
22187 fail:
22188 return NULL;
22189 }
22190
22191
22192 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22193 PyObject *resultobj;
22194 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22195 long arg2 ;
22196 int arg3 = (int) 0 ;
22197 wxListItem *result;
22198 PyObject * obj0 = 0 ;
22199 PyObject * obj1 = 0 ;
22200 PyObject * obj2 = 0 ;
22201 char *kwnames[] = {
22202 (char *) "self",(char *) "itemId",(char *) "col", NULL
22203 };
22204
22205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22208 arg2 = (long)SWIG_As_long(obj1);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 if (obj2) {
22211 arg3 = (int)SWIG_As_int(obj2);
22212 if (PyErr_Occurred()) SWIG_fail;
22213 }
22214 {
22215 PyThreadState* __tstate = wxPyBeginAllowThreads();
22216 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
22217
22218 wxPyEndAllowThreads(__tstate);
22219 if (PyErr_Occurred()) SWIG_fail;
22220 }
22221 {
22222 resultobj = wxPyMake_wxObject(result, 0);
22223 }
22224 return resultobj;
22225 fail:
22226 return NULL;
22227 }
22228
22229
22230 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22231 PyObject *resultobj;
22232 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22233 wxListItem *arg2 = 0 ;
22234 bool result;
22235 PyObject * obj0 = 0 ;
22236 PyObject * obj1 = 0 ;
22237 char *kwnames[] = {
22238 (char *) "self",(char *) "info", NULL
22239 };
22240
22241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
22242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22244 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22245 SWIG_POINTER_EXCEPTION | 0)) == -1)
22246 SWIG_fail;
22247 if (arg2 == NULL) {
22248 PyErr_SetString(PyExc_TypeError,"null reference");
22249 SWIG_fail;
22250 }
22251 {
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = (bool)(arg1)->SetItem(*arg2);
22254
22255 wxPyEndAllowThreads(__tstate);
22256 if (PyErr_Occurred()) SWIG_fail;
22257 }
22258 {
22259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22260 }
22261 return resultobj;
22262 fail:
22263 return NULL;
22264 }
22265
22266
22267 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
22268 PyObject *resultobj;
22269 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22270 long arg2 ;
22271 int arg3 ;
22272 wxString *arg4 = 0 ;
22273 int arg5 = (int) -1 ;
22274 long result;
22275 bool temp4 = false ;
22276 PyObject * obj0 = 0 ;
22277 PyObject * obj1 = 0 ;
22278 PyObject * obj2 = 0 ;
22279 PyObject * obj3 = 0 ;
22280 PyObject * obj4 = 0 ;
22281 char *kwnames[] = {
22282 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
22283 };
22284
22285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22288 arg2 = (long)SWIG_As_long(obj1);
22289 if (PyErr_Occurred()) SWIG_fail;
22290 arg3 = (int)SWIG_As_int(obj2);
22291 if (PyErr_Occurred()) SWIG_fail;
22292 {
22293 arg4 = wxString_in_helper(obj3);
22294 if (arg4 == NULL) SWIG_fail;
22295 temp4 = true;
22296 }
22297 if (obj4) {
22298 arg5 = (int)SWIG_As_int(obj4);
22299 if (PyErr_Occurred()) SWIG_fail;
22300 }
22301 {
22302 PyThreadState* __tstate = wxPyBeginAllowThreads();
22303 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
22304
22305 wxPyEndAllowThreads(__tstate);
22306 if (PyErr_Occurred()) SWIG_fail;
22307 }
22308 resultobj = SWIG_From_long((long)result);
22309 {
22310 if (temp4)
22311 delete arg4;
22312 }
22313 return resultobj;
22314 fail:
22315 {
22316 if (temp4)
22317 delete arg4;
22318 }
22319 return NULL;
22320 }
22321
22322
22323 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22324 PyObject *resultobj;
22325 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22326 long arg2 ;
22327 long arg3 ;
22328 int result;
22329 PyObject * obj0 = 0 ;
22330 PyObject * obj1 = 0 ;
22331 PyObject * obj2 = 0 ;
22332 char *kwnames[] = {
22333 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22334 };
22335
22336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22339 arg2 = (long)SWIG_As_long(obj1);
22340 if (PyErr_Occurred()) SWIG_fail;
22341 arg3 = (long)SWIG_As_long(obj2);
22342 if (PyErr_Occurred()) SWIG_fail;
22343 {
22344 PyThreadState* __tstate = wxPyBeginAllowThreads();
22345 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22346
22347 wxPyEndAllowThreads(__tstate);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 }
22350 resultobj = SWIG_From_int((int)result);
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22360 long arg2 ;
22361 long arg3 ;
22362 long arg4 ;
22363 bool result;
22364 PyObject * obj0 = 0 ;
22365 PyObject * obj1 = 0 ;
22366 PyObject * obj2 = 0 ;
22367 PyObject * obj3 = 0 ;
22368 char *kwnames[] = {
22369 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22370 };
22371
22372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22375 arg2 = (long)SWIG_As_long(obj1);
22376 if (PyErr_Occurred()) SWIG_fail;
22377 arg3 = (long)SWIG_As_long(obj2);
22378 if (PyErr_Occurred()) SWIG_fail;
22379 arg4 = (long)SWIG_As_long(obj3);
22380 if (PyErr_Occurred()) SWIG_fail;
22381 {
22382 PyThreadState* __tstate = wxPyBeginAllowThreads();
22383 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22384
22385 wxPyEndAllowThreads(__tstate);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 }
22388 {
22389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22390 }
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj;
22399 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22400 long arg2 ;
22401 int arg3 ;
22402 int arg4 = (int) -1 ;
22403 bool result;
22404 PyObject * obj0 = 0 ;
22405 PyObject * obj1 = 0 ;
22406 PyObject * obj2 = 0 ;
22407 PyObject * obj3 = 0 ;
22408 char *kwnames[] = {
22409 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22410 };
22411
22412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22415 arg2 = (long)SWIG_As_long(obj1);
22416 if (PyErr_Occurred()) SWIG_fail;
22417 arg3 = (int)SWIG_As_int(obj2);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 if (obj3) {
22420 arg4 = (int)SWIG_As_int(obj3);
22421 if (PyErr_Occurred()) SWIG_fail;
22422 }
22423 {
22424 PyThreadState* __tstate = wxPyBeginAllowThreads();
22425 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22426
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 {
22431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22432 }
22433 return resultobj;
22434 fail:
22435 return NULL;
22436 }
22437
22438
22439 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22440 PyObject *resultobj;
22441 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22442 long arg2 ;
22443 wxString result;
22444 PyObject * obj0 = 0 ;
22445 PyObject * obj1 = 0 ;
22446 char *kwnames[] = {
22447 (char *) "self",(char *) "item", NULL
22448 };
22449
22450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22453 arg2 = (long)SWIG_As_long(obj1);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 {
22456 PyThreadState* __tstate = wxPyBeginAllowThreads();
22457 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22458
22459 wxPyEndAllowThreads(__tstate);
22460 if (PyErr_Occurred()) SWIG_fail;
22461 }
22462 {
22463 #if wxUSE_UNICODE
22464 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22465 #else
22466 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22467 #endif
22468 }
22469 return resultobj;
22470 fail:
22471 return NULL;
22472 }
22473
22474
22475 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22476 PyObject *resultobj;
22477 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22478 long arg2 ;
22479 wxString *arg3 = 0 ;
22480 bool temp3 = false ;
22481 PyObject * obj0 = 0 ;
22482 PyObject * obj1 = 0 ;
22483 PyObject * obj2 = 0 ;
22484 char *kwnames[] = {
22485 (char *) "self",(char *) "item",(char *) "str", NULL
22486 };
22487
22488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22491 arg2 = (long)SWIG_As_long(obj1);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 {
22494 arg3 = wxString_in_helper(obj2);
22495 if (arg3 == NULL) SWIG_fail;
22496 temp3 = true;
22497 }
22498 {
22499 PyThreadState* __tstate = wxPyBeginAllowThreads();
22500 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22501
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 Py_INCREF(Py_None); resultobj = Py_None;
22506 {
22507 if (temp3)
22508 delete arg3;
22509 }
22510 return resultobj;
22511 fail:
22512 {
22513 if (temp3)
22514 delete arg3;
22515 }
22516 return NULL;
22517 }
22518
22519
22520 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22521 PyObject *resultobj;
22522 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22523 long arg2 ;
22524 long result;
22525 PyObject * obj0 = 0 ;
22526 PyObject * obj1 = 0 ;
22527 char *kwnames[] = {
22528 (char *) "self",(char *) "item", NULL
22529 };
22530
22531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22534 arg2 = (long)SWIG_As_long(obj1);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22539
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_From_long((long)result);
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj;
22552 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22553 long arg2 ;
22554 long arg3 ;
22555 bool result;
22556 PyObject * obj0 = 0 ;
22557 PyObject * obj1 = 0 ;
22558 PyObject * obj2 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self",(char *) "item",(char *) "data", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 arg2 = (long)SWIG_As_long(obj1);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 arg3 = (long)SWIG_As_long(obj2);
22569 if (PyErr_Occurred()) SWIG_fail;
22570 {
22571 PyThreadState* __tstate = wxPyBeginAllowThreads();
22572 result = (bool)(arg1)->SetItemData(arg2,arg3);
22573
22574 wxPyEndAllowThreads(__tstate);
22575 if (PyErr_Occurred()) SWIG_fail;
22576 }
22577 {
22578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22579 }
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22587 PyObject *resultobj;
22588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22589 long arg2 ;
22590 wxPoint result;
22591 PyObject * obj0 = 0 ;
22592 PyObject * obj1 = 0 ;
22593 char *kwnames[] = {
22594 (char *) "self",(char *) "item", NULL
22595 };
22596
22597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22600 arg2 = (long)SWIG_As_long(obj1);
22601 if (PyErr_Occurred()) SWIG_fail;
22602 {
22603 PyThreadState* __tstate = wxPyBeginAllowThreads();
22604 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22605
22606 wxPyEndAllowThreads(__tstate);
22607 if (PyErr_Occurred()) SWIG_fail;
22608 }
22609 {
22610 wxPoint * resultptr;
22611 resultptr = new wxPoint((wxPoint &) result);
22612 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22613 }
22614 return resultobj;
22615 fail:
22616 return NULL;
22617 }
22618
22619
22620 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22621 PyObject *resultobj;
22622 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22623 long arg2 ;
22624 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22625 wxRect result;
22626 PyObject * obj0 = 0 ;
22627 PyObject * obj1 = 0 ;
22628 PyObject * obj2 = 0 ;
22629 char *kwnames[] = {
22630 (char *) "self",(char *) "item",(char *) "code", NULL
22631 };
22632
22633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22636 arg2 = (long)SWIG_As_long(obj1);
22637 if (PyErr_Occurred()) SWIG_fail;
22638 if (obj2) {
22639 arg3 = (int)SWIG_As_int(obj2);
22640 if (PyErr_Occurred()) SWIG_fail;
22641 }
22642 {
22643 PyThreadState* __tstate = wxPyBeginAllowThreads();
22644 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22645
22646 wxPyEndAllowThreads(__tstate);
22647 if (PyErr_Occurred()) SWIG_fail;
22648 }
22649 {
22650 wxRect * resultptr;
22651 resultptr = new wxRect((wxRect &) result);
22652 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22653 }
22654 return resultobj;
22655 fail:
22656 return NULL;
22657 }
22658
22659
22660 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22661 PyObject *resultobj;
22662 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22663 long arg2 ;
22664 wxPoint *arg3 = 0 ;
22665 bool result;
22666 wxPoint temp3 ;
22667 PyObject * obj0 = 0 ;
22668 PyObject * obj1 = 0 ;
22669 PyObject * obj2 = 0 ;
22670 char *kwnames[] = {
22671 (char *) "self",(char *) "item",(char *) "pos", NULL
22672 };
22673
22674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22677 arg2 = (long)SWIG_As_long(obj1);
22678 if (PyErr_Occurred()) SWIG_fail;
22679 {
22680 arg3 = &temp3;
22681 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22682 }
22683 {
22684 PyThreadState* __tstate = wxPyBeginAllowThreads();
22685 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22686
22687 wxPyEndAllowThreads(__tstate);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 }
22690 {
22691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22692 }
22693 return resultobj;
22694 fail:
22695 return NULL;
22696 }
22697
22698
22699 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22700 PyObject *resultobj;
22701 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22702 int result;
22703 PyObject * obj0 = 0 ;
22704 char *kwnames[] = {
22705 (char *) "self", NULL
22706 };
22707
22708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22711 {
22712 PyThreadState* __tstate = wxPyBeginAllowThreads();
22713 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22714
22715 wxPyEndAllowThreads(__tstate);
22716 if (PyErr_Occurred()) SWIG_fail;
22717 }
22718 resultobj = SWIG_From_int((int)result);
22719 return resultobj;
22720 fail:
22721 return NULL;
22722 }
22723
22724
22725 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22726 PyObject *resultobj;
22727 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22728 int result;
22729 PyObject * obj0 = 0 ;
22730 char *kwnames[] = {
22731 (char *) "self", NULL
22732 };
22733
22734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22737 {
22738 PyThreadState* __tstate = wxPyBeginAllowThreads();
22739 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22740
22741 wxPyEndAllowThreads(__tstate);
22742 if (PyErr_Occurred()) SWIG_fail;
22743 }
22744 resultobj = SWIG_From_int((int)result);
22745 return resultobj;
22746 fail:
22747 return NULL;
22748 }
22749
22750
22751 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22752 PyObject *resultobj;
22753 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22754 wxSize result;
22755 PyObject * obj0 = 0 ;
22756 char *kwnames[] = {
22757 (char *) "self", NULL
22758 };
22759
22760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22763 {
22764 PyThreadState* __tstate = wxPyBeginAllowThreads();
22765 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22766
22767 wxPyEndAllowThreads(__tstate);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 {
22771 wxSize * resultptr;
22772 resultptr = new wxSize((wxSize &) result);
22773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22774 }
22775 return resultobj;
22776 fail:
22777 return NULL;
22778 }
22779
22780
22781 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22782 PyObject *resultobj;
22783 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22784 int result;
22785 PyObject * obj0 = 0 ;
22786 char *kwnames[] = {
22787 (char *) "self", NULL
22788 };
22789
22790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22793 {
22794 PyThreadState* __tstate = wxPyBeginAllowThreads();
22795 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22796
22797 wxPyEndAllowThreads(__tstate);
22798 if (PyErr_Occurred()) SWIG_fail;
22799 }
22800 resultobj = SWIG_From_int((int)result);
22801 return resultobj;
22802 fail:
22803 return NULL;
22804 }
22805
22806
22807 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22808 PyObject *resultobj;
22809 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22810 wxColour result;
22811 PyObject * obj0 = 0 ;
22812 char *kwnames[] = {
22813 (char *) "self", NULL
22814 };
22815
22816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22822
22823 wxPyEndAllowThreads(__tstate);
22824 if (PyErr_Occurred()) SWIG_fail;
22825 }
22826 {
22827 wxColour * resultptr;
22828 resultptr = new wxColour((wxColour &) result);
22829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22830 }
22831 return resultobj;
22832 fail:
22833 return NULL;
22834 }
22835
22836
22837 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22838 PyObject *resultobj;
22839 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22840 wxColour *arg2 = 0 ;
22841 wxColour temp2 ;
22842 PyObject * obj0 = 0 ;
22843 PyObject * obj1 = 0 ;
22844 char *kwnames[] = {
22845 (char *) "self",(char *) "col", NULL
22846 };
22847
22848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22851 {
22852 arg2 = &temp2;
22853 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22854 }
22855 {
22856 PyThreadState* __tstate = wxPyBeginAllowThreads();
22857 (arg1)->SetTextColour((wxColour const &)*arg2);
22858
22859 wxPyEndAllowThreads(__tstate);
22860 if (PyErr_Occurred()) SWIG_fail;
22861 }
22862 Py_INCREF(Py_None); resultobj = Py_None;
22863 return resultobj;
22864 fail:
22865 return NULL;
22866 }
22867
22868
22869 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22870 PyObject *resultobj;
22871 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22872 long result;
22873 PyObject * obj0 = 0 ;
22874 char *kwnames[] = {
22875 (char *) "self", NULL
22876 };
22877
22878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22881 {
22882 PyThreadState* __tstate = wxPyBeginAllowThreads();
22883 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22884
22885 wxPyEndAllowThreads(__tstate);
22886 if (PyErr_Occurred()) SWIG_fail;
22887 }
22888 resultobj = SWIG_From_long((long)result);
22889 return resultobj;
22890 fail:
22891 return NULL;
22892 }
22893
22894
22895 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22896 PyObject *resultobj;
22897 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22898 long arg2 ;
22899 bool arg3 = (bool) true ;
22900 PyObject * obj0 = 0 ;
22901 PyObject * obj1 = 0 ;
22902 PyObject * obj2 = 0 ;
22903 char *kwnames[] = {
22904 (char *) "self",(char *) "style",(char *) "add", NULL
22905 };
22906
22907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22910 arg2 = (long)SWIG_As_long(obj1);
22911 if (PyErr_Occurred()) SWIG_fail;
22912 if (obj2) {
22913 arg3 = (bool)SWIG_As_bool(obj2);
22914 if (PyErr_Occurred()) SWIG_fail;
22915 }
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 (arg1)->SetSingleStyle(arg2,arg3);
22919
22920 wxPyEndAllowThreads(__tstate);
22921 if (PyErr_Occurred()) SWIG_fail;
22922 }
22923 Py_INCREF(Py_None); resultobj = Py_None;
22924 return resultobj;
22925 fail:
22926 return NULL;
22927 }
22928
22929
22930 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22931 PyObject *resultobj;
22932 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22933 long arg2 ;
22934 PyObject * obj0 = 0 ;
22935 PyObject * obj1 = 0 ;
22936 char *kwnames[] = {
22937 (char *) "self",(char *) "style", NULL
22938 };
22939
22940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22943 arg2 = (long)SWIG_As_long(obj1);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 {
22946 PyThreadState* __tstate = wxPyBeginAllowThreads();
22947 (arg1)->SetWindowStyleFlag(arg2);
22948
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 Py_INCREF(Py_None); resultobj = Py_None;
22953 return resultobj;
22954 fail:
22955 return NULL;
22956 }
22957
22958
22959 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22960 PyObject *resultobj;
22961 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22962 long arg2 ;
22963 int arg3 = (int) wxLIST_NEXT_ALL ;
22964 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22965 long result;
22966 PyObject * obj0 = 0 ;
22967 PyObject * obj1 = 0 ;
22968 PyObject * obj2 = 0 ;
22969 PyObject * obj3 = 0 ;
22970 char *kwnames[] = {
22971 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22972 };
22973
22974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22977 arg2 = (long)SWIG_As_long(obj1);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 if (obj2) {
22980 arg3 = (int)SWIG_As_int(obj2);
22981 if (PyErr_Occurred()) SWIG_fail;
22982 }
22983 if (obj3) {
22984 arg4 = (int)SWIG_As_int(obj3);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 {
22988 PyThreadState* __tstate = wxPyBeginAllowThreads();
22989 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22990
22991 wxPyEndAllowThreads(__tstate);
22992 if (PyErr_Occurred()) SWIG_fail;
22993 }
22994 resultobj = SWIG_From_long((long)result);
22995 return resultobj;
22996 fail:
22997 return NULL;
22998 }
22999
23000
23001 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23002 PyObject *resultobj;
23003 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23004 int arg2 ;
23005 wxImageList *result;
23006 PyObject * obj0 = 0 ;
23007 PyObject * obj1 = 0 ;
23008 char *kwnames[] = {
23009 (char *) "self",(char *) "which", NULL
23010 };
23011
23012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
23013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23015 arg2 = (int)SWIG_As_int(obj1);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 {
23018 PyThreadState* __tstate = wxPyBeginAllowThreads();
23019 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
23020
23021 wxPyEndAllowThreads(__tstate);
23022 if (PyErr_Occurred()) SWIG_fail;
23023 }
23024 {
23025 resultobj = wxPyMake_wxObject(result, 0);
23026 }
23027 return resultobj;
23028 fail:
23029 return NULL;
23030 }
23031
23032
23033 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23034 PyObject *resultobj;
23035 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23036 wxImageList *arg2 = (wxImageList *) 0 ;
23037 int arg3 ;
23038 PyObject * obj0 = 0 ;
23039 PyObject * obj1 = 0 ;
23040 PyObject * obj2 = 0 ;
23041 char *kwnames[] = {
23042 (char *) "self",(char *) "imageList",(char *) "which", NULL
23043 };
23044
23045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23048 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23050 arg3 = (int)SWIG_As_int(obj2);
23051 if (PyErr_Occurred()) SWIG_fail;
23052 {
23053 PyThreadState* __tstate = wxPyBeginAllowThreads();
23054 (arg1)->SetImageList(arg2,arg3);
23055
23056 wxPyEndAllowThreads(__tstate);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 }
23059 Py_INCREF(Py_None); resultobj = Py_None;
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23067 PyObject *resultobj;
23068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23069 wxImageList *arg2 = (wxImageList *) 0 ;
23070 int arg3 ;
23071 PyObject * obj0 = 0 ;
23072 PyObject * obj1 = 0 ;
23073 PyObject * obj2 = 0 ;
23074 char *kwnames[] = {
23075 (char *) "self",(char *) "imageList",(char *) "which", NULL
23076 };
23077
23078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23082 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23083 arg3 = (int)SWIG_As_int(obj2);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 (arg1)->AssignImageList(arg2,arg3);
23088
23089 wxPyEndAllowThreads(__tstate);
23090 if (PyErr_Occurred()) SWIG_fail;
23091 }
23092 Py_INCREF(Py_None); resultobj = Py_None;
23093 return resultobj;
23094 fail:
23095 return NULL;
23096 }
23097
23098
23099 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
23100 PyObject *resultobj;
23101 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23102 bool result;
23103 PyObject * obj0 = 0 ;
23104 char *kwnames[] = {
23105 (char *) "self", NULL
23106 };
23107
23108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
23109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
23114
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 {
23119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23120 }
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj;
23129 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23130 bool result;
23131 PyObject * obj0 = 0 ;
23132 char *kwnames[] = {
23133 (char *) "self", NULL
23134 };
23135
23136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
23137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23139 {
23140 PyThreadState* __tstate = wxPyBeginAllowThreads();
23141 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
23142
23143 wxPyEndAllowThreads(__tstate);
23144 if (PyErr_Occurred()) SWIG_fail;
23145 }
23146 {
23147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23148 }
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
23156 PyObject *resultobj;
23157 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23158 long arg2 ;
23159 PyObject * obj0 = 0 ;
23160 PyObject * obj1 = 0 ;
23161 char *kwnames[] = {
23162 (char *) "self",(char *) "item", NULL
23163 };
23164
23165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
23166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23168 arg2 = (long)SWIG_As_long(obj1);
23169 if (PyErr_Occurred()) SWIG_fail;
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 (arg1)->RefreshItem(arg2);
23173
23174 wxPyEndAllowThreads(__tstate);
23175 if (PyErr_Occurred()) SWIG_fail;
23176 }
23177 Py_INCREF(Py_None); resultobj = Py_None;
23178 return resultobj;
23179 fail:
23180 return NULL;
23181 }
23182
23183
23184 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
23185 PyObject *resultobj;
23186 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23187 long arg2 ;
23188 long arg3 ;
23189 PyObject * obj0 = 0 ;
23190 PyObject * obj1 = 0 ;
23191 PyObject * obj2 = 0 ;
23192 char *kwnames[] = {
23193 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
23194 };
23195
23196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
23197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23199 arg2 = (long)SWIG_As_long(obj1);
23200 if (PyErr_Occurred()) SWIG_fail;
23201 arg3 = (long)SWIG_As_long(obj2);
23202 if (PyErr_Occurred()) SWIG_fail;
23203 {
23204 PyThreadState* __tstate = wxPyBeginAllowThreads();
23205 (arg1)->RefreshItems(arg2,arg3);
23206
23207 wxPyEndAllowThreads(__tstate);
23208 if (PyErr_Occurred()) SWIG_fail;
23209 }
23210 Py_INCREF(Py_None); resultobj = Py_None;
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23220 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
23221 bool result;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "flag", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
23229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23231 if (obj1) {
23232 arg2 = (int)SWIG_As_int(obj1);
23233 if (PyErr_Occurred()) SWIG_fail;
23234 }
23235 {
23236 PyThreadState* __tstate = wxPyBeginAllowThreads();
23237 result = (bool)(arg1)->Arrange(arg2);
23238
23239 wxPyEndAllowThreads(__tstate);
23240 if (PyErr_Occurred()) SWIG_fail;
23241 }
23242 {
23243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23244 }
23245 return resultobj;
23246 fail:
23247 return NULL;
23248 }
23249
23250
23251 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
23252 PyObject *resultobj;
23253 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23254 long arg2 ;
23255 bool result;
23256 PyObject * obj0 = 0 ;
23257 PyObject * obj1 = 0 ;
23258 char *kwnames[] = {
23259 (char *) "self",(char *) "item", NULL
23260 };
23261
23262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
23263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23265 arg2 = (long)SWIG_As_long(obj1);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 {
23268 PyThreadState* __tstate = wxPyBeginAllowThreads();
23269 result = (bool)(arg1)->DeleteItem(arg2);
23270
23271 wxPyEndAllowThreads(__tstate);
23272 if (PyErr_Occurred()) SWIG_fail;
23273 }
23274 {
23275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23276 }
23277 return resultobj;
23278 fail:
23279 return NULL;
23280 }
23281
23282
23283 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
23284 PyObject *resultobj;
23285 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23286 bool result;
23287 PyObject * obj0 = 0 ;
23288 char *kwnames[] = {
23289 (char *) "self", NULL
23290 };
23291
23292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
23293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 result = (bool)(arg1)->DeleteAllItems();
23298
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 {
23303 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23304 }
23305 return resultobj;
23306 fail:
23307 return NULL;
23308 }
23309
23310
23311 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23312 PyObject *resultobj;
23313 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23314 int arg2 ;
23315 bool result;
23316 PyObject * obj0 = 0 ;
23317 PyObject * obj1 = 0 ;
23318 char *kwnames[] = {
23319 (char *) "self",(char *) "col", NULL
23320 };
23321
23322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
23323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23325 arg2 = (int)SWIG_As_int(obj1);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 {
23328 PyThreadState* __tstate = wxPyBeginAllowThreads();
23329 result = (bool)(arg1)->DeleteColumn(arg2);
23330
23331 wxPyEndAllowThreads(__tstate);
23332 if (PyErr_Occurred()) SWIG_fail;
23333 }
23334 {
23335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23336 }
23337 return resultobj;
23338 fail:
23339 return NULL;
23340 }
23341
23342
23343 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23344 PyObject *resultobj;
23345 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23346 bool result;
23347 PyObject * obj0 = 0 ;
23348 char *kwnames[] = {
23349 (char *) "self", NULL
23350 };
23351
23352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
23353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23355 {
23356 PyThreadState* __tstate = wxPyBeginAllowThreads();
23357 result = (bool)(arg1)->DeleteAllColumns();
23358
23359 wxPyEndAllowThreads(__tstate);
23360 if (PyErr_Occurred()) SWIG_fail;
23361 }
23362 {
23363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23364 }
23365 return resultobj;
23366 fail:
23367 return NULL;
23368 }
23369
23370
23371 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj;
23373 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23374 PyObject * obj0 = 0 ;
23375 char *kwnames[] = {
23376 (char *) "self", NULL
23377 };
23378
23379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23382 {
23383 PyThreadState* __tstate = wxPyBeginAllowThreads();
23384 (arg1)->ClearAll();
23385
23386 wxPyEndAllowThreads(__tstate);
23387 if (PyErr_Occurred()) SWIG_fail;
23388 }
23389 Py_INCREF(Py_None); resultobj = Py_None;
23390 return resultobj;
23391 fail:
23392 return NULL;
23393 }
23394
23395
23396 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23397 PyObject *resultobj;
23398 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23399 long arg2 ;
23400 wxTextCtrl *result;
23401 PyObject * obj0 = 0 ;
23402 PyObject * obj1 = 0 ;
23403 char *kwnames[] = {
23404 (char *) "self",(char *) "item", NULL
23405 };
23406
23407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23410 arg2 = (long)SWIG_As_long(obj1);
23411 if (PyErr_Occurred()) SWIG_fail;
23412 {
23413 PyThreadState* __tstate = wxPyBeginAllowThreads();
23414 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
23415
23416 wxPyEndAllowThreads(__tstate);
23417 if (PyErr_Occurred()) SWIG_fail;
23418 }
23419 {
23420 resultobj = wxPyMake_wxObject(result, 0);
23421 }
23422 return resultobj;
23423 fail:
23424 return NULL;
23425 }
23426
23427
23428 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23429 PyObject *resultobj;
23430 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23431 bool arg2 ;
23432 bool result;
23433 PyObject * obj0 = 0 ;
23434 PyObject * obj1 = 0 ;
23435 char *kwnames[] = {
23436 (char *) "self",(char *) "cancel", NULL
23437 };
23438
23439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
23440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23442 arg2 = (bool)SWIG_As_bool(obj1);
23443 if (PyErr_Occurred()) SWIG_fail;
23444 {
23445 PyThreadState* __tstate = wxPyBeginAllowThreads();
23446 result = (bool)(arg1)->EndEditLabel(arg2);
23447
23448 wxPyEndAllowThreads(__tstate);
23449 if (PyErr_Occurred()) SWIG_fail;
23450 }
23451 {
23452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23453 }
23454 return resultobj;
23455 fail:
23456 return NULL;
23457 }
23458
23459
23460 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23461 PyObject *resultobj;
23462 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23463 long arg2 ;
23464 bool result;
23465 PyObject * obj0 = 0 ;
23466 PyObject * obj1 = 0 ;
23467 char *kwnames[] = {
23468 (char *) "self",(char *) "item", NULL
23469 };
23470
23471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23474 arg2 = (long)SWIG_As_long(obj1);
23475 if (PyErr_Occurred()) SWIG_fail;
23476 {
23477 PyThreadState* __tstate = wxPyBeginAllowThreads();
23478 result = (bool)(arg1)->EnsureVisible(arg2);
23479
23480 wxPyEndAllowThreads(__tstate);
23481 if (PyErr_Occurred()) SWIG_fail;
23482 }
23483 {
23484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23485 }
23486 return resultobj;
23487 fail:
23488 return NULL;
23489 }
23490
23491
23492 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23493 PyObject *resultobj;
23494 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23495 long arg2 ;
23496 wxString *arg3 = 0 ;
23497 bool arg4 = (bool) false ;
23498 long result;
23499 bool temp3 = false ;
23500 PyObject * obj0 = 0 ;
23501 PyObject * obj1 = 0 ;
23502 PyObject * obj2 = 0 ;
23503 PyObject * obj3 = 0 ;
23504 char *kwnames[] = {
23505 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23506 };
23507
23508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23511 arg2 = (long)SWIG_As_long(obj1);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 {
23514 arg3 = wxString_in_helper(obj2);
23515 if (arg3 == NULL) SWIG_fail;
23516 temp3 = true;
23517 }
23518 if (obj3) {
23519 arg4 = (bool)SWIG_As_bool(obj3);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 {
23523 PyThreadState* __tstate = wxPyBeginAllowThreads();
23524 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23525
23526 wxPyEndAllowThreads(__tstate);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 }
23529 resultobj = SWIG_From_long((long)result);
23530 {
23531 if (temp3)
23532 delete arg3;
23533 }
23534 return resultobj;
23535 fail:
23536 {
23537 if (temp3)
23538 delete arg3;
23539 }
23540 return NULL;
23541 }
23542
23543
23544 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23547 long arg2 ;
23548 long arg3 ;
23549 long result;
23550 PyObject * obj0 = 0 ;
23551 PyObject * obj1 = 0 ;
23552 PyObject * obj2 = 0 ;
23553 char *kwnames[] = {
23554 (char *) "self",(char *) "start",(char *) "data", NULL
23555 };
23556
23557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23560 arg2 = (long)SWIG_As_long(obj1);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 arg3 = (long)SWIG_As_long(obj2);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 {
23565 PyThreadState* __tstate = wxPyBeginAllowThreads();
23566 result = (long)(arg1)->FindItem(arg2,arg3);
23567
23568 wxPyEndAllowThreads(__tstate);
23569 if (PyErr_Occurred()) SWIG_fail;
23570 }
23571 resultobj = SWIG_From_long((long)result);
23572 return resultobj;
23573 fail:
23574 return NULL;
23575 }
23576
23577
23578 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23579 PyObject *resultobj;
23580 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23581 long arg2 ;
23582 wxPoint *arg3 = 0 ;
23583 int arg4 ;
23584 long result;
23585 wxPoint temp3 ;
23586 PyObject * obj0 = 0 ;
23587 PyObject * obj1 = 0 ;
23588 PyObject * obj2 = 0 ;
23589 PyObject * obj3 = 0 ;
23590 char *kwnames[] = {
23591 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23592 };
23593
23594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23597 arg2 = (long)SWIG_As_long(obj1);
23598 if (PyErr_Occurred()) SWIG_fail;
23599 {
23600 arg3 = &temp3;
23601 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23602 }
23603 arg4 = (int)SWIG_As_int(obj3);
23604 if (PyErr_Occurred()) SWIG_fail;
23605 {
23606 PyThreadState* __tstate = wxPyBeginAllowThreads();
23607 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23608
23609 wxPyEndAllowThreads(__tstate);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 resultobj = SWIG_From_long((long)result);
23613 return resultobj;
23614 fail:
23615 return NULL;
23616 }
23617
23618
23619 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23620 PyObject *resultobj;
23621 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23622 wxPoint *arg2 = 0 ;
23623 int *arg3 = 0 ;
23624 long result;
23625 wxPoint temp2 ;
23626 int temp3 ;
23627 int res3 = 0 ;
23628 PyObject * obj0 = 0 ;
23629 PyObject * obj1 = 0 ;
23630 char *kwnames[] = {
23631 (char *) "self",(char *) "point", NULL
23632 };
23633
23634 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23638 {
23639 arg2 = &temp2;
23640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23641 }
23642 {
23643 PyThreadState* __tstate = wxPyBeginAllowThreads();
23644 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23645
23646 wxPyEndAllowThreads(__tstate);
23647 if (PyErr_Occurred()) SWIG_fail;
23648 }
23649 resultobj = SWIG_From_long((long)result);
23650 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23651 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23652 return resultobj;
23653 fail:
23654 return NULL;
23655 }
23656
23657
23658 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23659 PyObject *resultobj;
23660 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23661 wxListItem *arg2 = 0 ;
23662 long result;
23663 PyObject * obj0 = 0 ;
23664 PyObject * obj1 = 0 ;
23665 char *kwnames[] = {
23666 (char *) "self",(char *) "info", NULL
23667 };
23668
23669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23672 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23673 SWIG_POINTER_EXCEPTION | 0)) == -1)
23674 SWIG_fail;
23675 if (arg2 == NULL) {
23676 PyErr_SetString(PyExc_TypeError,"null reference");
23677 SWIG_fail;
23678 }
23679 {
23680 PyThreadState* __tstate = wxPyBeginAllowThreads();
23681 result = (long)(arg1)->InsertItem(*arg2);
23682
23683 wxPyEndAllowThreads(__tstate);
23684 if (PyErr_Occurred()) SWIG_fail;
23685 }
23686 resultobj = SWIG_From_long((long)result);
23687 return resultobj;
23688 fail:
23689 return NULL;
23690 }
23691
23692
23693 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23694 PyObject *resultobj;
23695 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23696 long arg2 ;
23697 wxString *arg3 = 0 ;
23698 long result;
23699 bool temp3 = false ;
23700 PyObject * obj0 = 0 ;
23701 PyObject * obj1 = 0 ;
23702 PyObject * obj2 = 0 ;
23703 char *kwnames[] = {
23704 (char *) "self",(char *) "index",(char *) "label", NULL
23705 };
23706
23707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23710 arg2 = (long)SWIG_As_long(obj1);
23711 if (PyErr_Occurred()) SWIG_fail;
23712 {
23713 arg3 = wxString_in_helper(obj2);
23714 if (arg3 == NULL) SWIG_fail;
23715 temp3 = true;
23716 }
23717 {
23718 PyThreadState* __tstate = wxPyBeginAllowThreads();
23719 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23720
23721 wxPyEndAllowThreads(__tstate);
23722 if (PyErr_Occurred()) SWIG_fail;
23723 }
23724 resultobj = SWIG_From_long((long)result);
23725 {
23726 if (temp3)
23727 delete arg3;
23728 }
23729 return resultobj;
23730 fail:
23731 {
23732 if (temp3)
23733 delete arg3;
23734 }
23735 return NULL;
23736 }
23737
23738
23739 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj;
23741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23742 long arg2 ;
23743 int arg3 ;
23744 long result;
23745 PyObject * obj0 = 0 ;
23746 PyObject * obj1 = 0 ;
23747 PyObject * obj2 = 0 ;
23748 char *kwnames[] = {
23749 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23750 };
23751
23752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23755 arg2 = (long)SWIG_As_long(obj1);
23756 if (PyErr_Occurred()) SWIG_fail;
23757 arg3 = (int)SWIG_As_int(obj2);
23758 if (PyErr_Occurred()) SWIG_fail;
23759 {
23760 PyThreadState* __tstate = wxPyBeginAllowThreads();
23761 result = (long)(arg1)->InsertItem(arg2,arg3);
23762
23763 wxPyEndAllowThreads(__tstate);
23764 if (PyErr_Occurred()) SWIG_fail;
23765 }
23766 resultobj = SWIG_From_long((long)result);
23767 return resultobj;
23768 fail:
23769 return NULL;
23770 }
23771
23772
23773 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23774 PyObject *resultobj;
23775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23776 long arg2 ;
23777 wxString *arg3 = 0 ;
23778 int arg4 ;
23779 long result;
23780 bool temp3 = false ;
23781 PyObject * obj0 = 0 ;
23782 PyObject * obj1 = 0 ;
23783 PyObject * obj2 = 0 ;
23784 PyObject * obj3 = 0 ;
23785 char *kwnames[] = {
23786 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23787 };
23788
23789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23792 arg2 = (long)SWIG_As_long(obj1);
23793 if (PyErr_Occurred()) SWIG_fail;
23794 {
23795 arg3 = wxString_in_helper(obj2);
23796 if (arg3 == NULL) SWIG_fail;
23797 temp3 = true;
23798 }
23799 arg4 = (int)SWIG_As_int(obj3);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 {
23802 PyThreadState* __tstate = wxPyBeginAllowThreads();
23803 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23804
23805 wxPyEndAllowThreads(__tstate);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 }
23808 resultobj = SWIG_From_long((long)result);
23809 {
23810 if (temp3)
23811 delete arg3;
23812 }
23813 return resultobj;
23814 fail:
23815 {
23816 if (temp3)
23817 delete arg3;
23818 }
23819 return NULL;
23820 }
23821
23822
23823 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23824 PyObject *resultobj;
23825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23826 long arg2 ;
23827 wxListItem *arg3 = 0 ;
23828 long result;
23829 PyObject * obj0 = 0 ;
23830 PyObject * obj1 = 0 ;
23831 PyObject * obj2 = 0 ;
23832 char *kwnames[] = {
23833 (char *) "self",(char *) "col",(char *) "info", NULL
23834 };
23835
23836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23839 arg2 = (long)SWIG_As_long(obj1);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23842 SWIG_POINTER_EXCEPTION | 0)) == -1)
23843 SWIG_fail;
23844 if (arg3 == NULL) {
23845 PyErr_SetString(PyExc_TypeError,"null reference");
23846 SWIG_fail;
23847 }
23848 {
23849 PyThreadState* __tstate = wxPyBeginAllowThreads();
23850 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23851
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_From_long((long)result);
23856 return resultobj;
23857 fail:
23858 return NULL;
23859 }
23860
23861
23862 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23863 PyObject *resultobj;
23864 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23865 long arg2 ;
23866 wxString *arg3 = 0 ;
23867 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23868 int arg5 = (int) -1 ;
23869 long result;
23870 bool temp3 = false ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 PyObject * obj2 = 0 ;
23874 PyObject * obj3 = 0 ;
23875 PyObject * obj4 = 0 ;
23876 char *kwnames[] = {
23877 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23878 };
23879
23880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23883 arg2 = (long)SWIG_As_long(obj1);
23884 if (PyErr_Occurred()) SWIG_fail;
23885 {
23886 arg3 = wxString_in_helper(obj2);
23887 if (arg3 == NULL) SWIG_fail;
23888 temp3 = true;
23889 }
23890 if (obj3) {
23891 arg4 = (int)SWIG_As_int(obj3);
23892 if (PyErr_Occurred()) SWIG_fail;
23893 }
23894 if (obj4) {
23895 arg5 = (int)SWIG_As_int(obj4);
23896 if (PyErr_Occurred()) SWIG_fail;
23897 }
23898 {
23899 PyThreadState* __tstate = wxPyBeginAllowThreads();
23900 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23901
23902 wxPyEndAllowThreads(__tstate);
23903 if (PyErr_Occurred()) SWIG_fail;
23904 }
23905 resultobj = SWIG_From_long((long)result);
23906 {
23907 if (temp3)
23908 delete arg3;
23909 }
23910 return resultobj;
23911 fail:
23912 {
23913 if (temp3)
23914 delete arg3;
23915 }
23916 return NULL;
23917 }
23918
23919
23920 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23921 PyObject *resultobj;
23922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23923 long arg2 ;
23924 PyObject * obj0 = 0 ;
23925 PyObject * obj1 = 0 ;
23926 char *kwnames[] = {
23927 (char *) "self",(char *) "count", NULL
23928 };
23929
23930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23933 arg2 = (long)SWIG_As_long(obj1);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 (arg1)->SetItemCount(arg2);
23938
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 Py_INCREF(Py_None); resultobj = Py_None;
23943 return resultobj;
23944 fail:
23945 return NULL;
23946 }
23947
23948
23949 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23950 PyObject *resultobj;
23951 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23952 int arg2 ;
23953 int arg3 ;
23954 bool result;
23955 PyObject * obj0 = 0 ;
23956 PyObject * obj1 = 0 ;
23957 PyObject * obj2 = 0 ;
23958 char *kwnames[] = {
23959 (char *) "self",(char *) "dx",(char *) "dy", NULL
23960 };
23961
23962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23965 arg2 = (int)SWIG_As_int(obj1);
23966 if (PyErr_Occurred()) SWIG_fail;
23967 arg3 = (int)SWIG_As_int(obj2);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 {
23970 PyThreadState* __tstate = wxPyBeginAllowThreads();
23971 result = (bool)(arg1)->ScrollList(arg2,arg3);
23972
23973 wxPyEndAllowThreads(__tstate);
23974 if (PyErr_Occurred()) SWIG_fail;
23975 }
23976 {
23977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23978 }
23979 return resultobj;
23980 fail:
23981 return NULL;
23982 }
23983
23984
23985 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23986 PyObject *resultobj;
23987 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23988 long arg2 ;
23989 wxColour *arg3 = 0 ;
23990 wxColour temp3 ;
23991 PyObject * obj0 = 0 ;
23992 PyObject * obj1 = 0 ;
23993 PyObject * obj2 = 0 ;
23994 char *kwnames[] = {
23995 (char *) "self",(char *) "item",(char *) "col", NULL
23996 };
23997
23998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24001 arg2 = (long)SWIG_As_long(obj1);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 {
24004 arg3 = &temp3;
24005 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24006 }
24007 {
24008 PyThreadState* __tstate = wxPyBeginAllowThreads();
24009 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
24010
24011 wxPyEndAllowThreads(__tstate);
24012 if (PyErr_Occurred()) SWIG_fail;
24013 }
24014 Py_INCREF(Py_None); resultobj = Py_None;
24015 return resultobj;
24016 fail:
24017 return NULL;
24018 }
24019
24020
24021 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24022 PyObject *resultobj;
24023 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24024 long arg2 ;
24025 wxColour result;
24026 PyObject * obj0 = 0 ;
24027 PyObject * obj1 = 0 ;
24028 char *kwnames[] = {
24029 (char *) "self",(char *) "item", NULL
24030 };
24031
24032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24035 arg2 = (long)SWIG_As_long(obj1);
24036 if (PyErr_Occurred()) SWIG_fail;
24037 {
24038 PyThreadState* __tstate = wxPyBeginAllowThreads();
24039 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
24040
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 {
24045 wxColour * resultptr;
24046 resultptr = new wxColour((wxColour &) result);
24047 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24048 }
24049 return resultobj;
24050 fail:
24051 return NULL;
24052 }
24053
24054
24055 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24056 PyObject *resultobj;
24057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24058 long arg2 ;
24059 wxColour *arg3 = 0 ;
24060 wxColour temp3 ;
24061 PyObject * obj0 = 0 ;
24062 PyObject * obj1 = 0 ;
24063 PyObject * obj2 = 0 ;
24064 char *kwnames[] = {
24065 (char *) "self",(char *) "item",(char *) "col", NULL
24066 };
24067
24068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24071 arg2 = (long)SWIG_As_long(obj1);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 {
24074 arg3 = &temp3;
24075 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24076 }
24077 {
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
24080
24081 wxPyEndAllowThreads(__tstate);
24082 if (PyErr_Occurred()) SWIG_fail;
24083 }
24084 Py_INCREF(Py_None); resultobj = Py_None;
24085 return resultobj;
24086 fail:
24087 return NULL;
24088 }
24089
24090
24091 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj;
24093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24094 long arg2 ;
24095 wxColour result;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self",(char *) "item", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24105 arg2 = (long)SWIG_As_long(obj1);
24106 if (PyErr_Occurred()) SWIG_fail;
24107 {
24108 PyThreadState* __tstate = wxPyBeginAllowThreads();
24109 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
24110
24111 wxPyEndAllowThreads(__tstate);
24112 if (PyErr_Occurred()) SWIG_fail;
24113 }
24114 {
24115 wxColour * resultptr;
24116 resultptr = new wxColour((wxColour &) result);
24117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24118 }
24119 return resultobj;
24120 fail:
24121 return NULL;
24122 }
24123
24124
24125 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
24126 PyObject *resultobj;
24127 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24128 PyObject *arg2 = (PyObject *) 0 ;
24129 bool result;
24130 PyObject * obj0 = 0 ;
24131 PyObject * obj1 = 0 ;
24132 char *kwnames[] = {
24133 (char *) "self",(char *) "func", NULL
24134 };
24135
24136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
24137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24139 arg2 = obj1;
24140 {
24141 PyThreadState* __tstate = wxPyBeginAllowThreads();
24142 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
24143
24144 wxPyEndAllowThreads(__tstate);
24145 if (PyErr_Occurred()) SWIG_fail;
24146 }
24147 {
24148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24149 }
24150 return resultobj;
24151 fail:
24152 return NULL;
24153 }
24154
24155
24156 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
24157 PyObject *resultobj;
24158 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24159 wxWindow *result;
24160 PyObject * obj0 = 0 ;
24161 char *kwnames[] = {
24162 (char *) "self", NULL
24163 };
24164
24165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
24166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
24171
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 {
24176 resultobj = wxPyMake_wxObject(result, 0);
24177 }
24178 return resultobj;
24179 fail:
24180 return NULL;
24181 }
24182
24183
24184 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24185 PyObject *resultobj;
24186 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
24187 wxVisualAttributes result;
24188 PyObject * obj0 = 0 ;
24189 char *kwnames[] = {
24190 (char *) "variant", NULL
24191 };
24192
24193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
24194 if (obj0) {
24195 arg1 = (int)SWIG_As_int(obj0);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 {
24199 if (!wxPyCheckForApp()) SWIG_fail;
24200 PyThreadState* __tstate = wxPyBeginAllowThreads();
24201 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
24202
24203 wxPyEndAllowThreads(__tstate);
24204 if (PyErr_Occurred()) SWIG_fail;
24205 }
24206 {
24207 wxVisualAttributes * resultptr;
24208 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
24209 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
24210 }
24211 return resultobj;
24212 fail:
24213 return NULL;
24214 }
24215
24216
24217 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
24218 PyObject *obj;
24219 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24220 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
24221 Py_INCREF(obj);
24222 return Py_BuildValue((char *)"");
24223 }
24224 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
24225 PyObject *resultobj;
24226 wxWindow *arg1 = (wxWindow *) 0 ;
24227 int arg2 = (int) -1 ;
24228 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24229 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24230 wxSize const &arg4_defvalue = wxDefaultSize ;
24231 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24232 long arg5 = (long) wxLC_REPORT ;
24233 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24234 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24235 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
24236 wxString *arg7 = (wxString *) &arg7_defvalue ;
24237 wxListView *result;
24238 wxPoint temp3 ;
24239 wxSize temp4 ;
24240 bool temp7 = false ;
24241 PyObject * obj0 = 0 ;
24242 PyObject * obj1 = 0 ;
24243 PyObject * obj2 = 0 ;
24244 PyObject * obj3 = 0 ;
24245 PyObject * obj4 = 0 ;
24246 PyObject * obj5 = 0 ;
24247 PyObject * obj6 = 0 ;
24248 char *kwnames[] = {
24249 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24250 };
24251
24252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24255 if (obj1) {
24256 arg2 = (int)SWIG_As_int(obj1);
24257 if (PyErr_Occurred()) SWIG_fail;
24258 }
24259 if (obj2) {
24260 {
24261 arg3 = &temp3;
24262 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24263 }
24264 }
24265 if (obj3) {
24266 {
24267 arg4 = &temp4;
24268 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24269 }
24270 }
24271 if (obj4) {
24272 arg5 = (long)SWIG_As_long(obj4);
24273 if (PyErr_Occurred()) SWIG_fail;
24274 }
24275 if (obj5) {
24276 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24277 SWIG_POINTER_EXCEPTION | 0)) == -1)
24278 SWIG_fail;
24279 if (arg6 == NULL) {
24280 PyErr_SetString(PyExc_TypeError,"null reference");
24281 SWIG_fail;
24282 }
24283 }
24284 if (obj6) {
24285 {
24286 arg7 = wxString_in_helper(obj6);
24287 if (arg7 == NULL) SWIG_fail;
24288 temp7 = true;
24289 }
24290 }
24291 {
24292 if (!wxPyCheckForApp()) SWIG_fail;
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24295
24296 wxPyEndAllowThreads(__tstate);
24297 if (PyErr_Occurred()) SWIG_fail;
24298 }
24299 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24300 {
24301 if (temp7)
24302 delete arg7;
24303 }
24304 return resultobj;
24305 fail:
24306 {
24307 if (temp7)
24308 delete arg7;
24309 }
24310 return NULL;
24311 }
24312
24313
24314 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
24315 PyObject *resultobj;
24316 wxListView *result;
24317 char *kwnames[] = {
24318 NULL
24319 };
24320
24321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
24322 {
24323 if (!wxPyCheckForApp()) SWIG_fail;
24324 PyThreadState* __tstate = wxPyBeginAllowThreads();
24325 result = (wxListView *)new wxListView();
24326
24327 wxPyEndAllowThreads(__tstate);
24328 if (PyErr_Occurred()) SWIG_fail;
24329 }
24330 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24331 return resultobj;
24332 fail:
24333 return NULL;
24334 }
24335
24336
24337 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24338 PyObject *resultobj;
24339 wxListView *arg1 = (wxListView *) 0 ;
24340 wxWindow *arg2 = (wxWindow *) 0 ;
24341 int arg3 = (int) -1 ;
24342 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24343 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24344 wxSize const &arg5_defvalue = wxDefaultSize ;
24345 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24346 long arg6 = (long) wxLC_REPORT ;
24347 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24348 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24349 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24350 wxString *arg8 = (wxString *) &arg8_defvalue ;
24351 bool result;
24352 wxPoint temp4 ;
24353 wxSize temp5 ;
24354 bool temp8 = false ;
24355 PyObject * obj0 = 0 ;
24356 PyObject * obj1 = 0 ;
24357 PyObject * obj2 = 0 ;
24358 PyObject * obj3 = 0 ;
24359 PyObject * obj4 = 0 ;
24360 PyObject * obj5 = 0 ;
24361 PyObject * obj6 = 0 ;
24362 PyObject * obj7 = 0 ;
24363 char *kwnames[] = {
24364 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24365 };
24366
24367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24372 if (obj2) {
24373 arg3 = (int)SWIG_As_int(obj2);
24374 if (PyErr_Occurred()) SWIG_fail;
24375 }
24376 if (obj3) {
24377 {
24378 arg4 = &temp4;
24379 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24380 }
24381 }
24382 if (obj4) {
24383 {
24384 arg5 = &temp5;
24385 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24386 }
24387 }
24388 if (obj5) {
24389 arg6 = (long)SWIG_As_long(obj5);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 if (obj6) {
24393 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24394 SWIG_POINTER_EXCEPTION | 0)) == -1)
24395 SWIG_fail;
24396 if (arg7 == NULL) {
24397 PyErr_SetString(PyExc_TypeError,"null reference");
24398 SWIG_fail;
24399 }
24400 }
24401 if (obj7) {
24402 {
24403 arg8 = wxString_in_helper(obj7);
24404 if (arg8 == NULL) SWIG_fail;
24405 temp8 = true;
24406 }
24407 }
24408 {
24409 PyThreadState* __tstate = wxPyBeginAllowThreads();
24410 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24411
24412 wxPyEndAllowThreads(__tstate);
24413 if (PyErr_Occurred()) SWIG_fail;
24414 }
24415 {
24416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24417 }
24418 {
24419 if (temp8)
24420 delete arg8;
24421 }
24422 return resultobj;
24423 fail:
24424 {
24425 if (temp8)
24426 delete arg8;
24427 }
24428 return NULL;
24429 }
24430
24431
24432 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24433 PyObject *resultobj;
24434 wxListView *arg1 = (wxListView *) 0 ;
24435 long arg2 ;
24436 bool arg3 = (bool) true ;
24437 PyObject * obj0 = 0 ;
24438 PyObject * obj1 = 0 ;
24439 PyObject * obj2 = 0 ;
24440 char *kwnames[] = {
24441 (char *) "self",(char *) "n",(char *) "on", NULL
24442 };
24443
24444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24447 arg2 = (long)SWIG_As_long(obj1);
24448 if (PyErr_Occurred()) SWIG_fail;
24449 if (obj2) {
24450 arg3 = (bool)SWIG_As_bool(obj2);
24451 if (PyErr_Occurred()) SWIG_fail;
24452 }
24453 {
24454 PyThreadState* __tstate = wxPyBeginAllowThreads();
24455 (arg1)->Select(arg2,arg3);
24456
24457 wxPyEndAllowThreads(__tstate);
24458 if (PyErr_Occurred()) SWIG_fail;
24459 }
24460 Py_INCREF(Py_None); resultobj = Py_None;
24461 return resultobj;
24462 fail:
24463 return NULL;
24464 }
24465
24466
24467 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24468 PyObject *resultobj;
24469 wxListView *arg1 = (wxListView *) 0 ;
24470 long arg2 ;
24471 PyObject * obj0 = 0 ;
24472 PyObject * obj1 = 0 ;
24473 char *kwnames[] = {
24474 (char *) "self",(char *) "index", NULL
24475 };
24476
24477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24480 arg2 = (long)SWIG_As_long(obj1);
24481 if (PyErr_Occurred()) SWIG_fail;
24482 {
24483 PyThreadState* __tstate = wxPyBeginAllowThreads();
24484 (arg1)->Focus(arg2);
24485
24486 wxPyEndAllowThreads(__tstate);
24487 if (PyErr_Occurred()) SWIG_fail;
24488 }
24489 Py_INCREF(Py_None); resultobj = Py_None;
24490 return resultobj;
24491 fail:
24492 return NULL;
24493 }
24494
24495
24496 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24497 PyObject *resultobj;
24498 wxListView *arg1 = (wxListView *) 0 ;
24499 long result;
24500 PyObject * obj0 = 0 ;
24501 char *kwnames[] = {
24502 (char *) "self", NULL
24503 };
24504
24505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24508 {
24509 PyThreadState* __tstate = wxPyBeginAllowThreads();
24510 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24511
24512 wxPyEndAllowThreads(__tstate);
24513 if (PyErr_Occurred()) SWIG_fail;
24514 }
24515 resultobj = SWIG_From_long((long)result);
24516 return resultobj;
24517 fail:
24518 return NULL;
24519 }
24520
24521
24522 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24523 PyObject *resultobj;
24524 wxListView *arg1 = (wxListView *) 0 ;
24525 long arg2 ;
24526 long result;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 char *kwnames[] = {
24530 (char *) "self",(char *) "item", NULL
24531 };
24532
24533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24536 arg2 = (long)SWIG_As_long(obj1);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 {
24539 PyThreadState* __tstate = wxPyBeginAllowThreads();
24540 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24541
24542 wxPyEndAllowThreads(__tstate);
24543 if (PyErr_Occurred()) SWIG_fail;
24544 }
24545 resultobj = SWIG_From_long((long)result);
24546 return resultobj;
24547 fail:
24548 return NULL;
24549 }
24550
24551
24552 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24553 PyObject *resultobj;
24554 wxListView *arg1 = (wxListView *) 0 ;
24555 long result;
24556 PyObject * obj0 = 0 ;
24557 char *kwnames[] = {
24558 (char *) "self", NULL
24559 };
24560
24561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24564 {
24565 PyThreadState* __tstate = wxPyBeginAllowThreads();
24566 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24567
24568 wxPyEndAllowThreads(__tstate);
24569 if (PyErr_Occurred()) SWIG_fail;
24570 }
24571 resultobj = SWIG_From_long((long)result);
24572 return resultobj;
24573 fail:
24574 return NULL;
24575 }
24576
24577
24578 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24579 PyObject *resultobj;
24580 wxListView *arg1 = (wxListView *) 0 ;
24581 long arg2 ;
24582 bool result;
24583 PyObject * obj0 = 0 ;
24584 PyObject * obj1 = 0 ;
24585 char *kwnames[] = {
24586 (char *) "self",(char *) "index", NULL
24587 };
24588
24589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24592 arg2 = (long)SWIG_As_long(obj1);
24593 if (PyErr_Occurred()) SWIG_fail;
24594 {
24595 PyThreadState* __tstate = wxPyBeginAllowThreads();
24596 result = (bool)(arg1)->IsSelected(arg2);
24597
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 {
24602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24603 }
24604 return resultobj;
24605 fail:
24606 return NULL;
24607 }
24608
24609
24610 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24611 PyObject *resultobj;
24612 wxListView *arg1 = (wxListView *) 0 ;
24613 int arg2 ;
24614 int arg3 ;
24615 PyObject * obj0 = 0 ;
24616 PyObject * obj1 = 0 ;
24617 PyObject * obj2 = 0 ;
24618 char *kwnames[] = {
24619 (char *) "self",(char *) "col",(char *) "image", NULL
24620 };
24621
24622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24625 arg2 = (int)SWIG_As_int(obj1);
24626 if (PyErr_Occurred()) SWIG_fail;
24627 arg3 = (int)SWIG_As_int(obj2);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 {
24630 PyThreadState* __tstate = wxPyBeginAllowThreads();
24631 (arg1)->SetColumnImage(arg2,arg3);
24632
24633 wxPyEndAllowThreads(__tstate);
24634 if (PyErr_Occurred()) SWIG_fail;
24635 }
24636 Py_INCREF(Py_None); resultobj = Py_None;
24637 return resultobj;
24638 fail:
24639 return NULL;
24640 }
24641
24642
24643 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24644 PyObject *resultobj;
24645 wxListView *arg1 = (wxListView *) 0 ;
24646 int arg2 ;
24647 PyObject * obj0 = 0 ;
24648 PyObject * obj1 = 0 ;
24649 char *kwnames[] = {
24650 (char *) "self",(char *) "col", NULL
24651 };
24652
24653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24656 arg2 = (int)SWIG_As_int(obj1);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 {
24659 PyThreadState* __tstate = wxPyBeginAllowThreads();
24660 (arg1)->ClearColumnImage(arg2);
24661
24662 wxPyEndAllowThreads(__tstate);
24663 if (PyErr_Occurred()) SWIG_fail;
24664 }
24665 Py_INCREF(Py_None); resultobj = Py_None;
24666 return resultobj;
24667 fail:
24668 return NULL;
24669 }
24670
24671
24672 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24673 PyObject *obj;
24674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24675 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24676 Py_INCREF(obj);
24677 return Py_BuildValue((char *)"");
24678 }
24679 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24680 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24681 return 1;
24682 }
24683
24684
24685 static PyObject *_wrap_TreeCtrlNameStr_get() {
24686 PyObject *pyobj;
24687
24688 {
24689 #if wxUSE_UNICODE
24690 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24691 #else
24692 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24693 #endif
24694 }
24695 return pyobj;
24696 }
24697
24698
24699 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24700 PyObject *resultobj;
24701 wxTreeItemId *result;
24702 char *kwnames[] = {
24703 NULL
24704 };
24705
24706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24707 {
24708 PyThreadState* __tstate = wxPyBeginAllowThreads();
24709 result = (wxTreeItemId *)new wxTreeItemId();
24710
24711 wxPyEndAllowThreads(__tstate);
24712 if (PyErr_Occurred()) SWIG_fail;
24713 }
24714 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24715 return resultobj;
24716 fail:
24717 return NULL;
24718 }
24719
24720
24721 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24722 PyObject *resultobj;
24723 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24724 PyObject * obj0 = 0 ;
24725 char *kwnames[] = {
24726 (char *) "self", NULL
24727 };
24728
24729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24732 {
24733 PyThreadState* __tstate = wxPyBeginAllowThreads();
24734 delete arg1;
24735
24736 wxPyEndAllowThreads(__tstate);
24737 if (PyErr_Occurred()) SWIG_fail;
24738 }
24739 Py_INCREF(Py_None); resultobj = Py_None;
24740 return resultobj;
24741 fail:
24742 return NULL;
24743 }
24744
24745
24746 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24747 PyObject *resultobj;
24748 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24749 bool result;
24750 PyObject * obj0 = 0 ;
24751 char *kwnames[] = {
24752 (char *) "self", NULL
24753 };
24754
24755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24758 {
24759 PyThreadState* __tstate = wxPyBeginAllowThreads();
24760 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24761
24762 wxPyEndAllowThreads(__tstate);
24763 if (PyErr_Occurred()) SWIG_fail;
24764 }
24765 {
24766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24767 }
24768 return resultobj;
24769 fail:
24770 return NULL;
24771 }
24772
24773
24774 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24775 PyObject *resultobj;
24776 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24777 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24778 bool result;
24779 PyObject * obj0 = 0 ;
24780 PyObject * obj1 = 0 ;
24781 char *kwnames[] = {
24782 (char *) "self",(char *) "other", NULL
24783 };
24784
24785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24790 {
24791 PyThreadState* __tstate = wxPyBeginAllowThreads();
24792 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24793
24794 wxPyEndAllowThreads(__tstate);
24795 if (PyErr_Occurred()) SWIG_fail;
24796 }
24797 {
24798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24799 }
24800 return resultobj;
24801 fail:
24802 return NULL;
24803 }
24804
24805
24806 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24807 PyObject *resultobj;
24808 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24809 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24810 bool result;
24811 PyObject * obj0 = 0 ;
24812 PyObject * obj1 = 0 ;
24813 char *kwnames[] = {
24814 (char *) "self",(char *) "other", NULL
24815 };
24816
24817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24822 {
24823 PyThreadState* __tstate = wxPyBeginAllowThreads();
24824 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24825
24826 wxPyEndAllowThreads(__tstate);
24827 if (PyErr_Occurred()) SWIG_fail;
24828 }
24829 {
24830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24831 }
24832 return resultobj;
24833 fail:
24834 return NULL;
24835 }
24836
24837
24838 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24839 PyObject *resultobj;
24840 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24841 void *arg2 = (void *) 0 ;
24842 PyObject * obj0 = 0 ;
24843 PyObject * obj1 = 0 ;
24844 char *kwnames[] = {
24845 (char *) "self",(char *) "m_pItem", NULL
24846 };
24847
24848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24851 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24852 if (arg1) (arg1)->m_pItem = arg2;
24853
24854 Py_INCREF(Py_None); resultobj = Py_None;
24855 return resultobj;
24856 fail:
24857 return NULL;
24858 }
24859
24860
24861 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24862 PyObject *resultobj;
24863 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24864 void *result;
24865 PyObject * obj0 = 0 ;
24866 char *kwnames[] = {
24867 (char *) "self", NULL
24868 };
24869
24870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24873 result = (void *) ((arg1)->m_pItem);
24874
24875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24876 return resultobj;
24877 fail:
24878 return NULL;
24879 }
24880
24881
24882 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24883 PyObject *obj;
24884 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24885 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24886 Py_INCREF(obj);
24887 return Py_BuildValue((char *)"");
24888 }
24889 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24890 PyObject *resultobj;
24891 PyObject *arg1 = (PyObject *) NULL ;
24892 wxPyTreeItemData *result;
24893 PyObject * obj0 = 0 ;
24894 char *kwnames[] = {
24895 (char *) "obj", NULL
24896 };
24897
24898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24899 if (obj0) {
24900 arg1 = obj0;
24901 }
24902 {
24903 PyThreadState* __tstate = wxPyBeginAllowThreads();
24904 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24905
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24910 return resultobj;
24911 fail:
24912 return NULL;
24913 }
24914
24915
24916 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24917 PyObject *resultobj;
24918 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24919 PyObject *result;
24920 PyObject * obj0 = 0 ;
24921 char *kwnames[] = {
24922 (char *) "self", NULL
24923 };
24924
24925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24928 {
24929 PyThreadState* __tstate = wxPyBeginAllowThreads();
24930 result = (PyObject *)(arg1)->GetData();
24931
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 resultobj = result;
24936 return resultobj;
24937 fail:
24938 return NULL;
24939 }
24940
24941
24942 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24943 PyObject *resultobj;
24944 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24945 PyObject *arg2 = (PyObject *) 0 ;
24946 PyObject * obj0 = 0 ;
24947 PyObject * obj1 = 0 ;
24948 char *kwnames[] = {
24949 (char *) "self",(char *) "obj", NULL
24950 };
24951
24952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24955 arg2 = obj1;
24956 {
24957 PyThreadState* __tstate = wxPyBeginAllowThreads();
24958 (arg1)->SetData(arg2);
24959
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 Py_INCREF(Py_None); resultobj = Py_None;
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24971 PyObject *resultobj;
24972 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24973 wxTreeItemId *result;
24974 PyObject * obj0 = 0 ;
24975 char *kwnames[] = {
24976 (char *) "self", NULL
24977 };
24978
24979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 {
24985 wxTreeItemId const &_result_ref = (arg1)->GetId();
24986 result = (wxTreeItemId *) &_result_ref;
24987 }
24988
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj;
25001 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25002 wxTreeItemId *arg2 = 0 ;
25003 PyObject * obj0 = 0 ;
25004 PyObject * obj1 = 0 ;
25005 char *kwnames[] = {
25006 (char *) "self",(char *) "id", NULL
25007 };
25008
25009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
25010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25012 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25013 SWIG_POINTER_EXCEPTION | 0)) == -1)
25014 SWIG_fail;
25015 if (arg2 == NULL) {
25016 PyErr_SetString(PyExc_TypeError,"null reference");
25017 SWIG_fail;
25018 }
25019 {
25020 PyThreadState* __tstate = wxPyBeginAllowThreads();
25021 (arg1)->SetId((wxTreeItemId const &)*arg2);
25022
25023 wxPyEndAllowThreads(__tstate);
25024 if (PyErr_Occurred()) SWIG_fail;
25025 }
25026 Py_INCREF(Py_None); resultobj = Py_None;
25027 return resultobj;
25028 fail:
25029 return NULL;
25030 }
25031
25032
25033 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
25034 PyObject *resultobj;
25035 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25036 PyObject * obj0 = 0 ;
25037 char *kwnames[] = {
25038 (char *) "self", NULL
25039 };
25040
25041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
25042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25044 {
25045 PyThreadState* __tstate = wxPyBeginAllowThreads();
25046 wxPyTreeItemData_Destroy(arg1);
25047
25048 wxPyEndAllowThreads(__tstate);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 Py_INCREF(Py_None); resultobj = Py_None;
25052 return resultobj;
25053 fail:
25054 return NULL;
25055 }
25056
25057
25058 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
25059 PyObject *obj;
25060 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25061 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
25062 Py_INCREF(obj);
25063 return Py_BuildValue((char *)"");
25064 }
25065 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25066 PyObject *resultobj;
25067 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
25068 int arg2 = (int) 0 ;
25069 wxTreeEvent *result;
25070 PyObject * obj0 = 0 ;
25071 PyObject * obj1 = 0 ;
25072 char *kwnames[] = {
25073 (char *) "commandType",(char *) "id", NULL
25074 };
25075
25076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
25077 if (obj0) {
25078 arg1 = (wxEventType)SWIG_As_int(obj0);
25079 if (PyErr_Occurred()) SWIG_fail;
25080 }
25081 if (obj1) {
25082 arg2 = (int)SWIG_As_int(obj1);
25083 if (PyErr_Occurred()) SWIG_fail;
25084 }
25085 {
25086 PyThreadState* __tstate = wxPyBeginAllowThreads();
25087 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
25088
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
25093 return resultobj;
25094 fail:
25095 return NULL;
25096 }
25097
25098
25099 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25100 PyObject *resultobj;
25101 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25102 wxTreeItemId result;
25103 PyObject * obj0 = 0 ;
25104 char *kwnames[] = {
25105 (char *) "self", NULL
25106 };
25107
25108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
25109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25111 {
25112 PyThreadState* __tstate = wxPyBeginAllowThreads();
25113 result = ((wxTreeEvent const *)arg1)->GetItem();
25114
25115 wxPyEndAllowThreads(__tstate);
25116 if (PyErr_Occurred()) SWIG_fail;
25117 }
25118 {
25119 wxTreeItemId * resultptr;
25120 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25122 }
25123 return resultobj;
25124 fail:
25125 return NULL;
25126 }
25127
25128
25129 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25130 PyObject *resultobj;
25131 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25132 wxTreeItemId *arg2 = 0 ;
25133 PyObject * obj0 = 0 ;
25134 PyObject * obj1 = 0 ;
25135 char *kwnames[] = {
25136 (char *) "self",(char *) "item", NULL
25137 };
25138
25139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
25140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25143 SWIG_POINTER_EXCEPTION | 0)) == -1)
25144 SWIG_fail;
25145 if (arg2 == NULL) {
25146 PyErr_SetString(PyExc_TypeError,"null reference");
25147 SWIG_fail;
25148 }
25149 {
25150 PyThreadState* __tstate = wxPyBeginAllowThreads();
25151 (arg1)->SetItem((wxTreeItemId const &)*arg2);
25152
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 Py_INCREF(Py_None); resultobj = Py_None;
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj;
25165 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25166 wxTreeItemId result;
25167 PyObject * obj0 = 0 ;
25168 char *kwnames[] = {
25169 (char *) "self", NULL
25170 };
25171
25172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
25173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = ((wxTreeEvent const *)arg1)->GetOldItem();
25178
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 {
25183 wxTreeItemId * resultptr;
25184 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25185 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25186 }
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25196 wxTreeItemId *arg2 = 0 ;
25197 PyObject * obj0 = 0 ;
25198 PyObject * obj1 = 0 ;
25199 char *kwnames[] = {
25200 (char *) "self",(char *) "item", NULL
25201 };
25202
25203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
25204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25207 SWIG_POINTER_EXCEPTION | 0)) == -1)
25208 SWIG_fail;
25209 if (arg2 == NULL) {
25210 PyErr_SetString(PyExc_TypeError,"null reference");
25211 SWIG_fail;
25212 }
25213 {
25214 PyThreadState* __tstate = wxPyBeginAllowThreads();
25215 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
25216
25217 wxPyEndAllowThreads(__tstate);
25218 if (PyErr_Occurred()) SWIG_fail;
25219 }
25220 Py_INCREF(Py_None); resultobj = Py_None;
25221 return resultobj;
25222 fail:
25223 return NULL;
25224 }
25225
25226
25227 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25228 PyObject *resultobj;
25229 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25230 wxPoint result;
25231 PyObject * obj0 = 0 ;
25232 char *kwnames[] = {
25233 (char *) "self", NULL
25234 };
25235
25236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
25237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 result = ((wxTreeEvent const *)arg1)->GetPoint();
25242
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 {
25247 wxPoint * resultptr;
25248 resultptr = new wxPoint((wxPoint &) result);
25249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25250 }
25251 return resultobj;
25252 fail:
25253 return NULL;
25254 }
25255
25256
25257 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25258 PyObject *resultobj;
25259 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25260 wxPoint *arg2 = 0 ;
25261 wxPoint temp2 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 char *kwnames[] = {
25265 (char *) "self",(char *) "pt", NULL
25266 };
25267
25268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
25269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25271 {
25272 arg2 = &temp2;
25273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25274 }
25275 {
25276 PyThreadState* __tstate = wxPyBeginAllowThreads();
25277 (arg1)->SetPoint((wxPoint const &)*arg2);
25278
25279 wxPyEndAllowThreads(__tstate);
25280 if (PyErr_Occurred()) SWIG_fail;
25281 }
25282 Py_INCREF(Py_None); resultobj = Py_None;
25283 return resultobj;
25284 fail:
25285 return NULL;
25286 }
25287
25288
25289 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25290 PyObject *resultobj;
25291 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25292 wxKeyEvent *result;
25293 PyObject * obj0 = 0 ;
25294 char *kwnames[] = {
25295 (char *) "self", NULL
25296 };
25297
25298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
25299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25301 {
25302 PyThreadState* __tstate = wxPyBeginAllowThreads();
25303 {
25304 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
25305 result = (wxKeyEvent *) &_result_ref;
25306 }
25307
25308 wxPyEndAllowThreads(__tstate);
25309 if (PyErr_Occurred()) SWIG_fail;
25310 }
25311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
25312 return resultobj;
25313 fail:
25314 return NULL;
25315 }
25316
25317
25318 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
25319 PyObject *resultobj;
25320 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25321 int result;
25322 PyObject * obj0 = 0 ;
25323 char *kwnames[] = {
25324 (char *) "self", NULL
25325 };
25326
25327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
25328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25333
25334 wxPyEndAllowThreads(__tstate);
25335 if (PyErr_Occurred()) SWIG_fail;
25336 }
25337 resultobj = SWIG_From_int((int)result);
25338 return resultobj;
25339 fail:
25340 return NULL;
25341 }
25342
25343
25344 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25345 PyObject *resultobj;
25346 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25347 wxKeyEvent *arg2 = 0 ;
25348 PyObject * obj0 = 0 ;
25349 PyObject * obj1 = 0 ;
25350 char *kwnames[] = {
25351 (char *) "self",(char *) "evt", NULL
25352 };
25353
25354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25358 SWIG_POINTER_EXCEPTION | 0)) == -1)
25359 SWIG_fail;
25360 if (arg2 == NULL) {
25361 PyErr_SetString(PyExc_TypeError,"null reference");
25362 SWIG_fail;
25363 }
25364 {
25365 PyThreadState* __tstate = wxPyBeginAllowThreads();
25366 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25367
25368 wxPyEndAllowThreads(__tstate);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 Py_INCREF(Py_None); resultobj = Py_None;
25372 return resultobj;
25373 fail:
25374 return NULL;
25375 }
25376
25377
25378 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25379 PyObject *resultobj;
25380 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25381 wxString *result;
25382 PyObject * obj0 = 0 ;
25383 char *kwnames[] = {
25384 (char *) "self", NULL
25385 };
25386
25387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25390 {
25391 PyThreadState* __tstate = wxPyBeginAllowThreads();
25392 {
25393 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25394 result = (wxString *) &_result_ref;
25395 }
25396
25397 wxPyEndAllowThreads(__tstate);
25398 if (PyErr_Occurred()) SWIG_fail;
25399 }
25400 {
25401 #if wxUSE_UNICODE
25402 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25403 #else
25404 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25405 #endif
25406 }
25407 return resultobj;
25408 fail:
25409 return NULL;
25410 }
25411
25412
25413 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25414 PyObject *resultobj;
25415 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25416 wxString *arg2 = 0 ;
25417 bool temp2 = false ;
25418 PyObject * obj0 = 0 ;
25419 PyObject * obj1 = 0 ;
25420 char *kwnames[] = {
25421 (char *) "self",(char *) "label", NULL
25422 };
25423
25424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25427 {
25428 arg2 = wxString_in_helper(obj1);
25429 if (arg2 == NULL) SWIG_fail;
25430 temp2 = true;
25431 }
25432 {
25433 PyThreadState* __tstate = wxPyBeginAllowThreads();
25434 (arg1)->SetLabel((wxString const &)*arg2);
25435
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 Py_INCREF(Py_None); resultobj = Py_None;
25440 {
25441 if (temp2)
25442 delete arg2;
25443 }
25444 return resultobj;
25445 fail:
25446 {
25447 if (temp2)
25448 delete arg2;
25449 }
25450 return NULL;
25451 }
25452
25453
25454 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25455 PyObject *resultobj;
25456 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25457 bool result;
25458 PyObject * obj0 = 0 ;
25459 char *kwnames[] = {
25460 (char *) "self", NULL
25461 };
25462
25463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25466 {
25467 PyThreadState* __tstate = wxPyBeginAllowThreads();
25468 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25469
25470 wxPyEndAllowThreads(__tstate);
25471 if (PyErr_Occurred()) SWIG_fail;
25472 }
25473 {
25474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25475 }
25476 return resultobj;
25477 fail:
25478 return NULL;
25479 }
25480
25481
25482 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25483 PyObject *resultobj;
25484 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25485 bool arg2 ;
25486 PyObject * obj0 = 0 ;
25487 PyObject * obj1 = 0 ;
25488 char *kwnames[] = {
25489 (char *) "self",(char *) "editCancelled", NULL
25490 };
25491
25492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25495 arg2 = (bool)SWIG_As_bool(obj1);
25496 if (PyErr_Occurred()) SWIG_fail;
25497 {
25498 PyThreadState* __tstate = wxPyBeginAllowThreads();
25499 (arg1)->SetEditCanceled(arg2);
25500
25501 wxPyEndAllowThreads(__tstate);
25502 if (PyErr_Occurred()) SWIG_fail;
25503 }
25504 Py_INCREF(Py_None); resultobj = Py_None;
25505 return resultobj;
25506 fail:
25507 return NULL;
25508 }
25509
25510
25511 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25512 PyObject *resultobj;
25513 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25514 wxString *arg2 = 0 ;
25515 bool temp2 = false ;
25516 PyObject * obj0 = 0 ;
25517 PyObject * obj1 = 0 ;
25518 char *kwnames[] = {
25519 (char *) "self",(char *) "toolTip", NULL
25520 };
25521
25522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25525 {
25526 arg2 = wxString_in_helper(obj1);
25527 if (arg2 == NULL) SWIG_fail;
25528 temp2 = true;
25529 }
25530 {
25531 PyThreadState* __tstate = wxPyBeginAllowThreads();
25532 (arg1)->SetToolTip((wxString const &)*arg2);
25533
25534 wxPyEndAllowThreads(__tstate);
25535 if (PyErr_Occurred()) SWIG_fail;
25536 }
25537 Py_INCREF(Py_None); resultobj = Py_None;
25538 {
25539 if (temp2)
25540 delete arg2;
25541 }
25542 return resultobj;
25543 fail:
25544 {
25545 if (temp2)
25546 delete arg2;
25547 }
25548 return NULL;
25549 }
25550
25551
25552 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25553 PyObject *obj;
25554 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25555 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25556 Py_INCREF(obj);
25557 return Py_BuildValue((char *)"");
25558 }
25559 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25560 PyObject *resultobj;
25561 wxWindow *arg1 = (wxWindow *) 0 ;
25562 int arg2 = (int) -1 ;
25563 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25564 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25565 wxSize const &arg4_defvalue = wxDefaultSize ;
25566 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25567 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25568 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25569 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25570 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25571 wxString *arg7 = (wxString *) &arg7_defvalue ;
25572 wxPyTreeCtrl *result;
25573 wxPoint temp3 ;
25574 wxSize temp4 ;
25575 bool temp7 = false ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 PyObject * obj2 = 0 ;
25579 PyObject * obj3 = 0 ;
25580 PyObject * obj4 = 0 ;
25581 PyObject * obj5 = 0 ;
25582 PyObject * obj6 = 0 ;
25583 char *kwnames[] = {
25584 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25585 };
25586
25587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25590 if (obj1) {
25591 arg2 = (int)SWIG_As_int(obj1);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 if (obj2) {
25595 {
25596 arg3 = &temp3;
25597 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25598 }
25599 }
25600 if (obj3) {
25601 {
25602 arg4 = &temp4;
25603 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25604 }
25605 }
25606 if (obj4) {
25607 arg5 = (long)SWIG_As_long(obj4);
25608 if (PyErr_Occurred()) SWIG_fail;
25609 }
25610 if (obj5) {
25611 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25612 SWIG_POINTER_EXCEPTION | 0)) == -1)
25613 SWIG_fail;
25614 if (arg6 == NULL) {
25615 PyErr_SetString(PyExc_TypeError,"null reference");
25616 SWIG_fail;
25617 }
25618 }
25619 if (obj6) {
25620 {
25621 arg7 = wxString_in_helper(obj6);
25622 if (arg7 == NULL) SWIG_fail;
25623 temp7 = true;
25624 }
25625 }
25626 {
25627 if (!wxPyCheckForApp()) SWIG_fail;
25628 PyThreadState* __tstate = wxPyBeginAllowThreads();
25629 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25630
25631 wxPyEndAllowThreads(__tstate);
25632 if (PyErr_Occurred()) SWIG_fail;
25633 }
25634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25635 {
25636 if (temp7)
25637 delete arg7;
25638 }
25639 return resultobj;
25640 fail:
25641 {
25642 if (temp7)
25643 delete arg7;
25644 }
25645 return NULL;
25646 }
25647
25648
25649 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25650 PyObject *resultobj;
25651 wxPyTreeCtrl *result;
25652 char *kwnames[] = {
25653 NULL
25654 };
25655
25656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25657 {
25658 if (!wxPyCheckForApp()) SWIG_fail;
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25661
25662 wxPyEndAllowThreads(__tstate);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25666 return resultobj;
25667 fail:
25668 return NULL;
25669 }
25670
25671
25672 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj;
25674 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25675 wxWindow *arg2 = (wxWindow *) 0 ;
25676 int arg3 = (int) -1 ;
25677 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25678 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25679 wxSize const &arg5_defvalue = wxDefaultSize ;
25680 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25681 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25682 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25683 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25684 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25685 wxString *arg8 = (wxString *) &arg8_defvalue ;
25686 bool result;
25687 wxPoint temp4 ;
25688 wxSize temp5 ;
25689 bool temp8 = false ;
25690 PyObject * obj0 = 0 ;
25691 PyObject * obj1 = 0 ;
25692 PyObject * obj2 = 0 ;
25693 PyObject * obj3 = 0 ;
25694 PyObject * obj4 = 0 ;
25695 PyObject * obj5 = 0 ;
25696 PyObject * obj6 = 0 ;
25697 PyObject * obj7 = 0 ;
25698 char *kwnames[] = {
25699 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25700 };
25701
25702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25707 if (obj2) {
25708 arg3 = (int)SWIG_As_int(obj2);
25709 if (PyErr_Occurred()) SWIG_fail;
25710 }
25711 if (obj3) {
25712 {
25713 arg4 = &temp4;
25714 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25715 }
25716 }
25717 if (obj4) {
25718 {
25719 arg5 = &temp5;
25720 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25721 }
25722 }
25723 if (obj5) {
25724 arg6 = (long)SWIG_As_long(obj5);
25725 if (PyErr_Occurred()) SWIG_fail;
25726 }
25727 if (obj6) {
25728 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25729 SWIG_POINTER_EXCEPTION | 0)) == -1)
25730 SWIG_fail;
25731 if (arg7 == NULL) {
25732 PyErr_SetString(PyExc_TypeError,"null reference");
25733 SWIG_fail;
25734 }
25735 }
25736 if (obj7) {
25737 {
25738 arg8 = wxString_in_helper(obj7);
25739 if (arg8 == NULL) SWIG_fail;
25740 temp8 = true;
25741 }
25742 }
25743 {
25744 PyThreadState* __tstate = wxPyBeginAllowThreads();
25745 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25746
25747 wxPyEndAllowThreads(__tstate);
25748 if (PyErr_Occurred()) SWIG_fail;
25749 }
25750 {
25751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25752 }
25753 {
25754 if (temp8)
25755 delete arg8;
25756 }
25757 return resultobj;
25758 fail:
25759 {
25760 if (temp8)
25761 delete arg8;
25762 }
25763 return NULL;
25764 }
25765
25766
25767 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25768 PyObject *resultobj;
25769 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25770 PyObject *arg2 = (PyObject *) 0 ;
25771 PyObject *arg3 = (PyObject *) 0 ;
25772 PyObject * obj0 = 0 ;
25773 PyObject * obj1 = 0 ;
25774 PyObject * obj2 = 0 ;
25775 char *kwnames[] = {
25776 (char *) "self",(char *) "self",(char *) "_class", NULL
25777 };
25778
25779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25782 arg2 = obj1;
25783 arg3 = obj2;
25784 {
25785 PyThreadState* __tstate = wxPyBeginAllowThreads();
25786 (arg1)->_setCallbackInfo(arg2,arg3);
25787
25788 wxPyEndAllowThreads(__tstate);
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 Py_INCREF(Py_None); resultobj = Py_None;
25792 return resultobj;
25793 fail:
25794 return NULL;
25795 }
25796
25797
25798 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25799 PyObject *resultobj;
25800 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25801 size_t result;
25802 PyObject * obj0 = 0 ;
25803 char *kwnames[] = {
25804 (char *) "self", NULL
25805 };
25806
25807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25810 {
25811 PyThreadState* __tstate = wxPyBeginAllowThreads();
25812 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25813
25814 wxPyEndAllowThreads(__tstate);
25815 if (PyErr_Occurred()) SWIG_fail;
25816 }
25817 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25818 return resultobj;
25819 fail:
25820 return NULL;
25821 }
25822
25823
25824 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25825 PyObject *resultobj;
25826 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25827 unsigned int result;
25828 PyObject * obj0 = 0 ;
25829 char *kwnames[] = {
25830 (char *) "self", NULL
25831 };
25832
25833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25836 {
25837 PyThreadState* __tstate = wxPyBeginAllowThreads();
25838 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25839
25840 wxPyEndAllowThreads(__tstate);
25841 if (PyErr_Occurred()) SWIG_fail;
25842 }
25843 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25844 return resultobj;
25845 fail:
25846 return NULL;
25847 }
25848
25849
25850 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25851 PyObject *resultobj;
25852 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25853 unsigned int arg2 ;
25854 PyObject * obj0 = 0 ;
25855 PyObject * obj1 = 0 ;
25856 char *kwnames[] = {
25857 (char *) "self",(char *) "indent", NULL
25858 };
25859
25860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25863 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25864 if (PyErr_Occurred()) SWIG_fail;
25865 {
25866 PyThreadState* __tstate = wxPyBeginAllowThreads();
25867 (arg1)->SetIndent(arg2);
25868
25869 wxPyEndAllowThreads(__tstate);
25870 if (PyErr_Occurred()) SWIG_fail;
25871 }
25872 Py_INCREF(Py_None); resultobj = Py_None;
25873 return resultobj;
25874 fail:
25875 return NULL;
25876 }
25877
25878
25879 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25880 PyObject *resultobj;
25881 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25882 unsigned int result;
25883 PyObject * obj0 = 0 ;
25884 char *kwnames[] = {
25885 (char *) "self", NULL
25886 };
25887
25888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25891 {
25892 PyThreadState* __tstate = wxPyBeginAllowThreads();
25893 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25894
25895 wxPyEndAllowThreads(__tstate);
25896 if (PyErr_Occurred()) SWIG_fail;
25897 }
25898 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25899 return resultobj;
25900 fail:
25901 return NULL;
25902 }
25903
25904
25905 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25906 PyObject *resultobj;
25907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25908 unsigned int arg2 ;
25909 PyObject * obj0 = 0 ;
25910 PyObject * obj1 = 0 ;
25911 char *kwnames[] = {
25912 (char *) "self",(char *) "spacing", NULL
25913 };
25914
25915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25918 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25919 if (PyErr_Occurred()) SWIG_fail;
25920 {
25921 PyThreadState* __tstate = wxPyBeginAllowThreads();
25922 (arg1)->SetSpacing(arg2);
25923
25924 wxPyEndAllowThreads(__tstate);
25925 if (PyErr_Occurred()) SWIG_fail;
25926 }
25927 Py_INCREF(Py_None); resultobj = Py_None;
25928 return resultobj;
25929 fail:
25930 return NULL;
25931 }
25932
25933
25934 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25935 PyObject *resultobj;
25936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25937 wxImageList *result;
25938 PyObject * obj0 = 0 ;
25939 char *kwnames[] = {
25940 (char *) "self", NULL
25941 };
25942
25943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25946 {
25947 PyThreadState* __tstate = wxPyBeginAllowThreads();
25948 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25949
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 {
25954 resultobj = wxPyMake_wxObject(result, 0);
25955 }
25956 return resultobj;
25957 fail:
25958 return NULL;
25959 }
25960
25961
25962 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25963 PyObject *resultobj;
25964 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25965 wxImageList *result;
25966 PyObject * obj0 = 0 ;
25967 char *kwnames[] = {
25968 (char *) "self", NULL
25969 };
25970
25971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25974 {
25975 PyThreadState* __tstate = wxPyBeginAllowThreads();
25976 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25977
25978 wxPyEndAllowThreads(__tstate);
25979 if (PyErr_Occurred()) SWIG_fail;
25980 }
25981 {
25982 resultobj = wxPyMake_wxObject(result, 0);
25983 }
25984 return resultobj;
25985 fail:
25986 return NULL;
25987 }
25988
25989
25990 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25991 PyObject *resultobj;
25992 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25993 wxImageList *arg2 = (wxImageList *) 0 ;
25994 PyObject * obj0 = 0 ;
25995 PyObject * obj1 = 0 ;
25996 char *kwnames[] = {
25997 (char *) "self",(char *) "imageList", NULL
25998 };
25999
26000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
26001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26003 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26005 {
26006 PyThreadState* __tstate = wxPyBeginAllowThreads();
26007 (arg1)->SetImageList(arg2);
26008
26009 wxPyEndAllowThreads(__tstate);
26010 if (PyErr_Occurred()) SWIG_fail;
26011 }
26012 Py_INCREF(Py_None); resultobj = Py_None;
26013 return resultobj;
26014 fail:
26015 return NULL;
26016 }
26017
26018
26019 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26020 PyObject *resultobj;
26021 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26022 wxImageList *arg2 = (wxImageList *) 0 ;
26023 PyObject * obj0 = 0 ;
26024 PyObject * obj1 = 0 ;
26025 char *kwnames[] = {
26026 (char *) "self",(char *) "imageList", NULL
26027 };
26028
26029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
26030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26034 {
26035 PyThreadState* __tstate = wxPyBeginAllowThreads();
26036 (arg1)->SetStateImageList(arg2);
26037
26038 wxPyEndAllowThreads(__tstate);
26039 if (PyErr_Occurred()) SWIG_fail;
26040 }
26041 Py_INCREF(Py_None); resultobj = Py_None;
26042 return resultobj;
26043 fail:
26044 return NULL;
26045 }
26046
26047
26048 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26049 PyObject *resultobj;
26050 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26051 wxImageList *arg2 = (wxImageList *) 0 ;
26052 PyObject * obj0 = 0 ;
26053 PyObject * obj1 = 0 ;
26054 char *kwnames[] = {
26055 (char *) "self",(char *) "imageList", NULL
26056 };
26057
26058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
26059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26062 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26063 {
26064 PyThreadState* __tstate = wxPyBeginAllowThreads();
26065 (arg1)->AssignImageList(arg2);
26066
26067 wxPyEndAllowThreads(__tstate);
26068 if (PyErr_Occurred()) SWIG_fail;
26069 }
26070 Py_INCREF(Py_None); resultobj = Py_None;
26071 return resultobj;
26072 fail:
26073 return NULL;
26074 }
26075
26076
26077 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26078 PyObject *resultobj;
26079 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26080 wxImageList *arg2 = (wxImageList *) 0 ;
26081 PyObject * obj0 = 0 ;
26082 PyObject * obj1 = 0 ;
26083 char *kwnames[] = {
26084 (char *) "self",(char *) "imageList", NULL
26085 };
26086
26087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
26088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26090 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26091 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26092 {
26093 PyThreadState* __tstate = wxPyBeginAllowThreads();
26094 (arg1)->AssignStateImageList(arg2);
26095
26096 wxPyEndAllowThreads(__tstate);
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 Py_INCREF(Py_None); resultobj = Py_None;
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj;
26108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26109 wxTreeItemId *arg2 = 0 ;
26110 wxString result;
26111 PyObject * obj0 = 0 ;
26112 PyObject * obj1 = 0 ;
26113 char *kwnames[] = {
26114 (char *) "self",(char *) "item", NULL
26115 };
26116
26117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
26118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26120 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26121 SWIG_POINTER_EXCEPTION | 0)) == -1)
26122 SWIG_fail;
26123 if (arg2 == NULL) {
26124 PyErr_SetString(PyExc_TypeError,"null reference");
26125 SWIG_fail;
26126 }
26127 {
26128 PyThreadState* __tstate = wxPyBeginAllowThreads();
26129 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
26130
26131 wxPyEndAllowThreads(__tstate);
26132 if (PyErr_Occurred()) SWIG_fail;
26133 }
26134 {
26135 #if wxUSE_UNICODE
26136 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26137 #else
26138 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26139 #endif
26140 }
26141 return resultobj;
26142 fail:
26143 return NULL;
26144 }
26145
26146
26147 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26148 PyObject *resultobj;
26149 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26150 wxTreeItemId *arg2 = 0 ;
26151 int arg3 = (int) wxTreeItemIcon_Normal ;
26152 int result;
26153 PyObject * obj0 = 0 ;
26154 PyObject * obj1 = 0 ;
26155 PyObject * obj2 = 0 ;
26156 char *kwnames[] = {
26157 (char *) "self",(char *) "item",(char *) "which", NULL
26158 };
26159
26160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
26161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26163 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26164 SWIG_POINTER_EXCEPTION | 0)) == -1)
26165 SWIG_fail;
26166 if (arg2 == NULL) {
26167 PyErr_SetString(PyExc_TypeError,"null reference");
26168 SWIG_fail;
26169 }
26170 if (obj2) {
26171 arg3 = (int)SWIG_As_int(obj2);
26172 if (PyErr_Occurred()) SWIG_fail;
26173 }
26174 {
26175 PyThreadState* __tstate = wxPyBeginAllowThreads();
26176 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
26177
26178 wxPyEndAllowThreads(__tstate);
26179 if (PyErr_Occurred()) SWIG_fail;
26180 }
26181 resultobj = SWIG_From_int((int)result);
26182 return resultobj;
26183 fail:
26184 return NULL;
26185 }
26186
26187
26188 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26189 PyObject *resultobj;
26190 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26191 wxTreeItemId *arg2 = 0 ;
26192 wxPyTreeItemData *result;
26193 PyObject * obj0 = 0 ;
26194 PyObject * obj1 = 0 ;
26195 char *kwnames[] = {
26196 (char *) "self",(char *) "item", NULL
26197 };
26198
26199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
26200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26203 SWIG_POINTER_EXCEPTION | 0)) == -1)
26204 SWIG_fail;
26205 if (arg2 == NULL) {
26206 PyErr_SetString(PyExc_TypeError,"null reference");
26207 SWIG_fail;
26208 }
26209 {
26210 PyThreadState* __tstate = wxPyBeginAllowThreads();
26211 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
26212
26213 wxPyEndAllowThreads(__tstate);
26214 if (PyErr_Occurred()) SWIG_fail;
26215 }
26216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
26217 return resultobj;
26218 fail:
26219 return NULL;
26220 }
26221
26222
26223 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26224 PyObject *resultobj;
26225 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26226 wxTreeItemId *arg2 = 0 ;
26227 PyObject *result;
26228 PyObject * obj0 = 0 ;
26229 PyObject * obj1 = 0 ;
26230 char *kwnames[] = {
26231 (char *) "self",(char *) "item", NULL
26232 };
26233
26234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
26235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26238 SWIG_POINTER_EXCEPTION | 0)) == -1)
26239 SWIG_fail;
26240 if (arg2 == NULL) {
26241 PyErr_SetString(PyExc_TypeError,"null reference");
26242 SWIG_fail;
26243 }
26244 {
26245 PyThreadState* __tstate = wxPyBeginAllowThreads();
26246 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
26247
26248 wxPyEndAllowThreads(__tstate);
26249 if (PyErr_Occurred()) SWIG_fail;
26250 }
26251 resultobj = result;
26252 return resultobj;
26253 fail:
26254 return NULL;
26255 }
26256
26257
26258 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26259 PyObject *resultobj;
26260 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26261 wxTreeItemId *arg2 = 0 ;
26262 wxColour result;
26263 PyObject * obj0 = 0 ;
26264 PyObject * obj1 = 0 ;
26265 char *kwnames[] = {
26266 (char *) "self",(char *) "item", NULL
26267 };
26268
26269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
26270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26273 SWIG_POINTER_EXCEPTION | 0)) == -1)
26274 SWIG_fail;
26275 if (arg2 == NULL) {
26276 PyErr_SetString(PyExc_TypeError,"null reference");
26277 SWIG_fail;
26278 }
26279 {
26280 PyThreadState* __tstate = wxPyBeginAllowThreads();
26281 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
26282
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 {
26287 wxColour * resultptr;
26288 resultptr = new wxColour((wxColour &) result);
26289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26290 }
26291 return resultobj;
26292 fail:
26293 return NULL;
26294 }
26295
26296
26297 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26298 PyObject *resultobj;
26299 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26300 wxTreeItemId *arg2 = 0 ;
26301 wxColour result;
26302 PyObject * obj0 = 0 ;
26303 PyObject * obj1 = 0 ;
26304 char *kwnames[] = {
26305 (char *) "self",(char *) "item", NULL
26306 };
26307
26308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26312 SWIG_POINTER_EXCEPTION | 0)) == -1)
26313 SWIG_fail;
26314 if (arg2 == NULL) {
26315 PyErr_SetString(PyExc_TypeError,"null reference");
26316 SWIG_fail;
26317 }
26318 {
26319 PyThreadState* __tstate = wxPyBeginAllowThreads();
26320 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
26321
26322 wxPyEndAllowThreads(__tstate);
26323 if (PyErr_Occurred()) SWIG_fail;
26324 }
26325 {
26326 wxColour * resultptr;
26327 resultptr = new wxColour((wxColour &) result);
26328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26329 }
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26337 PyObject *resultobj;
26338 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26339 wxTreeItemId *arg2 = 0 ;
26340 wxFont result;
26341 PyObject * obj0 = 0 ;
26342 PyObject * obj1 = 0 ;
26343 char *kwnames[] = {
26344 (char *) "self",(char *) "item", NULL
26345 };
26346
26347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26350 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26351 SWIG_POINTER_EXCEPTION | 0)) == -1)
26352 SWIG_fail;
26353 if (arg2 == NULL) {
26354 PyErr_SetString(PyExc_TypeError,"null reference");
26355 SWIG_fail;
26356 }
26357 {
26358 PyThreadState* __tstate = wxPyBeginAllowThreads();
26359 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26360
26361 wxPyEndAllowThreads(__tstate);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 {
26365 wxFont * resultptr;
26366 resultptr = new wxFont((wxFont &) result);
26367 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26368 }
26369 return resultobj;
26370 fail:
26371 return NULL;
26372 }
26373
26374
26375 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26376 PyObject *resultobj;
26377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26378 wxTreeItemId *arg2 = 0 ;
26379 wxString *arg3 = 0 ;
26380 bool temp3 = false ;
26381 PyObject * obj0 = 0 ;
26382 PyObject * obj1 = 0 ;
26383 PyObject * obj2 = 0 ;
26384 char *kwnames[] = {
26385 (char *) "self",(char *) "item",(char *) "text", NULL
26386 };
26387
26388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26392 SWIG_POINTER_EXCEPTION | 0)) == -1)
26393 SWIG_fail;
26394 if (arg2 == NULL) {
26395 PyErr_SetString(PyExc_TypeError,"null reference");
26396 SWIG_fail;
26397 }
26398 {
26399 arg3 = wxString_in_helper(obj2);
26400 if (arg3 == NULL) SWIG_fail;
26401 temp3 = true;
26402 }
26403 {
26404 PyThreadState* __tstate = wxPyBeginAllowThreads();
26405 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26406
26407 wxPyEndAllowThreads(__tstate);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 Py_INCREF(Py_None); resultobj = Py_None;
26411 {
26412 if (temp3)
26413 delete arg3;
26414 }
26415 return resultobj;
26416 fail:
26417 {
26418 if (temp3)
26419 delete arg3;
26420 }
26421 return NULL;
26422 }
26423
26424
26425 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26426 PyObject *resultobj;
26427 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26428 wxTreeItemId *arg2 = 0 ;
26429 int arg3 ;
26430 int arg4 = (int) wxTreeItemIcon_Normal ;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 PyObject * obj2 = 0 ;
26434 PyObject * obj3 = 0 ;
26435 char *kwnames[] = {
26436 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26437 };
26438
26439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26443 SWIG_POINTER_EXCEPTION | 0)) == -1)
26444 SWIG_fail;
26445 if (arg2 == NULL) {
26446 PyErr_SetString(PyExc_TypeError,"null reference");
26447 SWIG_fail;
26448 }
26449 arg3 = (int)SWIG_As_int(obj2);
26450 if (PyErr_Occurred()) SWIG_fail;
26451 if (obj3) {
26452 arg4 = (int)SWIG_As_int(obj3);
26453 if (PyErr_Occurred()) SWIG_fail;
26454 }
26455 {
26456 PyThreadState* __tstate = wxPyBeginAllowThreads();
26457 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26458
26459 wxPyEndAllowThreads(__tstate);
26460 if (PyErr_Occurred()) SWIG_fail;
26461 }
26462 Py_INCREF(Py_None); resultobj = Py_None;
26463 return resultobj;
26464 fail:
26465 return NULL;
26466 }
26467
26468
26469 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26470 PyObject *resultobj;
26471 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26472 wxTreeItemId *arg2 = 0 ;
26473 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26474 PyObject * obj0 = 0 ;
26475 PyObject * obj1 = 0 ;
26476 PyObject * obj2 = 0 ;
26477 char *kwnames[] = {
26478 (char *) "self",(char *) "item",(char *) "data", NULL
26479 };
26480
26481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26484 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26485 SWIG_POINTER_EXCEPTION | 0)) == -1)
26486 SWIG_fail;
26487 if (arg2 == NULL) {
26488 PyErr_SetString(PyExc_TypeError,"null reference");
26489 SWIG_fail;
26490 }
26491 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26496
26497 wxPyEndAllowThreads(__tstate);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 Py_INCREF(Py_None); resultobj = Py_None;
26501 return resultobj;
26502 fail:
26503 return NULL;
26504 }
26505
26506
26507 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26508 PyObject *resultobj;
26509 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26510 wxTreeItemId *arg2 = 0 ;
26511 PyObject *arg3 = (PyObject *) 0 ;
26512 PyObject * obj0 = 0 ;
26513 PyObject * obj1 = 0 ;
26514 PyObject * obj2 = 0 ;
26515 char *kwnames[] = {
26516 (char *) "self",(char *) "item",(char *) "obj", NULL
26517 };
26518
26519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26522 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26523 SWIG_POINTER_EXCEPTION | 0)) == -1)
26524 SWIG_fail;
26525 if (arg2 == NULL) {
26526 PyErr_SetString(PyExc_TypeError,"null reference");
26527 SWIG_fail;
26528 }
26529 arg3 = obj2;
26530 {
26531 PyThreadState* __tstate = wxPyBeginAllowThreads();
26532 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26533
26534 wxPyEndAllowThreads(__tstate);
26535 if (PyErr_Occurred()) SWIG_fail;
26536 }
26537 Py_INCREF(Py_None); resultobj = Py_None;
26538 return resultobj;
26539 fail:
26540 return NULL;
26541 }
26542
26543
26544 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26545 PyObject *resultobj;
26546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26547 wxTreeItemId *arg2 = 0 ;
26548 bool arg3 = (bool) true ;
26549 PyObject * obj0 = 0 ;
26550 PyObject * obj1 = 0 ;
26551 PyObject * obj2 = 0 ;
26552 char *kwnames[] = {
26553 (char *) "self",(char *) "item",(char *) "has", NULL
26554 };
26555
26556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26560 SWIG_POINTER_EXCEPTION | 0)) == -1)
26561 SWIG_fail;
26562 if (arg2 == NULL) {
26563 PyErr_SetString(PyExc_TypeError,"null reference");
26564 SWIG_fail;
26565 }
26566 if (obj2) {
26567 arg3 = (bool)SWIG_As_bool(obj2);
26568 if (PyErr_Occurred()) SWIG_fail;
26569 }
26570 {
26571 PyThreadState* __tstate = wxPyBeginAllowThreads();
26572 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26573
26574 wxPyEndAllowThreads(__tstate);
26575 if (PyErr_Occurred()) SWIG_fail;
26576 }
26577 Py_INCREF(Py_None); resultobj = Py_None;
26578 return resultobj;
26579 fail:
26580 return NULL;
26581 }
26582
26583
26584 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26585 PyObject *resultobj;
26586 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26587 wxTreeItemId *arg2 = 0 ;
26588 bool arg3 = (bool) true ;
26589 PyObject * obj0 = 0 ;
26590 PyObject * obj1 = 0 ;
26591 PyObject * obj2 = 0 ;
26592 char *kwnames[] = {
26593 (char *) "self",(char *) "item",(char *) "bold", NULL
26594 };
26595
26596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26599 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26600 SWIG_POINTER_EXCEPTION | 0)) == -1)
26601 SWIG_fail;
26602 if (arg2 == NULL) {
26603 PyErr_SetString(PyExc_TypeError,"null reference");
26604 SWIG_fail;
26605 }
26606 if (obj2) {
26607 arg3 = (bool)SWIG_As_bool(obj2);
26608 if (PyErr_Occurred()) SWIG_fail;
26609 }
26610 {
26611 PyThreadState* __tstate = wxPyBeginAllowThreads();
26612 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26613
26614 wxPyEndAllowThreads(__tstate);
26615 if (PyErr_Occurred()) SWIG_fail;
26616 }
26617 Py_INCREF(Py_None); resultobj = Py_None;
26618 return resultobj;
26619 fail:
26620 return NULL;
26621 }
26622
26623
26624 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) {
26625 PyObject *resultobj;
26626 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26627 wxTreeItemId *arg2 = 0 ;
26628 bool arg3 = (bool) true ;
26629 PyObject * obj0 = 0 ;
26630 PyObject * obj1 = 0 ;
26631 PyObject * obj2 = 0 ;
26632 char *kwnames[] = {
26633 (char *) "self",(char *) "item",(char *) "highlight", NULL
26634 };
26635
26636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
26637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26639 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26640 SWIG_POINTER_EXCEPTION | 0)) == -1)
26641 SWIG_fail;
26642 if (arg2 == NULL) {
26643 PyErr_SetString(PyExc_TypeError,"null reference");
26644 SWIG_fail;
26645 }
26646 if (obj2) {
26647 arg3 = (bool)SWIG_As_bool(obj2);
26648 if (PyErr_Occurred()) SWIG_fail;
26649 }
26650 {
26651 PyThreadState* __tstate = wxPyBeginAllowThreads();
26652 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26653
26654 wxPyEndAllowThreads(__tstate);
26655 if (PyErr_Occurred()) SWIG_fail;
26656 }
26657 Py_INCREF(Py_None); resultobj = Py_None;
26658 return resultobj;
26659 fail:
26660 return NULL;
26661 }
26662
26663
26664 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26665 PyObject *resultobj;
26666 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26667 wxTreeItemId *arg2 = 0 ;
26668 wxColour *arg3 = 0 ;
26669 wxColour temp3 ;
26670 PyObject * obj0 = 0 ;
26671 PyObject * obj1 = 0 ;
26672 PyObject * obj2 = 0 ;
26673 char *kwnames[] = {
26674 (char *) "self",(char *) "item",(char *) "col", NULL
26675 };
26676
26677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26680 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26681 SWIG_POINTER_EXCEPTION | 0)) == -1)
26682 SWIG_fail;
26683 if (arg2 == NULL) {
26684 PyErr_SetString(PyExc_TypeError,"null reference");
26685 SWIG_fail;
26686 }
26687 {
26688 arg3 = &temp3;
26689 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26690 }
26691 {
26692 PyThreadState* __tstate = wxPyBeginAllowThreads();
26693 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26694
26695 wxPyEndAllowThreads(__tstate);
26696 if (PyErr_Occurred()) SWIG_fail;
26697 }
26698 Py_INCREF(Py_None); resultobj = Py_None;
26699 return resultobj;
26700 fail:
26701 return NULL;
26702 }
26703
26704
26705 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26706 PyObject *resultobj;
26707 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26708 wxTreeItemId *arg2 = 0 ;
26709 wxColour *arg3 = 0 ;
26710 wxColour temp3 ;
26711 PyObject * obj0 = 0 ;
26712 PyObject * obj1 = 0 ;
26713 PyObject * obj2 = 0 ;
26714 char *kwnames[] = {
26715 (char *) "self",(char *) "item",(char *) "col", NULL
26716 };
26717
26718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26722 SWIG_POINTER_EXCEPTION | 0)) == -1)
26723 SWIG_fail;
26724 if (arg2 == NULL) {
26725 PyErr_SetString(PyExc_TypeError,"null reference");
26726 SWIG_fail;
26727 }
26728 {
26729 arg3 = &temp3;
26730 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26731 }
26732 {
26733 PyThreadState* __tstate = wxPyBeginAllowThreads();
26734 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26735
26736 wxPyEndAllowThreads(__tstate);
26737 if (PyErr_Occurred()) SWIG_fail;
26738 }
26739 Py_INCREF(Py_None); resultobj = Py_None;
26740 return resultobj;
26741 fail:
26742 return NULL;
26743 }
26744
26745
26746 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26747 PyObject *resultobj;
26748 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26749 wxTreeItemId *arg2 = 0 ;
26750 wxFont *arg3 = 0 ;
26751 PyObject * obj0 = 0 ;
26752 PyObject * obj1 = 0 ;
26753 PyObject * obj2 = 0 ;
26754 char *kwnames[] = {
26755 (char *) "self",(char *) "item",(char *) "font", NULL
26756 };
26757
26758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26762 SWIG_POINTER_EXCEPTION | 0)) == -1)
26763 SWIG_fail;
26764 if (arg2 == NULL) {
26765 PyErr_SetString(PyExc_TypeError,"null reference");
26766 SWIG_fail;
26767 }
26768 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26769 SWIG_POINTER_EXCEPTION | 0)) == -1)
26770 SWIG_fail;
26771 if (arg3 == NULL) {
26772 PyErr_SetString(PyExc_TypeError,"null reference");
26773 SWIG_fail;
26774 }
26775 {
26776 PyThreadState* __tstate = wxPyBeginAllowThreads();
26777 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26778
26779 wxPyEndAllowThreads(__tstate);
26780 if (PyErr_Occurred()) SWIG_fail;
26781 }
26782 Py_INCREF(Py_None); resultobj = Py_None;
26783 return resultobj;
26784 fail:
26785 return NULL;
26786 }
26787
26788
26789 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26790 PyObject *resultobj;
26791 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26792 wxTreeItemId *arg2 = 0 ;
26793 bool result;
26794 PyObject * obj0 = 0 ;
26795 PyObject * obj1 = 0 ;
26796 char *kwnames[] = {
26797 (char *) "self",(char *) "item", NULL
26798 };
26799
26800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26803 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26804 SWIG_POINTER_EXCEPTION | 0)) == -1)
26805 SWIG_fail;
26806 if (arg2 == NULL) {
26807 PyErr_SetString(PyExc_TypeError,"null reference");
26808 SWIG_fail;
26809 }
26810 {
26811 PyThreadState* __tstate = wxPyBeginAllowThreads();
26812 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26813
26814 wxPyEndAllowThreads(__tstate);
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 {
26818 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26819 }
26820 return resultobj;
26821 fail:
26822 return NULL;
26823 }
26824
26825
26826 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26827 PyObject *resultobj;
26828 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26829 wxTreeItemId *arg2 = 0 ;
26830 bool result;
26831 PyObject * obj0 = 0 ;
26832 PyObject * obj1 = 0 ;
26833 char *kwnames[] = {
26834 (char *) "self",(char *) "item", NULL
26835 };
26836
26837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26841 SWIG_POINTER_EXCEPTION | 0)) == -1)
26842 SWIG_fail;
26843 if (arg2 == NULL) {
26844 PyErr_SetString(PyExc_TypeError,"null reference");
26845 SWIG_fail;
26846 }
26847 {
26848 PyThreadState* __tstate = wxPyBeginAllowThreads();
26849 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26850
26851 wxPyEndAllowThreads(__tstate);
26852 if (PyErr_Occurred()) SWIG_fail;
26853 }
26854 {
26855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26856 }
26857 return resultobj;
26858 fail:
26859 return NULL;
26860 }
26861
26862
26863 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26864 PyObject *resultobj;
26865 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26866 wxTreeItemId *arg2 = 0 ;
26867 bool result;
26868 PyObject * obj0 = 0 ;
26869 PyObject * obj1 = 0 ;
26870 char *kwnames[] = {
26871 (char *) "self",(char *) "item", NULL
26872 };
26873
26874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26878 SWIG_POINTER_EXCEPTION | 0)) == -1)
26879 SWIG_fail;
26880 if (arg2 == NULL) {
26881 PyErr_SetString(PyExc_TypeError,"null reference");
26882 SWIG_fail;
26883 }
26884 {
26885 PyThreadState* __tstate = wxPyBeginAllowThreads();
26886 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26887
26888 wxPyEndAllowThreads(__tstate);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 }
26891 {
26892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26893 }
26894 return resultobj;
26895 fail:
26896 return NULL;
26897 }
26898
26899
26900 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26901 PyObject *resultobj;
26902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26903 wxTreeItemId *arg2 = 0 ;
26904 bool result;
26905 PyObject * obj0 = 0 ;
26906 PyObject * obj1 = 0 ;
26907 char *kwnames[] = {
26908 (char *) "self",(char *) "item", NULL
26909 };
26910
26911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26915 SWIG_POINTER_EXCEPTION | 0)) == -1)
26916 SWIG_fail;
26917 if (arg2 == NULL) {
26918 PyErr_SetString(PyExc_TypeError,"null reference");
26919 SWIG_fail;
26920 }
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26924
26925 wxPyEndAllowThreads(__tstate);
26926 if (PyErr_Occurred()) SWIG_fail;
26927 }
26928 {
26929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26930 }
26931 return resultobj;
26932 fail:
26933 return NULL;
26934 }
26935
26936
26937 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26938 PyObject *resultobj;
26939 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26940 wxTreeItemId *arg2 = 0 ;
26941 bool result;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 char *kwnames[] = {
26945 (char *) "self",(char *) "item", NULL
26946 };
26947
26948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26952 SWIG_POINTER_EXCEPTION | 0)) == -1)
26953 SWIG_fail;
26954 if (arg2 == NULL) {
26955 PyErr_SetString(PyExc_TypeError,"null reference");
26956 SWIG_fail;
26957 }
26958 {
26959 PyThreadState* __tstate = wxPyBeginAllowThreads();
26960 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26961
26962 wxPyEndAllowThreads(__tstate);
26963 if (PyErr_Occurred()) SWIG_fail;
26964 }
26965 {
26966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26967 }
26968 return resultobj;
26969 fail:
26970 return NULL;
26971 }
26972
26973
26974 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26975 PyObject *resultobj;
26976 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26977 wxTreeItemId *arg2 = 0 ;
26978 bool arg3 = (bool) true ;
26979 size_t result;
26980 PyObject * obj0 = 0 ;
26981 PyObject * obj1 = 0 ;
26982 PyObject * obj2 = 0 ;
26983 char *kwnames[] = {
26984 (char *) "self",(char *) "item",(char *) "recursively", NULL
26985 };
26986
26987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26991 SWIG_POINTER_EXCEPTION | 0)) == -1)
26992 SWIG_fail;
26993 if (arg2 == NULL) {
26994 PyErr_SetString(PyExc_TypeError,"null reference");
26995 SWIG_fail;
26996 }
26997 if (obj2) {
26998 arg3 = (bool)SWIG_As_bool(obj2);
26999 if (PyErr_Occurred()) SWIG_fail;
27000 }
27001 {
27002 PyThreadState* __tstate = wxPyBeginAllowThreads();
27003 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
27004
27005 wxPyEndAllowThreads(__tstate);
27006 if (PyErr_Occurred()) SWIG_fail;
27007 }
27008 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
27009 return resultobj;
27010 fail:
27011 return NULL;
27012 }
27013
27014
27015 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
27016 PyObject *resultobj;
27017 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27018 wxTreeItemId result;
27019 PyObject * obj0 = 0 ;
27020 char *kwnames[] = {
27021 (char *) "self", NULL
27022 };
27023
27024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
27025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27027 {
27028 PyThreadState* __tstate = wxPyBeginAllowThreads();
27029 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
27030
27031 wxPyEndAllowThreads(__tstate);
27032 if (PyErr_Occurred()) SWIG_fail;
27033 }
27034 {
27035 wxTreeItemId * resultptr;
27036 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27037 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27038 }
27039 return resultobj;
27040 fail:
27041 return NULL;
27042 }
27043
27044
27045 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27046 PyObject *resultobj;
27047 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27048 wxTreeItemId result;
27049 PyObject * obj0 = 0 ;
27050 char *kwnames[] = {
27051 (char *) "self", NULL
27052 };
27053
27054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
27055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27057 {
27058 PyThreadState* __tstate = wxPyBeginAllowThreads();
27059 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
27060
27061 wxPyEndAllowThreads(__tstate);
27062 if (PyErr_Occurred()) SWIG_fail;
27063 }
27064 {
27065 wxTreeItemId * resultptr;
27066 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27067 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27068 }
27069 return resultobj;
27070 fail:
27071 return NULL;
27072 }
27073
27074
27075 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
27076 PyObject *resultobj;
27077 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27078 PyObject *result;
27079 PyObject * obj0 = 0 ;
27080 char *kwnames[] = {
27081 (char *) "self", NULL
27082 };
27083
27084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
27085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27087 {
27088 PyThreadState* __tstate = wxPyBeginAllowThreads();
27089 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
27090
27091 wxPyEndAllowThreads(__tstate);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 resultobj = result;
27095 return resultobj;
27096 fail:
27097 return NULL;
27098 }
27099
27100
27101 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
27102 PyObject *resultobj;
27103 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27104 wxTreeItemId *arg2 = 0 ;
27105 wxTreeItemId result;
27106 PyObject * obj0 = 0 ;
27107 PyObject * obj1 = 0 ;
27108 char *kwnames[] = {
27109 (char *) "self",(char *) "item", NULL
27110 };
27111
27112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
27113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27116 SWIG_POINTER_EXCEPTION | 0)) == -1)
27117 SWIG_fail;
27118 if (arg2 == NULL) {
27119 PyErr_SetString(PyExc_TypeError,"null reference");
27120 SWIG_fail;
27121 }
27122 {
27123 PyThreadState* __tstate = wxPyBeginAllowThreads();
27124 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
27125
27126 wxPyEndAllowThreads(__tstate);
27127 if (PyErr_Occurred()) SWIG_fail;
27128 }
27129 {
27130 wxTreeItemId * resultptr;
27131 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27132 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27133 }
27134 return resultobj;
27135 fail:
27136 return NULL;
27137 }
27138
27139
27140 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
27141 PyObject *resultobj;
27142 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27143 wxTreeItemId *arg2 = 0 ;
27144 PyObject *result;
27145 PyObject * obj0 = 0 ;
27146 PyObject * obj1 = 0 ;
27147 char *kwnames[] = {
27148 (char *) "self",(char *) "item", NULL
27149 };
27150
27151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
27152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27154 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27155 SWIG_POINTER_EXCEPTION | 0)) == -1)
27156 SWIG_fail;
27157 if (arg2 == NULL) {
27158 PyErr_SetString(PyExc_TypeError,"null reference");
27159 SWIG_fail;
27160 }
27161 {
27162 PyThreadState* __tstate = wxPyBeginAllowThreads();
27163 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
27164
27165 wxPyEndAllowThreads(__tstate);
27166 if (PyErr_Occurred()) SWIG_fail;
27167 }
27168 resultobj = result;
27169 return resultobj;
27170 fail:
27171 return NULL;
27172 }
27173
27174
27175 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
27176 PyObject *resultobj;
27177 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27178 wxTreeItemId *arg2 = 0 ;
27179 void *arg3 = (void *) 0 ;
27180 PyObject *result;
27181 PyObject * obj0 = 0 ;
27182 PyObject * obj1 = 0 ;
27183 PyObject * obj2 = 0 ;
27184 char *kwnames[] = {
27185 (char *) "self",(char *) "item",(char *) "cookie", NULL
27186 };
27187
27188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27192 SWIG_POINTER_EXCEPTION | 0)) == -1)
27193 SWIG_fail;
27194 if (arg2 == NULL) {
27195 PyErr_SetString(PyExc_TypeError,"null reference");
27196 SWIG_fail;
27197 }
27198 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27199 {
27200 PyThreadState* __tstate = wxPyBeginAllowThreads();
27201 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
27202
27203 wxPyEndAllowThreads(__tstate);
27204 if (PyErr_Occurred()) SWIG_fail;
27205 }
27206 resultobj = result;
27207 return resultobj;
27208 fail:
27209 return NULL;
27210 }
27211
27212
27213 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
27214 PyObject *resultobj;
27215 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27216 wxTreeItemId *arg2 = 0 ;
27217 wxTreeItemId result;
27218 PyObject * obj0 = 0 ;
27219 PyObject * obj1 = 0 ;
27220 char *kwnames[] = {
27221 (char *) "self",(char *) "item", NULL
27222 };
27223
27224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
27225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27227 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27228 SWIG_POINTER_EXCEPTION | 0)) == -1)
27229 SWIG_fail;
27230 if (arg2 == NULL) {
27231 PyErr_SetString(PyExc_TypeError,"null reference");
27232 SWIG_fail;
27233 }
27234 {
27235 PyThreadState* __tstate = wxPyBeginAllowThreads();
27236 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
27237
27238 wxPyEndAllowThreads(__tstate);
27239 if (PyErr_Occurred()) SWIG_fail;
27240 }
27241 {
27242 wxTreeItemId * resultptr;
27243 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27245 }
27246 return resultobj;
27247 fail:
27248 return NULL;
27249 }
27250
27251
27252 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27253 PyObject *resultobj;
27254 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27255 wxTreeItemId *arg2 = 0 ;
27256 wxTreeItemId result;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 char *kwnames[] = {
27260 (char *) "self",(char *) "item", NULL
27261 };
27262
27263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
27264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27266 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27267 SWIG_POINTER_EXCEPTION | 0)) == -1)
27268 SWIG_fail;
27269 if (arg2 == NULL) {
27270 PyErr_SetString(PyExc_TypeError,"null reference");
27271 SWIG_fail;
27272 }
27273 {
27274 PyThreadState* __tstate = wxPyBeginAllowThreads();
27275 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
27276
27277 wxPyEndAllowThreads(__tstate);
27278 if (PyErr_Occurred()) SWIG_fail;
27279 }
27280 {
27281 wxTreeItemId * resultptr;
27282 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27283 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27284 }
27285 return resultobj;
27286 fail:
27287 return NULL;
27288 }
27289
27290
27291 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27292 PyObject *resultobj;
27293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27294 wxTreeItemId *arg2 = 0 ;
27295 wxTreeItemId result;
27296 PyObject * obj0 = 0 ;
27297 PyObject * obj1 = 0 ;
27298 char *kwnames[] = {
27299 (char *) "self",(char *) "item", NULL
27300 };
27301
27302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
27303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27306 SWIG_POINTER_EXCEPTION | 0)) == -1)
27307 SWIG_fail;
27308 if (arg2 == NULL) {
27309 PyErr_SetString(PyExc_TypeError,"null reference");
27310 SWIG_fail;
27311 }
27312 {
27313 PyThreadState* __tstate = wxPyBeginAllowThreads();
27314 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
27315
27316 wxPyEndAllowThreads(__tstate);
27317 if (PyErr_Occurred()) SWIG_fail;
27318 }
27319 {
27320 wxTreeItemId * resultptr;
27321 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27322 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27323 }
27324 return resultobj;
27325 fail:
27326 return NULL;
27327 }
27328
27329
27330 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
27331 PyObject *resultobj;
27332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27333 wxTreeItemId result;
27334 PyObject * obj0 = 0 ;
27335 char *kwnames[] = {
27336 (char *) "self", NULL
27337 };
27338
27339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27342 {
27343 PyThreadState* __tstate = wxPyBeginAllowThreads();
27344 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27345
27346 wxPyEndAllowThreads(__tstate);
27347 if (PyErr_Occurred()) SWIG_fail;
27348 }
27349 {
27350 wxTreeItemId * resultptr;
27351 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27353 }
27354 return resultobj;
27355 fail:
27356 return NULL;
27357 }
27358
27359
27360 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27361 PyObject *resultobj;
27362 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27363 wxTreeItemId *arg2 = 0 ;
27364 wxTreeItemId result;
27365 PyObject * obj0 = 0 ;
27366 PyObject * obj1 = 0 ;
27367 char *kwnames[] = {
27368 (char *) "self",(char *) "item", NULL
27369 };
27370
27371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27375 SWIG_POINTER_EXCEPTION | 0)) == -1)
27376 SWIG_fail;
27377 if (arg2 == NULL) {
27378 PyErr_SetString(PyExc_TypeError,"null reference");
27379 SWIG_fail;
27380 }
27381 {
27382 PyThreadState* __tstate = wxPyBeginAllowThreads();
27383 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27384
27385 wxPyEndAllowThreads(__tstate);
27386 if (PyErr_Occurred()) SWIG_fail;
27387 }
27388 {
27389 wxTreeItemId * resultptr;
27390 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27391 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27392 }
27393 return resultobj;
27394 fail:
27395 return NULL;
27396 }
27397
27398
27399 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27400 PyObject *resultobj;
27401 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27402 wxTreeItemId *arg2 = 0 ;
27403 wxTreeItemId result;
27404 PyObject * obj0 = 0 ;
27405 PyObject * obj1 = 0 ;
27406 char *kwnames[] = {
27407 (char *) "self",(char *) "item", NULL
27408 };
27409
27410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27414 SWIG_POINTER_EXCEPTION | 0)) == -1)
27415 SWIG_fail;
27416 if (arg2 == NULL) {
27417 PyErr_SetString(PyExc_TypeError,"null reference");
27418 SWIG_fail;
27419 }
27420 {
27421 PyThreadState* __tstate = wxPyBeginAllowThreads();
27422 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27423
27424 wxPyEndAllowThreads(__tstate);
27425 if (PyErr_Occurred()) SWIG_fail;
27426 }
27427 {
27428 wxTreeItemId * resultptr;
27429 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27430 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27431 }
27432 return resultobj;
27433 fail:
27434 return NULL;
27435 }
27436
27437
27438 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27439 PyObject *resultobj;
27440 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27441 wxString *arg2 = 0 ;
27442 int arg3 = (int) -1 ;
27443 int arg4 = (int) -1 ;
27444 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27445 wxTreeItemId result;
27446 bool temp2 = false ;
27447 PyObject * obj0 = 0 ;
27448 PyObject * obj1 = 0 ;
27449 PyObject * obj2 = 0 ;
27450 PyObject * obj3 = 0 ;
27451 PyObject * obj4 = 0 ;
27452 char *kwnames[] = {
27453 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27454 };
27455
27456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27459 {
27460 arg2 = wxString_in_helper(obj1);
27461 if (arg2 == NULL) SWIG_fail;
27462 temp2 = true;
27463 }
27464 if (obj2) {
27465 arg3 = (int)SWIG_As_int(obj2);
27466 if (PyErr_Occurred()) SWIG_fail;
27467 }
27468 if (obj3) {
27469 arg4 = (int)SWIG_As_int(obj3);
27470 if (PyErr_Occurred()) SWIG_fail;
27471 }
27472 if (obj4) {
27473 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27475 }
27476 {
27477 PyThreadState* __tstate = wxPyBeginAllowThreads();
27478 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27479
27480 wxPyEndAllowThreads(__tstate);
27481 if (PyErr_Occurred()) SWIG_fail;
27482 }
27483 {
27484 wxTreeItemId * resultptr;
27485 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27487 }
27488 {
27489 if (temp2)
27490 delete arg2;
27491 }
27492 return resultobj;
27493 fail:
27494 {
27495 if (temp2)
27496 delete arg2;
27497 }
27498 return NULL;
27499 }
27500
27501
27502 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27503 PyObject *resultobj;
27504 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27505 wxTreeItemId *arg2 = 0 ;
27506 wxString *arg3 = 0 ;
27507 int arg4 = (int) -1 ;
27508 int arg5 = (int) -1 ;
27509 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27510 wxTreeItemId result;
27511 bool temp3 = false ;
27512 PyObject * obj0 = 0 ;
27513 PyObject * obj1 = 0 ;
27514 PyObject * obj2 = 0 ;
27515 PyObject * obj3 = 0 ;
27516 PyObject * obj4 = 0 ;
27517 PyObject * obj5 = 0 ;
27518 char *kwnames[] = {
27519 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27520 };
27521
27522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27526 SWIG_POINTER_EXCEPTION | 0)) == -1)
27527 SWIG_fail;
27528 if (arg2 == NULL) {
27529 PyErr_SetString(PyExc_TypeError,"null reference");
27530 SWIG_fail;
27531 }
27532 {
27533 arg3 = wxString_in_helper(obj2);
27534 if (arg3 == NULL) SWIG_fail;
27535 temp3 = true;
27536 }
27537 if (obj3) {
27538 arg4 = (int)SWIG_As_int(obj3);
27539 if (PyErr_Occurred()) SWIG_fail;
27540 }
27541 if (obj4) {
27542 arg5 = (int)SWIG_As_int(obj4);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 if (obj5) {
27546 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27548 }
27549 {
27550 PyThreadState* __tstate = wxPyBeginAllowThreads();
27551 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27552
27553 wxPyEndAllowThreads(__tstate);
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 {
27557 wxTreeItemId * resultptr;
27558 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27559 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27560 }
27561 {
27562 if (temp3)
27563 delete arg3;
27564 }
27565 return resultobj;
27566 fail:
27567 {
27568 if (temp3)
27569 delete arg3;
27570 }
27571 return NULL;
27572 }
27573
27574
27575 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27576 PyObject *resultobj;
27577 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27578 wxTreeItemId *arg2 = 0 ;
27579 wxTreeItemId *arg3 = 0 ;
27580 wxString *arg4 = 0 ;
27581 int arg5 = (int) -1 ;
27582 int arg6 = (int) -1 ;
27583 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27584 wxTreeItemId result;
27585 bool temp4 = false ;
27586 PyObject * obj0 = 0 ;
27587 PyObject * obj1 = 0 ;
27588 PyObject * obj2 = 0 ;
27589 PyObject * obj3 = 0 ;
27590 PyObject * obj4 = 0 ;
27591 PyObject * obj5 = 0 ;
27592 PyObject * obj6 = 0 ;
27593 char *kwnames[] = {
27594 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27595 };
27596
27597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27601 SWIG_POINTER_EXCEPTION | 0)) == -1)
27602 SWIG_fail;
27603 if (arg2 == NULL) {
27604 PyErr_SetString(PyExc_TypeError,"null reference");
27605 SWIG_fail;
27606 }
27607 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27608 SWIG_POINTER_EXCEPTION | 0)) == -1)
27609 SWIG_fail;
27610 if (arg3 == NULL) {
27611 PyErr_SetString(PyExc_TypeError,"null reference");
27612 SWIG_fail;
27613 }
27614 {
27615 arg4 = wxString_in_helper(obj3);
27616 if (arg4 == NULL) SWIG_fail;
27617 temp4 = true;
27618 }
27619 if (obj4) {
27620 arg5 = (int)SWIG_As_int(obj4);
27621 if (PyErr_Occurred()) SWIG_fail;
27622 }
27623 if (obj5) {
27624 arg6 = (int)SWIG_As_int(obj5);
27625 if (PyErr_Occurred()) SWIG_fail;
27626 }
27627 if (obj6) {
27628 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27630 }
27631 {
27632 PyThreadState* __tstate = wxPyBeginAllowThreads();
27633 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27634
27635 wxPyEndAllowThreads(__tstate);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 {
27639 wxTreeItemId * resultptr;
27640 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27642 }
27643 {
27644 if (temp4)
27645 delete arg4;
27646 }
27647 return resultobj;
27648 fail:
27649 {
27650 if (temp4)
27651 delete arg4;
27652 }
27653 return NULL;
27654 }
27655
27656
27657 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27658 PyObject *resultobj;
27659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27660 wxTreeItemId *arg2 = 0 ;
27661 size_t arg3 ;
27662 wxString *arg4 = 0 ;
27663 int arg5 = (int) -1 ;
27664 int arg6 = (int) -1 ;
27665 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27666 wxTreeItemId result;
27667 bool temp4 = false ;
27668 PyObject * obj0 = 0 ;
27669 PyObject * obj1 = 0 ;
27670 PyObject * obj2 = 0 ;
27671 PyObject * obj3 = 0 ;
27672 PyObject * obj4 = 0 ;
27673 PyObject * obj5 = 0 ;
27674 PyObject * obj6 = 0 ;
27675 char *kwnames[] = {
27676 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27677 };
27678
27679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27683 SWIG_POINTER_EXCEPTION | 0)) == -1)
27684 SWIG_fail;
27685 if (arg2 == NULL) {
27686 PyErr_SetString(PyExc_TypeError,"null reference");
27687 SWIG_fail;
27688 }
27689 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27690 if (PyErr_Occurred()) SWIG_fail;
27691 {
27692 arg4 = wxString_in_helper(obj3);
27693 if (arg4 == NULL) SWIG_fail;
27694 temp4 = true;
27695 }
27696 if (obj4) {
27697 arg5 = (int)SWIG_As_int(obj4);
27698 if (PyErr_Occurred()) SWIG_fail;
27699 }
27700 if (obj5) {
27701 arg6 = (int)SWIG_As_int(obj5);
27702 if (PyErr_Occurred()) SWIG_fail;
27703 }
27704 if (obj6) {
27705 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27707 }
27708 {
27709 PyThreadState* __tstate = wxPyBeginAllowThreads();
27710 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27711
27712 wxPyEndAllowThreads(__tstate);
27713 if (PyErr_Occurred()) SWIG_fail;
27714 }
27715 {
27716 wxTreeItemId * resultptr;
27717 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27718 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27719 }
27720 {
27721 if (temp4)
27722 delete arg4;
27723 }
27724 return resultobj;
27725 fail:
27726 {
27727 if (temp4)
27728 delete arg4;
27729 }
27730 return NULL;
27731 }
27732
27733
27734 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27735 PyObject *resultobj;
27736 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27737 wxTreeItemId *arg2 = 0 ;
27738 wxString *arg3 = 0 ;
27739 int arg4 = (int) -1 ;
27740 int arg5 = (int) -1 ;
27741 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27742 wxTreeItemId result;
27743 bool temp3 = false ;
27744 PyObject * obj0 = 0 ;
27745 PyObject * obj1 = 0 ;
27746 PyObject * obj2 = 0 ;
27747 PyObject * obj3 = 0 ;
27748 PyObject * obj4 = 0 ;
27749 PyObject * obj5 = 0 ;
27750 char *kwnames[] = {
27751 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27752 };
27753
27754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27758 SWIG_POINTER_EXCEPTION | 0)) == -1)
27759 SWIG_fail;
27760 if (arg2 == NULL) {
27761 PyErr_SetString(PyExc_TypeError,"null reference");
27762 SWIG_fail;
27763 }
27764 {
27765 arg3 = wxString_in_helper(obj2);
27766 if (arg3 == NULL) SWIG_fail;
27767 temp3 = true;
27768 }
27769 if (obj3) {
27770 arg4 = (int)SWIG_As_int(obj3);
27771 if (PyErr_Occurred()) SWIG_fail;
27772 }
27773 if (obj4) {
27774 arg5 = (int)SWIG_As_int(obj4);
27775 if (PyErr_Occurred()) SWIG_fail;
27776 }
27777 if (obj5) {
27778 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27780 }
27781 {
27782 PyThreadState* __tstate = wxPyBeginAllowThreads();
27783 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27784
27785 wxPyEndAllowThreads(__tstate);
27786 if (PyErr_Occurred()) SWIG_fail;
27787 }
27788 {
27789 wxTreeItemId * resultptr;
27790 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27791 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27792 }
27793 {
27794 if (temp3)
27795 delete arg3;
27796 }
27797 return resultobj;
27798 fail:
27799 {
27800 if (temp3)
27801 delete arg3;
27802 }
27803 return NULL;
27804 }
27805
27806
27807 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27808 PyObject *resultobj;
27809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27810 wxTreeItemId *arg2 = 0 ;
27811 PyObject * obj0 = 0 ;
27812 PyObject * obj1 = 0 ;
27813 char *kwnames[] = {
27814 (char *) "self",(char *) "item", NULL
27815 };
27816
27817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27821 SWIG_POINTER_EXCEPTION | 0)) == -1)
27822 SWIG_fail;
27823 if (arg2 == NULL) {
27824 PyErr_SetString(PyExc_TypeError,"null reference");
27825 SWIG_fail;
27826 }
27827 {
27828 PyThreadState* __tstate = wxPyBeginAllowThreads();
27829 (arg1)->Delete((wxTreeItemId const &)*arg2);
27830
27831 wxPyEndAllowThreads(__tstate);
27832 if (PyErr_Occurred()) SWIG_fail;
27833 }
27834 Py_INCREF(Py_None); resultobj = Py_None;
27835 return resultobj;
27836 fail:
27837 return NULL;
27838 }
27839
27840
27841 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27842 PyObject *resultobj;
27843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27844 wxTreeItemId *arg2 = 0 ;
27845 PyObject * obj0 = 0 ;
27846 PyObject * obj1 = 0 ;
27847 char *kwnames[] = {
27848 (char *) "self",(char *) "item", NULL
27849 };
27850
27851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27855 SWIG_POINTER_EXCEPTION | 0)) == -1)
27856 SWIG_fail;
27857 if (arg2 == NULL) {
27858 PyErr_SetString(PyExc_TypeError,"null reference");
27859 SWIG_fail;
27860 }
27861 {
27862 PyThreadState* __tstate = wxPyBeginAllowThreads();
27863 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27864
27865 wxPyEndAllowThreads(__tstate);
27866 if (PyErr_Occurred()) SWIG_fail;
27867 }
27868 Py_INCREF(Py_None); resultobj = Py_None;
27869 return resultobj;
27870 fail:
27871 return NULL;
27872 }
27873
27874
27875 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27876 PyObject *resultobj;
27877 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27878 PyObject * obj0 = 0 ;
27879 char *kwnames[] = {
27880 (char *) "self", NULL
27881 };
27882
27883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27886 {
27887 PyThreadState* __tstate = wxPyBeginAllowThreads();
27888 (arg1)->DeleteAllItems();
27889
27890 wxPyEndAllowThreads(__tstate);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 Py_INCREF(Py_None); resultobj = Py_None;
27894 return resultobj;
27895 fail:
27896 return NULL;
27897 }
27898
27899
27900 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27901 PyObject *resultobj;
27902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27903 wxTreeItemId *arg2 = 0 ;
27904 PyObject * obj0 = 0 ;
27905 PyObject * obj1 = 0 ;
27906 char *kwnames[] = {
27907 (char *) "self",(char *) "item", NULL
27908 };
27909
27910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27914 SWIG_POINTER_EXCEPTION | 0)) == -1)
27915 SWIG_fail;
27916 if (arg2 == NULL) {
27917 PyErr_SetString(PyExc_TypeError,"null reference");
27918 SWIG_fail;
27919 }
27920 {
27921 PyThreadState* __tstate = wxPyBeginAllowThreads();
27922 (arg1)->Expand((wxTreeItemId const &)*arg2);
27923
27924 wxPyEndAllowThreads(__tstate);
27925 if (PyErr_Occurred()) SWIG_fail;
27926 }
27927 Py_INCREF(Py_None); resultobj = Py_None;
27928 return resultobj;
27929 fail:
27930 return NULL;
27931 }
27932
27933
27934 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27935 PyObject *resultobj;
27936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27937 wxTreeItemId *arg2 = 0 ;
27938 PyObject * obj0 = 0 ;
27939 PyObject * obj1 = 0 ;
27940 char *kwnames[] = {
27941 (char *) "self",(char *) "item", NULL
27942 };
27943
27944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27948 SWIG_POINTER_EXCEPTION | 0)) == -1)
27949 SWIG_fail;
27950 if (arg2 == NULL) {
27951 PyErr_SetString(PyExc_TypeError,"null reference");
27952 SWIG_fail;
27953 }
27954 {
27955 PyThreadState* __tstate = wxPyBeginAllowThreads();
27956 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27957
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 Py_INCREF(Py_None); resultobj = Py_None;
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27969 PyObject *resultobj;
27970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27971 wxTreeItemId *arg2 = 0 ;
27972 PyObject * obj0 = 0 ;
27973 PyObject * obj1 = 0 ;
27974 char *kwnames[] = {
27975 (char *) "self",(char *) "item", NULL
27976 };
27977
27978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1)
27983 SWIG_fail;
27984 if (arg2 == NULL) {
27985 PyErr_SetString(PyExc_TypeError,"null reference");
27986 SWIG_fail;
27987 }
27988 {
27989 PyThreadState* __tstate = wxPyBeginAllowThreads();
27990 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27991
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 Py_INCREF(Py_None); resultobj = Py_None;
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj;
28004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28005 wxTreeItemId *arg2 = 0 ;
28006 PyObject * obj0 = 0 ;
28007 PyObject * obj1 = 0 ;
28008 char *kwnames[] = {
28009 (char *) "self",(char *) "item", NULL
28010 };
28011
28012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
28013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28016 SWIG_POINTER_EXCEPTION | 0)) == -1)
28017 SWIG_fail;
28018 if (arg2 == NULL) {
28019 PyErr_SetString(PyExc_TypeError,"null reference");
28020 SWIG_fail;
28021 }
28022 {
28023 PyThreadState* __tstate = wxPyBeginAllowThreads();
28024 (arg1)->Toggle((wxTreeItemId const &)*arg2);
28025
28026 wxPyEndAllowThreads(__tstate);
28027 if (PyErr_Occurred()) SWIG_fail;
28028 }
28029 Py_INCREF(Py_None); resultobj = Py_None;
28030 return resultobj;
28031 fail:
28032 return NULL;
28033 }
28034
28035
28036 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
28037 PyObject *resultobj;
28038 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28039 PyObject * obj0 = 0 ;
28040 char *kwnames[] = {
28041 (char *) "self", NULL
28042 };
28043
28044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
28045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 (arg1)->Unselect();
28050
28051 wxPyEndAllowThreads(__tstate);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 Py_INCREF(Py_None); resultobj = Py_None;
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28064 wxTreeItemId *arg2 = 0 ;
28065 PyObject * obj0 = 0 ;
28066 PyObject * obj1 = 0 ;
28067 char *kwnames[] = {
28068 (char *) "self",(char *) "item", NULL
28069 };
28070
28071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
28072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28075 SWIG_POINTER_EXCEPTION | 0)) == -1)
28076 SWIG_fail;
28077 if (arg2 == NULL) {
28078 PyErr_SetString(PyExc_TypeError,"null reference");
28079 SWIG_fail;
28080 }
28081 {
28082 PyThreadState* __tstate = wxPyBeginAllowThreads();
28083 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
28084
28085 wxPyEndAllowThreads(__tstate);
28086 if (PyErr_Occurred()) SWIG_fail;
28087 }
28088 Py_INCREF(Py_None); resultobj = Py_None;
28089 return resultobj;
28090 fail:
28091 return NULL;
28092 }
28093
28094
28095 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
28096 PyObject *resultobj;
28097 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28098 PyObject * obj0 = 0 ;
28099 char *kwnames[] = {
28100 (char *) "self", NULL
28101 };
28102
28103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
28104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28106 {
28107 PyThreadState* __tstate = wxPyBeginAllowThreads();
28108 (arg1)->UnselectAll();
28109
28110 wxPyEndAllowThreads(__tstate);
28111 if (PyErr_Occurred()) SWIG_fail;
28112 }
28113 Py_INCREF(Py_None); resultobj = Py_None;
28114 return resultobj;
28115 fail:
28116 return NULL;
28117 }
28118
28119
28120 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28121 PyObject *resultobj;
28122 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28123 wxTreeItemId *arg2 = 0 ;
28124 bool arg3 = (bool) true ;
28125 PyObject * obj0 = 0 ;
28126 PyObject * obj1 = 0 ;
28127 PyObject * obj2 = 0 ;
28128 char *kwnames[] = {
28129 (char *) "self",(char *) "item",(char *) "select", NULL
28130 };
28131
28132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
28133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28135 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28136 SWIG_POINTER_EXCEPTION | 0)) == -1)
28137 SWIG_fail;
28138 if (arg2 == NULL) {
28139 PyErr_SetString(PyExc_TypeError,"null reference");
28140 SWIG_fail;
28141 }
28142 if (obj2) {
28143 arg3 = (bool)SWIG_As_bool(obj2);
28144 if (PyErr_Occurred()) SWIG_fail;
28145 }
28146 {
28147 PyThreadState* __tstate = wxPyBeginAllowThreads();
28148 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
28149
28150 wxPyEndAllowThreads(__tstate);
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
28153 Py_INCREF(Py_None); resultobj = Py_None;
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28163 wxTreeItemId *arg2 = 0 ;
28164 PyObject * obj0 = 0 ;
28165 PyObject * obj1 = 0 ;
28166 char *kwnames[] = {
28167 (char *) "self",(char *) "item", NULL
28168 };
28169
28170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
28171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28174 SWIG_POINTER_EXCEPTION | 0)) == -1)
28175 SWIG_fail;
28176 if (arg2 == NULL) {
28177 PyErr_SetString(PyExc_TypeError,"null reference");
28178 SWIG_fail;
28179 }
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
28182 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
28183
28184 wxPyEndAllowThreads(__tstate);
28185 if (PyErr_Occurred()) SWIG_fail;
28186 }
28187 Py_INCREF(Py_None); resultobj = Py_None;
28188 return resultobj;
28189 fail:
28190 return NULL;
28191 }
28192
28193
28194 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
28195 PyObject *resultobj;
28196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28197 wxTreeItemId *arg2 = 0 ;
28198 PyObject * obj0 = 0 ;
28199 PyObject * obj1 = 0 ;
28200 char *kwnames[] = {
28201 (char *) "self",(char *) "item", NULL
28202 };
28203
28204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
28205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28207 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28208 SWIG_POINTER_EXCEPTION | 0)) == -1)
28209 SWIG_fail;
28210 if (arg2 == NULL) {
28211 PyErr_SetString(PyExc_TypeError,"null reference");
28212 SWIG_fail;
28213 }
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
28217
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 Py_INCREF(Py_None); resultobj = Py_None;
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
28229 PyObject *resultobj;
28230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28231 wxTreeItemId *arg2 = 0 ;
28232 PyObject * obj0 = 0 ;
28233 PyObject * obj1 = 0 ;
28234 char *kwnames[] = {
28235 (char *) "self",(char *) "item", NULL
28236 };
28237
28238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
28239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28242 SWIG_POINTER_EXCEPTION | 0)) == -1)
28243 SWIG_fail;
28244 if (arg2 == NULL) {
28245 PyErr_SetString(PyExc_TypeError,"null reference");
28246 SWIG_fail;
28247 }
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
28251
28252 wxPyEndAllowThreads(__tstate);
28253 if (PyErr_Occurred()) SWIG_fail;
28254 }
28255 Py_INCREF(Py_None); resultobj = Py_None;
28256 return resultobj;
28257 fail:
28258 return NULL;
28259 }
28260
28261
28262 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28263 PyObject *resultobj;
28264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28265 wxTreeItemId *arg2 = 0 ;
28266 PyObject * obj0 = 0 ;
28267 PyObject * obj1 = 0 ;
28268 char *kwnames[] = {
28269 (char *) "self",(char *) "item", NULL
28270 };
28271
28272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
28273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28276 SWIG_POINTER_EXCEPTION | 0)) == -1)
28277 SWIG_fail;
28278 if (arg2 == NULL) {
28279 PyErr_SetString(PyExc_TypeError,"null reference");
28280 SWIG_fail;
28281 }
28282 {
28283 PyThreadState* __tstate = wxPyBeginAllowThreads();
28284 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
28285
28286 wxPyEndAllowThreads(__tstate);
28287 if (PyErr_Occurred()) SWIG_fail;
28288 }
28289 Py_INCREF(Py_None); resultobj = Py_None;
28290 return resultobj;
28291 fail:
28292 return NULL;
28293 }
28294
28295
28296 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
28297 PyObject *resultobj;
28298 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28299 wxTextCtrl *result;
28300 PyObject * obj0 = 0 ;
28301 char *kwnames[] = {
28302 (char *) "self", NULL
28303 };
28304
28305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
28306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28308 {
28309 PyThreadState* __tstate = wxPyBeginAllowThreads();
28310 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
28311
28312 wxPyEndAllowThreads(__tstate);
28313 if (PyErr_Occurred()) SWIG_fail;
28314 }
28315 {
28316 resultobj = wxPyMake_wxObject(result, 0);
28317 }
28318 return resultobj;
28319 fail:
28320 return NULL;
28321 }
28322
28323
28324 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28325 PyObject *resultobj;
28326 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28327 wxTreeItemId *arg2 = 0 ;
28328 bool arg3 = (bool) false ;
28329 PyObject * obj0 = 0 ;
28330 PyObject * obj1 = 0 ;
28331 PyObject * obj2 = 0 ;
28332 char *kwnames[] = {
28333 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
28334 };
28335
28336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
28337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28340 SWIG_POINTER_EXCEPTION | 0)) == -1)
28341 SWIG_fail;
28342 if (arg2 == NULL) {
28343 PyErr_SetString(PyExc_TypeError,"null reference");
28344 SWIG_fail;
28345 }
28346 if (obj2) {
28347 arg3 = (bool)SWIG_As_bool(obj2);
28348 if (PyErr_Occurred()) SWIG_fail;
28349 }
28350 {
28351 PyThreadState* __tstate = wxPyBeginAllowThreads();
28352 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
28353
28354 wxPyEndAllowThreads(__tstate);
28355 if (PyErr_Occurred()) SWIG_fail;
28356 }
28357 Py_INCREF(Py_None); resultobj = Py_None;
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28365 PyObject *resultobj;
28366 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28367 wxTreeItemId *arg2 = 0 ;
28368 PyObject * obj0 = 0 ;
28369 PyObject * obj1 = 0 ;
28370 char *kwnames[] = {
28371 (char *) "self",(char *) "item", NULL
28372 };
28373
28374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28377 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28378 SWIG_POINTER_EXCEPTION | 0)) == -1)
28379 SWIG_fail;
28380 if (arg2 == NULL) {
28381 PyErr_SetString(PyExc_TypeError,"null reference");
28382 SWIG_fail;
28383 }
28384 {
28385 PyThreadState* __tstate = wxPyBeginAllowThreads();
28386 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28387
28388 wxPyEndAllowThreads(__tstate);
28389 if (PyErr_Occurred()) SWIG_fail;
28390 }
28391 Py_INCREF(Py_None); resultobj = Py_None;
28392 return resultobj;
28393 fail:
28394 return NULL;
28395 }
28396
28397
28398 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28399 PyObject *resultobj;
28400 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28401 wxPoint *arg2 = 0 ;
28402 int *arg3 = 0 ;
28403 wxTreeItemId result;
28404 wxPoint temp2 ;
28405 int temp3 ;
28406 int res3 = 0 ;
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 char *kwnames[] = {
28410 (char *) "self",(char *) "point", NULL
28411 };
28412
28413 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28417 {
28418 arg2 = &temp2;
28419 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28420 }
28421 {
28422 PyThreadState* __tstate = wxPyBeginAllowThreads();
28423 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28424
28425 wxPyEndAllowThreads(__tstate);
28426 if (PyErr_Occurred()) SWIG_fail;
28427 }
28428 {
28429 wxTreeItemId * resultptr;
28430 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28431 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28432 }
28433 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28434 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28435 return resultobj;
28436 fail:
28437 return NULL;
28438 }
28439
28440
28441 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28442 PyObject *resultobj;
28443 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28444 wxTreeItemId *arg2 = 0 ;
28445 bool arg3 = (bool) false ;
28446 PyObject *result;
28447 PyObject * obj0 = 0 ;
28448 PyObject * obj1 = 0 ;
28449 PyObject * obj2 = 0 ;
28450 char *kwnames[] = {
28451 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28452 };
28453
28454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28458 SWIG_POINTER_EXCEPTION | 0)) == -1)
28459 SWIG_fail;
28460 if (arg2 == NULL) {
28461 PyErr_SetString(PyExc_TypeError,"null reference");
28462 SWIG_fail;
28463 }
28464 if (obj2) {
28465 arg3 = (bool)SWIG_As_bool(obj2);
28466 if (PyErr_Occurred()) SWIG_fail;
28467 }
28468 {
28469 PyThreadState* __tstate = wxPyBeginAllowThreads();
28470 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28471
28472 wxPyEndAllowThreads(__tstate);
28473 if (PyErr_Occurred()) SWIG_fail;
28474 }
28475 resultobj = result;
28476 return resultobj;
28477 fail:
28478 return NULL;
28479 }
28480
28481
28482 static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
28483 PyObject *resultobj;
28484 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28485 wxTreeItemId *arg2 = 0 ;
28486 int arg3 ;
28487 PyObject * obj0 = 0 ;
28488 PyObject * obj1 = 0 ;
28489 PyObject * obj2 = 0 ;
28490 char *kwnames[] = {
28491 (char *) "self",(char *) "node",(char *) "state", NULL
28492 };
28493
28494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail;
28495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28497 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28498 SWIG_POINTER_EXCEPTION | 0)) == -1)
28499 SWIG_fail;
28500 if (arg2 == NULL) {
28501 PyErr_SetString(PyExc_TypeError,"null reference");
28502 SWIG_fail;
28503 }
28504 arg3 = (int)SWIG_As_int(obj2);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 {
28507 PyThreadState* __tstate = wxPyBeginAllowThreads();
28508 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
28509
28510 wxPyEndAllowThreads(__tstate);
28511 if (PyErr_Occurred()) SWIG_fail;
28512 }
28513 Py_INCREF(Py_None); resultobj = Py_None;
28514 return resultobj;
28515 fail:
28516 return NULL;
28517 }
28518
28519
28520 static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
28521 PyObject *resultobj;
28522 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28523 wxTreeItemId *arg2 = 0 ;
28524 int result;
28525 PyObject * obj0 = 0 ;
28526 PyObject * obj1 = 0 ;
28527 char *kwnames[] = {
28528 (char *) "self",(char *) "node", NULL
28529 };
28530
28531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail;
28532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28535 SWIG_POINTER_EXCEPTION | 0)) == -1)
28536 SWIG_fail;
28537 if (arg2 == NULL) {
28538 PyErr_SetString(PyExc_TypeError,"null reference");
28539 SWIG_fail;
28540 }
28541 {
28542 PyThreadState* __tstate = wxPyBeginAllowThreads();
28543 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
28544
28545 wxPyEndAllowThreads(__tstate);
28546 if (PyErr_Occurred()) SWIG_fail;
28547 }
28548 resultobj = SWIG_From_int((int)result);
28549 return resultobj;
28550 fail:
28551 return NULL;
28552 }
28553
28554
28555 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28556 PyObject *resultobj;
28557 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28558 wxVisualAttributes result;
28559 PyObject * obj0 = 0 ;
28560 char *kwnames[] = {
28561 (char *) "variant", NULL
28562 };
28563
28564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28565 if (obj0) {
28566 arg1 = (int)SWIG_As_int(obj0);
28567 if (PyErr_Occurred()) SWIG_fail;
28568 }
28569 {
28570 if (!wxPyCheckForApp()) SWIG_fail;
28571 PyThreadState* __tstate = wxPyBeginAllowThreads();
28572 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28573
28574 wxPyEndAllowThreads(__tstate);
28575 if (PyErr_Occurred()) SWIG_fail;
28576 }
28577 {
28578 wxVisualAttributes * resultptr;
28579 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28581 }
28582 return resultobj;
28583 fail:
28584 return NULL;
28585 }
28586
28587
28588 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28589 PyObject *obj;
28590 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28591 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28592 Py_INCREF(obj);
28593 return Py_BuildValue((char *)"");
28594 }
28595 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28596 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28597 return 1;
28598 }
28599
28600
28601 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28602 PyObject *pyobj;
28603
28604 {
28605 #if wxUSE_UNICODE
28606 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28607 #else
28608 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28609 #endif
28610 }
28611 return pyobj;
28612 }
28613
28614
28615 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28616 PyObject *resultobj;
28617 wxWindow *arg1 = (wxWindow *) 0 ;
28618 int arg2 = (int) (int)-1 ;
28619 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28620 wxString *arg3 = (wxString *) &arg3_defvalue ;
28621 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28622 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28623 wxSize const &arg5_defvalue = wxDefaultSize ;
28624 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28625 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28626 wxString const &arg7_defvalue = wxPyEmptyString ;
28627 wxString *arg7 = (wxString *) &arg7_defvalue ;
28628 int arg8 = (int) 0 ;
28629 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28630 wxString *arg9 = (wxString *) &arg9_defvalue ;
28631 wxGenericDirCtrl *result;
28632 bool temp3 = false ;
28633 wxPoint temp4 ;
28634 wxSize temp5 ;
28635 bool temp7 = false ;
28636 bool temp9 = false ;
28637 PyObject * obj0 = 0 ;
28638 PyObject * obj1 = 0 ;
28639 PyObject * obj2 = 0 ;
28640 PyObject * obj3 = 0 ;
28641 PyObject * obj4 = 0 ;
28642 PyObject * obj5 = 0 ;
28643 PyObject * obj6 = 0 ;
28644 PyObject * obj7 = 0 ;
28645 PyObject * obj8 = 0 ;
28646 char *kwnames[] = {
28647 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28648 };
28649
28650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28653 if (obj1) {
28654 arg2 = (int)SWIG_As_int(obj1);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 if (obj2) {
28658 {
28659 arg3 = wxString_in_helper(obj2);
28660 if (arg3 == NULL) SWIG_fail;
28661 temp3 = true;
28662 }
28663 }
28664 if (obj3) {
28665 {
28666 arg4 = &temp4;
28667 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28668 }
28669 }
28670 if (obj4) {
28671 {
28672 arg5 = &temp5;
28673 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28674 }
28675 }
28676 if (obj5) {
28677 arg6 = (long)SWIG_As_long(obj5);
28678 if (PyErr_Occurred()) SWIG_fail;
28679 }
28680 if (obj6) {
28681 {
28682 arg7 = wxString_in_helper(obj6);
28683 if (arg7 == NULL) SWIG_fail;
28684 temp7 = true;
28685 }
28686 }
28687 if (obj7) {
28688 arg8 = (int)SWIG_As_int(obj7);
28689 if (PyErr_Occurred()) SWIG_fail;
28690 }
28691 if (obj8) {
28692 {
28693 arg9 = wxString_in_helper(obj8);
28694 if (arg9 == NULL) SWIG_fail;
28695 temp9 = true;
28696 }
28697 }
28698 {
28699 if (!wxPyCheckForApp()) SWIG_fail;
28700 PyThreadState* __tstate = wxPyBeginAllowThreads();
28701 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28702
28703 wxPyEndAllowThreads(__tstate);
28704 if (PyErr_Occurred()) SWIG_fail;
28705 }
28706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28707 {
28708 if (temp3)
28709 delete arg3;
28710 }
28711 {
28712 if (temp7)
28713 delete arg7;
28714 }
28715 {
28716 if (temp9)
28717 delete arg9;
28718 }
28719 return resultobj;
28720 fail:
28721 {
28722 if (temp3)
28723 delete arg3;
28724 }
28725 {
28726 if (temp7)
28727 delete arg7;
28728 }
28729 {
28730 if (temp9)
28731 delete arg9;
28732 }
28733 return NULL;
28734 }
28735
28736
28737 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28738 PyObject *resultobj;
28739 wxGenericDirCtrl *result;
28740 char *kwnames[] = {
28741 NULL
28742 };
28743
28744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28745 {
28746 if (!wxPyCheckForApp()) SWIG_fail;
28747 PyThreadState* __tstate = wxPyBeginAllowThreads();
28748 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28749
28750 wxPyEndAllowThreads(__tstate);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
28753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28754 return resultobj;
28755 fail:
28756 return NULL;
28757 }
28758
28759
28760 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28761 PyObject *resultobj;
28762 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28763 wxWindow *arg2 = (wxWindow *) 0 ;
28764 int arg3 = (int) (int)-1 ;
28765 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28766 wxString *arg4 = (wxString *) &arg4_defvalue ;
28767 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28768 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28769 wxSize const &arg6_defvalue = wxDefaultSize ;
28770 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28771 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28772 wxString const &arg8_defvalue = wxPyEmptyString ;
28773 wxString *arg8 = (wxString *) &arg8_defvalue ;
28774 int arg9 = (int) 0 ;
28775 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28776 wxString *arg10 = (wxString *) &arg10_defvalue ;
28777 bool result;
28778 bool temp4 = false ;
28779 wxPoint temp5 ;
28780 wxSize temp6 ;
28781 bool temp8 = false ;
28782 bool temp10 = false ;
28783 PyObject * obj0 = 0 ;
28784 PyObject * obj1 = 0 ;
28785 PyObject * obj2 = 0 ;
28786 PyObject * obj3 = 0 ;
28787 PyObject * obj4 = 0 ;
28788 PyObject * obj5 = 0 ;
28789 PyObject * obj6 = 0 ;
28790 PyObject * obj7 = 0 ;
28791 PyObject * obj8 = 0 ;
28792 PyObject * obj9 = 0 ;
28793 char *kwnames[] = {
28794 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28795 };
28796
28797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28802 if (obj2) {
28803 arg3 = (int)SWIG_As_int(obj2);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 if (obj3) {
28807 {
28808 arg4 = wxString_in_helper(obj3);
28809 if (arg4 == NULL) SWIG_fail;
28810 temp4 = true;
28811 }
28812 }
28813 if (obj4) {
28814 {
28815 arg5 = &temp5;
28816 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28817 }
28818 }
28819 if (obj5) {
28820 {
28821 arg6 = &temp6;
28822 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28823 }
28824 }
28825 if (obj6) {
28826 arg7 = (long)SWIG_As_long(obj6);
28827 if (PyErr_Occurred()) SWIG_fail;
28828 }
28829 if (obj7) {
28830 {
28831 arg8 = wxString_in_helper(obj7);
28832 if (arg8 == NULL) SWIG_fail;
28833 temp8 = true;
28834 }
28835 }
28836 if (obj8) {
28837 arg9 = (int)SWIG_As_int(obj8);
28838 if (PyErr_Occurred()) SWIG_fail;
28839 }
28840 if (obj9) {
28841 {
28842 arg10 = wxString_in_helper(obj9);
28843 if (arg10 == NULL) SWIG_fail;
28844 temp10 = true;
28845 }
28846 }
28847 {
28848 PyThreadState* __tstate = wxPyBeginAllowThreads();
28849 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28850
28851 wxPyEndAllowThreads(__tstate);
28852 if (PyErr_Occurred()) SWIG_fail;
28853 }
28854 {
28855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28856 }
28857 {
28858 if (temp4)
28859 delete arg4;
28860 }
28861 {
28862 if (temp8)
28863 delete arg8;
28864 }
28865 {
28866 if (temp10)
28867 delete arg10;
28868 }
28869 return resultobj;
28870 fail:
28871 {
28872 if (temp4)
28873 delete arg4;
28874 }
28875 {
28876 if (temp8)
28877 delete arg8;
28878 }
28879 {
28880 if (temp10)
28881 delete arg10;
28882 }
28883 return NULL;
28884 }
28885
28886
28887 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28888 PyObject *resultobj;
28889 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28890 wxString *arg2 = 0 ;
28891 bool result;
28892 bool temp2 = false ;
28893 PyObject * obj0 = 0 ;
28894 PyObject * obj1 = 0 ;
28895 char *kwnames[] = {
28896 (char *) "self",(char *) "path", NULL
28897 };
28898
28899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28902 {
28903 arg2 = wxString_in_helper(obj1);
28904 if (arg2 == NULL) SWIG_fail;
28905 temp2 = true;
28906 }
28907 {
28908 PyThreadState* __tstate = wxPyBeginAllowThreads();
28909 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28910
28911 wxPyEndAllowThreads(__tstate);
28912 if (PyErr_Occurred()) SWIG_fail;
28913 }
28914 {
28915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28916 }
28917 {
28918 if (temp2)
28919 delete arg2;
28920 }
28921 return resultobj;
28922 fail:
28923 {
28924 if (temp2)
28925 delete arg2;
28926 }
28927 return NULL;
28928 }
28929
28930
28931 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28932 PyObject *resultobj;
28933 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28934 wxString result;
28935 PyObject * obj0 = 0 ;
28936 char *kwnames[] = {
28937 (char *) "self", NULL
28938 };
28939
28940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28943 {
28944 PyThreadState* __tstate = wxPyBeginAllowThreads();
28945 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28946
28947 wxPyEndAllowThreads(__tstate);
28948 if (PyErr_Occurred()) SWIG_fail;
28949 }
28950 {
28951 #if wxUSE_UNICODE
28952 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28953 #else
28954 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28955 #endif
28956 }
28957 return resultobj;
28958 fail:
28959 return NULL;
28960 }
28961
28962
28963 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28964 PyObject *resultobj;
28965 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28966 wxString *arg2 = 0 ;
28967 bool temp2 = false ;
28968 PyObject * obj0 = 0 ;
28969 PyObject * obj1 = 0 ;
28970 char *kwnames[] = {
28971 (char *) "self",(char *) "path", NULL
28972 };
28973
28974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28977 {
28978 arg2 = wxString_in_helper(obj1);
28979 if (arg2 == NULL) SWIG_fail;
28980 temp2 = true;
28981 }
28982 {
28983 PyThreadState* __tstate = wxPyBeginAllowThreads();
28984 (arg1)->SetDefaultPath((wxString const &)*arg2);
28985
28986 wxPyEndAllowThreads(__tstate);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 Py_INCREF(Py_None); resultobj = Py_None;
28990 {
28991 if (temp2)
28992 delete arg2;
28993 }
28994 return resultobj;
28995 fail:
28996 {
28997 if (temp2)
28998 delete arg2;
28999 }
29000 return NULL;
29001 }
29002
29003
29004 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
29005 PyObject *resultobj;
29006 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29007 wxString result;
29008 PyObject * obj0 = 0 ;
29009 char *kwnames[] = {
29010 (char *) "self", NULL
29011 };
29012
29013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
29014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29016 {
29017 PyThreadState* __tstate = wxPyBeginAllowThreads();
29018 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
29019
29020 wxPyEndAllowThreads(__tstate);
29021 if (PyErr_Occurred()) SWIG_fail;
29022 }
29023 {
29024 #if wxUSE_UNICODE
29025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29026 #else
29027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29028 #endif
29029 }
29030 return resultobj;
29031 fail:
29032 return NULL;
29033 }
29034
29035
29036 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
29037 PyObject *resultobj;
29038 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29039 wxString result;
29040 PyObject * obj0 = 0 ;
29041 char *kwnames[] = {
29042 (char *) "self", NULL
29043 };
29044
29045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
29046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29048 {
29049 PyThreadState* __tstate = wxPyBeginAllowThreads();
29050 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
29051
29052 wxPyEndAllowThreads(__tstate);
29053 if (PyErr_Occurred()) SWIG_fail;
29054 }
29055 {
29056 #if wxUSE_UNICODE
29057 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29058 #else
29059 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29060 #endif
29061 }
29062 return resultobj;
29063 fail:
29064 return NULL;
29065 }
29066
29067
29068 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
29069 PyObject *resultobj;
29070 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29071 wxString *arg2 = 0 ;
29072 bool temp2 = false ;
29073 PyObject * obj0 = 0 ;
29074 PyObject * obj1 = 0 ;
29075 char *kwnames[] = {
29076 (char *) "self",(char *) "path", NULL
29077 };
29078
29079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
29080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29082 {
29083 arg2 = wxString_in_helper(obj1);
29084 if (arg2 == NULL) SWIG_fail;
29085 temp2 = true;
29086 }
29087 {
29088 PyThreadState* __tstate = wxPyBeginAllowThreads();
29089 (arg1)->SetPath((wxString const &)*arg2);
29090
29091 wxPyEndAllowThreads(__tstate);
29092 if (PyErr_Occurred()) SWIG_fail;
29093 }
29094 Py_INCREF(Py_None); resultobj = Py_None;
29095 {
29096 if (temp2)
29097 delete arg2;
29098 }
29099 return resultobj;
29100 fail:
29101 {
29102 if (temp2)
29103 delete arg2;
29104 }
29105 return NULL;
29106 }
29107
29108
29109 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29110 PyObject *resultobj;
29111 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29112 bool arg2 ;
29113 PyObject * obj0 = 0 ;
29114 PyObject * obj1 = 0 ;
29115 char *kwnames[] = {
29116 (char *) "self",(char *) "show", NULL
29117 };
29118
29119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
29120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29122 arg2 = (bool)SWIG_As_bool(obj1);
29123 if (PyErr_Occurred()) SWIG_fail;
29124 {
29125 PyThreadState* __tstate = wxPyBeginAllowThreads();
29126 (arg1)->ShowHidden(arg2);
29127
29128 wxPyEndAllowThreads(__tstate);
29129 if (PyErr_Occurred()) SWIG_fail;
29130 }
29131 Py_INCREF(Py_None); resultobj = Py_None;
29132 return resultobj;
29133 fail:
29134 return NULL;
29135 }
29136
29137
29138 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29139 PyObject *resultobj;
29140 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29141 bool result;
29142 PyObject * obj0 = 0 ;
29143 char *kwnames[] = {
29144 (char *) "self", NULL
29145 };
29146
29147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
29148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29150 {
29151 PyThreadState* __tstate = wxPyBeginAllowThreads();
29152 result = (bool)(arg1)->GetShowHidden();
29153
29154 wxPyEndAllowThreads(__tstate);
29155 if (PyErr_Occurred()) SWIG_fail;
29156 }
29157 {
29158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29159 }
29160 return resultobj;
29161 fail:
29162 return NULL;
29163 }
29164
29165
29166 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29167 PyObject *resultobj;
29168 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29169 wxString result;
29170 PyObject * obj0 = 0 ;
29171 char *kwnames[] = {
29172 (char *) "self", NULL
29173 };
29174
29175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
29176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29178 {
29179 PyThreadState* __tstate = wxPyBeginAllowThreads();
29180 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
29181
29182 wxPyEndAllowThreads(__tstate);
29183 if (PyErr_Occurred()) SWIG_fail;
29184 }
29185 {
29186 #if wxUSE_UNICODE
29187 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29188 #else
29189 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29190 #endif
29191 }
29192 return resultobj;
29193 fail:
29194 return NULL;
29195 }
29196
29197
29198 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29199 PyObject *resultobj;
29200 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29201 wxString *arg2 = 0 ;
29202 bool temp2 = false ;
29203 PyObject * obj0 = 0 ;
29204 PyObject * obj1 = 0 ;
29205 char *kwnames[] = {
29206 (char *) "self",(char *) "filter", NULL
29207 };
29208
29209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
29210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29212 {
29213 arg2 = wxString_in_helper(obj1);
29214 if (arg2 == NULL) SWIG_fail;
29215 temp2 = true;
29216 }
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
29219 (arg1)->SetFilter((wxString const &)*arg2);
29220
29221 wxPyEndAllowThreads(__tstate);
29222 if (PyErr_Occurred()) SWIG_fail;
29223 }
29224 Py_INCREF(Py_None); resultobj = Py_None;
29225 {
29226 if (temp2)
29227 delete arg2;
29228 }
29229 return resultobj;
29230 fail:
29231 {
29232 if (temp2)
29233 delete arg2;
29234 }
29235 return NULL;
29236 }
29237
29238
29239 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29240 PyObject *resultobj;
29241 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29242 int result;
29243 PyObject * obj0 = 0 ;
29244 char *kwnames[] = {
29245 (char *) "self", NULL
29246 };
29247
29248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
29249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29251 {
29252 PyThreadState* __tstate = wxPyBeginAllowThreads();
29253 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
29254
29255 wxPyEndAllowThreads(__tstate);
29256 if (PyErr_Occurred()) SWIG_fail;
29257 }
29258 resultobj = SWIG_From_int((int)result);
29259 return resultobj;
29260 fail:
29261 return NULL;
29262 }
29263
29264
29265 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29266 PyObject *resultobj;
29267 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29268 int arg2 ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 char *kwnames[] = {
29272 (char *) "self",(char *) "n", NULL
29273 };
29274
29275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
29276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29278 arg2 = (int)SWIG_As_int(obj1);
29279 if (PyErr_Occurred()) SWIG_fail;
29280 {
29281 PyThreadState* __tstate = wxPyBeginAllowThreads();
29282 (arg1)->SetFilterIndex(arg2);
29283
29284 wxPyEndAllowThreads(__tstate);
29285 if (PyErr_Occurred()) SWIG_fail;
29286 }
29287 Py_INCREF(Py_None); resultobj = Py_None;
29288 return resultobj;
29289 fail:
29290 return NULL;
29291 }
29292
29293
29294 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
29295 PyObject *resultobj;
29296 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29297 wxTreeItemId result;
29298 PyObject * obj0 = 0 ;
29299 char *kwnames[] = {
29300 (char *) "self", NULL
29301 };
29302
29303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
29304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29306 {
29307 PyThreadState* __tstate = wxPyBeginAllowThreads();
29308 result = (arg1)->GetRootId();
29309
29310 wxPyEndAllowThreads(__tstate);
29311 if (PyErr_Occurred()) SWIG_fail;
29312 }
29313 {
29314 wxTreeItemId * resultptr;
29315 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29316 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29317 }
29318 return resultobj;
29319 fail:
29320 return NULL;
29321 }
29322
29323
29324 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29325 PyObject *resultobj;
29326 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29327 wxPyTreeCtrl *result;
29328 PyObject * obj0 = 0 ;
29329 char *kwnames[] = {
29330 (char *) "self", NULL
29331 };
29332
29333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29336 {
29337 PyThreadState* __tstate = wxPyBeginAllowThreads();
29338 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29339
29340 wxPyEndAllowThreads(__tstate);
29341 if (PyErr_Occurred()) SWIG_fail;
29342 }
29343 {
29344 resultobj = wxPyMake_wxObject(result, 0);
29345 }
29346 return resultobj;
29347 fail:
29348 return NULL;
29349 }
29350
29351
29352 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29353 PyObject *resultobj;
29354 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29355 wxDirFilterListCtrl *result;
29356 PyObject * obj0 = 0 ;
29357 char *kwnames[] = {
29358 (char *) "self", NULL
29359 };
29360
29361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29364 {
29365 PyThreadState* __tstate = wxPyBeginAllowThreads();
29366 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29367
29368 wxPyEndAllowThreads(__tstate);
29369 if (PyErr_Occurred()) SWIG_fail;
29370 }
29371 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29372 return resultobj;
29373 fail:
29374 return NULL;
29375 }
29376
29377
29378 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29379 PyObject *resultobj;
29380 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29381 wxTreeItemId arg2 ;
29382 wxString *arg3 = 0 ;
29383 bool *arg4 = 0 ;
29384 wxTreeItemId result;
29385 wxTreeItemId *argp2 ;
29386 bool temp3 = false ;
29387 bool temp4 ;
29388 int res4 = 0 ;
29389 PyObject * obj0 = 0 ;
29390 PyObject * obj1 = 0 ;
29391 PyObject * obj2 = 0 ;
29392 char *kwnames[] = {
29393 (char *) "self",(char *) "parentId",(char *) "path", NULL
29394 };
29395
29396 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29400 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29401 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29402 arg2 = *argp2;
29403 {
29404 arg3 = wxString_in_helper(obj2);
29405 if (arg3 == NULL) SWIG_fail;
29406 temp3 = true;
29407 }
29408 {
29409 PyThreadState* __tstate = wxPyBeginAllowThreads();
29410 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29411
29412 wxPyEndAllowThreads(__tstate);
29413 if (PyErr_Occurred()) SWIG_fail;
29414 }
29415 {
29416 wxTreeItemId * resultptr;
29417 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29419 }
29420 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29421 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29422 {
29423 if (temp3)
29424 delete arg3;
29425 }
29426 return resultobj;
29427 fail:
29428 {
29429 if (temp3)
29430 delete arg3;
29431 }
29432 return NULL;
29433 }
29434
29435
29436 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29437 PyObject *resultobj;
29438 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29439 PyObject * obj0 = 0 ;
29440 char *kwnames[] = {
29441 (char *) "self", NULL
29442 };
29443
29444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29447 {
29448 PyThreadState* __tstate = wxPyBeginAllowThreads();
29449 (arg1)->DoResize();
29450
29451 wxPyEndAllowThreads(__tstate);
29452 if (PyErr_Occurred()) SWIG_fail;
29453 }
29454 Py_INCREF(Py_None); resultobj = Py_None;
29455 return resultobj;
29456 fail:
29457 return NULL;
29458 }
29459
29460
29461 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29462 PyObject *resultobj;
29463 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29464 PyObject * obj0 = 0 ;
29465 char *kwnames[] = {
29466 (char *) "self", NULL
29467 };
29468
29469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29472 {
29473 PyThreadState* __tstate = wxPyBeginAllowThreads();
29474 (arg1)->ReCreateTree();
29475
29476 wxPyEndAllowThreads(__tstate);
29477 if (PyErr_Occurred()) SWIG_fail;
29478 }
29479 Py_INCREF(Py_None); resultobj = Py_None;
29480 return resultobj;
29481 fail:
29482 return NULL;
29483 }
29484
29485
29486 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29487 PyObject *obj;
29488 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29489 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29490 Py_INCREF(obj);
29491 return Py_BuildValue((char *)"");
29492 }
29493 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29494 PyObject *resultobj;
29495 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29496 int arg2 = (int) (int)-1 ;
29497 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29498 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29499 wxSize const &arg4_defvalue = wxDefaultSize ;
29500 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29501 long arg5 = (long) 0 ;
29502 wxDirFilterListCtrl *result;
29503 wxPoint temp3 ;
29504 wxSize temp4 ;
29505 PyObject * obj0 = 0 ;
29506 PyObject * obj1 = 0 ;
29507 PyObject * obj2 = 0 ;
29508 PyObject * obj3 = 0 ;
29509 PyObject * obj4 = 0 ;
29510 char *kwnames[] = {
29511 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29512 };
29513
29514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29517 if (obj1) {
29518 arg2 = (int)SWIG_As_int(obj1);
29519 if (PyErr_Occurred()) SWIG_fail;
29520 }
29521 if (obj2) {
29522 {
29523 arg3 = &temp3;
29524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29525 }
29526 }
29527 if (obj3) {
29528 {
29529 arg4 = &temp4;
29530 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29531 }
29532 }
29533 if (obj4) {
29534 arg5 = (long)SWIG_As_long(obj4);
29535 if (PyErr_Occurred()) SWIG_fail;
29536 }
29537 {
29538 if (!wxPyCheckForApp()) SWIG_fail;
29539 PyThreadState* __tstate = wxPyBeginAllowThreads();
29540 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29541
29542 wxPyEndAllowThreads(__tstate);
29543 if (PyErr_Occurred()) SWIG_fail;
29544 }
29545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29546 return resultobj;
29547 fail:
29548 return NULL;
29549 }
29550
29551
29552 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29553 PyObject *resultobj;
29554 wxDirFilterListCtrl *result;
29555 char *kwnames[] = {
29556 NULL
29557 };
29558
29559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29560 {
29561 if (!wxPyCheckForApp()) SWIG_fail;
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29564
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29569 return resultobj;
29570 fail:
29571 return NULL;
29572 }
29573
29574
29575 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj;
29577 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29578 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29579 int arg3 = (int) (int)-1 ;
29580 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29581 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29582 wxSize const &arg5_defvalue = wxDefaultSize ;
29583 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29584 long arg6 = (long) 0 ;
29585 bool result;
29586 wxPoint temp4 ;
29587 wxSize temp5 ;
29588 PyObject * obj0 = 0 ;
29589 PyObject * obj1 = 0 ;
29590 PyObject * obj2 = 0 ;
29591 PyObject * obj3 = 0 ;
29592 PyObject * obj4 = 0 ;
29593 PyObject * obj5 = 0 ;
29594 char *kwnames[] = {
29595 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29596 };
29597
29598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29601 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29603 if (obj2) {
29604 arg3 = (int)SWIG_As_int(obj2);
29605 if (PyErr_Occurred()) SWIG_fail;
29606 }
29607 if (obj3) {
29608 {
29609 arg4 = &temp4;
29610 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29611 }
29612 }
29613 if (obj4) {
29614 {
29615 arg5 = &temp5;
29616 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29617 }
29618 }
29619 if (obj5) {
29620 arg6 = (long)SWIG_As_long(obj5);
29621 if (PyErr_Occurred()) SWIG_fail;
29622 }
29623 {
29624 PyThreadState* __tstate = wxPyBeginAllowThreads();
29625 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29626
29627 wxPyEndAllowThreads(__tstate);
29628 if (PyErr_Occurred()) SWIG_fail;
29629 }
29630 {
29631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29632 }
29633 return resultobj;
29634 fail:
29635 return NULL;
29636 }
29637
29638
29639 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29640 PyObject *resultobj;
29641 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29642 wxString *arg2 = 0 ;
29643 int arg3 ;
29644 bool temp2 = false ;
29645 PyObject * obj0 = 0 ;
29646 PyObject * obj1 = 0 ;
29647 PyObject * obj2 = 0 ;
29648 char *kwnames[] = {
29649 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29650 };
29651
29652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29655 {
29656 arg2 = wxString_in_helper(obj1);
29657 if (arg2 == NULL) SWIG_fail;
29658 temp2 = true;
29659 }
29660 arg3 = (int)SWIG_As_int(obj2);
29661 if (PyErr_Occurred()) SWIG_fail;
29662 {
29663 PyThreadState* __tstate = wxPyBeginAllowThreads();
29664 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29665
29666 wxPyEndAllowThreads(__tstate);
29667 if (PyErr_Occurred()) SWIG_fail;
29668 }
29669 Py_INCREF(Py_None); resultobj = Py_None;
29670 {
29671 if (temp2)
29672 delete arg2;
29673 }
29674 return resultobj;
29675 fail:
29676 {
29677 if (temp2)
29678 delete arg2;
29679 }
29680 return NULL;
29681 }
29682
29683
29684 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29685 PyObject *obj;
29686 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29687 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29688 Py_INCREF(obj);
29689 return Py_BuildValue((char *)"");
29690 }
29691 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29692 PyObject *resultobj;
29693 wxWindow *arg1 = (wxWindow *) 0 ;
29694 int arg2 = (int) (int)-1 ;
29695 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29696 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29697 wxSize const &arg4_defvalue = wxDefaultSize ;
29698 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29699 long arg5 = (long) 0 ;
29700 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29701 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29702 wxString const &arg7_defvalue = wxPyControlNameStr ;
29703 wxString *arg7 = (wxString *) &arg7_defvalue ;
29704 wxPyControl *result;
29705 wxPoint temp3 ;
29706 wxSize temp4 ;
29707 bool temp7 = false ;
29708 PyObject * obj0 = 0 ;
29709 PyObject * obj1 = 0 ;
29710 PyObject * obj2 = 0 ;
29711 PyObject * obj3 = 0 ;
29712 PyObject * obj4 = 0 ;
29713 PyObject * obj5 = 0 ;
29714 PyObject * obj6 = 0 ;
29715 char *kwnames[] = {
29716 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29717 };
29718
29719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29722 if (obj1) {
29723 arg2 = (int)SWIG_As_int(obj1);
29724 if (PyErr_Occurred()) SWIG_fail;
29725 }
29726 if (obj2) {
29727 {
29728 arg3 = &temp3;
29729 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29730 }
29731 }
29732 if (obj3) {
29733 {
29734 arg4 = &temp4;
29735 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29736 }
29737 }
29738 if (obj4) {
29739 arg5 = (long)SWIG_As_long(obj4);
29740 if (PyErr_Occurred()) SWIG_fail;
29741 }
29742 if (obj5) {
29743 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29744 SWIG_POINTER_EXCEPTION | 0)) == -1)
29745 SWIG_fail;
29746 if (arg6 == NULL) {
29747 PyErr_SetString(PyExc_TypeError,"null reference");
29748 SWIG_fail;
29749 }
29750 }
29751 if (obj6) {
29752 {
29753 arg7 = wxString_in_helper(obj6);
29754 if (arg7 == NULL) SWIG_fail;
29755 temp7 = true;
29756 }
29757 }
29758 {
29759 if (!wxPyCheckForApp()) SWIG_fail;
29760 PyThreadState* __tstate = wxPyBeginAllowThreads();
29761 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29762
29763 wxPyEndAllowThreads(__tstate);
29764 if (PyErr_Occurred()) SWIG_fail;
29765 }
29766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29767 {
29768 if (temp7)
29769 delete arg7;
29770 }
29771 return resultobj;
29772 fail:
29773 {
29774 if (temp7)
29775 delete arg7;
29776 }
29777 return NULL;
29778 }
29779
29780
29781 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29782 PyObject *resultobj;
29783 wxPyControl *result;
29784 char *kwnames[] = {
29785 NULL
29786 };
29787
29788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29789 {
29790 if (!wxPyCheckForApp()) SWIG_fail;
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 result = (wxPyControl *)new wxPyControl();
29793
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29798 return resultobj;
29799 fail:
29800 return NULL;
29801 }
29802
29803
29804 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj;
29806 wxPyControl *arg1 = (wxPyControl *) 0 ;
29807 PyObject *arg2 = (PyObject *) 0 ;
29808 PyObject *arg3 = (PyObject *) 0 ;
29809 PyObject * obj0 = 0 ;
29810 PyObject * obj1 = 0 ;
29811 PyObject * obj2 = 0 ;
29812 char *kwnames[] = {
29813 (char *) "self",(char *) "self",(char *) "_class", NULL
29814 };
29815
29816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29819 arg2 = obj1;
29820 arg3 = obj2;
29821 {
29822 PyThreadState* __tstate = wxPyBeginAllowThreads();
29823 (arg1)->_setCallbackInfo(arg2,arg3);
29824
29825 wxPyEndAllowThreads(__tstate);
29826 if (PyErr_Occurred()) SWIG_fail;
29827 }
29828 Py_INCREF(Py_None); resultobj = Py_None;
29829 return resultobj;
29830 fail:
29831 return NULL;
29832 }
29833
29834
29835 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29836 PyObject *resultobj;
29837 wxPyControl *arg1 = (wxPyControl *) 0 ;
29838 wxSize *arg2 = 0 ;
29839 wxSize temp2 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 char *kwnames[] = {
29843 (char *) "self",(char *) "size", NULL
29844 };
29845
29846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29849 {
29850 arg2 = &temp2;
29851 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29852 }
29853 {
29854 PyThreadState* __tstate = wxPyBeginAllowThreads();
29855 (arg1)->SetBestSize((wxSize const &)*arg2);
29856
29857 wxPyEndAllowThreads(__tstate);
29858 if (PyErr_Occurred()) SWIG_fail;
29859 }
29860 Py_INCREF(Py_None); resultobj = Py_None;
29861 return resultobj;
29862 fail:
29863 return NULL;
29864 }
29865
29866
29867 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29868 PyObject *resultobj;
29869 wxPyControl *arg1 = (wxPyControl *) 0 ;
29870 int arg2 ;
29871 int arg3 ;
29872 int arg4 ;
29873 int arg5 ;
29874 PyObject * obj0 = 0 ;
29875 PyObject * obj1 = 0 ;
29876 PyObject * obj2 = 0 ;
29877 PyObject * obj3 = 0 ;
29878 PyObject * obj4 = 0 ;
29879 char *kwnames[] = {
29880 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29881 };
29882
29883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29886 arg2 = (int)SWIG_As_int(obj1);
29887 if (PyErr_Occurred()) SWIG_fail;
29888 arg3 = (int)SWIG_As_int(obj2);
29889 if (PyErr_Occurred()) SWIG_fail;
29890 arg4 = (int)SWIG_As_int(obj3);
29891 if (PyErr_Occurred()) SWIG_fail;
29892 arg5 = (int)SWIG_As_int(obj4);
29893 if (PyErr_Occurred()) SWIG_fail;
29894 {
29895 PyThreadState* __tstate = wxPyBeginAllowThreads();
29896 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29897
29898 wxPyEndAllowThreads(__tstate);
29899 if (PyErr_Occurred()) SWIG_fail;
29900 }
29901 Py_INCREF(Py_None); resultobj = Py_None;
29902 return resultobj;
29903 fail:
29904 return NULL;
29905 }
29906
29907
29908 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29909 PyObject *resultobj;
29910 wxPyControl *arg1 = (wxPyControl *) 0 ;
29911 int arg2 ;
29912 int arg3 ;
29913 int arg4 ;
29914 int arg5 ;
29915 int arg6 = (int) wxSIZE_AUTO ;
29916 PyObject * obj0 = 0 ;
29917 PyObject * obj1 = 0 ;
29918 PyObject * obj2 = 0 ;
29919 PyObject * obj3 = 0 ;
29920 PyObject * obj4 = 0 ;
29921 PyObject * obj5 = 0 ;
29922 char *kwnames[] = {
29923 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29924 };
29925
29926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29929 arg2 = (int)SWIG_As_int(obj1);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 arg3 = (int)SWIG_As_int(obj2);
29932 if (PyErr_Occurred()) SWIG_fail;
29933 arg4 = (int)SWIG_As_int(obj3);
29934 if (PyErr_Occurred()) SWIG_fail;
29935 arg5 = (int)SWIG_As_int(obj4);
29936 if (PyErr_Occurred()) SWIG_fail;
29937 if (obj5) {
29938 arg6 = (int)SWIG_As_int(obj5);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 }
29941 {
29942 PyThreadState* __tstate = wxPyBeginAllowThreads();
29943 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29944
29945 wxPyEndAllowThreads(__tstate);
29946 if (PyErr_Occurred()) SWIG_fail;
29947 }
29948 Py_INCREF(Py_None); resultobj = Py_None;
29949 return resultobj;
29950 fail:
29951 return NULL;
29952 }
29953
29954
29955 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29956 PyObject *resultobj;
29957 wxPyControl *arg1 = (wxPyControl *) 0 ;
29958 int arg2 ;
29959 int arg3 ;
29960 PyObject * obj0 = 0 ;
29961 PyObject * obj1 = 0 ;
29962 PyObject * obj2 = 0 ;
29963 char *kwnames[] = {
29964 (char *) "self",(char *) "width",(char *) "height", NULL
29965 };
29966
29967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29970 arg2 = (int)SWIG_As_int(obj1);
29971 if (PyErr_Occurred()) SWIG_fail;
29972 arg3 = (int)SWIG_As_int(obj2);
29973 if (PyErr_Occurred()) SWIG_fail;
29974 {
29975 PyThreadState* __tstate = wxPyBeginAllowThreads();
29976 (arg1)->base_DoSetClientSize(arg2,arg3);
29977
29978 wxPyEndAllowThreads(__tstate);
29979 if (PyErr_Occurred()) SWIG_fail;
29980 }
29981 Py_INCREF(Py_None); resultobj = Py_None;
29982 return resultobj;
29983 fail:
29984 return NULL;
29985 }
29986
29987
29988 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29989 PyObject *resultobj;
29990 wxPyControl *arg1 = (wxPyControl *) 0 ;
29991 int arg2 ;
29992 int arg3 ;
29993 PyObject * obj0 = 0 ;
29994 PyObject * obj1 = 0 ;
29995 PyObject * obj2 = 0 ;
29996 char *kwnames[] = {
29997 (char *) "self",(char *) "x",(char *) "y", NULL
29998 };
29999
30000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
30001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30003 arg2 = (int)SWIG_As_int(obj1);
30004 if (PyErr_Occurred()) SWIG_fail;
30005 arg3 = (int)SWIG_As_int(obj2);
30006 if (PyErr_Occurred()) SWIG_fail;
30007 {
30008 PyThreadState* __tstate = wxPyBeginAllowThreads();
30009 (arg1)->base_DoSetVirtualSize(arg2,arg3);
30010
30011 wxPyEndAllowThreads(__tstate);
30012 if (PyErr_Occurred()) SWIG_fail;
30013 }
30014 Py_INCREF(Py_None); resultobj = Py_None;
30015 return resultobj;
30016 fail:
30017 return NULL;
30018 }
30019
30020
30021 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
30022 PyObject *resultobj;
30023 wxPyControl *arg1 = (wxPyControl *) 0 ;
30024 int *arg2 = (int *) 0 ;
30025 int *arg3 = (int *) 0 ;
30026 int temp2 ;
30027 int res2 = 0 ;
30028 int temp3 ;
30029 int res3 = 0 ;
30030 PyObject * obj0 = 0 ;
30031 char *kwnames[] = {
30032 (char *) "self", NULL
30033 };
30034
30035 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30036 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
30038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30040 {
30041 PyThreadState* __tstate = wxPyBeginAllowThreads();
30042 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
30043
30044 wxPyEndAllowThreads(__tstate);
30045 if (PyErr_Occurred()) SWIG_fail;
30046 }
30047 Py_INCREF(Py_None); resultobj = Py_None;
30048 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30049 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30050 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30051 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30052 return resultobj;
30053 fail:
30054 return NULL;
30055 }
30056
30057
30058 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
30059 PyObject *resultobj;
30060 wxPyControl *arg1 = (wxPyControl *) 0 ;
30061 int *arg2 = (int *) 0 ;
30062 int *arg3 = (int *) 0 ;
30063 int temp2 ;
30064 int res2 = 0 ;
30065 int temp3 ;
30066 int res3 = 0 ;
30067 PyObject * obj0 = 0 ;
30068 char *kwnames[] = {
30069 (char *) "self", NULL
30070 };
30071
30072 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30073 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
30075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30077 {
30078 PyThreadState* __tstate = wxPyBeginAllowThreads();
30079 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
30080
30081 wxPyEndAllowThreads(__tstate);
30082 if (PyErr_Occurred()) SWIG_fail;
30083 }
30084 Py_INCREF(Py_None); resultobj = Py_None;
30085 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30086 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30087 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30088 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30089 return resultobj;
30090 fail:
30091 return NULL;
30092 }
30093
30094
30095 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30096 PyObject *resultobj;
30097 wxPyControl *arg1 = (wxPyControl *) 0 ;
30098 int *arg2 = (int *) 0 ;
30099 int *arg3 = (int *) 0 ;
30100 int temp2 ;
30101 int res2 = 0 ;
30102 int temp3 ;
30103 int res3 = 0 ;
30104 PyObject * obj0 = 0 ;
30105 char *kwnames[] = {
30106 (char *) "self", NULL
30107 };
30108
30109 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30110 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
30112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30114 {
30115 PyThreadState* __tstate = wxPyBeginAllowThreads();
30116 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
30117
30118 wxPyEndAllowThreads(__tstate);
30119 if (PyErr_Occurred()) SWIG_fail;
30120 }
30121 Py_INCREF(Py_None); resultobj = Py_None;
30122 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30123 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30124 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30125 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30126 return resultobj;
30127 fail:
30128 return NULL;
30129 }
30130
30131
30132 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
30133 PyObject *resultobj;
30134 wxPyControl *arg1 = (wxPyControl *) 0 ;
30135 wxSize result;
30136 PyObject * obj0 = 0 ;
30137 char *kwnames[] = {
30138 (char *) "self", NULL
30139 };
30140
30141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
30142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30144 {
30145 PyThreadState* __tstate = wxPyBeginAllowThreads();
30146 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
30147
30148 wxPyEndAllowThreads(__tstate);
30149 if (PyErr_Occurred()) SWIG_fail;
30150 }
30151 {
30152 wxSize * resultptr;
30153 resultptr = new wxSize((wxSize &) result);
30154 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30155 }
30156 return resultobj;
30157 fail:
30158 return NULL;
30159 }
30160
30161
30162 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
30163 PyObject *resultobj;
30164 wxPyControl *arg1 = (wxPyControl *) 0 ;
30165 wxSize result;
30166 PyObject * obj0 = 0 ;
30167 char *kwnames[] = {
30168 (char *) "self", NULL
30169 };
30170
30171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
30172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30174 {
30175 PyThreadState* __tstate = wxPyBeginAllowThreads();
30176 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
30177
30178 wxPyEndAllowThreads(__tstate);
30179 if (PyErr_Occurred()) SWIG_fail;
30180 }
30181 {
30182 wxSize * resultptr;
30183 resultptr = new wxSize((wxSize &) result);
30184 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30185 }
30186 return resultobj;
30187 fail:
30188 return NULL;
30189 }
30190
30191
30192 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
30193 PyObject *resultobj;
30194 wxPyControl *arg1 = (wxPyControl *) 0 ;
30195 PyObject * obj0 = 0 ;
30196 char *kwnames[] = {
30197 (char *) "self", NULL
30198 };
30199
30200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
30201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30203 {
30204 PyThreadState* __tstate = wxPyBeginAllowThreads();
30205 (arg1)->base_InitDialog();
30206
30207 wxPyEndAllowThreads(__tstate);
30208 if (PyErr_Occurred()) SWIG_fail;
30209 }
30210 Py_INCREF(Py_None); resultobj = Py_None;
30211 return resultobj;
30212 fail:
30213 return NULL;
30214 }
30215
30216
30217 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30218 PyObject *resultobj;
30219 wxPyControl *arg1 = (wxPyControl *) 0 ;
30220 bool result;
30221 PyObject * obj0 = 0 ;
30222 char *kwnames[] = {
30223 (char *) "self", NULL
30224 };
30225
30226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
30227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30229 {
30230 PyThreadState* __tstate = wxPyBeginAllowThreads();
30231 result = (bool)(arg1)->base_TransferDataToWindow();
30232
30233 wxPyEndAllowThreads(__tstate);
30234 if (PyErr_Occurred()) SWIG_fail;
30235 }
30236 {
30237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30238 }
30239 return resultobj;
30240 fail:
30241 return NULL;
30242 }
30243
30244
30245 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30246 PyObject *resultobj;
30247 wxPyControl *arg1 = (wxPyControl *) 0 ;
30248 bool result;
30249 PyObject * obj0 = 0 ;
30250 char *kwnames[] = {
30251 (char *) "self", NULL
30252 };
30253
30254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
30255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30257 {
30258 PyThreadState* __tstate = wxPyBeginAllowThreads();
30259 result = (bool)(arg1)->base_TransferDataFromWindow();
30260
30261 wxPyEndAllowThreads(__tstate);
30262 if (PyErr_Occurred()) SWIG_fail;
30263 }
30264 {
30265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30266 }
30267 return resultobj;
30268 fail:
30269 return NULL;
30270 }
30271
30272
30273 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
30274 PyObject *resultobj;
30275 wxPyControl *arg1 = (wxPyControl *) 0 ;
30276 bool result;
30277 PyObject * obj0 = 0 ;
30278 char *kwnames[] = {
30279 (char *) "self", NULL
30280 };
30281
30282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
30283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30285 {
30286 PyThreadState* __tstate = wxPyBeginAllowThreads();
30287 result = (bool)(arg1)->base_Validate();
30288
30289 wxPyEndAllowThreads(__tstate);
30290 if (PyErr_Occurred()) SWIG_fail;
30291 }
30292 {
30293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30294 }
30295 return resultobj;
30296 fail:
30297 return NULL;
30298 }
30299
30300
30301 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
30302 PyObject *resultobj;
30303 wxPyControl *arg1 = (wxPyControl *) 0 ;
30304 bool result;
30305 PyObject * obj0 = 0 ;
30306 char *kwnames[] = {
30307 (char *) "self", NULL
30308 };
30309
30310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
30311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30313 {
30314 PyThreadState* __tstate = wxPyBeginAllowThreads();
30315 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
30316
30317 wxPyEndAllowThreads(__tstate);
30318 if (PyErr_Occurred()) SWIG_fail;
30319 }
30320 {
30321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30322 }
30323 return resultobj;
30324 fail:
30325 return NULL;
30326 }
30327
30328
30329 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
30330 PyObject *resultobj;
30331 wxPyControl *arg1 = (wxPyControl *) 0 ;
30332 bool result;
30333 PyObject * obj0 = 0 ;
30334 char *kwnames[] = {
30335 (char *) "self", NULL
30336 };
30337
30338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30341 {
30342 PyThreadState* __tstate = wxPyBeginAllowThreads();
30343 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30344
30345 wxPyEndAllowThreads(__tstate);
30346 if (PyErr_Occurred()) SWIG_fail;
30347 }
30348 {
30349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30350 }
30351 return resultobj;
30352 fail:
30353 return NULL;
30354 }
30355
30356
30357 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30358 PyObject *resultobj;
30359 wxPyControl *arg1 = (wxPyControl *) 0 ;
30360 wxSize result;
30361 PyObject * obj0 = 0 ;
30362 char *kwnames[] = {
30363 (char *) "self", NULL
30364 };
30365
30366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30372
30373 wxPyEndAllowThreads(__tstate);
30374 if (PyErr_Occurred()) SWIG_fail;
30375 }
30376 {
30377 wxSize * resultptr;
30378 resultptr = new wxSize((wxSize &) result);
30379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30380 }
30381 return resultobj;
30382 fail:
30383 return NULL;
30384 }
30385
30386
30387 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30388 PyObject *resultobj;
30389 wxPyControl *arg1 = (wxPyControl *) 0 ;
30390 wxWindow *arg2 = (wxWindow *) 0 ;
30391 PyObject * obj0 = 0 ;
30392 PyObject * obj1 = 0 ;
30393 char *kwnames[] = {
30394 (char *) "self",(char *) "child", NULL
30395 };
30396
30397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30400 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30402 {
30403 PyThreadState* __tstate = wxPyBeginAllowThreads();
30404 (arg1)->base_AddChild(arg2);
30405
30406 wxPyEndAllowThreads(__tstate);
30407 if (PyErr_Occurred()) SWIG_fail;
30408 }
30409 Py_INCREF(Py_None); resultobj = Py_None;
30410 return resultobj;
30411 fail:
30412 return NULL;
30413 }
30414
30415
30416 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30417 PyObject *resultobj;
30418 wxPyControl *arg1 = (wxPyControl *) 0 ;
30419 wxWindow *arg2 = (wxWindow *) 0 ;
30420 PyObject * obj0 = 0 ;
30421 PyObject * obj1 = 0 ;
30422 char *kwnames[] = {
30423 (char *) "self",(char *) "child", NULL
30424 };
30425
30426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30431 {
30432 PyThreadState* __tstate = wxPyBeginAllowThreads();
30433 (arg1)->base_RemoveChild(arg2);
30434
30435 wxPyEndAllowThreads(__tstate);
30436 if (PyErr_Occurred()) SWIG_fail;
30437 }
30438 Py_INCREF(Py_None); resultobj = Py_None;
30439 return resultobj;
30440 fail:
30441 return NULL;
30442 }
30443
30444
30445 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30446 PyObject *resultobj;
30447 wxPyControl *arg1 = (wxPyControl *) 0 ;
30448 bool result;
30449 PyObject * obj0 = 0 ;
30450 char *kwnames[] = {
30451 (char *) "self", NULL
30452 };
30453
30454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30457 {
30458 PyThreadState* __tstate = wxPyBeginAllowThreads();
30459 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30460
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 {
30465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30466 }
30467 return resultobj;
30468 fail:
30469 return NULL;
30470 }
30471
30472
30473 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30474 PyObject *resultobj;
30475 wxPyControl *arg1 = (wxPyControl *) 0 ;
30476 wxColour *arg2 = 0 ;
30477 wxColour temp2 ;
30478 PyObject * obj0 = 0 ;
30479 PyObject * obj1 = 0 ;
30480 char *kwnames[] = {
30481 (char *) "self",(char *) "c", NULL
30482 };
30483
30484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30487 {
30488 arg2 = &temp2;
30489 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30490 }
30491 {
30492 PyThreadState* __tstate = wxPyBeginAllowThreads();
30493 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30494
30495 wxPyEndAllowThreads(__tstate);
30496 if (PyErr_Occurred()) SWIG_fail;
30497 }
30498 Py_INCREF(Py_None); resultobj = Py_None;
30499 return resultobj;
30500 fail:
30501 return NULL;
30502 }
30503
30504
30505 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30506 PyObject *resultobj;
30507 wxPyControl *arg1 = (wxPyControl *) 0 ;
30508 wxVisualAttributes result;
30509 PyObject * obj0 = 0 ;
30510 char *kwnames[] = {
30511 (char *) "self", NULL
30512 };
30513
30514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30517 {
30518 PyThreadState* __tstate = wxPyBeginAllowThreads();
30519 result = (arg1)->base_GetDefaultAttributes();
30520
30521 wxPyEndAllowThreads(__tstate);
30522 if (PyErr_Occurred()) SWIG_fail;
30523 }
30524 {
30525 wxVisualAttributes * resultptr;
30526 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30527 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30528 }
30529 return resultobj;
30530 fail:
30531 return NULL;
30532 }
30533
30534
30535 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30536 PyObject *obj;
30537 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30538 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30539 Py_INCREF(obj);
30540 return Py_BuildValue((char *)"");
30541 }
30542 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30543 PyObject *resultobj;
30544 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30545 int arg2 = (int) 0 ;
30546 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30547 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30548 wxHelpEvent *result;
30549 wxPoint temp3 ;
30550 PyObject * obj0 = 0 ;
30551 PyObject * obj1 = 0 ;
30552 PyObject * obj2 = 0 ;
30553 char *kwnames[] = {
30554 (char *) "type",(char *) "winid",(char *) "pt", NULL
30555 };
30556
30557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30558 if (obj0) {
30559 arg1 = (wxEventType)SWIG_As_int(obj0);
30560 if (PyErr_Occurred()) SWIG_fail;
30561 }
30562 if (obj1) {
30563 arg2 = (int)SWIG_As_int(obj1);
30564 if (PyErr_Occurred()) SWIG_fail;
30565 }
30566 if (obj2) {
30567 {
30568 arg3 = &temp3;
30569 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30570 }
30571 }
30572 {
30573 PyThreadState* __tstate = wxPyBeginAllowThreads();
30574 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30575
30576 wxPyEndAllowThreads(__tstate);
30577 if (PyErr_Occurred()) SWIG_fail;
30578 }
30579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30580 return resultobj;
30581 fail:
30582 return NULL;
30583 }
30584
30585
30586 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30587 PyObject *resultobj;
30588 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30589 wxPoint result;
30590 PyObject * obj0 = 0 ;
30591 char *kwnames[] = {
30592 (char *) "self", NULL
30593 };
30594
30595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30598 {
30599 PyThreadState* __tstate = wxPyBeginAllowThreads();
30600 result = ((wxHelpEvent const *)arg1)->GetPosition();
30601
30602 wxPyEndAllowThreads(__tstate);
30603 if (PyErr_Occurred()) SWIG_fail;
30604 }
30605 {
30606 wxPoint * resultptr;
30607 resultptr = new wxPoint((wxPoint &) result);
30608 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30609 }
30610 return resultobj;
30611 fail:
30612 return NULL;
30613 }
30614
30615
30616 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30617 PyObject *resultobj;
30618 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30619 wxPoint *arg2 = 0 ;
30620 wxPoint temp2 ;
30621 PyObject * obj0 = 0 ;
30622 PyObject * obj1 = 0 ;
30623 char *kwnames[] = {
30624 (char *) "self",(char *) "pos", NULL
30625 };
30626
30627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30630 {
30631 arg2 = &temp2;
30632 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30633 }
30634 {
30635 PyThreadState* __tstate = wxPyBeginAllowThreads();
30636 (arg1)->SetPosition((wxPoint const &)*arg2);
30637
30638 wxPyEndAllowThreads(__tstate);
30639 if (PyErr_Occurred()) SWIG_fail;
30640 }
30641 Py_INCREF(Py_None); resultobj = Py_None;
30642 return resultobj;
30643 fail:
30644 return NULL;
30645 }
30646
30647
30648 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30649 PyObject *resultobj;
30650 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30651 wxString *result;
30652 PyObject * obj0 = 0 ;
30653 char *kwnames[] = {
30654 (char *) "self", NULL
30655 };
30656
30657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30660 {
30661 PyThreadState* __tstate = wxPyBeginAllowThreads();
30662 {
30663 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30664 result = (wxString *) &_result_ref;
30665 }
30666
30667 wxPyEndAllowThreads(__tstate);
30668 if (PyErr_Occurred()) SWIG_fail;
30669 }
30670 {
30671 #if wxUSE_UNICODE
30672 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30673 #else
30674 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30675 #endif
30676 }
30677 return resultobj;
30678 fail:
30679 return NULL;
30680 }
30681
30682
30683 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30684 PyObject *resultobj;
30685 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30686 wxString *arg2 = 0 ;
30687 bool temp2 = false ;
30688 PyObject * obj0 = 0 ;
30689 PyObject * obj1 = 0 ;
30690 char *kwnames[] = {
30691 (char *) "self",(char *) "link", NULL
30692 };
30693
30694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30697 {
30698 arg2 = wxString_in_helper(obj1);
30699 if (arg2 == NULL) SWIG_fail;
30700 temp2 = true;
30701 }
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
30704 (arg1)->SetLink((wxString const &)*arg2);
30705
30706 wxPyEndAllowThreads(__tstate);
30707 if (PyErr_Occurred()) SWIG_fail;
30708 }
30709 Py_INCREF(Py_None); resultobj = Py_None;
30710 {
30711 if (temp2)
30712 delete arg2;
30713 }
30714 return resultobj;
30715 fail:
30716 {
30717 if (temp2)
30718 delete arg2;
30719 }
30720 return NULL;
30721 }
30722
30723
30724 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30725 PyObject *resultobj;
30726 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30727 wxString *result;
30728 PyObject * obj0 = 0 ;
30729 char *kwnames[] = {
30730 (char *) "self", NULL
30731 };
30732
30733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 {
30739 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30740 result = (wxString *) &_result_ref;
30741 }
30742
30743 wxPyEndAllowThreads(__tstate);
30744 if (PyErr_Occurred()) SWIG_fail;
30745 }
30746 {
30747 #if wxUSE_UNICODE
30748 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30749 #else
30750 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30751 #endif
30752 }
30753 return resultobj;
30754 fail:
30755 return NULL;
30756 }
30757
30758
30759 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30760 PyObject *resultobj;
30761 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30762 wxString *arg2 = 0 ;
30763 bool temp2 = false ;
30764 PyObject * obj0 = 0 ;
30765 PyObject * obj1 = 0 ;
30766 char *kwnames[] = {
30767 (char *) "self",(char *) "target", NULL
30768 };
30769
30770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30773 {
30774 arg2 = wxString_in_helper(obj1);
30775 if (arg2 == NULL) SWIG_fail;
30776 temp2 = true;
30777 }
30778 {
30779 PyThreadState* __tstate = wxPyBeginAllowThreads();
30780 (arg1)->SetTarget((wxString const &)*arg2);
30781
30782 wxPyEndAllowThreads(__tstate);
30783 if (PyErr_Occurred()) SWIG_fail;
30784 }
30785 Py_INCREF(Py_None); resultobj = Py_None;
30786 {
30787 if (temp2)
30788 delete arg2;
30789 }
30790 return resultobj;
30791 fail:
30792 {
30793 if (temp2)
30794 delete arg2;
30795 }
30796 return NULL;
30797 }
30798
30799
30800 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30801 PyObject *obj;
30802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30803 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30804 Py_INCREF(obj);
30805 return Py_BuildValue((char *)"");
30806 }
30807 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30808 PyObject *resultobj;
30809 wxWindow *arg1 = (wxWindow *) NULL ;
30810 bool arg2 = (bool) true ;
30811 wxContextHelp *result;
30812 PyObject * obj0 = 0 ;
30813 PyObject * obj1 = 0 ;
30814 char *kwnames[] = {
30815 (char *) "window",(char *) "doNow", NULL
30816 };
30817
30818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30819 if (obj0) {
30820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30822 }
30823 if (obj1) {
30824 arg2 = (bool)SWIG_As_bool(obj1);
30825 if (PyErr_Occurred()) SWIG_fail;
30826 }
30827 {
30828 if (!wxPyCheckForApp()) SWIG_fail;
30829 PyThreadState* __tstate = wxPyBeginAllowThreads();
30830 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30831
30832 wxPyEndAllowThreads(__tstate);
30833 if (PyErr_Occurred()) SWIG_fail;
30834 }
30835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30836 return resultobj;
30837 fail:
30838 return NULL;
30839 }
30840
30841
30842 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30843 PyObject *resultobj;
30844 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30845 PyObject * obj0 = 0 ;
30846 char *kwnames[] = {
30847 (char *) "self", NULL
30848 };
30849
30850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30853 {
30854 PyThreadState* __tstate = wxPyBeginAllowThreads();
30855 delete arg1;
30856
30857 wxPyEndAllowThreads(__tstate);
30858 if (PyErr_Occurred()) SWIG_fail;
30859 }
30860 Py_INCREF(Py_None); resultobj = Py_None;
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj;
30869 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30870 wxWindow *arg2 = (wxWindow *) NULL ;
30871 bool result;
30872 PyObject * obj0 = 0 ;
30873 PyObject * obj1 = 0 ;
30874 char *kwnames[] = {
30875 (char *) "self",(char *) "window", NULL
30876 };
30877
30878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30881 if (obj1) {
30882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30884 }
30885 {
30886 PyThreadState* __tstate = wxPyBeginAllowThreads();
30887 result = (bool)(arg1)->BeginContextHelp(arg2);
30888
30889 wxPyEndAllowThreads(__tstate);
30890 if (PyErr_Occurred()) SWIG_fail;
30891 }
30892 {
30893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30894 }
30895 return resultobj;
30896 fail:
30897 return NULL;
30898 }
30899
30900
30901 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30902 PyObject *resultobj;
30903 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30904 bool result;
30905 PyObject * obj0 = 0 ;
30906 char *kwnames[] = {
30907 (char *) "self", NULL
30908 };
30909
30910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30913 {
30914 PyThreadState* __tstate = wxPyBeginAllowThreads();
30915 result = (bool)(arg1)->EndContextHelp();
30916
30917 wxPyEndAllowThreads(__tstate);
30918 if (PyErr_Occurred()) SWIG_fail;
30919 }
30920 {
30921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30922 }
30923 return resultobj;
30924 fail:
30925 return NULL;
30926 }
30927
30928
30929 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30930 PyObject *obj;
30931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30932 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30933 Py_INCREF(obj);
30934 return Py_BuildValue((char *)"");
30935 }
30936 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30937 PyObject *resultobj;
30938 wxWindow *arg1 = (wxWindow *) 0 ;
30939 int arg2 = (int) wxID_CONTEXT_HELP ;
30940 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30941 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30942 wxSize const &arg4_defvalue = wxDefaultSize ;
30943 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30944 long arg5 = (long) wxBU_AUTODRAW ;
30945 wxContextHelpButton *result;
30946 wxPoint temp3 ;
30947 wxSize temp4 ;
30948 PyObject * obj0 = 0 ;
30949 PyObject * obj1 = 0 ;
30950 PyObject * obj2 = 0 ;
30951 PyObject * obj3 = 0 ;
30952 PyObject * obj4 = 0 ;
30953 char *kwnames[] = {
30954 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30955 };
30956
30957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30960 if (obj1) {
30961 arg2 = (int)SWIG_As_int(obj1);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 if (obj2) {
30965 {
30966 arg3 = &temp3;
30967 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30968 }
30969 }
30970 if (obj3) {
30971 {
30972 arg4 = &temp4;
30973 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30974 }
30975 }
30976 if (obj4) {
30977 arg5 = (long)SWIG_As_long(obj4);
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
30980 {
30981 if (!wxPyCheckForApp()) SWIG_fail;
30982 PyThreadState* __tstate = wxPyBeginAllowThreads();
30983 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30984
30985 wxPyEndAllowThreads(__tstate);
30986 if (PyErr_Occurred()) SWIG_fail;
30987 }
30988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30989 return resultobj;
30990 fail:
30991 return NULL;
30992 }
30993
30994
30995 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30996 PyObject *obj;
30997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30998 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30999 Py_INCREF(obj);
31000 return Py_BuildValue((char *)"");
31001 }
31002 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
31003 PyObject *resultobj;
31004 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31005 wxHelpProvider *result;
31006 PyObject * obj0 = 0 ;
31007 char *kwnames[] = {
31008 (char *) "helpProvider", NULL
31009 };
31010
31011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
31012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31014 {
31015 PyThreadState* __tstate = wxPyBeginAllowThreads();
31016 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
31017
31018 wxPyEndAllowThreads(__tstate);
31019 if (PyErr_Occurred()) SWIG_fail;
31020 }
31021 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
31022 return resultobj;
31023 fail:
31024 return NULL;
31025 }
31026
31027
31028 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
31029 PyObject *resultobj;
31030 wxHelpProvider *result;
31031 char *kwnames[] = {
31032 NULL
31033 };
31034
31035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
31036 {
31037 PyThreadState* __tstate = wxPyBeginAllowThreads();
31038 result = (wxHelpProvider *)wxHelpProvider::Get();
31039
31040 wxPyEndAllowThreads(__tstate);
31041 if (PyErr_Occurred()) SWIG_fail;
31042 }
31043 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
31044 return resultobj;
31045 fail:
31046 return NULL;
31047 }
31048
31049
31050 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31051 PyObject *resultobj;
31052 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31053 wxWindow *arg2 = (wxWindow *) 0 ;
31054 wxString result;
31055 PyObject * obj0 = 0 ;
31056 PyObject * obj1 = 0 ;
31057 char *kwnames[] = {
31058 (char *) "self",(char *) "window", NULL
31059 };
31060
31061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
31062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31064 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31066 {
31067 PyThreadState* __tstate = wxPyBeginAllowThreads();
31068 result = (arg1)->GetHelp((wxWindow const *)arg2);
31069
31070 wxPyEndAllowThreads(__tstate);
31071 if (PyErr_Occurred()) SWIG_fail;
31072 }
31073 {
31074 #if wxUSE_UNICODE
31075 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31076 #else
31077 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31078 #endif
31079 }
31080 return resultobj;
31081 fail:
31082 return NULL;
31083 }
31084
31085
31086 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31087 PyObject *resultobj;
31088 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31089 wxWindow *arg2 = (wxWindow *) 0 ;
31090 bool result;
31091 PyObject * obj0 = 0 ;
31092 PyObject * obj1 = 0 ;
31093 char *kwnames[] = {
31094 (char *) "self",(char *) "window", NULL
31095 };
31096
31097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
31098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31102 {
31103 PyThreadState* __tstate = wxPyBeginAllowThreads();
31104 result = (bool)(arg1)->ShowHelp(arg2);
31105
31106 wxPyEndAllowThreads(__tstate);
31107 if (PyErr_Occurred()) SWIG_fail;
31108 }
31109 {
31110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31111 }
31112 return resultobj;
31113 fail:
31114 return NULL;
31115 }
31116
31117
31118 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31119 PyObject *resultobj;
31120 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31121 wxWindow *arg2 = (wxWindow *) 0 ;
31122 wxString *arg3 = 0 ;
31123 bool temp3 = false ;
31124 PyObject * obj0 = 0 ;
31125 PyObject * obj1 = 0 ;
31126 PyObject * obj2 = 0 ;
31127 char *kwnames[] = {
31128 (char *) "self",(char *) "window",(char *) "text", NULL
31129 };
31130
31131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
31132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31134 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31136 {
31137 arg3 = wxString_in_helper(obj2);
31138 if (arg3 == NULL) SWIG_fail;
31139 temp3 = true;
31140 }
31141 {
31142 PyThreadState* __tstate = wxPyBeginAllowThreads();
31143 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31144
31145 wxPyEndAllowThreads(__tstate);
31146 if (PyErr_Occurred()) SWIG_fail;
31147 }
31148 Py_INCREF(Py_None); resultobj = Py_None;
31149 {
31150 if (temp3)
31151 delete arg3;
31152 }
31153 return resultobj;
31154 fail:
31155 {
31156 if (temp3)
31157 delete arg3;
31158 }
31159 return NULL;
31160 }
31161
31162
31163 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
31164 PyObject *resultobj;
31165 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31166 int arg2 ;
31167 wxString *arg3 = 0 ;
31168 bool temp3 = false ;
31169 PyObject * obj0 = 0 ;
31170 PyObject * obj1 = 0 ;
31171 PyObject * obj2 = 0 ;
31172 char *kwnames[] = {
31173 (char *) "self",(char *) "id",(char *) "text", NULL
31174 };
31175
31176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
31177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31179 arg2 = (int)SWIG_As_int(obj1);
31180 if (PyErr_Occurred()) SWIG_fail;
31181 {
31182 arg3 = wxString_in_helper(obj2);
31183 if (arg3 == NULL) SWIG_fail;
31184 temp3 = true;
31185 }
31186 {
31187 PyThreadState* __tstate = wxPyBeginAllowThreads();
31188 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31189
31190 wxPyEndAllowThreads(__tstate);
31191 if (PyErr_Occurred()) SWIG_fail;
31192 }
31193 Py_INCREF(Py_None); resultobj = Py_None;
31194 {
31195 if (temp3)
31196 delete arg3;
31197 }
31198 return resultobj;
31199 fail:
31200 {
31201 if (temp3)
31202 delete arg3;
31203 }
31204 return NULL;
31205 }
31206
31207
31208 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31209 PyObject *resultobj;
31210 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31211 wxWindow *arg2 = (wxWindow *) 0 ;
31212 PyObject * obj0 = 0 ;
31213 PyObject * obj1 = 0 ;
31214 char *kwnames[] = {
31215 (char *) "self",(char *) "window", NULL
31216 };
31217
31218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
31219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31223 {
31224 PyThreadState* __tstate = wxPyBeginAllowThreads();
31225 (arg1)->RemoveHelp(arg2);
31226
31227 wxPyEndAllowThreads(__tstate);
31228 if (PyErr_Occurred()) SWIG_fail;
31229 }
31230 Py_INCREF(Py_None); resultobj = Py_None;
31231 return resultobj;
31232 fail:
31233 return NULL;
31234 }
31235
31236
31237 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
31238 PyObject *resultobj;
31239 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31240 PyObject * obj0 = 0 ;
31241 char *kwnames[] = {
31242 (char *) "self", NULL
31243 };
31244
31245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
31246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31248 {
31249 PyThreadState* __tstate = wxPyBeginAllowThreads();
31250 wxHelpProvider_Destroy(arg1);
31251
31252 wxPyEndAllowThreads(__tstate);
31253 if (PyErr_Occurred()) SWIG_fail;
31254 }
31255 Py_INCREF(Py_None); resultobj = Py_None;
31256 return resultobj;
31257 fail:
31258 return NULL;
31259 }
31260
31261
31262 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
31263 PyObject *obj;
31264 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31265 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
31266 Py_INCREF(obj);
31267 return Py_BuildValue((char *)"");
31268 }
31269 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
31270 PyObject *resultobj;
31271 wxSimpleHelpProvider *result;
31272 char *kwnames[] = {
31273 NULL
31274 };
31275
31276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
31277 {
31278 PyThreadState* __tstate = wxPyBeginAllowThreads();
31279 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
31280
31281 wxPyEndAllowThreads(__tstate);
31282 if (PyErr_Occurred()) SWIG_fail;
31283 }
31284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
31285 return resultobj;
31286 fail:
31287 return NULL;
31288 }
31289
31290
31291 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
31292 PyObject *obj;
31293 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31294 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
31295 Py_INCREF(obj);
31296 return Py_BuildValue((char *)"");
31297 }
31298 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31299 PyObject *resultobj;
31300 wxBitmap *arg1 = 0 ;
31301 wxCursor const &arg2_defvalue = wxNullCursor ;
31302 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31303 wxGenericDragImage *result;
31304 PyObject * obj0 = 0 ;
31305 PyObject * obj1 = 0 ;
31306 char *kwnames[] = {
31307 (char *) "image",(char *) "cursor", NULL
31308 };
31309
31310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
31311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
31312 SWIG_POINTER_EXCEPTION | 0)) == -1)
31313 SWIG_fail;
31314 if (arg1 == NULL) {
31315 PyErr_SetString(PyExc_TypeError,"null reference");
31316 SWIG_fail;
31317 }
31318 if (obj1) {
31319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31320 SWIG_POINTER_EXCEPTION | 0)) == -1)
31321 SWIG_fail;
31322 if (arg2 == NULL) {
31323 PyErr_SetString(PyExc_TypeError,"null reference");
31324 SWIG_fail;
31325 }
31326 }
31327 {
31328 if (!wxPyCheckForApp()) SWIG_fail;
31329 PyThreadState* __tstate = wxPyBeginAllowThreads();
31330 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
31331
31332 wxPyEndAllowThreads(__tstate);
31333 if (PyErr_Occurred()) SWIG_fail;
31334 }
31335 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31336 return resultobj;
31337 fail:
31338 return NULL;
31339 }
31340
31341
31342 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31343 PyObject *resultobj;
31344 wxIcon *arg1 = 0 ;
31345 wxCursor const &arg2_defvalue = wxNullCursor ;
31346 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31347 wxGenericDragImage *result;
31348 PyObject * obj0 = 0 ;
31349 PyObject * obj1 = 0 ;
31350 char *kwnames[] = {
31351 (char *) "image",(char *) "cursor", NULL
31352 };
31353
31354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31356 SWIG_POINTER_EXCEPTION | 0)) == -1)
31357 SWIG_fail;
31358 if (arg1 == NULL) {
31359 PyErr_SetString(PyExc_TypeError,"null reference");
31360 SWIG_fail;
31361 }
31362 if (obj1) {
31363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31364 SWIG_POINTER_EXCEPTION | 0)) == -1)
31365 SWIG_fail;
31366 if (arg2 == NULL) {
31367 PyErr_SetString(PyExc_TypeError,"null reference");
31368 SWIG_fail;
31369 }
31370 }
31371 {
31372 if (!wxPyCheckForApp()) SWIG_fail;
31373 PyThreadState* __tstate = wxPyBeginAllowThreads();
31374 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31375
31376 wxPyEndAllowThreads(__tstate);
31377 if (PyErr_Occurred()) SWIG_fail;
31378 }
31379 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31380 return resultobj;
31381 fail:
31382 return NULL;
31383 }
31384
31385
31386 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31387 PyObject *resultobj;
31388 wxString *arg1 = 0 ;
31389 wxCursor const &arg2_defvalue = wxNullCursor ;
31390 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31391 wxGenericDragImage *result;
31392 bool temp1 = false ;
31393 PyObject * obj0 = 0 ;
31394 PyObject * obj1 = 0 ;
31395 char *kwnames[] = {
31396 (char *) "str",(char *) "cursor", NULL
31397 };
31398
31399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31400 {
31401 arg1 = wxString_in_helper(obj0);
31402 if (arg1 == NULL) SWIG_fail;
31403 temp1 = true;
31404 }
31405 if (obj1) {
31406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31407 SWIG_POINTER_EXCEPTION | 0)) == -1)
31408 SWIG_fail;
31409 if (arg2 == NULL) {
31410 PyErr_SetString(PyExc_TypeError,"null reference");
31411 SWIG_fail;
31412 }
31413 }
31414 {
31415 if (!wxPyCheckForApp()) SWIG_fail;
31416 PyThreadState* __tstate = wxPyBeginAllowThreads();
31417 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31418
31419 wxPyEndAllowThreads(__tstate);
31420 if (PyErr_Occurred()) SWIG_fail;
31421 }
31422 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31423 {
31424 if (temp1)
31425 delete arg1;
31426 }
31427 return resultobj;
31428 fail:
31429 {
31430 if (temp1)
31431 delete arg1;
31432 }
31433 return NULL;
31434 }
31435
31436
31437 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31438 PyObject *resultobj;
31439 wxPyTreeCtrl *arg1 = 0 ;
31440 wxTreeItemId *arg2 = 0 ;
31441 wxGenericDragImage *result;
31442 PyObject * obj0 = 0 ;
31443 PyObject * obj1 = 0 ;
31444 char *kwnames[] = {
31445 (char *) "treeCtrl",(char *) "id", NULL
31446 };
31447
31448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31450 SWIG_POINTER_EXCEPTION | 0)) == -1)
31451 SWIG_fail;
31452 if (arg1 == NULL) {
31453 PyErr_SetString(PyExc_TypeError,"null reference");
31454 SWIG_fail;
31455 }
31456 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31457 SWIG_POINTER_EXCEPTION | 0)) == -1)
31458 SWIG_fail;
31459 if (arg2 == NULL) {
31460 PyErr_SetString(PyExc_TypeError,"null reference");
31461 SWIG_fail;
31462 }
31463 {
31464 if (!wxPyCheckForApp()) SWIG_fail;
31465 PyThreadState* __tstate = wxPyBeginAllowThreads();
31466 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31467
31468 wxPyEndAllowThreads(__tstate);
31469 if (PyErr_Occurred()) SWIG_fail;
31470 }
31471 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31472 return resultobj;
31473 fail:
31474 return NULL;
31475 }
31476
31477
31478 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31479 PyObject *resultobj;
31480 wxPyListCtrl *arg1 = 0 ;
31481 long arg2 ;
31482 wxGenericDragImage *result;
31483 PyObject * obj0 = 0 ;
31484 PyObject * obj1 = 0 ;
31485 char *kwnames[] = {
31486 (char *) "listCtrl",(char *) "id", NULL
31487 };
31488
31489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31491 SWIG_POINTER_EXCEPTION | 0)) == -1)
31492 SWIG_fail;
31493 if (arg1 == NULL) {
31494 PyErr_SetString(PyExc_TypeError,"null reference");
31495 SWIG_fail;
31496 }
31497 arg2 = (long)SWIG_As_long(obj1);
31498 if (PyErr_Occurred()) SWIG_fail;
31499 {
31500 if (!wxPyCheckForApp()) SWIG_fail;
31501 PyThreadState* __tstate = wxPyBeginAllowThreads();
31502 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31503
31504 wxPyEndAllowThreads(__tstate);
31505 if (PyErr_Occurred()) SWIG_fail;
31506 }
31507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31508 return resultobj;
31509 fail:
31510 return NULL;
31511 }
31512
31513
31514 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31515 PyObject *resultobj;
31516 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31517 PyObject * obj0 = 0 ;
31518 char *kwnames[] = {
31519 (char *) "self", NULL
31520 };
31521
31522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31525 {
31526 PyThreadState* __tstate = wxPyBeginAllowThreads();
31527 delete arg1;
31528
31529 wxPyEndAllowThreads(__tstate);
31530 if (PyErr_Occurred()) SWIG_fail;
31531 }
31532 Py_INCREF(Py_None); resultobj = Py_None;
31533 return resultobj;
31534 fail:
31535 return NULL;
31536 }
31537
31538
31539 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31540 PyObject *resultobj;
31541 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31542 wxBitmap *arg2 = (wxBitmap *) 0 ;
31543 PyObject * obj0 = 0 ;
31544 PyObject * obj1 = 0 ;
31545 char *kwnames[] = {
31546 (char *) "self",(char *) "bitmap", NULL
31547 };
31548
31549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31552 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31554 {
31555 PyThreadState* __tstate = wxPyBeginAllowThreads();
31556 (arg1)->SetBackingBitmap(arg2);
31557
31558 wxPyEndAllowThreads(__tstate);
31559 if (PyErr_Occurred()) SWIG_fail;
31560 }
31561 Py_INCREF(Py_None); resultobj = Py_None;
31562 return resultobj;
31563 fail:
31564 return NULL;
31565 }
31566
31567
31568 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31569 PyObject *resultobj;
31570 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31571 wxPoint *arg2 = 0 ;
31572 wxWindow *arg3 = (wxWindow *) 0 ;
31573 bool arg4 = (bool) false ;
31574 wxRect *arg5 = (wxRect *) NULL ;
31575 bool result;
31576 wxPoint temp2 ;
31577 PyObject * obj0 = 0 ;
31578 PyObject * obj1 = 0 ;
31579 PyObject * obj2 = 0 ;
31580 PyObject * obj3 = 0 ;
31581 PyObject * obj4 = 0 ;
31582 char *kwnames[] = {
31583 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31584 };
31585
31586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31589 {
31590 arg2 = &temp2;
31591 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31592 }
31593 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31595 if (obj3) {
31596 arg4 = (bool)SWIG_As_bool(obj3);
31597 if (PyErr_Occurred()) SWIG_fail;
31598 }
31599 if (obj4) {
31600 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31602 }
31603 {
31604 PyThreadState* __tstate = wxPyBeginAllowThreads();
31605 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31606
31607 wxPyEndAllowThreads(__tstate);
31608 if (PyErr_Occurred()) SWIG_fail;
31609 }
31610 {
31611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31612 }
31613 return resultobj;
31614 fail:
31615 return NULL;
31616 }
31617
31618
31619 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31620 PyObject *resultobj;
31621 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31622 wxPoint *arg2 = 0 ;
31623 wxWindow *arg3 = (wxWindow *) 0 ;
31624 wxWindow *arg4 = (wxWindow *) 0 ;
31625 bool result;
31626 wxPoint temp2 ;
31627 PyObject * obj0 = 0 ;
31628 PyObject * obj1 = 0 ;
31629 PyObject * obj2 = 0 ;
31630 PyObject * obj3 = 0 ;
31631 char *kwnames[] = {
31632 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31633 };
31634
31635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31638 {
31639 arg2 = &temp2;
31640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31641 }
31642 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31644 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31646 {
31647 PyThreadState* __tstate = wxPyBeginAllowThreads();
31648 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31649
31650 wxPyEndAllowThreads(__tstate);
31651 if (PyErr_Occurred()) SWIG_fail;
31652 }
31653 {
31654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31655 }
31656 return resultobj;
31657 fail:
31658 return NULL;
31659 }
31660
31661
31662 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31663 PyObject *resultobj;
31664 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31665 bool result;
31666 PyObject * obj0 = 0 ;
31667 char *kwnames[] = {
31668 (char *) "self", NULL
31669 };
31670
31671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31674 {
31675 PyThreadState* __tstate = wxPyBeginAllowThreads();
31676 result = (bool)(arg1)->EndDrag();
31677
31678 wxPyEndAllowThreads(__tstate);
31679 if (PyErr_Occurred()) SWIG_fail;
31680 }
31681 {
31682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31683 }
31684 return resultobj;
31685 fail:
31686 return NULL;
31687 }
31688
31689
31690 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31691 PyObject *resultobj;
31692 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31693 wxPoint *arg2 = 0 ;
31694 bool result;
31695 wxPoint temp2 ;
31696 PyObject * obj0 = 0 ;
31697 PyObject * obj1 = 0 ;
31698 char *kwnames[] = {
31699 (char *) "self",(char *) "pt", NULL
31700 };
31701
31702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31705 {
31706 arg2 = &temp2;
31707 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31708 }
31709 {
31710 PyThreadState* __tstate = wxPyBeginAllowThreads();
31711 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31712
31713 wxPyEndAllowThreads(__tstate);
31714 if (PyErr_Occurred()) SWIG_fail;
31715 }
31716 {
31717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31718 }
31719 return resultobj;
31720 fail:
31721 return NULL;
31722 }
31723
31724
31725 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31726 PyObject *resultobj;
31727 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31728 bool result;
31729 PyObject * obj0 = 0 ;
31730 char *kwnames[] = {
31731 (char *) "self", NULL
31732 };
31733
31734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31737 {
31738 PyThreadState* __tstate = wxPyBeginAllowThreads();
31739 result = (bool)(arg1)->Show();
31740
31741 wxPyEndAllowThreads(__tstate);
31742 if (PyErr_Occurred()) SWIG_fail;
31743 }
31744 {
31745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31746 }
31747 return resultobj;
31748 fail:
31749 return NULL;
31750 }
31751
31752
31753 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31754 PyObject *resultobj;
31755 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31756 bool result;
31757 PyObject * obj0 = 0 ;
31758 char *kwnames[] = {
31759 (char *) "self", NULL
31760 };
31761
31762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31765 {
31766 PyThreadState* __tstate = wxPyBeginAllowThreads();
31767 result = (bool)(arg1)->Hide();
31768
31769 wxPyEndAllowThreads(__tstate);
31770 if (PyErr_Occurred()) SWIG_fail;
31771 }
31772 {
31773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31774 }
31775 return resultobj;
31776 fail:
31777 return NULL;
31778 }
31779
31780
31781 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31782 PyObject *resultobj;
31783 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31784 wxPoint *arg2 = 0 ;
31785 wxRect result;
31786 wxPoint temp2 ;
31787 PyObject * obj0 = 0 ;
31788 PyObject * obj1 = 0 ;
31789 char *kwnames[] = {
31790 (char *) "self",(char *) "pos", NULL
31791 };
31792
31793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31796 {
31797 arg2 = &temp2;
31798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31799 }
31800 {
31801 PyThreadState* __tstate = wxPyBeginAllowThreads();
31802 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31803
31804 wxPyEndAllowThreads(__tstate);
31805 if (PyErr_Occurred()) SWIG_fail;
31806 }
31807 {
31808 wxRect * resultptr;
31809 resultptr = new wxRect((wxRect &) result);
31810 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31811 }
31812 return resultobj;
31813 fail:
31814 return NULL;
31815 }
31816
31817
31818 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31819 PyObject *resultobj;
31820 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31821 wxDC *arg2 = 0 ;
31822 wxPoint *arg3 = 0 ;
31823 bool result;
31824 wxPoint temp3 ;
31825 PyObject * obj0 = 0 ;
31826 PyObject * obj1 = 0 ;
31827 PyObject * obj2 = 0 ;
31828 char *kwnames[] = {
31829 (char *) "self",(char *) "dc",(char *) "pos", NULL
31830 };
31831
31832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31835 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31836 SWIG_POINTER_EXCEPTION | 0)) == -1)
31837 SWIG_fail;
31838 if (arg2 == NULL) {
31839 PyErr_SetString(PyExc_TypeError,"null reference");
31840 SWIG_fail;
31841 }
31842 {
31843 arg3 = &temp3;
31844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31845 }
31846 {
31847 PyThreadState* __tstate = wxPyBeginAllowThreads();
31848 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31849
31850 wxPyEndAllowThreads(__tstate);
31851 if (PyErr_Occurred()) SWIG_fail;
31852 }
31853 {
31854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31855 }
31856 return resultobj;
31857 fail:
31858 return NULL;
31859 }
31860
31861
31862 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31863 PyObject *resultobj;
31864 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31865 wxDC *arg2 = 0 ;
31866 wxMemoryDC *arg3 = 0 ;
31867 wxRect *arg4 = 0 ;
31868 wxRect *arg5 = 0 ;
31869 bool result;
31870 wxRect temp4 ;
31871 wxRect temp5 ;
31872 PyObject * obj0 = 0 ;
31873 PyObject * obj1 = 0 ;
31874 PyObject * obj2 = 0 ;
31875 PyObject * obj3 = 0 ;
31876 PyObject * obj4 = 0 ;
31877 char *kwnames[] = {
31878 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31879 };
31880
31881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31884 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31885 SWIG_POINTER_EXCEPTION | 0)) == -1)
31886 SWIG_fail;
31887 if (arg2 == NULL) {
31888 PyErr_SetString(PyExc_TypeError,"null reference");
31889 SWIG_fail;
31890 }
31891 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31892 SWIG_POINTER_EXCEPTION | 0)) == -1)
31893 SWIG_fail;
31894 if (arg3 == NULL) {
31895 PyErr_SetString(PyExc_TypeError,"null reference");
31896 SWIG_fail;
31897 }
31898 {
31899 arg4 = &temp4;
31900 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31901 }
31902 {
31903 arg5 = &temp5;
31904 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31905 }
31906 {
31907 PyThreadState* __tstate = wxPyBeginAllowThreads();
31908 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31909
31910 wxPyEndAllowThreads(__tstate);
31911 if (PyErr_Occurred()) SWIG_fail;
31912 }
31913 {
31914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31915 }
31916 return resultobj;
31917 fail:
31918 return NULL;
31919 }
31920
31921
31922 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31923 PyObject *resultobj;
31924 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31925 wxPoint *arg2 = 0 ;
31926 wxPoint *arg3 = 0 ;
31927 bool arg4 ;
31928 bool arg5 ;
31929 bool result;
31930 wxPoint temp2 ;
31931 wxPoint temp3 ;
31932 PyObject * obj0 = 0 ;
31933 PyObject * obj1 = 0 ;
31934 PyObject * obj2 = 0 ;
31935 PyObject * obj3 = 0 ;
31936 PyObject * obj4 = 0 ;
31937 char *kwnames[] = {
31938 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31939 };
31940
31941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31944 {
31945 arg2 = &temp2;
31946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31947 }
31948 {
31949 arg3 = &temp3;
31950 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31951 }
31952 arg4 = (bool)SWIG_As_bool(obj3);
31953 if (PyErr_Occurred()) SWIG_fail;
31954 arg5 = (bool)SWIG_As_bool(obj4);
31955 if (PyErr_Occurred()) SWIG_fail;
31956 {
31957 PyThreadState* __tstate = wxPyBeginAllowThreads();
31958 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31959
31960 wxPyEndAllowThreads(__tstate);
31961 if (PyErr_Occurred()) SWIG_fail;
31962 }
31963 {
31964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31965 }
31966 return resultobj;
31967 fail:
31968 return NULL;
31969 }
31970
31971
31972 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31973 PyObject *obj;
31974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31975 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31976 Py_INCREF(obj);
31977 return Py_BuildValue((char *)"");
31978 }
31979 static PyMethodDef SwigMethods[] = {
31980 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31987 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
32002 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
32014 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
32022 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"ComboBox_GetMark", (PyCFunction) _wrap_ComboBox_GetMark, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
32044 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
32058 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
32063 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
32070 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
32075 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
32083 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
32106 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
32115 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
32146 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
32204 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
32209 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
32221 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
32234 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
32240 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
32246 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
32250 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
32268 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32273 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
32275 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
32277 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32289 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32297 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
32301 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32305 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
32309 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL },
32312 { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32320 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32321 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL },
32331 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32335 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL },
32337 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32347 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32349 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32355 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32357 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL },
32363 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL },
32365 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32370 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32375 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32399 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32405 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32421 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32422 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32433 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32440 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32450 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32456 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32468 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32476 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32477 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32478 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32479 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32485 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32489 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32492 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32496 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32497 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32498 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32499 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32500 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32501 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32502 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32503 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32504 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32505 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32506 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32507 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32508 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32509 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32510 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32511 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32512 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32513 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32514 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32515 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32516 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32517 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32518 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32519 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32520 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32521 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32522 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32523 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32524 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32525 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32526 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32527 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32528 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32529 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32530 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32531 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32532 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32533 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32534 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32535 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32536 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32537 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32538 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32539 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32540 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32541 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32542 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32543 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32544 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32545 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32546 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32547 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32548 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32549 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32550 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32551 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32552 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32553 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32554 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32555 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32556 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32557 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32558 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32559 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32560 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32561 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32562 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32563 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32564 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32565 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32566 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32567 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32568 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32569 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32570 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32571 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32572 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32573 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32574 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32575 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32576 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32577 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32578 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32579 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32580 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32581 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32582 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32583 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32584 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32585 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32586 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32587 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32588 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32589 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32590 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32591 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32592 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32593 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32594 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32595 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32596 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32597 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32598 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32599 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32600 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32601 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32602 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32603 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32604 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32605 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32606 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32607 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32608 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32609 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32610 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32611 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32612 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32613 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32614 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32615 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32616 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32617 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32618 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32619 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32620 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32621 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32622 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32623 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32624 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32625 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32626 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32627 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32628 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32629 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32630 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32631 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32632 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32633 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32634 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32635 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32636 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32637 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32638 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32639 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32640 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32641 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32642 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32643 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32644 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32645 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32646 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32647 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32648 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32649 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32650 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32651 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32652 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32653 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32654 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32655 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32656 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32657 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32658 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32659 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32660 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32661 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32662 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32663 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32664 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32665 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32666 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32667 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32668 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32669 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32670 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32671 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32672 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32673 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32674 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32675 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32676 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32677 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32678 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32679 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32680 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32681 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32682 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32683 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32684 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32685 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32686 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32687 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32688 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32689 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32690 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL },
32691 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32692 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32693 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32694 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32695 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32696 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32697 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32698 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32699 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32700 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32701 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32702 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32703 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32704 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32705 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32706 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32707 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32708 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32709 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32710 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32711 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32712 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32713 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32714 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32715 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32716 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32717 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32718 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32719 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32720 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32721 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32722 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32723 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32724 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32725 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32726 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32727 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32728 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32729 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32730 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32731 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32732 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32733 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32734 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32735 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32736 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32737 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32738 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32739 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32740 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32741 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32742 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32743 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32744 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32745 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32746 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32747 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32748 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32749 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32750 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32751 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32752 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32753 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32754 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32755 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32756 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32757 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32758 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32759 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32760 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32761 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32762 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32763 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32764 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32765 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32766 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32767 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32768 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32769 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32770 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32771 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32772 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32773 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32774 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32775 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32776 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32777 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32778 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32779 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32780 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32781 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32782 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32783 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32784 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32785 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32786 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32787 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32788 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32789 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32790 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32791 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32792 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32793 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32794 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32795 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32796 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32797 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32798 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32799 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32800 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32801 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32802 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32803 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32804 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32805 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32806 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32807 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32808 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32809 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32810 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32811 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32812 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32813 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32814 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32815 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32816 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32817 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32818 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32819 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32820 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32821 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32822 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32823 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32824 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32825 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32826 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32827 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32828 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32829 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32830 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32831 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32832 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32833 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32834 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32835 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32836 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32837 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32838 { NULL, NULL, 0, NULL }
32839 };
32840
32841
32842 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32843
32844 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32845 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32846 }
32847 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32848 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32849 }
32850 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32851 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32852 }
32853 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32854 return (void *)((wxSizer *) ((wxGridSizer *) x));
32855 }
32856 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32857 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32858 }
32859 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32860 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32861 }
32862 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32863 return (void *)((wxSizer *) ((wxPySizer *) x));
32864 }
32865 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32866 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32867 }
32868 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32869 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32870 }
32871 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32872 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32873 }
32874 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32875 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32876 }
32877 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32878 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32879 }
32880 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32881 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32882 }
32883 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
32884 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
32885 }
32886 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32887 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32888 }
32889 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32890 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32891 }
32892 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32893 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32894 }
32895 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32896 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32897 }
32898 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32899 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32900 }
32901 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32902 return (void *)((wxEvent *) ((wxPyEvent *) x));
32903 }
32904 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32905 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32906 }
32907 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32908 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32909 }
32910 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32911 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
32912 }
32913 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32914 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
32915 }
32916 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
32917 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
32918 }
32919 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32921 }
32922 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32923 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32924 }
32925 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32926 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32927 }
32928 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32929 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32930 }
32931 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32932 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32933 }
32934 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32935 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32936 }
32937 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32938 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32939 }
32940 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32941 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32942 }
32943 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32944 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32945 }
32946 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32947 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32948 }
32949 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32950 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32951 }
32952 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32953 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32954 }
32955 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32956 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32957 }
32958 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32959 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32960 }
32961 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32962 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32963 }
32964 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32965 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32966 }
32967 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32968 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32969 }
32970 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32971 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32972 }
32973 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32974 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32975 }
32976 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32977 return (void *)((wxEvent *) ((wxShowEvent *) x));
32978 }
32979 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32980 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32981 }
32982 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32983 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32984 }
32985 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32986 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32987 }
32988 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32989 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32990 }
32991 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32992 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32993 }
32994 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32995 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32996 }
32997 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32998 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32999 }
33000 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
33001 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33002 }
33003 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
33004 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33005 }
33006 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
33007 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
33008 }
33009 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
33010 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
33011 }
33012 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
33013 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
33014 }
33015 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
33016 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33017 }
33018 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
33019 return (void *)((wxPyListCtrl *) ((wxListView *) x));
33020 }
33021 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
33022 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
33023 }
33024 static void *_p_wxToolBarTo_p_wxControl(void *x) {
33025 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
33026 }
33027 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
33028 return (void *)((wxControl *) ((wxToggleButton *) x));
33029 }
33030 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
33031 return (void *)((wxControl *) ((wxRadioButton *) x));
33032 }
33033 static void *_p_wxPyControlTo_p_wxControl(void *x) {
33034 return (void *)((wxControl *) ((wxPyControl *) x));
33035 }
33036 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
33037 return (void *)((wxControl *) ((wxToolBarBase *) x));
33038 }
33039 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
33040 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33041 }
33042 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
33043 return (void *)((wxControl *) ((wxPyListCtrl *) x));
33044 }
33045 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
33046 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33047 }
33048 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
33049 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
33050 }
33051 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
33052 return (void *)((wxControl *) ((wxScrollBar *) x));
33053 }
33054 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
33055 return (void *)((wxControl *) ((wxControlWithItems *) x));
33056 }
33057 static void *_p_wxGaugeTo_p_wxControl(void *x) {
33058 return (void *)((wxControl *) ((wxGauge *) x));
33059 }
33060 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
33061 return (void *)((wxControl *) ((wxStaticLine *) x));
33062 }
33063 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
33064 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
33065 }
33066 static void *_p_wxListbookTo_p_wxControl(void *x) {
33067 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
33068 }
33069 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
33070 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
33071 }
33072 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
33073 return (void *)((wxControl *) ((wxCheckBox *) x));
33074 }
33075 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
33076 return (void *)((wxControl *) ((wxRadioBox *) x));
33077 }
33078 static void *_p_wxChoiceTo_p_wxControl(void *x) {
33079 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
33080 }
33081 static void *_p_wxListBoxTo_p_wxControl(void *x) {
33082 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
33083 }
33084 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
33085 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33086 }
33087 static void *_p_wxListViewTo_p_wxControl(void *x) {
33088 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
33089 }
33090 static void *_p_wxNotebookTo_p_wxControl(void *x) {
33091 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
33092 }
33093 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
33094 return (void *)((wxControl *) ((wxStaticBitmap *) x));
33095 }
33096 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
33097 return (void *)((wxControl *) ((wxSpinCtrl *) x));
33098 }
33099 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
33100 return (void *)((wxControl *) ((wxStaticText *) x));
33101 }
33102 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
33103 return (void *)((wxControl *) ((wxStaticBox *) x));
33104 }
33105 static void *_p_wxSliderTo_p_wxControl(void *x) {
33106 return (void *)((wxControl *) ((wxSlider *) x));
33107 }
33108 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
33109 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33110 }
33111 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
33112 return (void *)((wxControl *) ((wxSpinButton *) x));
33113 }
33114 static void *_p_wxButtonTo_p_wxControl(void *x) {
33115 return (void *)((wxControl *) ((wxButton *) x));
33116 }
33117 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
33118 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
33119 }
33120 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
33121 return (void *)((wxControl *) ((wxTextCtrl *) x));
33122 }
33123 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
33124 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
33125 }
33126 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
33127 return (void *)((wxChoice *) ((wxComboBox *) x));
33128 }
33129 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
33130 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
33131 }
33132 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
33133 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33134 }
33135 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
33136 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
33137 }
33138 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
33139 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
33140 }
33141 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
33142 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
33143 }
33144 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
33145 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33146 }
33147 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
33148 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33149 }
33150 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
33151 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33152 }
33153 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
33154 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
33155 }
33156 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
33157 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
33158 }
33159 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
33160 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
33161 }
33162 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33163 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33164 }
33165 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
33166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33167 }
33168 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33169 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33170 }
33171 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33172 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33173 }
33174 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
33175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33176 }
33177 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33178 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33179 }
33180 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
33181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
33182 }
33183 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
33184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
33185 }
33186 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33187 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33188 }
33189 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33190 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33191 }
33192 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
33193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33194 }
33195 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
33196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33197 }
33198 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
33199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33200 }
33201 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
33202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33203 }
33204 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
33205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
33206 }
33207 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33208 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33209 }
33210 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
33211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33212 }
33213 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
33214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
33215 }
33216 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33218 }
33219 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
33220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
33221 }
33222 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
33223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
33224 }
33225 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
33226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33227 }
33228 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
33229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33230 }
33231 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
33232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33233 }
33234 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
33235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
33236 }
33237 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
33238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
33239 }
33240 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
33241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33242 }
33243 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
33244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33245 }
33246 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
33247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33248 }
33249 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
33250 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33251 }
33252 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
33253 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33254 }
33255 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
33256 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33257 }
33258 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
33259 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33260 }
33261 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
33262 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
33263 }
33264 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
33265 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
33266 }
33267 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
33268 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
33269 }
33270 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
33271 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
33272 }
33273 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
33274 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
33275 }
33276 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
33277 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33278 }
33279 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
33280 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33281 }
33282 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
33283 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33284 }
33285 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
33286 return (void *)((wxListBox *) ((wxCheckListBox *) x));
33287 }
33288 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
33289 return (void *)((wxButton *) ((wxBitmapButton *) x));
33290 }
33291 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
33292 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
33293 }
33294 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
33295 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
33296 }
33297 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
33298 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
33299 }
33300 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33301 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33302 }
33303 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33304 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33305 }
33306 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33307 return (void *)((wxObject *) ((wxSizerItem *) x));
33308 }
33309 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33310 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33311 }
33312 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33313 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33314 }
33315 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
33316 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
33317 }
33318 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33319 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33320 }
33321 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33322 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33323 }
33324 static void *_p_wxSizerTo_p_wxObject(void *x) {
33325 return (void *)((wxObject *) ((wxSizer *) x));
33326 }
33327 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33328 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33329 }
33330 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
33331 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
33332 }
33333 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
33334 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33335 }
33336 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33337 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33338 }
33339 static void *_p_wxEventTo_p_wxObject(void *x) {
33340 return (void *)((wxObject *) ((wxEvent *) x));
33341 }
33342 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33343 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33344 }
33345 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33346 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33347 }
33348 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33349 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33350 }
33351 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33353 }
33354 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33356 }
33357 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33359 }
33360 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33361 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33362 }
33363 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33364 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33365 }
33366 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33367 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33368 }
33369 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33370 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33371 }
33372 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33373 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33374 }
33375 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33376 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33377 }
33378 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33380 }
33381 static void *_p_wxControlTo_p_wxObject(void *x) {
33382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33383 }
33384 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33385 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33386 }
33387 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33388 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33389 }
33390 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33392 }
33393 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33395 }
33396 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33397 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33398 }
33399 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33400 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33401 }
33402 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33404 }
33405 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33406 return (void *)((wxObject *) ((wxFSFile *) x));
33407 }
33408 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33409 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33410 }
33411 static void *_p_wxListViewTo_p_wxObject(void *x) {
33412 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33413 }
33414 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33415 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33416 }
33417 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33418 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33419 }
33420 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33421 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33422 }
33423 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33424 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33425 }
33426 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
33427 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33428 }
33429 static void *_p_wxListbookTo_p_wxObject(void *x) {
33430 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33431 }
33432 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33433 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33434 }
33435 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33436 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33437 }
33438 static void *_p_wxSliderTo_p_wxObject(void *x) {
33439 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33440 }
33441 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33442 return (void *)((wxObject *) ((wxMenuItem *) x));
33443 }
33444 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33445 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33446 }
33447 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33448 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33449 }
33450 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33451 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33452 }
33453 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33454 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33455 }
33456 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33457 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33458 }
33459 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33460 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33461 }
33462 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33463 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33464 }
33465 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33466 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33467 }
33468 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33470 }
33471 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33472 return (void *)((wxObject *) ((wxContextHelp *) x));
33473 }
33474 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
33475 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33476 }
33477 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33478 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33479 }
33480 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33481 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33482 }
33483 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33484 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33485 }
33486 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33487 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33488 }
33489 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33490 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33491 }
33492 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33493 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33494 }
33495 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33496 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33497 }
33498 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33499 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33500 }
33501 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33502 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33503 }
33504 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33505 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33506 }
33507 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33508 return (void *)((wxObject *) ((wxImageHandler *) x));
33509 }
33510 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33511 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33512 }
33513 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33514 return (void *)((wxObject *) ((wxEvtHandler *) x));
33515 }
33516 static void *_p_wxListEventTo_p_wxObject(void *x) {
33517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33518 }
33519 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33520 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33521 }
33522 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33523 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33524 }
33525 static void *_p_wxButtonTo_p_wxObject(void *x) {
33526 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33527 }
33528 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33529 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33530 }
33531 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33533 }
33534 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33536 }
33537 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33538 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33539 }
33540 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33541 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33542 }
33543 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33544 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33545 }
33546 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33547 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33548 }
33549 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33550 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33551 }
33552 static void *_p_wxListItemTo_p_wxObject(void *x) {
33553 return (void *)((wxObject *) ((wxListItem *) x));
33554 }
33555 static void *_p_wxImageTo_p_wxObject(void *x) {
33556 return (void *)((wxObject *) ((wxImage *) x));
33557 }
33558 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33559 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33560 }
33561 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33562 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33563 }
33564 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33566 }
33567 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33568 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33569 }
33570 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33572 }
33573 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33574 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33575 }
33576 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33577 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33578 }
33579 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
33580 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33581 }
33582 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33583 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33584 }
33585 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33586 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33587 }
33588 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33589 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33590 }
33591 static void *_p_wxWindowTo_p_wxObject(void *x) {
33592 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33593 }
33594 static void *_p_wxMenuTo_p_wxObject(void *x) {
33595 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33596 }
33597 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33599 }
33600 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33601 return (void *)((wxObject *) ((wxFileSystem *) x));
33602 }
33603 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33605 }
33606 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33607 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33608 }
33609 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33610 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33611 }
33612 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33613 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33614 }
33615 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33616 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33617 }
33618 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33619 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33620 }
33621 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
33622 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33623 }
33624 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33625 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33626 }
33627 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33629 }
33630 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33631 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33632 }
33633 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33634 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33635 }
33636 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33637 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33638 }
33639 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33640 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33641 }
33642 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33643 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33644 }
33645 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33646 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33647 }
33648 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33649 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33650 }
33651 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33652 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33653 }
33654 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33655 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33656 }
33657 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33658 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33659 }
33660 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33661 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33662 }
33663 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33664 return (void *)((wxWindow *) ((wxMenuBar *) x));
33665 }
33666 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
33667 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
33668 }
33669 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33670 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33671 }
33672 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33673 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33674 }
33675 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33676 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33677 }
33678 static void *_p_wxControlTo_p_wxWindow(void *x) {
33679 return (void *)((wxWindow *) ((wxControl *) x));
33680 }
33681 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33682 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33683 }
33684 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33685 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33686 }
33687 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33688 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33689 }
33690 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33691 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33692 }
33693 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33694 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33695 }
33696 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33697 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33698 }
33699 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33700 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33701 }
33702 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33703 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33704 }
33705 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33706 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33707 }
33708 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33709 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33710 }
33711 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
33712 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33713 }
33714 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33715 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33716 }
33717 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33718 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33719 }
33720 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33721 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33722 }
33723 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33724 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33725 }
33726 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33727 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33728 }
33729 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33730 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33731 }
33732 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33733 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33734 }
33735 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33736 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33737 }
33738 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33739 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33740 }
33741 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33742 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33743 }
33744 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33745 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33746 }
33747 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33748 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33749 }
33750 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33751 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33752 }
33753 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33754 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33755 }
33756 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33757 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33758 }
33759 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33760 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33761 }
33762 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33763 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33764 }
33765 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33766 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33767 }
33768 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33769 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33770 }
33771 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33772 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33773 }
33774 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33775 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33776 }
33777 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33778 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33779 }
33780 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33781 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33782 }
33783 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33784 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33785 }
33786 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33787 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33788 }
33789 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33790 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33791 }
33792 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33793 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33794 }
33795 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33796 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33797 }
33798 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
33799 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33800 }
33801 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33802 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33803 }
33804 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33805 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33806 }
33807 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33808 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33809 }
33810 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33811 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33812 }
33813 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
33814 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33815 }
33816 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33817 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33818 }
33819 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33820 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33821 }
33822 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33823 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33824 }
33825 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33826 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33827 }
33828 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33829 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33830 }
33831 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33832 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33833 }
33834 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33835 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33836 }
33837 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33838 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33839 }
33840 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33841 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33842 }
33843 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33844 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33845 }
33846 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33847 return (void *)((wxValidator *) ((wxPyValidator *) x));
33848 }
33849 static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33850 static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33851 static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33852 static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33853 static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33854 static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33855 static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33856 static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33857 static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33858 static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33859 static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33860 static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33861 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33862 static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33863 static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33864 static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33865 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33866 static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33867 static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33868 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33869 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33870 static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33871 static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33872 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33873 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33874 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33875 static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33876 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33877 static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33878 static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33879 static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33880 static swig_type_info _swigt__p_wxChoicebook[] = {{"_p_wxChoicebook", 0, "wxChoicebook *", 0, 0, 0, 0},{"_p_wxChoicebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33881 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33882 static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33883 static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33884 static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33885 static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33886 static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33887 static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33888 static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33889 static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33890 static swig_type_info _swigt__p_wxBookCtrlBase[] = {{"_p_wxBookCtrlBase", 0, "wxBookCtrlBase *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrlBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33891 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33892 static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33893 static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33894 static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33895 static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33896 static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33897 static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33898 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33899 static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33900 static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33901 static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33902 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33903 static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33904 static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33905 static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33906 static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33907 static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33908 static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33909 static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33910 static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33911 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33912 static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33913 static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33914 static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33915 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33916 static swig_type_info _swigt__p_wxChoicebookEvent[] = {{"_p_wxChoicebookEvent", 0, "wxChoicebookEvent *", 0, 0, 0, 0},{"_p_wxChoicebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33917 static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33918 static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33919 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33920 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33921 static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33922 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBase", _p_wxBookCtrlBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33923 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33924 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33925 static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33926 static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33927 static swig_type_info _swigt__p_wxBookCtrlBaseEvent[] = {{"_p_wxBookCtrlBaseEvent", 0, "wxBookCtrlBaseEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33928 static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlBaseEvent", _p_wxBookCtrlBaseEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33929 static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33930 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33931 static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33932 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33933 static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33934 static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33935 static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33936
33937 static swig_type_info *swig_types_initial[] = {
33938 _swigt__p_wxTextUrlEvent,
33939 _swigt__p_wxSizer,
33940 _swigt__p_wxCheckBox,
33941 _swigt__p_wxPyTreeCtrl,
33942 _swigt__p_wxEvent,
33943 _swigt__p_wxGenericDirCtrl,
33944 _swigt__p_bool,
33945 _swigt__p_wxPyTreeItemData,
33946 _swigt__p_wxItemContainer,
33947 _swigt__p_wxPyListCtrl,
33948 _swigt__p_wxDirFilterListCtrl,
33949 _swigt__p_wxStaticLine,
33950 _swigt__p_wxControl,
33951 _swigt__p_wxPyControl,
33952 _swigt__p_wxGauge,
33953 _swigt__p_wxToolBarBase,
33954 _swigt__p_wxFont,
33955 _swigt__p_wxToggleButton,
33956 _swigt__p_wxRadioButton,
33957 _swigt__p_wxChoice,
33958 _swigt__p_wxMemoryDC,
33959 _swigt__p_wxListItemAttr,
33960 _swigt__p_void,
33961 _swigt__p_int,
33962 _swigt__p_wxSize,
33963 _swigt__p_wxDC,
33964 _swigt__p_wxListView,
33965 _swigt__p_wxIcon,
33966 _swigt__p_wxVisualAttributes,
33967 _swigt__p_wxTextCtrl,
33968 _swigt__p_wxNotebook,
33969 _swigt__p_wxChoicebook,
33970 _swigt__p_wxNotifyEvent,
33971 _swigt__p_wxArrayString,
33972 _swigt__p_wxListbook,
33973 _swigt__p_wxStaticBitmap,
33974 _swigt__p_wxSlider,
33975 _swigt__p_wxStaticBox,
33976 _swigt__p_wxArrayInt,
33977 _swigt__p_wxContextHelp,
33978 _swigt__p_long,
33979 _swigt__p_wxBookCtrlBase,
33980 _swigt__p_wxEvtHandler,
33981 _swigt__p_wxListEvent,
33982 _swigt__p_wxCheckListBox,
33983 _swigt__p_wxListBox,
33984 _swigt__p_wxSpinButton,
33985 _swigt__p_wxButton,
33986 _swigt__p_wxBitmapButton,
33987 _swigt__p_wxRect,
33988 _swigt__p_wxContextHelpButton,
33989 _swigt__p_wxRadioBox,
33990 _swigt__p_wxScrollBar,
33991 _swigt__p_char,
33992 _swigt__p_wxTreeItemId,
33993 _swigt__p_wxComboBox,
33994 _swigt__p_wxHelpEvent,
33995 _swigt__p_wxListItem,
33996 _swigt__p_wxNotebookSizer,
33997 _swigt__p_wxSpinEvent,
33998 _swigt__p_wxGenericDragImage,
33999 _swigt__p_wxSpinCtrl,
34000 _swigt__p_wxImageList,
34001 _swigt__p_wxHelpProvider,
34002 _swigt__p_wxTextAttr,
34003 _swigt__p_wxSimpleHelpProvider,
34004 _swigt__p_wxPoint,
34005 _swigt__p_wxChoicebookEvent,
34006 _swigt__p_wxListbookEvent,
34007 _swigt__p_wxNotebookEvent,
34008 _swigt__p_wxObject,
34009 _swigt__p_wxCursor,
34010 _swigt__p_wxKeyEvent,
34011 _swigt__p_wxWindow,
34012 _swigt__p_wxString,
34013 _swigt__p_wxBitmap,
34014 _swigt__p_wxTreeEvent,
34015 _swigt__p_wxMouseEvent,
34016 _swigt__p_wxBookCtrlBaseEvent,
34017 _swigt__p_wxCommandEvent,
34018 _swigt__p_wxStaticText,
34019 _swigt__p_wxControlWithItems,
34020 _swigt__p_wxToolBarToolBase,
34021 _swigt__p_wxColour,
34022 _swigt__p_wxToolBar,
34023 _swigt__p_wxBookCtrlSizer,
34024 _swigt__p_wxValidator,
34025 0
34026 };
34027
34028
34029 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
34030
34031 static swig_const_info swig_const_table[] = {
34032 {0, 0, 0, 0.0, 0, 0}};
34033
34034 #ifdef __cplusplus
34035 }
34036 #endif
34037
34038 #ifdef __cplusplus
34039 extern "C"
34040 #endif
34041 SWIGEXPORT(void) SWIG_init(void) {
34042 static PyObject *SWIG_globals = 0;
34043 static int typeinit = 0;
34044 PyObject *m, *d;
34045 int i;
34046 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
34047 m = Py_InitModule((char *) SWIG_name, SwigMethods);
34048 d = PyModule_GetDict(m);
34049
34050 if (!typeinit) {
34051 for (i = 0; swig_types_initial[i]; i++) {
34052 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
34053 }
34054 typeinit = 1;
34055 }
34056 SWIG_InstallConstants(d,swig_const_table);
34057
34058 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
34059 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
34060 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
34061 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
34062 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
34063 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
34064 PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)wxBU_ALIGN_MASK));
34065 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
34066 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
34067 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
34068 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
34069 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
34070 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
34071 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
34072 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
34073 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
34074 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
34075 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
34076 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
34077 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
34078 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
34079 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
34080 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
34081 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
34082 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
34083 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
34084 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
34085 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
34086 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
34087 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
34088 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
34089 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
34090 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
34091 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
34092 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
34093 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
34094 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
34095 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
34096 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
34097 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
34098 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
34099 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
34100 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
34101 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
34102 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
34103 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
34104 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
34105 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
34106 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
34107 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
34108 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
34109 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
34110 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
34111 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
34112 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
34113 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
34114 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
34115 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
34116 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
34117 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
34118 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
34119 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
34120 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
34121 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
34122 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
34123 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
34124 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
34125 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
34126 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
34127 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
34128 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
34129 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
34130 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
34131 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
34132 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
34133 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
34134 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
34135 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
34136 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
34137 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
34138 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
34139 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
34140 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
34141 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
34142 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
34143 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
34144 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
34145 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
34146 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
34147 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
34148 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
34149 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
34150 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
34151 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
34152 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
34153 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
34154 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
34155 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
34156 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
34157 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
34158 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
34159 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
34160 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
34161 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
34162 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
34163 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
34164 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
34165 PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT));
34166 PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP));
34167 PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM));
34168 PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT));
34169 PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT));
34170 PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK));
34171 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
34172 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
34173 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
34174 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
34175 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
34176 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
34177 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
34178 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
34179 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
34180 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
34181 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
34182 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
34183 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
34184 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
34185 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
34186 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
34187 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
34188 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
34189 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
34190 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
34191 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
34192 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
34193 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
34194 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
34195 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
34196 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
34197 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
34198 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
34199 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
34200 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
34201 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
34202 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
34203 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
34204 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
34205 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
34206 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
34207 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
34208 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
34209 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
34210 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
34211 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
34212 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
34213 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
34214 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
34215 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
34216 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
34217 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
34218 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
34219 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
34220 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
34221 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
34222 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
34223 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
34224 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
34225 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
34226 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
34227 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
34228 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
34229 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
34230 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
34231 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
34232 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
34233 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
34234 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
34235 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
34236 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
34237 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
34238 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
34239 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
34240 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
34241 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
34242 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
34243 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
34244 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
34245 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
34246 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
34247 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
34248 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
34249 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
34250 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
34251 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
34252 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
34253 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
34254 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
34255 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
34256 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
34257 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
34258 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
34259 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
34260 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
34261 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
34262 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
34263 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
34264 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
34265 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
34266 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
34267 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
34268 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
34269 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
34270 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
34271 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
34272 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
34273 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
34274 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
34275 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
34276 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
34277 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
34278
34279 // Map renamed classes back to their common name for OOR
34280 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
34281
34282 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
34283 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
34284 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
34285 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
34286 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
34287 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
34288 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
34289 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
34290 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
34291 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
34292 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
34293 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
34294 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
34295 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
34296 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
34297 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
34298 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
34299 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
34300 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
34301 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
34302 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
34303 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
34304 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
34305 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
34306 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
34307 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
34308 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
34309 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
34310 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
34311 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
34312 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
34313 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
34314 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
34315 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
34316 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
34317 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
34318 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
34319 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
34320 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
34321 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
34322 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
34323 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
34324 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
34325 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
34326 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
34327 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
34328 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
34329 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
34330 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
34331 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
34332 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
34333 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
34334 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
34335 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
34336 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
34337 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
34338
34339 // Map renamed classes back to their common name for OOR
34340 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
34341 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
34342
34343 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
34344 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
34345 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
34346 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
34347 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
34348 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
34349 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
34350 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
34351 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
34352 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
34353
34354 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
34355
34356 }
34357