]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_controls_wrap.cpp
A little cleanup
[wxWidgets.git] / wxPython / src / mac / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.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 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
345 #define SWIG_From_signed_SS_char PyInt_FromLong
346 /*@@*/
347 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
348 #define SWIG_From_unsigned_SS_char PyInt_FromLong
349 /*@@*/
350 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
351 #define SWIG_From_short PyInt_FromLong
352 /*@@*/
353 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
354 #define SWIG_From_unsigned_SS_short PyInt_FromLong
355 /*@@*/
356 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
357 #define SWIG_From_int PyInt_FromLong
358 /*@@*/
359 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
360 #define SWIG_From_long PyInt_FromLong
361 /*@@*/
362 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
363 #define SWIG_From_float PyFloat_FromDouble
364 /*@@*/
365 /*@/opt/swig/share/swig/1.3.22/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 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
551 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
552 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
553 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
554
555 #include <wx/checklst.h>
556
557
558 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
559 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
560 if (clientData) {
561 wxPyClientData* data = new wxPyClientData(clientData);
562 self->Insert(item, pos, data);
563 } else
564 self->Insert(item, pos);
565 }
566 PyObject *wxListBox_GetSelections(wxListBox *self){
567 wxArrayInt lst;
568 self->GetSelections(lst);
569 PyObject *tup = PyTuple_New(lst.GetCount());
570 for(size_t i=0; i<lst.GetCount(); i++) {
571 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
572 }
573 return tup;
574 }
575 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
576 #ifdef __WXMSW__
577 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
578 self->GetItem(item)->SetTextColour(c);
579 #endif
580 }
581 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
582 #ifdef __WXMSW__
583 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
584 self->GetItem(item)->SetBackgroundColour(c);
585 #endif
586 }
587 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
588 #ifdef __WXMSW__
589 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
590 self->GetItem(item)->SetFont(f);
591 #endif
592 }
593 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
594
595 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
596 PyObject* o2;
597 PyObject* o3;
598
599 if (!target) {
600 target = o;
601 } else if (target == Py_None) {
602 Py_DECREF(Py_None);
603 target = o;
604 } else {
605 if (!PyTuple_Check(target)) {
606 o2 = target;
607 target = PyTuple_New(1);
608 PyTuple_SetItem(target, 0, o2);
609 }
610 o3 = PyTuple_New(1);
611 PyTuple_SetItem(o3, 0, o);
612
613 o2 = target;
614 target = PySequence_Concat(o2, o3);
615 Py_DECREF(o2);
616 Py_DECREF(o3);
617 }
618 return target;
619 }
620
621
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
850
851 return (wxWindow*)self->m_mainWin;
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 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
911 #define SWIG_From_unsigned_SS_int SWIG_From_long
912 /*@@*/
913 #else
914 /*@/opt/swig/share/swig/1.3.22/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_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3725 PyObject *resultobj;
3726 wxComboBox *arg1 = (wxComboBox *) 0 ;
3727 wxString *arg2 = 0 ;
3728 bool result;
3729 bool temp2 = false ;
3730 PyObject * obj0 = 0 ;
3731 PyObject * obj1 = 0 ;
3732 char *kwnames[] = {
3733 (char *) "self",(char *) "string", NULL
3734 };
3735
3736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3739 {
3740 arg2 = wxString_in_helper(obj1);
3741 if (arg2 == NULL) SWIG_fail;
3742 temp2 = true;
3743 }
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 {
3752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3753 }
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return resultobj;
3759 fail:
3760 {
3761 if (temp2)
3762 delete arg2;
3763 }
3764 return NULL;
3765 }
3766
3767
3768 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3769 PyObject *resultobj;
3770 wxComboBox *arg1 = (wxComboBox *) 0 ;
3771 int arg2 ;
3772 wxString *arg3 = 0 ;
3773 bool temp3 = false ;
3774 PyObject * obj0 = 0 ;
3775 PyObject * obj1 = 0 ;
3776 PyObject * obj2 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "self",(char *) "n",(char *) "string", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3784 arg2 = (int)SWIG_As_int(obj1);
3785 if (PyErr_Occurred()) SWIG_fail;
3786 {
3787 arg3 = wxString_in_helper(obj2);
3788 if (arg3 == NULL) SWIG_fail;
3789 temp3 = true;
3790 }
3791 {
3792 PyThreadState* __tstate = wxPyBeginAllowThreads();
3793 (arg1)->SetString(arg2,(wxString const &)*arg3);
3794
3795 wxPyEndAllowThreads(__tstate);
3796 if (PyErr_Occurred()) SWIG_fail;
3797 }
3798 Py_INCREF(Py_None); resultobj = Py_None;
3799 {
3800 if (temp3)
3801 delete arg3;
3802 }
3803 return resultobj;
3804 fail:
3805 {
3806 if (temp3)
3807 delete arg3;
3808 }
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxComboBox *arg1 = (wxComboBox *) 0 ;
3816 bool arg2 ;
3817 PyObject * obj0 = 0 ;
3818 PyObject * obj1 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self",(char *) "editable", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3826 arg2 = (bool)SWIG_As_bool(obj1);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 (arg1)->SetEditable(arg2);
3831
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 Py_INCREF(Py_None); resultobj = Py_None;
3836 return resultobj;
3837 fail:
3838 return NULL;
3839 }
3840
3841
3842 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3843 PyObject *resultobj;
3844 wxComboBox *arg1 = (wxComboBox *) 0 ;
3845 PyObject * obj0 = 0 ;
3846 char *kwnames[] = {
3847 (char *) "self", NULL
3848 };
3849
3850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 (arg1)->SetInsertionPointEnd();
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 Py_INCREF(Py_None); resultobj = Py_None;
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxComboBox *arg1 = (wxComboBox *) 0 ;
3870 long arg2 ;
3871 long arg3 ;
3872 PyObject * obj0 = 0 ;
3873 PyObject * obj1 = 0 ;
3874 PyObject * obj2 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "self",(char *) "from",(char *) "to", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3882 arg2 = (long)SWIG_As_long(obj1);
3883 if (PyErr_Occurred()) SWIG_fail;
3884 arg3 = (long)SWIG_As_long(obj2);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 {
3887 PyThreadState* __tstate = wxPyBeginAllowThreads();
3888 (arg1)->Remove(arg2,arg3);
3889
3890 wxPyEndAllowThreads(__tstate);
3891 if (PyErr_Occurred()) SWIG_fail;
3892 }
3893 Py_INCREF(Py_None); resultobj = Py_None;
3894 return resultobj;
3895 fail:
3896 return NULL;
3897 }
3898
3899
3900 static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3901 PyObject *resultobj;
3902 wxComboBox *arg1 = (wxComboBox *) 0 ;
3903 bool result;
3904 PyObject * obj0 = 0 ;
3905 char *kwnames[] = {
3906 (char *) "self", NULL
3907 };
3908
3909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail;
3910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3912 {
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = (bool)((wxComboBox const *)arg1)->IsEditable();
3915
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 {
3920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3921 }
3922 return resultobj;
3923 fail:
3924 return NULL;
3925 }
3926
3927
3928 static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
3929 PyObject *resultobj;
3930 wxComboBox *arg1 = (wxComboBox *) 0 ;
3931 PyObject * obj0 = 0 ;
3932 char *kwnames[] = {
3933 (char *) "self", NULL
3934 };
3935
3936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail;
3937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3939 {
3940 PyThreadState* __tstate = wxPyBeginAllowThreads();
3941 (arg1)->Undo();
3942
3943 wxPyEndAllowThreads(__tstate);
3944 if (PyErr_Occurred()) SWIG_fail;
3945 }
3946 Py_INCREF(Py_None); resultobj = Py_None;
3947 return resultobj;
3948 fail:
3949 return NULL;
3950 }
3951
3952
3953 static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
3954 PyObject *resultobj;
3955 wxComboBox *arg1 = (wxComboBox *) 0 ;
3956 PyObject * obj0 = 0 ;
3957 char *kwnames[] = {
3958 (char *) "self", NULL
3959 };
3960
3961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail;
3962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3964 {
3965 PyThreadState* __tstate = wxPyBeginAllowThreads();
3966 (arg1)->Redo();
3967
3968 wxPyEndAllowThreads(__tstate);
3969 if (PyErr_Occurred()) SWIG_fail;
3970 }
3971 Py_INCREF(Py_None); resultobj = Py_None;
3972 return resultobj;
3973 fail:
3974 return NULL;
3975 }
3976
3977
3978 static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
3979 PyObject *resultobj;
3980 wxComboBox *arg1 = (wxComboBox *) 0 ;
3981 PyObject * obj0 = 0 ;
3982 char *kwnames[] = {
3983 (char *) "self", NULL
3984 };
3985
3986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail;
3987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3989 {
3990 PyThreadState* __tstate = wxPyBeginAllowThreads();
3991 (arg1)->SelectAll();
3992
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 Py_INCREF(Py_None); resultobj = Py_None;
3997 return resultobj;
3998 fail:
3999 return NULL;
4000 }
4001
4002
4003 static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
4004 PyObject *resultobj;
4005 wxComboBox *arg1 = (wxComboBox *) 0 ;
4006 bool result;
4007 PyObject * obj0 = 0 ;
4008 char *kwnames[] = {
4009 (char *) "self", NULL
4010 };
4011
4012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail;
4013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4015 {
4016 PyThreadState* __tstate = wxPyBeginAllowThreads();
4017 result = (bool)((wxComboBox const *)arg1)->CanCopy();
4018
4019 wxPyEndAllowThreads(__tstate);
4020 if (PyErr_Occurred()) SWIG_fail;
4021 }
4022 {
4023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4024 }
4025 return resultobj;
4026 fail:
4027 return NULL;
4028 }
4029
4030
4031 static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
4032 PyObject *resultobj;
4033 wxComboBox *arg1 = (wxComboBox *) 0 ;
4034 bool result;
4035 PyObject * obj0 = 0 ;
4036 char *kwnames[] = {
4037 (char *) "self", NULL
4038 };
4039
4040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail;
4041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4043 {
4044 PyThreadState* __tstate = wxPyBeginAllowThreads();
4045 result = (bool)((wxComboBox const *)arg1)->CanCut();
4046
4047 wxPyEndAllowThreads(__tstate);
4048 if (PyErr_Occurred()) SWIG_fail;
4049 }
4050 {
4051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4052 }
4053 return resultobj;
4054 fail:
4055 return NULL;
4056 }
4057
4058
4059 static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
4060 PyObject *resultobj;
4061 wxComboBox *arg1 = (wxComboBox *) 0 ;
4062 bool result;
4063 PyObject * obj0 = 0 ;
4064 char *kwnames[] = {
4065 (char *) "self", NULL
4066 };
4067
4068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail;
4069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4071 {
4072 PyThreadState* __tstate = wxPyBeginAllowThreads();
4073 result = (bool)((wxComboBox const *)arg1)->CanPaste();
4074
4075 wxPyEndAllowThreads(__tstate);
4076 if (PyErr_Occurred()) SWIG_fail;
4077 }
4078 {
4079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4080 }
4081 return resultobj;
4082 fail:
4083 return NULL;
4084 }
4085
4086
4087 static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
4088 PyObject *resultobj;
4089 wxComboBox *arg1 = (wxComboBox *) 0 ;
4090 bool result;
4091 PyObject * obj0 = 0 ;
4092 char *kwnames[] = {
4093 (char *) "self", NULL
4094 };
4095
4096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail;
4097 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 result = (bool)((wxComboBox const *)arg1)->CanUndo();
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 {
4107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4108 }
4109 return resultobj;
4110 fail:
4111 return NULL;
4112 }
4113
4114
4115 static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
4116 PyObject *resultobj;
4117 wxComboBox *arg1 = (wxComboBox *) 0 ;
4118 bool result;
4119 PyObject * obj0 = 0 ;
4120 char *kwnames[] = {
4121 (char *) "self", NULL
4122 };
4123
4124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail;
4125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 result = (bool)((wxComboBox const *)arg1)->CanRedo();
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 {
4135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4136 }
4137 return resultobj;
4138 fail:
4139 return NULL;
4140 }
4141
4142
4143 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4144 PyObject *resultobj;
4145 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4146 wxVisualAttributes result;
4147 PyObject * obj0 = 0 ;
4148 char *kwnames[] = {
4149 (char *) "variant", NULL
4150 };
4151
4152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4153 if (obj0) {
4154 arg1 = (int)SWIG_As_int(obj0);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 if (!wxPyCheckForApp()) SWIG_fail;
4159 PyThreadState* __tstate = wxPyBeginAllowThreads();
4160 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4161
4162 wxPyEndAllowThreads(__tstate);
4163 if (PyErr_Occurred()) SWIG_fail;
4164 }
4165 {
4166 wxVisualAttributes * resultptr;
4167 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4168 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4169 }
4170 return resultobj;
4171 fail:
4172 return NULL;
4173 }
4174
4175
4176 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
4177 PyObject *obj;
4178 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4179 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
4180 Py_INCREF(obj);
4181 return Py_BuildValue((char *)"");
4182 }
4183 static int _wrap_GaugeNameStr_set(PyObject *) {
4184 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
4185 return 1;
4186 }
4187
4188
4189 static PyObject *_wrap_GaugeNameStr_get() {
4190 PyObject *pyobj;
4191
4192 {
4193 #if wxUSE_UNICODE
4194 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
4195 #else
4196 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
4197 #endif
4198 }
4199 return pyobj;
4200 }
4201
4202
4203 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxWindow *arg1 = (wxWindow *) 0 ;
4206 int arg2 = (int) -1 ;
4207 int arg3 = (int) 100 ;
4208 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4209 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4210 wxSize const &arg5_defvalue = wxDefaultSize ;
4211 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4212 long arg6 = (long) wxGA_HORIZONTAL ;
4213 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4214 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4215 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
4216 wxString *arg8 = (wxString *) &arg8_defvalue ;
4217 wxGauge *result;
4218 wxPoint temp4 ;
4219 wxSize temp5 ;
4220 bool temp8 = false ;
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 PyObject * obj2 = 0 ;
4224 PyObject * obj3 = 0 ;
4225 PyObject * obj4 = 0 ;
4226 PyObject * obj5 = 0 ;
4227 PyObject * obj6 = 0 ;
4228 PyObject * obj7 = 0 ;
4229 char *kwnames[] = {
4230 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4231 };
4232
4233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4236 if (obj1) {
4237 arg2 = (int)SWIG_As_int(obj1);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 }
4240 if (obj2) {
4241 arg3 = (int)SWIG_As_int(obj2);
4242 if (PyErr_Occurred()) SWIG_fail;
4243 }
4244 if (obj3) {
4245 {
4246 arg4 = &temp4;
4247 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4248 }
4249 }
4250 if (obj4) {
4251 {
4252 arg5 = &temp5;
4253 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4254 }
4255 }
4256 if (obj5) {
4257 arg6 = (long)SWIG_As_long(obj5);
4258 if (PyErr_Occurred()) SWIG_fail;
4259 }
4260 if (obj6) {
4261 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4262 SWIG_POINTER_EXCEPTION | 0)) == -1)
4263 SWIG_fail;
4264 if (arg7 == NULL) {
4265 PyErr_SetString(PyExc_TypeError,"null reference");
4266 SWIG_fail;
4267 }
4268 }
4269 if (obj7) {
4270 {
4271 arg8 = wxString_in_helper(obj7);
4272 if (arg8 == NULL) SWIG_fail;
4273 temp8 = true;
4274 }
4275 }
4276 {
4277 if (!wxPyCheckForApp()) SWIG_fail;
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4280
4281 wxPyEndAllowThreads(__tstate);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4285 {
4286 if (temp8)
4287 delete arg8;
4288 }
4289 return resultobj;
4290 fail:
4291 {
4292 if (temp8)
4293 delete arg8;
4294 }
4295 return NULL;
4296 }
4297
4298
4299 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4300 PyObject *resultobj;
4301 wxGauge *result;
4302 char *kwnames[] = {
4303 NULL
4304 };
4305
4306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4307 {
4308 if (!wxPyCheckForApp()) SWIG_fail;
4309 PyThreadState* __tstate = wxPyBeginAllowThreads();
4310 result = (wxGauge *)new wxGauge();
4311
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj;
4324 wxGauge *arg1 = (wxGauge *) 0 ;
4325 wxWindow *arg2 = (wxWindow *) 0 ;
4326 int arg3 = (int) -1 ;
4327 int arg4 = (int) 100 ;
4328 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4329 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4330 wxSize const &arg6_defvalue = wxDefaultSize ;
4331 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4332 long arg7 = (long) wxGA_HORIZONTAL ;
4333 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4334 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4335 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4336 wxString *arg9 = (wxString *) &arg9_defvalue ;
4337 bool result;
4338 wxPoint temp5 ;
4339 wxSize temp6 ;
4340 bool temp9 = false ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 PyObject * obj2 = 0 ;
4344 PyObject * obj3 = 0 ;
4345 PyObject * obj4 = 0 ;
4346 PyObject * obj5 = 0 ;
4347 PyObject * obj6 = 0 ;
4348 PyObject * obj7 = 0 ;
4349 PyObject * obj8 = 0 ;
4350 char *kwnames[] = {
4351 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4352 };
4353
4354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4359 if (obj2) {
4360 arg3 = (int)SWIG_As_int(obj2);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 if (obj3) {
4364 arg4 = (int)SWIG_As_int(obj3);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 if (obj4) {
4368 {
4369 arg5 = &temp5;
4370 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4371 }
4372 }
4373 if (obj5) {
4374 {
4375 arg6 = &temp6;
4376 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4377 }
4378 }
4379 if (obj6) {
4380 arg7 = (long)SWIG_As_long(obj6);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 }
4383 if (obj7) {
4384 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4385 SWIG_POINTER_EXCEPTION | 0)) == -1)
4386 SWIG_fail;
4387 if (arg8 == NULL) {
4388 PyErr_SetString(PyExc_TypeError,"null reference");
4389 SWIG_fail;
4390 }
4391 }
4392 if (obj8) {
4393 {
4394 arg9 = wxString_in_helper(obj8);
4395 if (arg9 == NULL) SWIG_fail;
4396 temp9 = true;
4397 }
4398 }
4399 {
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4402
4403 wxPyEndAllowThreads(__tstate);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 {
4407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4408 }
4409 {
4410 if (temp9)
4411 delete arg9;
4412 }
4413 return resultobj;
4414 fail:
4415 {
4416 if (temp9)
4417 delete arg9;
4418 }
4419 return NULL;
4420 }
4421
4422
4423 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4424 PyObject *resultobj;
4425 wxGauge *arg1 = (wxGauge *) 0 ;
4426 int arg2 ;
4427 PyObject * obj0 = 0 ;
4428 PyObject * obj1 = 0 ;
4429 char *kwnames[] = {
4430 (char *) "self",(char *) "range", NULL
4431 };
4432
4433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4436 arg2 = (int)SWIG_As_int(obj1);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 {
4439 PyThreadState* __tstate = wxPyBeginAllowThreads();
4440 (arg1)->SetRange(arg2);
4441
4442 wxPyEndAllowThreads(__tstate);
4443 if (PyErr_Occurred()) SWIG_fail;
4444 }
4445 Py_INCREF(Py_None); resultobj = Py_None;
4446 return resultobj;
4447 fail:
4448 return NULL;
4449 }
4450
4451
4452 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4453 PyObject *resultobj;
4454 wxGauge *arg1 = (wxGauge *) 0 ;
4455 int result;
4456 PyObject * obj0 = 0 ;
4457 char *kwnames[] = {
4458 (char *) "self", NULL
4459 };
4460
4461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 result = (int)((wxGauge const *)arg1)->GetRange();
4467
4468 wxPyEndAllowThreads(__tstate);
4469 if (PyErr_Occurred()) SWIG_fail;
4470 }
4471 resultobj = SWIG_From_int((int)result);
4472 return resultobj;
4473 fail:
4474 return NULL;
4475 }
4476
4477
4478 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj;
4480 wxGauge *arg1 = (wxGauge *) 0 ;
4481 int arg2 ;
4482 PyObject * obj0 = 0 ;
4483 PyObject * obj1 = 0 ;
4484 char *kwnames[] = {
4485 (char *) "self",(char *) "pos", NULL
4486 };
4487
4488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4491 arg2 = (int)SWIG_As_int(obj1);
4492 if (PyErr_Occurred()) SWIG_fail;
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 (arg1)->SetValue(arg2);
4496
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) SWIG_fail;
4499 }
4500 Py_INCREF(Py_None); resultobj = Py_None;
4501 return resultobj;
4502 fail:
4503 return NULL;
4504 }
4505
4506
4507 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4508 PyObject *resultobj;
4509 wxGauge *arg1 = (wxGauge *) 0 ;
4510 int result;
4511 PyObject * obj0 = 0 ;
4512 char *kwnames[] = {
4513 (char *) "self", NULL
4514 };
4515
4516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4519 {
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (int)((wxGauge const *)arg1)->GetValue();
4522
4523 wxPyEndAllowThreads(__tstate);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 }
4526 resultobj = SWIG_From_int((int)result);
4527 return resultobj;
4528 fail:
4529 return NULL;
4530 }
4531
4532
4533 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxGauge *arg1 = (wxGauge *) 0 ;
4536 bool result;
4537 PyObject * obj0 = 0 ;
4538 char *kwnames[] = {
4539 (char *) "self", NULL
4540 };
4541
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4545 {
4546 PyThreadState* __tstate = wxPyBeginAllowThreads();
4547 result = (bool)((wxGauge const *)arg1)->IsVertical();
4548
4549 wxPyEndAllowThreads(__tstate);
4550 if (PyErr_Occurred()) SWIG_fail;
4551 }
4552 {
4553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4554 }
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 wxGauge *arg1 = (wxGauge *) 0 ;
4564 int arg2 ;
4565 PyObject * obj0 = 0 ;
4566 PyObject * obj1 = 0 ;
4567 char *kwnames[] = {
4568 (char *) "self",(char *) "w", NULL
4569 };
4570
4571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4574 arg2 = (int)SWIG_As_int(obj1);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 {
4577 PyThreadState* __tstate = wxPyBeginAllowThreads();
4578 (arg1)->SetShadowWidth(arg2);
4579
4580 wxPyEndAllowThreads(__tstate);
4581 if (PyErr_Occurred()) SWIG_fail;
4582 }
4583 Py_INCREF(Py_None); resultobj = Py_None;
4584 return resultobj;
4585 fail:
4586 return NULL;
4587 }
4588
4589
4590 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj;
4592 wxGauge *arg1 = (wxGauge *) 0 ;
4593 int result;
4594 PyObject * obj0 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "self", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4605
4606 wxPyEndAllowThreads(__tstate);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 resultobj = SWIG_From_int((int)result);
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4617 PyObject *resultobj;
4618 wxGauge *arg1 = (wxGauge *) 0 ;
4619 int arg2 ;
4620 PyObject * obj0 = 0 ;
4621 PyObject * obj1 = 0 ;
4622 char *kwnames[] = {
4623 (char *) "self",(char *) "w", NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4629 arg2 = (int)SWIG_As_int(obj1);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 {
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 (arg1)->SetBezelFace(arg2);
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 Py_INCREF(Py_None); resultobj = Py_None;
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxGauge *arg1 = (wxGauge *) 0 ;
4648 int result;
4649 PyObject * obj0 = 0 ;
4650 char *kwnames[] = {
4651 (char *) "self", NULL
4652 };
4653
4654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4657 {
4658 PyThreadState* __tstate = wxPyBeginAllowThreads();
4659 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4660
4661 wxPyEndAllowThreads(__tstate);
4662 if (PyErr_Occurred()) SWIG_fail;
4663 }
4664 resultobj = SWIG_From_int((int)result);
4665 return resultobj;
4666 fail:
4667 return NULL;
4668 }
4669
4670
4671 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4672 PyObject *resultobj;
4673 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4674 wxVisualAttributes result;
4675 PyObject * obj0 = 0 ;
4676 char *kwnames[] = {
4677 (char *) "variant", NULL
4678 };
4679
4680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4681 if (obj0) {
4682 arg1 = (int)SWIG_As_int(obj0);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 {
4686 if (!wxPyCheckForApp()) SWIG_fail;
4687 PyThreadState* __tstate = wxPyBeginAllowThreads();
4688 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4689
4690 wxPyEndAllowThreads(__tstate);
4691 if (PyErr_Occurred()) SWIG_fail;
4692 }
4693 {
4694 wxVisualAttributes * resultptr;
4695 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4696 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4697 }
4698 return resultobj;
4699 fail:
4700 return NULL;
4701 }
4702
4703
4704 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4705 PyObject *obj;
4706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4707 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4708 Py_INCREF(obj);
4709 return Py_BuildValue((char *)"");
4710 }
4711 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4712 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4713 return 1;
4714 }
4715
4716
4717 static PyObject *_wrap_StaticBitmapNameStr_get() {
4718 PyObject *pyobj;
4719
4720 {
4721 #if wxUSE_UNICODE
4722 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4723 #else
4724 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4725 #endif
4726 }
4727 return pyobj;
4728 }
4729
4730
4731 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4732 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4733 return 1;
4734 }
4735
4736
4737 static PyObject *_wrap_StaticBoxNameStr_get() {
4738 PyObject *pyobj;
4739
4740 {
4741 #if wxUSE_UNICODE
4742 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4743 #else
4744 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4745 #endif
4746 }
4747 return pyobj;
4748 }
4749
4750
4751 static int _wrap_StaticTextNameStr_set(PyObject *) {
4752 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4753 return 1;
4754 }
4755
4756
4757 static PyObject *_wrap_StaticTextNameStr_get() {
4758 PyObject *pyobj;
4759
4760 {
4761 #if wxUSE_UNICODE
4762 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4763 #else
4764 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4765 #endif
4766 }
4767 return pyobj;
4768 }
4769
4770
4771 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4772 PyObject *resultobj;
4773 wxWindow *arg1 = (wxWindow *) 0 ;
4774 int arg2 = (int) -1 ;
4775 wxString const &arg3_defvalue = wxPyEmptyString ;
4776 wxString *arg3 = (wxString *) &arg3_defvalue ;
4777 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4778 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4779 wxSize const &arg5_defvalue = wxDefaultSize ;
4780 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4781 long arg6 = (long) 0 ;
4782 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4783 wxString *arg7 = (wxString *) &arg7_defvalue ;
4784 wxStaticBox *result;
4785 bool temp3 = false ;
4786 wxPoint temp4 ;
4787 wxSize temp5 ;
4788 bool temp7 = false ;
4789 PyObject * obj0 = 0 ;
4790 PyObject * obj1 = 0 ;
4791 PyObject * obj2 = 0 ;
4792 PyObject * obj3 = 0 ;
4793 PyObject * obj4 = 0 ;
4794 PyObject * obj5 = 0 ;
4795 PyObject * obj6 = 0 ;
4796 char *kwnames[] = {
4797 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4798 };
4799
4800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4803 if (obj1) {
4804 arg2 = (int)SWIG_As_int(obj1);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 if (obj2) {
4808 {
4809 arg3 = wxString_in_helper(obj2);
4810 if (arg3 == NULL) SWIG_fail;
4811 temp3 = true;
4812 }
4813 }
4814 if (obj3) {
4815 {
4816 arg4 = &temp4;
4817 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4818 }
4819 }
4820 if (obj4) {
4821 {
4822 arg5 = &temp5;
4823 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4824 }
4825 }
4826 if (obj5) {
4827 arg6 = (long)SWIG_As_long(obj5);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 if (obj6) {
4831 {
4832 arg7 = wxString_in_helper(obj6);
4833 if (arg7 == NULL) SWIG_fail;
4834 temp7 = true;
4835 }
4836 }
4837 {
4838 if (!wxPyCheckForApp()) SWIG_fail;
4839 PyThreadState* __tstate = wxPyBeginAllowThreads();
4840 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4841
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4846 {
4847 if (temp3)
4848 delete arg3;
4849 }
4850 {
4851 if (temp7)
4852 delete arg7;
4853 }
4854 return resultobj;
4855 fail:
4856 {
4857 if (temp3)
4858 delete arg3;
4859 }
4860 {
4861 if (temp7)
4862 delete arg7;
4863 }
4864 return NULL;
4865 }
4866
4867
4868 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4869 PyObject *resultobj;
4870 wxStaticBox *result;
4871 char *kwnames[] = {
4872 NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4876 {
4877 if (!wxPyCheckForApp()) SWIG_fail;
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 result = (wxStaticBox *)new wxStaticBox();
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4885 return resultobj;
4886 fail:
4887 return NULL;
4888 }
4889
4890
4891 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4892 PyObject *resultobj;
4893 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4894 wxWindow *arg2 = (wxWindow *) 0 ;
4895 int arg3 = (int) -1 ;
4896 wxString const &arg4_defvalue = wxPyEmptyString ;
4897 wxString *arg4 = (wxString *) &arg4_defvalue ;
4898 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4899 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4900 wxSize const &arg6_defvalue = wxDefaultSize ;
4901 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4902 long arg7 = (long) 0 ;
4903 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4904 wxString *arg8 = (wxString *) &arg8_defvalue ;
4905 bool result;
4906 bool temp4 = false ;
4907 wxPoint temp5 ;
4908 wxSize temp6 ;
4909 bool temp8 = false ;
4910 PyObject * obj0 = 0 ;
4911 PyObject * obj1 = 0 ;
4912 PyObject * obj2 = 0 ;
4913 PyObject * obj3 = 0 ;
4914 PyObject * obj4 = 0 ;
4915 PyObject * obj5 = 0 ;
4916 PyObject * obj6 = 0 ;
4917 PyObject * obj7 = 0 ;
4918 char *kwnames[] = {
4919 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4920 };
4921
4922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4925 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4927 if (obj2) {
4928 arg3 = (int)SWIG_As_int(obj2);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 if (obj3) {
4932 {
4933 arg4 = wxString_in_helper(obj3);
4934 if (arg4 == NULL) SWIG_fail;
4935 temp4 = true;
4936 }
4937 }
4938 if (obj4) {
4939 {
4940 arg5 = &temp5;
4941 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4942 }
4943 }
4944 if (obj5) {
4945 {
4946 arg6 = &temp6;
4947 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4948 }
4949 }
4950 if (obj6) {
4951 arg7 = (long)SWIG_As_long(obj6);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 if (obj7) {
4955 {
4956 arg8 = wxString_in_helper(obj7);
4957 if (arg8 == NULL) SWIG_fail;
4958 temp8 = true;
4959 }
4960 }
4961 {
4962 PyThreadState* __tstate = wxPyBeginAllowThreads();
4963 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4964
4965 wxPyEndAllowThreads(__tstate);
4966 if (PyErr_Occurred()) SWIG_fail;
4967 }
4968 {
4969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4970 }
4971 {
4972 if (temp4)
4973 delete arg4;
4974 }
4975 {
4976 if (temp8)
4977 delete arg8;
4978 }
4979 return resultobj;
4980 fail:
4981 {
4982 if (temp4)
4983 delete arg4;
4984 }
4985 {
4986 if (temp8)
4987 delete arg8;
4988 }
4989 return NULL;
4990 }
4991
4992
4993 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4994 PyObject *resultobj;
4995 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4996 wxVisualAttributes result;
4997 PyObject * obj0 = 0 ;
4998 char *kwnames[] = {
4999 (char *) "variant", NULL
5000 };
5001
5002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5003 if (obj0) {
5004 arg1 = (int)SWIG_As_int(obj0);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 }
5007 {
5008 if (!wxPyCheckForApp()) SWIG_fail;
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
5011
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 {
5016 wxVisualAttributes * resultptr;
5017 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5018 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5019 }
5020 return resultobj;
5021 fail:
5022 return NULL;
5023 }
5024
5025
5026 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
5027 PyObject *obj;
5028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5029 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
5030 Py_INCREF(obj);
5031 return Py_BuildValue((char *)"");
5032 }
5033 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
5034 PyObject *resultobj;
5035 wxWindow *arg1 = (wxWindow *) 0 ;
5036 int arg2 = (int) -1 ;
5037 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5038 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5039 wxSize const &arg4_defvalue = wxDefaultSize ;
5040 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5041 long arg5 = (long) wxLI_HORIZONTAL ;
5042 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
5043 wxString *arg6 = (wxString *) &arg6_defvalue ;
5044 wxStaticLine *result;
5045 wxPoint temp3 ;
5046 wxSize temp4 ;
5047 bool temp6 = false ;
5048 PyObject * obj0 = 0 ;
5049 PyObject * obj1 = 0 ;
5050 PyObject * obj2 = 0 ;
5051 PyObject * obj3 = 0 ;
5052 PyObject * obj4 = 0 ;
5053 PyObject * obj5 = 0 ;
5054 char *kwnames[] = {
5055 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5056 };
5057
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5061 if (obj1) {
5062 arg2 = (int)SWIG_As_int(obj1);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 if (obj2) {
5066 {
5067 arg3 = &temp3;
5068 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5069 }
5070 }
5071 if (obj3) {
5072 {
5073 arg4 = &temp4;
5074 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5075 }
5076 }
5077 if (obj4) {
5078 arg5 = (long)SWIG_As_long(obj4);
5079 if (PyErr_Occurred()) SWIG_fail;
5080 }
5081 if (obj5) {
5082 {
5083 arg6 = wxString_in_helper(obj5);
5084 if (arg6 == NULL) SWIG_fail;
5085 temp6 = true;
5086 }
5087 }
5088 {
5089 if (!wxPyCheckForApp()) SWIG_fail;
5090 PyThreadState* __tstate = wxPyBeginAllowThreads();
5091 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
5092
5093 wxPyEndAllowThreads(__tstate);
5094 if (PyErr_Occurred()) SWIG_fail;
5095 }
5096 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
5097 {
5098 if (temp6)
5099 delete arg6;
5100 }
5101 return resultobj;
5102 fail:
5103 {
5104 if (temp6)
5105 delete arg6;
5106 }
5107 return NULL;
5108 }
5109
5110
5111 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
5112 PyObject *resultobj;
5113 wxStaticLine *result;
5114 char *kwnames[] = {
5115 NULL
5116 };
5117
5118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
5119 {
5120 if (!wxPyCheckForApp()) SWIG_fail;
5121 PyThreadState* __tstate = wxPyBeginAllowThreads();
5122 result = (wxStaticLine *)new wxStaticLine();
5123
5124 wxPyEndAllowThreads(__tstate);
5125 if (PyErr_Occurred()) SWIG_fail;
5126 }
5127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
5128 return resultobj;
5129 fail:
5130 return NULL;
5131 }
5132
5133
5134 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5135 PyObject *resultobj;
5136 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
5137 wxWindow *arg2 = (wxWindow *) 0 ;
5138 int arg3 = (int) -1 ;
5139 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5140 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5141 wxSize const &arg5_defvalue = wxDefaultSize ;
5142 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5143 long arg6 = (long) wxLI_HORIZONTAL ;
5144 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5145 wxString *arg7 = (wxString *) &arg7_defvalue ;
5146 bool result;
5147 wxPoint temp4 ;
5148 wxSize temp5 ;
5149 bool temp7 = false ;
5150 PyObject * obj0 = 0 ;
5151 PyObject * obj1 = 0 ;
5152 PyObject * obj2 = 0 ;
5153 PyObject * obj3 = 0 ;
5154 PyObject * obj4 = 0 ;
5155 PyObject * obj5 = 0 ;
5156 PyObject * obj6 = 0 ;
5157 char *kwnames[] = {
5158 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5159 };
5160
5161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
5163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5166 if (obj2) {
5167 arg3 = (int)SWIG_As_int(obj2);
5168 if (PyErr_Occurred()) SWIG_fail;
5169 }
5170 if (obj3) {
5171 {
5172 arg4 = &temp4;
5173 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5174 }
5175 }
5176 if (obj4) {
5177 {
5178 arg5 = &temp5;
5179 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5180 }
5181 }
5182 if (obj5) {
5183 arg6 = (long)SWIG_As_long(obj5);
5184 if (PyErr_Occurred()) SWIG_fail;
5185 }
5186 if (obj6) {
5187 {
5188 arg7 = wxString_in_helper(obj6);
5189 if (arg7 == NULL) SWIG_fail;
5190 temp7 = true;
5191 }
5192 }
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 {
5201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5202 }
5203 {
5204 if (temp7)
5205 delete arg7;
5206 }
5207 return resultobj;
5208 fail:
5209 {
5210 if (temp7)
5211 delete arg7;
5212 }
5213 return NULL;
5214 }
5215
5216
5217 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
5218 PyObject *resultobj;
5219 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
5220 bool result;
5221 PyObject * obj0 = 0 ;
5222 char *kwnames[] = {
5223 (char *) "self", NULL
5224 };
5225
5226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
5227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
5228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5229 {
5230 PyThreadState* __tstate = wxPyBeginAllowThreads();
5231 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
5232
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 {
5237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5238 }
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
5246 PyObject *resultobj;
5247 int result;
5248 char *kwnames[] = {
5249 NULL
5250 };
5251
5252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (int)wxStaticLine::GetDefaultSize();
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 resultobj = SWIG_From_int((int)result);
5261 return resultobj;
5262 fail:
5263 return NULL;
5264 }
5265
5266
5267 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5268 PyObject *resultobj;
5269 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5270 wxVisualAttributes result;
5271 PyObject * obj0 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "variant", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5277 if (obj0) {
5278 arg1 = (int)SWIG_As_int(obj0);
5279 if (PyErr_Occurred()) SWIG_fail;
5280 }
5281 {
5282 if (!wxPyCheckForApp()) SWIG_fail;
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5285
5286 wxPyEndAllowThreads(__tstate);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 }
5289 {
5290 wxVisualAttributes * resultptr;
5291 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5292 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5293 }
5294 return resultobj;
5295 fail:
5296 return NULL;
5297 }
5298
5299
5300 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5301 PyObject *obj;
5302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5303 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5304 Py_INCREF(obj);
5305 return Py_BuildValue((char *)"");
5306 }
5307 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5308 PyObject *resultobj;
5309 wxWindow *arg1 = (wxWindow *) 0 ;
5310 int arg2 = (int) -1 ;
5311 wxString const &arg3_defvalue = wxPyEmptyString ;
5312 wxString *arg3 = (wxString *) &arg3_defvalue ;
5313 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5314 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5315 wxSize const &arg5_defvalue = wxDefaultSize ;
5316 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5317 long arg6 = (long) 0 ;
5318 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5319 wxString *arg7 = (wxString *) &arg7_defvalue ;
5320 wxStaticText *result;
5321 bool temp3 = false ;
5322 wxPoint temp4 ;
5323 wxSize temp5 ;
5324 bool temp7 = false ;
5325 PyObject * obj0 = 0 ;
5326 PyObject * obj1 = 0 ;
5327 PyObject * obj2 = 0 ;
5328 PyObject * obj3 = 0 ;
5329 PyObject * obj4 = 0 ;
5330 PyObject * obj5 = 0 ;
5331 PyObject * obj6 = 0 ;
5332 char *kwnames[] = {
5333 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5334 };
5335
5336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5339 if (obj1) {
5340 arg2 = (int)SWIG_As_int(obj1);
5341 if (PyErr_Occurred()) SWIG_fail;
5342 }
5343 if (obj2) {
5344 {
5345 arg3 = wxString_in_helper(obj2);
5346 if (arg3 == NULL) SWIG_fail;
5347 temp3 = true;
5348 }
5349 }
5350 if (obj3) {
5351 {
5352 arg4 = &temp4;
5353 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5354 }
5355 }
5356 if (obj4) {
5357 {
5358 arg5 = &temp5;
5359 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5360 }
5361 }
5362 if (obj5) {
5363 arg6 = (long)SWIG_As_long(obj5);
5364 if (PyErr_Occurred()) SWIG_fail;
5365 }
5366 if (obj6) {
5367 {
5368 arg7 = wxString_in_helper(obj6);
5369 if (arg7 == NULL) SWIG_fail;
5370 temp7 = true;
5371 }
5372 }
5373 {
5374 if (!wxPyCheckForApp()) SWIG_fail;
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5382 {
5383 if (temp3)
5384 delete arg3;
5385 }
5386 {
5387 if (temp7)
5388 delete arg7;
5389 }
5390 return resultobj;
5391 fail:
5392 {
5393 if (temp3)
5394 delete arg3;
5395 }
5396 {
5397 if (temp7)
5398 delete arg7;
5399 }
5400 return NULL;
5401 }
5402
5403
5404 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5405 PyObject *resultobj;
5406 wxStaticText *result;
5407 char *kwnames[] = {
5408 NULL
5409 };
5410
5411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5412 {
5413 if (!wxPyCheckForApp()) SWIG_fail;
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (wxStaticText *)new wxStaticText();
5416
5417 wxPyEndAllowThreads(__tstate);
5418 if (PyErr_Occurred()) SWIG_fail;
5419 }
5420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5421 return resultobj;
5422 fail:
5423 return NULL;
5424 }
5425
5426
5427 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5428 PyObject *resultobj;
5429 wxStaticText *arg1 = (wxStaticText *) 0 ;
5430 wxWindow *arg2 = (wxWindow *) 0 ;
5431 int arg3 = (int) -1 ;
5432 wxString const &arg4_defvalue = wxPyEmptyString ;
5433 wxString *arg4 = (wxString *) &arg4_defvalue ;
5434 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5435 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5436 wxSize const &arg6_defvalue = wxDefaultSize ;
5437 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5438 long arg7 = (long) 0 ;
5439 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5440 wxString *arg8 = (wxString *) &arg8_defvalue ;
5441 bool result;
5442 bool temp4 = false ;
5443 wxPoint temp5 ;
5444 wxSize temp6 ;
5445 bool temp8 = false ;
5446 PyObject * obj0 = 0 ;
5447 PyObject * obj1 = 0 ;
5448 PyObject * obj2 = 0 ;
5449 PyObject * obj3 = 0 ;
5450 PyObject * obj4 = 0 ;
5451 PyObject * obj5 = 0 ;
5452 PyObject * obj6 = 0 ;
5453 PyObject * obj7 = 0 ;
5454 char *kwnames[] = {
5455 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5456 };
5457
5458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5463 if (obj2) {
5464 arg3 = (int)SWIG_As_int(obj2);
5465 if (PyErr_Occurred()) SWIG_fail;
5466 }
5467 if (obj3) {
5468 {
5469 arg4 = wxString_in_helper(obj3);
5470 if (arg4 == NULL) SWIG_fail;
5471 temp4 = true;
5472 }
5473 }
5474 if (obj4) {
5475 {
5476 arg5 = &temp5;
5477 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5478 }
5479 }
5480 if (obj5) {
5481 {
5482 arg6 = &temp6;
5483 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5484 }
5485 }
5486 if (obj6) {
5487 arg7 = (long)SWIG_As_long(obj6);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 if (obj7) {
5491 {
5492 arg8 = wxString_in_helper(obj7);
5493 if (arg8 == NULL) SWIG_fail;
5494 temp8 = true;
5495 }
5496 }
5497 {
5498 PyThreadState* __tstate = wxPyBeginAllowThreads();
5499 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5500
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 {
5505 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5506 }
5507 {
5508 if (temp4)
5509 delete arg4;
5510 }
5511 {
5512 if (temp8)
5513 delete arg8;
5514 }
5515 return resultobj;
5516 fail:
5517 {
5518 if (temp4)
5519 delete arg4;
5520 }
5521 {
5522 if (temp8)
5523 delete arg8;
5524 }
5525 return NULL;
5526 }
5527
5528
5529 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5530 PyObject *resultobj;
5531 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5532 wxVisualAttributes result;
5533 PyObject * obj0 = 0 ;
5534 char *kwnames[] = {
5535 (char *) "variant", NULL
5536 };
5537
5538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5539 if (obj0) {
5540 arg1 = (int)SWIG_As_int(obj0);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 {
5544 if (!wxPyCheckForApp()) SWIG_fail;
5545 PyThreadState* __tstate = wxPyBeginAllowThreads();
5546 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5547
5548 wxPyEndAllowThreads(__tstate);
5549 if (PyErr_Occurred()) SWIG_fail;
5550 }
5551 {
5552 wxVisualAttributes * resultptr;
5553 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5555 }
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5563 PyObject *obj;
5564 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5565 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5566 Py_INCREF(obj);
5567 return Py_BuildValue((char *)"");
5568 }
5569 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5570 PyObject *resultobj;
5571 wxWindow *arg1 = (wxWindow *) 0 ;
5572 int arg2 = (int) -1 ;
5573 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5574 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5575 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5576 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5577 wxSize const &arg5_defvalue = wxDefaultSize ;
5578 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5579 long arg6 = (long) 0 ;
5580 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5581 wxString *arg7 = (wxString *) &arg7_defvalue ;
5582 wxStaticBitmap *result;
5583 wxPoint temp4 ;
5584 wxSize temp5 ;
5585 bool temp7 = false ;
5586 PyObject * obj0 = 0 ;
5587 PyObject * obj1 = 0 ;
5588 PyObject * obj2 = 0 ;
5589 PyObject * obj3 = 0 ;
5590 PyObject * obj4 = 0 ;
5591 PyObject * obj5 = 0 ;
5592 PyObject * obj6 = 0 ;
5593 char *kwnames[] = {
5594 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5595 };
5596
5597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5600 if (obj1) {
5601 arg2 = (int)SWIG_As_int(obj1);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 if (obj2) {
5605 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1)
5607 SWIG_fail;
5608 if (arg3 == NULL) {
5609 PyErr_SetString(PyExc_TypeError,"null reference");
5610 SWIG_fail;
5611 }
5612 }
5613 if (obj3) {
5614 {
5615 arg4 = &temp4;
5616 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5617 }
5618 }
5619 if (obj4) {
5620 {
5621 arg5 = &temp5;
5622 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5623 }
5624 }
5625 if (obj5) {
5626 arg6 = (long)SWIG_As_long(obj5);
5627 if (PyErr_Occurred()) SWIG_fail;
5628 }
5629 if (obj6) {
5630 {
5631 arg7 = wxString_in_helper(obj6);
5632 if (arg7 == NULL) SWIG_fail;
5633 temp7 = true;
5634 }
5635 }
5636 {
5637 if (!wxPyCheckForApp()) SWIG_fail;
5638 PyThreadState* __tstate = wxPyBeginAllowThreads();
5639 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5640
5641 wxPyEndAllowThreads(__tstate);
5642 if (PyErr_Occurred()) SWIG_fail;
5643 }
5644 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5645 {
5646 if (temp7)
5647 delete arg7;
5648 }
5649 return resultobj;
5650 fail:
5651 {
5652 if (temp7)
5653 delete arg7;
5654 }
5655 return NULL;
5656 }
5657
5658
5659 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj;
5661 wxStaticBitmap *result;
5662 char *kwnames[] = {
5663 NULL
5664 };
5665
5666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5667 {
5668 if (!wxPyCheckForApp()) SWIG_fail;
5669 PyThreadState* __tstate = wxPyBeginAllowThreads();
5670 result = (wxStaticBitmap *)new wxStaticBitmap();
5671
5672 wxPyEndAllowThreads(__tstate);
5673 if (PyErr_Occurred()) SWIG_fail;
5674 }
5675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5676 return resultobj;
5677 fail:
5678 return NULL;
5679 }
5680
5681
5682 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5683 PyObject *resultobj;
5684 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5685 wxWindow *arg2 = (wxWindow *) 0 ;
5686 int arg3 = (int) -1 ;
5687 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5688 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5689 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5690 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5691 wxSize const &arg6_defvalue = wxDefaultSize ;
5692 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5693 long arg7 = (long) 0 ;
5694 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5695 wxString *arg8 = (wxString *) &arg8_defvalue ;
5696 bool result;
5697 wxPoint temp5 ;
5698 wxSize temp6 ;
5699 bool temp8 = false ;
5700 PyObject * obj0 = 0 ;
5701 PyObject * obj1 = 0 ;
5702 PyObject * obj2 = 0 ;
5703 PyObject * obj3 = 0 ;
5704 PyObject * obj4 = 0 ;
5705 PyObject * obj5 = 0 ;
5706 PyObject * obj6 = 0 ;
5707 PyObject * obj7 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5717 if (obj2) {
5718 arg3 = (int)SWIG_As_int(obj2);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 if (obj3) {
5722 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1)
5724 SWIG_fail;
5725 if (arg4 == NULL) {
5726 PyErr_SetString(PyExc_TypeError,"null reference");
5727 SWIG_fail;
5728 }
5729 }
5730 if (obj4) {
5731 {
5732 arg5 = &temp5;
5733 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5734 }
5735 }
5736 if (obj5) {
5737 {
5738 arg6 = &temp6;
5739 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5740 }
5741 }
5742 if (obj6) {
5743 arg7 = (long)SWIG_As_long(obj6);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 if (obj7) {
5747 {
5748 arg8 = wxString_in_helper(obj7);
5749 if (arg8 == NULL) SWIG_fail;
5750 temp8 = true;
5751 }
5752 }
5753 {
5754 PyThreadState* __tstate = wxPyBeginAllowThreads();
5755 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5756
5757 wxPyEndAllowThreads(__tstate);
5758 if (PyErr_Occurred()) SWIG_fail;
5759 }
5760 {
5761 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5762 }
5763 {
5764 if (temp8)
5765 delete arg8;
5766 }
5767 return resultobj;
5768 fail:
5769 {
5770 if (temp8)
5771 delete arg8;
5772 }
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5780 wxBitmap result;
5781 PyObject * obj0 = 0 ;
5782 char *kwnames[] = {
5783 (char *) "self", NULL
5784 };
5785
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 result = (arg1)->GetBitmap();
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 {
5797 wxBitmap * resultptr;
5798 resultptr = new wxBitmap((wxBitmap &) result);
5799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5800 }
5801 return resultobj;
5802 fail:
5803 return NULL;
5804 }
5805
5806
5807 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5810 wxBitmap *arg2 = 0 ;
5811 PyObject * obj0 = 0 ;
5812 PyObject * obj1 = 0 ;
5813 char *kwnames[] = {
5814 (char *) "self",(char *) "bitmap", NULL
5815 };
5816
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1)
5822 SWIG_fail;
5823 if (arg2 == NULL) {
5824 PyErr_SetString(PyExc_TypeError,"null reference");
5825 SWIG_fail;
5826 }
5827 {
5828 PyThreadState* __tstate = wxPyBeginAllowThreads();
5829 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5830
5831 wxPyEndAllowThreads(__tstate);
5832 if (PyErr_Occurred()) SWIG_fail;
5833 }
5834 Py_INCREF(Py_None); resultobj = Py_None;
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5842 PyObject *resultobj;
5843 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5844 wxIcon *arg2 = 0 ;
5845 PyObject * obj0 = 0 ;
5846 PyObject * obj1 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self",(char *) "icon", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5854 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5855 SWIG_POINTER_EXCEPTION | 0)) == -1)
5856 SWIG_fail;
5857 if (arg2 == NULL) {
5858 PyErr_SetString(PyExc_TypeError,"null reference");
5859 SWIG_fail;
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetIcon((wxIcon const &)*arg2);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 Py_INCREF(Py_None); resultobj = Py_None;
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5878 wxVisualAttributes result;
5879 PyObject * obj0 = 0 ;
5880 char *kwnames[] = {
5881 (char *) "variant", NULL
5882 };
5883
5884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5885 if (obj0) {
5886 arg1 = (int)SWIG_As_int(obj0);
5887 if (PyErr_Occurred()) SWIG_fail;
5888 }
5889 {
5890 if (!wxPyCheckForApp()) SWIG_fail;
5891 PyThreadState* __tstate = wxPyBeginAllowThreads();
5892 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5893
5894 wxPyEndAllowThreads(__tstate);
5895 if (PyErr_Occurred()) SWIG_fail;
5896 }
5897 {
5898 wxVisualAttributes * resultptr;
5899 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5900 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5901 }
5902 return resultobj;
5903 fail:
5904 return NULL;
5905 }
5906
5907
5908 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5909 PyObject *obj;
5910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5911 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5912 Py_INCREF(obj);
5913 return Py_BuildValue((char *)"");
5914 }
5915 static int _wrap_ListBoxNameStr_set(PyObject *) {
5916 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5917 return 1;
5918 }
5919
5920
5921 static PyObject *_wrap_ListBoxNameStr_get() {
5922 PyObject *pyobj;
5923
5924 {
5925 #if wxUSE_UNICODE
5926 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5927 #else
5928 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5929 #endif
5930 }
5931 return pyobj;
5932 }
5933
5934
5935 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5936 PyObject *resultobj;
5937 wxWindow *arg1 = (wxWindow *) 0 ;
5938 int arg2 = (int) -1 ;
5939 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5940 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5941 wxSize const &arg4_defvalue = wxDefaultSize ;
5942 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5943 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5944 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5945 long arg6 = (long) 0 ;
5946 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5947 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5948 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5949 wxString *arg8 = (wxString *) &arg8_defvalue ;
5950 wxListBox *result;
5951 wxPoint temp3 ;
5952 wxSize temp4 ;
5953 bool temp5 = false ;
5954 bool temp8 = false ;
5955 PyObject * obj0 = 0 ;
5956 PyObject * obj1 = 0 ;
5957 PyObject * obj2 = 0 ;
5958 PyObject * obj3 = 0 ;
5959 PyObject * obj4 = 0 ;
5960 PyObject * obj5 = 0 ;
5961 PyObject * obj6 = 0 ;
5962 PyObject * obj7 = 0 ;
5963 char *kwnames[] = {
5964 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5970 if (obj1) {
5971 arg2 = (int)SWIG_As_int(obj1);
5972 if (PyErr_Occurred()) SWIG_fail;
5973 }
5974 if (obj2) {
5975 {
5976 arg3 = &temp3;
5977 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5978 }
5979 }
5980 if (obj3) {
5981 {
5982 arg4 = &temp4;
5983 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5984 }
5985 }
5986 if (obj4) {
5987 {
5988 if (! PySequence_Check(obj4)) {
5989 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5990 SWIG_fail;
5991 }
5992 arg5 = new wxArrayString;
5993 temp5 = true;
5994 int i, len=PySequence_Length(obj4);
5995 for (i=0; i<len; i++) {
5996 PyObject* item = PySequence_GetItem(obj4, i);
5997 #if wxUSE_UNICODE
5998 PyObject* str = PyObject_Unicode(item);
5999 #else
6000 PyObject* str = PyObject_Str(item);
6001 #endif
6002 if (PyErr_Occurred()) SWIG_fail;
6003 arg5->Add(Py2wxString(str));
6004 Py_DECREF(item);
6005 Py_DECREF(str);
6006 }
6007 }
6008 }
6009 if (obj5) {
6010 arg6 = (long)SWIG_As_long(obj5);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 if (obj6) {
6014 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6015 SWIG_POINTER_EXCEPTION | 0)) == -1)
6016 SWIG_fail;
6017 if (arg7 == NULL) {
6018 PyErr_SetString(PyExc_TypeError,"null reference");
6019 SWIG_fail;
6020 }
6021 }
6022 if (obj7) {
6023 {
6024 arg8 = wxString_in_helper(obj7);
6025 if (arg8 == NULL) SWIG_fail;
6026 temp8 = true;
6027 }
6028 }
6029 {
6030 if (!wxPyCheckForApp()) SWIG_fail;
6031 PyThreadState* __tstate = wxPyBeginAllowThreads();
6032 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6033
6034 wxPyEndAllowThreads(__tstate);
6035 if (PyErr_Occurred()) SWIG_fail;
6036 }
6037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
6038 {
6039 if (temp5) delete arg5;
6040 }
6041 {
6042 if (temp8)
6043 delete arg8;
6044 }
6045 return resultobj;
6046 fail:
6047 {
6048 if (temp5) delete arg5;
6049 }
6050 {
6051 if (temp8)
6052 delete arg8;
6053 }
6054 return NULL;
6055 }
6056
6057
6058 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6059 PyObject *resultobj;
6060 wxListBox *result;
6061 char *kwnames[] = {
6062 NULL
6063 };
6064
6065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
6066 {
6067 if (!wxPyCheckForApp()) SWIG_fail;
6068 PyThreadState* __tstate = wxPyBeginAllowThreads();
6069 result = (wxListBox *)new wxListBox();
6070
6071 wxPyEndAllowThreads(__tstate);
6072 if (PyErr_Occurred()) SWIG_fail;
6073 }
6074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
6075 return resultobj;
6076 fail:
6077 return NULL;
6078 }
6079
6080
6081 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6082 PyObject *resultobj;
6083 wxListBox *arg1 = (wxListBox *) 0 ;
6084 wxWindow *arg2 = (wxWindow *) 0 ;
6085 int arg3 = (int) -1 ;
6086 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6087 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6088 wxSize const &arg5_defvalue = wxDefaultSize ;
6089 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6090 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6091 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6092 long arg7 = (long) 0 ;
6093 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6094 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6095 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6096 wxString *arg9 = (wxString *) &arg9_defvalue ;
6097 bool result;
6098 wxPoint temp4 ;
6099 wxSize temp5 ;
6100 bool temp6 = false ;
6101 bool temp9 = false ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 PyObject * obj2 = 0 ;
6105 PyObject * obj3 = 0 ;
6106 PyObject * obj4 = 0 ;
6107 PyObject * obj5 = 0 ;
6108 PyObject * obj6 = 0 ;
6109 PyObject * obj7 = 0 ;
6110 PyObject * obj8 = 0 ;
6111 char *kwnames[] = {
6112 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6113 };
6114
6115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6118 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6120 if (obj2) {
6121 arg3 = (int)SWIG_As_int(obj2);
6122 if (PyErr_Occurred()) SWIG_fail;
6123 }
6124 if (obj3) {
6125 {
6126 arg4 = &temp4;
6127 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6128 }
6129 }
6130 if (obj4) {
6131 {
6132 arg5 = &temp5;
6133 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6134 }
6135 }
6136 if (obj5) {
6137 {
6138 if (! PySequence_Check(obj5)) {
6139 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6140 SWIG_fail;
6141 }
6142 arg6 = new wxArrayString;
6143 temp6 = true;
6144 int i, len=PySequence_Length(obj5);
6145 for (i=0; i<len; i++) {
6146 PyObject* item = PySequence_GetItem(obj5, i);
6147 #if wxUSE_UNICODE
6148 PyObject* str = PyObject_Unicode(item);
6149 #else
6150 PyObject* str = PyObject_Str(item);
6151 #endif
6152 if (PyErr_Occurred()) SWIG_fail;
6153 arg6->Add(Py2wxString(str));
6154 Py_DECREF(item);
6155 Py_DECREF(str);
6156 }
6157 }
6158 }
6159 if (obj6) {
6160 arg7 = (long)SWIG_As_long(obj6);
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 if (obj7) {
6164 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6165 SWIG_POINTER_EXCEPTION | 0)) == -1)
6166 SWIG_fail;
6167 if (arg8 == NULL) {
6168 PyErr_SetString(PyExc_TypeError,"null reference");
6169 SWIG_fail;
6170 }
6171 }
6172 if (obj8) {
6173 {
6174 arg9 = wxString_in_helper(obj8);
6175 if (arg9 == NULL) SWIG_fail;
6176 temp9 = true;
6177 }
6178 }
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6182
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 {
6187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6188 }
6189 {
6190 if (temp6) delete arg6;
6191 }
6192 {
6193 if (temp9)
6194 delete arg9;
6195 }
6196 return resultobj;
6197 fail:
6198 {
6199 if (temp6) delete arg6;
6200 }
6201 {
6202 if (temp9)
6203 delete arg9;
6204 }
6205 return NULL;
6206 }
6207
6208
6209 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj;
6211 wxListBox *arg1 = (wxListBox *) 0 ;
6212 wxString *arg2 = 0 ;
6213 int arg3 ;
6214 PyObject *arg4 = (PyObject *) NULL ;
6215 bool temp2 = false ;
6216 PyObject * obj0 = 0 ;
6217 PyObject * obj1 = 0 ;
6218 PyObject * obj2 = 0 ;
6219 PyObject * obj3 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6227 {
6228 arg2 = wxString_in_helper(obj1);
6229 if (arg2 == NULL) SWIG_fail;
6230 temp2 = true;
6231 }
6232 arg3 = (int)SWIG_As_int(obj2);
6233 if (PyErr_Occurred()) SWIG_fail;
6234 if (obj3) {
6235 arg4 = obj3;
6236 }
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
6240
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 Py_INCREF(Py_None); resultobj = Py_None;
6245 {
6246 if (temp2)
6247 delete arg2;
6248 }
6249 return resultobj;
6250 fail:
6251 {
6252 if (temp2)
6253 delete arg2;
6254 }
6255 return NULL;
6256 }
6257
6258
6259 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6260 PyObject *resultobj;
6261 wxListBox *arg1 = (wxListBox *) 0 ;
6262 wxArrayString *arg2 = 0 ;
6263 int arg3 ;
6264 bool temp2 = false ;
6265 PyObject * obj0 = 0 ;
6266 PyObject * obj1 = 0 ;
6267 PyObject * obj2 = 0 ;
6268 char *kwnames[] = {
6269 (char *) "self",(char *) "items",(char *) "pos", NULL
6270 };
6271
6272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6275 {
6276 if (! PySequence_Check(obj1)) {
6277 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6278 SWIG_fail;
6279 }
6280 arg2 = new wxArrayString;
6281 temp2 = true;
6282 int i, len=PySequence_Length(obj1);
6283 for (i=0; i<len; i++) {
6284 PyObject* item = PySequence_GetItem(obj1, i);
6285 #if wxUSE_UNICODE
6286 PyObject* str = PyObject_Unicode(item);
6287 #else
6288 PyObject* str = PyObject_Str(item);
6289 #endif
6290 if (PyErr_Occurred()) SWIG_fail;
6291 arg2->Add(Py2wxString(str));
6292 Py_DECREF(item);
6293 Py_DECREF(str);
6294 }
6295 }
6296 arg3 = (int)SWIG_As_int(obj2);
6297 if (PyErr_Occurred()) SWIG_fail;
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 Py_INCREF(Py_None); resultobj = Py_None;
6306 {
6307 if (temp2) delete arg2;
6308 }
6309 return resultobj;
6310 fail:
6311 {
6312 if (temp2) delete arg2;
6313 }
6314 return NULL;
6315 }
6316
6317
6318 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6319 PyObject *resultobj;
6320 wxListBox *arg1 = (wxListBox *) 0 ;
6321 wxArrayString *arg2 = 0 ;
6322 bool temp2 = false ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char *kwnames[] = {
6326 (char *) "self",(char *) "items", NULL
6327 };
6328
6329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6332 {
6333 if (! PySequence_Check(obj1)) {
6334 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6335 SWIG_fail;
6336 }
6337 arg2 = new wxArrayString;
6338 temp2 = true;
6339 int i, len=PySequence_Length(obj1);
6340 for (i=0; i<len; i++) {
6341 PyObject* item = PySequence_GetItem(obj1, i);
6342 #if wxUSE_UNICODE
6343 PyObject* str = PyObject_Unicode(item);
6344 #else
6345 PyObject* str = PyObject_Str(item);
6346 #endif
6347 if (PyErr_Occurred()) SWIG_fail;
6348 arg2->Add(Py2wxString(str));
6349 Py_DECREF(item);
6350 Py_DECREF(str);
6351 }
6352 }
6353 {
6354 PyThreadState* __tstate = wxPyBeginAllowThreads();
6355 (arg1)->Set((wxArrayString const &)*arg2);
6356
6357 wxPyEndAllowThreads(__tstate);
6358 if (PyErr_Occurred()) SWIG_fail;
6359 }
6360 Py_INCREF(Py_None); resultobj = Py_None;
6361 {
6362 if (temp2) delete arg2;
6363 }
6364 return resultobj;
6365 fail:
6366 {
6367 if (temp2) delete arg2;
6368 }
6369 return NULL;
6370 }
6371
6372
6373 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6374 PyObject *resultobj;
6375 wxListBox *arg1 = (wxListBox *) 0 ;
6376 int arg2 ;
6377 bool result;
6378 PyObject * obj0 = 0 ;
6379 PyObject * obj1 = 0 ;
6380 char *kwnames[] = {
6381 (char *) "self",(char *) "n", NULL
6382 };
6383
6384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6387 arg2 = (int)SWIG_As_int(obj1);
6388 if (PyErr_Occurred()) SWIG_fail;
6389 {
6390 PyThreadState* __tstate = wxPyBeginAllowThreads();
6391 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6392
6393 wxPyEndAllowThreads(__tstate);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 {
6397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6398 }
6399 return resultobj;
6400 fail:
6401 return NULL;
6402 }
6403
6404
6405 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 wxListBox *arg1 = (wxListBox *) 0 ;
6408 int arg2 ;
6409 bool arg3 = (bool) true ;
6410 PyObject * obj0 = 0 ;
6411 PyObject * obj1 = 0 ;
6412 PyObject * obj2 = 0 ;
6413 char *kwnames[] = {
6414 (char *) "self",(char *) "n",(char *) "select", NULL
6415 };
6416
6417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6420 arg2 = (int)SWIG_As_int(obj1);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 if (obj2) {
6423 arg3 = (bool)SWIG_As_bool(obj2);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 (arg1)->SetSelection(arg2,arg3);
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 Py_INCREF(Py_None); resultobj = Py_None;
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxListBox *arg1 = (wxListBox *) 0 ;
6443 int arg2 ;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 char *kwnames[] = {
6447 (char *) "self",(char *) "n", NULL
6448 };
6449
6450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6453 arg2 = (int)SWIG_As_int(obj1);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 {
6456 PyThreadState* __tstate = wxPyBeginAllowThreads();
6457 (arg1)->Select(arg2);
6458
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 Py_INCREF(Py_None); resultobj = Py_None;
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_ListBox_Deselect(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_Deselect",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)->Deselect(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_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6499 PyObject *resultobj;
6500 wxListBox *arg1 = (wxListBox *) 0 ;
6501 int arg2 = (int) -1 ;
6502 PyObject * obj0 = 0 ;
6503 PyObject * obj1 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "self",(char *) "itemToLeaveSelected", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6511 if (obj1) {
6512 arg2 = (int)SWIG_As_int(obj1);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 {
6516 PyThreadState* __tstate = wxPyBeginAllowThreads();
6517 (arg1)->DeselectAll(arg2);
6518
6519 wxPyEndAllowThreads(__tstate);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 Py_INCREF(Py_None); resultobj = Py_None;
6523 return resultobj;
6524 fail:
6525 return NULL;
6526 }
6527
6528
6529 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj;
6531 wxListBox *arg1 = (wxListBox *) 0 ;
6532 wxString *arg2 = 0 ;
6533 bool arg3 = (bool) true ;
6534 bool result;
6535 bool temp2 = false ;
6536 PyObject * obj0 = 0 ;
6537 PyObject * obj1 = 0 ;
6538 PyObject * obj2 = 0 ;
6539 char *kwnames[] = {
6540 (char *) "self",(char *) "s",(char *) "select", NULL
6541 };
6542
6543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6546 {
6547 arg2 = wxString_in_helper(obj1);
6548 if (arg2 == NULL) SWIG_fail;
6549 temp2 = true;
6550 }
6551 if (obj2) {
6552 arg3 = (bool)SWIG_As_bool(obj2);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 {
6556 PyThreadState* __tstate = wxPyBeginAllowThreads();
6557 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6558
6559 wxPyEndAllowThreads(__tstate);
6560 if (PyErr_Occurred()) SWIG_fail;
6561 }
6562 {
6563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6564 }
6565 {
6566 if (temp2)
6567 delete arg2;
6568 }
6569 return resultobj;
6570 fail:
6571 {
6572 if (temp2)
6573 delete arg2;
6574 }
6575 return NULL;
6576 }
6577
6578
6579 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6580 PyObject *resultobj;
6581 wxListBox *arg1 = (wxListBox *) 0 ;
6582 PyObject *result;
6583 PyObject * obj0 = 0 ;
6584 char *kwnames[] = {
6585 (char *) "self", NULL
6586 };
6587
6588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6591 {
6592 PyThreadState* __tstate = wxPyBeginAllowThreads();
6593 result = (PyObject *)wxListBox_GetSelections(arg1);
6594
6595 wxPyEndAllowThreads(__tstate);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 resultobj = result;
6599 return resultobj;
6600 fail:
6601 return NULL;
6602 }
6603
6604
6605 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6606 PyObject *resultobj;
6607 wxListBox *arg1 = (wxListBox *) 0 ;
6608 int arg2 ;
6609 PyObject * obj0 = 0 ;
6610 PyObject * obj1 = 0 ;
6611 char *kwnames[] = {
6612 (char *) "self",(char *) "n", NULL
6613 };
6614
6615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6618 arg2 = (int)SWIG_As_int(obj1);
6619 if (PyErr_Occurred()) SWIG_fail;
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 (arg1)->SetFirstItem(arg2);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 Py_INCREF(Py_None); resultobj = Py_None;
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 wxListBox *arg1 = (wxListBox *) 0 ;
6637 wxString *arg2 = 0 ;
6638 bool temp2 = false ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 char *kwnames[] = {
6642 (char *) "self",(char *) "s", NULL
6643 };
6644
6645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6648 {
6649 arg2 = wxString_in_helper(obj1);
6650 if (arg2 == NULL) SWIG_fail;
6651 temp2 = true;
6652 }
6653 {
6654 PyThreadState* __tstate = wxPyBeginAllowThreads();
6655 (arg1)->SetFirstItem((wxString const &)*arg2);
6656
6657 wxPyEndAllowThreads(__tstate);
6658 if (PyErr_Occurred()) SWIG_fail;
6659 }
6660 Py_INCREF(Py_None); resultobj = Py_None;
6661 {
6662 if (temp2)
6663 delete arg2;
6664 }
6665 return resultobj;
6666 fail:
6667 {
6668 if (temp2)
6669 delete arg2;
6670 }
6671 return NULL;
6672 }
6673
6674
6675 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6676 PyObject *resultobj;
6677 wxListBox *arg1 = (wxListBox *) 0 ;
6678 int arg2 ;
6679 PyObject * obj0 = 0 ;
6680 PyObject * obj1 = 0 ;
6681 char *kwnames[] = {
6682 (char *) "self",(char *) "n", NULL
6683 };
6684
6685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6688 arg2 = (int)SWIG_As_int(obj1);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 {
6691 PyThreadState* __tstate = wxPyBeginAllowThreads();
6692 (arg1)->EnsureVisible(arg2);
6693
6694 wxPyEndAllowThreads(__tstate);
6695 if (PyErr_Occurred()) SWIG_fail;
6696 }
6697 Py_INCREF(Py_None); resultobj = Py_None;
6698 return resultobj;
6699 fail:
6700 return NULL;
6701 }
6702
6703
6704 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6705 PyObject *resultobj;
6706 wxListBox *arg1 = (wxListBox *) 0 ;
6707 wxString *arg2 = 0 ;
6708 bool temp2 = false ;
6709 PyObject * obj0 = 0 ;
6710 PyObject * obj1 = 0 ;
6711 char *kwnames[] = {
6712 (char *) "self",(char *) "s", NULL
6713 };
6714
6715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6718 {
6719 arg2 = wxString_in_helper(obj1);
6720 if (arg2 == NULL) SWIG_fail;
6721 temp2 = true;
6722 }
6723 {
6724 PyThreadState* __tstate = wxPyBeginAllowThreads();
6725 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6726
6727 wxPyEndAllowThreads(__tstate);
6728 if (PyErr_Occurred()) SWIG_fail;
6729 }
6730 Py_INCREF(Py_None); resultobj = Py_None;
6731 {
6732 if (temp2)
6733 delete arg2;
6734 }
6735 return resultobj;
6736 fail:
6737 {
6738 if (temp2)
6739 delete arg2;
6740 }
6741 return NULL;
6742 }
6743
6744
6745 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6746 PyObject *resultobj;
6747 wxListBox *arg1 = (wxListBox *) 0 ;
6748 bool result;
6749 PyObject * obj0 = 0 ;
6750 char *kwnames[] = {
6751 (char *) "self", NULL
6752 };
6753
6754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6757 {
6758 PyThreadState* __tstate = wxPyBeginAllowThreads();
6759 result = (bool)((wxListBox const *)arg1)->IsSorted();
6760
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 {
6765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6766 }
6767 return resultobj;
6768 fail:
6769 return NULL;
6770 }
6771
6772
6773 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6774 PyObject *resultobj;
6775 wxListBox *arg1 = (wxListBox *) 0 ;
6776 int arg2 ;
6777 wxColour *arg3 = 0 ;
6778 wxColour temp3 ;
6779 PyObject * obj0 = 0 ;
6780 PyObject * obj1 = 0 ;
6781 PyObject * obj2 = 0 ;
6782 char *kwnames[] = {
6783 (char *) "self",(char *) "item",(char *) "c", NULL
6784 };
6785
6786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6789 arg2 = (int)SWIG_As_int(obj1);
6790 if (PyErr_Occurred()) SWIG_fail;
6791 {
6792 arg3 = &temp3;
6793 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6794 }
6795 {
6796 PyThreadState* __tstate = wxPyBeginAllowThreads();
6797 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6798
6799 wxPyEndAllowThreads(__tstate);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 Py_INCREF(Py_None); resultobj = Py_None;
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxListBox *arg1 = (wxListBox *) 0 ;
6812 int arg2 ;
6813 wxColour *arg3 = 0 ;
6814 wxColour temp3 ;
6815 PyObject * obj0 = 0 ;
6816 PyObject * obj1 = 0 ;
6817 PyObject * obj2 = 0 ;
6818 char *kwnames[] = {
6819 (char *) "self",(char *) "item",(char *) "c", NULL
6820 };
6821
6822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6825 arg2 = (int)SWIG_As_int(obj1);
6826 if (PyErr_Occurred()) SWIG_fail;
6827 {
6828 arg3 = &temp3;
6829 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6830 }
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 Py_INCREF(Py_None); resultobj = Py_None;
6839 return resultobj;
6840 fail:
6841 return NULL;
6842 }
6843
6844
6845 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6846 PyObject *resultobj;
6847 wxListBox *arg1 = (wxListBox *) 0 ;
6848 int arg2 ;
6849 wxFont *arg3 = 0 ;
6850 PyObject * obj0 = 0 ;
6851 PyObject * obj1 = 0 ;
6852 PyObject * obj2 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self",(char *) "item",(char *) "f", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 arg2 = (int)SWIG_As_int(obj1);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6863 SWIG_POINTER_EXCEPTION | 0)) == -1)
6864 SWIG_fail;
6865 if (arg3 == NULL) {
6866 PyErr_SetString(PyExc_TypeError,"null reference");
6867 SWIG_fail;
6868 }
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6872
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 Py_INCREF(Py_None); resultobj = Py_None;
6877 return resultobj;
6878 fail:
6879 return NULL;
6880 }
6881
6882
6883 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj;
6885 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6886 wxVisualAttributes result;
6887 PyObject * obj0 = 0 ;
6888 char *kwnames[] = {
6889 (char *) "variant", NULL
6890 };
6891
6892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6893 if (obj0) {
6894 arg1 = (int)SWIG_As_int(obj0);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 {
6898 if (!wxPyCheckForApp()) SWIG_fail;
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 {
6906 wxVisualAttributes * resultptr;
6907 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6908 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6909 }
6910 return resultobj;
6911 fail:
6912 return NULL;
6913 }
6914
6915
6916 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6917 PyObject *obj;
6918 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6919 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6920 Py_INCREF(obj);
6921 return Py_BuildValue((char *)"");
6922 }
6923 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6924 PyObject *resultobj;
6925 wxWindow *arg1 = (wxWindow *) 0 ;
6926 int arg2 = (int) -1 ;
6927 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6928 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6929 wxSize const &arg4_defvalue = wxDefaultSize ;
6930 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6931 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6932 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6933 long arg6 = (long) 0 ;
6934 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6935 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6936 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6937 wxString *arg8 = (wxString *) &arg8_defvalue ;
6938 wxCheckListBox *result;
6939 wxPoint temp3 ;
6940 wxSize temp4 ;
6941 bool temp5 = false ;
6942 bool temp8 = false ;
6943 PyObject * obj0 = 0 ;
6944 PyObject * obj1 = 0 ;
6945 PyObject * obj2 = 0 ;
6946 PyObject * obj3 = 0 ;
6947 PyObject * obj4 = 0 ;
6948 PyObject * obj5 = 0 ;
6949 PyObject * obj6 = 0 ;
6950 PyObject * obj7 = 0 ;
6951 char *kwnames[] = {
6952 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6953 };
6954
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6958 if (obj1) {
6959 arg2 = (int)SWIG_As_int(obj1);
6960 if (PyErr_Occurred()) SWIG_fail;
6961 }
6962 if (obj2) {
6963 {
6964 arg3 = &temp3;
6965 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6966 }
6967 }
6968 if (obj3) {
6969 {
6970 arg4 = &temp4;
6971 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6972 }
6973 }
6974 if (obj4) {
6975 {
6976 if (! PySequence_Check(obj4)) {
6977 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6978 SWIG_fail;
6979 }
6980 arg5 = new wxArrayString;
6981 temp5 = true;
6982 int i, len=PySequence_Length(obj4);
6983 for (i=0; i<len; i++) {
6984 PyObject* item = PySequence_GetItem(obj4, i);
6985 #if wxUSE_UNICODE
6986 PyObject* str = PyObject_Unicode(item);
6987 #else
6988 PyObject* str = PyObject_Str(item);
6989 #endif
6990 if (PyErr_Occurred()) SWIG_fail;
6991 arg5->Add(Py2wxString(str));
6992 Py_DECREF(item);
6993 Py_DECREF(str);
6994 }
6995 }
6996 }
6997 if (obj5) {
6998 arg6 = (long)SWIG_As_long(obj5);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 if (obj6) {
7002 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7003 SWIG_POINTER_EXCEPTION | 0)) == -1)
7004 SWIG_fail;
7005 if (arg7 == NULL) {
7006 PyErr_SetString(PyExc_TypeError,"null reference");
7007 SWIG_fail;
7008 }
7009 }
7010 if (obj7) {
7011 {
7012 arg8 = wxString_in_helper(obj7);
7013 if (arg8 == NULL) SWIG_fail;
7014 temp8 = true;
7015 }
7016 }
7017 {
7018 if (!wxPyCheckForApp()) SWIG_fail;
7019 PyThreadState* __tstate = wxPyBeginAllowThreads();
7020 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7021
7022 wxPyEndAllowThreads(__tstate);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 }
7025 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
7026 {
7027 if (temp5) delete arg5;
7028 }
7029 {
7030 if (temp8)
7031 delete arg8;
7032 }
7033 return resultobj;
7034 fail:
7035 {
7036 if (temp5) delete arg5;
7037 }
7038 {
7039 if (temp8)
7040 delete arg8;
7041 }
7042 return NULL;
7043 }
7044
7045
7046 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 wxCheckListBox *result;
7049 char *kwnames[] = {
7050 NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
7054 {
7055 if (!wxPyCheckForApp()) SWIG_fail;
7056 PyThreadState* __tstate = wxPyBeginAllowThreads();
7057 result = (wxCheckListBox *)new wxCheckListBox();
7058
7059 wxPyEndAllowThreads(__tstate);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 }
7062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
7063 return resultobj;
7064 fail:
7065 return NULL;
7066 }
7067
7068
7069 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
7070 PyObject *resultobj;
7071 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7072 wxWindow *arg2 = (wxWindow *) 0 ;
7073 int arg3 = (int) -1 ;
7074 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7075 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7076 wxSize const &arg5_defvalue = wxDefaultSize ;
7077 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7078 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
7079 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
7080 long arg7 = (long) 0 ;
7081 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7082 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7083 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
7084 wxString *arg9 = (wxString *) &arg9_defvalue ;
7085 bool result;
7086 wxPoint temp4 ;
7087 wxSize temp5 ;
7088 bool temp6 = false ;
7089 bool temp9 = false ;
7090 PyObject * obj0 = 0 ;
7091 PyObject * obj1 = 0 ;
7092 PyObject * obj2 = 0 ;
7093 PyObject * obj3 = 0 ;
7094 PyObject * obj4 = 0 ;
7095 PyObject * obj5 = 0 ;
7096 PyObject * obj6 = 0 ;
7097 PyObject * obj7 = 0 ;
7098 PyObject * obj8 = 0 ;
7099 char *kwnames[] = {
7100 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
7101 };
7102
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7106 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7108 if (obj2) {
7109 arg3 = (int)SWIG_As_int(obj2);
7110 if (PyErr_Occurred()) SWIG_fail;
7111 }
7112 if (obj3) {
7113 {
7114 arg4 = &temp4;
7115 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7116 }
7117 }
7118 if (obj4) {
7119 {
7120 arg5 = &temp5;
7121 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7122 }
7123 }
7124 if (obj5) {
7125 {
7126 if (! PySequence_Check(obj5)) {
7127 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7128 SWIG_fail;
7129 }
7130 arg6 = new wxArrayString;
7131 temp6 = true;
7132 int i, len=PySequence_Length(obj5);
7133 for (i=0; i<len; i++) {
7134 PyObject* item = PySequence_GetItem(obj5, i);
7135 #if wxUSE_UNICODE
7136 PyObject* str = PyObject_Unicode(item);
7137 #else
7138 PyObject* str = PyObject_Str(item);
7139 #endif
7140 if (PyErr_Occurred()) SWIG_fail;
7141 arg6->Add(Py2wxString(str));
7142 Py_DECREF(item);
7143 Py_DECREF(str);
7144 }
7145 }
7146 }
7147 if (obj6) {
7148 arg7 = (long)SWIG_As_long(obj6);
7149 if (PyErr_Occurred()) SWIG_fail;
7150 }
7151 if (obj7) {
7152 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7153 SWIG_POINTER_EXCEPTION | 0)) == -1)
7154 SWIG_fail;
7155 if (arg8 == NULL) {
7156 PyErr_SetString(PyExc_TypeError,"null reference");
7157 SWIG_fail;
7158 }
7159 }
7160 if (obj8) {
7161 {
7162 arg9 = wxString_in_helper(obj8);
7163 if (arg9 == NULL) SWIG_fail;
7164 temp9 = true;
7165 }
7166 }
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
7175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7176 }
7177 {
7178 if (temp6) delete arg6;
7179 }
7180 {
7181 if (temp9)
7182 delete arg9;
7183 }
7184 return resultobj;
7185 fail:
7186 {
7187 if (temp6) delete arg6;
7188 }
7189 {
7190 if (temp9)
7191 delete arg9;
7192 }
7193 return NULL;
7194 }
7195
7196
7197 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj;
7199 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7200 int arg2 ;
7201 bool result;
7202 PyObject * obj0 = 0 ;
7203 PyObject * obj1 = 0 ;
7204 char *kwnames[] = {
7205 (char *) "self",(char *) "index", NULL
7206 };
7207
7208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
7209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7211 arg2 = (int)SWIG_As_int(obj1);
7212 if (PyErr_Occurred()) SWIG_fail;
7213 {
7214 PyThreadState* __tstate = wxPyBeginAllowThreads();
7215 result = (bool)(arg1)->IsChecked(arg2);
7216
7217 wxPyEndAllowThreads(__tstate);
7218 if (PyErr_Occurred()) SWIG_fail;
7219 }
7220 {
7221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7222 }
7223 return resultobj;
7224 fail:
7225 return NULL;
7226 }
7227
7228
7229 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
7230 PyObject *resultobj;
7231 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7232 int arg2 ;
7233 int arg3 = (int) true ;
7234 PyObject * obj0 = 0 ;
7235 PyObject * obj1 = 0 ;
7236 PyObject * obj2 = 0 ;
7237 char *kwnames[] = {
7238 (char *) "self",(char *) "index",(char *) "check", NULL
7239 };
7240
7241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
7242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7244 arg2 = (int)SWIG_As_int(obj1);
7245 if (PyErr_Occurred()) SWIG_fail;
7246 if (obj2) {
7247 arg3 = (int)SWIG_As_int(obj2);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 (arg1)->Check(arg2,arg3);
7253
7254 wxPyEndAllowThreads(__tstate);
7255 if (PyErr_Occurred()) SWIG_fail;
7256 }
7257 Py_INCREF(Py_None); resultobj = Py_None;
7258 return resultobj;
7259 fail:
7260 return NULL;
7261 }
7262
7263
7264 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7265 PyObject *resultobj;
7266 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7267 wxPoint *arg2 = 0 ;
7268 int result;
7269 wxPoint temp2 ;
7270 PyObject * obj0 = 0 ;
7271 PyObject * obj1 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "self",(char *) "pt", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7279 {
7280 arg2 = &temp2;
7281 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7282 }
7283 {
7284 PyThreadState* __tstate = wxPyBeginAllowThreads();
7285 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7286
7287 wxPyEndAllowThreads(__tstate);
7288 if (PyErr_Occurred()) SWIG_fail;
7289 }
7290 resultobj = SWIG_From_int((int)result);
7291 return resultobj;
7292 fail:
7293 return NULL;
7294 }
7295
7296
7297 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7298 PyObject *resultobj;
7299 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7300 int arg2 ;
7301 int arg3 ;
7302 int result;
7303 PyObject * obj0 = 0 ;
7304 PyObject * obj1 = 0 ;
7305 PyObject * obj2 = 0 ;
7306 char *kwnames[] = {
7307 (char *) "self",(char *) "x",(char *) "y", NULL
7308 };
7309
7310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7313 arg2 = (int)SWIG_As_int(obj1);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 arg3 = (int)SWIG_As_int(obj2);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 {
7318 PyThreadState* __tstate = wxPyBeginAllowThreads();
7319 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7320
7321 wxPyEndAllowThreads(__tstate);
7322 if (PyErr_Occurred()) SWIG_fail;
7323 }
7324 resultobj = SWIG_From_int((int)result);
7325 return resultobj;
7326 fail:
7327 return NULL;
7328 }
7329
7330
7331 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7332 PyObject *obj;
7333 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7334 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7335 Py_INCREF(obj);
7336 return Py_BuildValue((char *)"");
7337 }
7338 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7339 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7340 return 1;
7341 }
7342
7343
7344 static PyObject *_wrap_TextCtrlNameStr_get() {
7345 PyObject *pyobj;
7346
7347 {
7348 #if wxUSE_UNICODE
7349 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7350 #else
7351 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7352 #endif
7353 }
7354 return pyobj;
7355 }
7356
7357
7358 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj;
7360 wxColour const &arg1_defvalue = wxNullColour ;
7361 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7362 wxColour const &arg2_defvalue = wxNullColour ;
7363 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7364 wxFont const &arg3_defvalue = wxNullFont ;
7365 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7366 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7367 wxTextAttr *result;
7368 wxColour temp1 ;
7369 wxColour temp2 ;
7370 PyObject * obj0 = 0 ;
7371 PyObject * obj1 = 0 ;
7372 PyObject * obj2 = 0 ;
7373 PyObject * obj3 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7379 if (obj0) {
7380 {
7381 arg1 = &temp1;
7382 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7383 }
7384 }
7385 if (obj1) {
7386 {
7387 arg2 = &temp2;
7388 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7389 }
7390 }
7391 if (obj2) {
7392 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7393 SWIG_POINTER_EXCEPTION | 0)) == -1)
7394 SWIG_fail;
7395 if (arg3 == NULL) {
7396 PyErr_SetString(PyExc_TypeError,"null reference");
7397 SWIG_fail;
7398 }
7399 }
7400 if (obj3) {
7401 arg4 = (int)SWIG_As_int(obj3);
7402 if (PyErr_Occurred()) SWIG_fail;
7403 }
7404 {
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7407
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7412 return resultobj;
7413 fail:
7414 return NULL;
7415 }
7416
7417
7418 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7419 PyObject *resultobj;
7420 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7421 PyObject * obj0 = 0 ;
7422 char *kwnames[] = {
7423 (char *) "self", NULL
7424 };
7425
7426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7429 {
7430 PyThreadState* __tstate = wxPyBeginAllowThreads();
7431 delete arg1;
7432
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 Py_INCREF(Py_None); resultobj = Py_None;
7437 return resultobj;
7438 fail:
7439 return NULL;
7440 }
7441
7442
7443 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj;
7445 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7446 PyObject * obj0 = 0 ;
7447 char *kwnames[] = {
7448 (char *) "self", NULL
7449 };
7450
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7454 {
7455 PyThreadState* __tstate = wxPyBeginAllowThreads();
7456 (arg1)->Init();
7457
7458 wxPyEndAllowThreads(__tstate);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 }
7461 Py_INCREF(Py_None); resultobj = Py_None;
7462 return resultobj;
7463 fail:
7464 return NULL;
7465 }
7466
7467
7468 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7469 PyObject *resultobj;
7470 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7471 wxColour *arg2 = 0 ;
7472 wxColour temp2 ;
7473 PyObject * obj0 = 0 ;
7474 PyObject * obj1 = 0 ;
7475 char *kwnames[] = {
7476 (char *) "self",(char *) "colText", NULL
7477 };
7478
7479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7482 {
7483 arg2 = &temp2;
7484 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7485 }
7486 {
7487 PyThreadState* __tstate = wxPyBeginAllowThreads();
7488 (arg1)->SetTextColour((wxColour const &)*arg2);
7489
7490 wxPyEndAllowThreads(__tstate);
7491 if (PyErr_Occurred()) SWIG_fail;
7492 }
7493 Py_INCREF(Py_None); resultobj = Py_None;
7494 return resultobj;
7495 fail:
7496 return NULL;
7497 }
7498
7499
7500 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7501 PyObject *resultobj;
7502 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7503 wxColour *arg2 = 0 ;
7504 wxColour temp2 ;
7505 PyObject * obj0 = 0 ;
7506 PyObject * obj1 = 0 ;
7507 char *kwnames[] = {
7508 (char *) "self",(char *) "colBack", NULL
7509 };
7510
7511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7514 {
7515 arg2 = &temp2;
7516 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7517 }
7518 {
7519 PyThreadState* __tstate = wxPyBeginAllowThreads();
7520 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7521
7522 wxPyEndAllowThreads(__tstate);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 Py_INCREF(Py_None); resultobj = Py_None;
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7533 PyObject *resultobj;
7534 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7535 wxFont *arg2 = 0 ;
7536 long arg3 = (long) wxTEXT_ATTR_FONT ;
7537 PyObject * obj0 = 0 ;
7538 PyObject * obj1 = 0 ;
7539 PyObject * obj2 = 0 ;
7540 char *kwnames[] = {
7541 (char *) "self",(char *) "font",(char *) "flags", NULL
7542 };
7543
7544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7547 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7548 SWIG_POINTER_EXCEPTION | 0)) == -1)
7549 SWIG_fail;
7550 if (arg2 == NULL) {
7551 PyErr_SetString(PyExc_TypeError,"null reference");
7552 SWIG_fail;
7553 }
7554 if (obj2) {
7555 arg3 = (long)SWIG_As_long(obj2);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 }
7558 {
7559 PyThreadState* __tstate = wxPyBeginAllowThreads();
7560 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7561
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 Py_INCREF(Py_None); resultobj = Py_None;
7566 return resultobj;
7567 fail:
7568 return NULL;
7569 }
7570
7571
7572 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7573 PyObject *resultobj;
7574 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7575 int arg2 ;
7576 PyObject * obj0 = 0 ;
7577 PyObject * obj1 = 0 ;
7578 char *kwnames[] = {
7579 (char *) "self",(char *) "alignment", NULL
7580 };
7581
7582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7585 arg2 = (int)SWIG_As_int(obj1);
7586 if (PyErr_Occurred()) SWIG_fail;
7587 {
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7590
7591 wxPyEndAllowThreads(__tstate);
7592 if (PyErr_Occurred()) SWIG_fail;
7593 }
7594 Py_INCREF(Py_None); resultobj = Py_None;
7595 return resultobj;
7596 fail:
7597 return NULL;
7598 }
7599
7600
7601 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj;
7603 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7604 wxArrayInt *arg2 = 0 ;
7605 bool temp2 = false ;
7606 PyObject * obj0 = 0 ;
7607 PyObject * obj1 = 0 ;
7608 char *kwnames[] = {
7609 (char *) "self",(char *) "tabs", NULL
7610 };
7611
7612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7615 {
7616 if (! PySequence_Check(obj1)) {
7617 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7618 SWIG_fail;
7619 }
7620 arg2 = new wxArrayInt;
7621 temp2 = true;
7622 int i, len=PySequence_Length(obj1);
7623 for (i=0; i<len; i++) {
7624 PyObject* item = PySequence_GetItem(obj1, i);
7625 PyObject* number = PyNumber_Int(item);
7626 arg2->Add(PyInt_AS_LONG(number));
7627 Py_DECREF(item);
7628 Py_DECREF(number);
7629 }
7630 }
7631 {
7632 PyThreadState* __tstate = wxPyBeginAllowThreads();
7633 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7634
7635 wxPyEndAllowThreads(__tstate);
7636 if (PyErr_Occurred()) SWIG_fail;
7637 }
7638 Py_INCREF(Py_None); resultobj = Py_None;
7639 {
7640 if (temp2) delete arg2;
7641 }
7642 return resultobj;
7643 fail:
7644 {
7645 if (temp2) delete arg2;
7646 }
7647 return NULL;
7648 }
7649
7650
7651 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7652 PyObject *resultobj;
7653 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7654 int arg2 ;
7655 int arg3 = (int) 0 ;
7656 PyObject * obj0 = 0 ;
7657 PyObject * obj1 = 0 ;
7658 PyObject * obj2 = 0 ;
7659 char *kwnames[] = {
7660 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7666 arg2 = (int)SWIG_As_int(obj1);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 if (obj2) {
7669 arg3 = (int)SWIG_As_int(obj2);
7670 if (PyErr_Occurred()) SWIG_fail;
7671 }
7672 {
7673 PyThreadState* __tstate = wxPyBeginAllowThreads();
7674 (arg1)->SetLeftIndent(arg2,arg3);
7675
7676 wxPyEndAllowThreads(__tstate);
7677 if (PyErr_Occurred()) SWIG_fail;
7678 }
7679 Py_INCREF(Py_None); resultobj = Py_None;
7680 return resultobj;
7681 fail:
7682 return NULL;
7683 }
7684
7685
7686 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7687 PyObject *resultobj;
7688 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7689 int arg2 ;
7690 PyObject * obj0 = 0 ;
7691 PyObject * obj1 = 0 ;
7692 char *kwnames[] = {
7693 (char *) "self",(char *) "indent", NULL
7694 };
7695
7696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7699 arg2 = (int)SWIG_As_int(obj1);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 (arg1)->SetRightIndent(arg2);
7704
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 Py_INCREF(Py_None); resultobj = Py_None;
7709 return resultobj;
7710 fail:
7711 return NULL;
7712 }
7713
7714
7715 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj;
7717 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7718 long arg2 ;
7719 PyObject * obj0 = 0 ;
7720 PyObject * obj1 = 0 ;
7721 char *kwnames[] = {
7722 (char *) "self",(char *) "flags", NULL
7723 };
7724
7725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7728 arg2 = (long)SWIG_As_long(obj1);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 (arg1)->SetFlags(arg2);
7733
7734 wxPyEndAllowThreads(__tstate);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 }
7737 Py_INCREF(Py_None); resultobj = Py_None;
7738 return resultobj;
7739 fail:
7740 return NULL;
7741 }
7742
7743
7744 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj;
7746 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7747 bool result;
7748 PyObject * obj0 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "self", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7756 {
7757 PyThreadState* __tstate = wxPyBeginAllowThreads();
7758 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7759
7760 wxPyEndAllowThreads(__tstate);
7761 if (PyErr_Occurred()) SWIG_fail;
7762 }
7763 {
7764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7765 }
7766 return resultobj;
7767 fail:
7768 return NULL;
7769 }
7770
7771
7772 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7773 PyObject *resultobj;
7774 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7775 bool result;
7776 PyObject * obj0 = 0 ;
7777 char *kwnames[] = {
7778 (char *) "self", NULL
7779 };
7780
7781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7784 {
7785 PyThreadState* __tstate = wxPyBeginAllowThreads();
7786 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7787
7788 wxPyEndAllowThreads(__tstate);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 }
7791 {
7792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7793 }
7794 return resultobj;
7795 fail:
7796 return NULL;
7797 }
7798
7799
7800 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7803 bool result;
7804 PyObject * obj0 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "self", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 {
7820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7821 }
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj;
7830 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7831 bool result;
7832 PyObject * obj0 = 0 ;
7833 char *kwnames[] = {
7834 (char *) "self", NULL
7835 };
7836
7837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 {
7848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7849 }
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7859 bool result;
7860 PyObject * obj0 = 0 ;
7861 char *kwnames[] = {
7862 (char *) "self", NULL
7863 };
7864
7865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 {
7876 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7877 }
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj;
7886 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7887 bool result;
7888 PyObject * obj0 = 0 ;
7889 char *kwnames[] = {
7890 (char *) "self", NULL
7891 };
7892
7893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 {
7904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7915 bool result;
7916 PyObject * obj0 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 {
7932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7933 }
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7941 PyObject *resultobj;
7942 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7943 long arg2 ;
7944 bool result;
7945 PyObject * obj0 = 0 ;
7946 PyObject * obj1 = 0 ;
7947 char *kwnames[] = {
7948 (char *) "self",(char *) "flag", NULL
7949 };
7950
7951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7954 arg2 = (long)SWIG_As_long(obj1);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 {
7957 PyThreadState* __tstate = wxPyBeginAllowThreads();
7958 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7959
7960 wxPyEndAllowThreads(__tstate);
7961 if (PyErr_Occurred()) SWIG_fail;
7962 }
7963 {
7964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7965 }
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj;
7974 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7975 wxColour *result;
7976 PyObject * obj0 = 0 ;
7977 char *kwnames[] = {
7978 (char *) "self", NULL
7979 };
7980
7981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7984 {
7985 PyThreadState* __tstate = wxPyBeginAllowThreads();
7986 {
7987 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7988 result = (wxColour *) &_result_ref;
7989 }
7990
7991 wxPyEndAllowThreads(__tstate);
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj;
8003 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8004 wxColour *result;
8005 PyObject * obj0 = 0 ;
8006 char *kwnames[] = {
8007 (char *) "self", NULL
8008 };
8009
8010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
8011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 {
8016 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
8017 result = (wxColour *) &_result_ref;
8018 }
8019
8020 wxPyEndAllowThreads(__tstate);
8021 if (PyErr_Occurred()) SWIG_fail;
8022 }
8023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
8024 return resultobj;
8025 fail:
8026 return NULL;
8027 }
8028
8029
8030 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8033 wxFont *result;
8034 PyObject * obj0 = 0 ;
8035 char *kwnames[] = {
8036 (char *) "self", NULL
8037 };
8038
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
8040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 {
8045 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
8046 result = (wxFont *) &_result_ref;
8047 }
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 {
8053 wxFont* resultptr = new wxFont(*result);
8054 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
8055 }
8056 return resultobj;
8057 fail:
8058 return NULL;
8059 }
8060
8061
8062 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
8063 PyObject *resultobj;
8064 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8065 int result;
8066 PyObject * obj0 = 0 ;
8067 char *kwnames[] = {
8068 (char *) "self", NULL
8069 };
8070
8071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
8072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8074 {
8075 PyThreadState* __tstate = wxPyBeginAllowThreads();
8076 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_From_int((int)result);
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
8089 PyObject *resultobj;
8090 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8091 wxArrayInt *result;
8092 PyObject * obj0 = 0 ;
8093 char *kwnames[] = {
8094 (char *) "self", NULL
8095 };
8096
8097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
8098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 {
8103 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
8104 result = (wxArrayInt *) &_result_ref;
8105 }
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 {
8111 resultobj = PyList_New(0);
8112 size_t idx;
8113 for (idx = 0; idx < result->GetCount(); idx += 1) {
8114 PyObject* val = PyInt_FromLong( result->Item(idx) );
8115 PyList_Append(resultobj, val);
8116 Py_DECREF(val);
8117 }
8118 }
8119 return resultobj;
8120 fail:
8121 return NULL;
8122 }
8123
8124
8125 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8126 PyObject *resultobj;
8127 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8128 long result;
8129 PyObject * obj0 = 0 ;
8130 char *kwnames[] = {
8131 (char *) "self", NULL
8132 };
8133
8134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
8135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8137 {
8138 PyThreadState* __tstate = wxPyBeginAllowThreads();
8139 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
8140
8141 wxPyEndAllowThreads(__tstate);
8142 if (PyErr_Occurred()) SWIG_fail;
8143 }
8144 resultobj = SWIG_From_long((long)result);
8145 return resultobj;
8146 fail:
8147 return NULL;
8148 }
8149
8150
8151 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8152 PyObject *resultobj;
8153 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8154 long result;
8155 PyObject * obj0 = 0 ;
8156 char *kwnames[] = {
8157 (char *) "self", NULL
8158 };
8159
8160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
8161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 resultobj = SWIG_From_long((long)result);
8171 return resultobj;
8172 fail:
8173 return NULL;
8174 }
8175
8176
8177 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8180 long result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "self", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8189 {
8190 PyThreadState* __tstate = wxPyBeginAllowThreads();
8191 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
8192
8193 wxPyEndAllowThreads(__tstate);
8194 if (PyErr_Occurred()) SWIG_fail;
8195 }
8196 resultobj = SWIG_From_long((long)result);
8197 return resultobj;
8198 fail:
8199 return NULL;
8200 }
8201
8202
8203 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
8204 PyObject *resultobj;
8205 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8206 long result;
8207 PyObject * obj0 = 0 ;
8208 char *kwnames[] = {
8209 (char *) "self", NULL
8210 };
8211
8212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
8213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (long)((wxTextAttr const *)arg1)->GetFlags();
8218
8219 wxPyEndAllowThreads(__tstate);
8220 if (PyErr_Occurred()) SWIG_fail;
8221 }
8222 resultobj = SWIG_From_long((long)result);
8223 return resultobj;
8224 fail:
8225 return NULL;
8226 }
8227
8228
8229 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8230 PyObject *resultobj;
8231 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8232 bool result;
8233 PyObject * obj0 = 0 ;
8234 char *kwnames[] = {
8235 (char *) "self", NULL
8236 };
8237
8238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8241 {
8242 PyThreadState* __tstate = wxPyBeginAllowThreads();
8243 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8244
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 {
8249 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8250 }
8251 return resultobj;
8252 fail:
8253 return NULL;
8254 }
8255
8256
8257 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8258 PyObject *resultobj;
8259 wxTextAttr *arg1 = 0 ;
8260 wxTextAttr *arg2 = 0 ;
8261 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8262 wxTextAttr result;
8263 PyObject * obj0 = 0 ;
8264 PyObject * obj1 = 0 ;
8265 PyObject * obj2 = 0 ;
8266 char *kwnames[] = {
8267 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8268 };
8269
8270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8272 SWIG_POINTER_EXCEPTION | 0)) == -1)
8273 SWIG_fail;
8274 if (arg1 == NULL) {
8275 PyErr_SetString(PyExc_TypeError,"null reference");
8276 SWIG_fail;
8277 }
8278 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8279 SWIG_POINTER_EXCEPTION | 0)) == -1)
8280 SWIG_fail;
8281 if (arg2 == NULL) {
8282 PyErr_SetString(PyExc_TypeError,"null reference");
8283 SWIG_fail;
8284 }
8285 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8287 {
8288 PyThreadState* __tstate = wxPyBeginAllowThreads();
8289 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8290
8291 wxPyEndAllowThreads(__tstate);
8292 if (PyErr_Occurred()) SWIG_fail;
8293 }
8294 {
8295 wxTextAttr * resultptr;
8296 resultptr = new wxTextAttr((wxTextAttr &) result);
8297 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8298 }
8299 return resultobj;
8300 fail:
8301 return NULL;
8302 }
8303
8304
8305 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8306 PyObject *obj;
8307 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8308 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8309 Py_INCREF(obj);
8310 return Py_BuildValue((char *)"");
8311 }
8312 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj;
8314 wxWindow *arg1 = (wxWindow *) 0 ;
8315 int arg2 = (int) -1 ;
8316 wxString const &arg3_defvalue = wxPyEmptyString ;
8317 wxString *arg3 = (wxString *) &arg3_defvalue ;
8318 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8319 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8320 wxSize const &arg5_defvalue = wxDefaultSize ;
8321 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8322 long arg6 = (long) 0 ;
8323 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8324 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8325 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8326 wxString *arg8 = (wxString *) &arg8_defvalue ;
8327 wxTextCtrl *result;
8328 bool temp3 = false ;
8329 wxPoint temp4 ;
8330 wxSize temp5 ;
8331 bool temp8 = false ;
8332 PyObject * obj0 = 0 ;
8333 PyObject * obj1 = 0 ;
8334 PyObject * obj2 = 0 ;
8335 PyObject * obj3 = 0 ;
8336 PyObject * obj4 = 0 ;
8337 PyObject * obj5 = 0 ;
8338 PyObject * obj6 = 0 ;
8339 PyObject * obj7 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8347 if (obj1) {
8348 arg2 = (int)SWIG_As_int(obj1);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 if (obj2) {
8352 {
8353 arg3 = wxString_in_helper(obj2);
8354 if (arg3 == NULL) SWIG_fail;
8355 temp3 = true;
8356 }
8357 }
8358 if (obj3) {
8359 {
8360 arg4 = &temp4;
8361 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8362 }
8363 }
8364 if (obj4) {
8365 {
8366 arg5 = &temp5;
8367 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8368 }
8369 }
8370 if (obj5) {
8371 arg6 = (long)SWIG_As_long(obj5);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 if (obj6) {
8375 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8376 SWIG_POINTER_EXCEPTION | 0)) == -1)
8377 SWIG_fail;
8378 if (arg7 == NULL) {
8379 PyErr_SetString(PyExc_TypeError,"null reference");
8380 SWIG_fail;
8381 }
8382 }
8383 if (obj7) {
8384 {
8385 arg8 = wxString_in_helper(obj7);
8386 if (arg8 == NULL) SWIG_fail;
8387 temp8 = true;
8388 }
8389 }
8390 {
8391 if (!wxPyCheckForApp()) SWIG_fail;
8392 PyThreadState* __tstate = wxPyBeginAllowThreads();
8393 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8394
8395 wxPyEndAllowThreads(__tstate);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 }
8398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8399 {
8400 if (temp3)
8401 delete arg3;
8402 }
8403 {
8404 if (temp8)
8405 delete arg8;
8406 }
8407 return resultobj;
8408 fail:
8409 {
8410 if (temp3)
8411 delete arg3;
8412 }
8413 {
8414 if (temp8)
8415 delete arg8;
8416 }
8417 return NULL;
8418 }
8419
8420
8421 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8422 PyObject *resultobj;
8423 wxTextCtrl *result;
8424 char *kwnames[] = {
8425 NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8429 {
8430 if (!wxPyCheckForApp()) SWIG_fail;
8431 PyThreadState* __tstate = wxPyBeginAllowThreads();
8432 result = (wxTextCtrl *)new wxTextCtrl();
8433
8434 wxPyEndAllowThreads(__tstate);
8435 if (PyErr_Occurred()) SWIG_fail;
8436 }
8437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8438 return resultobj;
8439 fail:
8440 return NULL;
8441 }
8442
8443
8444 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8445 PyObject *resultobj;
8446 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8447 wxWindow *arg2 = (wxWindow *) 0 ;
8448 int arg3 = (int) -1 ;
8449 wxString const &arg4_defvalue = wxPyEmptyString ;
8450 wxString *arg4 = (wxString *) &arg4_defvalue ;
8451 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8452 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8453 wxSize const &arg6_defvalue = wxDefaultSize ;
8454 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8455 long arg7 = (long) 0 ;
8456 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8457 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8458 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8459 wxString *arg9 = (wxString *) &arg9_defvalue ;
8460 bool result;
8461 bool temp4 = false ;
8462 wxPoint temp5 ;
8463 wxSize temp6 ;
8464 bool temp9 = false ;
8465 PyObject * obj0 = 0 ;
8466 PyObject * obj1 = 0 ;
8467 PyObject * obj2 = 0 ;
8468 PyObject * obj3 = 0 ;
8469 PyObject * obj4 = 0 ;
8470 PyObject * obj5 = 0 ;
8471 PyObject * obj6 = 0 ;
8472 PyObject * obj7 = 0 ;
8473 PyObject * obj8 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8483 if (obj2) {
8484 arg3 = (int)SWIG_As_int(obj2);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 if (obj3) {
8488 {
8489 arg4 = wxString_in_helper(obj3);
8490 if (arg4 == NULL) SWIG_fail;
8491 temp4 = true;
8492 }
8493 }
8494 if (obj4) {
8495 {
8496 arg5 = &temp5;
8497 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8498 }
8499 }
8500 if (obj5) {
8501 {
8502 arg6 = &temp6;
8503 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8504 }
8505 }
8506 if (obj6) {
8507 arg7 = (long)SWIG_As_long(obj6);
8508 if (PyErr_Occurred()) SWIG_fail;
8509 }
8510 if (obj7) {
8511 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8512 SWIG_POINTER_EXCEPTION | 0)) == -1)
8513 SWIG_fail;
8514 if (arg8 == NULL) {
8515 PyErr_SetString(PyExc_TypeError,"null reference");
8516 SWIG_fail;
8517 }
8518 }
8519 if (obj8) {
8520 {
8521 arg9 = wxString_in_helper(obj8);
8522 if (arg9 == NULL) SWIG_fail;
8523 temp9 = true;
8524 }
8525 }
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 {
8534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8535 }
8536 {
8537 if (temp4)
8538 delete arg4;
8539 }
8540 {
8541 if (temp9)
8542 delete arg9;
8543 }
8544 return resultobj;
8545 fail:
8546 {
8547 if (temp4)
8548 delete arg4;
8549 }
8550 {
8551 if (temp9)
8552 delete arg9;
8553 }
8554 return NULL;
8555 }
8556
8557
8558 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8559 PyObject *resultobj;
8560 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8561 wxString result;
8562 PyObject * obj0 = 0 ;
8563 char *kwnames[] = {
8564 (char *) "self", NULL
8565 };
8566
8567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8570 {
8571 PyThreadState* __tstate = wxPyBeginAllowThreads();
8572 result = ((wxTextCtrl const *)arg1)->GetValue();
8573
8574 wxPyEndAllowThreads(__tstate);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 {
8578 #if wxUSE_UNICODE
8579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8580 #else
8581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8582 #endif
8583 }
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj;
8592 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8593 wxString *arg2 = 0 ;
8594 bool temp2 = false ;
8595 PyObject * obj0 = 0 ;
8596 PyObject * obj1 = 0 ;
8597 char *kwnames[] = {
8598 (char *) "self",(char *) "value", NULL
8599 };
8600
8601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8604 {
8605 arg2 = wxString_in_helper(obj1);
8606 if (arg2 == NULL) SWIG_fail;
8607 temp2 = true;
8608 }
8609 {
8610 PyThreadState* __tstate = wxPyBeginAllowThreads();
8611 (arg1)->SetValue((wxString const &)*arg2);
8612
8613 wxPyEndAllowThreads(__tstate);
8614 if (PyErr_Occurred()) SWIG_fail;
8615 }
8616 Py_INCREF(Py_None); resultobj = Py_None;
8617 {
8618 if (temp2)
8619 delete arg2;
8620 }
8621 return resultobj;
8622 fail:
8623 {
8624 if (temp2)
8625 delete arg2;
8626 }
8627 return NULL;
8628 }
8629
8630
8631 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8632 PyObject *resultobj;
8633 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8634 long arg2 ;
8635 long arg3 ;
8636 wxString result;
8637 PyObject * obj0 = 0 ;
8638 PyObject * obj1 = 0 ;
8639 PyObject * obj2 = 0 ;
8640 char *kwnames[] = {
8641 (char *) "self",(char *) "from",(char *) "to", NULL
8642 };
8643
8644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8647 arg2 = (long)SWIG_As_long(obj1);
8648 if (PyErr_Occurred()) SWIG_fail;
8649 arg3 = (long)SWIG_As_long(obj2);
8650 if (PyErr_Occurred()) SWIG_fail;
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 {
8659 #if wxUSE_UNICODE
8660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8661 #else
8662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8663 #endif
8664 }
8665 return resultobj;
8666 fail:
8667 return NULL;
8668 }
8669
8670
8671 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8672 PyObject *resultobj;
8673 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8674 long arg2 ;
8675 int result;
8676 PyObject * obj0 = 0 ;
8677 PyObject * obj1 = 0 ;
8678 char *kwnames[] = {
8679 (char *) "self",(char *) "lineNo", NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8685 arg2 = (long)SWIG_As_long(obj1);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 {
8688 PyThreadState* __tstate = wxPyBeginAllowThreads();
8689 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8690
8691 wxPyEndAllowThreads(__tstate);
8692 if (PyErr_Occurred()) SWIG_fail;
8693 }
8694 resultobj = SWIG_From_int((int)result);
8695 return resultobj;
8696 fail:
8697 return NULL;
8698 }
8699
8700
8701 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8702 PyObject *resultobj;
8703 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8704 long arg2 ;
8705 wxString result;
8706 PyObject * obj0 = 0 ;
8707 PyObject * obj1 = 0 ;
8708 char *kwnames[] = {
8709 (char *) "self",(char *) "lineNo", NULL
8710 };
8711
8712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8715 arg2 = (long)SWIG_As_long(obj1);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 {
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 {
8725 #if wxUSE_UNICODE
8726 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8727 #else
8728 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8729 #endif
8730 }
8731 return resultobj;
8732 fail:
8733 return NULL;
8734 }
8735
8736
8737 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8738 PyObject *resultobj;
8739 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8740 int result;
8741 PyObject * obj0 = 0 ;
8742 char *kwnames[] = {
8743 (char *) "self", NULL
8744 };
8745
8746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8749 {
8750 PyThreadState* __tstate = wxPyBeginAllowThreads();
8751 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8752
8753 wxPyEndAllowThreads(__tstate);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 resultobj = SWIG_From_int((int)result);
8757 return resultobj;
8758 fail:
8759 return NULL;
8760 }
8761
8762
8763 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8764 PyObject *resultobj;
8765 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8766 bool result;
8767 PyObject * obj0 = 0 ;
8768 char *kwnames[] = {
8769 (char *) "self", NULL
8770 };
8771
8772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",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 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8778
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 {
8783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8784 }
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8794 bool result;
8795 PyObject * obj0 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "self", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 {
8811 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8812 }
8813 return resultobj;
8814 fail:
8815 return NULL;
8816 }
8817
8818
8819 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8820 PyObject *resultobj;
8821 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8822 bool result;
8823 PyObject * obj0 = 0 ;
8824 char *kwnames[] = {
8825 (char *) "self", NULL
8826 };
8827
8828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8831 {
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8834
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 {
8839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8840 }
8841 return resultobj;
8842 fail:
8843 return NULL;
8844 }
8845
8846
8847 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8848 PyObject *resultobj;
8849 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8850 bool result;
8851 PyObject * obj0 = 0 ;
8852 char *kwnames[] = {
8853 (char *) "self", NULL
8854 };
8855
8856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8859 {
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8862
8863 wxPyEndAllowThreads(__tstate);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 {
8867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8868 }
8869 return resultobj;
8870 fail:
8871 return NULL;
8872 }
8873
8874
8875 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8878 long *arg2 = (long *) 0 ;
8879 long *arg3 = (long *) 0 ;
8880 long temp2 ;
8881 int res2 = 0 ;
8882 long temp3 ;
8883 int res3 = 0 ;
8884 PyObject * obj0 = 0 ;
8885 char *kwnames[] = {
8886 (char *) "self", NULL
8887 };
8888
8889 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8890 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 Py_INCREF(Py_None); resultobj = Py_None;
8902 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8903 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8904 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8905 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj;
8914 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8915 wxString result;
8916 PyObject * obj0 = 0 ;
8917 char *kwnames[] = {
8918 (char *) "self", NULL
8919 };
8920
8921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8924 {
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8927
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 {
8932 #if wxUSE_UNICODE
8933 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8934 #else
8935 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8936 #endif
8937 }
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8947 PyObject * obj0 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 (arg1)->Clear();
8958
8959 wxPyEndAllowThreads(__tstate);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 Py_INCREF(Py_None); resultobj = Py_None;
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8972 long arg2 ;
8973 long arg3 ;
8974 wxString *arg4 = 0 ;
8975 bool temp4 = false ;
8976 PyObject * obj0 = 0 ;
8977 PyObject * obj1 = 0 ;
8978 PyObject * obj2 = 0 ;
8979 PyObject * obj3 = 0 ;
8980 char *kwnames[] = {
8981 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8982 };
8983
8984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8987 arg2 = (long)SWIG_As_long(obj1);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 arg3 = (long)SWIG_As_long(obj2);
8990 if (PyErr_Occurred()) SWIG_fail;
8991 {
8992 arg4 = wxString_in_helper(obj3);
8993 if (arg4 == NULL) SWIG_fail;
8994 temp4 = true;
8995 }
8996 {
8997 PyThreadState* __tstate = wxPyBeginAllowThreads();
8998 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8999
9000 wxPyEndAllowThreads(__tstate);
9001 if (PyErr_Occurred()) SWIG_fail;
9002 }
9003 Py_INCREF(Py_None); resultobj = Py_None;
9004 {
9005 if (temp4)
9006 delete arg4;
9007 }
9008 return resultobj;
9009 fail:
9010 {
9011 if (temp4)
9012 delete arg4;
9013 }
9014 return NULL;
9015 }
9016
9017
9018 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
9019 PyObject *resultobj;
9020 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9021 long arg2 ;
9022 long arg3 ;
9023 PyObject * obj0 = 0 ;
9024 PyObject * obj1 = 0 ;
9025 PyObject * obj2 = 0 ;
9026 char *kwnames[] = {
9027 (char *) "self",(char *) "from",(char *) "to", NULL
9028 };
9029
9030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
9031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9033 arg2 = (long)SWIG_As_long(obj1);
9034 if (PyErr_Occurred()) SWIG_fail;
9035 arg3 = (long)SWIG_As_long(obj2);
9036 if (PyErr_Occurred()) SWIG_fail;
9037 {
9038 PyThreadState* __tstate = wxPyBeginAllowThreads();
9039 (arg1)->Remove(arg2,arg3);
9040
9041 wxPyEndAllowThreads(__tstate);
9042 if (PyErr_Occurred()) SWIG_fail;
9043 }
9044 Py_INCREF(Py_None); resultobj = Py_None;
9045 return resultobj;
9046 fail:
9047 return NULL;
9048 }
9049
9050
9051 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
9052 PyObject *resultobj;
9053 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9054 wxString *arg2 = 0 ;
9055 bool result;
9056 bool temp2 = false ;
9057 PyObject * obj0 = 0 ;
9058 PyObject * obj1 = 0 ;
9059 char *kwnames[] = {
9060 (char *) "self",(char *) "file", NULL
9061 };
9062
9063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
9064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9066 {
9067 arg2 = wxString_in_helper(obj1);
9068 if (arg2 == NULL) SWIG_fail;
9069 temp2 = true;
9070 }
9071 {
9072 PyThreadState* __tstate = wxPyBeginAllowThreads();
9073 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
9074
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 {
9079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9080 }
9081 {
9082 if (temp2)
9083 delete arg2;
9084 }
9085 return resultobj;
9086 fail:
9087 {
9088 if (temp2)
9089 delete arg2;
9090 }
9091 return NULL;
9092 }
9093
9094
9095 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
9096 PyObject *resultobj;
9097 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9098 wxString const &arg2_defvalue = wxPyEmptyString ;
9099 wxString *arg2 = (wxString *) &arg2_defvalue ;
9100 bool result;
9101 bool temp2 = false ;
9102 PyObject * obj0 = 0 ;
9103 PyObject * obj1 = 0 ;
9104 char *kwnames[] = {
9105 (char *) "self",(char *) "file", NULL
9106 };
9107
9108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
9109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9111 if (obj1) {
9112 {
9113 arg2 = wxString_in_helper(obj1);
9114 if (arg2 == NULL) SWIG_fail;
9115 temp2 = true;
9116 }
9117 }
9118 {
9119 PyThreadState* __tstate = wxPyBeginAllowThreads();
9120 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
9121
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 {
9126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9127 }
9128 {
9129 if (temp2)
9130 delete arg2;
9131 }
9132 return resultobj;
9133 fail:
9134 {
9135 if (temp2)
9136 delete arg2;
9137 }
9138 return NULL;
9139 }
9140
9141
9142 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
9143 PyObject *resultobj;
9144 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9145 PyObject * obj0 = 0 ;
9146 char *kwnames[] = {
9147 (char *) "self", NULL
9148 };
9149
9150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
9151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9153 {
9154 PyThreadState* __tstate = wxPyBeginAllowThreads();
9155 (arg1)->MarkDirty();
9156
9157 wxPyEndAllowThreads(__tstate);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 }
9160 Py_INCREF(Py_None); resultobj = Py_None;
9161 return resultobj;
9162 fail:
9163 return NULL;
9164 }
9165
9166
9167 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
9168 PyObject *resultobj;
9169 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9170 PyObject * obj0 = 0 ;
9171 char *kwnames[] = {
9172 (char *) "self", NULL
9173 };
9174
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9178 {
9179 PyThreadState* __tstate = wxPyBeginAllowThreads();
9180 (arg1)->DiscardEdits();
9181
9182 wxPyEndAllowThreads(__tstate);
9183 if (PyErr_Occurred()) SWIG_fail;
9184 }
9185 Py_INCREF(Py_None); resultobj = Py_None;
9186 return resultobj;
9187 fail:
9188 return NULL;
9189 }
9190
9191
9192 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
9193 PyObject *resultobj;
9194 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9195 unsigned long arg2 ;
9196 PyObject * obj0 = 0 ;
9197 PyObject * obj1 = 0 ;
9198 char *kwnames[] = {
9199 (char *) "self",(char *) "len", NULL
9200 };
9201
9202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
9203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9205 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 (arg1)->SetMaxLength(arg2);
9210
9211 wxPyEndAllowThreads(__tstate);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 }
9214 Py_INCREF(Py_None); resultobj = Py_None;
9215 return resultobj;
9216 fail:
9217 return NULL;
9218 }
9219
9220
9221 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9224 wxString *arg2 = 0 ;
9225 bool temp2 = false ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char *kwnames[] = {
9229 (char *) "self",(char *) "text", NULL
9230 };
9231
9232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9235 {
9236 arg2 = wxString_in_helper(obj1);
9237 if (arg2 == NULL) SWIG_fail;
9238 temp2 = true;
9239 }
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 (arg1)->WriteText((wxString const &)*arg2);
9243
9244 wxPyEndAllowThreads(__tstate);
9245 if (PyErr_Occurred()) SWIG_fail;
9246 }
9247 Py_INCREF(Py_None); resultobj = Py_None;
9248 {
9249 if (temp2)
9250 delete arg2;
9251 }
9252 return resultobj;
9253 fail:
9254 {
9255 if (temp2)
9256 delete arg2;
9257 }
9258 return NULL;
9259 }
9260
9261
9262 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9263 PyObject *resultobj;
9264 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9265 wxString *arg2 = 0 ;
9266 bool temp2 = false ;
9267 PyObject * obj0 = 0 ;
9268 PyObject * obj1 = 0 ;
9269 char *kwnames[] = {
9270 (char *) "self",(char *) "text", NULL
9271 };
9272
9273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9276 {
9277 arg2 = wxString_in_helper(obj1);
9278 if (arg2 == NULL) SWIG_fail;
9279 temp2 = true;
9280 }
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 (arg1)->AppendText((wxString const &)*arg2);
9284
9285 wxPyEndAllowThreads(__tstate);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 }
9288 Py_INCREF(Py_None); resultobj = Py_None;
9289 {
9290 if (temp2)
9291 delete arg2;
9292 }
9293 return resultobj;
9294 fail:
9295 {
9296 if (temp2)
9297 delete arg2;
9298 }
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9306 wxKeyEvent *arg2 = 0 ;
9307 bool result;
9308 PyObject * obj0 = 0 ;
9309 PyObject * obj1 = 0 ;
9310 char *kwnames[] = {
9311 (char *) "self",(char *) "event", NULL
9312 };
9313
9314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9318 SWIG_POINTER_EXCEPTION | 0)) == -1)
9319 SWIG_fail;
9320 if (arg2 == NULL) {
9321 PyErr_SetString(PyExc_TypeError,"null reference");
9322 SWIG_fail;
9323 }
9324 {
9325 PyThreadState* __tstate = wxPyBeginAllowThreads();
9326 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9327
9328 wxPyEndAllowThreads(__tstate);
9329 if (PyErr_Occurred()) SWIG_fail;
9330 }
9331 {
9332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9333 }
9334 return resultobj;
9335 fail:
9336 return NULL;
9337 }
9338
9339
9340 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9341 PyObject *resultobj;
9342 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9343 long arg2 ;
9344 long arg3 ;
9345 wxTextAttr *arg4 = 0 ;
9346 bool result;
9347 PyObject * obj0 = 0 ;
9348 PyObject * obj1 = 0 ;
9349 PyObject * obj2 = 0 ;
9350 PyObject * obj3 = 0 ;
9351 char *kwnames[] = {
9352 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9353 };
9354
9355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9358 arg2 = (long)SWIG_As_long(obj1);
9359 if (PyErr_Occurred()) SWIG_fail;
9360 arg3 = (long)SWIG_As_long(obj2);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1)
9364 SWIG_fail;
9365 if (arg4 == NULL) {
9366 PyErr_SetString(PyExc_TypeError,"null reference");
9367 SWIG_fail;
9368 }
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 {
9377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9378 }
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9388 long arg2 ;
9389 wxTextAttr *arg3 = 0 ;
9390 bool result;
9391 PyObject * obj0 = 0 ;
9392 PyObject * obj1 = 0 ;
9393 PyObject * obj2 = 0 ;
9394 char *kwnames[] = {
9395 (char *) "self",(char *) "position",(char *) "style", NULL
9396 };
9397
9398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9401 arg2 = (long)SWIG_As_long(obj1);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9404 SWIG_POINTER_EXCEPTION | 0)) == -1)
9405 SWIG_fail;
9406 if (arg3 == NULL) {
9407 PyErr_SetString(PyExc_TypeError,"null reference");
9408 SWIG_fail;
9409 }
9410 {
9411 PyThreadState* __tstate = wxPyBeginAllowThreads();
9412 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9413
9414 wxPyEndAllowThreads(__tstate);
9415 if (PyErr_Occurred()) SWIG_fail;
9416 }
9417 {
9418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9419 }
9420 return resultobj;
9421 fail:
9422 return NULL;
9423 }
9424
9425
9426 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9427 PyObject *resultobj;
9428 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9429 wxTextAttr *arg2 = 0 ;
9430 bool result;
9431 PyObject * obj0 = 0 ;
9432 PyObject * obj1 = 0 ;
9433 char *kwnames[] = {
9434 (char *) "self",(char *) "style", NULL
9435 };
9436
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9441 SWIG_POINTER_EXCEPTION | 0)) == -1)
9442 SWIG_fail;
9443 if (arg2 == NULL) {
9444 PyErr_SetString(PyExc_TypeError,"null reference");
9445 SWIG_fail;
9446 }
9447 {
9448 PyThreadState* __tstate = wxPyBeginAllowThreads();
9449 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9450
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 {
9455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9456 }
9457 return resultobj;
9458 fail:
9459 return NULL;
9460 }
9461
9462
9463 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9464 PyObject *resultobj;
9465 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9466 wxTextAttr *result;
9467 PyObject * obj0 = 0 ;
9468 char *kwnames[] = {
9469 (char *) "self", NULL
9470 };
9471
9472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9475 {
9476 PyThreadState* __tstate = wxPyBeginAllowThreads();
9477 {
9478 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9479 result = (wxTextAttr *) &_result_ref;
9480 }
9481
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj;
9494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9495 long arg2 ;
9496 long arg3 ;
9497 long result;
9498 PyObject * obj0 = 0 ;
9499 PyObject * obj1 = 0 ;
9500 PyObject * obj2 = 0 ;
9501 char *kwnames[] = {
9502 (char *) "self",(char *) "x",(char *) "y", NULL
9503 };
9504
9505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9508 arg2 = (long)SWIG_As_long(obj1);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 arg3 = (long)SWIG_As_long(obj2);
9511 if (PyErr_Occurred()) SWIG_fail;
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9515
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 resultobj = SWIG_From_long((long)result);
9520 return resultobj;
9521 fail:
9522 return NULL;
9523 }
9524
9525
9526 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9527 PyObject *resultobj;
9528 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9529 long arg2 ;
9530 long *arg3 = (long *) 0 ;
9531 long *arg4 = (long *) 0 ;
9532 long temp3 ;
9533 int res3 = 0 ;
9534 long temp4 ;
9535 int res4 = 0 ;
9536 PyObject * obj0 = 0 ;
9537 PyObject * obj1 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "self",(char *) "pos", NULL
9540 };
9541
9542 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9543 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9547 arg2 = (long)SWIG_As_long(obj1);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 {
9550 PyThreadState* __tstate = wxPyBeginAllowThreads();
9551 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9552
9553 wxPyEndAllowThreads(__tstate);
9554 if (PyErr_Occurred()) SWIG_fail;
9555 }
9556 Py_INCREF(Py_None); resultobj = Py_None;
9557 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9558 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9559 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9560 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9561 return resultobj;
9562 fail:
9563 return NULL;
9564 }
9565
9566
9567 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9568 PyObject *resultobj;
9569 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9570 long arg2 ;
9571 PyObject * obj0 = 0 ;
9572 PyObject * obj1 = 0 ;
9573 char *kwnames[] = {
9574 (char *) "self",(char *) "pos", NULL
9575 };
9576
9577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9580 arg2 = (long)SWIG_As_long(obj1);
9581 if (PyErr_Occurred()) SWIG_fail;
9582 {
9583 PyThreadState* __tstate = wxPyBeginAllowThreads();
9584 (arg1)->ShowPosition(arg2);
9585
9586 wxPyEndAllowThreads(__tstate);
9587 if (PyErr_Occurred()) SWIG_fail;
9588 }
9589 Py_INCREF(Py_None); resultobj = Py_None;
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj;
9598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9599 wxPoint *arg2 = 0 ;
9600 long *arg3 = (long *) 0 ;
9601 long *arg4 = (long *) 0 ;
9602 int result;
9603 wxPoint temp2 ;
9604 long temp3 ;
9605 int res3 = 0 ;
9606 long temp4 ;
9607 int res4 = 0 ;
9608 PyObject * obj0 = 0 ;
9609 PyObject * obj1 = 0 ;
9610 char *kwnames[] = {
9611 (char *) "self",(char *) "pt", NULL
9612 };
9613
9614 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9615 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9619 {
9620 arg2 = &temp2;
9621 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9622 }
9623 {
9624 PyThreadState* __tstate = wxPyBeginAllowThreads();
9625 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9626
9627 wxPyEndAllowThreads(__tstate);
9628 if (PyErr_Occurred()) SWIG_fail;
9629 }
9630 resultobj = SWIG_From_int((int)result);
9631 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9632 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9633 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9634 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9644 wxPoint *arg2 = 0 ;
9645 long *arg3 = (long *) 0 ;
9646 int result;
9647 wxPoint temp2 ;
9648 long temp3 ;
9649 int res3 = 0 ;
9650 PyObject * obj0 = 0 ;
9651 PyObject * obj1 = 0 ;
9652 char *kwnames[] = {
9653 (char *) "self",(char *) "pt", NULL
9654 };
9655
9656 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9660 {
9661 arg2 = &temp2;
9662 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9663 }
9664 {
9665 PyThreadState* __tstate = wxPyBeginAllowThreads();
9666 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9667
9668 wxPyEndAllowThreads(__tstate);
9669 if (PyErr_Occurred()) SWIG_fail;
9670 }
9671 resultobj = SWIG_From_int((int)result);
9672 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9673 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9674 return resultobj;
9675 fail:
9676 return NULL;
9677 }
9678
9679
9680 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj;
9682 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9683 PyObject * obj0 = 0 ;
9684 char *kwnames[] = {
9685 (char *) "self", NULL
9686 };
9687
9688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 (arg1)->Copy();
9694
9695 wxPyEndAllowThreads(__tstate);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 }
9698 Py_INCREF(Py_None); resultobj = Py_None;
9699 return resultobj;
9700 fail:
9701 return NULL;
9702 }
9703
9704
9705 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj;
9707 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9708 PyObject * obj0 = 0 ;
9709 char *kwnames[] = {
9710 (char *) "self", NULL
9711 };
9712
9713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 (arg1)->Cut();
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 Py_INCREF(Py_None); resultobj = Py_None;
9724 return resultobj;
9725 fail:
9726 return NULL;
9727 }
9728
9729
9730 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9731 PyObject *resultobj;
9732 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9733 PyObject * obj0 = 0 ;
9734 char *kwnames[] = {
9735 (char *) "self", NULL
9736 };
9737
9738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9741 {
9742 PyThreadState* __tstate = wxPyBeginAllowThreads();
9743 (arg1)->Paste();
9744
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 Py_INCREF(Py_None); resultobj = Py_None;
9749 return resultobj;
9750 fail:
9751 return NULL;
9752 }
9753
9754
9755 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9756 PyObject *resultobj;
9757 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9758 bool result;
9759 PyObject * obj0 = 0 ;
9760 char *kwnames[] = {
9761 (char *) "self", NULL
9762 };
9763
9764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9770
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 {
9775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9776 }
9777 return resultobj;
9778 fail:
9779 return NULL;
9780 }
9781
9782
9783 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9784 PyObject *resultobj;
9785 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9786 bool result;
9787 PyObject * obj0 = 0 ;
9788 char *kwnames[] = {
9789 (char *) "self", NULL
9790 };
9791
9792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9798
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 {
9803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9804 }
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj;
9813 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9814 bool result;
9815 PyObject * obj0 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9823 {
9824 PyThreadState* __tstate = wxPyBeginAllowThreads();
9825 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9826
9827 wxPyEndAllowThreads(__tstate);
9828 if (PyErr_Occurred()) SWIG_fail;
9829 }
9830 {
9831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9832 }
9833 return resultobj;
9834 fail:
9835 return NULL;
9836 }
9837
9838
9839 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9840 PyObject *resultobj;
9841 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9842 PyObject * obj0 = 0 ;
9843 char *kwnames[] = {
9844 (char *) "self", NULL
9845 };
9846
9847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 (arg1)->Undo();
9853
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 Py_INCREF(Py_None); resultobj = Py_None;
9858 return resultobj;
9859 fail:
9860 return NULL;
9861 }
9862
9863
9864 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9865 PyObject *resultobj;
9866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 (arg1)->Redo();
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 Py_INCREF(Py_None); resultobj = Py_None;
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9892 bool result;
9893 PyObject * obj0 = 0 ;
9894 char *kwnames[] = {
9895 (char *) "self", NULL
9896 };
9897
9898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 {
9909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9910 }
9911 return resultobj;
9912 fail:
9913 return NULL;
9914 }
9915
9916
9917 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9918 PyObject *resultobj;
9919 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9920 bool result;
9921 PyObject * obj0 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 {
9937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9938 }
9939 return resultobj;
9940 fail:
9941 return NULL;
9942 }
9943
9944
9945 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9946 PyObject *resultobj;
9947 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9948 long arg2 ;
9949 PyObject * obj0 = 0 ;
9950 PyObject * obj1 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self",(char *) "pos", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9958 arg2 = (long)SWIG_As_long(obj1);
9959 if (PyErr_Occurred()) SWIG_fail;
9960 {
9961 PyThreadState* __tstate = wxPyBeginAllowThreads();
9962 (arg1)->SetInsertionPoint(arg2);
9963
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 Py_INCREF(Py_None); resultobj = Py_None;
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj;
9976 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9977 PyObject * obj0 = 0 ;
9978 char *kwnames[] = {
9979 (char *) "self", NULL
9980 };
9981
9982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9985 {
9986 PyThreadState* __tstate = wxPyBeginAllowThreads();
9987 (arg1)->SetInsertionPointEnd();
9988
9989 wxPyEndAllowThreads(__tstate);
9990 if (PyErr_Occurred()) SWIG_fail;
9991 }
9992 Py_INCREF(Py_None); resultobj = Py_None;
9993 return resultobj;
9994 fail:
9995 return NULL;
9996 }
9997
9998
9999 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj;
10001 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10002 long result;
10003 PyObject * obj0 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = SWIG_From_long((long)result);
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10028 long result;
10029 PyObject * obj0 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 {
10038 PyThreadState* __tstate = wxPyBeginAllowThreads();
10039 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
10040
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 resultobj = SWIG_From_long((long)result);
10045 return resultobj;
10046 fail:
10047 return NULL;
10048 }
10049
10050
10051 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
10052 PyObject *resultobj;
10053 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10054 long arg2 ;
10055 long arg3 ;
10056 PyObject * obj0 = 0 ;
10057 PyObject * obj1 = 0 ;
10058 PyObject * obj2 = 0 ;
10059 char *kwnames[] = {
10060 (char *) "self",(char *) "from",(char *) "to", NULL
10061 };
10062
10063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10066 arg2 = (long)SWIG_As_long(obj1);
10067 if (PyErr_Occurred()) SWIG_fail;
10068 arg3 = (long)SWIG_As_long(obj2);
10069 if (PyErr_Occurred()) SWIG_fail;
10070 {
10071 PyThreadState* __tstate = wxPyBeginAllowThreads();
10072 (arg1)->SetSelection(arg2,arg3);
10073
10074 wxPyEndAllowThreads(__tstate);
10075 if (PyErr_Occurred()) SWIG_fail;
10076 }
10077 Py_INCREF(Py_None); resultobj = Py_None;
10078 return resultobj;
10079 fail:
10080 return NULL;
10081 }
10082
10083
10084 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
10085 PyObject *resultobj;
10086 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10087 PyObject * obj0 = 0 ;
10088 char *kwnames[] = {
10089 (char *) "self", NULL
10090 };
10091
10092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
10093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10095 {
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 (arg1)->SelectAll();
10098
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 Py_INCREF(Py_None); resultobj = Py_None;
10103 return resultobj;
10104 fail:
10105 return NULL;
10106 }
10107
10108
10109 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj;
10111 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10112 bool arg2 ;
10113 PyObject * obj0 = 0 ;
10114 PyObject * obj1 = 0 ;
10115 char *kwnames[] = {
10116 (char *) "self",(char *) "editable", NULL
10117 };
10118
10119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
10120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10122 arg2 = (bool)SWIG_As_bool(obj1);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 {
10125 PyThreadState* __tstate = wxPyBeginAllowThreads();
10126 (arg1)->SetEditable(arg2);
10127
10128 wxPyEndAllowThreads(__tstate);
10129 if (PyErr_Occurred()) SWIG_fail;
10130 }
10131 Py_INCREF(Py_None); resultobj = Py_None;
10132 return resultobj;
10133 fail:
10134 return NULL;
10135 }
10136
10137
10138 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
10139 PyObject *resultobj;
10140 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10141 wxString *arg2 = 0 ;
10142 bool temp2 = false ;
10143 PyObject * obj0 = 0 ;
10144 PyObject * obj1 = 0 ;
10145 char *kwnames[] = {
10146 (char *) "self",(char *) "text", NULL
10147 };
10148
10149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
10150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10152 {
10153 arg2 = wxString_in_helper(obj1);
10154 if (arg2 == NULL) SWIG_fail;
10155 temp2 = true;
10156 }
10157 {
10158 PyThreadState* __tstate = wxPyBeginAllowThreads();
10159 wxTextCtrl_write(arg1,(wxString const &)*arg2);
10160
10161 wxPyEndAllowThreads(__tstate);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 Py_INCREF(Py_None); resultobj = Py_None;
10165 {
10166 if (temp2)
10167 delete arg2;
10168 }
10169 return resultobj;
10170 fail:
10171 {
10172 if (temp2)
10173 delete arg2;
10174 }
10175 return NULL;
10176 }
10177
10178
10179 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10182 long arg2 ;
10183 long arg3 ;
10184 wxString result;
10185 PyObject * obj0 = 0 ;
10186 PyObject * obj1 = 0 ;
10187 PyObject * obj2 = 0 ;
10188 char *kwnames[] = {
10189 (char *) "self",(char *) "from",(char *) "to", NULL
10190 };
10191
10192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10195 arg2 = (long)SWIG_As_long(obj1);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 arg3 = (long)SWIG_As_long(obj2);
10198 if (PyErr_Occurred()) SWIG_fail;
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 {
10207 #if wxUSE_UNICODE
10208 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10209 #else
10210 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10211 #endif
10212 }
10213 return resultobj;
10214 fail:
10215 return NULL;
10216 }
10217
10218
10219 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10220 PyObject *resultobj;
10221 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10222 wxVisualAttributes result;
10223 PyObject * obj0 = 0 ;
10224 char *kwnames[] = {
10225 (char *) "variant", NULL
10226 };
10227
10228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10229 if (obj0) {
10230 arg1 = (int)SWIG_As_int(obj0);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 {
10234 if (!wxPyCheckForApp()) SWIG_fail;
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10237
10238 wxPyEndAllowThreads(__tstate);
10239 if (PyErr_Occurred()) SWIG_fail;
10240 }
10241 {
10242 wxVisualAttributes * resultptr;
10243 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10244 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10245 }
10246 return resultobj;
10247 fail:
10248 return NULL;
10249 }
10250
10251
10252 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10253 PyObject *obj;
10254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10255 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10256 Py_INCREF(obj);
10257 return Py_BuildValue((char *)"");
10258 }
10259 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10260 PyObject *resultobj;
10261 int arg1 ;
10262 wxMouseEvent *arg2 = 0 ;
10263 long arg3 ;
10264 long arg4 ;
10265 wxTextUrlEvent *result;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269 PyObject * obj3 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10275 arg1 = (int)SWIG_As_int(obj0);
10276 if (PyErr_Occurred()) SWIG_fail;
10277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10278 SWIG_POINTER_EXCEPTION | 0)) == -1)
10279 SWIG_fail;
10280 if (arg2 == NULL) {
10281 PyErr_SetString(PyExc_TypeError,"null reference");
10282 SWIG_fail;
10283 }
10284 arg3 = (long)SWIG_As_long(obj2);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 arg4 = (long)SWIG_As_long(obj3);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10291
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10296 return resultobj;
10297 fail:
10298 return NULL;
10299 }
10300
10301
10302 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10303 PyObject *resultobj;
10304 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10305 wxMouseEvent *result;
10306 PyObject * obj0 = 0 ;
10307 char *kwnames[] = {
10308 (char *) "self", NULL
10309 };
10310
10311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10314 {
10315 PyThreadState* __tstate = wxPyBeginAllowThreads();
10316 {
10317 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10318 result = (wxMouseEvent *) &_result_ref;
10319 }
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10325 return resultobj;
10326 fail:
10327 return NULL;
10328 }
10329
10330
10331 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10334 long result;
10335 PyObject * obj0 = 0 ;
10336 char *kwnames[] = {
10337 (char *) "self", NULL
10338 };
10339
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10346
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 resultobj = SWIG_From_long((long)result);
10351 return resultobj;
10352 fail:
10353 return NULL;
10354 }
10355
10356
10357 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10358 PyObject *resultobj;
10359 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10360 long result;
10361 PyObject * obj0 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 resultobj = SWIG_From_long((long)result);
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10384 PyObject *obj;
10385 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10386 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10387 Py_INCREF(obj);
10388 return Py_BuildValue((char *)"");
10389 }
10390 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10391 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10392 return 1;
10393 }
10394
10395
10396 static PyObject *_wrap_ScrollBarNameStr_get() {
10397 PyObject *pyobj;
10398
10399 {
10400 #if wxUSE_UNICODE
10401 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10402 #else
10403 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10404 #endif
10405 }
10406 return pyobj;
10407 }
10408
10409
10410 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10411 PyObject *resultobj;
10412 wxWindow *arg1 = (wxWindow *) 0 ;
10413 int arg2 = (int) -1 ;
10414 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10415 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10416 wxSize const &arg4_defvalue = wxDefaultSize ;
10417 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10418 long arg5 = (long) wxSB_HORIZONTAL ;
10419 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10420 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10421 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10422 wxString *arg7 = (wxString *) &arg7_defvalue ;
10423 wxScrollBar *result;
10424 wxPoint temp3 ;
10425 wxSize temp4 ;
10426 bool temp7 = false ;
10427 PyObject * obj0 = 0 ;
10428 PyObject * obj1 = 0 ;
10429 PyObject * obj2 = 0 ;
10430 PyObject * obj3 = 0 ;
10431 PyObject * obj4 = 0 ;
10432 PyObject * obj5 = 0 ;
10433 PyObject * obj6 = 0 ;
10434 char *kwnames[] = {
10435 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10436 };
10437
10438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10441 if (obj1) {
10442 arg2 = (int)SWIG_As_int(obj1);
10443 if (PyErr_Occurred()) SWIG_fail;
10444 }
10445 if (obj2) {
10446 {
10447 arg3 = &temp3;
10448 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10449 }
10450 }
10451 if (obj3) {
10452 {
10453 arg4 = &temp4;
10454 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10455 }
10456 }
10457 if (obj4) {
10458 arg5 = (long)SWIG_As_long(obj4);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 if (obj5) {
10462 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10463 SWIG_POINTER_EXCEPTION | 0)) == -1)
10464 SWIG_fail;
10465 if (arg6 == NULL) {
10466 PyErr_SetString(PyExc_TypeError,"null reference");
10467 SWIG_fail;
10468 }
10469 }
10470 if (obj6) {
10471 {
10472 arg7 = wxString_in_helper(obj6);
10473 if (arg7 == NULL) SWIG_fail;
10474 temp7 = true;
10475 }
10476 }
10477 {
10478 if (!wxPyCheckForApp()) SWIG_fail;
10479 PyThreadState* __tstate = wxPyBeginAllowThreads();
10480 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10481
10482 wxPyEndAllowThreads(__tstate);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10486 {
10487 if (temp7)
10488 delete arg7;
10489 }
10490 return resultobj;
10491 fail:
10492 {
10493 if (temp7)
10494 delete arg7;
10495 }
10496 return NULL;
10497 }
10498
10499
10500 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10501 PyObject *resultobj;
10502 wxScrollBar *result;
10503 char *kwnames[] = {
10504 NULL
10505 };
10506
10507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10508 {
10509 if (!wxPyCheckForApp()) SWIG_fail;
10510 PyThreadState* __tstate = wxPyBeginAllowThreads();
10511 result = (wxScrollBar *)new wxScrollBar();
10512
10513 wxPyEndAllowThreads(__tstate);
10514 if (PyErr_Occurred()) SWIG_fail;
10515 }
10516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10517 return resultobj;
10518 fail:
10519 return NULL;
10520 }
10521
10522
10523 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10524 PyObject *resultobj;
10525 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10526 wxWindow *arg2 = (wxWindow *) 0 ;
10527 int arg3 = (int) -1 ;
10528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10530 wxSize const &arg5_defvalue = wxDefaultSize ;
10531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10532 long arg6 = (long) wxSB_HORIZONTAL ;
10533 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10534 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10535 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10536 wxString *arg8 = (wxString *) &arg8_defvalue ;
10537 bool result;
10538 wxPoint temp4 ;
10539 wxSize temp5 ;
10540 bool temp8 = false ;
10541 PyObject * obj0 = 0 ;
10542 PyObject * obj1 = 0 ;
10543 PyObject * obj2 = 0 ;
10544 PyObject * obj3 = 0 ;
10545 PyObject * obj4 = 0 ;
10546 PyObject * obj5 = 0 ;
10547 PyObject * obj6 = 0 ;
10548 PyObject * obj7 = 0 ;
10549 char *kwnames[] = {
10550 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10551 };
10552
10553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10556 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10558 if (obj2) {
10559 arg3 = (int)SWIG_As_int(obj2);
10560 if (PyErr_Occurred()) SWIG_fail;
10561 }
10562 if (obj3) {
10563 {
10564 arg4 = &temp4;
10565 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10566 }
10567 }
10568 if (obj4) {
10569 {
10570 arg5 = &temp5;
10571 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10572 }
10573 }
10574 if (obj5) {
10575 arg6 = (long)SWIG_As_long(obj5);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 if (obj6) {
10579 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10580 SWIG_POINTER_EXCEPTION | 0)) == -1)
10581 SWIG_fail;
10582 if (arg7 == NULL) {
10583 PyErr_SetString(PyExc_TypeError,"null reference");
10584 SWIG_fail;
10585 }
10586 }
10587 if (obj7) {
10588 {
10589 arg8 = wxString_in_helper(obj7);
10590 if (arg8 == NULL) SWIG_fail;
10591 temp8 = true;
10592 }
10593 }
10594 {
10595 PyThreadState* __tstate = wxPyBeginAllowThreads();
10596 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10597
10598 wxPyEndAllowThreads(__tstate);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 {
10602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10603 }
10604 {
10605 if (temp8)
10606 delete arg8;
10607 }
10608 return resultobj;
10609 fail:
10610 {
10611 if (temp8)
10612 delete arg8;
10613 }
10614 return NULL;
10615 }
10616
10617
10618 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj;
10620 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10621 int result;
10622 PyObject * obj0 = 0 ;
10623 char *kwnames[] = {
10624 (char *) "self", NULL
10625 };
10626
10627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10630 {
10631 PyThreadState* __tstate = wxPyBeginAllowThreads();
10632 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10633
10634 wxPyEndAllowThreads(__tstate);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 }
10637 resultobj = SWIG_From_int((int)result);
10638 return resultobj;
10639 fail:
10640 return NULL;
10641 }
10642
10643
10644 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10645 PyObject *resultobj;
10646 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10647 int result;
10648 PyObject * obj0 = 0 ;
10649 char *kwnames[] = {
10650 (char *) "self", NULL
10651 };
10652
10653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10656 {
10657 PyThreadState* __tstate = wxPyBeginAllowThreads();
10658 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10659
10660 wxPyEndAllowThreads(__tstate);
10661 if (PyErr_Occurred()) SWIG_fail;
10662 }
10663 resultobj = SWIG_From_int((int)result);
10664 return resultobj;
10665 fail:
10666 return NULL;
10667 }
10668
10669
10670 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10671 PyObject *resultobj;
10672 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10673 int result;
10674 PyObject * obj0 = 0 ;
10675 char *kwnames[] = {
10676 (char *) "self", NULL
10677 };
10678
10679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10682 {
10683 PyThreadState* __tstate = wxPyBeginAllowThreads();
10684 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10685
10686 wxPyEndAllowThreads(__tstate);
10687 if (PyErr_Occurred()) SWIG_fail;
10688 }
10689 resultobj = SWIG_From_int((int)result);
10690 return resultobj;
10691 fail:
10692 return NULL;
10693 }
10694
10695
10696 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10697 PyObject *resultobj;
10698 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10699 int result;
10700 PyObject * obj0 = 0 ;
10701 char *kwnames[] = {
10702 (char *) "self", NULL
10703 };
10704
10705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10708 {
10709 PyThreadState* __tstate = wxPyBeginAllowThreads();
10710 result = (int)((wxScrollBar const *)arg1)->GetRange();
10711
10712 wxPyEndAllowThreads(__tstate);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 resultobj = SWIG_From_int((int)result);
10716 return resultobj;
10717 fail:
10718 return NULL;
10719 }
10720
10721
10722 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10723 PyObject *resultobj;
10724 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10725 bool result;
10726 PyObject * obj0 = 0 ;
10727 char *kwnames[] = {
10728 (char *) "self", NULL
10729 };
10730
10731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj;
10752 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10753 int arg2 ;
10754 PyObject * obj0 = 0 ;
10755 PyObject * obj1 = 0 ;
10756 char *kwnames[] = {
10757 (char *) "self",(char *) "viewStart", NULL
10758 };
10759
10760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10763 arg2 = (int)SWIG_As_int(obj1);
10764 if (PyErr_Occurred()) SWIG_fail;
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 (arg1)->SetThumbPosition(arg2);
10768
10769 wxPyEndAllowThreads(__tstate);
10770 if (PyErr_Occurred()) SWIG_fail;
10771 }
10772 Py_INCREF(Py_None); resultobj = Py_None;
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj;
10781 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10782 int arg2 ;
10783 int arg3 ;
10784 int arg4 ;
10785 int arg5 ;
10786 bool arg6 = (bool) true ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 PyObject * obj2 = 0 ;
10790 PyObject * obj3 = 0 ;
10791 PyObject * obj4 = 0 ;
10792 PyObject * obj5 = 0 ;
10793 char *kwnames[] = {
10794 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10795 };
10796
10797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10800 arg2 = (int)SWIG_As_int(obj1);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 arg3 = (int)SWIG_As_int(obj2);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 arg4 = (int)SWIG_As_int(obj3);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 arg5 = (int)SWIG_As_int(obj4);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 if (obj5) {
10809 arg6 = (bool)SWIG_As_bool(obj5);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10815
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 Py_INCREF(Py_None); resultobj = Py_None;
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj;
10828 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10829 wxVisualAttributes result;
10830 PyObject * obj0 = 0 ;
10831 char *kwnames[] = {
10832 (char *) "variant", NULL
10833 };
10834
10835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10836 if (obj0) {
10837 arg1 = (int)SWIG_As_int(obj0);
10838 if (PyErr_Occurred()) SWIG_fail;
10839 }
10840 {
10841 if (!wxPyCheckForApp()) SWIG_fail;
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10844
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 {
10849 wxVisualAttributes * resultptr;
10850 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10852 }
10853 return resultobj;
10854 fail:
10855 return NULL;
10856 }
10857
10858
10859 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10860 PyObject *obj;
10861 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10862 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10863 Py_INCREF(obj);
10864 return Py_BuildValue((char *)"");
10865 }
10866 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10867 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10868 return 1;
10869 }
10870
10871
10872 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10873 PyObject *pyobj;
10874
10875 {
10876 #if wxUSE_UNICODE
10877 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10878 #else
10879 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10880 #endif
10881 }
10882 return pyobj;
10883 }
10884
10885
10886 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10887 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10888 return 1;
10889 }
10890
10891
10892 static PyObject *_wrap_SpinCtrlNameStr_get() {
10893 PyObject *pyobj;
10894
10895 {
10896 #if wxUSE_UNICODE
10897 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10898 #else
10899 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10900 #endif
10901 }
10902 return pyobj;
10903 }
10904
10905
10906 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10907 PyObject *resultobj;
10908 wxWindow *arg1 = (wxWindow *) 0 ;
10909 int arg2 = (int) -1 ;
10910 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10911 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10912 wxSize const &arg4_defvalue = wxDefaultSize ;
10913 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10914 long arg5 = (long) wxSP_HORIZONTAL ;
10915 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10916 wxString *arg6 = (wxString *) &arg6_defvalue ;
10917 wxSpinButton *result;
10918 wxPoint temp3 ;
10919 wxSize temp4 ;
10920 bool temp6 = false ;
10921 PyObject * obj0 = 0 ;
10922 PyObject * obj1 = 0 ;
10923 PyObject * obj2 = 0 ;
10924 PyObject * obj3 = 0 ;
10925 PyObject * obj4 = 0 ;
10926 PyObject * obj5 = 0 ;
10927 char *kwnames[] = {
10928 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10929 };
10930
10931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10934 if (obj1) {
10935 arg2 = (int)SWIG_As_int(obj1);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 if (obj2) {
10939 {
10940 arg3 = &temp3;
10941 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10942 }
10943 }
10944 if (obj3) {
10945 {
10946 arg4 = &temp4;
10947 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10948 }
10949 }
10950 if (obj4) {
10951 arg5 = (long)SWIG_As_long(obj4);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 if (obj5) {
10955 {
10956 arg6 = wxString_in_helper(obj5);
10957 if (arg6 == NULL) SWIG_fail;
10958 temp6 = true;
10959 }
10960 }
10961 {
10962 if (!wxPyCheckForApp()) SWIG_fail;
10963 PyThreadState* __tstate = wxPyBeginAllowThreads();
10964 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10965
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10970 {
10971 if (temp6)
10972 delete arg6;
10973 }
10974 return resultobj;
10975 fail:
10976 {
10977 if (temp6)
10978 delete arg6;
10979 }
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxSpinButton *result;
10987 char *kwnames[] = {
10988 NULL
10989 };
10990
10991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10992 {
10993 if (!wxPyCheckForApp()) SWIG_fail;
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (wxSpinButton *)new wxSpinButton();
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11010 wxWindow *arg2 = (wxWindow *) 0 ;
11011 int arg3 = (int) -1 ;
11012 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11013 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11014 wxSize const &arg5_defvalue = wxDefaultSize ;
11015 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11016 long arg6 = (long) wxSP_HORIZONTAL ;
11017 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
11018 wxString *arg7 = (wxString *) &arg7_defvalue ;
11019 bool result;
11020 wxPoint temp4 ;
11021 wxSize temp5 ;
11022 bool temp7 = false ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11025 PyObject * obj2 = 0 ;
11026 PyObject * obj3 = 0 ;
11027 PyObject * obj4 = 0 ;
11028 PyObject * obj5 = 0 ;
11029 PyObject * obj6 = 0 ;
11030 char *kwnames[] = {
11031 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
11032 };
11033
11034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11039 if (obj2) {
11040 arg3 = (int)SWIG_As_int(obj2);
11041 if (PyErr_Occurred()) SWIG_fail;
11042 }
11043 if (obj3) {
11044 {
11045 arg4 = &temp4;
11046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11047 }
11048 }
11049 if (obj4) {
11050 {
11051 arg5 = &temp5;
11052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11053 }
11054 }
11055 if (obj5) {
11056 arg6 = (long)SWIG_As_long(obj5);
11057 if (PyErr_Occurred()) SWIG_fail;
11058 }
11059 if (obj6) {
11060 {
11061 arg7 = wxString_in_helper(obj6);
11062 if (arg7 == NULL) SWIG_fail;
11063 temp7 = true;
11064 }
11065 }
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
11069
11070 wxPyEndAllowThreads(__tstate);
11071 if (PyErr_Occurred()) SWIG_fail;
11072 }
11073 {
11074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11075 }
11076 {
11077 if (temp7)
11078 delete arg7;
11079 }
11080 return resultobj;
11081 fail:
11082 {
11083 if (temp7)
11084 delete arg7;
11085 }
11086 return NULL;
11087 }
11088
11089
11090 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11091 PyObject *resultobj;
11092 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11093 int result;
11094 PyObject * obj0 = 0 ;
11095 char *kwnames[] = {
11096 (char *) "self", NULL
11097 };
11098
11099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
11100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
11104 result = (int)((wxSpinButton const *)arg1)->GetValue();
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 resultobj = SWIG_From_int((int)result);
11110 return resultobj;
11111 fail:
11112 return NULL;
11113 }
11114
11115
11116 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11117 PyObject *resultobj;
11118 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11119 int result;
11120 PyObject * obj0 = 0 ;
11121 char *kwnames[] = {
11122 (char *) "self", NULL
11123 };
11124
11125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
11126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11128 {
11129 PyThreadState* __tstate = wxPyBeginAllowThreads();
11130 result = (int)((wxSpinButton const *)arg1)->GetMin();
11131
11132 wxPyEndAllowThreads(__tstate);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 }
11135 resultobj = SWIG_From_int((int)result);
11136 return resultobj;
11137 fail:
11138 return NULL;
11139 }
11140
11141
11142 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11143 PyObject *resultobj;
11144 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11145 int result;
11146 PyObject * obj0 = 0 ;
11147 char *kwnames[] = {
11148 (char *) "self", NULL
11149 };
11150
11151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
11152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 result = (int)((wxSpinButton const *)arg1)->GetMax();
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 resultobj = SWIG_From_int((int)result);
11162 return resultobj;
11163 fail:
11164 return NULL;
11165 }
11166
11167
11168 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11169 PyObject *resultobj;
11170 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11171 int arg2 ;
11172 PyObject * obj0 = 0 ;
11173 PyObject * obj1 = 0 ;
11174 char *kwnames[] = {
11175 (char *) "self",(char *) "val", NULL
11176 };
11177
11178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11181 arg2 = (int)SWIG_As_int(obj1);
11182 if (PyErr_Occurred()) SWIG_fail;
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 (arg1)->SetValue(arg2);
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 Py_INCREF(Py_None); resultobj = Py_None;
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11198 PyObject *resultobj;
11199 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11200 int arg2 ;
11201 PyObject * obj0 = 0 ;
11202 PyObject * obj1 = 0 ;
11203 char *kwnames[] = {
11204 (char *) "self",(char *) "minVal", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11210 arg2 = (int)SWIG_As_int(obj1);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 {
11213 PyThreadState* __tstate = wxPyBeginAllowThreads();
11214 (arg1)->SetMin(arg2);
11215
11216 wxPyEndAllowThreads(__tstate);
11217 if (PyErr_Occurred()) SWIG_fail;
11218 }
11219 Py_INCREF(Py_None); resultobj = Py_None;
11220 return resultobj;
11221 fail:
11222 return NULL;
11223 }
11224
11225
11226 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11227 PyObject *resultobj;
11228 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11229 int arg2 ;
11230 PyObject * obj0 = 0 ;
11231 PyObject * obj1 = 0 ;
11232 char *kwnames[] = {
11233 (char *) "self",(char *) "maxVal", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11239 arg2 = (int)SWIG_As_int(obj1);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 {
11242 PyThreadState* __tstate = wxPyBeginAllowThreads();
11243 (arg1)->SetMax(arg2);
11244
11245 wxPyEndAllowThreads(__tstate);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 }
11248 Py_INCREF(Py_None); resultobj = Py_None;
11249 return resultobj;
11250 fail:
11251 return NULL;
11252 }
11253
11254
11255 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11258 int arg2 ;
11259 int arg3 ;
11260 PyObject * obj0 = 0 ;
11261 PyObject * obj1 = 0 ;
11262 PyObject * obj2 = 0 ;
11263 char *kwnames[] = {
11264 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11265 };
11266
11267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11270 arg2 = (int)SWIG_As_int(obj1);
11271 if (PyErr_Occurred()) SWIG_fail;
11272 arg3 = (int)SWIG_As_int(obj2);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 {
11275 PyThreadState* __tstate = wxPyBeginAllowThreads();
11276 (arg1)->SetRange(arg2,arg3);
11277
11278 wxPyEndAllowThreads(__tstate);
11279 if (PyErr_Occurred()) SWIG_fail;
11280 }
11281 Py_INCREF(Py_None); resultobj = Py_None;
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11289 PyObject *resultobj;
11290 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11291 bool result;
11292 PyObject * obj0 = 0 ;
11293 char *kwnames[] = {
11294 (char *) "self", NULL
11295 };
11296
11297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11300 {
11301 PyThreadState* __tstate = wxPyBeginAllowThreads();
11302 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11303
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 {
11308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11309 }
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj;
11318 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11319 wxVisualAttributes result;
11320 PyObject * obj0 = 0 ;
11321 char *kwnames[] = {
11322 (char *) "variant", NULL
11323 };
11324
11325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11326 if (obj0) {
11327 arg1 = (int)SWIG_As_int(obj0);
11328 if (PyErr_Occurred()) SWIG_fail;
11329 }
11330 {
11331 if (!wxPyCheckForApp()) SWIG_fail;
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11334
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 {
11339 wxVisualAttributes * resultptr;
11340 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11342 }
11343 return resultobj;
11344 fail:
11345 return NULL;
11346 }
11347
11348
11349 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11350 PyObject *obj;
11351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11352 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11353 Py_INCREF(obj);
11354 return Py_BuildValue((char *)"");
11355 }
11356 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11357 PyObject *resultobj;
11358 wxWindow *arg1 = (wxWindow *) 0 ;
11359 int arg2 = (int) -1 ;
11360 wxString const &arg3_defvalue = wxPyEmptyString ;
11361 wxString *arg3 = (wxString *) &arg3_defvalue ;
11362 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11363 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11364 wxSize const &arg5_defvalue = wxDefaultSize ;
11365 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11366 long arg6 = (long) wxSP_ARROW_KEYS ;
11367 int arg7 = (int) 0 ;
11368 int arg8 = (int) 100 ;
11369 int arg9 = (int) 0 ;
11370 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11371 wxString *arg10 = (wxString *) &arg10_defvalue ;
11372 wxSpinCtrl *result;
11373 bool temp3 = false ;
11374 wxPoint temp4 ;
11375 wxSize temp5 ;
11376 bool temp10 = false ;
11377 PyObject * obj0 = 0 ;
11378 PyObject * obj1 = 0 ;
11379 PyObject * obj2 = 0 ;
11380 PyObject * obj3 = 0 ;
11381 PyObject * obj4 = 0 ;
11382 PyObject * obj5 = 0 ;
11383 PyObject * obj6 = 0 ;
11384 PyObject * obj7 = 0 ;
11385 PyObject * obj8 = 0 ;
11386 PyObject * obj9 = 0 ;
11387 char *kwnames[] = {
11388 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11389 };
11390
11391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11394 if (obj1) {
11395 arg2 = (int)SWIG_As_int(obj1);
11396 if (PyErr_Occurred()) SWIG_fail;
11397 }
11398 if (obj2) {
11399 {
11400 arg3 = wxString_in_helper(obj2);
11401 if (arg3 == NULL) SWIG_fail;
11402 temp3 = true;
11403 }
11404 }
11405 if (obj3) {
11406 {
11407 arg4 = &temp4;
11408 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11409 }
11410 }
11411 if (obj4) {
11412 {
11413 arg5 = &temp5;
11414 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11415 }
11416 }
11417 if (obj5) {
11418 arg6 = (long)SWIG_As_long(obj5);
11419 if (PyErr_Occurred()) SWIG_fail;
11420 }
11421 if (obj6) {
11422 arg7 = (int)SWIG_As_int(obj6);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 if (obj7) {
11426 arg8 = (int)SWIG_As_int(obj7);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 }
11429 if (obj8) {
11430 arg9 = (int)SWIG_As_int(obj8);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 if (obj9) {
11434 {
11435 arg10 = wxString_in_helper(obj9);
11436 if (arg10 == NULL) SWIG_fail;
11437 temp10 = true;
11438 }
11439 }
11440 {
11441 if (!wxPyCheckForApp()) SWIG_fail;
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11444
11445 wxPyEndAllowThreads(__tstate);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11449 {
11450 if (temp3)
11451 delete arg3;
11452 }
11453 {
11454 if (temp10)
11455 delete arg10;
11456 }
11457 return resultobj;
11458 fail:
11459 {
11460 if (temp3)
11461 delete arg3;
11462 }
11463 {
11464 if (temp10)
11465 delete arg10;
11466 }
11467 return NULL;
11468 }
11469
11470
11471 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11472 PyObject *resultobj;
11473 wxSpinCtrl *result;
11474 char *kwnames[] = {
11475 NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11479 {
11480 if (!wxPyCheckForApp()) SWIG_fail;
11481 PyThreadState* __tstate = wxPyBeginAllowThreads();
11482 result = (wxSpinCtrl *)new wxSpinCtrl();
11483
11484 wxPyEndAllowThreads(__tstate);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11495 PyObject *resultobj;
11496 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11497 wxWindow *arg2 = (wxWindow *) 0 ;
11498 int arg3 = (int) -1 ;
11499 wxString const &arg4_defvalue = wxPyEmptyString ;
11500 wxString *arg4 = (wxString *) &arg4_defvalue ;
11501 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11502 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11503 wxSize const &arg6_defvalue = wxDefaultSize ;
11504 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11505 long arg7 = (long) wxSP_ARROW_KEYS ;
11506 int arg8 = (int) 0 ;
11507 int arg9 = (int) 100 ;
11508 int arg10 = (int) 0 ;
11509 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11510 wxString *arg11 = (wxString *) &arg11_defvalue ;
11511 bool result;
11512 bool temp4 = false ;
11513 wxPoint temp5 ;
11514 wxSize temp6 ;
11515 bool temp11 = false ;
11516 PyObject * obj0 = 0 ;
11517 PyObject * obj1 = 0 ;
11518 PyObject * obj2 = 0 ;
11519 PyObject * obj3 = 0 ;
11520 PyObject * obj4 = 0 ;
11521 PyObject * obj5 = 0 ;
11522 PyObject * obj6 = 0 ;
11523 PyObject * obj7 = 0 ;
11524 PyObject * obj8 = 0 ;
11525 PyObject * obj9 = 0 ;
11526 PyObject * obj10 = 0 ;
11527 char *kwnames[] = {
11528 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11529 };
11530
11531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11536 if (obj2) {
11537 arg3 = (int)SWIG_As_int(obj2);
11538 if (PyErr_Occurred()) SWIG_fail;
11539 }
11540 if (obj3) {
11541 {
11542 arg4 = wxString_in_helper(obj3);
11543 if (arg4 == NULL) SWIG_fail;
11544 temp4 = true;
11545 }
11546 }
11547 if (obj4) {
11548 {
11549 arg5 = &temp5;
11550 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11551 }
11552 }
11553 if (obj5) {
11554 {
11555 arg6 = &temp6;
11556 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11557 }
11558 }
11559 if (obj6) {
11560 arg7 = (long)SWIG_As_long(obj6);
11561 if (PyErr_Occurred()) SWIG_fail;
11562 }
11563 if (obj7) {
11564 arg8 = (int)SWIG_As_int(obj7);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 }
11567 if (obj8) {
11568 arg9 = (int)SWIG_As_int(obj8);
11569 if (PyErr_Occurred()) SWIG_fail;
11570 }
11571 if (obj9) {
11572 arg10 = (int)SWIG_As_int(obj9);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 if (obj10) {
11576 {
11577 arg11 = wxString_in_helper(obj10);
11578 if (arg11 == NULL) SWIG_fail;
11579 temp11 = true;
11580 }
11581 }
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11585
11586 wxPyEndAllowThreads(__tstate);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 {
11590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11591 }
11592 {
11593 if (temp4)
11594 delete arg4;
11595 }
11596 {
11597 if (temp11)
11598 delete arg11;
11599 }
11600 return resultobj;
11601 fail:
11602 {
11603 if (temp4)
11604 delete arg4;
11605 }
11606 {
11607 if (temp11)
11608 delete arg11;
11609 }
11610 return NULL;
11611 }
11612
11613
11614 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj;
11616 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11617 int result;
11618 PyObject * obj0 = 0 ;
11619 char *kwnames[] = {
11620 (char *) "self", NULL
11621 };
11622
11623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11626 {
11627 PyThreadState* __tstate = wxPyBeginAllowThreads();
11628 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11629
11630 wxPyEndAllowThreads(__tstate);
11631 if (PyErr_Occurred()) SWIG_fail;
11632 }
11633 resultobj = SWIG_From_int((int)result);
11634 return resultobj;
11635 fail:
11636 return NULL;
11637 }
11638
11639
11640 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11641 PyObject *resultobj;
11642 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11643 int arg2 ;
11644 PyObject * obj0 = 0 ;
11645 PyObject * obj1 = 0 ;
11646 char *kwnames[] = {
11647 (char *) "self",(char *) "value", NULL
11648 };
11649
11650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11653 arg2 = (int)SWIG_As_int(obj1);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 (arg1)->SetValue(arg2);
11658
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 Py_INCREF(Py_None); resultobj = Py_None;
11663 return resultobj;
11664 fail:
11665 return NULL;
11666 }
11667
11668
11669 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11670 PyObject *resultobj;
11671 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11672 wxString *arg2 = 0 ;
11673 bool temp2 = false ;
11674 PyObject * obj0 = 0 ;
11675 PyObject * obj1 = 0 ;
11676 char *kwnames[] = {
11677 (char *) "self",(char *) "text", NULL
11678 };
11679
11680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11683 {
11684 arg2 = wxString_in_helper(obj1);
11685 if (arg2 == NULL) SWIG_fail;
11686 temp2 = true;
11687 }
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 (arg1)->SetValue((wxString const &)*arg2);
11691
11692 wxPyEndAllowThreads(__tstate);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 }
11695 Py_INCREF(Py_None); resultobj = Py_None;
11696 {
11697 if (temp2)
11698 delete arg2;
11699 }
11700 return resultobj;
11701 fail:
11702 {
11703 if (temp2)
11704 delete arg2;
11705 }
11706 return NULL;
11707 }
11708
11709
11710 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11711 PyObject *resultobj;
11712 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11713 int arg2 ;
11714 int arg3 ;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 PyObject * obj2 = 0 ;
11718 char *kwnames[] = {
11719 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11720 };
11721
11722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11725 arg2 = (int)SWIG_As_int(obj1);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 arg3 = (int)SWIG_As_int(obj2);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 {
11730 PyThreadState* __tstate = wxPyBeginAllowThreads();
11731 (arg1)->SetRange(arg2,arg3);
11732
11733 wxPyEndAllowThreads(__tstate);
11734 if (PyErr_Occurred()) SWIG_fail;
11735 }
11736 Py_INCREF(Py_None); resultobj = Py_None;
11737 return resultobj;
11738 fail:
11739 return NULL;
11740 }
11741
11742
11743 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11744 PyObject *resultobj;
11745 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11746 int result;
11747 PyObject * obj0 = 0 ;
11748 char *kwnames[] = {
11749 (char *) "self", NULL
11750 };
11751
11752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11758
11759 wxPyEndAllowThreads(__tstate);
11760 if (PyErr_Occurred()) SWIG_fail;
11761 }
11762 resultobj = SWIG_From_int((int)result);
11763 return resultobj;
11764 fail:
11765 return NULL;
11766 }
11767
11768
11769 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11770 PyObject *resultobj;
11771 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11772 int result;
11773 PyObject * obj0 = 0 ;
11774 char *kwnames[] = {
11775 (char *) "self", NULL
11776 };
11777
11778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 resultobj = SWIG_From_int((int)result);
11789 return resultobj;
11790 fail:
11791 return NULL;
11792 }
11793
11794
11795 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11796 PyObject *resultobj;
11797 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11798 long arg2 ;
11799 long arg3 ;
11800 PyObject * obj0 = 0 ;
11801 PyObject * obj1 = 0 ;
11802 PyObject * obj2 = 0 ;
11803 char *kwnames[] = {
11804 (char *) "self",(char *) "from",(char *) "to", NULL
11805 };
11806
11807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11810 arg2 = (long)SWIG_As_long(obj1);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 arg3 = (long)SWIG_As_long(obj2);
11813 if (PyErr_Occurred()) SWIG_fail;
11814 {
11815 PyThreadState* __tstate = wxPyBeginAllowThreads();
11816 (arg1)->SetSelection(arg2,arg3);
11817
11818 wxPyEndAllowThreads(__tstate);
11819 if (PyErr_Occurred()) SWIG_fail;
11820 }
11821 Py_INCREF(Py_None); resultobj = Py_None;
11822 return resultobj;
11823 fail:
11824 return NULL;
11825 }
11826
11827
11828 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11829 PyObject *resultobj;
11830 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11831 wxVisualAttributes result;
11832 PyObject * obj0 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "variant", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11838 if (obj0) {
11839 arg1 = (int)SWIG_As_int(obj0);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 }
11842 {
11843 if (!wxPyCheckForApp()) SWIG_fail;
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 {
11851 wxVisualAttributes * resultptr;
11852 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11853 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11854 }
11855 return resultobj;
11856 fail:
11857 return NULL;
11858 }
11859
11860
11861 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11862 PyObject *obj;
11863 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11864 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11865 Py_INCREF(obj);
11866 return Py_BuildValue((char *)"");
11867 }
11868 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11869 PyObject *resultobj;
11870 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11871 int arg2 = (int) 0 ;
11872 wxSpinEvent *result;
11873 PyObject * obj0 = 0 ;
11874 PyObject * obj1 = 0 ;
11875 char *kwnames[] = {
11876 (char *) "commandType",(char *) "winid", NULL
11877 };
11878
11879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11880 if (obj0) {
11881 arg1 = (wxEventType)SWIG_As_int(obj0);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 }
11884 if (obj1) {
11885 arg2 = (int)SWIG_As_int(obj1);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 {
11889 PyThreadState* __tstate = wxPyBeginAllowThreads();
11890 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11891
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11896 return resultobj;
11897 fail:
11898 return NULL;
11899 }
11900
11901
11902 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11903 PyObject *resultobj;
11904 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11905 int result;
11906 PyObject * obj0 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self", NULL
11909 };
11910
11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11914 {
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11917
11918 wxPyEndAllowThreads(__tstate);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 resultobj = SWIG_From_int((int)result);
11922 return resultobj;
11923 fail:
11924 return NULL;
11925 }
11926
11927
11928 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11929 PyObject *resultobj;
11930 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11931 int arg2 ;
11932 PyObject * obj0 = 0 ;
11933 PyObject * obj1 = 0 ;
11934 char *kwnames[] = {
11935 (char *) "self",(char *) "pos", NULL
11936 };
11937
11938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11941 arg2 = (int)SWIG_As_int(obj1);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 (arg1)->SetPosition(arg2);
11946
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 Py_INCREF(Py_None); resultobj = Py_None;
11951 return resultobj;
11952 fail:
11953 return NULL;
11954 }
11955
11956
11957 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11958 PyObject *obj;
11959 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11960 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11961 Py_INCREF(obj);
11962 return Py_BuildValue((char *)"");
11963 }
11964 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11965 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11966 return 1;
11967 }
11968
11969
11970 static PyObject *_wrap_RadioBoxNameStr_get() {
11971 PyObject *pyobj;
11972
11973 {
11974 #if wxUSE_UNICODE
11975 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11976 #else
11977 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11978 #endif
11979 }
11980 return pyobj;
11981 }
11982
11983
11984 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11985 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11986 return 1;
11987 }
11988
11989
11990 static PyObject *_wrap_RadioButtonNameStr_get() {
11991 PyObject *pyobj;
11992
11993 {
11994 #if wxUSE_UNICODE
11995 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11996 #else
11997 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11998 #endif
11999 }
12000 return pyobj;
12001 }
12002
12003
12004 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj;
12006 wxWindow *arg1 = (wxWindow *) 0 ;
12007 int arg2 = (int) -1 ;
12008 wxString const &arg3_defvalue = wxPyEmptyString ;
12009 wxString *arg3 = (wxString *) &arg3_defvalue ;
12010 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12011 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12012 wxSize const &arg5_defvalue = wxDefaultSize ;
12013 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12014 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
12015 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
12016 int arg7 = (int) 0 ;
12017 long arg8 = (long) wxRA_HORIZONTAL ;
12018 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12019 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12020 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
12021 wxString *arg10 = (wxString *) &arg10_defvalue ;
12022 wxRadioBox *result;
12023 bool temp3 = false ;
12024 wxPoint temp4 ;
12025 wxSize temp5 ;
12026 bool temp6 = false ;
12027 bool temp10 = false ;
12028 PyObject * obj0 = 0 ;
12029 PyObject * obj1 = 0 ;
12030 PyObject * obj2 = 0 ;
12031 PyObject * obj3 = 0 ;
12032 PyObject * obj4 = 0 ;
12033 PyObject * obj5 = 0 ;
12034 PyObject * obj6 = 0 ;
12035 PyObject * obj7 = 0 ;
12036 PyObject * obj8 = 0 ;
12037 PyObject * obj9 = 0 ;
12038 char *kwnames[] = {
12039 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12040 };
12041
12042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12045 if (obj1) {
12046 arg2 = (int)SWIG_As_int(obj1);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 if (obj2) {
12050 {
12051 arg3 = wxString_in_helper(obj2);
12052 if (arg3 == NULL) SWIG_fail;
12053 temp3 = true;
12054 }
12055 }
12056 if (obj3) {
12057 {
12058 arg4 = &temp4;
12059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12060 }
12061 }
12062 if (obj4) {
12063 {
12064 arg5 = &temp5;
12065 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12066 }
12067 }
12068 if (obj5) {
12069 {
12070 if (! PySequence_Check(obj5)) {
12071 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12072 SWIG_fail;
12073 }
12074 arg6 = new wxArrayString;
12075 temp6 = true;
12076 int i, len=PySequence_Length(obj5);
12077 for (i=0; i<len; i++) {
12078 PyObject* item = PySequence_GetItem(obj5, i);
12079 #if wxUSE_UNICODE
12080 PyObject* str = PyObject_Unicode(item);
12081 #else
12082 PyObject* str = PyObject_Str(item);
12083 #endif
12084 if (PyErr_Occurred()) SWIG_fail;
12085 arg6->Add(Py2wxString(str));
12086 Py_DECREF(item);
12087 Py_DECREF(str);
12088 }
12089 }
12090 }
12091 if (obj6) {
12092 arg7 = (int)SWIG_As_int(obj6);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 if (obj7) {
12096 arg8 = (long)SWIG_As_long(obj7);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 if (obj8) {
12100 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12101 SWIG_POINTER_EXCEPTION | 0)) == -1)
12102 SWIG_fail;
12103 if (arg9 == NULL) {
12104 PyErr_SetString(PyExc_TypeError,"null reference");
12105 SWIG_fail;
12106 }
12107 }
12108 if (obj9) {
12109 {
12110 arg10 = wxString_in_helper(obj9);
12111 if (arg10 == NULL) SWIG_fail;
12112 temp10 = true;
12113 }
12114 }
12115 {
12116 if (!wxPyCheckForApp()) SWIG_fail;
12117 PyThreadState* __tstate = wxPyBeginAllowThreads();
12118 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);
12119
12120 wxPyEndAllowThreads(__tstate);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12124 {
12125 if (temp3)
12126 delete arg3;
12127 }
12128 {
12129 if (temp6) delete arg6;
12130 }
12131 {
12132 if (temp10)
12133 delete arg10;
12134 }
12135 return resultobj;
12136 fail:
12137 {
12138 if (temp3)
12139 delete arg3;
12140 }
12141 {
12142 if (temp6) delete arg6;
12143 }
12144 {
12145 if (temp10)
12146 delete arg10;
12147 }
12148 return NULL;
12149 }
12150
12151
12152 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj;
12154 wxRadioBox *result;
12155 char *kwnames[] = {
12156 NULL
12157 };
12158
12159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
12160 {
12161 if (!wxPyCheckForApp()) SWIG_fail;
12162 PyThreadState* __tstate = wxPyBeginAllowThreads();
12163 result = (wxRadioBox *)new wxRadioBox();
12164
12165 wxPyEndAllowThreads(__tstate);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12169 return resultobj;
12170 fail:
12171 return NULL;
12172 }
12173
12174
12175 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12176 PyObject *resultobj;
12177 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12178 wxWindow *arg2 = (wxWindow *) 0 ;
12179 int arg3 = (int) -1 ;
12180 wxString const &arg4_defvalue = wxPyEmptyString ;
12181 wxString *arg4 = (wxString *) &arg4_defvalue ;
12182 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12183 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12184 wxSize const &arg6_defvalue = wxDefaultSize ;
12185 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12186 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12187 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12188 int arg8 = (int) 0 ;
12189 long arg9 = (long) wxRA_HORIZONTAL ;
12190 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12191 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12192 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12193 wxString *arg11 = (wxString *) &arg11_defvalue ;
12194 bool result;
12195 bool temp4 = false ;
12196 wxPoint temp5 ;
12197 wxSize temp6 ;
12198 bool temp7 = false ;
12199 bool temp11 = false ;
12200 PyObject * obj0 = 0 ;
12201 PyObject * obj1 = 0 ;
12202 PyObject * obj2 = 0 ;
12203 PyObject * obj3 = 0 ;
12204 PyObject * obj4 = 0 ;
12205 PyObject * obj5 = 0 ;
12206 PyObject * obj6 = 0 ;
12207 PyObject * obj7 = 0 ;
12208 PyObject * obj8 = 0 ;
12209 PyObject * obj9 = 0 ;
12210 PyObject * obj10 = 0 ;
12211 char *kwnames[] = {
12212 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12213 };
12214
12215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12220 if (obj2) {
12221 arg3 = (int)SWIG_As_int(obj2);
12222 if (PyErr_Occurred()) SWIG_fail;
12223 }
12224 if (obj3) {
12225 {
12226 arg4 = wxString_in_helper(obj3);
12227 if (arg4 == NULL) SWIG_fail;
12228 temp4 = true;
12229 }
12230 }
12231 if (obj4) {
12232 {
12233 arg5 = &temp5;
12234 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12235 }
12236 }
12237 if (obj5) {
12238 {
12239 arg6 = &temp6;
12240 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12241 }
12242 }
12243 if (obj6) {
12244 {
12245 if (! PySequence_Check(obj6)) {
12246 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12247 SWIG_fail;
12248 }
12249 arg7 = new wxArrayString;
12250 temp7 = true;
12251 int i, len=PySequence_Length(obj6);
12252 for (i=0; i<len; i++) {
12253 PyObject* item = PySequence_GetItem(obj6, i);
12254 #if wxUSE_UNICODE
12255 PyObject* str = PyObject_Unicode(item);
12256 #else
12257 PyObject* str = PyObject_Str(item);
12258 #endif
12259 if (PyErr_Occurred()) SWIG_fail;
12260 arg7->Add(Py2wxString(str));
12261 Py_DECREF(item);
12262 Py_DECREF(str);
12263 }
12264 }
12265 }
12266 if (obj7) {
12267 arg8 = (int)SWIG_As_int(obj7);
12268 if (PyErr_Occurred()) SWIG_fail;
12269 }
12270 if (obj8) {
12271 arg9 = (long)SWIG_As_long(obj8);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 if (obj9) {
12275 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12276 SWIG_POINTER_EXCEPTION | 0)) == -1)
12277 SWIG_fail;
12278 if (arg10 == NULL) {
12279 PyErr_SetString(PyExc_TypeError,"null reference");
12280 SWIG_fail;
12281 }
12282 }
12283 if (obj10) {
12284 {
12285 arg11 = wxString_in_helper(obj10);
12286 if (arg11 == NULL) SWIG_fail;
12287 temp11 = true;
12288 }
12289 }
12290 {
12291 PyThreadState* __tstate = wxPyBeginAllowThreads();
12292 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);
12293
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 {
12298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12299 }
12300 {
12301 if (temp4)
12302 delete arg4;
12303 }
12304 {
12305 if (temp7) delete arg7;
12306 }
12307 {
12308 if (temp11)
12309 delete arg11;
12310 }
12311 return resultobj;
12312 fail:
12313 {
12314 if (temp4)
12315 delete arg4;
12316 }
12317 {
12318 if (temp7) delete arg7;
12319 }
12320 {
12321 if (temp11)
12322 delete arg11;
12323 }
12324 return NULL;
12325 }
12326
12327
12328 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12329 PyObject *resultobj;
12330 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12331 int arg2 ;
12332 PyObject * obj0 = 0 ;
12333 PyObject * obj1 = 0 ;
12334 char *kwnames[] = {
12335 (char *) "self",(char *) "n", NULL
12336 };
12337
12338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12341 arg2 = (int)SWIG_As_int(obj1);
12342 if (PyErr_Occurred()) SWIG_fail;
12343 {
12344 PyThreadState* __tstate = wxPyBeginAllowThreads();
12345 (arg1)->SetSelection(arg2);
12346
12347 wxPyEndAllowThreads(__tstate);
12348 if (PyErr_Occurred()) SWIG_fail;
12349 }
12350 Py_INCREF(Py_None); resultobj = Py_None;
12351 return resultobj;
12352 fail:
12353 return NULL;
12354 }
12355
12356
12357 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12358 PyObject *resultobj;
12359 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12360 int result;
12361 PyObject * obj0 = 0 ;
12362 char *kwnames[] = {
12363 (char *) "self", NULL
12364 };
12365
12366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12372
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 resultobj = SWIG_From_int((int)result);
12377 return resultobj;
12378 fail:
12379 return NULL;
12380 }
12381
12382
12383 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12384 PyObject *resultobj;
12385 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12386 wxString result;
12387 PyObject * obj0 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "self", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12398
12399 wxPyEndAllowThreads(__tstate);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 }
12402 {
12403 #if wxUSE_UNICODE
12404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12405 #else
12406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12407 #endif
12408 }
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj;
12417 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12418 wxString *arg2 = 0 ;
12419 bool result;
12420 bool temp2 = false ;
12421 PyObject * obj0 = 0 ;
12422 PyObject * obj1 = 0 ;
12423 char *kwnames[] = {
12424 (char *) "self",(char *) "s", NULL
12425 };
12426
12427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12430 {
12431 arg2 = wxString_in_helper(obj1);
12432 if (arg2 == NULL) SWIG_fail;
12433 temp2 = true;
12434 }
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12438
12439 wxPyEndAllowThreads(__tstate);
12440 if (PyErr_Occurred()) SWIG_fail;
12441 }
12442 {
12443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12444 }
12445 {
12446 if (temp2)
12447 delete arg2;
12448 }
12449 return resultobj;
12450 fail:
12451 {
12452 if (temp2)
12453 delete arg2;
12454 }
12455 return NULL;
12456 }
12457
12458
12459 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj;
12461 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12462 int result;
12463 PyObject * obj0 = 0 ;
12464 char *kwnames[] = {
12465 (char *) "self", NULL
12466 };
12467
12468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12471 {
12472 PyThreadState* __tstate = wxPyBeginAllowThreads();
12473 result = (int)((wxRadioBox const *)arg1)->GetCount();
12474
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 resultobj = SWIG_From_int((int)result);
12479 return resultobj;
12480 fail:
12481 return NULL;
12482 }
12483
12484
12485 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12488 wxString *arg2 = 0 ;
12489 int result;
12490 bool temp2 = false ;
12491 PyObject * obj0 = 0 ;
12492 PyObject * obj1 = 0 ;
12493 char *kwnames[] = {
12494 (char *) "self",(char *) "s", NULL
12495 };
12496
12497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12500 {
12501 arg2 = wxString_in_helper(obj1);
12502 if (arg2 == NULL) SWIG_fail;
12503 temp2 = true;
12504 }
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 resultobj = SWIG_From_int((int)result);
12513 {
12514 if (temp2)
12515 delete arg2;
12516 }
12517 return resultobj;
12518 fail:
12519 {
12520 if (temp2)
12521 delete arg2;
12522 }
12523 return NULL;
12524 }
12525
12526
12527 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12528 PyObject *resultobj;
12529 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12530 int arg2 ;
12531 wxString result;
12532 PyObject * obj0 = 0 ;
12533 PyObject * obj1 = 0 ;
12534 char *kwnames[] = {
12535 (char *) "self",(char *) "n", NULL
12536 };
12537
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12541 arg2 = (int)SWIG_As_int(obj1);
12542 if (PyErr_Occurred()) SWIG_fail;
12543 {
12544 PyThreadState* __tstate = wxPyBeginAllowThreads();
12545 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12546
12547 wxPyEndAllowThreads(__tstate);
12548 if (PyErr_Occurred()) SWIG_fail;
12549 }
12550 {
12551 #if wxUSE_UNICODE
12552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12553 #else
12554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12555 #endif
12556 }
12557 return resultobj;
12558 fail:
12559 return NULL;
12560 }
12561
12562
12563 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12564 PyObject *resultobj;
12565 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12566 int arg2 ;
12567 wxString *arg3 = 0 ;
12568 bool temp3 = false ;
12569 PyObject * obj0 = 0 ;
12570 PyObject * obj1 = 0 ;
12571 PyObject * obj2 = 0 ;
12572 char *kwnames[] = {
12573 (char *) "self",(char *) "n",(char *) "label", NULL
12574 };
12575
12576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12579 arg2 = (int)SWIG_As_int(obj1);
12580 if (PyErr_Occurred()) SWIG_fail;
12581 {
12582 arg3 = wxString_in_helper(obj2);
12583 if (arg3 == NULL) SWIG_fail;
12584 temp3 = true;
12585 }
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 (arg1)->SetString(arg2,(wxString const &)*arg3);
12589
12590 wxPyEndAllowThreads(__tstate);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 }
12593 Py_INCREF(Py_None); resultobj = Py_None;
12594 {
12595 if (temp3)
12596 delete arg3;
12597 }
12598 return resultobj;
12599 fail:
12600 {
12601 if (temp3)
12602 delete arg3;
12603 }
12604 return NULL;
12605 }
12606
12607
12608 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12609 PyObject *resultobj;
12610 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12611 int arg2 ;
12612 bool arg3 = (bool) true ;
12613 PyObject * obj0 = 0 ;
12614 PyObject * obj1 = 0 ;
12615 PyObject * obj2 = 0 ;
12616 char *kwnames[] = {
12617 (char *) "self",(char *) "n",(char *) "enable", NULL
12618 };
12619
12620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12623 arg2 = (int)SWIG_As_int(obj1);
12624 if (PyErr_Occurred()) SWIG_fail;
12625 if (obj2) {
12626 arg3 = (bool)SWIG_As_bool(obj2);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 (arg1)->Enable(arg2,arg3);
12632
12633 wxPyEndAllowThreads(__tstate);
12634 if (PyErr_Occurred()) SWIG_fail;
12635 }
12636 Py_INCREF(Py_None); resultobj = Py_None;
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12644 PyObject *resultobj;
12645 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12646 int arg2 ;
12647 bool arg3 = (bool) true ;
12648 PyObject * obj0 = 0 ;
12649 PyObject * obj1 = 0 ;
12650 PyObject * obj2 = 0 ;
12651 char *kwnames[] = {
12652 (char *) "self",(char *) "n",(char *) "show", NULL
12653 };
12654
12655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12658 arg2 = (int)SWIG_As_int(obj1);
12659 if (PyErr_Occurred()) SWIG_fail;
12660 if (obj2) {
12661 arg3 = (bool)SWIG_As_bool(obj2);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 (arg1)->Show(arg2,arg3);
12667
12668 wxPyEndAllowThreads(__tstate);
12669 if (PyErr_Occurred()) SWIG_fail;
12670 }
12671 Py_INCREF(Py_None); resultobj = Py_None;
12672 return resultobj;
12673 fail:
12674 return NULL;
12675 }
12676
12677
12678 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12679 PyObject *resultobj;
12680 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12681 int result;
12682 PyObject * obj0 = 0 ;
12683 char *kwnames[] = {
12684 (char *) "self", NULL
12685 };
12686
12687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12690 {
12691 PyThreadState* __tstate = wxPyBeginAllowThreads();
12692 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12693
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 resultobj = SWIG_From_int((int)result);
12698 return resultobj;
12699 fail:
12700 return NULL;
12701 }
12702
12703
12704 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12705 PyObject *resultobj;
12706 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12707 int result;
12708 PyObject * obj0 = 0 ;
12709 char *kwnames[] = {
12710 (char *) "self", NULL
12711 };
12712
12713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12716 {
12717 PyThreadState* __tstate = wxPyBeginAllowThreads();
12718 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12719
12720 wxPyEndAllowThreads(__tstate);
12721 if (PyErr_Occurred()) SWIG_fail;
12722 }
12723 resultobj = SWIG_From_int((int)result);
12724 return resultobj;
12725 fail:
12726 return NULL;
12727 }
12728
12729
12730 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12731 PyObject *resultobj;
12732 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12733 int arg2 ;
12734 int arg3 ;
12735 long arg4 ;
12736 int result;
12737 PyObject * obj0 = 0 ;
12738 PyObject * obj1 = 0 ;
12739 PyObject * obj2 = 0 ;
12740 PyObject * obj3 = 0 ;
12741 char *kwnames[] = {
12742 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12743 };
12744
12745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12748 arg2 = (int)SWIG_As_int(obj1);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 arg3 = (int)SWIG_As_int(obj2);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 arg4 = (long)SWIG_As_long(obj3);
12753 if (PyErr_Occurred()) SWIG_fail;
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_From_int((int)result);
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj;
12770 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12771 wxVisualAttributes result;
12772 PyObject * obj0 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "variant", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12778 if (obj0) {
12779 arg1 = (int)SWIG_As_int(obj0);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 {
12783 if (!wxPyCheckForApp()) SWIG_fail;
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12786
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 {
12791 wxVisualAttributes * resultptr;
12792 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12793 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12794 }
12795 return resultobj;
12796 fail:
12797 return NULL;
12798 }
12799
12800
12801 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12802 PyObject *obj;
12803 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12804 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12805 Py_INCREF(obj);
12806 return Py_BuildValue((char *)"");
12807 }
12808 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12809 PyObject *resultobj;
12810 wxWindow *arg1 = (wxWindow *) 0 ;
12811 int arg2 = (int) -1 ;
12812 wxString const &arg3_defvalue = wxPyEmptyString ;
12813 wxString *arg3 = (wxString *) &arg3_defvalue ;
12814 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12815 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12816 wxSize const &arg5_defvalue = wxDefaultSize ;
12817 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12818 long arg6 = (long) 0 ;
12819 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12820 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12821 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12822 wxString *arg8 = (wxString *) &arg8_defvalue ;
12823 wxRadioButton *result;
12824 bool temp3 = false ;
12825 wxPoint temp4 ;
12826 wxSize temp5 ;
12827 bool temp8 = false ;
12828 PyObject * obj0 = 0 ;
12829 PyObject * obj1 = 0 ;
12830 PyObject * obj2 = 0 ;
12831 PyObject * obj3 = 0 ;
12832 PyObject * obj4 = 0 ;
12833 PyObject * obj5 = 0 ;
12834 PyObject * obj6 = 0 ;
12835 PyObject * obj7 = 0 ;
12836 char *kwnames[] = {
12837 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12838 };
12839
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12843 if (obj1) {
12844 arg2 = (int)SWIG_As_int(obj1);
12845 if (PyErr_Occurred()) SWIG_fail;
12846 }
12847 if (obj2) {
12848 {
12849 arg3 = wxString_in_helper(obj2);
12850 if (arg3 == NULL) SWIG_fail;
12851 temp3 = true;
12852 }
12853 }
12854 if (obj3) {
12855 {
12856 arg4 = &temp4;
12857 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12858 }
12859 }
12860 if (obj4) {
12861 {
12862 arg5 = &temp5;
12863 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12864 }
12865 }
12866 if (obj5) {
12867 arg6 = (long)SWIG_As_long(obj5);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 if (obj6) {
12871 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12872 SWIG_POINTER_EXCEPTION | 0)) == -1)
12873 SWIG_fail;
12874 if (arg7 == NULL) {
12875 PyErr_SetString(PyExc_TypeError,"null reference");
12876 SWIG_fail;
12877 }
12878 }
12879 if (obj7) {
12880 {
12881 arg8 = wxString_in_helper(obj7);
12882 if (arg8 == NULL) SWIG_fail;
12883 temp8 = true;
12884 }
12885 }
12886 {
12887 if (!wxPyCheckForApp()) SWIG_fail;
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12890
12891 wxPyEndAllowThreads(__tstate);
12892 if (PyErr_Occurred()) SWIG_fail;
12893 }
12894 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12895 {
12896 if (temp3)
12897 delete arg3;
12898 }
12899 {
12900 if (temp8)
12901 delete arg8;
12902 }
12903 return resultobj;
12904 fail:
12905 {
12906 if (temp3)
12907 delete arg3;
12908 }
12909 {
12910 if (temp8)
12911 delete arg8;
12912 }
12913 return NULL;
12914 }
12915
12916
12917 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12918 PyObject *resultobj;
12919 wxRadioButton *result;
12920 char *kwnames[] = {
12921 NULL
12922 };
12923
12924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12925 {
12926 if (!wxPyCheckForApp()) SWIG_fail;
12927 PyThreadState* __tstate = wxPyBeginAllowThreads();
12928 result = (wxRadioButton *)new wxRadioButton();
12929
12930 wxPyEndAllowThreads(__tstate);
12931 if (PyErr_Occurred()) SWIG_fail;
12932 }
12933 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12934 return resultobj;
12935 fail:
12936 return NULL;
12937 }
12938
12939
12940 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12941 PyObject *resultobj;
12942 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12943 wxWindow *arg2 = (wxWindow *) 0 ;
12944 int arg3 = (int) -1 ;
12945 wxString const &arg4_defvalue = wxPyEmptyString ;
12946 wxString *arg4 = (wxString *) &arg4_defvalue ;
12947 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12948 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12949 wxSize const &arg6_defvalue = wxDefaultSize ;
12950 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12951 long arg7 = (long) 0 ;
12952 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12953 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12954 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12955 wxString *arg9 = (wxString *) &arg9_defvalue ;
12956 bool result;
12957 bool temp4 = false ;
12958 wxPoint temp5 ;
12959 wxSize temp6 ;
12960 bool temp9 = false ;
12961 PyObject * obj0 = 0 ;
12962 PyObject * obj1 = 0 ;
12963 PyObject * obj2 = 0 ;
12964 PyObject * obj3 = 0 ;
12965 PyObject * obj4 = 0 ;
12966 PyObject * obj5 = 0 ;
12967 PyObject * obj6 = 0 ;
12968 PyObject * obj7 = 0 ;
12969 PyObject * obj8 = 0 ;
12970 char *kwnames[] = {
12971 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12972 };
12973
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12977 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12979 if (obj2) {
12980 arg3 = (int)SWIG_As_int(obj2);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 if (obj3) {
12984 {
12985 arg4 = wxString_in_helper(obj3);
12986 if (arg4 == NULL) SWIG_fail;
12987 temp4 = true;
12988 }
12989 }
12990 if (obj4) {
12991 {
12992 arg5 = &temp5;
12993 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12994 }
12995 }
12996 if (obj5) {
12997 {
12998 arg6 = &temp6;
12999 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13000 }
13001 }
13002 if (obj6) {
13003 arg7 = (long)SWIG_As_long(obj6);
13004 if (PyErr_Occurred()) SWIG_fail;
13005 }
13006 if (obj7) {
13007 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13008 SWIG_POINTER_EXCEPTION | 0)) == -1)
13009 SWIG_fail;
13010 if (arg8 == NULL) {
13011 PyErr_SetString(PyExc_TypeError,"null reference");
13012 SWIG_fail;
13013 }
13014 }
13015 if (obj8) {
13016 {
13017 arg9 = wxString_in_helper(obj8);
13018 if (arg9 == NULL) SWIG_fail;
13019 temp9 = true;
13020 }
13021 }
13022 {
13023 PyThreadState* __tstate = wxPyBeginAllowThreads();
13024 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13025
13026 wxPyEndAllowThreads(__tstate);
13027 if (PyErr_Occurred()) SWIG_fail;
13028 }
13029 {
13030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13031 }
13032 {
13033 if (temp4)
13034 delete arg4;
13035 }
13036 {
13037 if (temp9)
13038 delete arg9;
13039 }
13040 return resultobj;
13041 fail:
13042 {
13043 if (temp4)
13044 delete arg4;
13045 }
13046 {
13047 if (temp9)
13048 delete arg9;
13049 }
13050 return NULL;
13051 }
13052
13053
13054 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13055 PyObject *resultobj;
13056 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
13057 bool result;
13058 PyObject * obj0 = 0 ;
13059 char *kwnames[] = {
13060 (char *) "self", NULL
13061 };
13062
13063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
13064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
13065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13066 {
13067 PyThreadState* __tstate = wxPyBeginAllowThreads();
13068 result = (bool)(arg1)->GetValue();
13069
13070 wxPyEndAllowThreads(__tstate);
13071 if (PyErr_Occurred()) SWIG_fail;
13072 }
13073 {
13074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13075 }
13076 return resultobj;
13077 fail:
13078 return NULL;
13079 }
13080
13081
13082 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj;
13084 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
13085 bool arg2 ;
13086 PyObject * obj0 = 0 ;
13087 PyObject * obj1 = 0 ;
13088 char *kwnames[] = {
13089 (char *) "self",(char *) "value", NULL
13090 };
13091
13092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
13094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13095 arg2 = (bool)SWIG_As_bool(obj1);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 {
13098 PyThreadState* __tstate = wxPyBeginAllowThreads();
13099 (arg1)->SetValue(arg2);
13100
13101 wxPyEndAllowThreads(__tstate);
13102 if (PyErr_Occurred()) SWIG_fail;
13103 }
13104 Py_INCREF(Py_None); resultobj = Py_None;
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13114 wxVisualAttributes result;
13115 PyObject * obj0 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "variant", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13121 if (obj0) {
13122 arg1 = (int)SWIG_As_int(obj0);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 {
13126 if (!wxPyCheckForApp()) SWIG_fail;
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13129
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 {
13134 wxVisualAttributes * resultptr;
13135 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13136 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13137 }
13138 return resultobj;
13139 fail:
13140 return NULL;
13141 }
13142
13143
13144 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
13145 PyObject *obj;
13146 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13147 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
13148 Py_INCREF(obj);
13149 return Py_BuildValue((char *)"");
13150 }
13151 static int _wrap_SliderNameStr_set(PyObject *) {
13152 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
13153 return 1;
13154 }
13155
13156
13157 static PyObject *_wrap_SliderNameStr_get() {
13158 PyObject *pyobj;
13159
13160 {
13161 #if wxUSE_UNICODE
13162 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13163 #else
13164 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13165 #endif
13166 }
13167 return pyobj;
13168 }
13169
13170
13171 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13172 PyObject *resultobj;
13173 wxWindow *arg1 = (wxWindow *) 0 ;
13174 int arg2 = (int) -1 ;
13175 int arg3 = (int) 0 ;
13176 int arg4 = (int) 0 ;
13177 int arg5 = (int) 100 ;
13178 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13179 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13180 wxSize const &arg7_defvalue = wxDefaultSize ;
13181 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13182 long arg8 = (long) wxSL_HORIZONTAL ;
13183 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13184 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13185 wxString const &arg10_defvalue = wxPySliderNameStr ;
13186 wxString *arg10 = (wxString *) &arg10_defvalue ;
13187 wxSlider *result;
13188 wxPoint temp6 ;
13189 wxSize temp7 ;
13190 bool temp10 = false ;
13191 PyObject * obj0 = 0 ;
13192 PyObject * obj1 = 0 ;
13193 PyObject * obj2 = 0 ;
13194 PyObject * obj3 = 0 ;
13195 PyObject * obj4 = 0 ;
13196 PyObject * obj5 = 0 ;
13197 PyObject * obj6 = 0 ;
13198 PyObject * obj7 = 0 ;
13199 PyObject * obj8 = 0 ;
13200 PyObject * obj9 = 0 ;
13201 char *kwnames[] = {
13202 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13203 };
13204
13205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13208 if (obj1) {
13209 arg2 = (int)SWIG_As_int(obj1);
13210 if (PyErr_Occurred()) SWIG_fail;
13211 }
13212 if (obj2) {
13213 arg3 = (int)SWIG_As_int(obj2);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 if (obj3) {
13217 arg4 = (int)SWIG_As_int(obj3);
13218 if (PyErr_Occurred()) SWIG_fail;
13219 }
13220 if (obj4) {
13221 arg5 = (int)SWIG_As_int(obj4);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 if (obj5) {
13225 {
13226 arg6 = &temp6;
13227 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13228 }
13229 }
13230 if (obj6) {
13231 {
13232 arg7 = &temp7;
13233 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13234 }
13235 }
13236 if (obj7) {
13237 arg8 = (long)SWIG_As_long(obj7);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 if (obj8) {
13241 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13242 SWIG_POINTER_EXCEPTION | 0)) == -1)
13243 SWIG_fail;
13244 if (arg9 == NULL) {
13245 PyErr_SetString(PyExc_TypeError,"null reference");
13246 SWIG_fail;
13247 }
13248 }
13249 if (obj9) {
13250 {
13251 arg10 = wxString_in_helper(obj9);
13252 if (arg10 == NULL) SWIG_fail;
13253 temp10 = true;
13254 }
13255 }
13256 {
13257 if (!wxPyCheckForApp()) SWIG_fail;
13258 PyThreadState* __tstate = wxPyBeginAllowThreads();
13259 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13260
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13265 {
13266 if (temp10)
13267 delete arg10;
13268 }
13269 return resultobj;
13270 fail:
13271 {
13272 if (temp10)
13273 delete arg10;
13274 }
13275 return NULL;
13276 }
13277
13278
13279 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj;
13281 wxSlider *result;
13282 char *kwnames[] = {
13283 NULL
13284 };
13285
13286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13287 {
13288 if (!wxPyCheckForApp()) SWIG_fail;
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 result = (wxSlider *)new wxSlider();
13291
13292 wxPyEndAllowThreads(__tstate);
13293 if (PyErr_Occurred()) SWIG_fail;
13294 }
13295 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13296 return resultobj;
13297 fail:
13298 return NULL;
13299 }
13300
13301
13302 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13303 PyObject *resultobj;
13304 wxSlider *arg1 = (wxSlider *) 0 ;
13305 wxWindow *arg2 = (wxWindow *) 0 ;
13306 int arg3 = (int) -1 ;
13307 int arg4 = (int) 0 ;
13308 int arg5 = (int) 0 ;
13309 int arg6 = (int) 100 ;
13310 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13311 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13312 wxSize const &arg8_defvalue = wxDefaultSize ;
13313 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13314 long arg9 = (long) wxSL_HORIZONTAL ;
13315 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13316 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13317 wxString const &arg11_defvalue = wxPySliderNameStr ;
13318 wxString *arg11 = (wxString *) &arg11_defvalue ;
13319 bool result;
13320 wxPoint temp7 ;
13321 wxSize temp8 ;
13322 bool temp11 = false ;
13323 PyObject * obj0 = 0 ;
13324 PyObject * obj1 = 0 ;
13325 PyObject * obj2 = 0 ;
13326 PyObject * obj3 = 0 ;
13327 PyObject * obj4 = 0 ;
13328 PyObject * obj5 = 0 ;
13329 PyObject * obj6 = 0 ;
13330 PyObject * obj7 = 0 ;
13331 PyObject * obj8 = 0 ;
13332 PyObject * obj9 = 0 ;
13333 PyObject * obj10 = 0 ;
13334 char *kwnames[] = {
13335 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13336 };
13337
13338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13343 if (obj2) {
13344 arg3 = (int)SWIG_As_int(obj2);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 if (obj3) {
13348 arg4 = (int)SWIG_As_int(obj3);
13349 if (PyErr_Occurred()) SWIG_fail;
13350 }
13351 if (obj4) {
13352 arg5 = (int)SWIG_As_int(obj4);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 if (obj5) {
13356 arg6 = (int)SWIG_As_int(obj5);
13357 if (PyErr_Occurred()) SWIG_fail;
13358 }
13359 if (obj6) {
13360 {
13361 arg7 = &temp7;
13362 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13363 }
13364 }
13365 if (obj7) {
13366 {
13367 arg8 = &temp8;
13368 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13369 }
13370 }
13371 if (obj8) {
13372 arg9 = (long)SWIG_As_long(obj8);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 if (obj9) {
13376 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13377 SWIG_POINTER_EXCEPTION | 0)) == -1)
13378 SWIG_fail;
13379 if (arg10 == NULL) {
13380 PyErr_SetString(PyExc_TypeError,"null reference");
13381 SWIG_fail;
13382 }
13383 }
13384 if (obj10) {
13385 {
13386 arg11 = wxString_in_helper(obj10);
13387 if (arg11 == NULL) SWIG_fail;
13388 temp11 = true;
13389 }
13390 }
13391 {
13392 PyThreadState* __tstate = wxPyBeginAllowThreads();
13393 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13394
13395 wxPyEndAllowThreads(__tstate);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 }
13398 {
13399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13400 }
13401 {
13402 if (temp11)
13403 delete arg11;
13404 }
13405 return resultobj;
13406 fail:
13407 {
13408 if (temp11)
13409 delete arg11;
13410 }
13411 return NULL;
13412 }
13413
13414
13415 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj;
13417 wxSlider *arg1 = (wxSlider *) 0 ;
13418 int result;
13419 PyObject * obj0 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (int)((wxSlider const *)arg1)->GetValue();
13430
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 resultobj = SWIG_From_int((int)result);
13435 return resultobj;
13436 fail:
13437 return NULL;
13438 }
13439
13440
13441 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13442 PyObject *resultobj;
13443 wxSlider *arg1 = (wxSlider *) 0 ;
13444 int arg2 ;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "self",(char *) "value", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13454 arg2 = (int)SWIG_As_int(obj1);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 (arg1)->SetValue(arg2);
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 Py_INCREF(Py_None); resultobj = Py_None;
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxSlider *arg1 = (wxSlider *) 0 ;
13473 int arg2 ;
13474 int arg3 ;
13475 PyObject * obj0 = 0 ;
13476 PyObject * obj1 = 0 ;
13477 PyObject * obj2 = 0 ;
13478 char *kwnames[] = {
13479 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13480 };
13481
13482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13485 arg2 = (int)SWIG_As_int(obj1);
13486 if (PyErr_Occurred()) SWIG_fail;
13487 arg3 = (int)SWIG_As_int(obj2);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 (arg1)->SetRange(arg2,arg3);
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 Py_INCREF(Py_None); resultobj = Py_None;
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxSlider *arg1 = (wxSlider *) 0 ;
13506 int result;
13507 PyObject * obj0 = 0 ;
13508 char *kwnames[] = {
13509 (char *) "self", NULL
13510 };
13511
13512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13515 {
13516 PyThreadState* __tstate = wxPyBeginAllowThreads();
13517 result = (int)((wxSlider const *)arg1)->GetMin();
13518
13519 wxPyEndAllowThreads(__tstate);
13520 if (PyErr_Occurred()) SWIG_fail;
13521 }
13522 resultobj = SWIG_From_int((int)result);
13523 return resultobj;
13524 fail:
13525 return NULL;
13526 }
13527
13528
13529 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13530 PyObject *resultobj;
13531 wxSlider *arg1 = (wxSlider *) 0 ;
13532 int result;
13533 PyObject * obj0 = 0 ;
13534 char *kwnames[] = {
13535 (char *) "self", NULL
13536 };
13537
13538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13541 {
13542 PyThreadState* __tstate = wxPyBeginAllowThreads();
13543 result = (int)((wxSlider const *)arg1)->GetMax();
13544
13545 wxPyEndAllowThreads(__tstate);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 resultobj = SWIG_From_int((int)result);
13549 return resultobj;
13550 fail:
13551 return NULL;
13552 }
13553
13554
13555 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13556 PyObject *resultobj;
13557 wxSlider *arg1 = (wxSlider *) 0 ;
13558 int arg2 ;
13559 PyObject * obj0 = 0 ;
13560 PyObject * obj1 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "self",(char *) "minValue", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13568 arg2 = (int)SWIG_As_int(obj1);
13569 if (PyErr_Occurred()) SWIG_fail;
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 (arg1)->SetMin(arg2);
13573
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 Py_INCREF(Py_None); resultobj = Py_None;
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13585 PyObject *resultobj;
13586 wxSlider *arg1 = (wxSlider *) 0 ;
13587 int arg2 ;
13588 PyObject * obj0 = 0 ;
13589 PyObject * obj1 = 0 ;
13590 char *kwnames[] = {
13591 (char *) "self",(char *) "maxValue", NULL
13592 };
13593
13594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13597 arg2 = (int)SWIG_As_int(obj1);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 {
13600 PyThreadState* __tstate = wxPyBeginAllowThreads();
13601 (arg1)->SetMax(arg2);
13602
13603 wxPyEndAllowThreads(__tstate);
13604 if (PyErr_Occurred()) SWIG_fail;
13605 }
13606 Py_INCREF(Py_None); resultobj = Py_None;
13607 return resultobj;
13608 fail:
13609 return NULL;
13610 }
13611
13612
13613 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13614 PyObject *resultobj;
13615 wxSlider *arg1 = (wxSlider *) 0 ;
13616 int arg2 ;
13617 PyObject * obj0 = 0 ;
13618 PyObject * obj1 = 0 ;
13619 char *kwnames[] = {
13620 (char *) "self",(char *) "lineSize", NULL
13621 };
13622
13623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13626 arg2 = (int)SWIG_As_int(obj1);
13627 if (PyErr_Occurred()) SWIG_fail;
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 (arg1)->SetLineSize(arg2);
13631
13632 wxPyEndAllowThreads(__tstate);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 }
13635 Py_INCREF(Py_None); resultobj = Py_None;
13636 return resultobj;
13637 fail:
13638 return NULL;
13639 }
13640
13641
13642 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13643 PyObject *resultobj;
13644 wxSlider *arg1 = (wxSlider *) 0 ;
13645 int arg2 ;
13646 PyObject * obj0 = 0 ;
13647 PyObject * obj1 = 0 ;
13648 char *kwnames[] = {
13649 (char *) "self",(char *) "pageSize", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13655 arg2 = (int)SWIG_As_int(obj1);
13656 if (PyErr_Occurred()) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 (arg1)->SetPageSize(arg2);
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 Py_INCREF(Py_None); resultobj = Py_None;
13665 return resultobj;
13666 fail:
13667 return NULL;
13668 }
13669
13670
13671 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxSlider *arg1 = (wxSlider *) 0 ;
13674 int result;
13675 PyObject * obj0 = 0 ;
13676 char *kwnames[] = {
13677 (char *) "self", NULL
13678 };
13679
13680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13683 {
13684 PyThreadState* __tstate = wxPyBeginAllowThreads();
13685 result = (int)((wxSlider const *)arg1)->GetLineSize();
13686
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 resultobj = SWIG_From_int((int)result);
13691 return resultobj;
13692 fail:
13693 return NULL;
13694 }
13695
13696
13697 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13698 PyObject *resultobj;
13699 wxSlider *arg1 = (wxSlider *) 0 ;
13700 int result;
13701 PyObject * obj0 = 0 ;
13702 char *kwnames[] = {
13703 (char *) "self", NULL
13704 };
13705
13706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13709 {
13710 PyThreadState* __tstate = wxPyBeginAllowThreads();
13711 result = (int)((wxSlider const *)arg1)->GetPageSize();
13712
13713 wxPyEndAllowThreads(__tstate);
13714 if (PyErr_Occurred()) SWIG_fail;
13715 }
13716 resultobj = SWIG_From_int((int)result);
13717 return resultobj;
13718 fail:
13719 return NULL;
13720 }
13721
13722
13723 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13724 PyObject *resultobj;
13725 wxSlider *arg1 = (wxSlider *) 0 ;
13726 int arg2 ;
13727 PyObject * obj0 = 0 ;
13728 PyObject * obj1 = 0 ;
13729 char *kwnames[] = {
13730 (char *) "self",(char *) "lenPixels", NULL
13731 };
13732
13733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13736 arg2 = (int)SWIG_As_int(obj1);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 (arg1)->SetThumbLength(arg2);
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 Py_INCREF(Py_None); resultobj = Py_None;
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxSlider *arg1 = (wxSlider *) 0 ;
13755 int result;
13756 PyObject * obj0 = 0 ;
13757 char *kwnames[] = {
13758 (char *) "self", NULL
13759 };
13760
13761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13767
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 resultobj = SWIG_From_int((int)result);
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj;
13780 wxSlider *arg1 = (wxSlider *) 0 ;
13781 int arg2 ;
13782 int arg3 = (int) 1 ;
13783 PyObject * obj0 = 0 ;
13784 PyObject * obj1 = 0 ;
13785 PyObject * obj2 = 0 ;
13786 char *kwnames[] = {
13787 (char *) "self",(char *) "n",(char *) "pos", NULL
13788 };
13789
13790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13793 arg2 = (int)SWIG_As_int(obj1);
13794 if (PyErr_Occurred()) SWIG_fail;
13795 if (obj2) {
13796 arg3 = (int)SWIG_As_int(obj2);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 {
13800 PyThreadState* __tstate = wxPyBeginAllowThreads();
13801 (arg1)->SetTickFreq(arg2,arg3);
13802
13803 wxPyEndAllowThreads(__tstate);
13804 if (PyErr_Occurred()) SWIG_fail;
13805 }
13806 Py_INCREF(Py_None); resultobj = Py_None;
13807 return resultobj;
13808 fail:
13809 return NULL;
13810 }
13811
13812
13813 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13814 PyObject *resultobj;
13815 wxSlider *arg1 = (wxSlider *) 0 ;
13816 int result;
13817 PyObject * obj0 = 0 ;
13818 char *kwnames[] = {
13819 (char *) "self", NULL
13820 };
13821
13822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13825 {
13826 PyThreadState* __tstate = wxPyBeginAllowThreads();
13827 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13828
13829 wxPyEndAllowThreads(__tstate);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 }
13832 resultobj = SWIG_From_int((int)result);
13833 return resultobj;
13834 fail:
13835 return NULL;
13836 }
13837
13838
13839 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13840 PyObject *resultobj;
13841 wxSlider *arg1 = (wxSlider *) 0 ;
13842 PyObject * obj0 = 0 ;
13843 char *kwnames[] = {
13844 (char *) "self", NULL
13845 };
13846
13847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13850 {
13851 PyThreadState* __tstate = wxPyBeginAllowThreads();
13852 (arg1)->ClearTicks();
13853
13854 wxPyEndAllowThreads(__tstate);
13855 if (PyErr_Occurred()) SWIG_fail;
13856 }
13857 Py_INCREF(Py_None); resultobj = Py_None;
13858 return resultobj;
13859 fail:
13860 return NULL;
13861 }
13862
13863
13864 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13865 PyObject *resultobj;
13866 wxSlider *arg1 = (wxSlider *) 0 ;
13867 int arg2 ;
13868 PyObject * obj0 = 0 ;
13869 PyObject * obj1 = 0 ;
13870 char *kwnames[] = {
13871 (char *) "self",(char *) "tickPos", NULL
13872 };
13873
13874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13877 arg2 = (int)SWIG_As_int(obj1);
13878 if (PyErr_Occurred()) SWIG_fail;
13879 {
13880 PyThreadState* __tstate = wxPyBeginAllowThreads();
13881 (arg1)->SetTick(arg2);
13882
13883 wxPyEndAllowThreads(__tstate);
13884 if (PyErr_Occurred()) SWIG_fail;
13885 }
13886 Py_INCREF(Py_None); resultobj = Py_None;
13887 return resultobj;
13888 fail:
13889 return NULL;
13890 }
13891
13892
13893 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj;
13895 wxSlider *arg1 = (wxSlider *) 0 ;
13896 PyObject * obj0 = 0 ;
13897 char *kwnames[] = {
13898 (char *) "self", NULL
13899 };
13900
13901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13904 {
13905 PyThreadState* __tstate = wxPyBeginAllowThreads();
13906 (arg1)->ClearSel();
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 Py_INCREF(Py_None); resultobj = Py_None;
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj;
13920 wxSlider *arg1 = (wxSlider *) 0 ;
13921 int result;
13922 PyObject * obj0 = 0 ;
13923 char *kwnames[] = {
13924 (char *) "self", NULL
13925 };
13926
13927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13933
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 resultobj = SWIG_From_int((int)result);
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13945 PyObject *resultobj;
13946 wxSlider *arg1 = (wxSlider *) 0 ;
13947 int result;
13948 PyObject * obj0 = 0 ;
13949 char *kwnames[] = {
13950 (char *) "self", NULL
13951 };
13952
13953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (int)((wxSlider const *)arg1)->GetSelStart();
13959
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 resultobj = SWIG_From_int((int)result);
13964 return resultobj;
13965 fail:
13966 return NULL;
13967 }
13968
13969
13970 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj;
13972 wxSlider *arg1 = (wxSlider *) 0 ;
13973 int arg2 ;
13974 int arg3 ;
13975 PyObject * obj0 = 0 ;
13976 PyObject * obj1 = 0 ;
13977 PyObject * obj2 = 0 ;
13978 char *kwnames[] = {
13979 (char *) "self",(char *) "min",(char *) "max", NULL
13980 };
13981
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13985 arg2 = (int)SWIG_As_int(obj1);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 arg3 = (int)SWIG_As_int(obj2);
13988 if (PyErr_Occurred()) SWIG_fail;
13989 {
13990 PyThreadState* __tstate = wxPyBeginAllowThreads();
13991 (arg1)->SetSelection(arg2,arg3);
13992
13993 wxPyEndAllowThreads(__tstate);
13994 if (PyErr_Occurred()) SWIG_fail;
13995 }
13996 Py_INCREF(Py_None); resultobj = Py_None;
13997 return resultobj;
13998 fail:
13999 return NULL;
14000 }
14001
14002
14003 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14004 PyObject *resultobj;
14005 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14006 wxVisualAttributes result;
14007 PyObject * obj0 = 0 ;
14008 char *kwnames[] = {
14009 (char *) "variant", NULL
14010 };
14011
14012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14013 if (obj0) {
14014 arg1 = (int)SWIG_As_int(obj0);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 {
14018 if (!wxPyCheckForApp()) SWIG_fail;
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
14021
14022 wxPyEndAllowThreads(__tstate);
14023 if (PyErr_Occurred()) SWIG_fail;
14024 }
14025 {
14026 wxVisualAttributes * resultptr;
14027 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14029 }
14030 return resultobj;
14031 fail:
14032 return NULL;
14033 }
14034
14035
14036 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
14037 PyObject *obj;
14038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14039 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
14040 Py_INCREF(obj);
14041 return Py_BuildValue((char *)"");
14042 }
14043 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
14044 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
14045 return 1;
14046 }
14047
14048
14049 static PyObject *_wrap_ToggleButtonNameStr_get() {
14050 PyObject *pyobj;
14051
14052 {
14053 #if wxUSE_UNICODE
14054 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
14055 #else
14056 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
14057 #endif
14058 }
14059 return pyobj;
14060 }
14061
14062
14063 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14064 PyObject *resultobj;
14065 wxWindow *arg1 = (wxWindow *) 0 ;
14066 int arg2 = (int) -1 ;
14067 wxString const &arg3_defvalue = wxPyEmptyString ;
14068 wxString *arg3 = (wxString *) &arg3_defvalue ;
14069 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14070 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14071 wxSize const &arg5_defvalue = wxDefaultSize ;
14072 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14073 long arg6 = (long) 0 ;
14074 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14075 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14076 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
14077 wxString *arg8 = (wxString *) &arg8_defvalue ;
14078 wxToggleButton *result;
14079 bool temp3 = false ;
14080 wxPoint temp4 ;
14081 wxSize temp5 ;
14082 bool temp8 = false ;
14083 PyObject * obj0 = 0 ;
14084 PyObject * obj1 = 0 ;
14085 PyObject * obj2 = 0 ;
14086 PyObject * obj3 = 0 ;
14087 PyObject * obj4 = 0 ;
14088 PyObject * obj5 = 0 ;
14089 PyObject * obj6 = 0 ;
14090 PyObject * obj7 = 0 ;
14091 char *kwnames[] = {
14092 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14093 };
14094
14095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14098 if (obj1) {
14099 arg2 = (int)SWIG_As_int(obj1);
14100 if (PyErr_Occurred()) SWIG_fail;
14101 }
14102 if (obj2) {
14103 {
14104 arg3 = wxString_in_helper(obj2);
14105 if (arg3 == NULL) SWIG_fail;
14106 temp3 = true;
14107 }
14108 }
14109 if (obj3) {
14110 {
14111 arg4 = &temp4;
14112 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14113 }
14114 }
14115 if (obj4) {
14116 {
14117 arg5 = &temp5;
14118 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14119 }
14120 }
14121 if (obj5) {
14122 arg6 = (long)SWIG_As_long(obj5);
14123 if (PyErr_Occurred()) SWIG_fail;
14124 }
14125 if (obj6) {
14126 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1)
14128 SWIG_fail;
14129 if (arg7 == NULL) {
14130 PyErr_SetString(PyExc_TypeError,"null reference");
14131 SWIG_fail;
14132 }
14133 }
14134 if (obj7) {
14135 {
14136 arg8 = wxString_in_helper(obj7);
14137 if (arg8 == NULL) SWIG_fail;
14138 temp8 = true;
14139 }
14140 }
14141 {
14142 if (!wxPyCheckForApp()) SWIG_fail;
14143 PyThreadState* __tstate = wxPyBeginAllowThreads();
14144 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14145
14146 wxPyEndAllowThreads(__tstate);
14147 if (PyErr_Occurred()) SWIG_fail;
14148 }
14149 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14150 {
14151 if (temp3)
14152 delete arg3;
14153 }
14154 {
14155 if (temp8)
14156 delete arg8;
14157 }
14158 return resultobj;
14159 fail:
14160 {
14161 if (temp3)
14162 delete arg3;
14163 }
14164 {
14165 if (temp8)
14166 delete arg8;
14167 }
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxToggleButton *result;
14175 char *kwnames[] = {
14176 NULL
14177 };
14178
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14180 {
14181 if (!wxPyCheckForApp()) SWIG_fail;
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = (wxToggleButton *)new wxToggleButton();
14184
14185 wxPyEndAllowThreads(__tstate);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 }
14188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14189 return resultobj;
14190 fail:
14191 return NULL;
14192 }
14193
14194
14195 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14196 PyObject *resultobj;
14197 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14198 wxWindow *arg2 = (wxWindow *) 0 ;
14199 int arg3 = (int) -1 ;
14200 wxString const &arg4_defvalue = wxPyEmptyString ;
14201 wxString *arg4 = (wxString *) &arg4_defvalue ;
14202 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14203 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14204 wxSize const &arg6_defvalue = wxDefaultSize ;
14205 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14206 long arg7 = (long) 0 ;
14207 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14208 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14209 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14210 wxString *arg9 = (wxString *) &arg9_defvalue ;
14211 bool result;
14212 bool temp4 = false ;
14213 wxPoint temp5 ;
14214 wxSize temp6 ;
14215 bool temp9 = false ;
14216 PyObject * obj0 = 0 ;
14217 PyObject * obj1 = 0 ;
14218 PyObject * obj2 = 0 ;
14219 PyObject * obj3 = 0 ;
14220 PyObject * obj4 = 0 ;
14221 PyObject * obj5 = 0 ;
14222 PyObject * obj6 = 0 ;
14223 PyObject * obj7 = 0 ;
14224 PyObject * obj8 = 0 ;
14225 char *kwnames[] = {
14226 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14227 };
14228
14229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14234 if (obj2) {
14235 arg3 = (int)SWIG_As_int(obj2);
14236 if (PyErr_Occurred()) SWIG_fail;
14237 }
14238 if (obj3) {
14239 {
14240 arg4 = wxString_in_helper(obj3);
14241 if (arg4 == NULL) SWIG_fail;
14242 temp4 = true;
14243 }
14244 }
14245 if (obj4) {
14246 {
14247 arg5 = &temp5;
14248 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14249 }
14250 }
14251 if (obj5) {
14252 {
14253 arg6 = &temp6;
14254 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14255 }
14256 }
14257 if (obj6) {
14258 arg7 = (long)SWIG_As_long(obj6);
14259 if (PyErr_Occurred()) SWIG_fail;
14260 }
14261 if (obj7) {
14262 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14263 SWIG_POINTER_EXCEPTION | 0)) == -1)
14264 SWIG_fail;
14265 if (arg8 == NULL) {
14266 PyErr_SetString(PyExc_TypeError,"null reference");
14267 SWIG_fail;
14268 }
14269 }
14270 if (obj8) {
14271 {
14272 arg9 = wxString_in_helper(obj8);
14273 if (arg9 == NULL) SWIG_fail;
14274 temp9 = true;
14275 }
14276 }
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14280
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14286 }
14287 {
14288 if (temp4)
14289 delete arg4;
14290 }
14291 {
14292 if (temp9)
14293 delete arg9;
14294 }
14295 return resultobj;
14296 fail:
14297 {
14298 if (temp4)
14299 delete arg4;
14300 }
14301 {
14302 if (temp9)
14303 delete arg9;
14304 }
14305 return NULL;
14306 }
14307
14308
14309 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14310 PyObject *resultobj;
14311 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14312 bool arg2 ;
14313 PyObject * obj0 = 0 ;
14314 PyObject * obj1 = 0 ;
14315 char *kwnames[] = {
14316 (char *) "self",(char *) "value", NULL
14317 };
14318
14319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14322 arg2 = (bool)SWIG_As_bool(obj1);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 (arg1)->SetValue(arg2);
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 Py_INCREF(Py_None); resultobj = Py_None;
14332 return resultobj;
14333 fail:
14334 return NULL;
14335 }
14336
14337
14338 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14341 bool result;
14342 PyObject * obj0 = 0 ;
14343 char *kwnames[] = {
14344 (char *) "self", NULL
14345 };
14346
14347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14353
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 {
14358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14359 }
14360 return resultobj;
14361 fail:
14362 return NULL;
14363 }
14364
14365
14366 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj;
14368 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14369 wxString *arg2 = 0 ;
14370 bool temp2 = false ;
14371 PyObject * obj0 = 0 ;
14372 PyObject * obj1 = 0 ;
14373 char *kwnames[] = {
14374 (char *) "self",(char *) "label", NULL
14375 };
14376
14377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14380 {
14381 arg2 = wxString_in_helper(obj1);
14382 if (arg2 == NULL) SWIG_fail;
14383 temp2 = true;
14384 }
14385 {
14386 PyThreadState* __tstate = wxPyBeginAllowThreads();
14387 (arg1)->SetLabel((wxString const &)*arg2);
14388
14389 wxPyEndAllowThreads(__tstate);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 Py_INCREF(Py_None); resultobj = Py_None;
14393 {
14394 if (temp2)
14395 delete arg2;
14396 }
14397 return resultobj;
14398 fail:
14399 {
14400 if (temp2)
14401 delete arg2;
14402 }
14403 return NULL;
14404 }
14405
14406
14407 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14408 PyObject *resultobj;
14409 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14410 wxVisualAttributes result;
14411 PyObject * obj0 = 0 ;
14412 char *kwnames[] = {
14413 (char *) "variant", NULL
14414 };
14415
14416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14417 if (obj0) {
14418 arg1 = (int)SWIG_As_int(obj0);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 {
14422 if (!wxPyCheckForApp()) SWIG_fail;
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 {
14430 wxVisualAttributes * resultptr;
14431 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14433 }
14434 return resultobj;
14435 fail:
14436 return NULL;
14437 }
14438
14439
14440 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14441 PyObject *obj;
14442 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14443 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14444 Py_INCREF(obj);
14445 return Py_BuildValue((char *)"");
14446 }
14447 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14448 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14449 return 1;
14450 }
14451
14452
14453 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14454 PyObject *pyobj;
14455
14456 {
14457 #if wxUSE_UNICODE
14458 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14459 #else
14460 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14461 #endif
14462 }
14463 return pyobj;
14464 }
14465
14466
14467 static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14468 PyObject *resultobj;
14469 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14470 size_t result;
14471 PyObject * obj0 = 0 ;
14472 char *kwnames[] = {
14473 (char *) "self", NULL
14474 };
14475
14476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail;
14477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
14482
14483 wxPyEndAllowThreads(__tstate);
14484 if (PyErr_Occurred()) SWIG_fail;
14485 }
14486 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14487 return resultobj;
14488 fail:
14489 return NULL;
14490 }
14491
14492
14493 static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14494 PyObject *resultobj;
14495 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14496 size_t arg2 ;
14497 wxWindow *result;
14498 PyObject * obj0 = 0 ;
14499 PyObject * obj1 = 0 ;
14500 char *kwnames[] = {
14501 (char *) "self",(char *) "n", NULL
14502 };
14503
14504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail;
14505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14507 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = (wxWindow *)(arg1)->GetPage(arg2);
14512
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 {
14517 resultobj = wxPyMake_wxObject(result, 0);
14518 }
14519 return resultobj;
14520 fail:
14521 return NULL;
14522 }
14523
14524
14525 static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) {
14526 PyObject *resultobj;
14527 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14528 wxWindow *result;
14529 PyObject * obj0 = 0 ;
14530 char *kwnames[] = {
14531 (char *) "self", NULL
14532 };
14533
14534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail;
14535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14537 {
14538 PyThreadState* __tstate = wxPyBeginAllowThreads();
14539 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
14540
14541 wxPyEndAllowThreads(__tstate);
14542 if (PyErr_Occurred()) SWIG_fail;
14543 }
14544 {
14545 resultobj = wxPyMake_wxObject(result, 0);
14546 }
14547 return resultobj;
14548 fail:
14549 return NULL;
14550 }
14551
14552
14553 static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14554 PyObject *resultobj;
14555 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14556 int result;
14557 PyObject * obj0 = 0 ;
14558 char *kwnames[] = {
14559 (char *) "self", NULL
14560 };
14561
14562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail;
14563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14565 {
14566 PyThreadState* __tstate = wxPyBeginAllowThreads();
14567 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
14568
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 resultobj = SWIG_From_int((int)result);
14573 return resultobj;
14574 fail:
14575 return NULL;
14576 }
14577
14578
14579 static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14580 PyObject *resultobj;
14581 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14582 size_t arg2 ;
14583 wxString *arg3 = 0 ;
14584 bool result;
14585 bool temp3 = false ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 PyObject * obj2 = 0 ;
14589 char *kwnames[] = {
14590 (char *) "self",(char *) "n",(char *) "strText", NULL
14591 };
14592
14593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14596 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 {
14599 arg3 = wxString_in_helper(obj2);
14600 if (arg3 == NULL) SWIG_fail;
14601 temp3 = true;
14602 }
14603 {
14604 PyThreadState* __tstate = wxPyBeginAllowThreads();
14605 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14606
14607 wxPyEndAllowThreads(__tstate);
14608 if (PyErr_Occurred()) SWIG_fail;
14609 }
14610 {
14611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14612 }
14613 {
14614 if (temp3)
14615 delete arg3;
14616 }
14617 return resultobj;
14618 fail:
14619 {
14620 if (temp3)
14621 delete arg3;
14622 }
14623 return NULL;
14624 }
14625
14626
14627 static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14628 PyObject *resultobj;
14629 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14630 size_t arg2 ;
14631 wxString result;
14632 PyObject * obj0 = 0 ;
14633 PyObject * obj1 = 0 ;
14634 char *kwnames[] = {
14635 (char *) "self",(char *) "n", NULL
14636 };
14637
14638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14641 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14642 if (PyErr_Occurred()) SWIG_fail;
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 {
14651 #if wxUSE_UNICODE
14652 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14653 #else
14654 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14655 #endif
14656 }
14657 return resultobj;
14658 fail:
14659 return NULL;
14660 }
14661
14662
14663 static PyObject *_wrap_BookCtrlBase_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14664 PyObject *resultobj;
14665 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14666 wxImageList *arg2 = (wxImageList *) 0 ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self",(char *) "imageList", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14678 {
14679 PyThreadState* __tstate = wxPyBeginAllowThreads();
14680 (arg1)->SetImageList(arg2);
14681
14682 wxPyEndAllowThreads(__tstate);
14683 if (PyErr_Occurred()) SWIG_fail;
14684 }
14685 Py_INCREF(Py_None); resultobj = Py_None;
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 static PyObject *_wrap_BookCtrlBase_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14693 PyObject *resultobj;
14694 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14695 wxImageList *arg2 = (wxImageList *) 0 ;
14696 PyObject * obj0 = 0 ;
14697 PyObject * obj1 = 0 ;
14698 char *kwnames[] = {
14699 (char *) "self",(char *) "imageList", NULL
14700 };
14701
14702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14705 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14706 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 (arg1)->AssignImageList(arg2);
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 Py_INCREF(Py_None); resultobj = Py_None;
14715 return resultobj;
14716 fail:
14717 return NULL;
14718 }
14719
14720
14721 static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14722 PyObject *resultobj;
14723 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14724 wxImageList *result;
14725 PyObject * obj0 = 0 ;
14726 char *kwnames[] = {
14727 (char *) "self", NULL
14728 };
14729
14730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail;
14731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14733 {
14734 PyThreadState* __tstate = wxPyBeginAllowThreads();
14735 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
14736
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 {
14741 resultobj = wxPyMake_wxObject(result, 0);
14742 }
14743 return resultobj;
14744 fail:
14745 return NULL;
14746 }
14747
14748
14749 static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14750 PyObject *resultobj;
14751 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14752 size_t arg2 ;
14753 int result;
14754 PyObject * obj0 = 0 ;
14755 PyObject * obj1 = 0 ;
14756 char *kwnames[] = {
14757 (char *) "self",(char *) "n", NULL
14758 };
14759
14760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14763 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 {
14766 PyThreadState* __tstate = wxPyBeginAllowThreads();
14767 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
14768
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 resultobj = SWIG_From_int((int)result);
14773 return resultobj;
14774 fail:
14775 return NULL;
14776 }
14777
14778
14779 static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14780 PyObject *resultobj;
14781 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14782 size_t arg2 ;
14783 int arg3 ;
14784 bool result;
14785 PyObject * obj0 = 0 ;
14786 PyObject * obj1 = 0 ;
14787 PyObject * obj2 = 0 ;
14788 char *kwnames[] = {
14789 (char *) "self",(char *) "n",(char *) "imageId", NULL
14790 };
14791
14792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14795 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 arg3 = (int)SWIG_As_int(obj2);
14798 if (PyErr_Occurred()) SWIG_fail;
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14802
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 {
14807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14808 }
14809 return resultobj;
14810 fail:
14811 return NULL;
14812 }
14813
14814
14815 static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14816 PyObject *resultobj;
14817 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14818 wxSize *arg2 = 0 ;
14819 wxSize temp2 ;
14820 PyObject * obj0 = 0 ;
14821 PyObject * obj1 = 0 ;
14822 char *kwnames[] = {
14823 (char *) "self",(char *) "size", NULL
14824 };
14825
14826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14829 {
14830 arg2 = &temp2;
14831 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14832 }
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 (arg1)->SetPageSize((wxSize const &)*arg2);
14836
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 Py_INCREF(Py_None); resultobj = Py_None;
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14850 wxSize *arg2 = 0 ;
14851 wxSize result;
14852 wxSize temp2 ;
14853 PyObject * obj0 = 0 ;
14854 PyObject * obj1 = 0 ;
14855 char *kwnames[] = {
14856 (char *) "self",(char *) "sizePage", NULL
14857 };
14858
14859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14862 {
14863 arg2 = &temp2;
14864 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14865 }
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 {
14874 wxSize * resultptr;
14875 resultptr = new wxSize((wxSize &) result);
14876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14877 }
14878 return resultobj;
14879 fail:
14880 return NULL;
14881 }
14882
14883
14884 static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14885 PyObject *resultobj;
14886 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14887 size_t arg2 ;
14888 bool result;
14889 PyObject * obj0 = 0 ;
14890 PyObject * obj1 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "n", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14898 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 {
14901 PyThreadState* __tstate = wxPyBeginAllowThreads();
14902 result = (bool)(arg1)->DeletePage(arg2);
14903
14904 wxPyEndAllowThreads(__tstate);
14905 if (PyErr_Occurred()) SWIG_fail;
14906 }
14907 {
14908 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14909 }
14910 return resultobj;
14911 fail:
14912 return NULL;
14913 }
14914
14915
14916 static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14917 PyObject *resultobj;
14918 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14919 size_t arg2 ;
14920 bool result;
14921 PyObject * obj0 = 0 ;
14922 PyObject * obj1 = 0 ;
14923 char *kwnames[] = {
14924 (char *) "self",(char *) "n", NULL
14925 };
14926
14927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14930 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14931 if (PyErr_Occurred()) SWIG_fail;
14932 {
14933 PyThreadState* __tstate = wxPyBeginAllowThreads();
14934 result = (bool)(arg1)->RemovePage(arg2);
14935
14936 wxPyEndAllowThreads(__tstate);
14937 if (PyErr_Occurred()) SWIG_fail;
14938 }
14939 {
14940 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14941 }
14942 return resultobj;
14943 fail:
14944 return NULL;
14945 }
14946
14947
14948 static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14949 PyObject *resultobj;
14950 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14951 bool result;
14952 PyObject * obj0 = 0 ;
14953 char *kwnames[] = {
14954 (char *) "self", NULL
14955 };
14956
14957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail;
14958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14960 {
14961 PyThreadState* __tstate = wxPyBeginAllowThreads();
14962 result = (bool)(arg1)->DeleteAllPages();
14963
14964 wxPyEndAllowThreads(__tstate);
14965 if (PyErr_Occurred()) SWIG_fail;
14966 }
14967 {
14968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14969 }
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14977 PyObject *resultobj;
14978 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14979 wxWindow *arg2 = (wxWindow *) 0 ;
14980 wxString *arg3 = 0 ;
14981 bool arg4 = (bool) false ;
14982 int arg5 = (int) -1 ;
14983 bool result;
14984 bool temp3 = false ;
14985 PyObject * obj0 = 0 ;
14986 PyObject * obj1 = 0 ;
14987 PyObject * obj2 = 0 ;
14988 PyObject * obj3 = 0 ;
14989 PyObject * obj4 = 0 ;
14990 char *kwnames[] = {
14991 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14992 };
14993
14994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14999 {
15000 arg3 = wxString_in_helper(obj2);
15001 if (arg3 == NULL) SWIG_fail;
15002 temp3 = true;
15003 }
15004 if (obj3) {
15005 arg4 = (bool)SWIG_As_bool(obj3);
15006 if (PyErr_Occurred()) SWIG_fail;
15007 }
15008 if (obj4) {
15009 arg5 = (int)SWIG_As_int(obj4);
15010 if (PyErr_Occurred()) SWIG_fail;
15011 }
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
15015
15016 wxPyEndAllowThreads(__tstate);
15017 if (PyErr_Occurred()) SWIG_fail;
15018 }
15019 {
15020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15021 }
15022 {
15023 if (temp3)
15024 delete arg3;
15025 }
15026 return resultobj;
15027 fail:
15028 {
15029 if (temp3)
15030 delete arg3;
15031 }
15032 return NULL;
15033 }
15034
15035
15036 static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
15037 PyObject *resultobj;
15038 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15039 size_t arg2 ;
15040 wxWindow *arg3 = (wxWindow *) 0 ;
15041 wxString *arg4 = 0 ;
15042 bool arg5 = (bool) false ;
15043 int arg6 = (int) -1 ;
15044 bool result;
15045 bool temp4 = false ;
15046 PyObject * obj0 = 0 ;
15047 PyObject * obj1 = 0 ;
15048 PyObject * obj2 = 0 ;
15049 PyObject * obj3 = 0 ;
15050 PyObject * obj4 = 0 ;
15051 PyObject * obj5 = 0 ;
15052 char *kwnames[] = {
15053 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
15054 };
15055
15056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15059 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
15062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15063 {
15064 arg4 = wxString_in_helper(obj3);
15065 if (arg4 == NULL) SWIG_fail;
15066 temp4 = true;
15067 }
15068 if (obj4) {
15069 arg5 = (bool)SWIG_As_bool(obj4);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 if (obj5) {
15073 arg6 = (int)SWIG_As_int(obj5);
15074 if (PyErr_Occurred()) SWIG_fail;
15075 }
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
15079
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15085 }
15086 {
15087 if (temp4)
15088 delete arg4;
15089 }
15090 return resultobj;
15091 fail:
15092 {
15093 if (temp4)
15094 delete arg4;
15095 }
15096 return NULL;
15097 }
15098
15099
15100 static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15101 PyObject *resultobj;
15102 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15103 size_t arg2 ;
15104 int result;
15105 PyObject * obj0 = 0 ;
15106 PyObject * obj1 = 0 ;
15107 char *kwnames[] = {
15108 (char *) "self",(char *) "n", NULL
15109 };
15110
15111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15114 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 {
15117 PyThreadState* __tstate = wxPyBeginAllowThreads();
15118 result = (int)(arg1)->SetSelection(arg2);
15119
15120 wxPyEndAllowThreads(__tstate);
15121 if (PyErr_Occurred()) SWIG_fail;
15122 }
15123 resultobj = SWIG_From_int((int)result);
15124 return resultobj;
15125 fail:
15126 return NULL;
15127 }
15128
15129
15130 static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15131 PyObject *resultobj;
15132 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15133 bool arg2 = (bool) true ;
15134 PyObject * obj0 = 0 ;
15135 PyObject * obj1 = 0 ;
15136 char *kwnames[] = {
15137 (char *) "self",(char *) "forward", NULL
15138 };
15139
15140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
15141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15143 if (obj1) {
15144 arg2 = (bool)SWIG_As_bool(obj1);
15145 if (PyErr_Occurred()) SWIG_fail;
15146 }
15147 {
15148 PyThreadState* __tstate = wxPyBeginAllowThreads();
15149 (arg1)->AdvanceSelection(arg2);
15150
15151 wxPyEndAllowThreads(__tstate);
15152 if (PyErr_Occurred()) SWIG_fail;
15153 }
15154 Py_INCREF(Py_None); resultobj = Py_None;
15155 return resultobj;
15156 fail:
15157 return NULL;
15158 }
15159
15160
15161 static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15162 PyObject *resultobj;
15163 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15164 wxVisualAttributes result;
15165 PyObject * obj0 = 0 ;
15166 char *kwnames[] = {
15167 (char *) "variant", NULL
15168 };
15169
15170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15171 if (obj0) {
15172 arg1 = (int)SWIG_As_int(obj0);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 {
15176 if (!wxPyCheckForApp()) SWIG_fail;
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1);
15179
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 {
15184 wxVisualAttributes * resultptr;
15185 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15186 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15187 }
15188 return resultobj;
15189 fail:
15190 return NULL;
15191 }
15192
15193
15194 static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) {
15195 PyObject *obj;
15196 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15197 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj);
15198 Py_INCREF(obj);
15199 return Py_BuildValue((char *)"");
15200 }
15201 static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15202 PyObject *resultobj;
15203 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15204 int arg2 = (int) 0 ;
15205 int arg3 = (int) -1 ;
15206 int arg4 = (int) -1 ;
15207 wxBookCtrlBaseEvent *result;
15208 PyObject * obj0 = 0 ;
15209 PyObject * obj1 = 0 ;
15210 PyObject * obj2 = 0 ;
15211 PyObject * obj3 = 0 ;
15212 char *kwnames[] = {
15213 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15214 };
15215
15216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15217 if (obj0) {
15218 arg1 = (wxEventType)SWIG_As_int(obj0);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 if (obj1) {
15222 arg2 = (int)SWIG_As_int(obj1);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 if (obj2) {
15226 arg3 = (int)SWIG_As_int(obj2);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 if (obj3) {
15230 arg4 = (int)SWIG_As_int(obj3);
15231 if (PyErr_Occurred()) SWIG_fail;
15232 }
15233 {
15234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15235 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1);
15241 return resultobj;
15242 fail:
15243 return NULL;
15244 }
15245
15246
15247 static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj;
15249 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15250 int result;
15251 PyObject * obj0 = 0 ;
15252 char *kwnames[] = {
15253 (char *) "self", NULL
15254 };
15255
15256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail;
15257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15259 {
15260 PyThreadState* __tstate = wxPyBeginAllowThreads();
15261 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
15262
15263 wxPyEndAllowThreads(__tstate);
15264 if (PyErr_Occurred()) SWIG_fail;
15265 }
15266 resultobj = SWIG_From_int((int)result);
15267 return resultobj;
15268 fail:
15269 return NULL;
15270 }
15271
15272
15273 static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15274 PyObject *resultobj;
15275 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15276 int arg2 ;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "self",(char *) "nSel", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 arg2 = (int)SWIG_As_int(obj1);
15287 if (PyErr_Occurred()) SWIG_fail;
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 (arg1)->SetSelection(arg2);
15291
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 Py_INCREF(Py_None); resultobj = Py_None;
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15305 int result;
15306 PyObject * obj0 = 0 ;
15307 char *kwnames[] = {
15308 (char *) "self", NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15314 {
15315 PyThreadState* __tstate = wxPyBeginAllowThreads();
15316 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
15317
15318 wxPyEndAllowThreads(__tstate);
15319 if (PyErr_Occurred()) SWIG_fail;
15320 }
15321 resultobj = SWIG_From_int((int)result);
15322 return resultobj;
15323 fail:
15324 return NULL;
15325 }
15326
15327
15328 static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15329 PyObject *resultobj;
15330 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15331 int arg2 ;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 char *kwnames[] = {
15335 (char *) "self",(char *) "nOldSel", NULL
15336 };
15337
15338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15341 arg2 = (int)SWIG_As_int(obj1);
15342 if (PyErr_Occurred()) SWIG_fail;
15343 {
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 (arg1)->SetOldSelection(arg2);
15346
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 Py_INCREF(Py_None); resultobj = Py_None;
15351 return resultobj;
15352 fail:
15353 return NULL;
15354 }
15355
15356
15357 static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) {
15358 PyObject *obj;
15359 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15360 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj);
15361 Py_INCREF(obj);
15362 return Py_BuildValue((char *)"");
15363 }
15364 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15365 PyObject *resultobj;
15366 wxWindow *arg1 = (wxWindow *) 0 ;
15367 int arg2 = (int) -1 ;
15368 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15369 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15370 wxSize const &arg4_defvalue = wxDefaultSize ;
15371 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15372 long arg5 = (long) 0 ;
15373 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15374 wxString *arg6 = (wxString *) &arg6_defvalue ;
15375 wxNotebook *result;
15376 wxPoint temp3 ;
15377 wxSize temp4 ;
15378 bool temp6 = false ;
15379 PyObject * obj0 = 0 ;
15380 PyObject * obj1 = 0 ;
15381 PyObject * obj2 = 0 ;
15382 PyObject * obj3 = 0 ;
15383 PyObject * obj4 = 0 ;
15384 PyObject * obj5 = 0 ;
15385 char *kwnames[] = {
15386 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15387 };
15388
15389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15392 if (obj1) {
15393 arg2 = (int)SWIG_As_int(obj1);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 if (obj2) {
15397 {
15398 arg3 = &temp3;
15399 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15400 }
15401 }
15402 if (obj3) {
15403 {
15404 arg4 = &temp4;
15405 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15406 }
15407 }
15408 if (obj4) {
15409 arg5 = (long)SWIG_As_long(obj4);
15410 if (PyErr_Occurred()) SWIG_fail;
15411 }
15412 if (obj5) {
15413 {
15414 arg6 = wxString_in_helper(obj5);
15415 if (arg6 == NULL) SWIG_fail;
15416 temp6 = true;
15417 }
15418 }
15419 {
15420 if (!wxPyCheckForApp()) SWIG_fail;
15421 PyThreadState* __tstate = wxPyBeginAllowThreads();
15422 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15423
15424 wxPyEndAllowThreads(__tstate);
15425 if (PyErr_Occurred()) SWIG_fail;
15426 }
15427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15428 {
15429 if (temp6)
15430 delete arg6;
15431 }
15432 return resultobj;
15433 fail:
15434 {
15435 if (temp6)
15436 delete arg6;
15437 }
15438 return NULL;
15439 }
15440
15441
15442 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15443 PyObject *resultobj;
15444 wxNotebook *result;
15445 char *kwnames[] = {
15446 NULL
15447 };
15448
15449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15450 {
15451 if (!wxPyCheckForApp()) SWIG_fail;
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (wxNotebook *)new wxNotebook();
15454
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15466 PyObject *resultobj;
15467 wxNotebook *arg1 = (wxNotebook *) 0 ;
15468 wxWindow *arg2 = (wxWindow *) 0 ;
15469 int arg3 = (int) -1 ;
15470 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15471 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15472 wxSize const &arg5_defvalue = wxDefaultSize ;
15473 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15474 long arg6 = (long) 0 ;
15475 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15476 wxString *arg7 = (wxString *) &arg7_defvalue ;
15477 bool result;
15478 wxPoint temp4 ;
15479 wxSize temp5 ;
15480 bool temp7 = false ;
15481 PyObject * obj0 = 0 ;
15482 PyObject * obj1 = 0 ;
15483 PyObject * obj2 = 0 ;
15484 PyObject * obj3 = 0 ;
15485 PyObject * obj4 = 0 ;
15486 PyObject * obj5 = 0 ;
15487 PyObject * obj6 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15495 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15497 if (obj2) {
15498 arg3 = (int)SWIG_As_int(obj2);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 if (obj3) {
15502 {
15503 arg4 = &temp4;
15504 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15505 }
15506 }
15507 if (obj4) {
15508 {
15509 arg5 = &temp5;
15510 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15511 }
15512 }
15513 if (obj5) {
15514 arg6 = (long)SWIG_As_long(obj5);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 if (obj6) {
15518 {
15519 arg7 = wxString_in_helper(obj6);
15520 if (arg7 == NULL) SWIG_fail;
15521 temp7 = true;
15522 }
15523 }
15524 {
15525 PyThreadState* __tstate = wxPyBeginAllowThreads();
15526 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15527
15528 wxPyEndAllowThreads(__tstate);
15529 if (PyErr_Occurred()) SWIG_fail;
15530 }
15531 {
15532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15533 }
15534 {
15535 if (temp7)
15536 delete arg7;
15537 }
15538 return resultobj;
15539 fail:
15540 {
15541 if (temp7)
15542 delete arg7;
15543 }
15544 return NULL;
15545 }
15546
15547
15548 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15549 PyObject *resultobj;
15550 wxNotebook *arg1 = (wxNotebook *) 0 ;
15551 int result;
15552 PyObject * obj0 = 0 ;
15553 char *kwnames[] = {
15554 (char *) "self", NULL
15555 };
15556
15557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15563
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_From_int((int)result);
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj;
15576 wxNotebook *arg1 = (wxNotebook *) 0 ;
15577 wxSize *arg2 = 0 ;
15578 wxSize temp2 ;
15579 PyObject * obj0 = 0 ;
15580 PyObject * obj1 = 0 ;
15581 char *kwnames[] = {
15582 (char *) "self",(char *) "padding", NULL
15583 };
15584
15585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15588 {
15589 arg2 = &temp2;
15590 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15591 }
15592 {
15593 PyThreadState* __tstate = wxPyBeginAllowThreads();
15594 (arg1)->SetPadding((wxSize const &)*arg2);
15595
15596 wxPyEndAllowThreads(__tstate);
15597 if (PyErr_Occurred()) SWIG_fail;
15598 }
15599 Py_INCREF(Py_None); resultobj = Py_None;
15600 return resultobj;
15601 fail:
15602 return NULL;
15603 }
15604
15605
15606 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15607 PyObject *resultobj;
15608 wxNotebook *arg1 = (wxNotebook *) 0 ;
15609 wxSize *arg2 = 0 ;
15610 wxSize temp2 ;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "sz", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15620 {
15621 arg2 = &temp2;
15622 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15623 }
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 (arg1)->SetTabSize((wxSize const &)*arg2);
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 Py_INCREF(Py_None); resultobj = Py_None;
15632 return resultobj;
15633 fail:
15634 return NULL;
15635 }
15636
15637
15638 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15639 PyObject *resultobj;
15640 wxNotebook *arg1 = (wxNotebook *) 0 ;
15641 wxPoint *arg2 = 0 ;
15642 long *arg3 = (long *) 0 ;
15643 int result;
15644 wxPoint temp2 ;
15645 long temp3 ;
15646 int res3 = 0 ;
15647 PyObject * obj0 = 0 ;
15648 PyObject * obj1 = 0 ;
15649 char *kwnames[] = {
15650 (char *) "self",(char *) "pt", NULL
15651 };
15652
15653 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15657 {
15658 arg2 = &temp2;
15659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15660 }
15661 {
15662 PyThreadState* __tstate = wxPyBeginAllowThreads();
15663 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 resultobj = SWIG_From_int((int)result);
15669 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15670 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15671 return resultobj;
15672 fail:
15673 return NULL;
15674 }
15675
15676
15677 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxNotebook *arg1 = (wxNotebook *) 0 ;
15680 wxSize *arg2 = 0 ;
15681 wxSize result;
15682 wxSize temp2 ;
15683 PyObject * obj0 = 0 ;
15684 PyObject * obj1 = 0 ;
15685 char *kwnames[] = {
15686 (char *) "self",(char *) "sizePage", NULL
15687 };
15688
15689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15692 {
15693 arg2 = &temp2;
15694 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15695 }
15696 {
15697 PyThreadState* __tstate = wxPyBeginAllowThreads();
15698 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15699
15700 wxPyEndAllowThreads(__tstate);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 {
15704 wxSize * resultptr;
15705 resultptr = new wxSize((wxSize &) result);
15706 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15707 }
15708 return resultobj;
15709 fail:
15710 return NULL;
15711 }
15712
15713
15714 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15715 PyObject *resultobj;
15716 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15717 wxVisualAttributes result;
15718 PyObject * obj0 = 0 ;
15719 char *kwnames[] = {
15720 (char *) "variant", NULL
15721 };
15722
15723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15724 if (obj0) {
15725 arg1 = (int)SWIG_As_int(obj0);
15726 if (PyErr_Occurred()) SWIG_fail;
15727 }
15728 {
15729 if (!wxPyCheckForApp()) SWIG_fail;
15730 PyThreadState* __tstate = wxPyBeginAllowThreads();
15731 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15732
15733 wxPyEndAllowThreads(__tstate);
15734 if (PyErr_Occurred()) SWIG_fail;
15735 }
15736 {
15737 wxVisualAttributes * resultptr;
15738 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15739 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15740 }
15741 return resultobj;
15742 fail:
15743 return NULL;
15744 }
15745
15746
15747 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15748 PyObject *obj;
15749 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15750 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15751 Py_INCREF(obj);
15752 return Py_BuildValue((char *)"");
15753 }
15754 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj;
15756 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15757 int arg2 = (int) 0 ;
15758 int arg3 = (int) -1 ;
15759 int arg4 = (int) -1 ;
15760 wxNotebookEvent *result;
15761 PyObject * obj0 = 0 ;
15762 PyObject * obj1 = 0 ;
15763 PyObject * obj2 = 0 ;
15764 PyObject * obj3 = 0 ;
15765 char *kwnames[] = {
15766 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15767 };
15768
15769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15770 if (obj0) {
15771 arg1 = (wxEventType)SWIG_As_int(obj0);
15772 if (PyErr_Occurred()) SWIG_fail;
15773 }
15774 if (obj1) {
15775 arg2 = (int)SWIG_As_int(obj1);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 if (obj2) {
15779 arg3 = (int)SWIG_As_int(obj2);
15780 if (PyErr_Occurred()) SWIG_fail;
15781 }
15782 if (obj3) {
15783 arg4 = (int)SWIG_As_int(obj3);
15784 if (PyErr_Occurred()) SWIG_fail;
15785 }
15786 {
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15789
15790 wxPyEndAllowThreads(__tstate);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 }
15793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15794 return resultobj;
15795 fail:
15796 return NULL;
15797 }
15798
15799
15800 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15801 PyObject *obj;
15802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15803 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15804 Py_INCREF(obj);
15805 return Py_BuildValue((char *)"");
15806 }
15807 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15808 PyObject *resultobj;
15809 wxWindow *arg1 = (wxWindow *) 0 ;
15810 int arg2 = (int) -1 ;
15811 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15812 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15813 wxSize const &arg4_defvalue = wxDefaultSize ;
15814 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15815 long arg5 = (long) 0 ;
15816 wxString const &arg6_defvalue = wxPyEmptyString ;
15817 wxString *arg6 = (wxString *) &arg6_defvalue ;
15818 wxListbook *result;
15819 wxPoint temp3 ;
15820 wxSize temp4 ;
15821 bool temp6 = false ;
15822 PyObject * obj0 = 0 ;
15823 PyObject * obj1 = 0 ;
15824 PyObject * obj2 = 0 ;
15825 PyObject * obj3 = 0 ;
15826 PyObject * obj4 = 0 ;
15827 PyObject * obj5 = 0 ;
15828 char *kwnames[] = {
15829 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15830 };
15831
15832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15835 if (obj1) {
15836 arg2 = (int)SWIG_As_int(obj1);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 }
15839 if (obj2) {
15840 {
15841 arg3 = &temp3;
15842 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15843 }
15844 }
15845 if (obj3) {
15846 {
15847 arg4 = &temp4;
15848 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15849 }
15850 }
15851 if (obj4) {
15852 arg5 = (long)SWIG_As_long(obj4);
15853 if (PyErr_Occurred()) SWIG_fail;
15854 }
15855 if (obj5) {
15856 {
15857 arg6 = wxString_in_helper(obj5);
15858 if (arg6 == NULL) SWIG_fail;
15859 temp6 = true;
15860 }
15861 }
15862 {
15863 if (!wxPyCheckForApp()) SWIG_fail;
15864 PyThreadState* __tstate = wxPyBeginAllowThreads();
15865 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15866
15867 wxPyEndAllowThreads(__tstate);
15868 if (PyErr_Occurred()) SWIG_fail;
15869 }
15870 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15871 {
15872 if (temp6)
15873 delete arg6;
15874 }
15875 return resultobj;
15876 fail:
15877 {
15878 if (temp6)
15879 delete arg6;
15880 }
15881 return NULL;
15882 }
15883
15884
15885 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj;
15887 wxListbook *result;
15888 char *kwnames[] = {
15889 NULL
15890 };
15891
15892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15893 {
15894 if (!wxPyCheckForApp()) SWIG_fail;
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 result = (wxListbook *)new wxListbook();
15897
15898 wxPyEndAllowThreads(__tstate);
15899 if (PyErr_Occurred()) SWIG_fail;
15900 }
15901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15902 return resultobj;
15903 fail:
15904 return NULL;
15905 }
15906
15907
15908 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15909 PyObject *resultobj;
15910 wxListbook *arg1 = (wxListbook *) 0 ;
15911 wxWindow *arg2 = (wxWindow *) 0 ;
15912 int arg3 = (int) -1 ;
15913 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15914 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15915 wxSize const &arg5_defvalue = wxDefaultSize ;
15916 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15917 long arg6 = (long) 0 ;
15918 wxString const &arg7_defvalue = wxPyEmptyString ;
15919 wxString *arg7 = (wxString *) &arg7_defvalue ;
15920 bool result;
15921 wxPoint temp4 ;
15922 wxSize temp5 ;
15923 bool temp7 = false ;
15924 PyObject * obj0 = 0 ;
15925 PyObject * obj1 = 0 ;
15926 PyObject * obj2 = 0 ;
15927 PyObject * obj3 = 0 ;
15928 PyObject * obj4 = 0 ;
15929 PyObject * obj5 = 0 ;
15930 PyObject * obj6 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15938 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15940 if (obj2) {
15941 arg3 = (int)SWIG_As_int(obj2);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 if (obj3) {
15945 {
15946 arg4 = &temp4;
15947 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15948 }
15949 }
15950 if (obj4) {
15951 {
15952 arg5 = &temp5;
15953 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15954 }
15955 }
15956 if (obj5) {
15957 arg6 = (long)SWIG_As_long(obj5);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 if (obj6) {
15961 {
15962 arg7 = wxString_in_helper(obj6);
15963 if (arg7 == NULL) SWIG_fail;
15964 temp7 = true;
15965 }
15966 }
15967 {
15968 PyThreadState* __tstate = wxPyBeginAllowThreads();
15969 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15970
15971 wxPyEndAllowThreads(__tstate);
15972 if (PyErr_Occurred()) SWIG_fail;
15973 }
15974 {
15975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15976 }
15977 {
15978 if (temp7)
15979 delete arg7;
15980 }
15981 return resultobj;
15982 fail:
15983 {
15984 if (temp7)
15985 delete arg7;
15986 }
15987 return NULL;
15988 }
15989
15990
15991 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15992 PyObject *resultobj;
15993 wxListbook *arg1 = (wxListbook *) 0 ;
15994 bool result;
15995 PyObject * obj0 = 0 ;
15996 char *kwnames[] = {
15997 (char *) "self", NULL
15998 };
15999
16000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
16001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16003 {
16004 PyThreadState* __tstate = wxPyBeginAllowThreads();
16005 result = (bool)((wxListbook const *)arg1)->IsVertical();
16006
16007 wxPyEndAllowThreads(__tstate);
16008 if (PyErr_Occurred()) SWIG_fail;
16009 }
16010 {
16011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16012 }
16013 return resultobj;
16014 fail:
16015 return NULL;
16016 }
16017
16018
16019 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
16020 PyObject *resultobj;
16021 wxListbook *arg1 = (wxListbook *) 0 ;
16022 wxListView *result;
16023 PyObject * obj0 = 0 ;
16024 char *kwnames[] = {
16025 (char *) "self", NULL
16026 };
16027
16028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
16029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
16030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16031 {
16032 PyThreadState* __tstate = wxPyBeginAllowThreads();
16033 result = (wxListView *)(arg1)->GetListView();
16034
16035 wxPyEndAllowThreads(__tstate);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
16046 PyObject *obj;
16047 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16048 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
16049 Py_INCREF(obj);
16050 return Py_BuildValue((char *)"");
16051 }
16052 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj;
16054 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16055 int arg2 = (int) 0 ;
16056 int arg3 = (int) -1 ;
16057 int arg4 = (int) -1 ;
16058 wxListbookEvent *result;
16059 PyObject * obj0 = 0 ;
16060 PyObject * obj1 = 0 ;
16061 PyObject * obj2 = 0 ;
16062 PyObject * obj3 = 0 ;
16063 char *kwnames[] = {
16064 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16065 };
16066
16067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16068 if (obj0) {
16069 arg1 = (wxEventType)SWIG_As_int(obj0);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 if (obj1) {
16073 arg2 = (int)SWIG_As_int(obj1);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 if (obj2) {
16077 arg3 = (int)SWIG_As_int(obj2);
16078 if (PyErr_Occurred()) SWIG_fail;
16079 }
16080 if (obj3) {
16081 arg4 = (int)SWIG_As_int(obj3);
16082 if (PyErr_Occurred()) SWIG_fail;
16083 }
16084 {
16085 PyThreadState* __tstate = wxPyBeginAllowThreads();
16086 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
16087
16088 wxPyEndAllowThreads(__tstate);
16089 if (PyErr_Occurred()) SWIG_fail;
16090 }
16091 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
16092 return resultobj;
16093 fail:
16094 return NULL;
16095 }
16096
16097
16098 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
16099 PyObject *obj;
16100 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16101 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
16102 Py_INCREF(obj);
16103 return Py_BuildValue((char *)"");
16104 }
16105 static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16106 PyObject *resultobj;
16107 wxWindow *arg1 = (wxWindow *) 0 ;
16108 int arg2 ;
16109 wxPoint const &arg3_defvalue = wxDefaultPosition ;
16110 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
16111 wxSize const &arg4_defvalue = wxDefaultSize ;
16112 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
16113 long arg5 = (long) 0 ;
16114 wxString const &arg6_defvalue = wxPyEmptyString ;
16115 wxString *arg6 = (wxString *) &arg6_defvalue ;
16116 wxChoicebook *result;
16117 wxPoint temp3 ;
16118 wxSize temp4 ;
16119 bool temp6 = false ;
16120 PyObject * obj0 = 0 ;
16121 PyObject * obj1 = 0 ;
16122 PyObject * obj2 = 0 ;
16123 PyObject * obj3 = 0 ;
16124 PyObject * obj4 = 0 ;
16125 PyObject * obj5 = 0 ;
16126 char *kwnames[] = {
16127 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16128 };
16129
16130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16133 arg2 = (int)SWIG_As_int(obj1);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 if (obj2) {
16136 {
16137 arg3 = &temp3;
16138 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16139 }
16140 }
16141 if (obj3) {
16142 {
16143 arg4 = &temp4;
16144 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
16145 }
16146 }
16147 if (obj4) {
16148 arg5 = (long)SWIG_As_long(obj4);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 if (obj5) {
16152 {
16153 arg6 = wxString_in_helper(obj5);
16154 if (arg6 == NULL) SWIG_fail;
16155 temp6 = true;
16156 }
16157 }
16158 {
16159 if (!wxPyCheckForApp()) SWIG_fail;
16160 PyThreadState* __tstate = wxPyBeginAllowThreads();
16161 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
16162
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16167 {
16168 if (temp6)
16169 delete arg6;
16170 }
16171 return resultobj;
16172 fail:
16173 {
16174 if (temp6)
16175 delete arg6;
16176 }
16177 return NULL;
16178 }
16179
16180
16181 static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16182 PyObject *resultobj;
16183 wxChoicebook *result;
16184 char *kwnames[] = {
16185 NULL
16186 };
16187
16188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail;
16189 {
16190 if (!wxPyCheckForApp()) SWIG_fail;
16191 PyThreadState* __tstate = wxPyBeginAllowThreads();
16192 result = (wxChoicebook *)new wxChoicebook();
16193
16194 wxPyEndAllowThreads(__tstate);
16195 if (PyErr_Occurred()) SWIG_fail;
16196 }
16197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16198 return resultobj;
16199 fail:
16200 return NULL;
16201 }
16202
16203
16204 static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
16205 PyObject *resultobj;
16206 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16207 wxWindow *arg2 = (wxWindow *) 0 ;
16208 int arg3 ;
16209 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16210 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16211 wxSize const &arg5_defvalue = wxDefaultSize ;
16212 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16213 long arg6 = (long) 0 ;
16214 wxString const &arg7_defvalue = wxPyEmptyString ;
16215 wxString *arg7 = (wxString *) &arg7_defvalue ;
16216 bool result;
16217 wxPoint temp4 ;
16218 wxSize temp5 ;
16219 bool temp7 = false ;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 PyObject * obj2 = 0 ;
16223 PyObject * obj3 = 0 ;
16224 PyObject * obj4 = 0 ;
16225 PyObject * obj5 = 0 ;
16226 PyObject * obj6 = 0 ;
16227 char *kwnames[] = {
16228 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16229 };
16230
16231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16236 arg3 = (int)SWIG_As_int(obj2);
16237 if (PyErr_Occurred()) SWIG_fail;
16238 if (obj3) {
16239 {
16240 arg4 = &temp4;
16241 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16242 }
16243 }
16244 if (obj4) {
16245 {
16246 arg5 = &temp5;
16247 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16248 }
16249 }
16250 if (obj5) {
16251 arg6 = (long)SWIG_As_long(obj5);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 if (obj6) {
16255 {
16256 arg7 = wxString_in_helper(obj6);
16257 if (arg7 == NULL) SWIG_fail;
16258 temp7 = true;
16259 }
16260 }
16261 {
16262 PyThreadState* __tstate = wxPyBeginAllowThreads();
16263 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
16264
16265 wxPyEndAllowThreads(__tstate);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 {
16269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16270 }
16271 {
16272 if (temp7)
16273 delete arg7;
16274 }
16275 return resultobj;
16276 fail:
16277 {
16278 if (temp7)
16279 delete arg7;
16280 }
16281 return NULL;
16282 }
16283
16284
16285 static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj;
16287 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16288 bool result;
16289 PyObject * obj0 = 0 ;
16290 char *kwnames[] = {
16291 (char *) "self", NULL
16292 };
16293
16294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail;
16295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (bool)((wxChoicebook const *)arg1)->IsVertical();
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj;
16315 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16316 bool result;
16317 PyObject * obj0 = 0 ;
16318 char *kwnames[] = {
16319 (char *) "self", NULL
16320 };
16321
16322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail;
16323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 result = (bool)(arg1)->DeleteAllPages();
16328
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 {
16333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16334 }
16335 return resultobj;
16336 fail:
16337 return NULL;
16338 }
16339
16340
16341 static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) {
16342 PyObject *obj;
16343 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16344 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj);
16345 Py_INCREF(obj);
16346 return Py_BuildValue((char *)"");
16347 }
16348 static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16349 PyObject *resultobj;
16350 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16351 int arg2 = (int) 0 ;
16352 int arg3 = (int) -1 ;
16353 int arg4 = (int) -1 ;
16354 wxChoicebookEvent *result;
16355 PyObject * obj0 = 0 ;
16356 PyObject * obj1 = 0 ;
16357 PyObject * obj2 = 0 ;
16358 PyObject * obj3 = 0 ;
16359 char *kwnames[] = {
16360 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16361 };
16362
16363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16364 if (obj0) {
16365 arg1 = (wxEventType)SWIG_As_int(obj0);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 if (obj1) {
16369 arg2 = (int)SWIG_As_int(obj1);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 if (obj2) {
16373 arg3 = (int)SWIG_As_int(obj2);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 if (obj3) {
16377 arg4 = (int)SWIG_As_int(obj3);
16378 if (PyErr_Occurred()) SWIG_fail;
16379 }
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1);
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) {
16395 PyObject *obj;
16396 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16397 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj);
16398 Py_INCREF(obj);
16399 return Py_BuildValue((char *)"");
16400 }
16401 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16402 PyObject *resultobj;
16403 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
16404 wxBookCtrlSizer *result;
16405 PyObject * obj0 = 0 ;
16406 char *kwnames[] = {
16407 (char *) "nb", NULL
16408 };
16409
16410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
16411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
16412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
16416
16417 wxPyEndAllowThreads(__tstate);
16418 if (PyErr_Occurred()) SWIG_fail;
16419 }
16420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
16421 return resultobj;
16422 fail:
16423 return NULL;
16424 }
16425
16426
16427 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16428 PyObject *resultobj;
16429 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16430 PyObject * obj0 = 0 ;
16431 char *kwnames[] = {
16432 (char *) "self", NULL
16433 };
16434
16435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16438 {
16439 PyThreadState* __tstate = wxPyBeginAllowThreads();
16440 (arg1)->RecalcSizes();
16441
16442 wxPyEndAllowThreads(__tstate);
16443 if (PyErr_Occurred()) SWIG_fail;
16444 }
16445 Py_INCREF(Py_None); resultobj = Py_None;
16446 return resultobj;
16447 fail:
16448 return NULL;
16449 }
16450
16451
16452 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16453 PyObject *resultobj;
16454 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16455 wxSize result;
16456 PyObject * obj0 = 0 ;
16457 char *kwnames[] = {
16458 (char *) "self", NULL
16459 };
16460
16461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16464 {
16465 PyThreadState* __tstate = wxPyBeginAllowThreads();
16466 result = (arg1)->CalcMin();
16467
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472 wxSize * resultptr;
16473 resultptr = new wxSize((wxSize &) result);
16474 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16475 }
16476 return resultobj;
16477 fail:
16478 return NULL;
16479 }
16480
16481
16482 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16483 PyObject *resultobj;
16484 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16485 wxBookCtrlBase *result;
16486 PyObject * obj0 = 0 ;
16487 char *kwnames[] = {
16488 (char *) "self", NULL
16489 };
16490
16491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = (wxBookCtrlBase *)(arg1)->GetControl();
16497
16498 wxPyEndAllowThreads(__tstate);
16499 if (PyErr_Occurred()) SWIG_fail;
16500 }
16501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0);
16502 return resultobj;
16503 fail:
16504 return NULL;
16505 }
16506
16507
16508 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16509 PyObject *obj;
16510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16511 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16512 Py_INCREF(obj);
16513 return Py_BuildValue((char *)"");
16514 }
16515 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16516 PyObject *resultobj;
16517 wxNotebook *arg1 = (wxNotebook *) 0 ;
16518 wxNotebookSizer *result;
16519 PyObject * obj0 = 0 ;
16520 char *kwnames[] = {
16521 (char *) "nb", NULL
16522 };
16523
16524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16527 {
16528 PyThreadState* __tstate = wxPyBeginAllowThreads();
16529 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16530
16531 wxPyEndAllowThreads(__tstate);
16532 if (PyErr_Occurred()) SWIG_fail;
16533 }
16534 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16535 return resultobj;
16536 fail:
16537 return NULL;
16538 }
16539
16540
16541 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16542 PyObject *resultobj;
16543 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16544 PyObject * obj0 = 0 ;
16545 char *kwnames[] = {
16546 (char *) "self", NULL
16547 };
16548
16549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 (arg1)->RecalcSizes();
16555
16556 wxPyEndAllowThreads(__tstate);
16557 if (PyErr_Occurred()) SWIG_fail;
16558 }
16559 Py_INCREF(Py_None); resultobj = Py_None;
16560 return resultobj;
16561 fail:
16562 return NULL;
16563 }
16564
16565
16566 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16567 PyObject *resultobj;
16568 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16569 wxSize result;
16570 PyObject * obj0 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 result = (arg1)->CalcMin();
16581
16582 wxPyEndAllowThreads(__tstate);
16583 if (PyErr_Occurred()) SWIG_fail;
16584 }
16585 {
16586 wxSize * resultptr;
16587 resultptr = new wxSize((wxSize &) result);
16588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16589 }
16590 return resultobj;
16591 fail:
16592 return NULL;
16593 }
16594
16595
16596 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16597 PyObject *resultobj;
16598 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16599 wxNotebook *result;
16600 PyObject * obj0 = 0 ;
16601 char *kwnames[] = {
16602 (char *) "self", NULL
16603 };
16604
16605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16608 {
16609 PyThreadState* __tstate = wxPyBeginAllowThreads();
16610 result = (wxNotebook *)(arg1)->GetNotebook();
16611
16612 wxPyEndAllowThreads(__tstate);
16613 if (PyErr_Occurred()) SWIG_fail;
16614 }
16615 {
16616 resultobj = wxPyMake_wxObject(result, 0);
16617 }
16618 return resultobj;
16619 fail:
16620 return NULL;
16621 }
16622
16623
16624 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16625 PyObject *obj;
16626 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16627 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16628 Py_INCREF(obj);
16629 return Py_BuildValue((char *)"");
16630 }
16631 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16632 PyObject *resultobj;
16633 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16634 int result;
16635 PyObject * obj0 = 0 ;
16636 char *kwnames[] = {
16637 (char *) "self", NULL
16638 };
16639
16640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16643 {
16644 PyThreadState* __tstate = wxPyBeginAllowThreads();
16645 result = (int)(arg1)->GetId();
16646
16647 wxPyEndAllowThreads(__tstate);
16648 if (PyErr_Occurred()) SWIG_fail;
16649 }
16650 resultobj = SWIG_From_int((int)result);
16651 return resultobj;
16652 fail:
16653 return NULL;
16654 }
16655
16656
16657 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16658 PyObject *resultobj;
16659 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16660 wxControl *result;
16661 PyObject * obj0 = 0 ;
16662 char *kwnames[] = {
16663 (char *) "self", NULL
16664 };
16665
16666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16669 {
16670 PyThreadState* __tstate = wxPyBeginAllowThreads();
16671 result = (wxControl *)(arg1)->GetControl();
16672
16673 wxPyEndAllowThreads(__tstate);
16674 if (PyErr_Occurred()) SWIG_fail;
16675 }
16676 {
16677 resultobj = wxPyMake_wxObject(result, 0);
16678 }
16679 return resultobj;
16680 fail:
16681 return NULL;
16682 }
16683
16684
16685 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16686 PyObject *resultobj;
16687 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16688 wxToolBarBase *result;
16689 PyObject * obj0 = 0 ;
16690 char *kwnames[] = {
16691 (char *) "self", NULL
16692 };
16693
16694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16695 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16696 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16697 {
16698 PyThreadState* __tstate = wxPyBeginAllowThreads();
16699 result = (wxToolBarBase *)(arg1)->GetToolBar();
16700
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 resultobj = wxPyMake_wxObject(result, 0);
16706 }
16707 return resultobj;
16708 fail:
16709 return NULL;
16710 }
16711
16712
16713 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16714 PyObject *resultobj;
16715 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16716 int result;
16717 PyObject * obj0 = 0 ;
16718 char *kwnames[] = {
16719 (char *) "self", NULL
16720 };
16721
16722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16725 {
16726 PyThreadState* __tstate = wxPyBeginAllowThreads();
16727 result = (int)(arg1)->IsButton();
16728
16729 wxPyEndAllowThreads(__tstate);
16730 if (PyErr_Occurred()) SWIG_fail;
16731 }
16732 resultobj = SWIG_From_int((int)result);
16733 return resultobj;
16734 fail:
16735 return NULL;
16736 }
16737
16738
16739 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16740 PyObject *resultobj;
16741 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16742 int result;
16743 PyObject * obj0 = 0 ;
16744 char *kwnames[] = {
16745 (char *) "self", NULL
16746 };
16747
16748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16751 {
16752 PyThreadState* __tstate = wxPyBeginAllowThreads();
16753 result = (int)(arg1)->IsControl();
16754
16755 wxPyEndAllowThreads(__tstate);
16756 if (PyErr_Occurred()) SWIG_fail;
16757 }
16758 resultobj = SWIG_From_int((int)result);
16759 return resultobj;
16760 fail:
16761 return NULL;
16762 }
16763
16764
16765 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16766 PyObject *resultobj;
16767 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16768 int result;
16769 PyObject * obj0 = 0 ;
16770 char *kwnames[] = {
16771 (char *) "self", NULL
16772 };
16773
16774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = (int)(arg1)->IsSeparator();
16780
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 resultobj = SWIG_From_int((int)result);
16785 return resultobj;
16786 fail:
16787 return NULL;
16788 }
16789
16790
16791 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16792 PyObject *resultobj;
16793 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16794 int result;
16795 PyObject * obj0 = 0 ;
16796 char *kwnames[] = {
16797 (char *) "self", NULL
16798 };
16799
16800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16803 {
16804 PyThreadState* __tstate = wxPyBeginAllowThreads();
16805 result = (int)(arg1)->GetStyle();
16806
16807 wxPyEndAllowThreads(__tstate);
16808 if (PyErr_Occurred()) SWIG_fail;
16809 }
16810 resultobj = SWIG_From_int((int)result);
16811 return resultobj;
16812 fail:
16813 return NULL;
16814 }
16815
16816
16817 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16818 PyObject *resultobj;
16819 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16820 int result;
16821 PyObject * obj0 = 0 ;
16822 char *kwnames[] = {
16823 (char *) "self", NULL
16824 };
16825
16826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16829 {
16830 PyThreadState* __tstate = wxPyBeginAllowThreads();
16831 result = (int)(arg1)->GetKind();
16832
16833 wxPyEndAllowThreads(__tstate);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 }
16836 resultobj = SWIG_From_int((int)result);
16837 return resultobj;
16838 fail:
16839 return NULL;
16840 }
16841
16842
16843 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16844 PyObject *resultobj;
16845 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16846 bool result;
16847 PyObject * obj0 = 0 ;
16848 char *kwnames[] = {
16849 (char *) "self", NULL
16850 };
16851
16852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = (bool)(arg1)->IsEnabled();
16858
16859 wxPyEndAllowThreads(__tstate);
16860 if (PyErr_Occurred()) SWIG_fail;
16861 }
16862 {
16863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16864 }
16865 return resultobj;
16866 fail:
16867 return NULL;
16868 }
16869
16870
16871 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16872 PyObject *resultobj;
16873 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16874 bool result;
16875 PyObject * obj0 = 0 ;
16876 char *kwnames[] = {
16877 (char *) "self", NULL
16878 };
16879
16880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = (bool)(arg1)->IsToggled();
16886
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 {
16891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16892 }
16893 return resultobj;
16894 fail:
16895 return NULL;
16896 }
16897
16898
16899 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16900 PyObject *resultobj;
16901 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16902 bool result;
16903 PyObject * obj0 = 0 ;
16904 char *kwnames[] = {
16905 (char *) "self", NULL
16906 };
16907
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16911 {
16912 PyThreadState* __tstate = wxPyBeginAllowThreads();
16913 result = (bool)(arg1)->CanBeToggled();
16914
16915 wxPyEndAllowThreads(__tstate);
16916 if (PyErr_Occurred()) SWIG_fail;
16917 }
16918 {
16919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16920 }
16921 return resultobj;
16922 fail:
16923 return NULL;
16924 }
16925
16926
16927 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16928 PyObject *resultobj;
16929 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16930 wxBitmap *result;
16931 PyObject * obj0 = 0 ;
16932 char *kwnames[] = {
16933 (char *) "self", NULL
16934 };
16935
16936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16939 {
16940 PyThreadState* __tstate = wxPyBeginAllowThreads();
16941 {
16942 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16943 result = (wxBitmap *) &_result_ref;
16944 }
16945
16946 wxPyEndAllowThreads(__tstate);
16947 if (PyErr_Occurred()) SWIG_fail;
16948 }
16949 {
16950 wxBitmap* resultptr = new wxBitmap(*result);
16951 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16952 }
16953 return resultobj;
16954 fail:
16955 return NULL;
16956 }
16957
16958
16959 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16960 PyObject *resultobj;
16961 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16962 wxBitmap *result;
16963 PyObject * obj0 = 0 ;
16964 char *kwnames[] = {
16965 (char *) "self", NULL
16966 };
16967
16968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16971 {
16972 PyThreadState* __tstate = wxPyBeginAllowThreads();
16973 {
16974 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16975 result = (wxBitmap *) &_result_ref;
16976 }
16977
16978 wxPyEndAllowThreads(__tstate);
16979 if (PyErr_Occurred()) SWIG_fail;
16980 }
16981 {
16982 wxBitmap* resultptr = new wxBitmap(*result);
16983 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16984 }
16985 return resultobj;
16986 fail:
16987 return NULL;
16988 }
16989
16990
16991 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16992 PyObject *resultobj;
16993 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16994 wxBitmap result;
16995 PyObject * obj0 = 0 ;
16996 char *kwnames[] = {
16997 (char *) "self", NULL
16998 };
16999
17000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
17001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17003 {
17004 PyThreadState* __tstate = wxPyBeginAllowThreads();
17005 result = (arg1)->GetBitmap();
17006
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 {
17011 wxBitmap * resultptr;
17012 resultptr = new wxBitmap((wxBitmap &) result);
17013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17014 }
17015 return resultobj;
17016 fail:
17017 return NULL;
17018 }
17019
17020
17021 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17022 PyObject *resultobj;
17023 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17024 wxString result;
17025 PyObject * obj0 = 0 ;
17026 char *kwnames[] = {
17027 (char *) "self", NULL
17028 };
17029
17030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
17031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17033 {
17034 PyThreadState* __tstate = wxPyBeginAllowThreads();
17035 result = (arg1)->GetLabel();
17036
17037 wxPyEndAllowThreads(__tstate);
17038 if (PyErr_Occurred()) SWIG_fail;
17039 }
17040 {
17041 #if wxUSE_UNICODE
17042 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17043 #else
17044 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17045 #endif
17046 }
17047 return resultobj;
17048 fail:
17049 return NULL;
17050 }
17051
17052
17053 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17054 PyObject *resultobj;
17055 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17056 wxString result;
17057 PyObject * obj0 = 0 ;
17058 char *kwnames[] = {
17059 (char *) "self", NULL
17060 };
17061
17062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
17063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17065 {
17066 PyThreadState* __tstate = wxPyBeginAllowThreads();
17067 result = (arg1)->GetShortHelp();
17068
17069 wxPyEndAllowThreads(__tstate);
17070 if (PyErr_Occurred()) SWIG_fail;
17071 }
17072 {
17073 #if wxUSE_UNICODE
17074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17075 #else
17076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17077 #endif
17078 }
17079 return resultobj;
17080 fail:
17081 return NULL;
17082 }
17083
17084
17085 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj;
17087 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17088 wxString result;
17089 PyObject * obj0 = 0 ;
17090 char *kwnames[] = {
17091 (char *) "self", NULL
17092 };
17093
17094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
17095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17097 {
17098 PyThreadState* __tstate = wxPyBeginAllowThreads();
17099 result = (arg1)->GetLongHelp();
17100
17101 wxPyEndAllowThreads(__tstate);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 }
17104 {
17105 #if wxUSE_UNICODE
17106 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17107 #else
17108 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17109 #endif
17110 }
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj;
17119 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17120 bool arg2 ;
17121 bool result;
17122 PyObject * obj0 = 0 ;
17123 PyObject * obj1 = 0 ;
17124 char *kwnames[] = {
17125 (char *) "self",(char *) "enable", NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
17129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17131 arg2 = (bool)SWIG_As_bool(obj1);
17132 if (PyErr_Occurred()) SWIG_fail;
17133 {
17134 PyThreadState* __tstate = wxPyBeginAllowThreads();
17135 result = (bool)(arg1)->Enable(arg2);
17136
17137 wxPyEndAllowThreads(__tstate);
17138 if (PyErr_Occurred()) SWIG_fail;
17139 }
17140 {
17141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17142 }
17143 return resultobj;
17144 fail:
17145 return NULL;
17146 }
17147
17148
17149 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj;
17151 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17152 PyObject * obj0 = 0 ;
17153 char *kwnames[] = {
17154 (char *) "self", NULL
17155 };
17156
17157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
17158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17160 {
17161 PyThreadState* __tstate = wxPyBeginAllowThreads();
17162 (arg1)->Toggle();
17163
17164 wxPyEndAllowThreads(__tstate);
17165 if (PyErr_Occurred()) SWIG_fail;
17166 }
17167 Py_INCREF(Py_None); resultobj = Py_None;
17168 return resultobj;
17169 fail:
17170 return NULL;
17171 }
17172
17173
17174 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17175 PyObject *resultobj;
17176 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17177 bool arg2 ;
17178 bool result;
17179 PyObject * obj0 = 0 ;
17180 PyObject * obj1 = 0 ;
17181 char *kwnames[] = {
17182 (char *) "self",(char *) "toggle", NULL
17183 };
17184
17185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
17186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17188 arg2 = (bool)SWIG_As_bool(obj1);
17189 if (PyErr_Occurred()) SWIG_fail;
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (bool)(arg1)->SetToggle(arg2);
17193
17194 wxPyEndAllowThreads(__tstate);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 {
17198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17199 }
17200 return resultobj;
17201 fail:
17202 return NULL;
17203 }
17204
17205
17206 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17207 PyObject *resultobj;
17208 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17209 wxString *arg2 = 0 ;
17210 bool result;
17211 bool temp2 = false ;
17212 PyObject * obj0 = 0 ;
17213 PyObject * obj1 = 0 ;
17214 char *kwnames[] = {
17215 (char *) "self",(char *) "help", NULL
17216 };
17217
17218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
17219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17221 {
17222 arg2 = wxString_in_helper(obj1);
17223 if (arg2 == NULL) SWIG_fail;
17224 temp2 = true;
17225 }
17226 {
17227 PyThreadState* __tstate = wxPyBeginAllowThreads();
17228 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
17229
17230 wxPyEndAllowThreads(__tstate);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 }
17233 {
17234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17235 }
17236 {
17237 if (temp2)
17238 delete arg2;
17239 }
17240 return resultobj;
17241 fail:
17242 {
17243 if (temp2)
17244 delete arg2;
17245 }
17246 return NULL;
17247 }
17248
17249
17250 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17251 PyObject *resultobj;
17252 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17253 wxString *arg2 = 0 ;
17254 bool result;
17255 bool temp2 = false ;
17256 PyObject * obj0 = 0 ;
17257 PyObject * obj1 = 0 ;
17258 char *kwnames[] = {
17259 (char *) "self",(char *) "help", NULL
17260 };
17261
17262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
17263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17265 {
17266 arg2 = wxString_in_helper(obj1);
17267 if (arg2 == NULL) SWIG_fail;
17268 temp2 = true;
17269 }
17270 {
17271 PyThreadState* __tstate = wxPyBeginAllowThreads();
17272 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
17273
17274 wxPyEndAllowThreads(__tstate);
17275 if (PyErr_Occurred()) SWIG_fail;
17276 }
17277 {
17278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17279 }
17280 {
17281 if (temp2)
17282 delete arg2;
17283 }
17284 return resultobj;
17285 fail:
17286 {
17287 if (temp2)
17288 delete arg2;
17289 }
17290 return NULL;
17291 }
17292
17293
17294 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17295 PyObject *resultobj;
17296 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17297 wxBitmap *arg2 = 0 ;
17298 PyObject * obj0 = 0 ;
17299 PyObject * obj1 = 0 ;
17300 char *kwnames[] = {
17301 (char *) "self",(char *) "bmp", NULL
17302 };
17303
17304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
17305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17308 SWIG_POINTER_EXCEPTION | 0)) == -1)
17309 SWIG_fail;
17310 if (arg2 == NULL) {
17311 PyErr_SetString(PyExc_TypeError,"null reference");
17312 SWIG_fail;
17313 }
17314 {
17315 PyThreadState* __tstate = wxPyBeginAllowThreads();
17316 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
17317
17318 wxPyEndAllowThreads(__tstate);
17319 if (PyErr_Occurred()) SWIG_fail;
17320 }
17321 Py_INCREF(Py_None); resultobj = Py_None;
17322 return resultobj;
17323 fail:
17324 return NULL;
17325 }
17326
17327
17328 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17329 PyObject *resultobj;
17330 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17331 wxBitmap *arg2 = 0 ;
17332 PyObject * obj0 = 0 ;
17333 PyObject * obj1 = 0 ;
17334 char *kwnames[] = {
17335 (char *) "self",(char *) "bmp", NULL
17336 };
17337
17338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
17339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1)
17343 SWIG_fail;
17344 if (arg2 == NULL) {
17345 PyErr_SetString(PyExc_TypeError,"null reference");
17346 SWIG_fail;
17347 }
17348 {
17349 PyThreadState* __tstate = wxPyBeginAllowThreads();
17350 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
17351
17352 wxPyEndAllowThreads(__tstate);
17353 if (PyErr_Occurred()) SWIG_fail;
17354 }
17355 Py_INCREF(Py_None); resultobj = Py_None;
17356 return resultobj;
17357 fail:
17358 return NULL;
17359 }
17360
17361
17362 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj;
17364 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17365 wxString *arg2 = 0 ;
17366 bool temp2 = false ;
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 char *kwnames[] = {
17370 (char *) "self",(char *) "label", NULL
17371 };
17372
17373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
17374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17376 {
17377 arg2 = wxString_in_helper(obj1);
17378 if (arg2 == NULL) SWIG_fail;
17379 temp2 = true;
17380 }
17381 {
17382 PyThreadState* __tstate = wxPyBeginAllowThreads();
17383 (arg1)->SetLabel((wxString const &)*arg2);
17384
17385 wxPyEndAllowThreads(__tstate);
17386 if (PyErr_Occurred()) SWIG_fail;
17387 }
17388 Py_INCREF(Py_None); resultobj = Py_None;
17389 {
17390 if (temp2)
17391 delete arg2;
17392 }
17393 return resultobj;
17394 fail:
17395 {
17396 if (temp2)
17397 delete arg2;
17398 }
17399 return NULL;
17400 }
17401
17402
17403 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
17404 PyObject *resultobj;
17405 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17406 PyObject * obj0 = 0 ;
17407 char *kwnames[] = {
17408 (char *) "self", NULL
17409 };
17410
17411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
17412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17414 {
17415 PyThreadState* __tstate = wxPyBeginAllowThreads();
17416 (arg1)->Detach();
17417
17418 wxPyEndAllowThreads(__tstate);
17419 if (PyErr_Occurred()) SWIG_fail;
17420 }
17421 Py_INCREF(Py_None); resultobj = Py_None;
17422 return resultobj;
17423 fail:
17424 return NULL;
17425 }
17426
17427
17428 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
17429 PyObject *resultobj;
17430 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17431 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
17432 PyObject * obj0 = 0 ;
17433 PyObject * obj1 = 0 ;
17434 char *kwnames[] = {
17435 (char *) "self",(char *) "tbar", NULL
17436 };
17437
17438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
17439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
17442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 (arg1)->Attach(arg2);
17446
17447 wxPyEndAllowThreads(__tstate);
17448 if (PyErr_Occurred()) SWIG_fail;
17449 }
17450 Py_INCREF(Py_None); resultobj = Py_None;
17451 return resultobj;
17452 fail:
17453 return NULL;
17454 }
17455
17456
17457 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj;
17459 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17460 PyObject *result;
17461 PyObject * obj0 = 0 ;
17462 char *kwnames[] = {
17463 (char *) "self", NULL
17464 };
17465
17466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17469 {
17470 PyThreadState* __tstate = wxPyBeginAllowThreads();
17471 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17472
17473 wxPyEndAllowThreads(__tstate);
17474 if (PyErr_Occurred()) SWIG_fail;
17475 }
17476 resultobj = result;
17477 return resultobj;
17478 fail:
17479 return NULL;
17480 }
17481
17482
17483 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17484 PyObject *resultobj;
17485 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17486 PyObject *arg2 = (PyObject *) 0 ;
17487 PyObject * obj0 = 0 ;
17488 PyObject * obj1 = 0 ;
17489 char *kwnames[] = {
17490 (char *) "self",(char *) "clientData", NULL
17491 };
17492
17493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17496 arg2 = obj1;
17497 {
17498 PyThreadState* __tstate = wxPyBeginAllowThreads();
17499 wxToolBarToolBase_SetClientData(arg1,arg2);
17500
17501 wxPyEndAllowThreads(__tstate);
17502 if (PyErr_Occurred()) SWIG_fail;
17503 }
17504 Py_INCREF(Py_None); resultobj = Py_None;
17505 return resultobj;
17506 fail:
17507 return NULL;
17508 }
17509
17510
17511 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17512 PyObject *obj;
17513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17514 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17515 Py_INCREF(obj);
17516 return Py_BuildValue((char *)"");
17517 }
17518 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj;
17520 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17521 int arg2 ;
17522 wxString *arg3 = 0 ;
17523 wxBitmap *arg4 = 0 ;
17524 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17525 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17526 int arg6 = (int) wxITEM_NORMAL ;
17527 wxString const &arg7_defvalue = wxPyEmptyString ;
17528 wxString *arg7 = (wxString *) &arg7_defvalue ;
17529 wxString const &arg8_defvalue = wxPyEmptyString ;
17530 wxString *arg8 = (wxString *) &arg8_defvalue ;
17531 PyObject *arg9 = (PyObject *) NULL ;
17532 wxToolBarToolBase *result;
17533 bool temp3 = false ;
17534 bool temp7 = false ;
17535 bool temp8 = false ;
17536 PyObject * obj0 = 0 ;
17537 PyObject * obj1 = 0 ;
17538 PyObject * obj2 = 0 ;
17539 PyObject * obj3 = 0 ;
17540 PyObject * obj4 = 0 ;
17541 PyObject * obj5 = 0 ;
17542 PyObject * obj6 = 0 ;
17543 PyObject * obj7 = 0 ;
17544 PyObject * obj8 = 0 ;
17545 char *kwnames[] = {
17546 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17547 };
17548
17549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17552 arg2 = (int)SWIG_As_int(obj1);
17553 if (PyErr_Occurred()) SWIG_fail;
17554 {
17555 arg3 = wxString_in_helper(obj2);
17556 if (arg3 == NULL) SWIG_fail;
17557 temp3 = true;
17558 }
17559 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17560 SWIG_POINTER_EXCEPTION | 0)) == -1)
17561 SWIG_fail;
17562 if (arg4 == NULL) {
17563 PyErr_SetString(PyExc_TypeError,"null reference");
17564 SWIG_fail;
17565 }
17566 if (obj4) {
17567 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17568 SWIG_POINTER_EXCEPTION | 0)) == -1)
17569 SWIG_fail;
17570 if (arg5 == NULL) {
17571 PyErr_SetString(PyExc_TypeError,"null reference");
17572 SWIG_fail;
17573 }
17574 }
17575 if (obj5) {
17576 arg6 = (int)SWIG_As_int(obj5);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 if (obj6) {
17580 {
17581 arg7 = wxString_in_helper(obj6);
17582 if (arg7 == NULL) SWIG_fail;
17583 temp7 = true;
17584 }
17585 }
17586 if (obj7) {
17587 {
17588 arg8 = wxString_in_helper(obj7);
17589 if (arg8 == NULL) SWIG_fail;
17590 temp8 = true;
17591 }
17592 }
17593 if (obj8) {
17594 arg9 = obj8;
17595 }
17596 {
17597 PyThreadState* __tstate = wxPyBeginAllowThreads();
17598 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17599
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 {
17604 resultobj = wxPyMake_wxObject(result, 0);
17605 }
17606 {
17607 if (temp3)
17608 delete arg3;
17609 }
17610 {
17611 if (temp7)
17612 delete arg7;
17613 }
17614 {
17615 if (temp8)
17616 delete arg8;
17617 }
17618 return resultobj;
17619 fail:
17620 {
17621 if (temp3)
17622 delete arg3;
17623 }
17624 {
17625 if (temp7)
17626 delete arg7;
17627 }
17628 {
17629 if (temp8)
17630 delete arg8;
17631 }
17632 return NULL;
17633 }
17634
17635
17636 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17637 PyObject *resultobj;
17638 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17639 size_t arg2 ;
17640 int arg3 ;
17641 wxString *arg4 = 0 ;
17642 wxBitmap *arg5 = 0 ;
17643 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17644 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17645 int arg7 = (int) wxITEM_NORMAL ;
17646 wxString const &arg8_defvalue = wxPyEmptyString ;
17647 wxString *arg8 = (wxString *) &arg8_defvalue ;
17648 wxString const &arg9_defvalue = wxPyEmptyString ;
17649 wxString *arg9 = (wxString *) &arg9_defvalue ;
17650 PyObject *arg10 = (PyObject *) NULL ;
17651 wxToolBarToolBase *result;
17652 bool temp4 = false ;
17653 bool temp8 = false ;
17654 bool temp9 = false ;
17655 PyObject * obj0 = 0 ;
17656 PyObject * obj1 = 0 ;
17657 PyObject * obj2 = 0 ;
17658 PyObject * obj3 = 0 ;
17659 PyObject * obj4 = 0 ;
17660 PyObject * obj5 = 0 ;
17661 PyObject * obj6 = 0 ;
17662 PyObject * obj7 = 0 ;
17663 PyObject * obj8 = 0 ;
17664 PyObject * obj9 = 0 ;
17665 char *kwnames[] = {
17666 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17667 };
17668
17669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17672 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17673 if (PyErr_Occurred()) SWIG_fail;
17674 arg3 = (int)SWIG_As_int(obj2);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 {
17677 arg4 = wxString_in_helper(obj3);
17678 if (arg4 == NULL) SWIG_fail;
17679 temp4 = true;
17680 }
17681 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17682 SWIG_POINTER_EXCEPTION | 0)) == -1)
17683 SWIG_fail;
17684 if (arg5 == NULL) {
17685 PyErr_SetString(PyExc_TypeError,"null reference");
17686 SWIG_fail;
17687 }
17688 if (obj5) {
17689 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17690 SWIG_POINTER_EXCEPTION | 0)) == -1)
17691 SWIG_fail;
17692 if (arg6 == NULL) {
17693 PyErr_SetString(PyExc_TypeError,"null reference");
17694 SWIG_fail;
17695 }
17696 }
17697 if (obj6) {
17698 arg7 = (int)SWIG_As_int(obj6);
17699 if (PyErr_Occurred()) SWIG_fail;
17700 }
17701 if (obj7) {
17702 {
17703 arg8 = wxString_in_helper(obj7);
17704 if (arg8 == NULL) SWIG_fail;
17705 temp8 = true;
17706 }
17707 }
17708 if (obj8) {
17709 {
17710 arg9 = wxString_in_helper(obj8);
17711 if (arg9 == NULL) SWIG_fail;
17712 temp9 = true;
17713 }
17714 }
17715 if (obj9) {
17716 arg10 = obj9;
17717 }
17718 {
17719 PyThreadState* __tstate = wxPyBeginAllowThreads();
17720 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);
17721
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 {
17726 resultobj = wxPyMake_wxObject(result, 0);
17727 }
17728 {
17729 if (temp4)
17730 delete arg4;
17731 }
17732 {
17733 if (temp8)
17734 delete arg8;
17735 }
17736 {
17737 if (temp9)
17738 delete arg9;
17739 }
17740 return resultobj;
17741 fail:
17742 {
17743 if (temp4)
17744 delete arg4;
17745 }
17746 {
17747 if (temp8)
17748 delete arg8;
17749 }
17750 {
17751 if (temp9)
17752 delete arg9;
17753 }
17754 return NULL;
17755 }
17756
17757
17758 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17759 PyObject *resultobj;
17760 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17761 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17762 wxToolBarToolBase *result;
17763 PyObject * obj0 = 0 ;
17764 PyObject * obj1 = 0 ;
17765 char *kwnames[] = {
17766 (char *) "self",(char *) "tool", NULL
17767 };
17768
17769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17774 {
17775 PyThreadState* __tstate = wxPyBeginAllowThreads();
17776 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17777
17778 wxPyEndAllowThreads(__tstate);
17779 if (PyErr_Occurred()) SWIG_fail;
17780 }
17781 {
17782 resultobj = wxPyMake_wxObject(result, 0);
17783 }
17784 return resultobj;
17785 fail:
17786 return NULL;
17787 }
17788
17789
17790 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17791 PyObject *resultobj;
17792 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17793 size_t arg2 ;
17794 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17795 wxToolBarToolBase *result;
17796 PyObject * obj0 = 0 ;
17797 PyObject * obj1 = 0 ;
17798 PyObject * obj2 = 0 ;
17799 char *kwnames[] = {
17800 (char *) "self",(char *) "pos",(char *) "tool", NULL
17801 };
17802
17803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17806 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17807 if (PyErr_Occurred()) SWIG_fail;
17808 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 {
17818 resultobj = wxPyMake_wxObject(result, 0);
17819 }
17820 return resultobj;
17821 fail:
17822 return NULL;
17823 }
17824
17825
17826 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17827 PyObject *resultobj;
17828 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17829 wxControl *arg2 = (wxControl *) 0 ;
17830 wxToolBarToolBase *result;
17831 PyObject * obj0 = 0 ;
17832 PyObject * obj1 = 0 ;
17833 char *kwnames[] = {
17834 (char *) "self",(char *) "control", NULL
17835 };
17836
17837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17845
17846 wxPyEndAllowThreads(__tstate);
17847 if (PyErr_Occurred()) SWIG_fail;
17848 }
17849 {
17850 resultobj = wxPyMake_wxObject(result, 0);
17851 }
17852 return resultobj;
17853 fail:
17854 return NULL;
17855 }
17856
17857
17858 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj;
17860 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17861 size_t arg2 ;
17862 wxControl *arg3 = (wxControl *) 0 ;
17863 wxToolBarToolBase *result;
17864 PyObject * obj0 = 0 ;
17865 PyObject * obj1 = 0 ;
17866 PyObject * obj2 = 0 ;
17867 char *kwnames[] = {
17868 (char *) "self",(char *) "pos",(char *) "control", NULL
17869 };
17870
17871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17874 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17878 {
17879 PyThreadState* __tstate = wxPyBeginAllowThreads();
17880 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17881
17882 wxPyEndAllowThreads(__tstate);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 }
17885 {
17886 resultobj = wxPyMake_wxObject(result, 0);
17887 }
17888 return resultobj;
17889 fail:
17890 return NULL;
17891 }
17892
17893
17894 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17895 PyObject *resultobj;
17896 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17897 int arg2 ;
17898 wxControl *result;
17899 PyObject * obj0 = 0 ;
17900 PyObject * obj1 = 0 ;
17901 char *kwnames[] = {
17902 (char *) "self",(char *) "id", NULL
17903 };
17904
17905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17908 arg2 = (int)SWIG_As_int(obj1);
17909 if (PyErr_Occurred()) SWIG_fail;
17910 {
17911 PyThreadState* __tstate = wxPyBeginAllowThreads();
17912 result = (wxControl *)(arg1)->FindControl(arg2);
17913
17914 wxPyEndAllowThreads(__tstate);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 }
17917 {
17918 resultobj = wxPyMake_wxObject(result, 0);
17919 }
17920 return resultobj;
17921 fail:
17922 return NULL;
17923 }
17924
17925
17926 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17927 PyObject *resultobj;
17928 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17929 wxToolBarToolBase *result;
17930 PyObject * obj0 = 0 ;
17931 char *kwnames[] = {
17932 (char *) "self", NULL
17933 };
17934
17935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17938 {
17939 PyThreadState* __tstate = wxPyBeginAllowThreads();
17940 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17941
17942 wxPyEndAllowThreads(__tstate);
17943 if (PyErr_Occurred()) SWIG_fail;
17944 }
17945 {
17946 resultobj = wxPyMake_wxObject(result, 0);
17947 }
17948 return resultobj;
17949 fail:
17950 return NULL;
17951 }
17952
17953
17954 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17955 PyObject *resultobj;
17956 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17957 size_t arg2 ;
17958 wxToolBarToolBase *result;
17959 PyObject * obj0 = 0 ;
17960 PyObject * obj1 = 0 ;
17961 char *kwnames[] = {
17962 (char *) "self",(char *) "pos", NULL
17963 };
17964
17965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17968 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 {
17971 PyThreadState* __tstate = wxPyBeginAllowThreads();
17972 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17973
17974 wxPyEndAllowThreads(__tstate);
17975 if (PyErr_Occurred()) SWIG_fail;
17976 }
17977 {
17978 resultobj = wxPyMake_wxObject(result, 0);
17979 }
17980 return resultobj;
17981 fail:
17982 return NULL;
17983 }
17984
17985
17986 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj;
17988 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17989 int arg2 ;
17990 wxToolBarToolBase *result;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self",(char *) "id", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18000 arg2 = (int)SWIG_As_int(obj1);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 {
18003 PyThreadState* __tstate = wxPyBeginAllowThreads();
18004 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
18005
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 {
18010 resultobj = wxPyMake_wxObject(result, 0);
18011 }
18012 return resultobj;
18013 fail:
18014 return NULL;
18015 }
18016
18017
18018 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
18019 PyObject *resultobj;
18020 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18021 size_t arg2 ;
18022 bool result;
18023 PyObject * obj0 = 0 ;
18024 PyObject * obj1 = 0 ;
18025 char *kwnames[] = {
18026 (char *) "self",(char *) "pos", NULL
18027 };
18028
18029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
18030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18032 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
18033 if (PyErr_Occurred()) SWIG_fail;
18034 {
18035 PyThreadState* __tstate = wxPyBeginAllowThreads();
18036 result = (bool)(arg1)->DeleteToolByPos(arg2);
18037
18038 wxPyEndAllowThreads(__tstate);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 }
18041 {
18042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18043 }
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj;
18052 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18053 int arg2 ;
18054 bool result;
18055 PyObject * obj0 = 0 ;
18056 PyObject * obj1 = 0 ;
18057 char *kwnames[] = {
18058 (char *) "self",(char *) "id", NULL
18059 };
18060
18061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
18062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18064 arg2 = (int)SWIG_As_int(obj1);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 {
18067 PyThreadState* __tstate = wxPyBeginAllowThreads();
18068 result = (bool)(arg1)->DeleteTool(arg2);
18069
18070 wxPyEndAllowThreads(__tstate);
18071 if (PyErr_Occurred()) SWIG_fail;
18072 }
18073 {
18074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18075 }
18076 return resultobj;
18077 fail:
18078 return NULL;
18079 }
18080
18081
18082 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
18083 PyObject *resultobj;
18084 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18085 PyObject * obj0 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 {
18094 PyThreadState* __tstate = wxPyBeginAllowThreads();
18095 (arg1)->ClearTools();
18096
18097 wxPyEndAllowThreads(__tstate);
18098 if (PyErr_Occurred()) SWIG_fail;
18099 }
18100 Py_INCREF(Py_None); resultobj = Py_None;
18101 return resultobj;
18102 fail:
18103 return NULL;
18104 }
18105
18106
18107 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
18108 PyObject *resultobj;
18109 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18110 bool result;
18111 PyObject * obj0 = 0 ;
18112 char *kwnames[] = {
18113 (char *) "self", NULL
18114 };
18115
18116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
18117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18119 {
18120 PyThreadState* __tstate = wxPyBeginAllowThreads();
18121 result = (bool)(arg1)->Realize();
18122
18123 wxPyEndAllowThreads(__tstate);
18124 if (PyErr_Occurred()) SWIG_fail;
18125 }
18126 {
18127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18128 }
18129 return resultobj;
18130 fail:
18131 return NULL;
18132 }
18133
18134
18135 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
18136 PyObject *resultobj;
18137 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18138 int arg2 ;
18139 bool arg3 ;
18140 PyObject * obj0 = 0 ;
18141 PyObject * obj1 = 0 ;
18142 PyObject * obj2 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "self",(char *) "id",(char *) "enable", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18150 arg2 = (int)SWIG_As_int(obj1);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 arg3 = (bool)SWIG_As_bool(obj2);
18153 if (PyErr_Occurred()) SWIG_fail;
18154 {
18155 PyThreadState* __tstate = wxPyBeginAllowThreads();
18156 (arg1)->EnableTool(arg2,arg3);
18157
18158 wxPyEndAllowThreads(__tstate);
18159 if (PyErr_Occurred()) SWIG_fail;
18160 }
18161 Py_INCREF(Py_None); resultobj = Py_None;
18162 return resultobj;
18163 fail:
18164 return NULL;
18165 }
18166
18167
18168 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
18169 PyObject *resultobj;
18170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18171 int arg2 ;
18172 bool arg3 ;
18173 PyObject * obj0 = 0 ;
18174 PyObject * obj1 = 0 ;
18175 PyObject * obj2 = 0 ;
18176 char *kwnames[] = {
18177 (char *) "self",(char *) "id",(char *) "toggle", NULL
18178 };
18179
18180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18183 arg2 = (int)SWIG_As_int(obj1);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 arg3 = (bool)SWIG_As_bool(obj2);
18186 if (PyErr_Occurred()) SWIG_fail;
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 (arg1)->ToggleTool(arg2,arg3);
18190
18191 wxPyEndAllowThreads(__tstate);
18192 if (PyErr_Occurred()) SWIG_fail;
18193 }
18194 Py_INCREF(Py_None); resultobj = Py_None;
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj;
18203 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18204 int arg2 ;
18205 bool arg3 ;
18206 PyObject * obj0 = 0 ;
18207 PyObject * obj1 = 0 ;
18208 PyObject * obj2 = 0 ;
18209 char *kwnames[] = {
18210 (char *) "self",(char *) "id",(char *) "toggle", NULL
18211 };
18212
18213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
18214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18216 arg2 = (int)SWIG_As_int(obj1);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 arg3 = (bool)SWIG_As_bool(obj2);
18219 if (PyErr_Occurred()) SWIG_fail;
18220 {
18221 PyThreadState* __tstate = wxPyBeginAllowThreads();
18222 (arg1)->SetToggle(arg2,arg3);
18223
18224 wxPyEndAllowThreads(__tstate);
18225 if (PyErr_Occurred()) SWIG_fail;
18226 }
18227 Py_INCREF(Py_None); resultobj = Py_None;
18228 return resultobj;
18229 fail:
18230 return NULL;
18231 }
18232
18233
18234 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18235 PyObject *resultobj;
18236 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18237 int arg2 ;
18238 PyObject *result;
18239 PyObject * obj0 = 0 ;
18240 PyObject * obj1 = 0 ;
18241 char *kwnames[] = {
18242 (char *) "self",(char *) "id", NULL
18243 };
18244
18245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
18246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18248 arg2 = (int)SWIG_As_int(obj1);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 {
18251 PyThreadState* __tstate = wxPyBeginAllowThreads();
18252 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
18253
18254 wxPyEndAllowThreads(__tstate);
18255 if (PyErr_Occurred()) SWIG_fail;
18256 }
18257 resultobj = result;
18258 return resultobj;
18259 fail:
18260 return NULL;
18261 }
18262
18263
18264 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18265 PyObject *resultobj;
18266 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18267 int arg2 ;
18268 PyObject *arg3 = (PyObject *) 0 ;
18269 PyObject * obj0 = 0 ;
18270 PyObject * obj1 = 0 ;
18271 PyObject * obj2 = 0 ;
18272 char *kwnames[] = {
18273 (char *) "self",(char *) "id",(char *) "clientData", NULL
18274 };
18275
18276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
18277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18279 arg2 = (int)SWIG_As_int(obj1);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 arg3 = obj2;
18282 {
18283 PyThreadState* __tstate = wxPyBeginAllowThreads();
18284 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
18285
18286 wxPyEndAllowThreads(__tstate);
18287 if (PyErr_Occurred()) SWIG_fail;
18288 }
18289 Py_INCREF(Py_None); resultobj = Py_None;
18290 return resultobj;
18291 fail:
18292 return NULL;
18293 }
18294
18295
18296 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
18297 PyObject *resultobj;
18298 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18299 int arg2 ;
18300 int result;
18301 PyObject * obj0 = 0 ;
18302 PyObject * obj1 = 0 ;
18303 char *kwnames[] = {
18304 (char *) "self",(char *) "id", NULL
18305 };
18306
18307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
18308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18310 arg2 = (int)SWIG_As_int(obj1);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 {
18313 PyThreadState* __tstate = wxPyBeginAllowThreads();
18314 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
18315
18316 wxPyEndAllowThreads(__tstate);
18317 if (PyErr_Occurred()) SWIG_fail;
18318 }
18319 resultobj = SWIG_From_int((int)result);
18320 return resultobj;
18321 fail:
18322 return NULL;
18323 }
18324
18325
18326 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
18327 PyObject *resultobj;
18328 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18329 int arg2 ;
18330 bool result;
18331 PyObject * obj0 = 0 ;
18332 PyObject * obj1 = 0 ;
18333 char *kwnames[] = {
18334 (char *) "self",(char *) "id", NULL
18335 };
18336
18337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
18338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18340 arg2 = (int)SWIG_As_int(obj1);
18341 if (PyErr_Occurred()) SWIG_fail;
18342 {
18343 PyThreadState* __tstate = wxPyBeginAllowThreads();
18344 result = (bool)(arg1)->GetToolState(arg2);
18345
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 {
18350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18351 }
18352 return resultobj;
18353 fail:
18354 return NULL;
18355 }
18356
18357
18358 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18359 PyObject *resultobj;
18360 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18361 int arg2 ;
18362 bool result;
18363 PyObject * obj0 = 0 ;
18364 PyObject * obj1 = 0 ;
18365 char *kwnames[] = {
18366 (char *) "self",(char *) "id", NULL
18367 };
18368
18369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
18370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18372 arg2 = (int)SWIG_As_int(obj1);
18373 if (PyErr_Occurred()) SWIG_fail;
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 result = (bool)(arg1)->GetToolEnabled(arg2);
18377
18378 wxPyEndAllowThreads(__tstate);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 {
18382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18383 }
18384 return resultobj;
18385 fail:
18386 return NULL;
18387 }
18388
18389
18390 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18391 PyObject *resultobj;
18392 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18393 int arg2 ;
18394 wxString *arg3 = 0 ;
18395 bool temp3 = false ;
18396 PyObject * obj0 = 0 ;
18397 PyObject * obj1 = 0 ;
18398 PyObject * obj2 = 0 ;
18399 char *kwnames[] = {
18400 (char *) "self",(char *) "id",(char *) "helpString", NULL
18401 };
18402
18403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18406 arg2 = (int)SWIG_As_int(obj1);
18407 if (PyErr_Occurred()) SWIG_fail;
18408 {
18409 arg3 = wxString_in_helper(obj2);
18410 if (arg3 == NULL) SWIG_fail;
18411 temp3 = true;
18412 }
18413 {
18414 PyThreadState* __tstate = wxPyBeginAllowThreads();
18415 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
18416
18417 wxPyEndAllowThreads(__tstate);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 }
18420 Py_INCREF(Py_None); resultobj = Py_None;
18421 {
18422 if (temp3)
18423 delete arg3;
18424 }
18425 return resultobj;
18426 fail:
18427 {
18428 if (temp3)
18429 delete arg3;
18430 }
18431 return NULL;
18432 }
18433
18434
18435 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj;
18437 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18438 int arg2 ;
18439 wxString result;
18440 PyObject * obj0 = 0 ;
18441 PyObject * obj1 = 0 ;
18442 char *kwnames[] = {
18443 (char *) "self",(char *) "id", NULL
18444 };
18445
18446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) 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 {
18452 PyThreadState* __tstate = wxPyBeginAllowThreads();
18453 result = (arg1)->GetToolShortHelp(arg2);
18454
18455 wxPyEndAllowThreads(__tstate);
18456 if (PyErr_Occurred()) SWIG_fail;
18457 }
18458 {
18459 #if wxUSE_UNICODE
18460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18461 #else
18462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18463 #endif
18464 }
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18472 PyObject *resultobj;
18473 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18474 int arg2 ;
18475 wxString *arg3 = 0 ;
18476 bool temp3 = false ;
18477 PyObject * obj0 = 0 ;
18478 PyObject * obj1 = 0 ;
18479 PyObject * obj2 = 0 ;
18480 char *kwnames[] = {
18481 (char *) "self",(char *) "id",(char *) "helpString", NULL
18482 };
18483
18484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18487 arg2 = (int)SWIG_As_int(obj1);
18488 if (PyErr_Occurred()) SWIG_fail;
18489 {
18490 arg3 = wxString_in_helper(obj2);
18491 if (arg3 == NULL) SWIG_fail;
18492 temp3 = true;
18493 }
18494 {
18495 PyThreadState* __tstate = wxPyBeginAllowThreads();
18496 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18497
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 Py_INCREF(Py_None); resultobj = Py_None;
18502 {
18503 if (temp3)
18504 delete arg3;
18505 }
18506 return resultobj;
18507 fail:
18508 {
18509 if (temp3)
18510 delete arg3;
18511 }
18512 return NULL;
18513 }
18514
18515
18516 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj;
18518 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18519 int arg2 ;
18520 wxString result;
18521 PyObject * obj0 = 0 ;
18522 PyObject * obj1 = 0 ;
18523 char *kwnames[] = {
18524 (char *) "self",(char *) "id", NULL
18525 };
18526
18527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18530 arg2 = (int)SWIG_As_int(obj1);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 result = (arg1)->GetToolLongHelp(arg2);
18535
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 {
18540 #if wxUSE_UNICODE
18541 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18542 #else
18543 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18544 #endif
18545 }
18546 return resultobj;
18547 fail:
18548 return NULL;
18549 }
18550
18551
18552 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18553 PyObject *resultobj;
18554 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18555 int arg2 ;
18556 int arg3 ;
18557 PyObject * obj0 = 0 ;
18558 PyObject * obj1 = 0 ;
18559 PyObject * obj2 = 0 ;
18560 char *kwnames[] = {
18561 (char *) "self",(char *) "x",(char *) "y", NULL
18562 };
18563
18564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18567 arg2 = (int)SWIG_As_int(obj1);
18568 if (PyErr_Occurred()) SWIG_fail;
18569 arg3 = (int)SWIG_As_int(obj2);
18570 if (PyErr_Occurred()) SWIG_fail;
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 (arg1)->SetMargins(arg2,arg3);
18574
18575 wxPyEndAllowThreads(__tstate);
18576 if (PyErr_Occurred()) SWIG_fail;
18577 }
18578 Py_INCREF(Py_None); resultobj = Py_None;
18579 return resultobj;
18580 fail:
18581 return NULL;
18582 }
18583
18584
18585 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18586 PyObject *resultobj;
18587 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18588 wxSize *arg2 = 0 ;
18589 wxSize temp2 ;
18590 PyObject * obj0 = 0 ;
18591 PyObject * obj1 = 0 ;
18592 char *kwnames[] = {
18593 (char *) "self",(char *) "size", NULL
18594 };
18595
18596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18599 {
18600 arg2 = &temp2;
18601 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18602 }
18603 {
18604 PyThreadState* __tstate = wxPyBeginAllowThreads();
18605 (arg1)->SetMargins((wxSize const &)*arg2);
18606
18607 wxPyEndAllowThreads(__tstate);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 Py_INCREF(Py_None); resultobj = Py_None;
18611 return resultobj;
18612 fail:
18613 return NULL;
18614 }
18615
18616
18617 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj;
18619 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18620 int arg2 ;
18621 PyObject * obj0 = 0 ;
18622 PyObject * obj1 = 0 ;
18623 char *kwnames[] = {
18624 (char *) "self",(char *) "packing", NULL
18625 };
18626
18627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18630 arg2 = (int)SWIG_As_int(obj1);
18631 if (PyErr_Occurred()) SWIG_fail;
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->SetToolPacking(arg2);
18635
18636 wxPyEndAllowThreads(__tstate);
18637 if (PyErr_Occurred()) SWIG_fail;
18638 }
18639 Py_INCREF(Py_None); resultobj = Py_None;
18640 return resultobj;
18641 fail:
18642 return NULL;
18643 }
18644
18645
18646 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18647 PyObject *resultobj;
18648 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18649 int arg2 ;
18650 PyObject * obj0 = 0 ;
18651 PyObject * obj1 = 0 ;
18652 char *kwnames[] = {
18653 (char *) "self",(char *) "separation", NULL
18654 };
18655
18656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18659 arg2 = (int)SWIG_As_int(obj1);
18660 if (PyErr_Occurred()) SWIG_fail;
18661 {
18662 PyThreadState* __tstate = wxPyBeginAllowThreads();
18663 (arg1)->SetToolSeparation(arg2);
18664
18665 wxPyEndAllowThreads(__tstate);
18666 if (PyErr_Occurred()) SWIG_fail;
18667 }
18668 Py_INCREF(Py_None); resultobj = Py_None;
18669 return resultobj;
18670 fail:
18671 return NULL;
18672 }
18673
18674
18675 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18676 PyObject *resultobj;
18677 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18678 wxSize result;
18679 PyObject * obj0 = 0 ;
18680 char *kwnames[] = {
18681 (char *) "self", NULL
18682 };
18683
18684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18687 {
18688 PyThreadState* __tstate = wxPyBeginAllowThreads();
18689 result = (arg1)->GetToolMargins();
18690
18691 wxPyEndAllowThreads(__tstate);
18692 if (PyErr_Occurred()) SWIG_fail;
18693 }
18694 {
18695 wxSize * resultptr;
18696 resultptr = new wxSize((wxSize &) result);
18697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18698 }
18699 return resultobj;
18700 fail:
18701 return NULL;
18702 }
18703
18704
18705 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18706 PyObject *resultobj;
18707 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18708 wxSize result;
18709 PyObject * obj0 = 0 ;
18710 char *kwnames[] = {
18711 (char *) "self", NULL
18712 };
18713
18714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18717 {
18718 PyThreadState* __tstate = wxPyBeginAllowThreads();
18719 result = (arg1)->GetMargins();
18720
18721 wxPyEndAllowThreads(__tstate);
18722 if (PyErr_Occurred()) SWIG_fail;
18723 }
18724 {
18725 wxSize * resultptr;
18726 resultptr = new wxSize((wxSize &) result);
18727 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18728 }
18729 return resultobj;
18730 fail:
18731 return NULL;
18732 }
18733
18734
18735 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18736 PyObject *resultobj;
18737 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18738 int result;
18739 PyObject * obj0 = 0 ;
18740 char *kwnames[] = {
18741 (char *) "self", NULL
18742 };
18743
18744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 result = (int)(arg1)->GetToolPacking();
18750
18751 wxPyEndAllowThreads(__tstate);
18752 if (PyErr_Occurred()) SWIG_fail;
18753 }
18754 resultobj = SWIG_From_int((int)result);
18755 return resultobj;
18756 fail:
18757 return NULL;
18758 }
18759
18760
18761 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18762 PyObject *resultobj;
18763 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18764 int result;
18765 PyObject * obj0 = 0 ;
18766 char *kwnames[] = {
18767 (char *) "self", NULL
18768 };
18769
18770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18773 {
18774 PyThreadState* __tstate = wxPyBeginAllowThreads();
18775 result = (int)(arg1)->GetToolSeparation();
18776
18777 wxPyEndAllowThreads(__tstate);
18778 if (PyErr_Occurred()) SWIG_fail;
18779 }
18780 resultobj = SWIG_From_int((int)result);
18781 return resultobj;
18782 fail:
18783 return NULL;
18784 }
18785
18786
18787 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18788 PyObject *resultobj;
18789 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18790 int arg2 ;
18791 PyObject * obj0 = 0 ;
18792 PyObject * obj1 = 0 ;
18793 char *kwnames[] = {
18794 (char *) "self",(char *) "nRows", NULL
18795 };
18796
18797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18800 arg2 = (int)SWIG_As_int(obj1);
18801 if (PyErr_Occurred()) SWIG_fail;
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 (arg1)->SetRows(arg2);
18805
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 Py_INCREF(Py_None); resultobj = Py_None;
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj;
18818 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18819 int arg2 ;
18820 int arg3 ;
18821 PyObject * obj0 = 0 ;
18822 PyObject * obj1 = 0 ;
18823 PyObject * obj2 = 0 ;
18824 char *kwnames[] = {
18825 (char *) "self",(char *) "rows",(char *) "cols", NULL
18826 };
18827
18828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18831 arg2 = (int)SWIG_As_int(obj1);
18832 if (PyErr_Occurred()) SWIG_fail;
18833 arg3 = (int)SWIG_As_int(obj2);
18834 if (PyErr_Occurred()) SWIG_fail;
18835 {
18836 PyThreadState* __tstate = wxPyBeginAllowThreads();
18837 (arg1)->SetMaxRowsCols(arg2,arg3);
18838
18839 wxPyEndAllowThreads(__tstate);
18840 if (PyErr_Occurred()) SWIG_fail;
18841 }
18842 Py_INCREF(Py_None); resultobj = Py_None;
18843 return resultobj;
18844 fail:
18845 return NULL;
18846 }
18847
18848
18849 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18850 PyObject *resultobj;
18851 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18852 int result;
18853 PyObject * obj0 = 0 ;
18854 char *kwnames[] = {
18855 (char *) "self", NULL
18856 };
18857
18858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18861 {
18862 PyThreadState* __tstate = wxPyBeginAllowThreads();
18863 result = (int)(arg1)->GetMaxRows();
18864
18865 wxPyEndAllowThreads(__tstate);
18866 if (PyErr_Occurred()) SWIG_fail;
18867 }
18868 resultobj = SWIG_From_int((int)result);
18869 return resultobj;
18870 fail:
18871 return NULL;
18872 }
18873
18874
18875 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18876 PyObject *resultobj;
18877 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18878 int result;
18879 PyObject * obj0 = 0 ;
18880 char *kwnames[] = {
18881 (char *) "self", NULL
18882 };
18883
18884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18887 {
18888 PyThreadState* __tstate = wxPyBeginAllowThreads();
18889 result = (int)(arg1)->GetMaxCols();
18890
18891 wxPyEndAllowThreads(__tstate);
18892 if (PyErr_Occurred()) SWIG_fail;
18893 }
18894 resultobj = SWIG_From_int((int)result);
18895 return resultobj;
18896 fail:
18897 return NULL;
18898 }
18899
18900
18901 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18902 PyObject *resultobj;
18903 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18904 wxSize *arg2 = 0 ;
18905 wxSize temp2 ;
18906 PyObject * obj0 = 0 ;
18907 PyObject * obj1 = 0 ;
18908 char *kwnames[] = {
18909 (char *) "self",(char *) "size", NULL
18910 };
18911
18912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18915 {
18916 arg2 = &temp2;
18917 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18918 }
18919 {
18920 PyThreadState* __tstate = wxPyBeginAllowThreads();
18921 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18922
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 Py_INCREF(Py_None); resultobj = Py_None;
18927 return resultobj;
18928 fail:
18929 return NULL;
18930 }
18931
18932
18933 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18934 PyObject *resultobj;
18935 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18936 wxSize result;
18937 PyObject * obj0 = 0 ;
18938 char *kwnames[] = {
18939 (char *) "self", NULL
18940 };
18941
18942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18945 {
18946 PyThreadState* __tstate = wxPyBeginAllowThreads();
18947 result = (arg1)->GetToolBitmapSize();
18948
18949 wxPyEndAllowThreads(__tstate);
18950 if (PyErr_Occurred()) SWIG_fail;
18951 }
18952 {
18953 wxSize * resultptr;
18954 resultptr = new wxSize((wxSize &) result);
18955 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18956 }
18957 return resultobj;
18958 fail:
18959 return NULL;
18960 }
18961
18962
18963 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18964 PyObject *resultobj;
18965 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18966 wxSize result;
18967 PyObject * obj0 = 0 ;
18968 char *kwnames[] = {
18969 (char *) "self", NULL
18970 };
18971
18972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18975 {
18976 PyThreadState* __tstate = wxPyBeginAllowThreads();
18977 result = (arg1)->GetToolSize();
18978
18979 wxPyEndAllowThreads(__tstate);
18980 if (PyErr_Occurred()) SWIG_fail;
18981 }
18982 {
18983 wxSize * resultptr;
18984 resultptr = new wxSize((wxSize &) result);
18985 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18986 }
18987 return resultobj;
18988 fail:
18989 return NULL;
18990 }
18991
18992
18993 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18994 PyObject *resultobj;
18995 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18996 int arg2 ;
18997 int arg3 ;
18998 wxToolBarToolBase *result;
18999 PyObject * obj0 = 0 ;
19000 PyObject * obj1 = 0 ;
19001 PyObject * obj2 = 0 ;
19002 char *kwnames[] = {
19003 (char *) "self",(char *) "x",(char *) "y", NULL
19004 };
19005
19006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19009 arg2 = (int)SWIG_As_int(obj1);
19010 if (PyErr_Occurred()) SWIG_fail;
19011 arg3 = (int)SWIG_As_int(obj2);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 {
19014 PyThreadState* __tstate = wxPyBeginAllowThreads();
19015 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19016
19017 wxPyEndAllowThreads(__tstate);
19018 if (PyErr_Occurred()) SWIG_fail;
19019 }
19020 {
19021 resultobj = wxPyMake_wxObject(result, 0);
19022 }
19023 return resultobj;
19024 fail:
19025 return NULL;
19026 }
19027
19028
19029 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj;
19031 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
19032 int arg2 ;
19033 wxToolBarToolBase *result;
19034 PyObject * obj0 = 0 ;
19035 PyObject * obj1 = 0 ;
19036 char *kwnames[] = {
19037 (char *) "self",(char *) "toolid", NULL
19038 };
19039
19040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
19041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19043 arg2 = (int)SWIG_As_int(obj1);
19044 if (PyErr_Occurred()) SWIG_fail;
19045 {
19046 PyThreadState* __tstate = wxPyBeginAllowThreads();
19047 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
19048
19049 wxPyEndAllowThreads(__tstate);
19050 if (PyErr_Occurred()) SWIG_fail;
19051 }
19052 {
19053 resultobj = wxPyMake_wxObject(result, 0);
19054 }
19055 return resultobj;
19056 fail:
19057 return NULL;
19058 }
19059
19060
19061 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
19062 PyObject *resultobj;
19063 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
19064 bool result;
19065 PyObject * obj0 = 0 ;
19066 char *kwnames[] = {
19067 (char *) "self", NULL
19068 };
19069
19070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
19071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19073 {
19074 PyThreadState* __tstate = wxPyBeginAllowThreads();
19075 result = (bool)(arg1)->IsVertical();
19076
19077 wxPyEndAllowThreads(__tstate);
19078 if (PyErr_Occurred()) SWIG_fail;
19079 }
19080 {
19081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19082 }
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
19090 PyObject *obj;
19091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19092 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
19093 Py_INCREF(obj);
19094 return Py_BuildValue((char *)"");
19095 }
19096 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19097 PyObject *resultobj;
19098 wxWindow *arg1 = (wxWindow *) 0 ;
19099 int arg2 = (int) -1 ;
19100 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19101 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19102 wxSize const &arg4_defvalue = wxDefaultSize ;
19103 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19104 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19105 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
19106 wxString *arg6 = (wxString *) &arg6_defvalue ;
19107 wxToolBar *result;
19108 wxPoint temp3 ;
19109 wxSize temp4 ;
19110 bool temp6 = false ;
19111 PyObject * obj0 = 0 ;
19112 PyObject * obj1 = 0 ;
19113 PyObject * obj2 = 0 ;
19114 PyObject * obj3 = 0 ;
19115 PyObject * obj4 = 0 ;
19116 PyObject * obj5 = 0 ;
19117 char *kwnames[] = {
19118 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19119 };
19120
19121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19124 if (obj1) {
19125 arg2 = (int)SWIG_As_int(obj1);
19126 if (PyErr_Occurred()) SWIG_fail;
19127 }
19128 if (obj2) {
19129 {
19130 arg3 = &temp3;
19131 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19132 }
19133 }
19134 if (obj3) {
19135 {
19136 arg4 = &temp4;
19137 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19138 }
19139 }
19140 if (obj4) {
19141 arg5 = (long)SWIG_As_long(obj4);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 if (obj5) {
19145 {
19146 arg6 = wxString_in_helper(obj5);
19147 if (arg6 == NULL) SWIG_fail;
19148 temp6 = true;
19149 }
19150 }
19151 {
19152 if (!wxPyCheckForApp()) SWIG_fail;
19153 PyThreadState* __tstate = wxPyBeginAllowThreads();
19154 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
19155
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19160 {
19161 if (temp6)
19162 delete arg6;
19163 }
19164 return resultobj;
19165 fail:
19166 {
19167 if (temp6)
19168 delete arg6;
19169 }
19170 return NULL;
19171 }
19172
19173
19174 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19175 PyObject *resultobj;
19176 wxToolBar *result;
19177 char *kwnames[] = {
19178 NULL
19179 };
19180
19181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
19182 {
19183 if (!wxPyCheckForApp()) SWIG_fail;
19184 PyThreadState* __tstate = wxPyBeginAllowThreads();
19185 result = (wxToolBar *)new wxToolBar();
19186
19187 wxPyEndAllowThreads(__tstate);
19188 if (PyErr_Occurred()) SWIG_fail;
19189 }
19190 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19191 return resultobj;
19192 fail:
19193 return NULL;
19194 }
19195
19196
19197 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
19198 PyObject *resultobj;
19199 wxToolBar *arg1 = (wxToolBar *) 0 ;
19200 wxWindow *arg2 = (wxWindow *) 0 ;
19201 int arg3 = (int) -1 ;
19202 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19203 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19204 wxSize const &arg5_defvalue = wxDefaultSize ;
19205 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19206 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19207 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
19208 wxString *arg7 = (wxString *) &arg7_defvalue ;
19209 bool result;
19210 wxPoint temp4 ;
19211 wxSize temp5 ;
19212 bool temp7 = false ;
19213 PyObject * obj0 = 0 ;
19214 PyObject * obj1 = 0 ;
19215 PyObject * obj2 = 0 ;
19216 PyObject * obj3 = 0 ;
19217 PyObject * obj4 = 0 ;
19218 PyObject * obj5 = 0 ;
19219 PyObject * obj6 = 0 ;
19220 char *kwnames[] = {
19221 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19222 };
19223
19224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19227 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19229 if (obj2) {
19230 arg3 = (int)SWIG_As_int(obj2);
19231 if (PyErr_Occurred()) SWIG_fail;
19232 }
19233 if (obj3) {
19234 {
19235 arg4 = &temp4;
19236 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19237 }
19238 }
19239 if (obj4) {
19240 {
19241 arg5 = &temp5;
19242 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19243 }
19244 }
19245 if (obj5) {
19246 arg6 = (long)SWIG_As_long(obj5);
19247 if (PyErr_Occurred()) SWIG_fail;
19248 }
19249 if (obj6) {
19250 {
19251 arg7 = wxString_in_helper(obj6);
19252 if (arg7 == NULL) SWIG_fail;
19253 temp7 = true;
19254 }
19255 }
19256 {
19257 PyThreadState* __tstate = wxPyBeginAllowThreads();
19258 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
19259
19260 wxPyEndAllowThreads(__tstate);
19261 if (PyErr_Occurred()) SWIG_fail;
19262 }
19263 {
19264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19265 }
19266 {
19267 if (temp7)
19268 delete arg7;
19269 }
19270 return resultobj;
19271 fail:
19272 {
19273 if (temp7)
19274 delete arg7;
19275 }
19276 return NULL;
19277 }
19278
19279
19280 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19281 PyObject *resultobj;
19282 wxToolBar *arg1 = (wxToolBar *) 0 ;
19283 int arg2 ;
19284 int arg3 ;
19285 wxToolBarToolBase *result;
19286 PyObject * obj0 = 0 ;
19287 PyObject * obj1 = 0 ;
19288 PyObject * obj2 = 0 ;
19289 char *kwnames[] = {
19290 (char *) "self",(char *) "x",(char *) "y", NULL
19291 };
19292
19293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19296 arg2 = (int)SWIG_As_int(obj1);
19297 if (PyErr_Occurred()) SWIG_fail;
19298 arg3 = (int)SWIG_As_int(obj2);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 {
19301 PyThreadState* __tstate = wxPyBeginAllowThreads();
19302 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19303
19304 wxPyEndAllowThreads(__tstate);
19305 if (PyErr_Occurred()) SWIG_fail;
19306 }
19307 {
19308 resultobj = wxPyMake_wxObject(result, 0);
19309 }
19310 return resultobj;
19311 fail:
19312 return NULL;
19313 }
19314
19315
19316 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19317 PyObject *resultobj;
19318 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
19319 wxVisualAttributes result;
19320 PyObject * obj0 = 0 ;
19321 char *kwnames[] = {
19322 (char *) "variant", NULL
19323 };
19324
19325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
19326 if (obj0) {
19327 arg1 = (int)SWIG_As_int(obj0);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 }
19330 {
19331 if (!wxPyCheckForApp()) SWIG_fail;
19332 PyThreadState* __tstate = wxPyBeginAllowThreads();
19333 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
19334
19335 wxPyEndAllowThreads(__tstate);
19336 if (PyErr_Occurred()) SWIG_fail;
19337 }
19338 {
19339 wxVisualAttributes * resultptr;
19340 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
19341 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
19342 }
19343 return resultobj;
19344 fail:
19345 return NULL;
19346 }
19347
19348
19349 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
19350 PyObject *obj;
19351 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19352 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
19353 Py_INCREF(obj);
19354 return Py_BuildValue((char *)"");
19355 }
19356 static int _wrap_ListCtrlNameStr_set(PyObject *) {
19357 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
19358 return 1;
19359 }
19360
19361
19362 static PyObject *_wrap_ListCtrlNameStr_get() {
19363 PyObject *pyobj;
19364
19365 {
19366 #if wxUSE_UNICODE
19367 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19368 #else
19369 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19370 #endif
19371 }
19372 return pyobj;
19373 }
19374
19375
19376 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
19377 PyObject *resultobj;
19378 wxColour const &arg1_defvalue = wxNullColour ;
19379 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
19380 wxColour const &arg2_defvalue = wxNullColour ;
19381 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
19382 wxFont const &arg3_defvalue = wxNullFont ;
19383 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
19384 wxListItemAttr *result;
19385 wxColour temp1 ;
19386 wxColour temp2 ;
19387 PyObject * obj0 = 0 ;
19388 PyObject * obj1 = 0 ;
19389 PyObject * obj2 = 0 ;
19390 char *kwnames[] = {
19391 (char *) "colText",(char *) "colBack",(char *) "font", NULL
19392 };
19393
19394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
19395 if (obj0) {
19396 {
19397 arg1 = &temp1;
19398 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
19399 }
19400 }
19401 if (obj1) {
19402 {
19403 arg2 = &temp2;
19404 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19405 }
19406 }
19407 if (obj2) {
19408 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
19409 SWIG_POINTER_EXCEPTION | 0)) == -1)
19410 SWIG_fail;
19411 if (arg3 == NULL) {
19412 PyErr_SetString(PyExc_TypeError,"null reference");
19413 SWIG_fail;
19414 }
19415 }
19416 {
19417 PyThreadState* __tstate = wxPyBeginAllowThreads();
19418 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
19419
19420 wxPyEndAllowThreads(__tstate);
19421 if (PyErr_Occurred()) SWIG_fail;
19422 }
19423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
19424 return resultobj;
19425 fail:
19426 return NULL;
19427 }
19428
19429
19430 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19431 PyObject *resultobj;
19432 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19433 wxColour *arg2 = 0 ;
19434 wxColour temp2 ;
19435 PyObject * obj0 = 0 ;
19436 PyObject * obj1 = 0 ;
19437 char *kwnames[] = {
19438 (char *) "self",(char *) "colText", NULL
19439 };
19440
19441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19444 {
19445 arg2 = &temp2;
19446 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19447 }
19448 {
19449 PyThreadState* __tstate = wxPyBeginAllowThreads();
19450 (arg1)->SetTextColour((wxColour const &)*arg2);
19451
19452 wxPyEndAllowThreads(__tstate);
19453 if (PyErr_Occurred()) SWIG_fail;
19454 }
19455 Py_INCREF(Py_None); resultobj = Py_None;
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj;
19464 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19465 wxColour *arg2 = 0 ;
19466 wxColour temp2 ;
19467 PyObject * obj0 = 0 ;
19468 PyObject * obj1 = 0 ;
19469 char *kwnames[] = {
19470 (char *) "self",(char *) "colBack", NULL
19471 };
19472
19473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19476 {
19477 arg2 = &temp2;
19478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19479 }
19480 {
19481 PyThreadState* __tstate = wxPyBeginAllowThreads();
19482 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19483
19484 wxPyEndAllowThreads(__tstate);
19485 if (PyErr_Occurred()) SWIG_fail;
19486 }
19487 Py_INCREF(Py_None); resultobj = Py_None;
19488 return resultobj;
19489 fail:
19490 return NULL;
19491 }
19492
19493
19494 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19495 PyObject *resultobj;
19496 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19497 wxFont *arg2 = 0 ;
19498 PyObject * obj0 = 0 ;
19499 PyObject * obj1 = 0 ;
19500 char *kwnames[] = {
19501 (char *) "self",(char *) "font", NULL
19502 };
19503
19504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19508 SWIG_POINTER_EXCEPTION | 0)) == -1)
19509 SWIG_fail;
19510 if (arg2 == NULL) {
19511 PyErr_SetString(PyExc_TypeError,"null reference");
19512 SWIG_fail;
19513 }
19514 {
19515 PyThreadState* __tstate = wxPyBeginAllowThreads();
19516 (arg1)->SetFont((wxFont const &)*arg2);
19517
19518 wxPyEndAllowThreads(__tstate);
19519 if (PyErr_Occurred()) SWIG_fail;
19520 }
19521 Py_INCREF(Py_None); resultobj = Py_None;
19522 return resultobj;
19523 fail:
19524 return NULL;
19525 }
19526
19527
19528 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19529 PyObject *resultobj;
19530 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19531 bool result;
19532 PyObject * obj0 = 0 ;
19533 char *kwnames[] = {
19534 (char *) "self", NULL
19535 };
19536
19537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19540 {
19541 PyThreadState* __tstate = wxPyBeginAllowThreads();
19542 result = (bool)(arg1)->HasTextColour();
19543
19544 wxPyEndAllowThreads(__tstate);
19545 if (PyErr_Occurred()) SWIG_fail;
19546 }
19547 {
19548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19549 }
19550 return resultobj;
19551 fail:
19552 return NULL;
19553 }
19554
19555
19556 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19557 PyObject *resultobj;
19558 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19559 bool result;
19560 PyObject * obj0 = 0 ;
19561 char *kwnames[] = {
19562 (char *) "self", NULL
19563 };
19564
19565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19568 {
19569 PyThreadState* __tstate = wxPyBeginAllowThreads();
19570 result = (bool)(arg1)->HasBackgroundColour();
19571
19572 wxPyEndAllowThreads(__tstate);
19573 if (PyErr_Occurred()) SWIG_fail;
19574 }
19575 {
19576 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19577 }
19578 return resultobj;
19579 fail:
19580 return NULL;
19581 }
19582
19583
19584 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj;
19586 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19587 bool result;
19588 PyObject * obj0 = 0 ;
19589 char *kwnames[] = {
19590 (char *) "self", NULL
19591 };
19592
19593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19596 {
19597 PyThreadState* __tstate = wxPyBeginAllowThreads();
19598 result = (bool)(arg1)->HasFont();
19599
19600 wxPyEndAllowThreads(__tstate);
19601 if (PyErr_Occurred()) SWIG_fail;
19602 }
19603 {
19604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19605 }
19606 return resultobj;
19607 fail:
19608 return NULL;
19609 }
19610
19611
19612 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19613 PyObject *resultobj;
19614 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19615 wxColour result;
19616 PyObject * obj0 = 0 ;
19617 char *kwnames[] = {
19618 (char *) "self", NULL
19619 };
19620
19621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19624 {
19625 PyThreadState* __tstate = wxPyBeginAllowThreads();
19626 result = (arg1)->GetTextColour();
19627
19628 wxPyEndAllowThreads(__tstate);
19629 if (PyErr_Occurred()) SWIG_fail;
19630 }
19631 {
19632 wxColour * resultptr;
19633 resultptr = new wxColour((wxColour &) result);
19634 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19635 }
19636 return resultobj;
19637 fail:
19638 return NULL;
19639 }
19640
19641
19642 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19643 PyObject *resultobj;
19644 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19645 wxColour result;
19646 PyObject * obj0 = 0 ;
19647 char *kwnames[] = {
19648 (char *) "self", NULL
19649 };
19650
19651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 result = (arg1)->GetBackgroundColour();
19657
19658 wxPyEndAllowThreads(__tstate);
19659 if (PyErr_Occurred()) SWIG_fail;
19660 }
19661 {
19662 wxColour * resultptr;
19663 resultptr = new wxColour((wxColour &) result);
19664 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19665 }
19666 return resultobj;
19667 fail:
19668 return NULL;
19669 }
19670
19671
19672 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19673 PyObject *resultobj;
19674 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19675 wxFont result;
19676 PyObject * obj0 = 0 ;
19677 char *kwnames[] = {
19678 (char *) "self", NULL
19679 };
19680
19681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19684 {
19685 PyThreadState* __tstate = wxPyBeginAllowThreads();
19686 result = (arg1)->GetFont();
19687
19688 wxPyEndAllowThreads(__tstate);
19689 if (PyErr_Occurred()) SWIG_fail;
19690 }
19691 {
19692 wxFont * resultptr;
19693 resultptr = new wxFont((wxFont &) result);
19694 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19695 }
19696 return resultobj;
19697 fail:
19698 return NULL;
19699 }
19700
19701
19702 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19703 PyObject *resultobj;
19704 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19705 PyObject * obj0 = 0 ;
19706 char *kwnames[] = {
19707 (char *) "self", NULL
19708 };
19709
19710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19713 {
19714 PyThreadState* __tstate = wxPyBeginAllowThreads();
19715 wxListItemAttr_Destroy(arg1);
19716
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 Py_INCREF(Py_None); resultobj = Py_None;
19721 return resultobj;
19722 fail:
19723 return NULL;
19724 }
19725
19726
19727 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19728 PyObject *obj;
19729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19730 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19731 Py_INCREF(obj);
19732 return Py_BuildValue((char *)"");
19733 }
19734 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19735 PyObject *resultobj;
19736 wxListItem *result;
19737 char *kwnames[] = {
19738 NULL
19739 };
19740
19741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 result = (wxListItem *)new wxListItem();
19745
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 {
19750 resultobj = wxPyMake_wxObject(result, 1);
19751 }
19752 return resultobj;
19753 fail:
19754 return NULL;
19755 }
19756
19757
19758 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19759 PyObject *resultobj;
19760 wxListItem *arg1 = (wxListItem *) 0 ;
19761 PyObject * obj0 = 0 ;
19762 char *kwnames[] = {
19763 (char *) "self", NULL
19764 };
19765
19766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19769 {
19770 PyThreadState* __tstate = wxPyBeginAllowThreads();
19771 delete arg1;
19772
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 Py_INCREF(Py_None); resultobj = Py_None;
19777 return resultobj;
19778 fail:
19779 return NULL;
19780 }
19781
19782
19783 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19784 PyObject *resultobj;
19785 wxListItem *arg1 = (wxListItem *) 0 ;
19786 PyObject * obj0 = 0 ;
19787 char *kwnames[] = {
19788 (char *) "self", NULL
19789 };
19790
19791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 (arg1)->Clear();
19797
19798 wxPyEndAllowThreads(__tstate);
19799 if (PyErr_Occurred()) SWIG_fail;
19800 }
19801 Py_INCREF(Py_None); resultobj = Py_None;
19802 return resultobj;
19803 fail:
19804 return NULL;
19805 }
19806
19807
19808 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19809 PyObject *resultobj;
19810 wxListItem *arg1 = (wxListItem *) 0 ;
19811 PyObject * obj0 = 0 ;
19812 char *kwnames[] = {
19813 (char *) "self", NULL
19814 };
19815
19816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19819 {
19820 PyThreadState* __tstate = wxPyBeginAllowThreads();
19821 (arg1)->ClearAttributes();
19822
19823 wxPyEndAllowThreads(__tstate);
19824 if (PyErr_Occurred()) SWIG_fail;
19825 }
19826 Py_INCREF(Py_None); resultobj = Py_None;
19827 return resultobj;
19828 fail:
19829 return NULL;
19830 }
19831
19832
19833 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19834 PyObject *resultobj;
19835 wxListItem *arg1 = (wxListItem *) 0 ;
19836 long arg2 ;
19837 PyObject * obj0 = 0 ;
19838 PyObject * obj1 = 0 ;
19839 char *kwnames[] = {
19840 (char *) "self",(char *) "mask", NULL
19841 };
19842
19843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19846 arg2 = (long)SWIG_As_long(obj1);
19847 if (PyErr_Occurred()) SWIG_fail;
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 (arg1)->SetMask(arg2);
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 Py_INCREF(Py_None); resultobj = Py_None;
19856 return resultobj;
19857 fail:
19858 return NULL;
19859 }
19860
19861
19862 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19863 PyObject *resultobj;
19864 wxListItem *arg1 = (wxListItem *) 0 ;
19865 long arg2 ;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868 char *kwnames[] = {
19869 (char *) "self",(char *) "id", NULL
19870 };
19871
19872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19875 arg2 = (long)SWIG_As_long(obj1);
19876 if (PyErr_Occurred()) SWIG_fail;
19877 {
19878 PyThreadState* __tstate = wxPyBeginAllowThreads();
19879 (arg1)->SetId(arg2);
19880
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 Py_INCREF(Py_None); resultobj = Py_None;
19885 return resultobj;
19886 fail:
19887 return NULL;
19888 }
19889
19890
19891 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19892 PyObject *resultobj;
19893 wxListItem *arg1 = (wxListItem *) 0 ;
19894 int arg2 ;
19895 PyObject * obj0 = 0 ;
19896 PyObject * obj1 = 0 ;
19897 char *kwnames[] = {
19898 (char *) "self",(char *) "col", NULL
19899 };
19900
19901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19904 arg2 = (int)SWIG_As_int(obj1);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 {
19907 PyThreadState* __tstate = wxPyBeginAllowThreads();
19908 (arg1)->SetColumn(arg2);
19909
19910 wxPyEndAllowThreads(__tstate);
19911 if (PyErr_Occurred()) SWIG_fail;
19912 }
19913 Py_INCREF(Py_None); resultobj = Py_None;
19914 return resultobj;
19915 fail:
19916 return NULL;
19917 }
19918
19919
19920 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19921 PyObject *resultobj;
19922 wxListItem *arg1 = (wxListItem *) 0 ;
19923 long arg2 ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self",(char *) "state", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19933 arg2 = (long)SWIG_As_long(obj1);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 (arg1)->SetState(arg2);
19938
19939 wxPyEndAllowThreads(__tstate);
19940 if (PyErr_Occurred()) SWIG_fail;
19941 }
19942 Py_INCREF(Py_None); resultobj = Py_None;
19943 return resultobj;
19944 fail:
19945 return NULL;
19946 }
19947
19948
19949 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19950 PyObject *resultobj;
19951 wxListItem *arg1 = (wxListItem *) 0 ;
19952 long arg2 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 char *kwnames[] = {
19956 (char *) "self",(char *) "stateMask", NULL
19957 };
19958
19959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19962 arg2 = (long)SWIG_As_long(obj1);
19963 if (PyErr_Occurred()) SWIG_fail;
19964 {
19965 PyThreadState* __tstate = wxPyBeginAllowThreads();
19966 (arg1)->SetStateMask(arg2);
19967
19968 wxPyEndAllowThreads(__tstate);
19969 if (PyErr_Occurred()) SWIG_fail;
19970 }
19971 Py_INCREF(Py_None); resultobj = Py_None;
19972 return resultobj;
19973 fail:
19974 return NULL;
19975 }
19976
19977
19978 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj;
19980 wxListItem *arg1 = (wxListItem *) 0 ;
19981 wxString *arg2 = 0 ;
19982 bool temp2 = false ;
19983 PyObject * obj0 = 0 ;
19984 PyObject * obj1 = 0 ;
19985 char *kwnames[] = {
19986 (char *) "self",(char *) "text", NULL
19987 };
19988
19989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19992 {
19993 arg2 = wxString_in_helper(obj1);
19994 if (arg2 == NULL) SWIG_fail;
19995 temp2 = true;
19996 }
19997 {
19998 PyThreadState* __tstate = wxPyBeginAllowThreads();
19999 (arg1)->SetText((wxString const &)*arg2);
20000
20001 wxPyEndAllowThreads(__tstate);
20002 if (PyErr_Occurred()) SWIG_fail;
20003 }
20004 Py_INCREF(Py_None); resultobj = Py_None;
20005 {
20006 if (temp2)
20007 delete arg2;
20008 }
20009 return resultobj;
20010 fail:
20011 {
20012 if (temp2)
20013 delete arg2;
20014 }
20015 return NULL;
20016 }
20017
20018
20019 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20020 PyObject *resultobj;
20021 wxListItem *arg1 = (wxListItem *) 0 ;
20022 int arg2 ;
20023 PyObject * obj0 = 0 ;
20024 PyObject * obj1 = 0 ;
20025 char *kwnames[] = {
20026 (char *) "self",(char *) "image", NULL
20027 };
20028
20029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
20030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20032 arg2 = (int)SWIG_As_int(obj1);
20033 if (PyErr_Occurred()) SWIG_fail;
20034 {
20035 PyThreadState* __tstate = wxPyBeginAllowThreads();
20036 (arg1)->SetImage(arg2);
20037
20038 wxPyEndAllowThreads(__tstate);
20039 if (PyErr_Occurred()) SWIG_fail;
20040 }
20041 Py_INCREF(Py_None); resultobj = Py_None;
20042 return resultobj;
20043 fail:
20044 return NULL;
20045 }
20046
20047
20048 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
20049 PyObject *resultobj;
20050 wxListItem *arg1 = (wxListItem *) 0 ;
20051 long arg2 ;
20052 PyObject * obj0 = 0 ;
20053 PyObject * obj1 = 0 ;
20054 char *kwnames[] = {
20055 (char *) "self",(char *) "data", NULL
20056 };
20057
20058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
20059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20061 arg2 = (long)SWIG_As_long(obj1);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 {
20064 PyThreadState* __tstate = wxPyBeginAllowThreads();
20065 (arg1)->SetData(arg2);
20066
20067 wxPyEndAllowThreads(__tstate);
20068 if (PyErr_Occurred()) SWIG_fail;
20069 }
20070 Py_INCREF(Py_None); resultobj = Py_None;
20071 return resultobj;
20072 fail:
20073 return NULL;
20074 }
20075
20076
20077 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20078 PyObject *resultobj;
20079 wxListItem *arg1 = (wxListItem *) 0 ;
20080 int arg2 ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 char *kwnames[] = {
20084 (char *) "self",(char *) "width", NULL
20085 };
20086
20087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
20088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20090 arg2 = (int)SWIG_As_int(obj1);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 (arg1)->SetWidth(arg2);
20095
20096 wxPyEndAllowThreads(__tstate);
20097 if (PyErr_Occurred()) SWIG_fail;
20098 }
20099 Py_INCREF(Py_None); resultobj = Py_None;
20100 return resultobj;
20101 fail:
20102 return NULL;
20103 }
20104
20105
20106 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20107 PyObject *resultobj;
20108 wxListItem *arg1 = (wxListItem *) 0 ;
20109 int arg2 ;
20110 PyObject * obj0 = 0 ;
20111 PyObject * obj1 = 0 ;
20112 char *kwnames[] = {
20113 (char *) "self",(char *) "align", NULL
20114 };
20115
20116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
20117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20119 arg2 = (int)SWIG_As_int(obj1);
20120 if (PyErr_Occurred()) SWIG_fail;
20121 {
20122 PyThreadState* __tstate = wxPyBeginAllowThreads();
20123 (arg1)->SetAlign((wxListColumnFormat )arg2);
20124
20125 wxPyEndAllowThreads(__tstate);
20126 if (PyErr_Occurred()) SWIG_fail;
20127 }
20128 Py_INCREF(Py_None); resultobj = Py_None;
20129 return resultobj;
20130 fail:
20131 return NULL;
20132 }
20133
20134
20135 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj;
20137 wxListItem *arg1 = (wxListItem *) 0 ;
20138 wxColour *arg2 = 0 ;
20139 wxColour temp2 ;
20140 PyObject * obj0 = 0 ;
20141 PyObject * obj1 = 0 ;
20142 char *kwnames[] = {
20143 (char *) "self",(char *) "colText", NULL
20144 };
20145
20146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
20147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20149 {
20150 arg2 = &temp2;
20151 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20152 }
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 (arg1)->SetTextColour((wxColour const &)*arg2);
20156
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 Py_INCREF(Py_None); resultobj = Py_None;
20161 return resultobj;
20162 fail:
20163 return NULL;
20164 }
20165
20166
20167 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20168 PyObject *resultobj;
20169 wxListItem *arg1 = (wxListItem *) 0 ;
20170 wxColour *arg2 = 0 ;
20171 wxColour temp2 ;
20172 PyObject * obj0 = 0 ;
20173 PyObject * obj1 = 0 ;
20174 char *kwnames[] = {
20175 (char *) "self",(char *) "colBack", NULL
20176 };
20177
20178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20181 {
20182 arg2 = &temp2;
20183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20184 }
20185 {
20186 PyThreadState* __tstate = wxPyBeginAllowThreads();
20187 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
20188
20189 wxPyEndAllowThreads(__tstate);
20190 if (PyErr_Occurred()) SWIG_fail;
20191 }
20192 Py_INCREF(Py_None); resultobj = Py_None;
20193 return resultobj;
20194 fail:
20195 return NULL;
20196 }
20197
20198
20199 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20200 PyObject *resultobj;
20201 wxListItem *arg1 = (wxListItem *) 0 ;
20202 wxFont *arg2 = 0 ;
20203 PyObject * obj0 = 0 ;
20204 PyObject * obj1 = 0 ;
20205 char *kwnames[] = {
20206 (char *) "self",(char *) "font", NULL
20207 };
20208
20209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
20210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
20213 SWIG_POINTER_EXCEPTION | 0)) == -1)
20214 SWIG_fail;
20215 if (arg2 == NULL) {
20216 PyErr_SetString(PyExc_TypeError,"null reference");
20217 SWIG_fail;
20218 }
20219 {
20220 PyThreadState* __tstate = wxPyBeginAllowThreads();
20221 (arg1)->SetFont((wxFont const &)*arg2);
20222
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 Py_INCREF(Py_None); resultobj = Py_None;
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj;
20235 wxListItem *arg1 = (wxListItem *) 0 ;
20236 long result;
20237 PyObject * obj0 = 0 ;
20238 char *kwnames[] = {
20239 (char *) "self", NULL
20240 };
20241
20242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
20243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 result = (long)(arg1)->GetMask();
20248
20249 wxPyEndAllowThreads(__tstate);
20250 if (PyErr_Occurred()) SWIG_fail;
20251 }
20252 resultobj = SWIG_From_long((long)result);
20253 return resultobj;
20254 fail:
20255 return NULL;
20256 }
20257
20258
20259 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
20260 PyObject *resultobj;
20261 wxListItem *arg1 = (wxListItem *) 0 ;
20262 long result;
20263 PyObject * obj0 = 0 ;
20264 char *kwnames[] = {
20265 (char *) "self", NULL
20266 };
20267
20268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
20269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (long)(arg1)->GetId();
20274
20275 wxPyEndAllowThreads(__tstate);
20276 if (PyErr_Occurred()) SWIG_fail;
20277 }
20278 resultobj = SWIG_From_long((long)result);
20279 return resultobj;
20280 fail:
20281 return NULL;
20282 }
20283
20284
20285 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20286 PyObject *resultobj;
20287 wxListItem *arg1 = (wxListItem *) 0 ;
20288 int result;
20289 PyObject * obj0 = 0 ;
20290 char *kwnames[] = {
20291 (char *) "self", NULL
20292 };
20293
20294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
20295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 result = (int)(arg1)->GetColumn();
20300
20301 wxPyEndAllowThreads(__tstate);
20302 if (PyErr_Occurred()) SWIG_fail;
20303 }
20304 resultobj = SWIG_From_int((int)result);
20305 return resultobj;
20306 fail:
20307 return NULL;
20308 }
20309
20310
20311 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
20312 PyObject *resultobj;
20313 wxListItem *arg1 = (wxListItem *) 0 ;
20314 long result;
20315 PyObject * obj0 = 0 ;
20316 char *kwnames[] = {
20317 (char *) "self", NULL
20318 };
20319
20320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
20321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20323 {
20324 PyThreadState* __tstate = wxPyBeginAllowThreads();
20325 result = (long)(arg1)->GetState();
20326
20327 wxPyEndAllowThreads(__tstate);
20328 if (PyErr_Occurred()) SWIG_fail;
20329 }
20330 resultobj = SWIG_From_long((long)result);
20331 return resultobj;
20332 fail:
20333 return NULL;
20334 }
20335
20336
20337 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20338 PyObject *resultobj;
20339 wxListItem *arg1 = (wxListItem *) 0 ;
20340 wxString *result;
20341 PyObject * obj0 = 0 ;
20342 char *kwnames[] = {
20343 (char *) "self", NULL
20344 };
20345
20346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
20347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20349 {
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 {
20352 wxString const &_result_ref = (arg1)->GetText();
20353 result = (wxString *) &_result_ref;
20354 }
20355
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 {
20360 #if wxUSE_UNICODE
20361 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20362 #else
20363 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20364 #endif
20365 }
20366 return resultobj;
20367 fail:
20368 return NULL;
20369 }
20370
20371
20372 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20373 PyObject *resultobj;
20374 wxListItem *arg1 = (wxListItem *) 0 ;
20375 int result;
20376 PyObject * obj0 = 0 ;
20377 char *kwnames[] = {
20378 (char *) "self", NULL
20379 };
20380
20381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
20382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20384 {
20385 PyThreadState* __tstate = wxPyBeginAllowThreads();
20386 result = (int)(arg1)->GetImage();
20387
20388 wxPyEndAllowThreads(__tstate);
20389 if (PyErr_Occurred()) SWIG_fail;
20390 }
20391 resultobj = SWIG_From_int((int)result);
20392 return resultobj;
20393 fail:
20394 return NULL;
20395 }
20396
20397
20398 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
20399 PyObject *resultobj;
20400 wxListItem *arg1 = (wxListItem *) 0 ;
20401 long result;
20402 PyObject * obj0 = 0 ;
20403 char *kwnames[] = {
20404 (char *) "self", NULL
20405 };
20406
20407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
20408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20410 {
20411 PyThreadState* __tstate = wxPyBeginAllowThreads();
20412 result = (long)(arg1)->GetData();
20413
20414 wxPyEndAllowThreads(__tstate);
20415 if (PyErr_Occurred()) SWIG_fail;
20416 }
20417 resultobj = SWIG_From_long((long)result);
20418 return resultobj;
20419 fail:
20420 return NULL;
20421 }
20422
20423
20424 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20425 PyObject *resultobj;
20426 wxListItem *arg1 = (wxListItem *) 0 ;
20427 int result;
20428 PyObject * obj0 = 0 ;
20429 char *kwnames[] = {
20430 (char *) "self", NULL
20431 };
20432
20433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
20434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20436 {
20437 PyThreadState* __tstate = wxPyBeginAllowThreads();
20438 result = (int)(arg1)->GetWidth();
20439
20440 wxPyEndAllowThreads(__tstate);
20441 if (PyErr_Occurred()) SWIG_fail;
20442 }
20443 resultobj = SWIG_From_int((int)result);
20444 return resultobj;
20445 fail:
20446 return NULL;
20447 }
20448
20449
20450 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20451 PyObject *resultobj;
20452 wxListItem *arg1 = (wxListItem *) 0 ;
20453 int result;
20454 PyObject * obj0 = 0 ;
20455 char *kwnames[] = {
20456 (char *) "self", NULL
20457 };
20458
20459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20462 {
20463 PyThreadState* __tstate = wxPyBeginAllowThreads();
20464 result = (int)(arg1)->GetAlign();
20465
20466 wxPyEndAllowThreads(__tstate);
20467 if (PyErr_Occurred()) SWIG_fail;
20468 }
20469 resultobj = SWIG_From_int((int)result);
20470 return resultobj;
20471 fail:
20472 return NULL;
20473 }
20474
20475
20476 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20477 PyObject *resultobj;
20478 wxListItem *arg1 = (wxListItem *) 0 ;
20479 wxListItemAttr *result;
20480 PyObject * obj0 = 0 ;
20481 char *kwnames[] = {
20482 (char *) "self", NULL
20483 };
20484
20485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20488 {
20489 PyThreadState* __tstate = wxPyBeginAllowThreads();
20490 result = (wxListItemAttr *)(arg1)->GetAttributes();
20491
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20503 PyObject *resultobj;
20504 wxListItem *arg1 = (wxListItem *) 0 ;
20505 bool result;
20506 PyObject * obj0 = 0 ;
20507 char *kwnames[] = {
20508 (char *) "self", NULL
20509 };
20510
20511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20514 {
20515 PyThreadState* __tstate = wxPyBeginAllowThreads();
20516 result = (bool)(arg1)->HasAttributes();
20517
20518 wxPyEndAllowThreads(__tstate);
20519 if (PyErr_Occurred()) SWIG_fail;
20520 }
20521 {
20522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20523 }
20524 return resultobj;
20525 fail:
20526 return NULL;
20527 }
20528
20529
20530 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20531 PyObject *resultobj;
20532 wxListItem *arg1 = (wxListItem *) 0 ;
20533 wxColour result;
20534 PyObject * obj0 = 0 ;
20535 char *kwnames[] = {
20536 (char *) "self", NULL
20537 };
20538
20539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20542 {
20543 PyThreadState* __tstate = wxPyBeginAllowThreads();
20544 result = ((wxListItem const *)arg1)->GetTextColour();
20545
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 {
20550 wxColour * resultptr;
20551 resultptr = new wxColour((wxColour &) result);
20552 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20553 }
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj;
20562 wxListItem *arg1 = (wxListItem *) 0 ;
20563 wxColour result;
20564 PyObject * obj0 = 0 ;
20565 char *kwnames[] = {
20566 (char *) "self", NULL
20567 };
20568
20569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20572 {
20573 PyThreadState* __tstate = wxPyBeginAllowThreads();
20574 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20575
20576 wxPyEndAllowThreads(__tstate);
20577 if (PyErr_Occurred()) SWIG_fail;
20578 }
20579 {
20580 wxColour * resultptr;
20581 resultptr = new wxColour((wxColour &) result);
20582 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20583 }
20584 return resultobj;
20585 fail:
20586 return NULL;
20587 }
20588
20589
20590 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20591 PyObject *resultobj;
20592 wxListItem *arg1 = (wxListItem *) 0 ;
20593 wxFont result;
20594 PyObject * obj0 = 0 ;
20595 char *kwnames[] = {
20596 (char *) "self", NULL
20597 };
20598
20599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20602 {
20603 PyThreadState* __tstate = wxPyBeginAllowThreads();
20604 result = ((wxListItem const *)arg1)->GetFont();
20605
20606 wxPyEndAllowThreads(__tstate);
20607 if (PyErr_Occurred()) SWIG_fail;
20608 }
20609 {
20610 wxFont * resultptr;
20611 resultptr = new wxFont((wxFont &) result);
20612 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20613 }
20614 return resultobj;
20615 fail:
20616 return NULL;
20617 }
20618
20619
20620 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20621 PyObject *resultobj;
20622 wxListItem *arg1 = (wxListItem *) 0 ;
20623 long arg2 ;
20624 PyObject * obj0 = 0 ;
20625 PyObject * obj1 = 0 ;
20626 char *kwnames[] = {
20627 (char *) "self",(char *) "m_mask", NULL
20628 };
20629
20630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20633 arg2 = (long)SWIG_As_long(obj1);
20634 if (PyErr_Occurred()) SWIG_fail;
20635 if (arg1) (arg1)->m_mask = arg2;
20636
20637 Py_INCREF(Py_None); resultobj = Py_None;
20638 return resultobj;
20639 fail:
20640 return NULL;
20641 }
20642
20643
20644 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20645 PyObject *resultobj;
20646 wxListItem *arg1 = (wxListItem *) 0 ;
20647 long result;
20648 PyObject * obj0 = 0 ;
20649 char *kwnames[] = {
20650 (char *) "self", NULL
20651 };
20652
20653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20656 result = (long) ((arg1)->m_mask);
20657
20658 resultobj = SWIG_From_long((long)result);
20659 return resultobj;
20660 fail:
20661 return NULL;
20662 }
20663
20664
20665 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20666 PyObject *resultobj;
20667 wxListItem *arg1 = (wxListItem *) 0 ;
20668 long arg2 ;
20669 PyObject * obj0 = 0 ;
20670 PyObject * obj1 = 0 ;
20671 char *kwnames[] = {
20672 (char *) "self",(char *) "m_itemId", NULL
20673 };
20674
20675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20678 arg2 = (long)SWIG_As_long(obj1);
20679 if (PyErr_Occurred()) SWIG_fail;
20680 if (arg1) (arg1)->m_itemId = arg2;
20681
20682 Py_INCREF(Py_None); resultobj = Py_None;
20683 return resultobj;
20684 fail:
20685 return NULL;
20686 }
20687
20688
20689 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20690 PyObject *resultobj;
20691 wxListItem *arg1 = (wxListItem *) 0 ;
20692 long result;
20693 PyObject * obj0 = 0 ;
20694 char *kwnames[] = {
20695 (char *) "self", NULL
20696 };
20697
20698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20701 result = (long) ((arg1)->m_itemId);
20702
20703 resultobj = SWIG_From_long((long)result);
20704 return resultobj;
20705 fail:
20706 return NULL;
20707 }
20708
20709
20710 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20711 PyObject *resultobj;
20712 wxListItem *arg1 = (wxListItem *) 0 ;
20713 int arg2 ;
20714 PyObject * obj0 = 0 ;
20715 PyObject * obj1 = 0 ;
20716 char *kwnames[] = {
20717 (char *) "self",(char *) "m_col", NULL
20718 };
20719
20720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20723 arg2 = (int)SWIG_As_int(obj1);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 if (arg1) (arg1)->m_col = arg2;
20726
20727 Py_INCREF(Py_None); resultobj = Py_None;
20728 return resultobj;
20729 fail:
20730 return NULL;
20731 }
20732
20733
20734 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20735 PyObject *resultobj;
20736 wxListItem *arg1 = (wxListItem *) 0 ;
20737 int result;
20738 PyObject * obj0 = 0 ;
20739 char *kwnames[] = {
20740 (char *) "self", NULL
20741 };
20742
20743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20746 result = (int) ((arg1)->m_col);
20747
20748 resultobj = SWIG_From_int((int)result);
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20756 PyObject *resultobj;
20757 wxListItem *arg1 = (wxListItem *) 0 ;
20758 long arg2 ;
20759 PyObject * obj0 = 0 ;
20760 PyObject * obj1 = 0 ;
20761 char *kwnames[] = {
20762 (char *) "self",(char *) "m_state", NULL
20763 };
20764
20765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20768 arg2 = (long)SWIG_As_long(obj1);
20769 if (PyErr_Occurred()) SWIG_fail;
20770 if (arg1) (arg1)->m_state = arg2;
20771
20772 Py_INCREF(Py_None); resultobj = Py_None;
20773 return resultobj;
20774 fail:
20775 return NULL;
20776 }
20777
20778
20779 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20780 PyObject *resultobj;
20781 wxListItem *arg1 = (wxListItem *) 0 ;
20782 long result;
20783 PyObject * obj0 = 0 ;
20784 char *kwnames[] = {
20785 (char *) "self", NULL
20786 };
20787
20788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20791 result = (long) ((arg1)->m_state);
20792
20793 resultobj = SWIG_From_long((long)result);
20794 return resultobj;
20795 fail:
20796 return NULL;
20797 }
20798
20799
20800 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20801 PyObject *resultobj;
20802 wxListItem *arg1 = (wxListItem *) 0 ;
20803 long arg2 ;
20804 PyObject * obj0 = 0 ;
20805 PyObject * obj1 = 0 ;
20806 char *kwnames[] = {
20807 (char *) "self",(char *) "m_stateMask", NULL
20808 };
20809
20810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20813 arg2 = (long)SWIG_As_long(obj1);
20814 if (PyErr_Occurred()) SWIG_fail;
20815 if (arg1) (arg1)->m_stateMask = arg2;
20816
20817 Py_INCREF(Py_None); resultobj = Py_None;
20818 return resultobj;
20819 fail:
20820 return NULL;
20821 }
20822
20823
20824 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20825 PyObject *resultobj;
20826 wxListItem *arg1 = (wxListItem *) 0 ;
20827 long result;
20828 PyObject * obj0 = 0 ;
20829 char *kwnames[] = {
20830 (char *) "self", NULL
20831 };
20832
20833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20836 result = (long) ((arg1)->m_stateMask);
20837
20838 resultobj = SWIG_From_long((long)result);
20839 return resultobj;
20840 fail:
20841 return NULL;
20842 }
20843
20844
20845 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20846 PyObject *resultobj;
20847 wxListItem *arg1 = (wxListItem *) 0 ;
20848 wxString *arg2 = (wxString *) 0 ;
20849 bool temp2 = false ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 char *kwnames[] = {
20853 (char *) "self",(char *) "m_text", NULL
20854 };
20855
20856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20859 {
20860 arg2 = wxString_in_helper(obj1);
20861 if (arg2 == NULL) SWIG_fail;
20862 temp2 = true;
20863 }
20864 if (arg1) (arg1)->m_text = *arg2;
20865
20866 Py_INCREF(Py_None); resultobj = Py_None;
20867 {
20868 if (temp2)
20869 delete arg2;
20870 }
20871 return resultobj;
20872 fail:
20873 {
20874 if (temp2)
20875 delete arg2;
20876 }
20877 return NULL;
20878 }
20879
20880
20881 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20882 PyObject *resultobj;
20883 wxListItem *arg1 = (wxListItem *) 0 ;
20884 wxString *result;
20885 PyObject * obj0 = 0 ;
20886 char *kwnames[] = {
20887 (char *) "self", NULL
20888 };
20889
20890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20893 result = (wxString *)& ((arg1)->m_text);
20894
20895 {
20896 #if wxUSE_UNICODE
20897 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20898 #else
20899 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20900 #endif
20901 }
20902 return resultobj;
20903 fail:
20904 return NULL;
20905 }
20906
20907
20908 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20909 PyObject *resultobj;
20910 wxListItem *arg1 = (wxListItem *) 0 ;
20911 int arg2 ;
20912 PyObject * obj0 = 0 ;
20913 PyObject * obj1 = 0 ;
20914 char *kwnames[] = {
20915 (char *) "self",(char *) "m_image", NULL
20916 };
20917
20918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20921 arg2 = (int)SWIG_As_int(obj1);
20922 if (PyErr_Occurred()) SWIG_fail;
20923 if (arg1) (arg1)->m_image = arg2;
20924
20925 Py_INCREF(Py_None); resultobj = Py_None;
20926 return resultobj;
20927 fail:
20928 return NULL;
20929 }
20930
20931
20932 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20933 PyObject *resultobj;
20934 wxListItem *arg1 = (wxListItem *) 0 ;
20935 int result;
20936 PyObject * obj0 = 0 ;
20937 char *kwnames[] = {
20938 (char *) "self", NULL
20939 };
20940
20941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20944 result = (int) ((arg1)->m_image);
20945
20946 resultobj = SWIG_From_int((int)result);
20947 return resultobj;
20948 fail:
20949 return NULL;
20950 }
20951
20952
20953 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20954 PyObject *resultobj;
20955 wxListItem *arg1 = (wxListItem *) 0 ;
20956 long arg2 ;
20957 PyObject * obj0 = 0 ;
20958 PyObject * obj1 = 0 ;
20959 char *kwnames[] = {
20960 (char *) "self",(char *) "m_data", NULL
20961 };
20962
20963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20966 arg2 = (long)SWIG_As_long(obj1);
20967 if (PyErr_Occurred()) SWIG_fail;
20968 if (arg1) (arg1)->m_data = arg2;
20969
20970 Py_INCREF(Py_None); resultobj = Py_None;
20971 return resultobj;
20972 fail:
20973 return NULL;
20974 }
20975
20976
20977 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20978 PyObject *resultobj;
20979 wxListItem *arg1 = (wxListItem *) 0 ;
20980 long result;
20981 PyObject * obj0 = 0 ;
20982 char *kwnames[] = {
20983 (char *) "self", NULL
20984 };
20985
20986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20989 result = (long) ((arg1)->m_data);
20990
20991 resultobj = SWIG_From_long((long)result);
20992 return resultobj;
20993 fail:
20994 return NULL;
20995 }
20996
20997
20998 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20999 PyObject *resultobj;
21000 wxListItem *arg1 = (wxListItem *) 0 ;
21001 int arg2 ;
21002 PyObject * obj0 = 0 ;
21003 PyObject * obj1 = 0 ;
21004 char *kwnames[] = {
21005 (char *) "self",(char *) "m_format", NULL
21006 };
21007
21008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
21009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21011 arg2 = (int)SWIG_As_int(obj1);
21012 if (PyErr_Occurred()) SWIG_fail;
21013 if (arg1) (arg1)->m_format = arg2;
21014
21015 Py_INCREF(Py_None); resultobj = Py_None;
21016 return resultobj;
21017 fail:
21018 return NULL;
21019 }
21020
21021
21022 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
21023 PyObject *resultobj;
21024 wxListItem *arg1 = (wxListItem *) 0 ;
21025 int result;
21026 PyObject * obj0 = 0 ;
21027 char *kwnames[] = {
21028 (char *) "self", NULL
21029 };
21030
21031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
21032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21034 result = (int) ((arg1)->m_format);
21035
21036 resultobj = SWIG_From_int((int)result);
21037 return resultobj;
21038 fail:
21039 return NULL;
21040 }
21041
21042
21043 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
21044 PyObject *resultobj;
21045 wxListItem *arg1 = (wxListItem *) 0 ;
21046 int arg2 ;
21047 PyObject * obj0 = 0 ;
21048 PyObject * obj1 = 0 ;
21049 char *kwnames[] = {
21050 (char *) "self",(char *) "m_width", NULL
21051 };
21052
21053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
21054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21056 arg2 = (int)SWIG_As_int(obj1);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 if (arg1) (arg1)->m_width = arg2;
21059
21060 Py_INCREF(Py_None); resultobj = Py_None;
21061 return resultobj;
21062 fail:
21063 return NULL;
21064 }
21065
21066
21067 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
21068 PyObject *resultobj;
21069 wxListItem *arg1 = (wxListItem *) 0 ;
21070 int result;
21071 PyObject * obj0 = 0 ;
21072 char *kwnames[] = {
21073 (char *) "self", NULL
21074 };
21075
21076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
21077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21079 result = (int) ((arg1)->m_width);
21080
21081 resultobj = SWIG_From_int((int)result);
21082 return resultobj;
21083 fail:
21084 return NULL;
21085 }
21086
21087
21088 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
21089 PyObject *obj;
21090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21091 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
21092 Py_INCREF(obj);
21093 return Py_BuildValue((char *)"");
21094 }
21095 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21096 PyObject *resultobj;
21097 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21098 int arg2 = (int) 0 ;
21099 wxListEvent *result;
21100 PyObject * obj0 = 0 ;
21101 PyObject * obj1 = 0 ;
21102 char *kwnames[] = {
21103 (char *) "commandType",(char *) "id", NULL
21104 };
21105
21106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
21107 if (obj0) {
21108 arg1 = (wxEventType)SWIG_As_int(obj0);
21109 if (PyErr_Occurred()) SWIG_fail;
21110 }
21111 if (obj1) {
21112 arg2 = (int)SWIG_As_int(obj1);
21113 if (PyErr_Occurred()) SWIG_fail;
21114 }
21115 {
21116 PyThreadState* __tstate = wxPyBeginAllowThreads();
21117 result = (wxListEvent *)new wxListEvent(arg1,arg2);
21118
21119 wxPyEndAllowThreads(__tstate);
21120 if (PyErr_Occurred()) SWIG_fail;
21121 }
21122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
21123 return resultobj;
21124 fail:
21125 return NULL;
21126 }
21127
21128
21129 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
21130 PyObject *resultobj;
21131 wxListEvent *arg1 = (wxListEvent *) 0 ;
21132 int arg2 ;
21133 PyObject * obj0 = 0 ;
21134 PyObject * obj1 = 0 ;
21135 char *kwnames[] = {
21136 (char *) "self",(char *) "m_code", NULL
21137 };
21138
21139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
21140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21142 arg2 = (int)SWIG_As_int(obj1);
21143 if (PyErr_Occurred()) SWIG_fail;
21144 if (arg1) (arg1)->m_code = arg2;
21145
21146 Py_INCREF(Py_None); resultobj = Py_None;
21147 return resultobj;
21148 fail:
21149 return NULL;
21150 }
21151
21152
21153 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
21154 PyObject *resultobj;
21155 wxListEvent *arg1 = (wxListEvent *) 0 ;
21156 int result;
21157 PyObject * obj0 = 0 ;
21158 char *kwnames[] = {
21159 (char *) "self", NULL
21160 };
21161
21162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
21163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21165 result = (int) ((arg1)->m_code);
21166
21167 resultobj = SWIG_From_int((int)result);
21168 return resultobj;
21169 fail:
21170 return NULL;
21171 }
21172
21173
21174 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21175 PyObject *resultobj;
21176 wxListEvent *arg1 = (wxListEvent *) 0 ;
21177 long arg2 ;
21178 PyObject * obj0 = 0 ;
21179 PyObject * obj1 = 0 ;
21180 char *kwnames[] = {
21181 (char *) "self",(char *) "m_oldItemIndex", NULL
21182 };
21183
21184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21187 arg2 = (long)SWIG_As_long(obj1);
21188 if (PyErr_Occurred()) SWIG_fail;
21189 if (arg1) (arg1)->m_oldItemIndex = arg2;
21190
21191 Py_INCREF(Py_None); resultobj = Py_None;
21192 return resultobj;
21193 fail:
21194 return NULL;
21195 }
21196
21197
21198 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21199 PyObject *resultobj;
21200 wxListEvent *arg1 = (wxListEvent *) 0 ;
21201 long result;
21202 PyObject * obj0 = 0 ;
21203 char *kwnames[] = {
21204 (char *) "self", NULL
21205 };
21206
21207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
21208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21210 result = (long) ((arg1)->m_oldItemIndex);
21211
21212 resultobj = SWIG_From_long((long)result);
21213 return resultobj;
21214 fail:
21215 return NULL;
21216 }
21217
21218
21219 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21220 PyObject *resultobj;
21221 wxListEvent *arg1 = (wxListEvent *) 0 ;
21222 long arg2 ;
21223 PyObject * obj0 = 0 ;
21224 PyObject * obj1 = 0 ;
21225 char *kwnames[] = {
21226 (char *) "self",(char *) "m_itemIndex", NULL
21227 };
21228
21229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21232 arg2 = (long)SWIG_As_long(obj1);
21233 if (PyErr_Occurred()) SWIG_fail;
21234 if (arg1) (arg1)->m_itemIndex = arg2;
21235
21236 Py_INCREF(Py_None); resultobj = Py_None;
21237 return resultobj;
21238 fail:
21239 return NULL;
21240 }
21241
21242
21243 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21244 PyObject *resultobj;
21245 wxListEvent *arg1 = (wxListEvent *) 0 ;
21246 long result;
21247 PyObject * obj0 = 0 ;
21248 char *kwnames[] = {
21249 (char *) "self", NULL
21250 };
21251
21252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
21253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21255 result = (long) ((arg1)->m_itemIndex);
21256
21257 resultobj = SWIG_From_long((long)result);
21258 return resultobj;
21259 fail:
21260 return NULL;
21261 }
21262
21263
21264 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
21265 PyObject *resultobj;
21266 wxListEvent *arg1 = (wxListEvent *) 0 ;
21267 int arg2 ;
21268 PyObject * obj0 = 0 ;
21269 PyObject * obj1 = 0 ;
21270 char *kwnames[] = {
21271 (char *) "self",(char *) "m_col", NULL
21272 };
21273
21274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
21275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21277 arg2 = (int)SWIG_As_int(obj1);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 if (arg1) (arg1)->m_col = arg2;
21280
21281 Py_INCREF(Py_None); resultobj = Py_None;
21282 return resultobj;
21283 fail:
21284 return NULL;
21285 }
21286
21287
21288 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
21289 PyObject *resultobj;
21290 wxListEvent *arg1 = (wxListEvent *) 0 ;
21291 int result;
21292 PyObject * obj0 = 0 ;
21293 char *kwnames[] = {
21294 (char *) "self", NULL
21295 };
21296
21297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
21298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21300 result = (int) ((arg1)->m_col);
21301
21302 resultobj = SWIG_From_int((int)result);
21303 return resultobj;
21304 fail:
21305 return NULL;
21306 }
21307
21308
21309 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
21310 PyObject *resultobj;
21311 wxListEvent *arg1 = (wxListEvent *) 0 ;
21312 wxPoint *arg2 = (wxPoint *) 0 ;
21313 PyObject * obj0 = 0 ;
21314 PyObject * obj1 = 0 ;
21315 char *kwnames[] = {
21316 (char *) "self",(char *) "m_pointDrag", NULL
21317 };
21318
21319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
21320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21322 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
21323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21324 if (arg1) (arg1)->m_pointDrag = *arg2;
21325
21326 Py_INCREF(Py_None); resultobj = Py_None;
21327 return resultobj;
21328 fail:
21329 return NULL;
21330 }
21331
21332
21333 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
21334 PyObject *resultobj;
21335 wxListEvent *arg1 = (wxListEvent *) 0 ;
21336 wxPoint *result;
21337 PyObject * obj0 = 0 ;
21338 char *kwnames[] = {
21339 (char *) "self", NULL
21340 };
21341
21342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
21343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21345 result = (wxPoint *)& ((arg1)->m_pointDrag);
21346
21347 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
21348 return resultobj;
21349 fail:
21350 return NULL;
21351 }
21352
21353
21354 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
21355 PyObject *resultobj;
21356 wxListEvent *arg1 = (wxListEvent *) 0 ;
21357 wxListItem *result;
21358 PyObject * obj0 = 0 ;
21359 char *kwnames[] = {
21360 (char *) "self", NULL
21361 };
21362
21363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
21364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21366 result = (wxListItem *)& ((arg1)->m_item);
21367
21368 {
21369 resultobj = wxPyMake_wxObject(result, 0);
21370 }
21371 return resultobj;
21372 fail:
21373 return NULL;
21374 }
21375
21376
21377 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
21378 PyObject *resultobj;
21379 wxListEvent *arg1 = (wxListEvent *) 0 ;
21380 int result;
21381 PyObject * obj0 = 0 ;
21382 char *kwnames[] = {
21383 (char *) "self", NULL
21384 };
21385
21386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
21387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21389 {
21390 PyThreadState* __tstate = wxPyBeginAllowThreads();
21391 result = (int)(arg1)->GetKeyCode();
21392
21393 wxPyEndAllowThreads(__tstate);
21394 if (PyErr_Occurred()) SWIG_fail;
21395 }
21396 resultobj = SWIG_From_int((int)result);
21397 return resultobj;
21398 fail:
21399 return NULL;
21400 }
21401
21402
21403 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
21404 PyObject *resultobj;
21405 wxListEvent *arg1 = (wxListEvent *) 0 ;
21406 long result;
21407 PyObject * obj0 = 0 ;
21408 char *kwnames[] = {
21409 (char *) "self", NULL
21410 };
21411
21412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
21413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21415 {
21416 PyThreadState* __tstate = wxPyBeginAllowThreads();
21417 result = (long)(arg1)->GetIndex();
21418
21419 wxPyEndAllowThreads(__tstate);
21420 if (PyErr_Occurred()) SWIG_fail;
21421 }
21422 resultobj = SWIG_From_long((long)result);
21423 return resultobj;
21424 fail:
21425 return NULL;
21426 }
21427
21428
21429 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21430 PyObject *resultobj;
21431 wxListEvent *arg1 = (wxListEvent *) 0 ;
21432 int result;
21433 PyObject * obj0 = 0 ;
21434 char *kwnames[] = {
21435 (char *) "self", NULL
21436 };
21437
21438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
21439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21441 {
21442 PyThreadState* __tstate = wxPyBeginAllowThreads();
21443 result = (int)(arg1)->GetColumn();
21444
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 resultobj = SWIG_From_int((int)result);
21449 return resultobj;
21450 fail:
21451 return NULL;
21452 }
21453
21454
21455 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21456 PyObject *resultobj;
21457 wxListEvent *arg1 = (wxListEvent *) 0 ;
21458 wxPoint result;
21459 PyObject * obj0 = 0 ;
21460 char *kwnames[] = {
21461 (char *) "self", NULL
21462 };
21463
21464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21467 {
21468 PyThreadState* __tstate = wxPyBeginAllowThreads();
21469 result = (arg1)->GetPoint();
21470
21471 wxPyEndAllowThreads(__tstate);
21472 if (PyErr_Occurred()) SWIG_fail;
21473 }
21474 {
21475 wxPoint * resultptr;
21476 resultptr = new wxPoint((wxPoint &) result);
21477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21486 PyObject *resultobj;
21487 wxListEvent *arg1 = (wxListEvent *) 0 ;
21488 wxString *result;
21489 PyObject * obj0 = 0 ;
21490 char *kwnames[] = {
21491 (char *) "self", NULL
21492 };
21493
21494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21497 {
21498 PyThreadState* __tstate = wxPyBeginAllowThreads();
21499 {
21500 wxString const &_result_ref = (arg1)->GetLabel();
21501 result = (wxString *) &_result_ref;
21502 }
21503
21504 wxPyEndAllowThreads(__tstate);
21505 if (PyErr_Occurred()) SWIG_fail;
21506 }
21507 {
21508 #if wxUSE_UNICODE
21509 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21510 #else
21511 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21512 #endif
21513 }
21514 return resultobj;
21515 fail:
21516 return NULL;
21517 }
21518
21519
21520 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21521 PyObject *resultobj;
21522 wxListEvent *arg1 = (wxListEvent *) 0 ;
21523 wxString *result;
21524 PyObject * obj0 = 0 ;
21525 char *kwnames[] = {
21526 (char *) "self", NULL
21527 };
21528
21529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21532 {
21533 PyThreadState* __tstate = wxPyBeginAllowThreads();
21534 {
21535 wxString const &_result_ref = (arg1)->GetText();
21536 result = (wxString *) &_result_ref;
21537 }
21538
21539 wxPyEndAllowThreads(__tstate);
21540 if (PyErr_Occurred()) SWIG_fail;
21541 }
21542 {
21543 #if wxUSE_UNICODE
21544 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21545 #else
21546 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21547 #endif
21548 }
21549 return resultobj;
21550 fail:
21551 return NULL;
21552 }
21553
21554
21555 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21556 PyObject *resultobj;
21557 wxListEvent *arg1 = (wxListEvent *) 0 ;
21558 int result;
21559 PyObject * obj0 = 0 ;
21560 char *kwnames[] = {
21561 (char *) "self", NULL
21562 };
21563
21564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (int)(arg1)->GetImage();
21570
21571 wxPyEndAllowThreads(__tstate);
21572 if (PyErr_Occurred()) SWIG_fail;
21573 }
21574 resultobj = SWIG_From_int((int)result);
21575 return resultobj;
21576 fail:
21577 return NULL;
21578 }
21579
21580
21581 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21582 PyObject *resultobj;
21583 wxListEvent *arg1 = (wxListEvent *) 0 ;
21584 long result;
21585 PyObject * obj0 = 0 ;
21586 char *kwnames[] = {
21587 (char *) "self", NULL
21588 };
21589
21590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21593 {
21594 PyThreadState* __tstate = wxPyBeginAllowThreads();
21595 result = (long)(arg1)->GetData();
21596
21597 wxPyEndAllowThreads(__tstate);
21598 if (PyErr_Occurred()) SWIG_fail;
21599 }
21600 resultobj = SWIG_From_long((long)result);
21601 return resultobj;
21602 fail:
21603 return NULL;
21604 }
21605
21606
21607 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21608 PyObject *resultobj;
21609 wxListEvent *arg1 = (wxListEvent *) 0 ;
21610 long result;
21611 PyObject * obj0 = 0 ;
21612 char *kwnames[] = {
21613 (char *) "self", NULL
21614 };
21615
21616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21619 {
21620 PyThreadState* __tstate = wxPyBeginAllowThreads();
21621 result = (long)(arg1)->GetMask();
21622
21623 wxPyEndAllowThreads(__tstate);
21624 if (PyErr_Occurred()) SWIG_fail;
21625 }
21626 resultobj = SWIG_From_long((long)result);
21627 return resultobj;
21628 fail:
21629 return NULL;
21630 }
21631
21632
21633 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21634 PyObject *resultobj;
21635 wxListEvent *arg1 = (wxListEvent *) 0 ;
21636 wxListItem *result;
21637 PyObject * obj0 = 0 ;
21638 char *kwnames[] = {
21639 (char *) "self", NULL
21640 };
21641
21642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21645 {
21646 PyThreadState* __tstate = wxPyBeginAllowThreads();
21647 {
21648 wxListItem const &_result_ref = (arg1)->GetItem();
21649 result = (wxListItem *) &_result_ref;
21650 }
21651
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21656 return resultobj;
21657 fail:
21658 return NULL;
21659 }
21660
21661
21662 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj;
21664 wxListEvent *arg1 = (wxListEvent *) 0 ;
21665 long result;
21666 PyObject * obj0 = 0 ;
21667 char *kwnames[] = {
21668 (char *) "self", NULL
21669 };
21670
21671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21674 {
21675 PyThreadState* __tstate = wxPyBeginAllowThreads();
21676 result = (long)(arg1)->GetCacheFrom();
21677
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 resultobj = SWIG_From_long((long)result);
21682 return resultobj;
21683 fail:
21684 return NULL;
21685 }
21686
21687
21688 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21689 PyObject *resultobj;
21690 wxListEvent *arg1 = (wxListEvent *) 0 ;
21691 long result;
21692 PyObject * obj0 = 0 ;
21693 char *kwnames[] = {
21694 (char *) "self", NULL
21695 };
21696
21697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21700 {
21701 PyThreadState* __tstate = wxPyBeginAllowThreads();
21702 result = (long)(arg1)->GetCacheTo();
21703
21704 wxPyEndAllowThreads(__tstate);
21705 if (PyErr_Occurred()) SWIG_fail;
21706 }
21707 resultobj = SWIG_From_long((long)result);
21708 return resultobj;
21709 fail:
21710 return NULL;
21711 }
21712
21713
21714 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21715 PyObject *resultobj;
21716 wxListEvent *arg1 = (wxListEvent *) 0 ;
21717 bool result;
21718 PyObject * obj0 = 0 ;
21719 char *kwnames[] = {
21720 (char *) "self", NULL
21721 };
21722
21723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21726 {
21727 PyThreadState* __tstate = wxPyBeginAllowThreads();
21728 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21729
21730 wxPyEndAllowThreads(__tstate);
21731 if (PyErr_Occurred()) SWIG_fail;
21732 }
21733 {
21734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21735 }
21736 return resultobj;
21737 fail:
21738 return NULL;
21739 }
21740
21741
21742 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21743 PyObject *resultobj;
21744 wxListEvent *arg1 = (wxListEvent *) 0 ;
21745 bool arg2 ;
21746 PyObject * obj0 = 0 ;
21747 PyObject * obj1 = 0 ;
21748 char *kwnames[] = {
21749 (char *) "self",(char *) "editCancelled", NULL
21750 };
21751
21752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21755 arg2 = (bool)SWIG_As_bool(obj1);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 {
21758 PyThreadState* __tstate = wxPyBeginAllowThreads();
21759 (arg1)->SetEditCanceled(arg2);
21760
21761 wxPyEndAllowThreads(__tstate);
21762 if (PyErr_Occurred()) SWIG_fail;
21763 }
21764 Py_INCREF(Py_None); resultobj = Py_None;
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21772 PyObject *obj;
21773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21774 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21775 Py_INCREF(obj);
21776 return Py_BuildValue((char *)"");
21777 }
21778 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21779 PyObject *resultobj;
21780 wxWindow *arg1 = (wxWindow *) 0 ;
21781 int arg2 = (int) -1 ;
21782 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21783 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21784 wxSize const &arg4_defvalue = wxDefaultSize ;
21785 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21786 long arg5 = (long) wxLC_ICON ;
21787 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21788 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21789 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21790 wxString *arg7 = (wxString *) &arg7_defvalue ;
21791 wxPyListCtrl *result;
21792 wxPoint temp3 ;
21793 wxSize temp4 ;
21794 bool temp7 = false ;
21795 PyObject * obj0 = 0 ;
21796 PyObject * obj1 = 0 ;
21797 PyObject * obj2 = 0 ;
21798 PyObject * obj3 = 0 ;
21799 PyObject * obj4 = 0 ;
21800 PyObject * obj5 = 0 ;
21801 PyObject * obj6 = 0 ;
21802 char *kwnames[] = {
21803 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21804 };
21805
21806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21809 if (obj1) {
21810 arg2 = (int)SWIG_As_int(obj1);
21811 if (PyErr_Occurred()) SWIG_fail;
21812 }
21813 if (obj2) {
21814 {
21815 arg3 = &temp3;
21816 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21817 }
21818 }
21819 if (obj3) {
21820 {
21821 arg4 = &temp4;
21822 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21823 }
21824 }
21825 if (obj4) {
21826 arg5 = (long)SWIG_As_long(obj4);
21827 if (PyErr_Occurred()) SWIG_fail;
21828 }
21829 if (obj5) {
21830 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21831 SWIG_POINTER_EXCEPTION | 0)) == -1)
21832 SWIG_fail;
21833 if (arg6 == NULL) {
21834 PyErr_SetString(PyExc_TypeError,"null reference");
21835 SWIG_fail;
21836 }
21837 }
21838 if (obj6) {
21839 {
21840 arg7 = wxString_in_helper(obj6);
21841 if (arg7 == NULL) SWIG_fail;
21842 temp7 = true;
21843 }
21844 }
21845 {
21846 if (!wxPyCheckForApp()) SWIG_fail;
21847 PyThreadState* __tstate = wxPyBeginAllowThreads();
21848 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21849
21850 wxPyEndAllowThreads(__tstate);
21851 if (PyErr_Occurred()) SWIG_fail;
21852 }
21853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21854 {
21855 if (temp7)
21856 delete arg7;
21857 }
21858 return resultobj;
21859 fail:
21860 {
21861 if (temp7)
21862 delete arg7;
21863 }
21864 return NULL;
21865 }
21866
21867
21868 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21869 PyObject *resultobj;
21870 wxPyListCtrl *result;
21871 char *kwnames[] = {
21872 NULL
21873 };
21874
21875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21876 {
21877 if (!wxPyCheckForApp()) SWIG_fail;
21878 PyThreadState* __tstate = wxPyBeginAllowThreads();
21879 result = (wxPyListCtrl *)new wxPyListCtrl();
21880
21881 wxPyEndAllowThreads(__tstate);
21882 if (PyErr_Occurred()) SWIG_fail;
21883 }
21884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21885 return resultobj;
21886 fail:
21887 return NULL;
21888 }
21889
21890
21891 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21892 PyObject *resultobj;
21893 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21894 wxWindow *arg2 = (wxWindow *) 0 ;
21895 int arg3 = (int) -1 ;
21896 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21897 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21898 wxSize const &arg5_defvalue = wxDefaultSize ;
21899 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21900 long arg6 = (long) wxLC_ICON ;
21901 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21902 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21903 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21904 wxString *arg8 = (wxString *) &arg8_defvalue ;
21905 bool result;
21906 wxPoint temp4 ;
21907 wxSize temp5 ;
21908 bool temp8 = false ;
21909 PyObject * obj0 = 0 ;
21910 PyObject * obj1 = 0 ;
21911 PyObject * obj2 = 0 ;
21912 PyObject * obj3 = 0 ;
21913 PyObject * obj4 = 0 ;
21914 PyObject * obj5 = 0 ;
21915 PyObject * obj6 = 0 ;
21916 PyObject * obj7 = 0 ;
21917 char *kwnames[] = {
21918 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21919 };
21920
21921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21924 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21926 if (obj2) {
21927 arg3 = (int)SWIG_As_int(obj2);
21928 if (PyErr_Occurred()) SWIG_fail;
21929 }
21930 if (obj3) {
21931 {
21932 arg4 = &temp4;
21933 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21934 }
21935 }
21936 if (obj4) {
21937 {
21938 arg5 = &temp5;
21939 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21940 }
21941 }
21942 if (obj5) {
21943 arg6 = (long)SWIG_As_long(obj5);
21944 if (PyErr_Occurred()) SWIG_fail;
21945 }
21946 if (obj6) {
21947 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21948 SWIG_POINTER_EXCEPTION | 0)) == -1)
21949 SWIG_fail;
21950 if (arg7 == NULL) {
21951 PyErr_SetString(PyExc_TypeError,"null reference");
21952 SWIG_fail;
21953 }
21954 }
21955 if (obj7) {
21956 {
21957 arg8 = wxString_in_helper(obj7);
21958 if (arg8 == NULL) SWIG_fail;
21959 temp8 = true;
21960 }
21961 }
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21965
21966 wxPyEndAllowThreads(__tstate);
21967 if (PyErr_Occurred()) SWIG_fail;
21968 }
21969 {
21970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21971 }
21972 {
21973 if (temp8)
21974 delete arg8;
21975 }
21976 return resultobj;
21977 fail:
21978 {
21979 if (temp8)
21980 delete arg8;
21981 }
21982 return NULL;
21983 }
21984
21985
21986 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21987 PyObject *resultobj;
21988 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21989 PyObject *arg2 = (PyObject *) 0 ;
21990 PyObject *arg3 = (PyObject *) 0 ;
21991 PyObject * obj0 = 0 ;
21992 PyObject * obj1 = 0 ;
21993 PyObject * obj2 = 0 ;
21994 char *kwnames[] = {
21995 (char *) "self",(char *) "self",(char *) "_class", NULL
21996 };
21997
21998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22001 arg2 = obj1;
22002 arg3 = obj2;
22003 {
22004 PyThreadState* __tstate = wxPyBeginAllowThreads();
22005 (arg1)->_setCallbackInfo(arg2,arg3);
22006
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 Py_INCREF(Py_None); resultobj = Py_None;
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj;
22019 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22020 wxColour *arg2 = 0 ;
22021 bool result;
22022 wxColour temp2 ;
22023 PyObject * obj0 = 0 ;
22024 PyObject * obj1 = 0 ;
22025 char *kwnames[] = {
22026 (char *) "self",(char *) "col", NULL
22027 };
22028
22029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
22030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22032 {
22033 arg2 = &temp2;
22034 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22035 }
22036 {
22037 PyThreadState* __tstate = wxPyBeginAllowThreads();
22038 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
22039
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 {
22044 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22045 }
22046 return resultobj;
22047 fail:
22048 return NULL;
22049 }
22050
22051
22052 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22053 PyObject *resultobj;
22054 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22055 wxColour *arg2 = 0 ;
22056 bool result;
22057 wxColour temp2 ;
22058 PyObject * obj0 = 0 ;
22059 PyObject * obj1 = 0 ;
22060 char *kwnames[] = {
22061 (char *) "self",(char *) "col", NULL
22062 };
22063
22064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22067 {
22068 arg2 = &temp2;
22069 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22070 }
22071 {
22072 PyThreadState* __tstate = wxPyBeginAllowThreads();
22073 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
22074
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 {
22079 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22080 }
22081 return resultobj;
22082 fail:
22083 return NULL;
22084 }
22085
22086
22087 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22088 PyObject *resultobj;
22089 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22090 int arg2 ;
22091 wxListItem *result;
22092 PyObject * obj0 = 0 ;
22093 PyObject * obj1 = 0 ;
22094 char *kwnames[] = {
22095 (char *) "self",(char *) "col", NULL
22096 };
22097
22098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
22099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22101 arg2 = (int)SWIG_As_int(obj1);
22102 if (PyErr_Occurred()) SWIG_fail;
22103 {
22104 PyThreadState* __tstate = wxPyBeginAllowThreads();
22105 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
22106
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 {
22111 resultobj = wxPyMake_wxObject(result, 0);
22112 }
22113 return resultobj;
22114 fail:
22115 return NULL;
22116 }
22117
22118
22119 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22120 PyObject *resultobj;
22121 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22122 int arg2 ;
22123 wxListItem *arg3 = 0 ;
22124 bool result;
22125 PyObject * obj0 = 0 ;
22126 PyObject * obj1 = 0 ;
22127 PyObject * obj2 = 0 ;
22128 char *kwnames[] = {
22129 (char *) "self",(char *) "col",(char *) "item", NULL
22130 };
22131
22132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
22133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22135 arg2 = (int)SWIG_As_int(obj1);
22136 if (PyErr_Occurred()) SWIG_fail;
22137 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22138 SWIG_POINTER_EXCEPTION | 0)) == -1)
22139 SWIG_fail;
22140 if (arg3 == NULL) {
22141 PyErr_SetString(PyExc_TypeError,"null reference");
22142 SWIG_fail;
22143 }
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = (bool)(arg1)->SetColumn(arg2,*arg3);
22147
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22153 }
22154 return resultobj;
22155 fail:
22156 return NULL;
22157 }
22158
22159
22160 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22161 PyObject *resultobj;
22162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22163 int arg2 ;
22164 int result;
22165 PyObject * obj0 = 0 ;
22166 PyObject * obj1 = 0 ;
22167 char *kwnames[] = {
22168 (char *) "self",(char *) "col", NULL
22169 };
22170
22171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
22172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22174 arg2 = (int)SWIG_As_int(obj1);
22175 if (PyErr_Occurred()) SWIG_fail;
22176 {
22177 PyThreadState* __tstate = wxPyBeginAllowThreads();
22178 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
22179
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_From_int((int)result);
22184 return resultobj;
22185 fail:
22186 return NULL;
22187 }
22188
22189
22190 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22191 PyObject *resultobj;
22192 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22193 int arg2 ;
22194 int arg3 ;
22195 bool result;
22196 PyObject * obj0 = 0 ;
22197 PyObject * obj1 = 0 ;
22198 PyObject * obj2 = 0 ;
22199 char *kwnames[] = {
22200 (char *) "self",(char *) "col",(char *) "width", NULL
22201 };
22202
22203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
22204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22206 arg2 = (int)SWIG_As_int(obj1);
22207 if (PyErr_Occurred()) SWIG_fail;
22208 arg3 = (int)SWIG_As_int(obj2);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
22213
22214 wxPyEndAllowThreads(__tstate);
22215 if (PyErr_Occurred()) SWIG_fail;
22216 }
22217 {
22218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22219 }
22220 return resultobj;
22221 fail:
22222 return NULL;
22223 }
22224
22225
22226 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
22227 PyObject *resultobj;
22228 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22229 int result;
22230 PyObject * obj0 = 0 ;
22231 char *kwnames[] = {
22232 (char *) "self", NULL
22233 };
22234
22235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
22236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22238 {
22239 PyThreadState* __tstate = wxPyBeginAllowThreads();
22240 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
22241
22242 wxPyEndAllowThreads(__tstate);
22243 if (PyErr_Occurred()) SWIG_fail;
22244 }
22245 resultobj = SWIG_From_int((int)result);
22246 return resultobj;
22247 fail:
22248 return NULL;
22249 }
22250
22251
22252 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
22253 PyObject *resultobj;
22254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22255 wxRect result;
22256 PyObject * obj0 = 0 ;
22257 char *kwnames[] = {
22258 (char *) "self", NULL
22259 };
22260
22261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
22262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22264 {
22265 PyThreadState* __tstate = wxPyBeginAllowThreads();
22266 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
22267
22268 wxPyEndAllowThreads(__tstate);
22269 if (PyErr_Occurred()) SWIG_fail;
22270 }
22271 {
22272 wxRect * resultptr;
22273 resultptr = new wxRect((wxRect &) result);
22274 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22275 }
22276 return resultobj;
22277 fail:
22278 return NULL;
22279 }
22280
22281
22282 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22283 PyObject *resultobj;
22284 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22285 long arg2 ;
22286 int arg3 = (int) 0 ;
22287 wxListItem *result;
22288 PyObject * obj0 = 0 ;
22289 PyObject * obj1 = 0 ;
22290 PyObject * obj2 = 0 ;
22291 char *kwnames[] = {
22292 (char *) "self",(char *) "itemId",(char *) "col", NULL
22293 };
22294
22295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22298 arg2 = (long)SWIG_As_long(obj1);
22299 if (PyErr_Occurred()) SWIG_fail;
22300 if (obj2) {
22301 arg3 = (int)SWIG_As_int(obj2);
22302 if (PyErr_Occurred()) SWIG_fail;
22303 }
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
22307
22308 wxPyEndAllowThreads(__tstate);
22309 if (PyErr_Occurred()) SWIG_fail;
22310 }
22311 {
22312 resultobj = wxPyMake_wxObject(result, 0);
22313 }
22314 return resultobj;
22315 fail:
22316 return NULL;
22317 }
22318
22319
22320 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22321 PyObject *resultobj;
22322 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22323 wxListItem *arg2 = 0 ;
22324 bool result;
22325 PyObject * obj0 = 0 ;
22326 PyObject * obj1 = 0 ;
22327 char *kwnames[] = {
22328 (char *) "self",(char *) "info", NULL
22329 };
22330
22331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
22332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22335 SWIG_POINTER_EXCEPTION | 0)) == -1)
22336 SWIG_fail;
22337 if (arg2 == NULL) {
22338 PyErr_SetString(PyExc_TypeError,"null reference");
22339 SWIG_fail;
22340 }
22341 {
22342 PyThreadState* __tstate = wxPyBeginAllowThreads();
22343 result = (bool)(arg1)->SetItem(*arg2);
22344
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 {
22349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22350 }
22351 return resultobj;
22352 fail:
22353 return NULL;
22354 }
22355
22356
22357 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
22358 PyObject *resultobj;
22359 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22360 long arg2 ;
22361 int arg3 ;
22362 wxString *arg4 = 0 ;
22363 int arg5 = (int) -1 ;
22364 long result;
22365 bool temp4 = false ;
22366 PyObject * obj0 = 0 ;
22367 PyObject * obj1 = 0 ;
22368 PyObject * obj2 = 0 ;
22369 PyObject * obj3 = 0 ;
22370 PyObject * obj4 = 0 ;
22371 char *kwnames[] = {
22372 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
22373 };
22374
22375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22378 arg2 = (long)SWIG_As_long(obj1);
22379 if (PyErr_Occurred()) SWIG_fail;
22380 arg3 = (int)SWIG_As_int(obj2);
22381 if (PyErr_Occurred()) SWIG_fail;
22382 {
22383 arg4 = wxString_in_helper(obj3);
22384 if (arg4 == NULL) SWIG_fail;
22385 temp4 = true;
22386 }
22387 if (obj4) {
22388 arg5 = (int)SWIG_As_int(obj4);
22389 if (PyErr_Occurred()) SWIG_fail;
22390 }
22391 {
22392 PyThreadState* __tstate = wxPyBeginAllowThreads();
22393 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
22394
22395 wxPyEndAllowThreads(__tstate);
22396 if (PyErr_Occurred()) SWIG_fail;
22397 }
22398 resultobj = SWIG_From_long((long)result);
22399 {
22400 if (temp4)
22401 delete arg4;
22402 }
22403 return resultobj;
22404 fail:
22405 {
22406 if (temp4)
22407 delete arg4;
22408 }
22409 return NULL;
22410 }
22411
22412
22413 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22414 PyObject *resultobj;
22415 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22416 long arg2 ;
22417 long arg3 ;
22418 int result;
22419 PyObject * obj0 = 0 ;
22420 PyObject * obj1 = 0 ;
22421 PyObject * obj2 = 0 ;
22422 char *kwnames[] = {
22423 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22424 };
22425
22426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22429 arg2 = (long)SWIG_As_long(obj1);
22430 if (PyErr_Occurred()) SWIG_fail;
22431 arg3 = (long)SWIG_As_long(obj2);
22432 if (PyErr_Occurred()) SWIG_fail;
22433 {
22434 PyThreadState* __tstate = wxPyBeginAllowThreads();
22435 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22436
22437 wxPyEndAllowThreads(__tstate);
22438 if (PyErr_Occurred()) SWIG_fail;
22439 }
22440 resultobj = SWIG_From_int((int)result);
22441 return resultobj;
22442 fail:
22443 return NULL;
22444 }
22445
22446
22447 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22448 PyObject *resultobj;
22449 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22450 long arg2 ;
22451 long arg3 ;
22452 long arg4 ;
22453 bool result;
22454 PyObject * obj0 = 0 ;
22455 PyObject * obj1 = 0 ;
22456 PyObject * obj2 = 0 ;
22457 PyObject * obj3 = 0 ;
22458 char *kwnames[] = {
22459 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22460 };
22461
22462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22465 arg2 = (long)SWIG_As_long(obj1);
22466 if (PyErr_Occurred()) SWIG_fail;
22467 arg3 = (long)SWIG_As_long(obj2);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 arg4 = (long)SWIG_As_long(obj3);
22470 if (PyErr_Occurred()) SWIG_fail;
22471 {
22472 PyThreadState* __tstate = wxPyBeginAllowThreads();
22473 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22474
22475 wxPyEndAllowThreads(__tstate);
22476 if (PyErr_Occurred()) SWIG_fail;
22477 }
22478 {
22479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22480 }
22481 return resultobj;
22482 fail:
22483 return NULL;
22484 }
22485
22486
22487 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22488 PyObject *resultobj;
22489 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22490 long arg2 ;
22491 int arg3 ;
22492 int arg4 = (int) -1 ;
22493 bool result;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 PyObject * obj2 = 0 ;
22497 PyObject * obj3 = 0 ;
22498 char *kwnames[] = {
22499 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22500 };
22501
22502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22505 arg2 = (long)SWIG_As_long(obj1);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 arg3 = (int)SWIG_As_int(obj2);
22508 if (PyErr_Occurred()) SWIG_fail;
22509 if (obj3) {
22510 arg4 = (int)SWIG_As_int(obj3);
22511 if (PyErr_Occurred()) SWIG_fail;
22512 }
22513 {
22514 PyThreadState* __tstate = wxPyBeginAllowThreads();
22515 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22516
22517 wxPyEndAllowThreads(__tstate);
22518 if (PyErr_Occurred()) SWIG_fail;
22519 }
22520 {
22521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22522 }
22523 return resultobj;
22524 fail:
22525 return NULL;
22526 }
22527
22528
22529 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22530 PyObject *resultobj;
22531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22532 long arg2 ;
22533 wxString result;
22534 PyObject * obj0 = 0 ;
22535 PyObject * obj1 = 0 ;
22536 char *kwnames[] = {
22537 (char *) "self",(char *) "item", NULL
22538 };
22539
22540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22543 arg2 = (long)SWIG_As_long(obj1);
22544 if (PyErr_Occurred()) SWIG_fail;
22545 {
22546 PyThreadState* __tstate = wxPyBeginAllowThreads();
22547 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22548
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 {
22553 #if wxUSE_UNICODE
22554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22555 #else
22556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22557 #endif
22558 }
22559 return resultobj;
22560 fail:
22561 return NULL;
22562 }
22563
22564
22565 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22566 PyObject *resultobj;
22567 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22568 long arg2 ;
22569 wxString *arg3 = 0 ;
22570 bool temp3 = false ;
22571 PyObject * obj0 = 0 ;
22572 PyObject * obj1 = 0 ;
22573 PyObject * obj2 = 0 ;
22574 char *kwnames[] = {
22575 (char *) "self",(char *) "item",(char *) "str", NULL
22576 };
22577
22578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22581 arg2 = (long)SWIG_As_long(obj1);
22582 if (PyErr_Occurred()) SWIG_fail;
22583 {
22584 arg3 = wxString_in_helper(obj2);
22585 if (arg3 == NULL) SWIG_fail;
22586 temp3 = true;
22587 }
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22591
22592 wxPyEndAllowThreads(__tstate);
22593 if (PyErr_Occurred()) SWIG_fail;
22594 }
22595 Py_INCREF(Py_None); resultobj = Py_None;
22596 {
22597 if (temp3)
22598 delete arg3;
22599 }
22600 return resultobj;
22601 fail:
22602 {
22603 if (temp3)
22604 delete arg3;
22605 }
22606 return NULL;
22607 }
22608
22609
22610 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22611 PyObject *resultobj;
22612 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22613 long arg2 ;
22614 long result;
22615 PyObject * obj0 = 0 ;
22616 PyObject * obj1 = 0 ;
22617 char *kwnames[] = {
22618 (char *) "self",(char *) "item", NULL
22619 };
22620
22621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22624 arg2 = (long)SWIG_As_long(obj1);
22625 if (PyErr_Occurred()) SWIG_fail;
22626 {
22627 PyThreadState* __tstate = wxPyBeginAllowThreads();
22628 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22629
22630 wxPyEndAllowThreads(__tstate);
22631 if (PyErr_Occurred()) SWIG_fail;
22632 }
22633 resultobj = SWIG_From_long((long)result);
22634 return resultobj;
22635 fail:
22636 return NULL;
22637 }
22638
22639
22640 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22641 PyObject *resultobj;
22642 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22643 long arg2 ;
22644 long arg3 ;
22645 bool result;
22646 PyObject * obj0 = 0 ;
22647 PyObject * obj1 = 0 ;
22648 PyObject * obj2 = 0 ;
22649 char *kwnames[] = {
22650 (char *) "self",(char *) "item",(char *) "data", NULL
22651 };
22652
22653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22656 arg2 = (long)SWIG_As_long(obj1);
22657 if (PyErr_Occurred()) SWIG_fail;
22658 arg3 = (long)SWIG_As_long(obj2);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 {
22661 PyThreadState* __tstate = wxPyBeginAllowThreads();
22662 result = (bool)(arg1)->SetItemData(arg2,arg3);
22663
22664 wxPyEndAllowThreads(__tstate);
22665 if (PyErr_Occurred()) SWIG_fail;
22666 }
22667 {
22668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22669 }
22670 return resultobj;
22671 fail:
22672 return NULL;
22673 }
22674
22675
22676 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22677 PyObject *resultobj;
22678 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22679 long arg2 ;
22680 wxPoint result;
22681 PyObject * obj0 = 0 ;
22682 PyObject * obj1 = 0 ;
22683 char *kwnames[] = {
22684 (char *) "self",(char *) "item", NULL
22685 };
22686
22687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22690 arg2 = (long)SWIG_As_long(obj1);
22691 if (PyErr_Occurred()) SWIG_fail;
22692 {
22693 PyThreadState* __tstate = wxPyBeginAllowThreads();
22694 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22695
22696 wxPyEndAllowThreads(__tstate);
22697 if (PyErr_Occurred()) SWIG_fail;
22698 }
22699 {
22700 wxPoint * resultptr;
22701 resultptr = new wxPoint((wxPoint &) result);
22702 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22703 }
22704 return resultobj;
22705 fail:
22706 return NULL;
22707 }
22708
22709
22710 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22711 PyObject *resultobj;
22712 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22713 long arg2 ;
22714 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22715 wxRect result;
22716 PyObject * obj0 = 0 ;
22717 PyObject * obj1 = 0 ;
22718 PyObject * obj2 = 0 ;
22719 char *kwnames[] = {
22720 (char *) "self",(char *) "item",(char *) "code", NULL
22721 };
22722
22723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22726 arg2 = (long)SWIG_As_long(obj1);
22727 if (PyErr_Occurred()) SWIG_fail;
22728 if (obj2) {
22729 arg3 = (int)SWIG_As_int(obj2);
22730 if (PyErr_Occurred()) SWIG_fail;
22731 }
22732 {
22733 PyThreadState* __tstate = wxPyBeginAllowThreads();
22734 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22735
22736 wxPyEndAllowThreads(__tstate);
22737 if (PyErr_Occurred()) SWIG_fail;
22738 }
22739 {
22740 wxRect * resultptr;
22741 resultptr = new wxRect((wxRect &) result);
22742 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22743 }
22744 return resultobj;
22745 fail:
22746 return NULL;
22747 }
22748
22749
22750 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22751 PyObject *resultobj;
22752 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22753 long arg2 ;
22754 wxPoint *arg3 = 0 ;
22755 bool result;
22756 wxPoint temp3 ;
22757 PyObject * obj0 = 0 ;
22758 PyObject * obj1 = 0 ;
22759 PyObject * obj2 = 0 ;
22760 char *kwnames[] = {
22761 (char *) "self",(char *) "item",(char *) "pos", NULL
22762 };
22763
22764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22767 arg2 = (long)SWIG_As_long(obj1);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 {
22770 arg3 = &temp3;
22771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22772 }
22773 {
22774 PyThreadState* __tstate = wxPyBeginAllowThreads();
22775 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22776
22777 wxPyEndAllowThreads(__tstate);
22778 if (PyErr_Occurred()) SWIG_fail;
22779 }
22780 {
22781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22782 }
22783 return resultobj;
22784 fail:
22785 return NULL;
22786 }
22787
22788
22789 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22790 PyObject *resultobj;
22791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22792 int result;
22793 PyObject * obj0 = 0 ;
22794 char *kwnames[] = {
22795 (char *) "self", NULL
22796 };
22797
22798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22801 {
22802 PyThreadState* __tstate = wxPyBeginAllowThreads();
22803 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22804
22805 wxPyEndAllowThreads(__tstate);
22806 if (PyErr_Occurred()) SWIG_fail;
22807 }
22808 resultobj = SWIG_From_int((int)result);
22809 return resultobj;
22810 fail:
22811 return NULL;
22812 }
22813
22814
22815 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22816 PyObject *resultobj;
22817 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22818 int result;
22819 PyObject * obj0 = 0 ;
22820 char *kwnames[] = {
22821 (char *) "self", NULL
22822 };
22823
22824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22827 {
22828 PyThreadState* __tstate = wxPyBeginAllowThreads();
22829 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22830
22831 wxPyEndAllowThreads(__tstate);
22832 if (PyErr_Occurred()) SWIG_fail;
22833 }
22834 resultobj = SWIG_From_int((int)result);
22835 return resultobj;
22836 fail:
22837 return NULL;
22838 }
22839
22840
22841 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22842 PyObject *resultobj;
22843 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22844 wxSize result;
22845 PyObject * obj0 = 0 ;
22846 char *kwnames[] = {
22847 (char *) "self", NULL
22848 };
22849
22850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22853 {
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22856
22857 wxPyEndAllowThreads(__tstate);
22858 if (PyErr_Occurred()) SWIG_fail;
22859 }
22860 {
22861 wxSize * resultptr;
22862 resultptr = new wxSize((wxSize &) result);
22863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22864 }
22865 return resultobj;
22866 fail:
22867 return NULL;
22868 }
22869
22870
22871 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22872 PyObject *resultobj;
22873 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22874 int arg2 ;
22875 bool arg3 = (bool) false ;
22876 PyObject * obj0 = 0 ;
22877 PyObject * obj1 = 0 ;
22878 PyObject * obj2 = 0 ;
22879 char *kwnames[] = {
22880 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
22881 };
22882
22883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22886 arg2 = (int)SWIG_As_int(obj1);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 if (obj2) {
22889 arg3 = (bool)SWIG_As_bool(obj2);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 {
22893 PyThreadState* __tstate = wxPyBeginAllowThreads();
22894 (arg1)->SetItemSpacing(arg2,arg3);
22895
22896 wxPyEndAllowThreads(__tstate);
22897 if (PyErr_Occurred()) SWIG_fail;
22898 }
22899 Py_INCREF(Py_None); resultobj = Py_None;
22900 return resultobj;
22901 fail:
22902 return NULL;
22903 }
22904
22905
22906 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22907 PyObject *resultobj;
22908 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22909 int result;
22910 PyObject * obj0 = 0 ;
22911 char *kwnames[] = {
22912 (char *) "self", NULL
22913 };
22914
22915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22918 {
22919 PyThreadState* __tstate = wxPyBeginAllowThreads();
22920 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22921
22922 wxPyEndAllowThreads(__tstate);
22923 if (PyErr_Occurred()) SWIG_fail;
22924 }
22925 resultobj = SWIG_From_int((int)result);
22926 return resultobj;
22927 fail:
22928 return NULL;
22929 }
22930
22931
22932 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22933 PyObject *resultobj;
22934 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22935 wxColour result;
22936 PyObject * obj0 = 0 ;
22937 char *kwnames[] = {
22938 (char *) "self", NULL
22939 };
22940
22941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22944 {
22945 PyThreadState* __tstate = wxPyBeginAllowThreads();
22946 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22947
22948 wxPyEndAllowThreads(__tstate);
22949 if (PyErr_Occurred()) SWIG_fail;
22950 }
22951 {
22952 wxColour * resultptr;
22953 resultptr = new wxColour((wxColour &) result);
22954 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22955 }
22956 return resultobj;
22957 fail:
22958 return NULL;
22959 }
22960
22961
22962 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22963 PyObject *resultobj;
22964 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22965 wxColour *arg2 = 0 ;
22966 wxColour temp2 ;
22967 PyObject * obj0 = 0 ;
22968 PyObject * obj1 = 0 ;
22969 char *kwnames[] = {
22970 (char *) "self",(char *) "col", NULL
22971 };
22972
22973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22976 {
22977 arg2 = &temp2;
22978 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22979 }
22980 {
22981 PyThreadState* __tstate = wxPyBeginAllowThreads();
22982 (arg1)->SetTextColour((wxColour const &)*arg2);
22983
22984 wxPyEndAllowThreads(__tstate);
22985 if (PyErr_Occurred()) SWIG_fail;
22986 }
22987 Py_INCREF(Py_None); resultobj = Py_None;
22988 return resultobj;
22989 fail:
22990 return NULL;
22991 }
22992
22993
22994 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22995 PyObject *resultobj;
22996 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22997 long result;
22998 PyObject * obj0 = 0 ;
22999 char *kwnames[] = {
23000 (char *) "self", NULL
23001 };
23002
23003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
23004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23006 {
23007 PyThreadState* __tstate = wxPyBeginAllowThreads();
23008 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
23009
23010 wxPyEndAllowThreads(__tstate);
23011 if (PyErr_Occurred()) SWIG_fail;
23012 }
23013 resultobj = SWIG_From_long((long)result);
23014 return resultobj;
23015 fail:
23016 return NULL;
23017 }
23018
23019
23020 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
23021 PyObject *resultobj;
23022 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23023 long arg2 ;
23024 bool arg3 = (bool) true ;
23025 PyObject * obj0 = 0 ;
23026 PyObject * obj1 = 0 ;
23027 PyObject * obj2 = 0 ;
23028 char *kwnames[] = {
23029 (char *) "self",(char *) "style",(char *) "add", NULL
23030 };
23031
23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 arg2 = (long)SWIG_As_long(obj1);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 if (obj2) {
23038 arg3 = (bool)SWIG_As_bool(obj2);
23039 if (PyErr_Occurred()) SWIG_fail;
23040 }
23041 {
23042 PyThreadState* __tstate = wxPyBeginAllowThreads();
23043 (arg1)->SetSingleStyle(arg2,arg3);
23044
23045 wxPyEndAllowThreads(__tstate);
23046 if (PyErr_Occurred()) SWIG_fail;
23047 }
23048 Py_INCREF(Py_None); resultobj = Py_None;
23049 return resultobj;
23050 fail:
23051 return NULL;
23052 }
23053
23054
23055 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
23056 PyObject *resultobj;
23057 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23058 long arg2 ;
23059 PyObject * obj0 = 0 ;
23060 PyObject * obj1 = 0 ;
23061 char *kwnames[] = {
23062 (char *) "self",(char *) "style", NULL
23063 };
23064
23065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
23066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23068 arg2 = (long)SWIG_As_long(obj1);
23069 if (PyErr_Occurred()) SWIG_fail;
23070 {
23071 PyThreadState* __tstate = wxPyBeginAllowThreads();
23072 (arg1)->SetWindowStyleFlag(arg2);
23073
23074 wxPyEndAllowThreads(__tstate);
23075 if (PyErr_Occurred()) SWIG_fail;
23076 }
23077 Py_INCREF(Py_None); resultobj = Py_None;
23078 return resultobj;
23079 fail:
23080 return NULL;
23081 }
23082
23083
23084 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj;
23086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23087 long arg2 ;
23088 int arg3 = (int) wxLIST_NEXT_ALL ;
23089 int arg4 = (int) wxLIST_STATE_DONTCARE ;
23090 long result;
23091 PyObject * obj0 = 0 ;
23092 PyObject * obj1 = 0 ;
23093 PyObject * obj2 = 0 ;
23094 PyObject * obj3 = 0 ;
23095 char *kwnames[] = {
23096 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
23097 };
23098
23099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23102 arg2 = (long)SWIG_As_long(obj1);
23103 if (PyErr_Occurred()) SWIG_fail;
23104 if (obj2) {
23105 arg3 = (int)SWIG_As_int(obj2);
23106 if (PyErr_Occurred()) SWIG_fail;
23107 }
23108 if (obj3) {
23109 arg4 = (int)SWIG_As_int(obj3);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 PyThreadState* __tstate = wxPyBeginAllowThreads();
23114 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
23115
23116 wxPyEndAllowThreads(__tstate);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 }
23119 resultobj = SWIG_From_long((long)result);
23120 return resultobj;
23121 fail:
23122 return NULL;
23123 }
23124
23125
23126 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj;
23128 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23129 int arg2 ;
23130 wxImageList *result;
23131 PyObject * obj0 = 0 ;
23132 PyObject * obj1 = 0 ;
23133 char *kwnames[] = {
23134 (char *) "self",(char *) "which", NULL
23135 };
23136
23137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
23138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23140 arg2 = (int)SWIG_As_int(obj1);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 {
23143 PyThreadState* __tstate = wxPyBeginAllowThreads();
23144 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
23145
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 {
23150 resultobj = wxPyMake_wxObject(result, 0);
23151 }
23152 return resultobj;
23153 fail:
23154 return NULL;
23155 }
23156
23157
23158 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23159 PyObject *resultobj;
23160 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23161 wxImageList *arg2 = (wxImageList *) 0 ;
23162 int arg3 ;
23163 PyObject * obj0 = 0 ;
23164 PyObject * obj1 = 0 ;
23165 PyObject * obj2 = 0 ;
23166 char *kwnames[] = {
23167 (char *) "self",(char *) "imageList",(char *) "which", NULL
23168 };
23169
23170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23175 arg3 = (int)SWIG_As_int(obj2);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 {
23178 PyThreadState* __tstate = wxPyBeginAllowThreads();
23179 (arg1)->SetImageList(arg2,arg3);
23180
23181 wxPyEndAllowThreads(__tstate);
23182 if (PyErr_Occurred()) SWIG_fail;
23183 }
23184 Py_INCREF(Py_None); resultobj = Py_None;
23185 return resultobj;
23186 fail:
23187 return NULL;
23188 }
23189
23190
23191 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23192 PyObject *resultobj;
23193 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23194 wxImageList *arg2 = (wxImageList *) 0 ;
23195 int arg3 ;
23196 PyObject * obj0 = 0 ;
23197 PyObject * obj1 = 0 ;
23198 PyObject * obj2 = 0 ;
23199 char *kwnames[] = {
23200 (char *) "self",(char *) "imageList",(char *) "which", NULL
23201 };
23202
23203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23206 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23207 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23208 arg3 = (int)SWIG_As_int(obj2);
23209 if (PyErr_Occurred()) SWIG_fail;
23210 {
23211 PyThreadState* __tstate = wxPyBeginAllowThreads();
23212 (arg1)->AssignImageList(arg2,arg3);
23213
23214 wxPyEndAllowThreads(__tstate);
23215 if (PyErr_Occurred()) SWIG_fail;
23216 }
23217 Py_INCREF(Py_None); resultobj = Py_None;
23218 return resultobj;
23219 fail:
23220 return NULL;
23221 }
23222
23223
23224 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
23225 PyObject *resultobj;
23226 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23227 bool result;
23228 PyObject * obj0 = 0 ;
23229 char *kwnames[] = {
23230 (char *) "self", NULL
23231 };
23232
23233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
23234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23236 {
23237 PyThreadState* __tstate = wxPyBeginAllowThreads();
23238 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
23239
23240 wxPyEndAllowThreads(__tstate);
23241 if (PyErr_Occurred()) SWIG_fail;
23242 }
23243 {
23244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23245 }
23246 return resultobj;
23247 fail:
23248 return NULL;
23249 }
23250
23251
23252 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
23253 PyObject *resultobj;
23254 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23255 bool result;
23256 PyObject * obj0 = 0 ;
23257 char *kwnames[] = {
23258 (char *) "self", NULL
23259 };
23260
23261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
23262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23264 {
23265 PyThreadState* __tstate = wxPyBeginAllowThreads();
23266 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
23267
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 {
23272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23273 }
23274 return resultobj;
23275 fail:
23276 return NULL;
23277 }
23278
23279
23280 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
23281 PyObject *resultobj;
23282 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23283 long arg2 ;
23284 PyObject * obj0 = 0 ;
23285 PyObject * obj1 = 0 ;
23286 char *kwnames[] = {
23287 (char *) "self",(char *) "item", NULL
23288 };
23289
23290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
23291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23293 arg2 = (long)SWIG_As_long(obj1);
23294 if (PyErr_Occurred()) SWIG_fail;
23295 {
23296 PyThreadState* __tstate = wxPyBeginAllowThreads();
23297 (arg1)->RefreshItem(arg2);
23298
23299 wxPyEndAllowThreads(__tstate);
23300 if (PyErr_Occurred()) SWIG_fail;
23301 }
23302 Py_INCREF(Py_None); resultobj = Py_None;
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23312 long arg2 ;
23313 long arg3 ;
23314 PyObject * obj0 = 0 ;
23315 PyObject * obj1 = 0 ;
23316 PyObject * obj2 = 0 ;
23317 char *kwnames[] = {
23318 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
23319 };
23320
23321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
23322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23324 arg2 = (long)SWIG_As_long(obj1);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 arg3 = (long)SWIG_As_long(obj2);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 {
23329 PyThreadState* __tstate = wxPyBeginAllowThreads();
23330 (arg1)->RefreshItems(arg2,arg3);
23331
23332 wxPyEndAllowThreads(__tstate);
23333 if (PyErr_Occurred()) SWIG_fail;
23334 }
23335 Py_INCREF(Py_None); resultobj = Py_None;
23336 return resultobj;
23337 fail:
23338 return NULL;
23339 }
23340
23341
23342 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
23343 PyObject *resultobj;
23344 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23345 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
23346 bool result;
23347 PyObject * obj0 = 0 ;
23348 PyObject * obj1 = 0 ;
23349 char *kwnames[] = {
23350 (char *) "self",(char *) "flag", NULL
23351 };
23352
23353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
23354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23356 if (obj1) {
23357 arg2 = (int)SWIG_As_int(obj1);
23358 if (PyErr_Occurred()) SWIG_fail;
23359 }
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 result = (bool)(arg1)->Arrange(arg2);
23363
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 {
23368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23369 }
23370 return resultobj;
23371 fail:
23372 return NULL;
23373 }
23374
23375
23376 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
23377 PyObject *resultobj;
23378 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23379 long arg2 ;
23380 bool result;
23381 PyObject * obj0 = 0 ;
23382 PyObject * obj1 = 0 ;
23383 char *kwnames[] = {
23384 (char *) "self",(char *) "item", NULL
23385 };
23386
23387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
23388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23390 arg2 = (long)SWIG_As_long(obj1);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (bool)(arg1)->DeleteItem(arg2);
23395
23396 wxPyEndAllowThreads(__tstate);
23397 if (PyErr_Occurred()) SWIG_fail;
23398 }
23399 {
23400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23401 }
23402 return resultobj;
23403 fail:
23404 return NULL;
23405 }
23406
23407
23408 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
23409 PyObject *resultobj;
23410 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23411 bool result;
23412 PyObject * obj0 = 0 ;
23413 char *kwnames[] = {
23414 (char *) "self", NULL
23415 };
23416
23417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
23418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 result = (bool)(arg1)->DeleteAllItems();
23423
23424 wxPyEndAllowThreads(__tstate);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 }
23427 {
23428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23429 }
23430 return resultobj;
23431 fail:
23432 return NULL;
23433 }
23434
23435
23436 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23437 PyObject *resultobj;
23438 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23439 int arg2 ;
23440 bool result;
23441 PyObject * obj0 = 0 ;
23442 PyObject * obj1 = 0 ;
23443 char *kwnames[] = {
23444 (char *) "self",(char *) "col", NULL
23445 };
23446
23447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
23448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23450 arg2 = (int)SWIG_As_int(obj1);
23451 if (PyErr_Occurred()) SWIG_fail;
23452 {
23453 PyThreadState* __tstate = wxPyBeginAllowThreads();
23454 result = (bool)(arg1)->DeleteColumn(arg2);
23455
23456 wxPyEndAllowThreads(__tstate);
23457 if (PyErr_Occurred()) SWIG_fail;
23458 }
23459 {
23460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23461 }
23462 return resultobj;
23463 fail:
23464 return NULL;
23465 }
23466
23467
23468 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23469 PyObject *resultobj;
23470 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23471 bool result;
23472 PyObject * obj0 = 0 ;
23473 char *kwnames[] = {
23474 (char *) "self", NULL
23475 };
23476
23477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
23478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23480 {
23481 PyThreadState* __tstate = wxPyBeginAllowThreads();
23482 result = (bool)(arg1)->DeleteAllColumns();
23483
23484 wxPyEndAllowThreads(__tstate);
23485 if (PyErr_Occurred()) SWIG_fail;
23486 }
23487 {
23488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23489 }
23490 return resultobj;
23491 fail:
23492 return NULL;
23493 }
23494
23495
23496 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23497 PyObject *resultobj;
23498 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23499 PyObject * obj0 = 0 ;
23500 char *kwnames[] = {
23501 (char *) "self", NULL
23502 };
23503
23504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23507 {
23508 PyThreadState* __tstate = wxPyBeginAllowThreads();
23509 (arg1)->ClearAll();
23510
23511 wxPyEndAllowThreads(__tstate);
23512 if (PyErr_Occurred()) SWIG_fail;
23513 }
23514 Py_INCREF(Py_None); resultobj = Py_None;
23515 return resultobj;
23516 fail:
23517 return NULL;
23518 }
23519
23520
23521 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23522 PyObject *resultobj;
23523 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23524 long arg2 ;
23525 PyObject * obj0 = 0 ;
23526 PyObject * obj1 = 0 ;
23527 char *kwnames[] = {
23528 (char *) "self",(char *) "item", NULL
23529 };
23530
23531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23534 arg2 = (long)SWIG_As_long(obj1);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 (arg1)->EditLabel(arg2);
23539
23540 wxPyEndAllowThreads(__tstate);
23541 if (PyErr_Occurred()) SWIG_fail;
23542 }
23543 Py_INCREF(Py_None); resultobj = Py_None;
23544 return resultobj;
23545 fail:
23546 return NULL;
23547 }
23548
23549
23550 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj;
23552 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23553 long arg2 ;
23554 bool result;
23555 PyObject * obj0 = 0 ;
23556 PyObject * obj1 = 0 ;
23557 char *kwnames[] = {
23558 (char *) "self",(char *) "item", NULL
23559 };
23560
23561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23564 arg2 = (long)SWIG_As_long(obj1);
23565 if (PyErr_Occurred()) SWIG_fail;
23566 {
23567 PyThreadState* __tstate = wxPyBeginAllowThreads();
23568 result = (bool)(arg1)->EnsureVisible(arg2);
23569
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 {
23574 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23575 }
23576 return resultobj;
23577 fail:
23578 return NULL;
23579 }
23580
23581
23582 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23583 PyObject *resultobj;
23584 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23585 long arg2 ;
23586 wxString *arg3 = 0 ;
23587 bool arg4 = (bool) false ;
23588 long result;
23589 bool temp3 = false ;
23590 PyObject * obj0 = 0 ;
23591 PyObject * obj1 = 0 ;
23592 PyObject * obj2 = 0 ;
23593 PyObject * obj3 = 0 ;
23594 char *kwnames[] = {
23595 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23596 };
23597
23598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23601 arg2 = (long)SWIG_As_long(obj1);
23602 if (PyErr_Occurred()) SWIG_fail;
23603 {
23604 arg3 = wxString_in_helper(obj2);
23605 if (arg3 == NULL) SWIG_fail;
23606 temp3 = true;
23607 }
23608 if (obj3) {
23609 arg4 = (bool)SWIG_As_bool(obj3);
23610 if (PyErr_Occurred()) SWIG_fail;
23611 }
23612 {
23613 PyThreadState* __tstate = wxPyBeginAllowThreads();
23614 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23615
23616 wxPyEndAllowThreads(__tstate);
23617 if (PyErr_Occurred()) SWIG_fail;
23618 }
23619 resultobj = SWIG_From_long((long)result);
23620 {
23621 if (temp3)
23622 delete arg3;
23623 }
23624 return resultobj;
23625 fail:
23626 {
23627 if (temp3)
23628 delete arg3;
23629 }
23630 return NULL;
23631 }
23632
23633
23634 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23635 PyObject *resultobj;
23636 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23637 long arg2 ;
23638 long arg3 ;
23639 long result;
23640 PyObject * obj0 = 0 ;
23641 PyObject * obj1 = 0 ;
23642 PyObject * obj2 = 0 ;
23643 char *kwnames[] = {
23644 (char *) "self",(char *) "start",(char *) "data", NULL
23645 };
23646
23647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23650 arg2 = (long)SWIG_As_long(obj1);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 arg3 = (long)SWIG_As_long(obj2);
23653 if (PyErr_Occurred()) SWIG_fail;
23654 {
23655 PyThreadState* __tstate = wxPyBeginAllowThreads();
23656 result = (long)(arg1)->FindItem(arg2,arg3);
23657
23658 wxPyEndAllowThreads(__tstate);
23659 if (PyErr_Occurred()) SWIG_fail;
23660 }
23661 resultobj = SWIG_From_long((long)result);
23662 return resultobj;
23663 fail:
23664 return NULL;
23665 }
23666
23667
23668 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23669 PyObject *resultobj;
23670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23671 long arg2 ;
23672 wxPoint *arg3 = 0 ;
23673 int arg4 ;
23674 long result;
23675 wxPoint temp3 ;
23676 PyObject * obj0 = 0 ;
23677 PyObject * obj1 = 0 ;
23678 PyObject * obj2 = 0 ;
23679 PyObject * obj3 = 0 ;
23680 char *kwnames[] = {
23681 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23682 };
23683
23684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23687 arg2 = (long)SWIG_As_long(obj1);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 {
23690 arg3 = &temp3;
23691 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23692 }
23693 arg4 = (int)SWIG_As_int(obj3);
23694 if (PyErr_Occurred()) SWIG_fail;
23695 {
23696 PyThreadState* __tstate = wxPyBeginAllowThreads();
23697 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23698
23699 wxPyEndAllowThreads(__tstate);
23700 if (PyErr_Occurred()) SWIG_fail;
23701 }
23702 resultobj = SWIG_From_long((long)result);
23703 return resultobj;
23704 fail:
23705 return NULL;
23706 }
23707
23708
23709 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23710 PyObject *resultobj;
23711 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23712 wxPoint *arg2 = 0 ;
23713 int *arg3 = 0 ;
23714 long result;
23715 wxPoint temp2 ;
23716 int temp3 ;
23717 int res3 = 0 ;
23718 PyObject * obj0 = 0 ;
23719 PyObject * obj1 = 0 ;
23720 char *kwnames[] = {
23721 (char *) "self",(char *) "point", NULL
23722 };
23723
23724 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23728 {
23729 arg2 = &temp2;
23730 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23731 }
23732 {
23733 PyThreadState* __tstate = wxPyBeginAllowThreads();
23734 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23735
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = SWIG_From_long((long)result);
23740 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23741 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23742 return resultobj;
23743 fail:
23744 return NULL;
23745 }
23746
23747
23748 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23749 PyObject *resultobj;
23750 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23751 wxListItem *arg2 = 0 ;
23752 long result;
23753 PyObject * obj0 = 0 ;
23754 PyObject * obj1 = 0 ;
23755 char *kwnames[] = {
23756 (char *) "self",(char *) "info", NULL
23757 };
23758
23759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23762 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23763 SWIG_POINTER_EXCEPTION | 0)) == -1)
23764 SWIG_fail;
23765 if (arg2 == NULL) {
23766 PyErr_SetString(PyExc_TypeError,"null reference");
23767 SWIG_fail;
23768 }
23769 {
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 result = (long)(arg1)->InsertItem(*arg2);
23772
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 resultobj = SWIG_From_long((long)result);
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23784 PyObject *resultobj;
23785 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23786 long arg2 ;
23787 wxString *arg3 = 0 ;
23788 long result;
23789 bool temp3 = false ;
23790 PyObject * obj0 = 0 ;
23791 PyObject * obj1 = 0 ;
23792 PyObject * obj2 = 0 ;
23793 char *kwnames[] = {
23794 (char *) "self",(char *) "index",(char *) "label", NULL
23795 };
23796
23797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23800 arg2 = (long)SWIG_As_long(obj1);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 {
23803 arg3 = wxString_in_helper(obj2);
23804 if (arg3 == NULL) SWIG_fail;
23805 temp3 = true;
23806 }
23807 {
23808 PyThreadState* __tstate = wxPyBeginAllowThreads();
23809 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23810
23811 wxPyEndAllowThreads(__tstate);
23812 if (PyErr_Occurred()) SWIG_fail;
23813 }
23814 resultobj = SWIG_From_long((long)result);
23815 {
23816 if (temp3)
23817 delete arg3;
23818 }
23819 return resultobj;
23820 fail:
23821 {
23822 if (temp3)
23823 delete arg3;
23824 }
23825 return NULL;
23826 }
23827
23828
23829 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23830 PyObject *resultobj;
23831 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23832 long arg2 ;
23833 int arg3 ;
23834 long result;
23835 PyObject * obj0 = 0 ;
23836 PyObject * obj1 = 0 ;
23837 PyObject * obj2 = 0 ;
23838 char *kwnames[] = {
23839 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23840 };
23841
23842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23845 arg2 = (long)SWIG_As_long(obj1);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 arg3 = (int)SWIG_As_int(obj2);
23848 if (PyErr_Occurred()) SWIG_fail;
23849 {
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 result = (long)(arg1)->InsertItem(arg2,arg3);
23852
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = SWIG_From_long((long)result);
23857 return resultobj;
23858 fail:
23859 return NULL;
23860 }
23861
23862
23863 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23864 PyObject *resultobj;
23865 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23866 long arg2 ;
23867 wxString *arg3 = 0 ;
23868 int arg4 ;
23869 long result;
23870 bool temp3 = false ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 PyObject * obj2 = 0 ;
23874 PyObject * obj3 = 0 ;
23875 char *kwnames[] = {
23876 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23877 };
23878
23879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23882 arg2 = (long)SWIG_As_long(obj1);
23883 if (PyErr_Occurred()) SWIG_fail;
23884 {
23885 arg3 = wxString_in_helper(obj2);
23886 if (arg3 == NULL) SWIG_fail;
23887 temp3 = true;
23888 }
23889 arg4 = (int)SWIG_As_int(obj3);
23890 if (PyErr_Occurred()) SWIG_fail;
23891 {
23892 PyThreadState* __tstate = wxPyBeginAllowThreads();
23893 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23894
23895 wxPyEndAllowThreads(__tstate);
23896 if (PyErr_Occurred()) SWIG_fail;
23897 }
23898 resultobj = SWIG_From_long((long)result);
23899 {
23900 if (temp3)
23901 delete arg3;
23902 }
23903 return resultobj;
23904 fail:
23905 {
23906 if (temp3)
23907 delete arg3;
23908 }
23909 return NULL;
23910 }
23911
23912
23913 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23914 PyObject *resultobj;
23915 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23916 long arg2 ;
23917 wxListItem *arg3 = 0 ;
23918 long result;
23919 PyObject * obj0 = 0 ;
23920 PyObject * obj1 = 0 ;
23921 PyObject * obj2 = 0 ;
23922 char *kwnames[] = {
23923 (char *) "self",(char *) "col",(char *) "info", NULL
23924 };
23925
23926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23929 arg2 = (long)SWIG_As_long(obj1);
23930 if (PyErr_Occurred()) SWIG_fail;
23931 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23932 SWIG_POINTER_EXCEPTION | 0)) == -1)
23933 SWIG_fail;
23934 if (arg3 == NULL) {
23935 PyErr_SetString(PyExc_TypeError,"null reference");
23936 SWIG_fail;
23937 }
23938 {
23939 PyThreadState* __tstate = wxPyBeginAllowThreads();
23940 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23941
23942 wxPyEndAllowThreads(__tstate);
23943 if (PyErr_Occurred()) SWIG_fail;
23944 }
23945 resultobj = SWIG_From_long((long)result);
23946 return resultobj;
23947 fail:
23948 return NULL;
23949 }
23950
23951
23952 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23953 PyObject *resultobj;
23954 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23955 long arg2 ;
23956 wxString *arg3 = 0 ;
23957 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23958 int arg5 = (int) -1 ;
23959 long result;
23960 bool temp3 = false ;
23961 PyObject * obj0 = 0 ;
23962 PyObject * obj1 = 0 ;
23963 PyObject * obj2 = 0 ;
23964 PyObject * obj3 = 0 ;
23965 PyObject * obj4 = 0 ;
23966 char *kwnames[] = {
23967 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23968 };
23969
23970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23973 arg2 = (long)SWIG_As_long(obj1);
23974 if (PyErr_Occurred()) SWIG_fail;
23975 {
23976 arg3 = wxString_in_helper(obj2);
23977 if (arg3 == NULL) SWIG_fail;
23978 temp3 = true;
23979 }
23980 if (obj3) {
23981 arg4 = (int)SWIG_As_int(obj3);
23982 if (PyErr_Occurred()) SWIG_fail;
23983 }
23984 if (obj4) {
23985 arg5 = (int)SWIG_As_int(obj4);
23986 if (PyErr_Occurred()) SWIG_fail;
23987 }
23988 {
23989 PyThreadState* __tstate = wxPyBeginAllowThreads();
23990 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23991
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 resultobj = SWIG_From_long((long)result);
23996 {
23997 if (temp3)
23998 delete arg3;
23999 }
24000 return resultobj;
24001 fail:
24002 {
24003 if (temp3)
24004 delete arg3;
24005 }
24006 return NULL;
24007 }
24008
24009
24010 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
24011 PyObject *resultobj;
24012 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24013 long arg2 ;
24014 PyObject * obj0 = 0 ;
24015 PyObject * obj1 = 0 ;
24016 char *kwnames[] = {
24017 (char *) "self",(char *) "count", NULL
24018 };
24019
24020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
24021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24023 arg2 = (long)SWIG_As_long(obj1);
24024 if (PyErr_Occurred()) SWIG_fail;
24025 {
24026 PyThreadState* __tstate = wxPyBeginAllowThreads();
24027 (arg1)->SetItemCount(arg2);
24028
24029 wxPyEndAllowThreads(__tstate);
24030 if (PyErr_Occurred()) SWIG_fail;
24031 }
24032 Py_INCREF(Py_None); resultobj = Py_None;
24033 return resultobj;
24034 fail:
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24042 int arg2 ;
24043 int arg3 ;
24044 bool result;
24045 PyObject * obj0 = 0 ;
24046 PyObject * obj1 = 0 ;
24047 PyObject * obj2 = 0 ;
24048 char *kwnames[] = {
24049 (char *) "self",(char *) "dx",(char *) "dy", NULL
24050 };
24051
24052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
24053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24055 arg2 = (int)SWIG_As_int(obj1);
24056 if (PyErr_Occurred()) SWIG_fail;
24057 arg3 = (int)SWIG_As_int(obj2);
24058 if (PyErr_Occurred()) SWIG_fail;
24059 {
24060 PyThreadState* __tstate = wxPyBeginAllowThreads();
24061 result = (bool)(arg1)->ScrollList(arg2,arg3);
24062
24063 wxPyEndAllowThreads(__tstate);
24064 if (PyErr_Occurred()) SWIG_fail;
24065 }
24066 {
24067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24068 }
24069 return resultobj;
24070 fail:
24071 return NULL;
24072 }
24073
24074
24075 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24076 PyObject *resultobj;
24077 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24078 long arg2 ;
24079 wxColour *arg3 = 0 ;
24080 wxColour temp3 ;
24081 PyObject * obj0 = 0 ;
24082 PyObject * obj1 = 0 ;
24083 PyObject * obj2 = 0 ;
24084 char *kwnames[] = {
24085 (char *) "self",(char *) "item",(char *) "col", NULL
24086 };
24087
24088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24091 arg2 = (long)SWIG_As_long(obj1);
24092 if (PyErr_Occurred()) SWIG_fail;
24093 {
24094 arg3 = &temp3;
24095 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24096 }
24097 {
24098 PyThreadState* __tstate = wxPyBeginAllowThreads();
24099 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
24100
24101 wxPyEndAllowThreads(__tstate);
24102 if (PyErr_Occurred()) SWIG_fail;
24103 }
24104 Py_INCREF(Py_None); resultobj = Py_None;
24105 return resultobj;
24106 fail:
24107 return NULL;
24108 }
24109
24110
24111 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24112 PyObject *resultobj;
24113 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24114 long arg2 ;
24115 wxColour result;
24116 PyObject * obj0 = 0 ;
24117 PyObject * obj1 = 0 ;
24118 char *kwnames[] = {
24119 (char *) "self",(char *) "item", NULL
24120 };
24121
24122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24125 arg2 = (long)SWIG_As_long(obj1);
24126 if (PyErr_Occurred()) SWIG_fail;
24127 {
24128 PyThreadState* __tstate = wxPyBeginAllowThreads();
24129 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
24130
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 {
24135 wxColour * resultptr;
24136 resultptr = new wxColour((wxColour &) result);
24137 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24138 }
24139 return resultobj;
24140 fail:
24141 return NULL;
24142 }
24143
24144
24145 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24146 PyObject *resultobj;
24147 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24148 long arg2 ;
24149 wxColour *arg3 = 0 ;
24150 wxColour temp3 ;
24151 PyObject * obj0 = 0 ;
24152 PyObject * obj1 = 0 ;
24153 PyObject * obj2 = 0 ;
24154 char *kwnames[] = {
24155 (char *) "self",(char *) "item",(char *) "col", NULL
24156 };
24157
24158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24161 arg2 = (long)SWIG_As_long(obj1);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 {
24164 arg3 = &temp3;
24165 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24166 }
24167 {
24168 PyThreadState* __tstate = wxPyBeginAllowThreads();
24169 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
24170
24171 wxPyEndAllowThreads(__tstate);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 }
24174 Py_INCREF(Py_None); resultobj = Py_None;
24175 return resultobj;
24176 fail:
24177 return NULL;
24178 }
24179
24180
24181 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24182 PyObject *resultobj;
24183 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24184 long arg2 ;
24185 wxColour result;
24186 PyObject * obj0 = 0 ;
24187 PyObject * obj1 = 0 ;
24188 char *kwnames[] = {
24189 (char *) "self",(char *) "item", NULL
24190 };
24191
24192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24195 arg2 = (long)SWIG_As_long(obj1);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 {
24198 PyThreadState* __tstate = wxPyBeginAllowThreads();
24199 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
24200
24201 wxPyEndAllowThreads(__tstate);
24202 if (PyErr_Occurred()) SWIG_fail;
24203 }
24204 {
24205 wxColour * resultptr;
24206 resultptr = new wxColour((wxColour &) result);
24207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24208 }
24209 return resultobj;
24210 fail:
24211 return NULL;
24212 }
24213
24214
24215 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
24216 PyObject *resultobj;
24217 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24218 PyObject *arg2 = (PyObject *) 0 ;
24219 bool result;
24220 PyObject * obj0 = 0 ;
24221 PyObject * obj1 = 0 ;
24222 char *kwnames[] = {
24223 (char *) "self",(char *) "func", NULL
24224 };
24225
24226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
24227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24229 arg2 = obj1;
24230 {
24231 PyThreadState* __tstate = wxPyBeginAllowThreads();
24232 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
24233
24234 wxPyEndAllowThreads(__tstate);
24235 if (PyErr_Occurred()) SWIG_fail;
24236 }
24237 {
24238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24239 }
24240 return resultobj;
24241 fail:
24242 return NULL;
24243 }
24244
24245
24246 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
24247 PyObject *resultobj;
24248 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24249 wxWindow *result;
24250 PyObject * obj0 = 0 ;
24251 char *kwnames[] = {
24252 (char *) "self", NULL
24253 };
24254
24255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
24256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24258 {
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
24261
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 {
24266 resultobj = wxPyMake_wxObject(result, 0);
24267 }
24268 return resultobj;
24269 fail:
24270 return NULL;
24271 }
24272
24273
24274 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24275 PyObject *resultobj;
24276 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
24277 wxVisualAttributes result;
24278 PyObject * obj0 = 0 ;
24279 char *kwnames[] = {
24280 (char *) "variant", NULL
24281 };
24282
24283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
24284 if (obj0) {
24285 arg1 = (int)SWIG_As_int(obj0);
24286 if (PyErr_Occurred()) SWIG_fail;
24287 }
24288 {
24289 if (!wxPyCheckForApp()) SWIG_fail;
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 {
24297 wxVisualAttributes * resultptr;
24298 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
24299 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
24300 }
24301 return resultobj;
24302 fail:
24303 return NULL;
24304 }
24305
24306
24307 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
24308 PyObject *obj;
24309 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24310 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
24311 Py_INCREF(obj);
24312 return Py_BuildValue((char *)"");
24313 }
24314 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
24315 PyObject *resultobj;
24316 wxWindow *arg1 = (wxWindow *) 0 ;
24317 int arg2 = (int) -1 ;
24318 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24319 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24320 wxSize const &arg4_defvalue = wxDefaultSize ;
24321 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24322 long arg5 = (long) wxLC_REPORT ;
24323 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24324 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24325 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
24326 wxString *arg7 = (wxString *) &arg7_defvalue ;
24327 wxListView *result;
24328 wxPoint temp3 ;
24329 wxSize temp4 ;
24330 bool temp7 = false ;
24331 PyObject * obj0 = 0 ;
24332 PyObject * obj1 = 0 ;
24333 PyObject * obj2 = 0 ;
24334 PyObject * obj3 = 0 ;
24335 PyObject * obj4 = 0 ;
24336 PyObject * obj5 = 0 ;
24337 PyObject * obj6 = 0 ;
24338 char *kwnames[] = {
24339 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24340 };
24341
24342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24345 if (obj1) {
24346 arg2 = (int)SWIG_As_int(obj1);
24347 if (PyErr_Occurred()) SWIG_fail;
24348 }
24349 if (obj2) {
24350 {
24351 arg3 = &temp3;
24352 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24353 }
24354 }
24355 if (obj3) {
24356 {
24357 arg4 = &temp4;
24358 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24359 }
24360 }
24361 if (obj4) {
24362 arg5 = (long)SWIG_As_long(obj4);
24363 if (PyErr_Occurred()) SWIG_fail;
24364 }
24365 if (obj5) {
24366 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24367 SWIG_POINTER_EXCEPTION | 0)) == -1)
24368 SWIG_fail;
24369 if (arg6 == NULL) {
24370 PyErr_SetString(PyExc_TypeError,"null reference");
24371 SWIG_fail;
24372 }
24373 }
24374 if (obj6) {
24375 {
24376 arg7 = wxString_in_helper(obj6);
24377 if (arg7 == NULL) SWIG_fail;
24378 temp7 = true;
24379 }
24380 }
24381 {
24382 if (!wxPyCheckForApp()) SWIG_fail;
24383 PyThreadState* __tstate = wxPyBeginAllowThreads();
24384 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24385
24386 wxPyEndAllowThreads(__tstate);
24387 if (PyErr_Occurred()) SWIG_fail;
24388 }
24389 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24390 {
24391 if (temp7)
24392 delete arg7;
24393 }
24394 return resultobj;
24395 fail:
24396 {
24397 if (temp7)
24398 delete arg7;
24399 }
24400 return NULL;
24401 }
24402
24403
24404 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj;
24406 wxListView *result;
24407 char *kwnames[] = {
24408 NULL
24409 };
24410
24411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
24412 {
24413 if (!wxPyCheckForApp()) SWIG_fail;
24414 PyThreadState* __tstate = wxPyBeginAllowThreads();
24415 result = (wxListView *)new wxListView();
24416
24417 wxPyEndAllowThreads(__tstate);
24418 if (PyErr_Occurred()) SWIG_fail;
24419 }
24420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24421 return resultobj;
24422 fail:
24423 return NULL;
24424 }
24425
24426
24427 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24428 PyObject *resultobj;
24429 wxListView *arg1 = (wxListView *) 0 ;
24430 wxWindow *arg2 = (wxWindow *) 0 ;
24431 int arg3 = (int) -1 ;
24432 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24433 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24434 wxSize const &arg5_defvalue = wxDefaultSize ;
24435 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24436 long arg6 = (long) wxLC_REPORT ;
24437 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24438 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24439 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24440 wxString *arg8 = (wxString *) &arg8_defvalue ;
24441 bool result;
24442 wxPoint temp4 ;
24443 wxSize temp5 ;
24444 bool temp8 = false ;
24445 PyObject * obj0 = 0 ;
24446 PyObject * obj1 = 0 ;
24447 PyObject * obj2 = 0 ;
24448 PyObject * obj3 = 0 ;
24449 PyObject * obj4 = 0 ;
24450 PyObject * obj5 = 0 ;
24451 PyObject * obj6 = 0 ;
24452 PyObject * obj7 = 0 ;
24453 char *kwnames[] = {
24454 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24455 };
24456
24457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24460 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24462 if (obj2) {
24463 arg3 = (int)SWIG_As_int(obj2);
24464 if (PyErr_Occurred()) SWIG_fail;
24465 }
24466 if (obj3) {
24467 {
24468 arg4 = &temp4;
24469 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24470 }
24471 }
24472 if (obj4) {
24473 {
24474 arg5 = &temp5;
24475 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24476 }
24477 }
24478 if (obj5) {
24479 arg6 = (long)SWIG_As_long(obj5);
24480 if (PyErr_Occurred()) SWIG_fail;
24481 }
24482 if (obj6) {
24483 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24484 SWIG_POINTER_EXCEPTION | 0)) == -1)
24485 SWIG_fail;
24486 if (arg7 == NULL) {
24487 PyErr_SetString(PyExc_TypeError,"null reference");
24488 SWIG_fail;
24489 }
24490 }
24491 if (obj7) {
24492 {
24493 arg8 = wxString_in_helper(obj7);
24494 if (arg8 == NULL) SWIG_fail;
24495 temp8 = true;
24496 }
24497 }
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24501
24502 wxPyEndAllowThreads(__tstate);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 }
24505 {
24506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24507 }
24508 {
24509 if (temp8)
24510 delete arg8;
24511 }
24512 return resultobj;
24513 fail:
24514 {
24515 if (temp8)
24516 delete arg8;
24517 }
24518 return NULL;
24519 }
24520
24521
24522 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24523 PyObject *resultobj;
24524 wxListView *arg1 = (wxListView *) 0 ;
24525 long arg2 ;
24526 bool arg3 = (bool) true ;
24527 PyObject * obj0 = 0 ;
24528 PyObject * obj1 = 0 ;
24529 PyObject * obj2 = 0 ;
24530 char *kwnames[] = {
24531 (char *) "self",(char *) "n",(char *) "on", NULL
24532 };
24533
24534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24537 arg2 = (long)SWIG_As_long(obj1);
24538 if (PyErr_Occurred()) SWIG_fail;
24539 if (obj2) {
24540 arg3 = (bool)SWIG_As_bool(obj2);
24541 if (PyErr_Occurred()) SWIG_fail;
24542 }
24543 {
24544 PyThreadState* __tstate = wxPyBeginAllowThreads();
24545 (arg1)->Select(arg2,arg3);
24546
24547 wxPyEndAllowThreads(__tstate);
24548 if (PyErr_Occurred()) SWIG_fail;
24549 }
24550 Py_INCREF(Py_None); resultobj = Py_None;
24551 return resultobj;
24552 fail:
24553 return NULL;
24554 }
24555
24556
24557 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24558 PyObject *resultobj;
24559 wxListView *arg1 = (wxListView *) 0 ;
24560 long arg2 ;
24561 PyObject * obj0 = 0 ;
24562 PyObject * obj1 = 0 ;
24563 char *kwnames[] = {
24564 (char *) "self",(char *) "index", NULL
24565 };
24566
24567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24570 arg2 = (long)SWIG_As_long(obj1);
24571 if (PyErr_Occurred()) SWIG_fail;
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 (arg1)->Focus(arg2);
24575
24576 wxPyEndAllowThreads(__tstate);
24577 if (PyErr_Occurred()) SWIG_fail;
24578 }
24579 Py_INCREF(Py_None); resultobj = Py_None;
24580 return resultobj;
24581 fail:
24582 return NULL;
24583 }
24584
24585
24586 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24587 PyObject *resultobj;
24588 wxListView *arg1 = (wxListView *) 0 ;
24589 long result;
24590 PyObject * obj0 = 0 ;
24591 char *kwnames[] = {
24592 (char *) "self", NULL
24593 };
24594
24595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24598 {
24599 PyThreadState* __tstate = wxPyBeginAllowThreads();
24600 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24601
24602 wxPyEndAllowThreads(__tstate);
24603 if (PyErr_Occurred()) SWIG_fail;
24604 }
24605 resultobj = SWIG_From_long((long)result);
24606 return resultobj;
24607 fail:
24608 return NULL;
24609 }
24610
24611
24612 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24613 PyObject *resultobj;
24614 wxListView *arg1 = (wxListView *) 0 ;
24615 long arg2 ;
24616 long result;
24617 PyObject * obj0 = 0 ;
24618 PyObject * obj1 = 0 ;
24619 char *kwnames[] = {
24620 (char *) "self",(char *) "item", NULL
24621 };
24622
24623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24626 arg2 = (long)SWIG_As_long(obj1);
24627 if (PyErr_Occurred()) SWIG_fail;
24628 {
24629 PyThreadState* __tstate = wxPyBeginAllowThreads();
24630 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24631
24632 wxPyEndAllowThreads(__tstate);
24633 if (PyErr_Occurred()) SWIG_fail;
24634 }
24635 resultobj = SWIG_From_long((long)result);
24636 return resultobj;
24637 fail:
24638 return NULL;
24639 }
24640
24641
24642 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24643 PyObject *resultobj;
24644 wxListView *arg1 = (wxListView *) 0 ;
24645 long result;
24646 PyObject * obj0 = 0 ;
24647 char *kwnames[] = {
24648 (char *) "self", NULL
24649 };
24650
24651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24652 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24653 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24654 {
24655 PyThreadState* __tstate = wxPyBeginAllowThreads();
24656 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24657
24658 wxPyEndAllowThreads(__tstate);
24659 if (PyErr_Occurred()) SWIG_fail;
24660 }
24661 resultobj = SWIG_From_long((long)result);
24662 return resultobj;
24663 fail:
24664 return NULL;
24665 }
24666
24667
24668 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24669 PyObject *resultobj;
24670 wxListView *arg1 = (wxListView *) 0 ;
24671 long arg2 ;
24672 bool result;
24673 PyObject * obj0 = 0 ;
24674 PyObject * obj1 = 0 ;
24675 char *kwnames[] = {
24676 (char *) "self",(char *) "index", NULL
24677 };
24678
24679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24682 arg2 = (long)SWIG_As_long(obj1);
24683 if (PyErr_Occurred()) SWIG_fail;
24684 {
24685 PyThreadState* __tstate = wxPyBeginAllowThreads();
24686 result = (bool)(arg1)->IsSelected(arg2);
24687
24688 wxPyEndAllowThreads(__tstate);
24689 if (PyErr_Occurred()) SWIG_fail;
24690 }
24691 {
24692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24693 }
24694 return resultobj;
24695 fail:
24696 return NULL;
24697 }
24698
24699
24700 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj;
24702 wxListView *arg1 = (wxListView *) 0 ;
24703 int arg2 ;
24704 int arg3 ;
24705 PyObject * obj0 = 0 ;
24706 PyObject * obj1 = 0 ;
24707 PyObject * obj2 = 0 ;
24708 char *kwnames[] = {
24709 (char *) "self",(char *) "col",(char *) "image", NULL
24710 };
24711
24712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24715 arg2 = (int)SWIG_As_int(obj1);
24716 if (PyErr_Occurred()) SWIG_fail;
24717 arg3 = (int)SWIG_As_int(obj2);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 {
24720 PyThreadState* __tstate = wxPyBeginAllowThreads();
24721 (arg1)->SetColumnImage(arg2,arg3);
24722
24723 wxPyEndAllowThreads(__tstate);
24724 if (PyErr_Occurred()) SWIG_fail;
24725 }
24726 Py_INCREF(Py_None); resultobj = Py_None;
24727 return resultobj;
24728 fail:
24729 return NULL;
24730 }
24731
24732
24733 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj;
24735 wxListView *arg1 = (wxListView *) 0 ;
24736 int arg2 ;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 char *kwnames[] = {
24740 (char *) "self",(char *) "col", NULL
24741 };
24742
24743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24746 arg2 = (int)SWIG_As_int(obj1);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 (arg1)->ClearColumnImage(arg2);
24751
24752 wxPyEndAllowThreads(__tstate);
24753 if (PyErr_Occurred()) SWIG_fail;
24754 }
24755 Py_INCREF(Py_None); resultobj = Py_None;
24756 return resultobj;
24757 fail:
24758 return NULL;
24759 }
24760
24761
24762 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24763 PyObject *obj;
24764 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24765 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24766 Py_INCREF(obj);
24767 return Py_BuildValue((char *)"");
24768 }
24769 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24770 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24771 return 1;
24772 }
24773
24774
24775 static PyObject *_wrap_TreeCtrlNameStr_get() {
24776 PyObject *pyobj;
24777
24778 {
24779 #if wxUSE_UNICODE
24780 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24781 #else
24782 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24783 #endif
24784 }
24785 return pyobj;
24786 }
24787
24788
24789 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24790 PyObject *resultobj;
24791 wxTreeItemId *result;
24792 char *kwnames[] = {
24793 NULL
24794 };
24795
24796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24797 {
24798 PyThreadState* __tstate = wxPyBeginAllowThreads();
24799 result = (wxTreeItemId *)new wxTreeItemId();
24800
24801 wxPyEndAllowThreads(__tstate);
24802 if (PyErr_Occurred()) SWIG_fail;
24803 }
24804 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24812 PyObject *resultobj;
24813 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24814 PyObject * obj0 = 0 ;
24815 char *kwnames[] = {
24816 (char *) "self", NULL
24817 };
24818
24819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24822 {
24823 PyThreadState* __tstate = wxPyBeginAllowThreads();
24824 delete arg1;
24825
24826 wxPyEndAllowThreads(__tstate);
24827 if (PyErr_Occurred()) SWIG_fail;
24828 }
24829 Py_INCREF(Py_None); resultobj = Py_None;
24830 return resultobj;
24831 fail:
24832 return NULL;
24833 }
24834
24835
24836 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24837 PyObject *resultobj;
24838 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24839 bool result;
24840 PyObject * obj0 = 0 ;
24841 char *kwnames[] = {
24842 (char *) "self", NULL
24843 };
24844
24845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24848 {
24849 PyThreadState* __tstate = wxPyBeginAllowThreads();
24850 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24851
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 {
24856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24857 }
24858 return resultobj;
24859 fail:
24860 return NULL;
24861 }
24862
24863
24864 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24865 PyObject *resultobj;
24866 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24867 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24868 bool result;
24869 PyObject * obj0 = 0 ;
24870 PyObject * obj1 = 0 ;
24871 char *kwnames[] = {
24872 (char *) "self",(char *) "other", NULL
24873 };
24874
24875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24878 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24883
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 {
24888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24889 }
24890 return resultobj;
24891 fail:
24892 return NULL;
24893 }
24894
24895
24896 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24897 PyObject *resultobj;
24898 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24899 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24900 bool result;
24901 PyObject * obj0 = 0 ;
24902 PyObject * obj1 = 0 ;
24903 char *kwnames[] = {
24904 (char *) "self",(char *) "other", NULL
24905 };
24906
24907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24910 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24912 {
24913 PyThreadState* __tstate = wxPyBeginAllowThreads();
24914 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24915
24916 wxPyEndAllowThreads(__tstate);
24917 if (PyErr_Occurred()) SWIG_fail;
24918 }
24919 {
24920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24921 }
24922 return resultobj;
24923 fail:
24924 return NULL;
24925 }
24926
24927
24928 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24929 PyObject *resultobj;
24930 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24931 void *arg2 = (void *) 0 ;
24932 PyObject * obj0 = 0 ;
24933 PyObject * obj1 = 0 ;
24934 char *kwnames[] = {
24935 (char *) "self",(char *) "m_pItem", NULL
24936 };
24937
24938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24941 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24942 if (arg1) (arg1)->m_pItem = arg2;
24943
24944 Py_INCREF(Py_None); resultobj = Py_None;
24945 return resultobj;
24946 fail:
24947 return NULL;
24948 }
24949
24950
24951 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24952 PyObject *resultobj;
24953 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24954 void *result;
24955 PyObject * obj0 = 0 ;
24956 char *kwnames[] = {
24957 (char *) "self", NULL
24958 };
24959
24960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24963 result = (void *) ((arg1)->m_pItem);
24964
24965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24966 return resultobj;
24967 fail:
24968 return NULL;
24969 }
24970
24971
24972 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24973 PyObject *obj;
24974 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24975 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24976 Py_INCREF(obj);
24977 return Py_BuildValue((char *)"");
24978 }
24979 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24980 PyObject *resultobj;
24981 PyObject *arg1 = (PyObject *) NULL ;
24982 wxPyTreeItemData *result;
24983 PyObject * obj0 = 0 ;
24984 char *kwnames[] = {
24985 (char *) "obj", NULL
24986 };
24987
24988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24989 if (obj0) {
24990 arg1 = obj0;
24991 }
24992 {
24993 PyThreadState* __tstate = wxPyBeginAllowThreads();
24994 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24995
24996 wxPyEndAllowThreads(__tstate);
24997 if (PyErr_Occurred()) SWIG_fail;
24998 }
24999 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
25000 return resultobj;
25001 fail:
25002 return NULL;
25003 }
25004
25005
25006 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25007 PyObject *resultobj;
25008 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25009 PyObject *result;
25010 PyObject * obj0 = 0 ;
25011 char *kwnames[] = {
25012 (char *) "self", NULL
25013 };
25014
25015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
25016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25018 {
25019 PyThreadState* __tstate = wxPyBeginAllowThreads();
25020 result = (PyObject *)(arg1)->GetData();
25021
25022 wxPyEndAllowThreads(__tstate);
25023 if (PyErr_Occurred()) SWIG_fail;
25024 }
25025 resultobj = result;
25026 return resultobj;
25027 fail:
25028 return NULL;
25029 }
25030
25031
25032 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25033 PyObject *resultobj;
25034 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25035 PyObject *arg2 = (PyObject *) 0 ;
25036 PyObject * obj0 = 0 ;
25037 PyObject * obj1 = 0 ;
25038 char *kwnames[] = {
25039 (char *) "self",(char *) "obj", NULL
25040 };
25041
25042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
25043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25045 arg2 = obj1;
25046 {
25047 PyThreadState* __tstate = wxPyBeginAllowThreads();
25048 (arg1)->SetData(arg2);
25049
25050 wxPyEndAllowThreads(__tstate);
25051 if (PyErr_Occurred()) SWIG_fail;
25052 }
25053 Py_INCREF(Py_None); resultobj = Py_None;
25054 return resultobj;
25055 fail:
25056 return NULL;
25057 }
25058
25059
25060 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
25061 PyObject *resultobj;
25062 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25063 wxTreeItemId *result;
25064 PyObject * obj0 = 0 ;
25065 char *kwnames[] = {
25066 (char *) "self", NULL
25067 };
25068
25069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
25070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25072 {
25073 PyThreadState* __tstate = wxPyBeginAllowThreads();
25074 {
25075 wxTreeItemId const &_result_ref = (arg1)->GetId();
25076 result = (wxTreeItemId *) &_result_ref;
25077 }
25078
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
25083 return resultobj;
25084 fail:
25085 return NULL;
25086 }
25087
25088
25089 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj;
25091 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25092 wxTreeItemId *arg2 = 0 ;
25093 PyObject * obj0 = 0 ;
25094 PyObject * obj1 = 0 ;
25095 char *kwnames[] = {
25096 (char *) "self",(char *) "id", NULL
25097 };
25098
25099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
25100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25102 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25103 SWIG_POINTER_EXCEPTION | 0)) == -1)
25104 SWIG_fail;
25105 if (arg2 == NULL) {
25106 PyErr_SetString(PyExc_TypeError,"null reference");
25107 SWIG_fail;
25108 }
25109 {
25110 PyThreadState* __tstate = wxPyBeginAllowThreads();
25111 (arg1)->SetId((wxTreeItemId const &)*arg2);
25112
25113 wxPyEndAllowThreads(__tstate);
25114 if (PyErr_Occurred()) SWIG_fail;
25115 }
25116 Py_INCREF(Py_None); resultobj = Py_None;
25117 return resultobj;
25118 fail:
25119 return NULL;
25120 }
25121
25122
25123 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
25124 PyObject *resultobj;
25125 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25126 PyObject * obj0 = 0 ;
25127 char *kwnames[] = {
25128 (char *) "self", NULL
25129 };
25130
25131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
25132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 wxPyTreeItemData_Destroy(arg1);
25137
25138 wxPyEndAllowThreads(__tstate);
25139 if (PyErr_Occurred()) SWIG_fail;
25140 }
25141 Py_INCREF(Py_None); resultobj = Py_None;
25142 return resultobj;
25143 fail:
25144 return NULL;
25145 }
25146
25147
25148 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
25149 PyObject *obj;
25150 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25151 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
25152 Py_INCREF(obj);
25153 return Py_BuildValue((char *)"");
25154 }
25155 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25156 PyObject *resultobj;
25157 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
25158 int arg2 = (int) 0 ;
25159 wxTreeEvent *result;
25160 PyObject * obj0 = 0 ;
25161 PyObject * obj1 = 0 ;
25162 char *kwnames[] = {
25163 (char *) "commandType",(char *) "id", NULL
25164 };
25165
25166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
25167 if (obj0) {
25168 arg1 = (wxEventType)SWIG_As_int(obj0);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 if (obj1) {
25172 arg2 = (int)SWIG_As_int(obj1);
25173 if (PyErr_Occurred()) SWIG_fail;
25174 }
25175 {
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
25178
25179 wxPyEndAllowThreads(__tstate);
25180 if (PyErr_Occurred()) SWIG_fail;
25181 }
25182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
25183 return resultobj;
25184 fail:
25185 return NULL;
25186 }
25187
25188
25189 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25190 PyObject *resultobj;
25191 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25192 wxTreeItemId result;
25193 PyObject * obj0 = 0 ;
25194 char *kwnames[] = {
25195 (char *) "self", NULL
25196 };
25197
25198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
25199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25201 {
25202 PyThreadState* __tstate = wxPyBeginAllowThreads();
25203 result = ((wxTreeEvent const *)arg1)->GetItem();
25204
25205 wxPyEndAllowThreads(__tstate);
25206 if (PyErr_Occurred()) SWIG_fail;
25207 }
25208 {
25209 wxTreeItemId * resultptr;
25210 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25211 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25212 }
25213 return resultobj;
25214 fail:
25215 return NULL;
25216 }
25217
25218
25219 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25220 PyObject *resultobj;
25221 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25222 wxTreeItemId *arg2 = 0 ;
25223 PyObject * obj0 = 0 ;
25224 PyObject * obj1 = 0 ;
25225 char *kwnames[] = {
25226 (char *) "self",(char *) "item", NULL
25227 };
25228
25229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
25230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25233 SWIG_POINTER_EXCEPTION | 0)) == -1)
25234 SWIG_fail;
25235 if (arg2 == NULL) {
25236 PyErr_SetString(PyExc_TypeError,"null reference");
25237 SWIG_fail;
25238 }
25239 {
25240 PyThreadState* __tstate = wxPyBeginAllowThreads();
25241 (arg1)->SetItem((wxTreeItemId const &)*arg2);
25242
25243 wxPyEndAllowThreads(__tstate);
25244 if (PyErr_Occurred()) SWIG_fail;
25245 }
25246 Py_INCREF(Py_None); resultobj = Py_None;
25247 return resultobj;
25248 fail:
25249 return NULL;
25250 }
25251
25252
25253 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25254 PyObject *resultobj;
25255 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25256 wxTreeItemId result;
25257 PyObject * obj0 = 0 ;
25258 char *kwnames[] = {
25259 (char *) "self", NULL
25260 };
25261
25262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
25263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25265 {
25266 PyThreadState* __tstate = wxPyBeginAllowThreads();
25267 result = ((wxTreeEvent const *)arg1)->GetOldItem();
25268
25269 wxPyEndAllowThreads(__tstate);
25270 if (PyErr_Occurred()) SWIG_fail;
25271 }
25272 {
25273 wxTreeItemId * resultptr;
25274 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25275 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25276 }
25277 return resultobj;
25278 fail:
25279 return NULL;
25280 }
25281
25282
25283 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25284 PyObject *resultobj;
25285 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25286 wxTreeItemId *arg2 = 0 ;
25287 PyObject * obj0 = 0 ;
25288 PyObject * obj1 = 0 ;
25289 char *kwnames[] = {
25290 (char *) "self",(char *) "item", NULL
25291 };
25292
25293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
25294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25297 SWIG_POINTER_EXCEPTION | 0)) == -1)
25298 SWIG_fail;
25299 if (arg2 == NULL) {
25300 PyErr_SetString(PyExc_TypeError,"null reference");
25301 SWIG_fail;
25302 }
25303 {
25304 PyThreadState* __tstate = wxPyBeginAllowThreads();
25305 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
25306
25307 wxPyEndAllowThreads(__tstate);
25308 if (PyErr_Occurred()) SWIG_fail;
25309 }
25310 Py_INCREF(Py_None); resultobj = Py_None;
25311 return resultobj;
25312 fail:
25313 return NULL;
25314 }
25315
25316
25317 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj;
25319 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25320 wxPoint result;
25321 PyObject * obj0 = 0 ;
25322 char *kwnames[] = {
25323 (char *) "self", NULL
25324 };
25325
25326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
25327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25329 {
25330 PyThreadState* __tstate = wxPyBeginAllowThreads();
25331 result = ((wxTreeEvent const *)arg1)->GetPoint();
25332
25333 wxPyEndAllowThreads(__tstate);
25334 if (PyErr_Occurred()) SWIG_fail;
25335 }
25336 {
25337 wxPoint * resultptr;
25338 resultptr = new wxPoint((wxPoint &) result);
25339 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25340 }
25341 return resultobj;
25342 fail:
25343 return NULL;
25344 }
25345
25346
25347 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25348 PyObject *resultobj;
25349 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25350 wxPoint *arg2 = 0 ;
25351 wxPoint temp2 ;
25352 PyObject * obj0 = 0 ;
25353 PyObject * obj1 = 0 ;
25354 char *kwnames[] = {
25355 (char *) "self",(char *) "pt", NULL
25356 };
25357
25358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
25359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25361 {
25362 arg2 = &temp2;
25363 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25364 }
25365 {
25366 PyThreadState* __tstate = wxPyBeginAllowThreads();
25367 (arg1)->SetPoint((wxPoint const &)*arg2);
25368
25369 wxPyEndAllowThreads(__tstate);
25370 if (PyErr_Occurred()) SWIG_fail;
25371 }
25372 Py_INCREF(Py_None); resultobj = Py_None;
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj;
25381 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25382 wxKeyEvent *result;
25383 PyObject * obj0 = 0 ;
25384 char *kwnames[] = {
25385 (char *) "self", NULL
25386 };
25387
25388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
25389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25391 {
25392 PyThreadState* __tstate = wxPyBeginAllowThreads();
25393 {
25394 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
25395 result = (wxKeyEvent *) &_result_ref;
25396 }
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
25409 PyObject *resultobj;
25410 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25411 int result;
25412 PyObject * obj0 = 0 ;
25413 char *kwnames[] = {
25414 (char *) "self", NULL
25415 };
25416
25417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
25418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25420 {
25421 PyThreadState* __tstate = wxPyBeginAllowThreads();
25422 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25423
25424 wxPyEndAllowThreads(__tstate);
25425 if (PyErr_Occurred()) SWIG_fail;
25426 }
25427 resultobj = SWIG_From_int((int)result);
25428 return resultobj;
25429 fail:
25430 return NULL;
25431 }
25432
25433
25434 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25435 PyObject *resultobj;
25436 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25437 wxKeyEvent *arg2 = 0 ;
25438 PyObject * obj0 = 0 ;
25439 PyObject * obj1 = 0 ;
25440 char *kwnames[] = {
25441 (char *) "self",(char *) "evt", NULL
25442 };
25443
25444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25447 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25448 SWIG_POINTER_EXCEPTION | 0)) == -1)
25449 SWIG_fail;
25450 if (arg2 == NULL) {
25451 PyErr_SetString(PyExc_TypeError,"null reference");
25452 SWIG_fail;
25453 }
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25457
25458 wxPyEndAllowThreads(__tstate);
25459 if (PyErr_Occurred()) SWIG_fail;
25460 }
25461 Py_INCREF(Py_None); resultobj = Py_None;
25462 return resultobj;
25463 fail:
25464 return NULL;
25465 }
25466
25467
25468 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25469 PyObject *resultobj;
25470 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25471 wxString *result;
25472 PyObject * obj0 = 0 ;
25473 char *kwnames[] = {
25474 (char *) "self", NULL
25475 };
25476
25477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25480 {
25481 PyThreadState* __tstate = wxPyBeginAllowThreads();
25482 {
25483 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25484 result = (wxString *) &_result_ref;
25485 }
25486
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 {
25491 #if wxUSE_UNICODE
25492 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25493 #else
25494 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25495 #endif
25496 }
25497 return resultobj;
25498 fail:
25499 return NULL;
25500 }
25501
25502
25503 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25504 PyObject *resultobj;
25505 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25506 wxString *arg2 = 0 ;
25507 bool temp2 = false ;
25508 PyObject * obj0 = 0 ;
25509 PyObject * obj1 = 0 ;
25510 char *kwnames[] = {
25511 (char *) "self",(char *) "label", NULL
25512 };
25513
25514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25517 {
25518 arg2 = wxString_in_helper(obj1);
25519 if (arg2 == NULL) SWIG_fail;
25520 temp2 = true;
25521 }
25522 {
25523 PyThreadState* __tstate = wxPyBeginAllowThreads();
25524 (arg1)->SetLabel((wxString const &)*arg2);
25525
25526 wxPyEndAllowThreads(__tstate);
25527 if (PyErr_Occurred()) SWIG_fail;
25528 }
25529 Py_INCREF(Py_None); resultobj = Py_None;
25530 {
25531 if (temp2)
25532 delete arg2;
25533 }
25534 return resultobj;
25535 fail:
25536 {
25537 if (temp2)
25538 delete arg2;
25539 }
25540 return NULL;
25541 }
25542
25543
25544 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25545 PyObject *resultobj;
25546 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25547 bool result;
25548 PyObject * obj0 = 0 ;
25549 char *kwnames[] = {
25550 (char *) "self", NULL
25551 };
25552
25553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25556 {
25557 PyThreadState* __tstate = wxPyBeginAllowThreads();
25558 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25559
25560 wxPyEndAllowThreads(__tstate);
25561 if (PyErr_Occurred()) SWIG_fail;
25562 }
25563 {
25564 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25565 }
25566 return resultobj;
25567 fail:
25568 return NULL;
25569 }
25570
25571
25572 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj;
25574 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25575 bool arg2 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 char *kwnames[] = {
25579 (char *) "self",(char *) "editCancelled", NULL
25580 };
25581
25582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25585 arg2 = (bool)SWIG_As_bool(obj1);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 {
25588 PyThreadState* __tstate = wxPyBeginAllowThreads();
25589 (arg1)->SetEditCanceled(arg2);
25590
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 Py_INCREF(Py_None); resultobj = Py_None;
25595 return resultobj;
25596 fail:
25597 return NULL;
25598 }
25599
25600
25601 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25602 PyObject *resultobj;
25603 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25604 wxString *arg2 = 0 ;
25605 bool temp2 = false ;
25606 PyObject * obj0 = 0 ;
25607 PyObject * obj1 = 0 ;
25608 char *kwnames[] = {
25609 (char *) "self",(char *) "toolTip", NULL
25610 };
25611
25612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25615 {
25616 arg2 = wxString_in_helper(obj1);
25617 if (arg2 == NULL) SWIG_fail;
25618 temp2 = true;
25619 }
25620 {
25621 PyThreadState* __tstate = wxPyBeginAllowThreads();
25622 (arg1)->SetToolTip((wxString const &)*arg2);
25623
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 Py_INCREF(Py_None); resultobj = Py_None;
25628 {
25629 if (temp2)
25630 delete arg2;
25631 }
25632 return resultobj;
25633 fail:
25634 {
25635 if (temp2)
25636 delete arg2;
25637 }
25638 return NULL;
25639 }
25640
25641
25642 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25643 PyObject *obj;
25644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25645 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25646 Py_INCREF(obj);
25647 return Py_BuildValue((char *)"");
25648 }
25649 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25650 PyObject *resultobj;
25651 wxWindow *arg1 = (wxWindow *) 0 ;
25652 int arg2 = (int) -1 ;
25653 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25654 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25655 wxSize const &arg4_defvalue = wxDefaultSize ;
25656 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25657 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25658 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25659 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25660 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25661 wxString *arg7 = (wxString *) &arg7_defvalue ;
25662 wxPyTreeCtrl *result;
25663 wxPoint temp3 ;
25664 wxSize temp4 ;
25665 bool temp7 = false ;
25666 PyObject * obj0 = 0 ;
25667 PyObject * obj1 = 0 ;
25668 PyObject * obj2 = 0 ;
25669 PyObject * obj3 = 0 ;
25670 PyObject * obj4 = 0 ;
25671 PyObject * obj5 = 0 ;
25672 PyObject * obj6 = 0 ;
25673 char *kwnames[] = {
25674 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25675 };
25676
25677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25680 if (obj1) {
25681 arg2 = (int)SWIG_As_int(obj1);
25682 if (PyErr_Occurred()) SWIG_fail;
25683 }
25684 if (obj2) {
25685 {
25686 arg3 = &temp3;
25687 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25688 }
25689 }
25690 if (obj3) {
25691 {
25692 arg4 = &temp4;
25693 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25694 }
25695 }
25696 if (obj4) {
25697 arg5 = (long)SWIG_As_long(obj4);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 if (obj5) {
25701 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25702 SWIG_POINTER_EXCEPTION | 0)) == -1)
25703 SWIG_fail;
25704 if (arg6 == NULL) {
25705 PyErr_SetString(PyExc_TypeError,"null reference");
25706 SWIG_fail;
25707 }
25708 }
25709 if (obj6) {
25710 {
25711 arg7 = wxString_in_helper(obj6);
25712 if (arg7 == NULL) SWIG_fail;
25713 temp7 = true;
25714 }
25715 }
25716 {
25717 if (!wxPyCheckForApp()) SWIG_fail;
25718 PyThreadState* __tstate = wxPyBeginAllowThreads();
25719 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25720
25721 wxPyEndAllowThreads(__tstate);
25722 if (PyErr_Occurred()) SWIG_fail;
25723 }
25724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25725 {
25726 if (temp7)
25727 delete arg7;
25728 }
25729 return resultobj;
25730 fail:
25731 {
25732 if (temp7)
25733 delete arg7;
25734 }
25735 return NULL;
25736 }
25737
25738
25739 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25740 PyObject *resultobj;
25741 wxPyTreeCtrl *result;
25742 char *kwnames[] = {
25743 NULL
25744 };
25745
25746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25747 {
25748 if (!wxPyCheckForApp()) SWIG_fail;
25749 PyThreadState* __tstate = wxPyBeginAllowThreads();
25750 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25751
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj;
25764 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25765 wxWindow *arg2 = (wxWindow *) 0 ;
25766 int arg3 = (int) -1 ;
25767 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25768 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25769 wxSize const &arg5_defvalue = wxDefaultSize ;
25770 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25771 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25772 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25773 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25774 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25775 wxString *arg8 = (wxString *) &arg8_defvalue ;
25776 bool result;
25777 wxPoint temp4 ;
25778 wxSize temp5 ;
25779 bool temp8 = false ;
25780 PyObject * obj0 = 0 ;
25781 PyObject * obj1 = 0 ;
25782 PyObject * obj2 = 0 ;
25783 PyObject * obj3 = 0 ;
25784 PyObject * obj4 = 0 ;
25785 PyObject * obj5 = 0 ;
25786 PyObject * obj6 = 0 ;
25787 PyObject * obj7 = 0 ;
25788 char *kwnames[] = {
25789 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25790 };
25791
25792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25795 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25797 if (obj2) {
25798 arg3 = (int)SWIG_As_int(obj2);
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 if (obj3) {
25802 {
25803 arg4 = &temp4;
25804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25805 }
25806 }
25807 if (obj4) {
25808 {
25809 arg5 = &temp5;
25810 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25811 }
25812 }
25813 if (obj5) {
25814 arg6 = (long)SWIG_As_long(obj5);
25815 if (PyErr_Occurred()) SWIG_fail;
25816 }
25817 if (obj6) {
25818 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25819 SWIG_POINTER_EXCEPTION | 0)) == -1)
25820 SWIG_fail;
25821 if (arg7 == NULL) {
25822 PyErr_SetString(PyExc_TypeError,"null reference");
25823 SWIG_fail;
25824 }
25825 }
25826 if (obj7) {
25827 {
25828 arg8 = wxString_in_helper(obj7);
25829 if (arg8 == NULL) SWIG_fail;
25830 temp8 = true;
25831 }
25832 }
25833 {
25834 PyThreadState* __tstate = wxPyBeginAllowThreads();
25835 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25836
25837 wxPyEndAllowThreads(__tstate);
25838 if (PyErr_Occurred()) SWIG_fail;
25839 }
25840 {
25841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25842 }
25843 {
25844 if (temp8)
25845 delete arg8;
25846 }
25847 return resultobj;
25848 fail:
25849 {
25850 if (temp8)
25851 delete arg8;
25852 }
25853 return NULL;
25854 }
25855
25856
25857 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25858 PyObject *resultobj;
25859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25860 PyObject *arg2 = (PyObject *) 0 ;
25861 PyObject *arg3 = (PyObject *) 0 ;
25862 PyObject * obj0 = 0 ;
25863 PyObject * obj1 = 0 ;
25864 PyObject * obj2 = 0 ;
25865 char *kwnames[] = {
25866 (char *) "self",(char *) "self",(char *) "_class", NULL
25867 };
25868
25869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25872 arg2 = obj1;
25873 arg3 = obj2;
25874 {
25875 PyThreadState* __tstate = wxPyBeginAllowThreads();
25876 (arg1)->_setCallbackInfo(arg2,arg3);
25877
25878 wxPyEndAllowThreads(__tstate);
25879 if (PyErr_Occurred()) SWIG_fail;
25880 }
25881 Py_INCREF(Py_None); resultobj = Py_None;
25882 return resultobj;
25883 fail:
25884 return NULL;
25885 }
25886
25887
25888 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25889 PyObject *resultobj;
25890 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25891 size_t result;
25892 PyObject * obj0 = 0 ;
25893 char *kwnames[] = {
25894 (char *) "self", NULL
25895 };
25896
25897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25900 {
25901 PyThreadState* __tstate = wxPyBeginAllowThreads();
25902 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25903
25904 wxPyEndAllowThreads(__tstate);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25915 PyObject *resultobj;
25916 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25917 unsigned int result;
25918 PyObject * obj0 = 0 ;
25919 char *kwnames[] = {
25920 (char *) "self", NULL
25921 };
25922
25923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25926 {
25927 PyThreadState* __tstate = wxPyBeginAllowThreads();
25928 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25929
25930 wxPyEndAllowThreads(__tstate);
25931 if (PyErr_Occurred()) SWIG_fail;
25932 }
25933 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25934 return resultobj;
25935 fail:
25936 return NULL;
25937 }
25938
25939
25940 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25941 PyObject *resultobj;
25942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25943 unsigned int arg2 ;
25944 PyObject * obj0 = 0 ;
25945 PyObject * obj1 = 0 ;
25946 char *kwnames[] = {
25947 (char *) "self",(char *) "indent", NULL
25948 };
25949
25950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25953 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25954 if (PyErr_Occurred()) SWIG_fail;
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 (arg1)->SetIndent(arg2);
25958
25959 wxPyEndAllowThreads(__tstate);
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 Py_INCREF(Py_None); resultobj = Py_None;
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25972 unsigned int result;
25973 PyObject * obj0 = 0 ;
25974 char *kwnames[] = {
25975 (char *) "self", NULL
25976 };
25977
25978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25981 {
25982 PyThreadState* __tstate = wxPyBeginAllowThreads();
25983 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25984
25985 wxPyEndAllowThreads(__tstate);
25986 if (PyErr_Occurred()) SWIG_fail;
25987 }
25988 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25989 return resultobj;
25990 fail:
25991 return NULL;
25992 }
25993
25994
25995 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25996 PyObject *resultobj;
25997 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25998 unsigned int arg2 ;
25999 PyObject * obj0 = 0 ;
26000 PyObject * obj1 = 0 ;
26001 char *kwnames[] = {
26002 (char *) "self",(char *) "spacing", NULL
26003 };
26004
26005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
26006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26008 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
26009 if (PyErr_Occurred()) SWIG_fail;
26010 {
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 (arg1)->SetSpacing(arg2);
26013
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 Py_INCREF(Py_None); resultobj = Py_None;
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj;
26026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26027 wxImageList *result;
26028 PyObject * obj0 = 0 ;
26029 char *kwnames[] = {
26030 (char *) "self", NULL
26031 };
26032
26033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
26034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26036 {
26037 PyThreadState* __tstate = wxPyBeginAllowThreads();
26038 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
26039
26040 wxPyEndAllowThreads(__tstate);
26041 if (PyErr_Occurred()) SWIG_fail;
26042 }
26043 {
26044 resultobj = wxPyMake_wxObject(result, 0);
26045 }
26046 return resultobj;
26047 fail:
26048 return NULL;
26049 }
26050
26051
26052 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26053 PyObject *resultobj;
26054 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26055 wxImageList *result;
26056 PyObject * obj0 = 0 ;
26057 char *kwnames[] = {
26058 (char *) "self", NULL
26059 };
26060
26061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
26062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26064 {
26065 PyThreadState* __tstate = wxPyBeginAllowThreads();
26066 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
26067
26068 wxPyEndAllowThreads(__tstate);
26069 if (PyErr_Occurred()) SWIG_fail;
26070 }
26071 {
26072 resultobj = wxPyMake_wxObject(result, 0);
26073 }
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26081 PyObject *resultobj;
26082 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26083 wxImageList *arg2 = (wxImageList *) 0 ;
26084 PyObject * obj0 = 0 ;
26085 PyObject * obj1 = 0 ;
26086 char *kwnames[] = {
26087 (char *) "self",(char *) "imageList", NULL
26088 };
26089
26090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
26091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26093 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26095 {
26096 PyThreadState* __tstate = wxPyBeginAllowThreads();
26097 (arg1)->SetImageList(arg2);
26098
26099 wxPyEndAllowThreads(__tstate);
26100 if (PyErr_Occurred()) SWIG_fail;
26101 }
26102 Py_INCREF(Py_None); resultobj = Py_None;
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26110 PyObject *resultobj;
26111 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26112 wxImageList *arg2 = (wxImageList *) 0 ;
26113 PyObject * obj0 = 0 ;
26114 PyObject * obj1 = 0 ;
26115 char *kwnames[] = {
26116 (char *) "self",(char *) "imageList", NULL
26117 };
26118
26119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
26120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26124 {
26125 PyThreadState* __tstate = wxPyBeginAllowThreads();
26126 (arg1)->SetStateImageList(arg2);
26127
26128 wxPyEndAllowThreads(__tstate);
26129 if (PyErr_Occurred()) SWIG_fail;
26130 }
26131 Py_INCREF(Py_None); resultobj = Py_None;
26132 return resultobj;
26133 fail:
26134 return NULL;
26135 }
26136
26137
26138 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26139 PyObject *resultobj;
26140 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26141 wxImageList *arg2 = (wxImageList *) 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 char *kwnames[] = {
26145 (char *) "self",(char *) "imageList", NULL
26146 };
26147
26148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
26149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26151 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26152 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
26155 (arg1)->AssignImageList(arg2);
26156
26157 wxPyEndAllowThreads(__tstate);
26158 if (PyErr_Occurred()) SWIG_fail;
26159 }
26160 Py_INCREF(Py_None); resultobj = Py_None;
26161 return resultobj;
26162 fail:
26163 return NULL;
26164 }
26165
26166
26167 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26168 PyObject *resultobj;
26169 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26170 wxImageList *arg2 = (wxImageList *) 0 ;
26171 PyObject * obj0 = 0 ;
26172 PyObject * obj1 = 0 ;
26173 char *kwnames[] = {
26174 (char *) "self",(char *) "imageList", NULL
26175 };
26176
26177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
26178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26181 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26182 {
26183 PyThreadState* __tstate = wxPyBeginAllowThreads();
26184 (arg1)->AssignStateImageList(arg2);
26185
26186 wxPyEndAllowThreads(__tstate);
26187 if (PyErr_Occurred()) SWIG_fail;
26188 }
26189 Py_INCREF(Py_None); resultobj = Py_None;
26190 return resultobj;
26191 fail:
26192 return NULL;
26193 }
26194
26195
26196 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26197 PyObject *resultobj;
26198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26199 wxTreeItemId *arg2 = 0 ;
26200 wxString result;
26201 PyObject * obj0 = 0 ;
26202 PyObject * obj1 = 0 ;
26203 char *kwnames[] = {
26204 (char *) "self",(char *) "item", NULL
26205 };
26206
26207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
26208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26210 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26211 SWIG_POINTER_EXCEPTION | 0)) == -1)
26212 SWIG_fail;
26213 if (arg2 == NULL) {
26214 PyErr_SetString(PyExc_TypeError,"null reference");
26215 SWIG_fail;
26216 }
26217 {
26218 PyThreadState* __tstate = wxPyBeginAllowThreads();
26219 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
26220
26221 wxPyEndAllowThreads(__tstate);
26222 if (PyErr_Occurred()) SWIG_fail;
26223 }
26224 {
26225 #if wxUSE_UNICODE
26226 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26227 #else
26228 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26229 #endif
26230 }
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj;
26239 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26240 wxTreeItemId *arg2 = 0 ;
26241 int arg3 = (int) wxTreeItemIcon_Normal ;
26242 int result;
26243 PyObject * obj0 = 0 ;
26244 PyObject * obj1 = 0 ;
26245 PyObject * obj2 = 0 ;
26246 char *kwnames[] = {
26247 (char *) "self",(char *) "item",(char *) "which", NULL
26248 };
26249
26250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
26251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26254 SWIG_POINTER_EXCEPTION | 0)) == -1)
26255 SWIG_fail;
26256 if (arg2 == NULL) {
26257 PyErr_SetString(PyExc_TypeError,"null reference");
26258 SWIG_fail;
26259 }
26260 if (obj2) {
26261 arg3 = (int)SWIG_As_int(obj2);
26262 if (PyErr_Occurred()) SWIG_fail;
26263 }
26264 {
26265 PyThreadState* __tstate = wxPyBeginAllowThreads();
26266 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
26267
26268 wxPyEndAllowThreads(__tstate);
26269 if (PyErr_Occurred()) SWIG_fail;
26270 }
26271 resultobj = SWIG_From_int((int)result);
26272 return resultobj;
26273 fail:
26274 return NULL;
26275 }
26276
26277
26278 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26279 PyObject *resultobj;
26280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26281 wxTreeItemId *arg2 = 0 ;
26282 wxPyTreeItemData *result;
26283 PyObject * obj0 = 0 ;
26284 PyObject * obj1 = 0 ;
26285 char *kwnames[] = {
26286 (char *) "self",(char *) "item", NULL
26287 };
26288
26289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
26290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26292 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26293 SWIG_POINTER_EXCEPTION | 0)) == -1)
26294 SWIG_fail;
26295 if (arg2 == NULL) {
26296 PyErr_SetString(PyExc_TypeError,"null reference");
26297 SWIG_fail;
26298 }
26299 {
26300 PyThreadState* __tstate = wxPyBeginAllowThreads();
26301 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
26302
26303 wxPyEndAllowThreads(__tstate);
26304 if (PyErr_Occurred()) SWIG_fail;
26305 }
26306 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
26307 return resultobj;
26308 fail:
26309 return NULL;
26310 }
26311
26312
26313 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26314 PyObject *resultobj;
26315 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26316 wxTreeItemId *arg2 = 0 ;
26317 PyObject *result;
26318 PyObject * obj0 = 0 ;
26319 PyObject * obj1 = 0 ;
26320 char *kwnames[] = {
26321 (char *) "self",(char *) "item", NULL
26322 };
26323
26324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
26325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26328 SWIG_POINTER_EXCEPTION | 0)) == -1)
26329 SWIG_fail;
26330 if (arg2 == NULL) {
26331 PyErr_SetString(PyExc_TypeError,"null reference");
26332 SWIG_fail;
26333 }
26334 {
26335 PyThreadState* __tstate = wxPyBeginAllowThreads();
26336 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
26337
26338 wxPyEndAllowThreads(__tstate);
26339 if (PyErr_Occurred()) SWIG_fail;
26340 }
26341 resultobj = result;
26342 return resultobj;
26343 fail:
26344 return NULL;
26345 }
26346
26347
26348 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26349 PyObject *resultobj;
26350 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26351 wxTreeItemId *arg2 = 0 ;
26352 wxColour result;
26353 PyObject * obj0 = 0 ;
26354 PyObject * obj1 = 0 ;
26355 char *kwnames[] = {
26356 (char *) "self",(char *) "item", NULL
26357 };
26358
26359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
26360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26362 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26363 SWIG_POINTER_EXCEPTION | 0)) == -1)
26364 SWIG_fail;
26365 if (arg2 == NULL) {
26366 PyErr_SetString(PyExc_TypeError,"null reference");
26367 SWIG_fail;
26368 }
26369 {
26370 PyThreadState* __tstate = wxPyBeginAllowThreads();
26371 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
26372
26373 wxPyEndAllowThreads(__tstate);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 {
26377 wxColour * resultptr;
26378 resultptr = new wxColour((wxColour &) result);
26379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26380 }
26381 return resultobj;
26382 fail:
26383 return NULL;
26384 }
26385
26386
26387 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26388 PyObject *resultobj;
26389 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26390 wxTreeItemId *arg2 = 0 ;
26391 wxColour result;
26392 PyObject * obj0 = 0 ;
26393 PyObject * obj1 = 0 ;
26394 char *kwnames[] = {
26395 (char *) "self",(char *) "item", NULL
26396 };
26397
26398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26402 SWIG_POINTER_EXCEPTION | 0)) == -1)
26403 SWIG_fail;
26404 if (arg2 == NULL) {
26405 PyErr_SetString(PyExc_TypeError,"null reference");
26406 SWIG_fail;
26407 }
26408 {
26409 PyThreadState* __tstate = wxPyBeginAllowThreads();
26410 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
26411
26412 wxPyEndAllowThreads(__tstate);
26413 if (PyErr_Occurred()) SWIG_fail;
26414 }
26415 {
26416 wxColour * resultptr;
26417 resultptr = new wxColour((wxColour &) result);
26418 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26419 }
26420 return resultobj;
26421 fail:
26422 return NULL;
26423 }
26424
26425
26426 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj;
26428 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26429 wxTreeItemId *arg2 = 0 ;
26430 wxFont result;
26431 PyObject * obj0 = 0 ;
26432 PyObject * obj1 = 0 ;
26433 char *kwnames[] = {
26434 (char *) "self",(char *) "item", NULL
26435 };
26436
26437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26440 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26441 SWIG_POINTER_EXCEPTION | 0)) == -1)
26442 SWIG_fail;
26443 if (arg2 == NULL) {
26444 PyErr_SetString(PyExc_TypeError,"null reference");
26445 SWIG_fail;
26446 }
26447 {
26448 PyThreadState* __tstate = wxPyBeginAllowThreads();
26449 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26450
26451 wxPyEndAllowThreads(__tstate);
26452 if (PyErr_Occurred()) SWIG_fail;
26453 }
26454 {
26455 wxFont * resultptr;
26456 resultptr = new wxFont((wxFont &) result);
26457 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26458 }
26459 return resultobj;
26460 fail:
26461 return NULL;
26462 }
26463
26464
26465 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26466 PyObject *resultobj;
26467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26468 wxTreeItemId *arg2 = 0 ;
26469 wxString *arg3 = 0 ;
26470 bool temp3 = false ;
26471 PyObject * obj0 = 0 ;
26472 PyObject * obj1 = 0 ;
26473 PyObject * obj2 = 0 ;
26474 char *kwnames[] = {
26475 (char *) "self",(char *) "item",(char *) "text", NULL
26476 };
26477
26478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26482 SWIG_POINTER_EXCEPTION | 0)) == -1)
26483 SWIG_fail;
26484 if (arg2 == NULL) {
26485 PyErr_SetString(PyExc_TypeError,"null reference");
26486 SWIG_fail;
26487 }
26488 {
26489 arg3 = wxString_in_helper(obj2);
26490 if (arg3 == NULL) SWIG_fail;
26491 temp3 = true;
26492 }
26493 {
26494 PyThreadState* __tstate = wxPyBeginAllowThreads();
26495 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26496
26497 wxPyEndAllowThreads(__tstate);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 Py_INCREF(Py_None); resultobj = Py_None;
26501 {
26502 if (temp3)
26503 delete arg3;
26504 }
26505 return resultobj;
26506 fail:
26507 {
26508 if (temp3)
26509 delete arg3;
26510 }
26511 return NULL;
26512 }
26513
26514
26515 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26516 PyObject *resultobj;
26517 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26518 wxTreeItemId *arg2 = 0 ;
26519 int arg3 ;
26520 int arg4 = (int) wxTreeItemIcon_Normal ;
26521 PyObject * obj0 = 0 ;
26522 PyObject * obj1 = 0 ;
26523 PyObject * obj2 = 0 ;
26524 PyObject * obj3 = 0 ;
26525 char *kwnames[] = {
26526 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26527 };
26528
26529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26532 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26533 SWIG_POINTER_EXCEPTION | 0)) == -1)
26534 SWIG_fail;
26535 if (arg2 == NULL) {
26536 PyErr_SetString(PyExc_TypeError,"null reference");
26537 SWIG_fail;
26538 }
26539 arg3 = (int)SWIG_As_int(obj2);
26540 if (PyErr_Occurred()) SWIG_fail;
26541 if (obj3) {
26542 arg4 = (int)SWIG_As_int(obj3);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 {
26546 PyThreadState* __tstate = wxPyBeginAllowThreads();
26547 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26548
26549 wxPyEndAllowThreads(__tstate);
26550 if (PyErr_Occurred()) SWIG_fail;
26551 }
26552 Py_INCREF(Py_None); resultobj = Py_None;
26553 return resultobj;
26554 fail:
26555 return NULL;
26556 }
26557
26558
26559 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26560 PyObject *resultobj;
26561 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26562 wxTreeItemId *arg2 = 0 ;
26563 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26564 PyObject * obj0 = 0 ;
26565 PyObject * obj1 = 0 ;
26566 PyObject * obj2 = 0 ;
26567 char *kwnames[] = {
26568 (char *) "self",(char *) "item",(char *) "data", NULL
26569 };
26570
26571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26575 SWIG_POINTER_EXCEPTION | 0)) == -1)
26576 SWIG_fail;
26577 if (arg2 == NULL) {
26578 PyErr_SetString(PyExc_TypeError,"null reference");
26579 SWIG_fail;
26580 }
26581 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26583 {
26584 PyThreadState* __tstate = wxPyBeginAllowThreads();
26585 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26586
26587 wxPyEndAllowThreads(__tstate);
26588 if (PyErr_Occurred()) SWIG_fail;
26589 }
26590 Py_INCREF(Py_None); resultobj = Py_None;
26591 return resultobj;
26592 fail:
26593 return NULL;
26594 }
26595
26596
26597 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26598 PyObject *resultobj;
26599 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26600 wxTreeItemId *arg2 = 0 ;
26601 PyObject *arg3 = (PyObject *) 0 ;
26602 PyObject * obj0 = 0 ;
26603 PyObject * obj1 = 0 ;
26604 PyObject * obj2 = 0 ;
26605 char *kwnames[] = {
26606 (char *) "self",(char *) "item",(char *) "obj", NULL
26607 };
26608
26609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26612 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26613 SWIG_POINTER_EXCEPTION | 0)) == -1)
26614 SWIG_fail;
26615 if (arg2 == NULL) {
26616 PyErr_SetString(PyExc_TypeError,"null reference");
26617 SWIG_fail;
26618 }
26619 arg3 = obj2;
26620 {
26621 PyThreadState* __tstate = wxPyBeginAllowThreads();
26622 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26623
26624 wxPyEndAllowThreads(__tstate);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 Py_INCREF(Py_None); resultobj = Py_None;
26628 return resultobj;
26629 fail:
26630 return NULL;
26631 }
26632
26633
26634 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26635 PyObject *resultobj;
26636 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26637 wxTreeItemId *arg2 = 0 ;
26638 bool arg3 = (bool) true ;
26639 PyObject * obj0 = 0 ;
26640 PyObject * obj1 = 0 ;
26641 PyObject * obj2 = 0 ;
26642 char *kwnames[] = {
26643 (char *) "self",(char *) "item",(char *) "has", NULL
26644 };
26645
26646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26650 SWIG_POINTER_EXCEPTION | 0)) == -1)
26651 SWIG_fail;
26652 if (arg2 == NULL) {
26653 PyErr_SetString(PyExc_TypeError,"null reference");
26654 SWIG_fail;
26655 }
26656 if (obj2) {
26657 arg3 = (bool)SWIG_As_bool(obj2);
26658 if (PyErr_Occurred()) SWIG_fail;
26659 }
26660 {
26661 PyThreadState* __tstate = wxPyBeginAllowThreads();
26662 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26663
26664 wxPyEndAllowThreads(__tstate);
26665 if (PyErr_Occurred()) SWIG_fail;
26666 }
26667 Py_INCREF(Py_None); resultobj = Py_None;
26668 return resultobj;
26669 fail:
26670 return NULL;
26671 }
26672
26673
26674 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26675 PyObject *resultobj;
26676 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26677 wxTreeItemId *arg2 = 0 ;
26678 bool arg3 = (bool) true ;
26679 PyObject * obj0 = 0 ;
26680 PyObject * obj1 = 0 ;
26681 PyObject * obj2 = 0 ;
26682 char *kwnames[] = {
26683 (char *) "self",(char *) "item",(char *) "bold", NULL
26684 };
26685
26686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26690 SWIG_POINTER_EXCEPTION | 0)) == -1)
26691 SWIG_fail;
26692 if (arg2 == NULL) {
26693 PyErr_SetString(PyExc_TypeError,"null reference");
26694 SWIG_fail;
26695 }
26696 if (obj2) {
26697 arg3 = (bool)SWIG_As_bool(obj2);
26698 if (PyErr_Occurred()) SWIG_fail;
26699 }
26700 {
26701 PyThreadState* __tstate = wxPyBeginAllowThreads();
26702 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26703
26704 wxPyEndAllowThreads(__tstate);
26705 if (PyErr_Occurred()) SWIG_fail;
26706 }
26707 Py_INCREF(Py_None); resultobj = Py_None;
26708 return resultobj;
26709 fail:
26710 return NULL;
26711 }
26712
26713
26714 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26715 PyObject *resultobj;
26716 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26717 wxTreeItemId *arg2 = 0 ;
26718 wxColour *arg3 = 0 ;
26719 wxColour temp3 ;
26720 PyObject * obj0 = 0 ;
26721 PyObject * obj1 = 0 ;
26722 PyObject * obj2 = 0 ;
26723 char *kwnames[] = {
26724 (char *) "self",(char *) "item",(char *) "col", NULL
26725 };
26726
26727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26731 SWIG_POINTER_EXCEPTION | 0)) == -1)
26732 SWIG_fail;
26733 if (arg2 == NULL) {
26734 PyErr_SetString(PyExc_TypeError,"null reference");
26735 SWIG_fail;
26736 }
26737 {
26738 arg3 = &temp3;
26739 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26740 }
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26744
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 Py_INCREF(Py_None); resultobj = Py_None;
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj;
26757 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26758 wxTreeItemId *arg2 = 0 ;
26759 wxColour *arg3 = 0 ;
26760 wxColour temp3 ;
26761 PyObject * obj0 = 0 ;
26762 PyObject * obj1 = 0 ;
26763 PyObject * obj2 = 0 ;
26764 char *kwnames[] = {
26765 (char *) "self",(char *) "item",(char *) "col", NULL
26766 };
26767
26768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26771 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26772 SWIG_POINTER_EXCEPTION | 0)) == -1)
26773 SWIG_fail;
26774 if (arg2 == NULL) {
26775 PyErr_SetString(PyExc_TypeError,"null reference");
26776 SWIG_fail;
26777 }
26778 {
26779 arg3 = &temp3;
26780 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26781 }
26782 {
26783 PyThreadState* __tstate = wxPyBeginAllowThreads();
26784 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26785
26786 wxPyEndAllowThreads(__tstate);
26787 if (PyErr_Occurred()) SWIG_fail;
26788 }
26789 Py_INCREF(Py_None); resultobj = Py_None;
26790 return resultobj;
26791 fail:
26792 return NULL;
26793 }
26794
26795
26796 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26797 PyObject *resultobj;
26798 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26799 wxTreeItemId *arg2 = 0 ;
26800 wxFont *arg3 = 0 ;
26801 PyObject * obj0 = 0 ;
26802 PyObject * obj1 = 0 ;
26803 PyObject * obj2 = 0 ;
26804 char *kwnames[] = {
26805 (char *) "self",(char *) "item",(char *) "font", NULL
26806 };
26807
26808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26812 SWIG_POINTER_EXCEPTION | 0)) == -1)
26813 SWIG_fail;
26814 if (arg2 == NULL) {
26815 PyErr_SetString(PyExc_TypeError,"null reference");
26816 SWIG_fail;
26817 }
26818 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26819 SWIG_POINTER_EXCEPTION | 0)) == -1)
26820 SWIG_fail;
26821 if (arg3 == NULL) {
26822 PyErr_SetString(PyExc_TypeError,"null reference");
26823 SWIG_fail;
26824 }
26825 {
26826 PyThreadState* __tstate = wxPyBeginAllowThreads();
26827 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26828
26829 wxPyEndAllowThreads(__tstate);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 Py_INCREF(Py_None); resultobj = Py_None;
26833 return resultobj;
26834 fail:
26835 return NULL;
26836 }
26837
26838
26839 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26840 PyObject *resultobj;
26841 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26842 wxTreeItemId *arg2 = 0 ;
26843 bool result;
26844 PyObject * obj0 = 0 ;
26845 PyObject * obj1 = 0 ;
26846 char *kwnames[] = {
26847 (char *) "self",(char *) "item", NULL
26848 };
26849
26850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26853 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26854 SWIG_POINTER_EXCEPTION | 0)) == -1)
26855 SWIG_fail;
26856 if (arg2 == NULL) {
26857 PyErr_SetString(PyExc_TypeError,"null reference");
26858 SWIG_fail;
26859 }
26860 {
26861 PyThreadState* __tstate = wxPyBeginAllowThreads();
26862 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26863
26864 wxPyEndAllowThreads(__tstate);
26865 if (PyErr_Occurred()) SWIG_fail;
26866 }
26867 {
26868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26869 }
26870 return resultobj;
26871 fail:
26872 return NULL;
26873 }
26874
26875
26876 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26877 PyObject *resultobj;
26878 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26879 wxTreeItemId *arg2 = 0 ;
26880 bool result;
26881 PyObject * obj0 = 0 ;
26882 PyObject * obj1 = 0 ;
26883 char *kwnames[] = {
26884 (char *) "self",(char *) "item", NULL
26885 };
26886
26887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26890 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26891 SWIG_POINTER_EXCEPTION | 0)) == -1)
26892 SWIG_fail;
26893 if (arg2 == NULL) {
26894 PyErr_SetString(PyExc_TypeError,"null reference");
26895 SWIG_fail;
26896 }
26897 {
26898 PyThreadState* __tstate = wxPyBeginAllowThreads();
26899 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26900
26901 wxPyEndAllowThreads(__tstate);
26902 if (PyErr_Occurred()) SWIG_fail;
26903 }
26904 {
26905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26906 }
26907 return resultobj;
26908 fail:
26909 return NULL;
26910 }
26911
26912
26913 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26914 PyObject *resultobj;
26915 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26916 wxTreeItemId *arg2 = 0 ;
26917 bool result;
26918 PyObject * obj0 = 0 ;
26919 PyObject * obj1 = 0 ;
26920 char *kwnames[] = {
26921 (char *) "self",(char *) "item", NULL
26922 };
26923
26924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26927 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26928 SWIG_POINTER_EXCEPTION | 0)) == -1)
26929 SWIG_fail;
26930 if (arg2 == NULL) {
26931 PyErr_SetString(PyExc_TypeError,"null reference");
26932 SWIG_fail;
26933 }
26934 {
26935 PyThreadState* __tstate = wxPyBeginAllowThreads();
26936 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26937
26938 wxPyEndAllowThreads(__tstate);
26939 if (PyErr_Occurred()) SWIG_fail;
26940 }
26941 {
26942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26943 }
26944 return resultobj;
26945 fail:
26946 return NULL;
26947 }
26948
26949
26950 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26951 PyObject *resultobj;
26952 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26953 wxTreeItemId *arg2 = 0 ;
26954 bool result;
26955 PyObject * obj0 = 0 ;
26956 PyObject * obj1 = 0 ;
26957 char *kwnames[] = {
26958 (char *) "self",(char *) "item", NULL
26959 };
26960
26961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26965 SWIG_POINTER_EXCEPTION | 0)) == -1)
26966 SWIG_fail;
26967 if (arg2 == NULL) {
26968 PyErr_SetString(PyExc_TypeError,"null reference");
26969 SWIG_fail;
26970 }
26971 {
26972 PyThreadState* __tstate = wxPyBeginAllowThreads();
26973 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26974
26975 wxPyEndAllowThreads(__tstate);
26976 if (PyErr_Occurred()) SWIG_fail;
26977 }
26978 {
26979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26980 }
26981 return resultobj;
26982 fail:
26983 return NULL;
26984 }
26985
26986
26987 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26988 PyObject *resultobj;
26989 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26990 wxTreeItemId *arg2 = 0 ;
26991 bool result;
26992 PyObject * obj0 = 0 ;
26993 PyObject * obj1 = 0 ;
26994 char *kwnames[] = {
26995 (char *) "self",(char *) "item", NULL
26996 };
26997
26998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27002 SWIG_POINTER_EXCEPTION | 0)) == -1)
27003 SWIG_fail;
27004 if (arg2 == NULL) {
27005 PyErr_SetString(PyExc_TypeError,"null reference");
27006 SWIG_fail;
27007 }
27008 {
27009 PyThreadState* __tstate = wxPyBeginAllowThreads();
27010 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
27011
27012 wxPyEndAllowThreads(__tstate);
27013 if (PyErr_Occurred()) SWIG_fail;
27014 }
27015 {
27016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27017 }
27018 return resultobj;
27019 fail:
27020 return NULL;
27021 }
27022
27023
27024 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
27025 PyObject *resultobj;
27026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27027 wxTreeItemId *arg2 = 0 ;
27028 bool arg3 = (bool) true ;
27029 size_t result;
27030 PyObject * obj0 = 0 ;
27031 PyObject * obj1 = 0 ;
27032 PyObject * obj2 = 0 ;
27033 char *kwnames[] = {
27034 (char *) "self",(char *) "item",(char *) "recursively", NULL
27035 };
27036
27037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
27038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27041 SWIG_POINTER_EXCEPTION | 0)) == -1)
27042 SWIG_fail;
27043 if (arg2 == NULL) {
27044 PyErr_SetString(PyExc_TypeError,"null reference");
27045 SWIG_fail;
27046 }
27047 if (obj2) {
27048 arg3 = (bool)SWIG_As_bool(obj2);
27049 if (PyErr_Occurred()) SWIG_fail;
27050 }
27051 {
27052 PyThreadState* __tstate = wxPyBeginAllowThreads();
27053 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
27054
27055 wxPyEndAllowThreads(__tstate);
27056 if (PyErr_Occurred()) SWIG_fail;
27057 }
27058 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
27059 return resultobj;
27060 fail:
27061 return NULL;
27062 }
27063
27064
27065 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
27066 PyObject *resultobj;
27067 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27068 wxTreeItemId result;
27069 PyObject * obj0 = 0 ;
27070 char *kwnames[] = {
27071 (char *) "self", NULL
27072 };
27073
27074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
27075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27077 {
27078 PyThreadState* __tstate = wxPyBeginAllowThreads();
27079 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
27080
27081 wxPyEndAllowThreads(__tstate);
27082 if (PyErr_Occurred()) SWIG_fail;
27083 }
27084 {
27085 wxTreeItemId * resultptr;
27086 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27087 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27088 }
27089 return resultobj;
27090 fail:
27091 return NULL;
27092 }
27093
27094
27095 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27096 PyObject *resultobj;
27097 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27098 wxTreeItemId result;
27099 PyObject * obj0 = 0 ;
27100 char *kwnames[] = {
27101 (char *) "self", NULL
27102 };
27103
27104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
27105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27107 {
27108 PyThreadState* __tstate = wxPyBeginAllowThreads();
27109 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
27110
27111 wxPyEndAllowThreads(__tstate);
27112 if (PyErr_Occurred()) SWIG_fail;
27113 }
27114 {
27115 wxTreeItemId * resultptr;
27116 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27117 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27118 }
27119 return resultobj;
27120 fail:
27121 return NULL;
27122 }
27123
27124
27125 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
27126 PyObject *resultobj;
27127 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27128 PyObject *result;
27129 PyObject * obj0 = 0 ;
27130 char *kwnames[] = {
27131 (char *) "self", NULL
27132 };
27133
27134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
27135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27137 {
27138 PyThreadState* __tstate = wxPyBeginAllowThreads();
27139 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
27140
27141 wxPyEndAllowThreads(__tstate);
27142 if (PyErr_Occurred()) SWIG_fail;
27143 }
27144 resultobj = result;
27145 return resultobj;
27146 fail:
27147 return NULL;
27148 }
27149
27150
27151 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
27152 PyObject *resultobj;
27153 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27154 wxTreeItemId *arg2 = 0 ;
27155 wxTreeItemId result;
27156 PyObject * obj0 = 0 ;
27157 PyObject * obj1 = 0 ;
27158 char *kwnames[] = {
27159 (char *) "self",(char *) "item", NULL
27160 };
27161
27162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
27163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27165 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27166 SWIG_POINTER_EXCEPTION | 0)) == -1)
27167 SWIG_fail;
27168 if (arg2 == NULL) {
27169 PyErr_SetString(PyExc_TypeError,"null reference");
27170 SWIG_fail;
27171 }
27172 {
27173 PyThreadState* __tstate = wxPyBeginAllowThreads();
27174 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
27175
27176 wxPyEndAllowThreads(__tstate);
27177 if (PyErr_Occurred()) SWIG_fail;
27178 }
27179 {
27180 wxTreeItemId * resultptr;
27181 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27183 }
27184 return resultobj;
27185 fail:
27186 return NULL;
27187 }
27188
27189
27190 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
27191 PyObject *resultobj;
27192 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27193 wxTreeItemId *arg2 = 0 ;
27194 PyObject *result;
27195 PyObject * obj0 = 0 ;
27196 PyObject * obj1 = 0 ;
27197 char *kwnames[] = {
27198 (char *) "self",(char *) "item", NULL
27199 };
27200
27201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
27202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27204 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27205 SWIG_POINTER_EXCEPTION | 0)) == -1)
27206 SWIG_fail;
27207 if (arg2 == NULL) {
27208 PyErr_SetString(PyExc_TypeError,"null reference");
27209 SWIG_fail;
27210 }
27211 {
27212 PyThreadState* __tstate = wxPyBeginAllowThreads();
27213 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
27214
27215 wxPyEndAllowThreads(__tstate);
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 resultobj = result;
27219 return resultobj;
27220 fail:
27221 return NULL;
27222 }
27223
27224
27225 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
27226 PyObject *resultobj;
27227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27228 wxTreeItemId *arg2 = 0 ;
27229 void *arg3 = (void *) 0 ;
27230 PyObject *result;
27231 PyObject * obj0 = 0 ;
27232 PyObject * obj1 = 0 ;
27233 PyObject * obj2 = 0 ;
27234 char *kwnames[] = {
27235 (char *) "self",(char *) "item",(char *) "cookie", NULL
27236 };
27237
27238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27242 SWIG_POINTER_EXCEPTION | 0)) == -1)
27243 SWIG_fail;
27244 if (arg2 == NULL) {
27245 PyErr_SetString(PyExc_TypeError,"null reference");
27246 SWIG_fail;
27247 }
27248 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
27252
27253 wxPyEndAllowThreads(__tstate);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 resultobj = result;
27257 return resultobj;
27258 fail:
27259 return NULL;
27260 }
27261
27262
27263 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
27264 PyObject *resultobj;
27265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27266 wxTreeItemId *arg2 = 0 ;
27267 wxTreeItemId result;
27268 PyObject * obj0 = 0 ;
27269 PyObject * obj1 = 0 ;
27270 char *kwnames[] = {
27271 (char *) "self",(char *) "item", NULL
27272 };
27273
27274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
27275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27278 SWIG_POINTER_EXCEPTION | 0)) == -1)
27279 SWIG_fail;
27280 if (arg2 == NULL) {
27281 PyErr_SetString(PyExc_TypeError,"null reference");
27282 SWIG_fail;
27283 }
27284 {
27285 PyThreadState* __tstate = wxPyBeginAllowThreads();
27286 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
27287
27288 wxPyEndAllowThreads(__tstate);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 {
27292 wxTreeItemId * resultptr;
27293 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27295 }
27296 return resultobj;
27297 fail:
27298 return NULL;
27299 }
27300
27301
27302 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27303 PyObject *resultobj;
27304 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27305 wxTreeItemId *arg2 = 0 ;
27306 wxTreeItemId result;
27307 PyObject * obj0 = 0 ;
27308 PyObject * obj1 = 0 ;
27309 char *kwnames[] = {
27310 (char *) "self",(char *) "item", NULL
27311 };
27312
27313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
27314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27317 SWIG_POINTER_EXCEPTION | 0)) == -1)
27318 SWIG_fail;
27319 if (arg2 == NULL) {
27320 PyErr_SetString(PyExc_TypeError,"null reference");
27321 SWIG_fail;
27322 }
27323 {
27324 PyThreadState* __tstate = wxPyBeginAllowThreads();
27325 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
27326
27327 wxPyEndAllowThreads(__tstate);
27328 if (PyErr_Occurred()) SWIG_fail;
27329 }
27330 {
27331 wxTreeItemId * resultptr;
27332 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27333 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27334 }
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27342 PyObject *resultobj;
27343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27344 wxTreeItemId *arg2 = 0 ;
27345 wxTreeItemId result;
27346 PyObject * obj0 = 0 ;
27347 PyObject * obj1 = 0 ;
27348 char *kwnames[] = {
27349 (char *) "self",(char *) "item", NULL
27350 };
27351
27352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
27353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27355 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27356 SWIG_POINTER_EXCEPTION | 0)) == -1)
27357 SWIG_fail;
27358 if (arg2 == NULL) {
27359 PyErr_SetString(PyExc_TypeError,"null reference");
27360 SWIG_fail;
27361 }
27362 {
27363 PyThreadState* __tstate = wxPyBeginAllowThreads();
27364 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
27365
27366 wxPyEndAllowThreads(__tstate);
27367 if (PyErr_Occurred()) SWIG_fail;
27368 }
27369 {
27370 wxTreeItemId * resultptr;
27371 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27372 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27373 }
27374 return resultobj;
27375 fail:
27376 return NULL;
27377 }
27378
27379
27380 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
27381 PyObject *resultobj;
27382 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27383 wxTreeItemId result;
27384 PyObject * obj0 = 0 ;
27385 char *kwnames[] = {
27386 (char *) "self", NULL
27387 };
27388
27389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27392 {
27393 PyThreadState* __tstate = wxPyBeginAllowThreads();
27394 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27395
27396 wxPyEndAllowThreads(__tstate);
27397 if (PyErr_Occurred()) SWIG_fail;
27398 }
27399 {
27400 wxTreeItemId * resultptr;
27401 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27403 }
27404 return resultobj;
27405 fail:
27406 return NULL;
27407 }
27408
27409
27410 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27411 PyObject *resultobj;
27412 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27413 wxTreeItemId *arg2 = 0 ;
27414 wxTreeItemId result;
27415 PyObject * obj0 = 0 ;
27416 PyObject * obj1 = 0 ;
27417 char *kwnames[] = {
27418 (char *) "self",(char *) "item", NULL
27419 };
27420
27421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27425 SWIG_POINTER_EXCEPTION | 0)) == -1)
27426 SWIG_fail;
27427 if (arg2 == NULL) {
27428 PyErr_SetString(PyExc_TypeError,"null reference");
27429 SWIG_fail;
27430 }
27431 {
27432 PyThreadState* __tstate = wxPyBeginAllowThreads();
27433 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27434
27435 wxPyEndAllowThreads(__tstate);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
27438 {
27439 wxTreeItemId * resultptr;
27440 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27442 }
27443 return resultobj;
27444 fail:
27445 return NULL;
27446 }
27447
27448
27449 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27450 PyObject *resultobj;
27451 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27452 wxTreeItemId *arg2 = 0 ;
27453 wxTreeItemId result;
27454 PyObject * obj0 = 0 ;
27455 PyObject * obj1 = 0 ;
27456 char *kwnames[] = {
27457 (char *) "self",(char *) "item", NULL
27458 };
27459
27460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27464 SWIG_POINTER_EXCEPTION | 0)) == -1)
27465 SWIG_fail;
27466 if (arg2 == NULL) {
27467 PyErr_SetString(PyExc_TypeError,"null reference");
27468 SWIG_fail;
27469 }
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27473
27474 wxPyEndAllowThreads(__tstate);
27475 if (PyErr_Occurred()) SWIG_fail;
27476 }
27477 {
27478 wxTreeItemId * resultptr;
27479 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27480 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27481 }
27482 return resultobj;
27483 fail:
27484 return NULL;
27485 }
27486
27487
27488 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27489 PyObject *resultobj;
27490 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27491 wxString *arg2 = 0 ;
27492 int arg3 = (int) -1 ;
27493 int arg4 = (int) -1 ;
27494 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27495 wxTreeItemId result;
27496 bool temp2 = false ;
27497 PyObject * obj0 = 0 ;
27498 PyObject * obj1 = 0 ;
27499 PyObject * obj2 = 0 ;
27500 PyObject * obj3 = 0 ;
27501 PyObject * obj4 = 0 ;
27502 char *kwnames[] = {
27503 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27504 };
27505
27506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27509 {
27510 arg2 = wxString_in_helper(obj1);
27511 if (arg2 == NULL) SWIG_fail;
27512 temp2 = true;
27513 }
27514 if (obj2) {
27515 arg3 = (int)SWIG_As_int(obj2);
27516 if (PyErr_Occurred()) SWIG_fail;
27517 }
27518 if (obj3) {
27519 arg4 = (int)SWIG_As_int(obj3);
27520 if (PyErr_Occurred()) SWIG_fail;
27521 }
27522 if (obj4) {
27523 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27525 }
27526 {
27527 PyThreadState* __tstate = wxPyBeginAllowThreads();
27528 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27529
27530 wxPyEndAllowThreads(__tstate);
27531 if (PyErr_Occurred()) SWIG_fail;
27532 }
27533 {
27534 wxTreeItemId * resultptr;
27535 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27537 }
27538 {
27539 if (temp2)
27540 delete arg2;
27541 }
27542 return resultobj;
27543 fail:
27544 {
27545 if (temp2)
27546 delete arg2;
27547 }
27548 return NULL;
27549 }
27550
27551
27552 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27553 PyObject *resultobj;
27554 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27555 wxTreeItemId *arg2 = 0 ;
27556 wxString *arg3 = 0 ;
27557 int arg4 = (int) -1 ;
27558 int arg5 = (int) -1 ;
27559 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27560 wxTreeItemId result;
27561 bool temp3 = false ;
27562 PyObject * obj0 = 0 ;
27563 PyObject * obj1 = 0 ;
27564 PyObject * obj2 = 0 ;
27565 PyObject * obj3 = 0 ;
27566 PyObject * obj4 = 0 ;
27567 PyObject * obj5 = 0 ;
27568 char *kwnames[] = {
27569 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27570 };
27571
27572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27576 SWIG_POINTER_EXCEPTION | 0)) == -1)
27577 SWIG_fail;
27578 if (arg2 == NULL) {
27579 PyErr_SetString(PyExc_TypeError,"null reference");
27580 SWIG_fail;
27581 }
27582 {
27583 arg3 = wxString_in_helper(obj2);
27584 if (arg3 == NULL) SWIG_fail;
27585 temp3 = true;
27586 }
27587 if (obj3) {
27588 arg4 = (int)SWIG_As_int(obj3);
27589 if (PyErr_Occurred()) SWIG_fail;
27590 }
27591 if (obj4) {
27592 arg5 = (int)SWIG_As_int(obj4);
27593 if (PyErr_Occurred()) SWIG_fail;
27594 }
27595 if (obj5) {
27596 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27598 }
27599 {
27600 PyThreadState* __tstate = wxPyBeginAllowThreads();
27601 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27602
27603 wxPyEndAllowThreads(__tstate);
27604 if (PyErr_Occurred()) SWIG_fail;
27605 }
27606 {
27607 wxTreeItemId * resultptr;
27608 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27609 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27610 }
27611 {
27612 if (temp3)
27613 delete arg3;
27614 }
27615 return resultobj;
27616 fail:
27617 {
27618 if (temp3)
27619 delete arg3;
27620 }
27621 return NULL;
27622 }
27623
27624
27625 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27626 PyObject *resultobj;
27627 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27628 wxTreeItemId *arg2 = 0 ;
27629 wxTreeItemId *arg3 = 0 ;
27630 wxString *arg4 = 0 ;
27631 int arg5 = (int) -1 ;
27632 int arg6 = (int) -1 ;
27633 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27634 wxTreeItemId result;
27635 bool temp4 = false ;
27636 PyObject * obj0 = 0 ;
27637 PyObject * obj1 = 0 ;
27638 PyObject * obj2 = 0 ;
27639 PyObject * obj3 = 0 ;
27640 PyObject * obj4 = 0 ;
27641 PyObject * obj5 = 0 ;
27642 PyObject * obj6 = 0 ;
27643 char *kwnames[] = {
27644 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27645 };
27646
27647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27651 SWIG_POINTER_EXCEPTION | 0)) == -1)
27652 SWIG_fail;
27653 if (arg2 == NULL) {
27654 PyErr_SetString(PyExc_TypeError,"null reference");
27655 SWIG_fail;
27656 }
27657 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27658 SWIG_POINTER_EXCEPTION | 0)) == -1)
27659 SWIG_fail;
27660 if (arg3 == NULL) {
27661 PyErr_SetString(PyExc_TypeError,"null reference");
27662 SWIG_fail;
27663 }
27664 {
27665 arg4 = wxString_in_helper(obj3);
27666 if (arg4 == NULL) SWIG_fail;
27667 temp4 = true;
27668 }
27669 if (obj4) {
27670 arg5 = (int)SWIG_As_int(obj4);
27671 if (PyErr_Occurred()) SWIG_fail;
27672 }
27673 if (obj5) {
27674 arg6 = (int)SWIG_As_int(obj5);
27675 if (PyErr_Occurred()) SWIG_fail;
27676 }
27677 if (obj6) {
27678 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27680 }
27681 {
27682 PyThreadState* __tstate = wxPyBeginAllowThreads();
27683 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27684
27685 wxPyEndAllowThreads(__tstate);
27686 if (PyErr_Occurred()) SWIG_fail;
27687 }
27688 {
27689 wxTreeItemId * resultptr;
27690 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27691 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27692 }
27693 {
27694 if (temp4)
27695 delete arg4;
27696 }
27697 return resultobj;
27698 fail:
27699 {
27700 if (temp4)
27701 delete arg4;
27702 }
27703 return NULL;
27704 }
27705
27706
27707 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27708 PyObject *resultobj;
27709 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27710 wxTreeItemId *arg2 = 0 ;
27711 size_t arg3 ;
27712 wxString *arg4 = 0 ;
27713 int arg5 = (int) -1 ;
27714 int arg6 = (int) -1 ;
27715 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27716 wxTreeItemId result;
27717 bool temp4 = false ;
27718 PyObject * obj0 = 0 ;
27719 PyObject * obj1 = 0 ;
27720 PyObject * obj2 = 0 ;
27721 PyObject * obj3 = 0 ;
27722 PyObject * obj4 = 0 ;
27723 PyObject * obj5 = 0 ;
27724 PyObject * obj6 = 0 ;
27725 char *kwnames[] = {
27726 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27727 };
27728
27729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27732 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27733 SWIG_POINTER_EXCEPTION | 0)) == -1)
27734 SWIG_fail;
27735 if (arg2 == NULL) {
27736 PyErr_SetString(PyExc_TypeError,"null reference");
27737 SWIG_fail;
27738 }
27739 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27740 if (PyErr_Occurred()) SWIG_fail;
27741 {
27742 arg4 = wxString_in_helper(obj3);
27743 if (arg4 == NULL) SWIG_fail;
27744 temp4 = true;
27745 }
27746 if (obj4) {
27747 arg5 = (int)SWIG_As_int(obj4);
27748 if (PyErr_Occurred()) SWIG_fail;
27749 }
27750 if (obj5) {
27751 arg6 = (int)SWIG_As_int(obj5);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 if (obj6) {
27755 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27757 }
27758 {
27759 PyThreadState* __tstate = wxPyBeginAllowThreads();
27760 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27761
27762 wxPyEndAllowThreads(__tstate);
27763 if (PyErr_Occurred()) SWIG_fail;
27764 }
27765 {
27766 wxTreeItemId * resultptr;
27767 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27769 }
27770 {
27771 if (temp4)
27772 delete arg4;
27773 }
27774 return resultobj;
27775 fail:
27776 {
27777 if (temp4)
27778 delete arg4;
27779 }
27780 return NULL;
27781 }
27782
27783
27784 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27785 PyObject *resultobj;
27786 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27787 wxTreeItemId *arg2 = 0 ;
27788 wxString *arg3 = 0 ;
27789 int arg4 = (int) -1 ;
27790 int arg5 = (int) -1 ;
27791 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27792 wxTreeItemId result;
27793 bool temp3 = false ;
27794 PyObject * obj0 = 0 ;
27795 PyObject * obj1 = 0 ;
27796 PyObject * obj2 = 0 ;
27797 PyObject * obj3 = 0 ;
27798 PyObject * obj4 = 0 ;
27799 PyObject * obj5 = 0 ;
27800 char *kwnames[] = {
27801 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27802 };
27803
27804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27807 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27808 SWIG_POINTER_EXCEPTION | 0)) == -1)
27809 SWIG_fail;
27810 if (arg2 == NULL) {
27811 PyErr_SetString(PyExc_TypeError,"null reference");
27812 SWIG_fail;
27813 }
27814 {
27815 arg3 = wxString_in_helper(obj2);
27816 if (arg3 == NULL) SWIG_fail;
27817 temp3 = true;
27818 }
27819 if (obj3) {
27820 arg4 = (int)SWIG_As_int(obj3);
27821 if (PyErr_Occurred()) SWIG_fail;
27822 }
27823 if (obj4) {
27824 arg5 = (int)SWIG_As_int(obj4);
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
27827 if (obj5) {
27828 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27830 }
27831 {
27832 PyThreadState* __tstate = wxPyBeginAllowThreads();
27833 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27834
27835 wxPyEndAllowThreads(__tstate);
27836 if (PyErr_Occurred()) SWIG_fail;
27837 }
27838 {
27839 wxTreeItemId * resultptr;
27840 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27841 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27842 }
27843 {
27844 if (temp3)
27845 delete arg3;
27846 }
27847 return resultobj;
27848 fail:
27849 {
27850 if (temp3)
27851 delete arg3;
27852 }
27853 return NULL;
27854 }
27855
27856
27857 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27858 PyObject *resultobj;
27859 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27860 wxTreeItemId *arg2 = 0 ;
27861 PyObject * obj0 = 0 ;
27862 PyObject * obj1 = 0 ;
27863 char *kwnames[] = {
27864 (char *) "self",(char *) "item", NULL
27865 };
27866
27867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27871 SWIG_POINTER_EXCEPTION | 0)) == -1)
27872 SWIG_fail;
27873 if (arg2 == NULL) {
27874 PyErr_SetString(PyExc_TypeError,"null reference");
27875 SWIG_fail;
27876 }
27877 {
27878 PyThreadState* __tstate = wxPyBeginAllowThreads();
27879 (arg1)->Delete((wxTreeItemId const &)*arg2);
27880
27881 wxPyEndAllowThreads(__tstate);
27882 if (PyErr_Occurred()) SWIG_fail;
27883 }
27884 Py_INCREF(Py_None); resultobj = Py_None;
27885 return resultobj;
27886 fail:
27887 return NULL;
27888 }
27889
27890
27891 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27892 PyObject *resultobj;
27893 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27894 wxTreeItemId *arg2 = 0 ;
27895 PyObject * obj0 = 0 ;
27896 PyObject * obj1 = 0 ;
27897 char *kwnames[] = {
27898 (char *) "self",(char *) "item", NULL
27899 };
27900
27901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27904 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27905 SWIG_POINTER_EXCEPTION | 0)) == -1)
27906 SWIG_fail;
27907 if (arg2 == NULL) {
27908 PyErr_SetString(PyExc_TypeError,"null reference");
27909 SWIG_fail;
27910 }
27911 {
27912 PyThreadState* __tstate = wxPyBeginAllowThreads();
27913 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27914
27915 wxPyEndAllowThreads(__tstate);
27916 if (PyErr_Occurred()) SWIG_fail;
27917 }
27918 Py_INCREF(Py_None); resultobj = Py_None;
27919 return resultobj;
27920 fail:
27921 return NULL;
27922 }
27923
27924
27925 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27926 PyObject *resultobj;
27927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27928 PyObject * obj0 = 0 ;
27929 char *kwnames[] = {
27930 (char *) "self", NULL
27931 };
27932
27933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27936 {
27937 PyThreadState* __tstate = wxPyBeginAllowThreads();
27938 (arg1)->DeleteAllItems();
27939
27940 wxPyEndAllowThreads(__tstate);
27941 if (PyErr_Occurred()) SWIG_fail;
27942 }
27943 Py_INCREF(Py_None); resultobj = Py_None;
27944 return resultobj;
27945 fail:
27946 return NULL;
27947 }
27948
27949
27950 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27951 PyObject *resultobj;
27952 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27953 wxTreeItemId *arg2 = 0 ;
27954 PyObject * obj0 = 0 ;
27955 PyObject * obj1 = 0 ;
27956 char *kwnames[] = {
27957 (char *) "self",(char *) "item", NULL
27958 };
27959
27960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27963 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27964 SWIG_POINTER_EXCEPTION | 0)) == -1)
27965 SWIG_fail;
27966 if (arg2 == NULL) {
27967 PyErr_SetString(PyExc_TypeError,"null reference");
27968 SWIG_fail;
27969 }
27970 {
27971 PyThreadState* __tstate = wxPyBeginAllowThreads();
27972 (arg1)->Expand((wxTreeItemId const &)*arg2);
27973
27974 wxPyEndAllowThreads(__tstate);
27975 if (PyErr_Occurred()) SWIG_fail;
27976 }
27977 Py_INCREF(Py_None); resultobj = Py_None;
27978 return resultobj;
27979 fail:
27980 return NULL;
27981 }
27982
27983
27984 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27985 PyObject *resultobj;
27986 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27987 wxTreeItemId *arg2 = 0 ;
27988 PyObject * obj0 = 0 ;
27989 PyObject * obj1 = 0 ;
27990 char *kwnames[] = {
27991 (char *) "self",(char *) "item", NULL
27992 };
27993
27994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27997 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27998 SWIG_POINTER_EXCEPTION | 0)) == -1)
27999 SWIG_fail;
28000 if (arg2 == NULL) {
28001 PyErr_SetString(PyExc_TypeError,"null reference");
28002 SWIG_fail;
28003 }
28004 {
28005 PyThreadState* __tstate = wxPyBeginAllowThreads();
28006 (arg1)->Collapse((wxTreeItemId const &)*arg2);
28007
28008 wxPyEndAllowThreads(__tstate);
28009 if (PyErr_Occurred()) SWIG_fail;
28010 }
28011 Py_INCREF(Py_None); resultobj = Py_None;
28012 return resultobj;
28013 fail:
28014 return NULL;
28015 }
28016
28017
28018 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
28019 PyObject *resultobj;
28020 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28021 wxTreeItemId *arg2 = 0 ;
28022 PyObject * obj0 = 0 ;
28023 PyObject * obj1 = 0 ;
28024 char *kwnames[] = {
28025 (char *) "self",(char *) "item", NULL
28026 };
28027
28028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
28029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28032 SWIG_POINTER_EXCEPTION | 0)) == -1)
28033 SWIG_fail;
28034 if (arg2 == NULL) {
28035 PyErr_SetString(PyExc_TypeError,"null reference");
28036 SWIG_fail;
28037 }
28038 {
28039 PyThreadState* __tstate = wxPyBeginAllowThreads();
28040 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
28041
28042 wxPyEndAllowThreads(__tstate);
28043 if (PyErr_Occurred()) SWIG_fail;
28044 }
28045 Py_INCREF(Py_None); resultobj = Py_None;
28046 return resultobj;
28047 fail:
28048 return NULL;
28049 }
28050
28051
28052 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
28053 PyObject *resultobj;
28054 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28055 wxTreeItemId *arg2 = 0 ;
28056 PyObject * obj0 = 0 ;
28057 PyObject * obj1 = 0 ;
28058 char *kwnames[] = {
28059 (char *) "self",(char *) "item", NULL
28060 };
28061
28062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
28063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28066 SWIG_POINTER_EXCEPTION | 0)) == -1)
28067 SWIG_fail;
28068 if (arg2 == NULL) {
28069 PyErr_SetString(PyExc_TypeError,"null reference");
28070 SWIG_fail;
28071 }
28072 {
28073 PyThreadState* __tstate = wxPyBeginAllowThreads();
28074 (arg1)->Toggle((wxTreeItemId const &)*arg2);
28075
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 Py_INCREF(Py_None); resultobj = Py_None;
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
28087 PyObject *resultobj;
28088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28089 PyObject * obj0 = 0 ;
28090 char *kwnames[] = {
28091 (char *) "self", NULL
28092 };
28093
28094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
28095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28097 {
28098 PyThreadState* __tstate = wxPyBeginAllowThreads();
28099 (arg1)->Unselect();
28100
28101 wxPyEndAllowThreads(__tstate);
28102 if (PyErr_Occurred()) SWIG_fail;
28103 }
28104 Py_INCREF(Py_None); resultobj = Py_None;
28105 return resultobj;
28106 fail:
28107 return NULL;
28108 }
28109
28110
28111 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28112 PyObject *resultobj;
28113 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28114 wxTreeItemId *arg2 = 0 ;
28115 PyObject * obj0 = 0 ;
28116 PyObject * obj1 = 0 ;
28117 char *kwnames[] = {
28118 (char *) "self",(char *) "item", NULL
28119 };
28120
28121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
28122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28125 SWIG_POINTER_EXCEPTION | 0)) == -1)
28126 SWIG_fail;
28127 if (arg2 == NULL) {
28128 PyErr_SetString(PyExc_TypeError,"null reference");
28129 SWIG_fail;
28130 }
28131 {
28132 PyThreadState* __tstate = wxPyBeginAllowThreads();
28133 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
28134
28135 wxPyEndAllowThreads(__tstate);
28136 if (PyErr_Occurred()) SWIG_fail;
28137 }
28138 Py_INCREF(Py_None); resultobj = Py_None;
28139 return resultobj;
28140 fail:
28141 return NULL;
28142 }
28143
28144
28145 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
28146 PyObject *resultobj;
28147 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28148 PyObject * obj0 = 0 ;
28149 char *kwnames[] = {
28150 (char *) "self", NULL
28151 };
28152
28153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
28154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28156 {
28157 PyThreadState* __tstate = wxPyBeginAllowThreads();
28158 (arg1)->UnselectAll();
28159
28160 wxPyEndAllowThreads(__tstate);
28161 if (PyErr_Occurred()) SWIG_fail;
28162 }
28163 Py_INCREF(Py_None); resultobj = Py_None;
28164 return resultobj;
28165 fail:
28166 return NULL;
28167 }
28168
28169
28170 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28171 PyObject *resultobj;
28172 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28173 wxTreeItemId *arg2 = 0 ;
28174 bool arg3 = (bool) true ;
28175 PyObject * obj0 = 0 ;
28176 PyObject * obj1 = 0 ;
28177 PyObject * obj2 = 0 ;
28178 char *kwnames[] = {
28179 (char *) "self",(char *) "item",(char *) "select", NULL
28180 };
28181
28182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
28183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28186 SWIG_POINTER_EXCEPTION | 0)) == -1)
28187 SWIG_fail;
28188 if (arg2 == NULL) {
28189 PyErr_SetString(PyExc_TypeError,"null reference");
28190 SWIG_fail;
28191 }
28192 if (obj2) {
28193 arg3 = (bool)SWIG_As_bool(obj2);
28194 if (PyErr_Occurred()) SWIG_fail;
28195 }
28196 {
28197 PyThreadState* __tstate = wxPyBeginAllowThreads();
28198 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
28199
28200 wxPyEndAllowThreads(__tstate);
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
28203 Py_INCREF(Py_None); resultobj = Py_None;
28204 return resultobj;
28205 fail:
28206 return NULL;
28207 }
28208
28209
28210 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
28211 PyObject *resultobj;
28212 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28213 wxTreeItemId *arg2 = 0 ;
28214 PyObject * obj0 = 0 ;
28215 PyObject * obj1 = 0 ;
28216 char *kwnames[] = {
28217 (char *) "self",(char *) "item", NULL
28218 };
28219
28220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
28221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28223 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28224 SWIG_POINTER_EXCEPTION | 0)) == -1)
28225 SWIG_fail;
28226 if (arg2 == NULL) {
28227 PyErr_SetString(PyExc_TypeError,"null reference");
28228 SWIG_fail;
28229 }
28230 {
28231 PyThreadState* __tstate = wxPyBeginAllowThreads();
28232 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
28233
28234 wxPyEndAllowThreads(__tstate);
28235 if (PyErr_Occurred()) SWIG_fail;
28236 }
28237 Py_INCREF(Py_None); resultobj = Py_None;
28238 return resultobj;
28239 fail:
28240 return NULL;
28241 }
28242
28243
28244 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
28245 PyObject *resultobj;
28246 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28247 wxTreeItemId *arg2 = 0 ;
28248 PyObject * obj0 = 0 ;
28249 PyObject * obj1 = 0 ;
28250 char *kwnames[] = {
28251 (char *) "self",(char *) "item", NULL
28252 };
28253
28254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
28255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28257 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28258 SWIG_POINTER_EXCEPTION | 0)) == -1)
28259 SWIG_fail;
28260 if (arg2 == NULL) {
28261 PyErr_SetString(PyExc_TypeError,"null reference");
28262 SWIG_fail;
28263 }
28264 {
28265 PyThreadState* __tstate = wxPyBeginAllowThreads();
28266 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
28267
28268 wxPyEndAllowThreads(__tstate);
28269 if (PyErr_Occurred()) SWIG_fail;
28270 }
28271 Py_INCREF(Py_None); resultobj = Py_None;
28272 return resultobj;
28273 fail:
28274 return NULL;
28275 }
28276
28277
28278 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
28279 PyObject *resultobj;
28280 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28281 wxTreeItemId *arg2 = 0 ;
28282 PyObject * obj0 = 0 ;
28283 PyObject * obj1 = 0 ;
28284 char *kwnames[] = {
28285 (char *) "self",(char *) "item", NULL
28286 };
28287
28288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
28289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28292 SWIG_POINTER_EXCEPTION | 0)) == -1)
28293 SWIG_fail;
28294 if (arg2 == NULL) {
28295 PyErr_SetString(PyExc_TypeError,"null reference");
28296 SWIG_fail;
28297 }
28298 {
28299 PyThreadState* __tstate = wxPyBeginAllowThreads();
28300 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
28301
28302 wxPyEndAllowThreads(__tstate);
28303 if (PyErr_Occurred()) SWIG_fail;
28304 }
28305 Py_INCREF(Py_None); resultobj = Py_None;
28306 return resultobj;
28307 fail:
28308 return NULL;
28309 }
28310
28311
28312 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28313 PyObject *resultobj;
28314 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28315 wxTreeItemId *arg2 = 0 ;
28316 PyObject * obj0 = 0 ;
28317 PyObject * obj1 = 0 ;
28318 char *kwnames[] = {
28319 (char *) "self",(char *) "item", NULL
28320 };
28321
28322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
28323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28326 SWIG_POINTER_EXCEPTION | 0)) == -1)
28327 SWIG_fail;
28328 if (arg2 == NULL) {
28329 PyErr_SetString(PyExc_TypeError,"null reference");
28330 SWIG_fail;
28331 }
28332 {
28333 PyThreadState* __tstate = wxPyBeginAllowThreads();
28334 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
28335
28336 wxPyEndAllowThreads(__tstate);
28337 if (PyErr_Occurred()) SWIG_fail;
28338 }
28339 Py_INCREF(Py_None); resultobj = Py_None;
28340 return resultobj;
28341 fail:
28342 return NULL;
28343 }
28344
28345
28346 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
28347 PyObject *resultobj;
28348 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28349 wxTextCtrl *result;
28350 PyObject * obj0 = 0 ;
28351 char *kwnames[] = {
28352 (char *) "self", NULL
28353 };
28354
28355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
28356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28358 {
28359 PyThreadState* __tstate = wxPyBeginAllowThreads();
28360 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
28361
28362 wxPyEndAllowThreads(__tstate);
28363 if (PyErr_Occurred()) SWIG_fail;
28364 }
28365 {
28366 resultobj = wxPyMake_wxObject(result, 0);
28367 }
28368 return resultobj;
28369 fail:
28370 return NULL;
28371 }
28372
28373
28374 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28375 PyObject *resultobj;
28376 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28377 wxTreeItemId *arg2 = 0 ;
28378 PyObject * obj0 = 0 ;
28379 PyObject * obj1 = 0 ;
28380 char *kwnames[] = {
28381 (char *) "self",(char *) "item", NULL
28382 };
28383
28384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28387 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28388 SWIG_POINTER_EXCEPTION | 0)) == -1)
28389 SWIG_fail;
28390 if (arg2 == NULL) {
28391 PyErr_SetString(PyExc_TypeError,"null reference");
28392 SWIG_fail;
28393 }
28394 {
28395 PyThreadState* __tstate = wxPyBeginAllowThreads();
28396 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28397
28398 wxPyEndAllowThreads(__tstate);
28399 if (PyErr_Occurred()) SWIG_fail;
28400 }
28401 Py_INCREF(Py_None); resultobj = Py_None;
28402 return resultobj;
28403 fail:
28404 return NULL;
28405 }
28406
28407
28408 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28409 PyObject *resultobj;
28410 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28411 wxPoint *arg2 = 0 ;
28412 int *arg3 = 0 ;
28413 wxTreeItemId result;
28414 wxPoint temp2 ;
28415 int temp3 ;
28416 int res3 = 0 ;
28417 PyObject * obj0 = 0 ;
28418 PyObject * obj1 = 0 ;
28419 char *kwnames[] = {
28420 (char *) "self",(char *) "point", NULL
28421 };
28422
28423 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28427 {
28428 arg2 = &temp2;
28429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28430 }
28431 {
28432 PyThreadState* __tstate = wxPyBeginAllowThreads();
28433 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28434
28435 wxPyEndAllowThreads(__tstate);
28436 if (PyErr_Occurred()) SWIG_fail;
28437 }
28438 {
28439 wxTreeItemId * resultptr;
28440 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28441 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28442 }
28443 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28444 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28445 return resultobj;
28446 fail:
28447 return NULL;
28448 }
28449
28450
28451 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28452 PyObject *resultobj;
28453 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28454 wxTreeItemId *arg2 = 0 ;
28455 bool arg3 = (bool) false ;
28456 PyObject *result;
28457 PyObject * obj0 = 0 ;
28458 PyObject * obj1 = 0 ;
28459 PyObject * obj2 = 0 ;
28460 char *kwnames[] = {
28461 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28462 };
28463
28464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28468 SWIG_POINTER_EXCEPTION | 0)) == -1)
28469 SWIG_fail;
28470 if (arg2 == NULL) {
28471 PyErr_SetString(PyExc_TypeError,"null reference");
28472 SWIG_fail;
28473 }
28474 if (obj2) {
28475 arg3 = (bool)SWIG_As_bool(obj2);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 {
28479 PyThreadState* __tstate = wxPyBeginAllowThreads();
28480 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28481
28482 wxPyEndAllowThreads(__tstate);
28483 if (PyErr_Occurred()) SWIG_fail;
28484 }
28485 resultobj = result;
28486 return resultobj;
28487 fail:
28488 return NULL;
28489 }
28490
28491
28492 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28493 PyObject *resultobj;
28494 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28495 wxVisualAttributes result;
28496 PyObject * obj0 = 0 ;
28497 char *kwnames[] = {
28498 (char *) "variant", NULL
28499 };
28500
28501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28502 if (obj0) {
28503 arg1 = (int)SWIG_As_int(obj0);
28504 if (PyErr_Occurred()) SWIG_fail;
28505 }
28506 {
28507 if (!wxPyCheckForApp()) SWIG_fail;
28508 PyThreadState* __tstate = wxPyBeginAllowThreads();
28509 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28510
28511 wxPyEndAllowThreads(__tstate);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 {
28515 wxVisualAttributes * resultptr;
28516 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28518 }
28519 return resultobj;
28520 fail:
28521 return NULL;
28522 }
28523
28524
28525 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28526 PyObject *obj;
28527 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28528 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28529 Py_INCREF(obj);
28530 return Py_BuildValue((char *)"");
28531 }
28532 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28533 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28534 return 1;
28535 }
28536
28537
28538 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28539 PyObject *pyobj;
28540
28541 {
28542 #if wxUSE_UNICODE
28543 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28544 #else
28545 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28546 #endif
28547 }
28548 return pyobj;
28549 }
28550
28551
28552 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28553 PyObject *resultobj;
28554 wxWindow *arg1 = (wxWindow *) 0 ;
28555 int arg2 = (int) (int)-1 ;
28556 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28557 wxString *arg3 = (wxString *) &arg3_defvalue ;
28558 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28559 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28560 wxSize const &arg5_defvalue = wxDefaultSize ;
28561 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28562 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28563 wxString const &arg7_defvalue = wxPyEmptyString ;
28564 wxString *arg7 = (wxString *) &arg7_defvalue ;
28565 int arg8 = (int) 0 ;
28566 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28567 wxString *arg9 = (wxString *) &arg9_defvalue ;
28568 wxGenericDirCtrl *result;
28569 bool temp3 = false ;
28570 wxPoint temp4 ;
28571 wxSize temp5 ;
28572 bool temp7 = false ;
28573 bool temp9 = false ;
28574 PyObject * obj0 = 0 ;
28575 PyObject * obj1 = 0 ;
28576 PyObject * obj2 = 0 ;
28577 PyObject * obj3 = 0 ;
28578 PyObject * obj4 = 0 ;
28579 PyObject * obj5 = 0 ;
28580 PyObject * obj6 = 0 ;
28581 PyObject * obj7 = 0 ;
28582 PyObject * obj8 = 0 ;
28583 char *kwnames[] = {
28584 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28585 };
28586
28587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28590 if (obj1) {
28591 arg2 = (int)SWIG_As_int(obj1);
28592 if (PyErr_Occurred()) SWIG_fail;
28593 }
28594 if (obj2) {
28595 {
28596 arg3 = wxString_in_helper(obj2);
28597 if (arg3 == NULL) SWIG_fail;
28598 temp3 = true;
28599 }
28600 }
28601 if (obj3) {
28602 {
28603 arg4 = &temp4;
28604 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28605 }
28606 }
28607 if (obj4) {
28608 {
28609 arg5 = &temp5;
28610 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28611 }
28612 }
28613 if (obj5) {
28614 arg6 = (long)SWIG_As_long(obj5);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 if (obj6) {
28618 {
28619 arg7 = wxString_in_helper(obj6);
28620 if (arg7 == NULL) SWIG_fail;
28621 temp7 = true;
28622 }
28623 }
28624 if (obj7) {
28625 arg8 = (int)SWIG_As_int(obj7);
28626 if (PyErr_Occurred()) SWIG_fail;
28627 }
28628 if (obj8) {
28629 {
28630 arg9 = wxString_in_helper(obj8);
28631 if (arg9 == NULL) SWIG_fail;
28632 temp9 = true;
28633 }
28634 }
28635 {
28636 if (!wxPyCheckForApp()) SWIG_fail;
28637 PyThreadState* __tstate = wxPyBeginAllowThreads();
28638 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28639
28640 wxPyEndAllowThreads(__tstate);
28641 if (PyErr_Occurred()) SWIG_fail;
28642 }
28643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28644 {
28645 if (temp3)
28646 delete arg3;
28647 }
28648 {
28649 if (temp7)
28650 delete arg7;
28651 }
28652 {
28653 if (temp9)
28654 delete arg9;
28655 }
28656 return resultobj;
28657 fail:
28658 {
28659 if (temp3)
28660 delete arg3;
28661 }
28662 {
28663 if (temp7)
28664 delete arg7;
28665 }
28666 {
28667 if (temp9)
28668 delete arg9;
28669 }
28670 return NULL;
28671 }
28672
28673
28674 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28675 PyObject *resultobj;
28676 wxGenericDirCtrl *result;
28677 char *kwnames[] = {
28678 NULL
28679 };
28680
28681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28682 {
28683 if (!wxPyCheckForApp()) SWIG_fail;
28684 PyThreadState* __tstate = wxPyBeginAllowThreads();
28685 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28686
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28691 return resultobj;
28692 fail:
28693 return NULL;
28694 }
28695
28696
28697 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28698 PyObject *resultobj;
28699 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28700 wxWindow *arg2 = (wxWindow *) 0 ;
28701 int arg3 = (int) (int)-1 ;
28702 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28703 wxString *arg4 = (wxString *) &arg4_defvalue ;
28704 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28705 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28706 wxSize const &arg6_defvalue = wxDefaultSize ;
28707 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28708 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28709 wxString const &arg8_defvalue = wxPyEmptyString ;
28710 wxString *arg8 = (wxString *) &arg8_defvalue ;
28711 int arg9 = (int) 0 ;
28712 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28713 wxString *arg10 = (wxString *) &arg10_defvalue ;
28714 bool result;
28715 bool temp4 = false ;
28716 wxPoint temp5 ;
28717 wxSize temp6 ;
28718 bool temp8 = false ;
28719 bool temp10 = false ;
28720 PyObject * obj0 = 0 ;
28721 PyObject * obj1 = 0 ;
28722 PyObject * obj2 = 0 ;
28723 PyObject * obj3 = 0 ;
28724 PyObject * obj4 = 0 ;
28725 PyObject * obj5 = 0 ;
28726 PyObject * obj6 = 0 ;
28727 PyObject * obj7 = 0 ;
28728 PyObject * obj8 = 0 ;
28729 PyObject * obj9 = 0 ;
28730 char *kwnames[] = {
28731 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28732 };
28733
28734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28737 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28739 if (obj2) {
28740 arg3 = (int)SWIG_As_int(obj2);
28741 if (PyErr_Occurred()) SWIG_fail;
28742 }
28743 if (obj3) {
28744 {
28745 arg4 = wxString_in_helper(obj3);
28746 if (arg4 == NULL) SWIG_fail;
28747 temp4 = true;
28748 }
28749 }
28750 if (obj4) {
28751 {
28752 arg5 = &temp5;
28753 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28754 }
28755 }
28756 if (obj5) {
28757 {
28758 arg6 = &temp6;
28759 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28760 }
28761 }
28762 if (obj6) {
28763 arg7 = (long)SWIG_As_long(obj6);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 }
28766 if (obj7) {
28767 {
28768 arg8 = wxString_in_helper(obj7);
28769 if (arg8 == NULL) SWIG_fail;
28770 temp8 = true;
28771 }
28772 }
28773 if (obj8) {
28774 arg9 = (int)SWIG_As_int(obj8);
28775 if (PyErr_Occurred()) SWIG_fail;
28776 }
28777 if (obj9) {
28778 {
28779 arg10 = wxString_in_helper(obj9);
28780 if (arg10 == NULL) SWIG_fail;
28781 temp10 = true;
28782 }
28783 }
28784 {
28785 PyThreadState* __tstate = wxPyBeginAllowThreads();
28786 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28787
28788 wxPyEndAllowThreads(__tstate);
28789 if (PyErr_Occurred()) SWIG_fail;
28790 }
28791 {
28792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28793 }
28794 {
28795 if (temp4)
28796 delete arg4;
28797 }
28798 {
28799 if (temp8)
28800 delete arg8;
28801 }
28802 {
28803 if (temp10)
28804 delete arg10;
28805 }
28806 return resultobj;
28807 fail:
28808 {
28809 if (temp4)
28810 delete arg4;
28811 }
28812 {
28813 if (temp8)
28814 delete arg8;
28815 }
28816 {
28817 if (temp10)
28818 delete arg10;
28819 }
28820 return NULL;
28821 }
28822
28823
28824 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28825 PyObject *resultobj;
28826 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28827 wxString *arg2 = 0 ;
28828 bool result;
28829 bool temp2 = false ;
28830 PyObject * obj0 = 0 ;
28831 PyObject * obj1 = 0 ;
28832 char *kwnames[] = {
28833 (char *) "self",(char *) "path", NULL
28834 };
28835
28836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28839 {
28840 arg2 = wxString_in_helper(obj1);
28841 if (arg2 == NULL) SWIG_fail;
28842 temp2 = true;
28843 }
28844 {
28845 PyThreadState* __tstate = wxPyBeginAllowThreads();
28846 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28847
28848 wxPyEndAllowThreads(__tstate);
28849 if (PyErr_Occurred()) SWIG_fail;
28850 }
28851 {
28852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28853 }
28854 {
28855 if (temp2)
28856 delete arg2;
28857 }
28858 return resultobj;
28859 fail:
28860 {
28861 if (temp2)
28862 delete arg2;
28863 }
28864 return NULL;
28865 }
28866
28867
28868 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28869 PyObject *resultobj;
28870 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28871 wxString result;
28872 PyObject * obj0 = 0 ;
28873 char *kwnames[] = {
28874 (char *) "self", NULL
28875 };
28876
28877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28880 {
28881 PyThreadState* __tstate = wxPyBeginAllowThreads();
28882 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28883
28884 wxPyEndAllowThreads(__tstate);
28885 if (PyErr_Occurred()) SWIG_fail;
28886 }
28887 {
28888 #if wxUSE_UNICODE
28889 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28890 #else
28891 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28892 #endif
28893 }
28894 return resultobj;
28895 fail:
28896 return NULL;
28897 }
28898
28899
28900 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28901 PyObject *resultobj;
28902 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28903 wxString *arg2 = 0 ;
28904 bool temp2 = false ;
28905 PyObject * obj0 = 0 ;
28906 PyObject * obj1 = 0 ;
28907 char *kwnames[] = {
28908 (char *) "self",(char *) "path", NULL
28909 };
28910
28911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28914 {
28915 arg2 = wxString_in_helper(obj1);
28916 if (arg2 == NULL) SWIG_fail;
28917 temp2 = true;
28918 }
28919 {
28920 PyThreadState* __tstate = wxPyBeginAllowThreads();
28921 (arg1)->SetDefaultPath((wxString const &)*arg2);
28922
28923 wxPyEndAllowThreads(__tstate);
28924 if (PyErr_Occurred()) SWIG_fail;
28925 }
28926 Py_INCREF(Py_None); resultobj = Py_None;
28927 {
28928 if (temp2)
28929 delete arg2;
28930 }
28931 return resultobj;
28932 fail:
28933 {
28934 if (temp2)
28935 delete arg2;
28936 }
28937 return NULL;
28938 }
28939
28940
28941 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28942 PyObject *resultobj;
28943 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28944 wxString result;
28945 PyObject * obj0 = 0 ;
28946 char *kwnames[] = {
28947 (char *) "self", NULL
28948 };
28949
28950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28953 {
28954 PyThreadState* __tstate = wxPyBeginAllowThreads();
28955 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28956
28957 wxPyEndAllowThreads(__tstate);
28958 if (PyErr_Occurred()) SWIG_fail;
28959 }
28960 {
28961 #if wxUSE_UNICODE
28962 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28963 #else
28964 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28965 #endif
28966 }
28967 return resultobj;
28968 fail:
28969 return NULL;
28970 }
28971
28972
28973 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28974 PyObject *resultobj;
28975 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28976 wxString result;
28977 PyObject * obj0 = 0 ;
28978 char *kwnames[] = {
28979 (char *) "self", NULL
28980 };
28981
28982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28985 {
28986 PyThreadState* __tstate = wxPyBeginAllowThreads();
28987 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28988
28989 wxPyEndAllowThreads(__tstate);
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 {
28993 #if wxUSE_UNICODE
28994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28995 #else
28996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28997 #endif
28998 }
28999 return resultobj;
29000 fail:
29001 return NULL;
29002 }
29003
29004
29005 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
29006 PyObject *resultobj;
29007 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29008 wxString *arg2 = 0 ;
29009 bool temp2 = false ;
29010 PyObject * obj0 = 0 ;
29011 PyObject * obj1 = 0 ;
29012 char *kwnames[] = {
29013 (char *) "self",(char *) "path", NULL
29014 };
29015
29016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
29017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29019 {
29020 arg2 = wxString_in_helper(obj1);
29021 if (arg2 == NULL) SWIG_fail;
29022 temp2 = true;
29023 }
29024 {
29025 PyThreadState* __tstate = wxPyBeginAllowThreads();
29026 (arg1)->SetPath((wxString const &)*arg2);
29027
29028 wxPyEndAllowThreads(__tstate);
29029 if (PyErr_Occurred()) SWIG_fail;
29030 }
29031 Py_INCREF(Py_None); resultobj = Py_None;
29032 {
29033 if (temp2)
29034 delete arg2;
29035 }
29036 return resultobj;
29037 fail:
29038 {
29039 if (temp2)
29040 delete arg2;
29041 }
29042 return NULL;
29043 }
29044
29045
29046 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29047 PyObject *resultobj;
29048 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29049 bool arg2 ;
29050 PyObject * obj0 = 0 ;
29051 PyObject * obj1 = 0 ;
29052 char *kwnames[] = {
29053 (char *) "self",(char *) "show", NULL
29054 };
29055
29056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
29057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29059 arg2 = (bool)SWIG_As_bool(obj1);
29060 if (PyErr_Occurred()) SWIG_fail;
29061 {
29062 PyThreadState* __tstate = wxPyBeginAllowThreads();
29063 (arg1)->ShowHidden(arg2);
29064
29065 wxPyEndAllowThreads(__tstate);
29066 if (PyErr_Occurred()) SWIG_fail;
29067 }
29068 Py_INCREF(Py_None); resultobj = Py_None;
29069 return resultobj;
29070 fail:
29071 return NULL;
29072 }
29073
29074
29075 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj;
29077 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29078 bool result;
29079 PyObject * obj0 = 0 ;
29080 char *kwnames[] = {
29081 (char *) "self", NULL
29082 };
29083
29084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
29085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29087 {
29088 PyThreadState* __tstate = wxPyBeginAllowThreads();
29089 result = (bool)(arg1)->GetShowHidden();
29090
29091 wxPyEndAllowThreads(__tstate);
29092 if (PyErr_Occurred()) SWIG_fail;
29093 }
29094 {
29095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29096 }
29097 return resultobj;
29098 fail:
29099 return NULL;
29100 }
29101
29102
29103 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29104 PyObject *resultobj;
29105 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29106 wxString result;
29107 PyObject * obj0 = 0 ;
29108 char *kwnames[] = {
29109 (char *) "self", NULL
29110 };
29111
29112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
29113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29115 {
29116 PyThreadState* __tstate = wxPyBeginAllowThreads();
29117 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
29118
29119 wxPyEndAllowThreads(__tstate);
29120 if (PyErr_Occurred()) SWIG_fail;
29121 }
29122 {
29123 #if wxUSE_UNICODE
29124 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29125 #else
29126 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29127 #endif
29128 }
29129 return resultobj;
29130 fail:
29131 return NULL;
29132 }
29133
29134
29135 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29136 PyObject *resultobj;
29137 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29138 wxString *arg2 = 0 ;
29139 bool temp2 = false ;
29140 PyObject * obj0 = 0 ;
29141 PyObject * obj1 = 0 ;
29142 char *kwnames[] = {
29143 (char *) "self",(char *) "filter", NULL
29144 };
29145
29146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
29147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29149 {
29150 arg2 = wxString_in_helper(obj1);
29151 if (arg2 == NULL) SWIG_fail;
29152 temp2 = true;
29153 }
29154 {
29155 PyThreadState* __tstate = wxPyBeginAllowThreads();
29156 (arg1)->SetFilter((wxString const &)*arg2);
29157
29158 wxPyEndAllowThreads(__tstate);
29159 if (PyErr_Occurred()) SWIG_fail;
29160 }
29161 Py_INCREF(Py_None); resultobj = Py_None;
29162 {
29163 if (temp2)
29164 delete arg2;
29165 }
29166 return resultobj;
29167 fail:
29168 {
29169 if (temp2)
29170 delete arg2;
29171 }
29172 return NULL;
29173 }
29174
29175
29176 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29177 PyObject *resultobj;
29178 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29179 int result;
29180 PyObject * obj0 = 0 ;
29181 char *kwnames[] = {
29182 (char *) "self", NULL
29183 };
29184
29185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
29186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29188 {
29189 PyThreadState* __tstate = wxPyBeginAllowThreads();
29190 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
29191
29192 wxPyEndAllowThreads(__tstate);
29193 if (PyErr_Occurred()) SWIG_fail;
29194 }
29195 resultobj = SWIG_From_int((int)result);
29196 return resultobj;
29197 fail:
29198 return NULL;
29199 }
29200
29201
29202 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29203 PyObject *resultobj;
29204 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29205 int arg2 ;
29206 PyObject * obj0 = 0 ;
29207 PyObject * obj1 = 0 ;
29208 char *kwnames[] = {
29209 (char *) "self",(char *) "n", NULL
29210 };
29211
29212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
29213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29215 arg2 = (int)SWIG_As_int(obj1);
29216 if (PyErr_Occurred()) SWIG_fail;
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
29219 (arg1)->SetFilterIndex(arg2);
29220
29221 wxPyEndAllowThreads(__tstate);
29222 if (PyErr_Occurred()) SWIG_fail;
29223 }
29224 Py_INCREF(Py_None); resultobj = Py_None;
29225 return resultobj;
29226 fail:
29227 return NULL;
29228 }
29229
29230
29231 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
29232 PyObject *resultobj;
29233 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29234 wxTreeItemId result;
29235 PyObject * obj0 = 0 ;
29236 char *kwnames[] = {
29237 (char *) "self", NULL
29238 };
29239
29240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
29241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29243 {
29244 PyThreadState* __tstate = wxPyBeginAllowThreads();
29245 result = (arg1)->GetRootId();
29246
29247 wxPyEndAllowThreads(__tstate);
29248 if (PyErr_Occurred()) SWIG_fail;
29249 }
29250 {
29251 wxTreeItemId * resultptr;
29252 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29253 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29254 }
29255 return resultobj;
29256 fail:
29257 return NULL;
29258 }
29259
29260
29261 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj;
29263 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29264 wxPyTreeCtrl *result;
29265 PyObject * obj0 = 0 ;
29266 char *kwnames[] = {
29267 (char *) "self", NULL
29268 };
29269
29270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29273 {
29274 PyThreadState* __tstate = wxPyBeginAllowThreads();
29275 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29276
29277 wxPyEndAllowThreads(__tstate);
29278 if (PyErr_Occurred()) SWIG_fail;
29279 }
29280 {
29281 resultobj = wxPyMake_wxObject(result, 0);
29282 }
29283 return resultobj;
29284 fail:
29285 return NULL;
29286 }
29287
29288
29289 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29290 PyObject *resultobj;
29291 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29292 wxDirFilterListCtrl *result;
29293 PyObject * obj0 = 0 ;
29294 char *kwnames[] = {
29295 (char *) "self", NULL
29296 };
29297
29298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29301 {
29302 PyThreadState* __tstate = wxPyBeginAllowThreads();
29303 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29304
29305 wxPyEndAllowThreads(__tstate);
29306 if (PyErr_Occurred()) SWIG_fail;
29307 }
29308 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29309 return resultobj;
29310 fail:
29311 return NULL;
29312 }
29313
29314
29315 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29316 PyObject *resultobj;
29317 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29318 wxTreeItemId arg2 ;
29319 wxString *arg3 = 0 ;
29320 bool *arg4 = 0 ;
29321 wxTreeItemId result;
29322 wxTreeItemId *argp2 ;
29323 bool temp3 = false ;
29324 bool temp4 ;
29325 int res4 = 0 ;
29326 PyObject * obj0 = 0 ;
29327 PyObject * obj1 = 0 ;
29328 PyObject * obj2 = 0 ;
29329 char *kwnames[] = {
29330 (char *) "self",(char *) "parentId",(char *) "path", NULL
29331 };
29332
29333 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29337 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29338 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29339 arg2 = *argp2;
29340 {
29341 arg3 = wxString_in_helper(obj2);
29342 if (arg3 == NULL) SWIG_fail;
29343 temp3 = true;
29344 }
29345 {
29346 PyThreadState* __tstate = wxPyBeginAllowThreads();
29347 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29348
29349 wxPyEndAllowThreads(__tstate);
29350 if (PyErr_Occurred()) SWIG_fail;
29351 }
29352 {
29353 wxTreeItemId * resultptr;
29354 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29355 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29356 }
29357 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29358 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29359 {
29360 if (temp3)
29361 delete arg3;
29362 }
29363 return resultobj;
29364 fail:
29365 {
29366 if (temp3)
29367 delete arg3;
29368 }
29369 return NULL;
29370 }
29371
29372
29373 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29374 PyObject *resultobj;
29375 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29376 PyObject * obj0 = 0 ;
29377 char *kwnames[] = {
29378 (char *) "self", NULL
29379 };
29380
29381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29384 {
29385 PyThreadState* __tstate = wxPyBeginAllowThreads();
29386 (arg1)->DoResize();
29387
29388 wxPyEndAllowThreads(__tstate);
29389 if (PyErr_Occurred()) SWIG_fail;
29390 }
29391 Py_INCREF(Py_None); resultobj = Py_None;
29392 return resultobj;
29393 fail:
29394 return NULL;
29395 }
29396
29397
29398 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29399 PyObject *resultobj;
29400 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29401 PyObject * obj0 = 0 ;
29402 char *kwnames[] = {
29403 (char *) "self", NULL
29404 };
29405
29406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29409 {
29410 PyThreadState* __tstate = wxPyBeginAllowThreads();
29411 (arg1)->ReCreateTree();
29412
29413 wxPyEndAllowThreads(__tstate);
29414 if (PyErr_Occurred()) SWIG_fail;
29415 }
29416 Py_INCREF(Py_None); resultobj = Py_None;
29417 return resultobj;
29418 fail:
29419 return NULL;
29420 }
29421
29422
29423 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29424 PyObject *obj;
29425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29426 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29427 Py_INCREF(obj);
29428 return Py_BuildValue((char *)"");
29429 }
29430 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29431 PyObject *resultobj;
29432 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29433 int arg2 = (int) (int)-1 ;
29434 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29435 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29436 wxSize const &arg4_defvalue = wxDefaultSize ;
29437 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29438 long arg5 = (long) 0 ;
29439 wxDirFilterListCtrl *result;
29440 wxPoint temp3 ;
29441 wxSize temp4 ;
29442 PyObject * obj0 = 0 ;
29443 PyObject * obj1 = 0 ;
29444 PyObject * obj2 = 0 ;
29445 PyObject * obj3 = 0 ;
29446 PyObject * obj4 = 0 ;
29447 char *kwnames[] = {
29448 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29449 };
29450
29451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29454 if (obj1) {
29455 arg2 = (int)SWIG_As_int(obj1);
29456 if (PyErr_Occurred()) SWIG_fail;
29457 }
29458 if (obj2) {
29459 {
29460 arg3 = &temp3;
29461 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29462 }
29463 }
29464 if (obj3) {
29465 {
29466 arg4 = &temp4;
29467 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29468 }
29469 }
29470 if (obj4) {
29471 arg5 = (long)SWIG_As_long(obj4);
29472 if (PyErr_Occurred()) SWIG_fail;
29473 }
29474 {
29475 if (!wxPyCheckForApp()) SWIG_fail;
29476 PyThreadState* __tstate = wxPyBeginAllowThreads();
29477 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29478
29479 wxPyEndAllowThreads(__tstate);
29480 if (PyErr_Occurred()) SWIG_fail;
29481 }
29482 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29483 return resultobj;
29484 fail:
29485 return NULL;
29486 }
29487
29488
29489 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29490 PyObject *resultobj;
29491 wxDirFilterListCtrl *result;
29492 char *kwnames[] = {
29493 NULL
29494 };
29495
29496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29497 {
29498 if (!wxPyCheckForApp()) SWIG_fail;
29499 PyThreadState* __tstate = wxPyBeginAllowThreads();
29500 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29501
29502 wxPyEndAllowThreads(__tstate);
29503 if (PyErr_Occurred()) SWIG_fail;
29504 }
29505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29506 return resultobj;
29507 fail:
29508 return NULL;
29509 }
29510
29511
29512 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29513 PyObject *resultobj;
29514 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29515 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29516 int arg3 = (int) (int)-1 ;
29517 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29518 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29519 wxSize const &arg5_defvalue = wxDefaultSize ;
29520 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29521 long arg6 = (long) 0 ;
29522 bool result;
29523 wxPoint temp4 ;
29524 wxSize temp5 ;
29525 PyObject * obj0 = 0 ;
29526 PyObject * obj1 = 0 ;
29527 PyObject * obj2 = 0 ;
29528 PyObject * obj3 = 0 ;
29529 PyObject * obj4 = 0 ;
29530 PyObject * obj5 = 0 ;
29531 char *kwnames[] = {
29532 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29533 };
29534
29535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29538 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29540 if (obj2) {
29541 arg3 = (int)SWIG_As_int(obj2);
29542 if (PyErr_Occurred()) SWIG_fail;
29543 }
29544 if (obj3) {
29545 {
29546 arg4 = &temp4;
29547 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29548 }
29549 }
29550 if (obj4) {
29551 {
29552 arg5 = &temp5;
29553 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29554 }
29555 }
29556 if (obj5) {
29557 arg6 = (long)SWIG_As_long(obj5);
29558 if (PyErr_Occurred()) SWIG_fail;
29559 }
29560 {
29561 PyThreadState* __tstate = wxPyBeginAllowThreads();
29562 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29563
29564 wxPyEndAllowThreads(__tstate);
29565 if (PyErr_Occurred()) SWIG_fail;
29566 }
29567 {
29568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29569 }
29570 return resultobj;
29571 fail:
29572 return NULL;
29573 }
29574
29575
29576 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj;
29578 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29579 wxString *arg2 = 0 ;
29580 int arg3 ;
29581 bool temp2 = false ;
29582 PyObject * obj0 = 0 ;
29583 PyObject * obj1 = 0 ;
29584 PyObject * obj2 = 0 ;
29585 char *kwnames[] = {
29586 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29587 };
29588
29589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29592 {
29593 arg2 = wxString_in_helper(obj1);
29594 if (arg2 == NULL) SWIG_fail;
29595 temp2 = true;
29596 }
29597 arg3 = (int)SWIG_As_int(obj2);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 {
29600 PyThreadState* __tstate = wxPyBeginAllowThreads();
29601 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29602
29603 wxPyEndAllowThreads(__tstate);
29604 if (PyErr_Occurred()) SWIG_fail;
29605 }
29606 Py_INCREF(Py_None); resultobj = Py_None;
29607 {
29608 if (temp2)
29609 delete arg2;
29610 }
29611 return resultobj;
29612 fail:
29613 {
29614 if (temp2)
29615 delete arg2;
29616 }
29617 return NULL;
29618 }
29619
29620
29621 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29622 PyObject *obj;
29623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29624 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29625 Py_INCREF(obj);
29626 return Py_BuildValue((char *)"");
29627 }
29628 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29629 PyObject *resultobj;
29630 wxWindow *arg1 = (wxWindow *) 0 ;
29631 int arg2 = (int) (int)-1 ;
29632 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29633 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29634 wxSize const &arg4_defvalue = wxDefaultSize ;
29635 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29636 long arg5 = (long) 0 ;
29637 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29638 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29639 wxString const &arg7_defvalue = wxPyControlNameStr ;
29640 wxString *arg7 = (wxString *) &arg7_defvalue ;
29641 wxPyControl *result;
29642 wxPoint temp3 ;
29643 wxSize temp4 ;
29644 bool temp7 = false ;
29645 PyObject * obj0 = 0 ;
29646 PyObject * obj1 = 0 ;
29647 PyObject * obj2 = 0 ;
29648 PyObject * obj3 = 0 ;
29649 PyObject * obj4 = 0 ;
29650 PyObject * obj5 = 0 ;
29651 PyObject * obj6 = 0 ;
29652 char *kwnames[] = {
29653 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29654 };
29655
29656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29659 if (obj1) {
29660 arg2 = (int)SWIG_As_int(obj1);
29661 if (PyErr_Occurred()) SWIG_fail;
29662 }
29663 if (obj2) {
29664 {
29665 arg3 = &temp3;
29666 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29667 }
29668 }
29669 if (obj3) {
29670 {
29671 arg4 = &temp4;
29672 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29673 }
29674 }
29675 if (obj4) {
29676 arg5 = (long)SWIG_As_long(obj4);
29677 if (PyErr_Occurred()) SWIG_fail;
29678 }
29679 if (obj5) {
29680 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29681 SWIG_POINTER_EXCEPTION | 0)) == -1)
29682 SWIG_fail;
29683 if (arg6 == NULL) {
29684 PyErr_SetString(PyExc_TypeError,"null reference");
29685 SWIG_fail;
29686 }
29687 }
29688 if (obj6) {
29689 {
29690 arg7 = wxString_in_helper(obj6);
29691 if (arg7 == NULL) SWIG_fail;
29692 temp7 = true;
29693 }
29694 }
29695 {
29696 if (!wxPyCheckForApp()) SWIG_fail;
29697 PyThreadState* __tstate = wxPyBeginAllowThreads();
29698 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29699
29700 wxPyEndAllowThreads(__tstate);
29701 if (PyErr_Occurred()) SWIG_fail;
29702 }
29703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29704 {
29705 if (temp7)
29706 delete arg7;
29707 }
29708 return resultobj;
29709 fail:
29710 {
29711 if (temp7)
29712 delete arg7;
29713 }
29714 return NULL;
29715 }
29716
29717
29718 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29719 PyObject *resultobj;
29720 wxPyControl *result;
29721 char *kwnames[] = {
29722 NULL
29723 };
29724
29725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29726 {
29727 if (!wxPyCheckForApp()) SWIG_fail;
29728 PyThreadState* __tstate = wxPyBeginAllowThreads();
29729 result = (wxPyControl *)new wxPyControl();
29730
29731 wxPyEndAllowThreads(__tstate);
29732 if (PyErr_Occurred()) SWIG_fail;
29733 }
29734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29735 return resultobj;
29736 fail:
29737 return NULL;
29738 }
29739
29740
29741 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29742 PyObject *resultobj;
29743 wxPyControl *arg1 = (wxPyControl *) 0 ;
29744 PyObject *arg2 = (PyObject *) 0 ;
29745 PyObject *arg3 = (PyObject *) 0 ;
29746 PyObject * obj0 = 0 ;
29747 PyObject * obj1 = 0 ;
29748 PyObject * obj2 = 0 ;
29749 char *kwnames[] = {
29750 (char *) "self",(char *) "self",(char *) "_class", NULL
29751 };
29752
29753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29756 arg2 = obj1;
29757 arg3 = obj2;
29758 {
29759 PyThreadState* __tstate = wxPyBeginAllowThreads();
29760 (arg1)->_setCallbackInfo(arg2,arg3);
29761
29762 wxPyEndAllowThreads(__tstate);
29763 if (PyErr_Occurred()) SWIG_fail;
29764 }
29765 Py_INCREF(Py_None); resultobj = Py_None;
29766 return resultobj;
29767 fail:
29768 return NULL;
29769 }
29770
29771
29772 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29773 PyObject *resultobj;
29774 wxPyControl *arg1 = (wxPyControl *) 0 ;
29775 wxSize *arg2 = 0 ;
29776 wxSize temp2 ;
29777 PyObject * obj0 = 0 ;
29778 PyObject * obj1 = 0 ;
29779 char *kwnames[] = {
29780 (char *) "self",(char *) "size", NULL
29781 };
29782
29783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29786 {
29787 arg2 = &temp2;
29788 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29789 }
29790 {
29791 PyThreadState* __tstate = wxPyBeginAllowThreads();
29792 (arg1)->SetBestSize((wxSize const &)*arg2);
29793
29794 wxPyEndAllowThreads(__tstate);
29795 if (PyErr_Occurred()) SWIG_fail;
29796 }
29797 Py_INCREF(Py_None); resultobj = Py_None;
29798 return resultobj;
29799 fail:
29800 return NULL;
29801 }
29802
29803
29804 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29805 PyObject *resultobj;
29806 wxPyControl *arg1 = (wxPyControl *) 0 ;
29807 int arg2 ;
29808 int arg3 ;
29809 int arg4 ;
29810 int arg5 ;
29811 PyObject * obj0 = 0 ;
29812 PyObject * obj1 = 0 ;
29813 PyObject * obj2 = 0 ;
29814 PyObject * obj3 = 0 ;
29815 PyObject * obj4 = 0 ;
29816 char *kwnames[] = {
29817 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29818 };
29819
29820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29823 arg2 = (int)SWIG_As_int(obj1);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 arg3 = (int)SWIG_As_int(obj2);
29826 if (PyErr_Occurred()) SWIG_fail;
29827 arg4 = (int)SWIG_As_int(obj3);
29828 if (PyErr_Occurred()) SWIG_fail;
29829 arg5 = (int)SWIG_As_int(obj4);
29830 if (PyErr_Occurred()) SWIG_fail;
29831 {
29832 PyThreadState* __tstate = wxPyBeginAllowThreads();
29833 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29834
29835 wxPyEndAllowThreads(__tstate);
29836 if (PyErr_Occurred()) SWIG_fail;
29837 }
29838 Py_INCREF(Py_None); resultobj = Py_None;
29839 return resultobj;
29840 fail:
29841 return NULL;
29842 }
29843
29844
29845 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29846 PyObject *resultobj;
29847 wxPyControl *arg1 = (wxPyControl *) 0 ;
29848 int arg2 ;
29849 int arg3 ;
29850 int arg4 ;
29851 int arg5 ;
29852 int arg6 = (int) wxSIZE_AUTO ;
29853 PyObject * obj0 = 0 ;
29854 PyObject * obj1 = 0 ;
29855 PyObject * obj2 = 0 ;
29856 PyObject * obj3 = 0 ;
29857 PyObject * obj4 = 0 ;
29858 PyObject * obj5 = 0 ;
29859 char *kwnames[] = {
29860 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29861 };
29862
29863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29866 arg2 = (int)SWIG_As_int(obj1);
29867 if (PyErr_Occurred()) SWIG_fail;
29868 arg3 = (int)SWIG_As_int(obj2);
29869 if (PyErr_Occurred()) SWIG_fail;
29870 arg4 = (int)SWIG_As_int(obj3);
29871 if (PyErr_Occurred()) SWIG_fail;
29872 arg5 = (int)SWIG_As_int(obj4);
29873 if (PyErr_Occurred()) SWIG_fail;
29874 if (obj5) {
29875 arg6 = (int)SWIG_As_int(obj5);
29876 if (PyErr_Occurred()) SWIG_fail;
29877 }
29878 {
29879 PyThreadState* __tstate = wxPyBeginAllowThreads();
29880 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29881
29882 wxPyEndAllowThreads(__tstate);
29883 if (PyErr_Occurred()) SWIG_fail;
29884 }
29885 Py_INCREF(Py_None); resultobj = Py_None;
29886 return resultobj;
29887 fail:
29888 return NULL;
29889 }
29890
29891
29892 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29893 PyObject *resultobj;
29894 wxPyControl *arg1 = (wxPyControl *) 0 ;
29895 int arg2 ;
29896 int arg3 ;
29897 PyObject * obj0 = 0 ;
29898 PyObject * obj1 = 0 ;
29899 PyObject * obj2 = 0 ;
29900 char *kwnames[] = {
29901 (char *) "self",(char *) "width",(char *) "height", NULL
29902 };
29903
29904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29907 arg2 = (int)SWIG_As_int(obj1);
29908 if (PyErr_Occurred()) SWIG_fail;
29909 arg3 = (int)SWIG_As_int(obj2);
29910 if (PyErr_Occurred()) SWIG_fail;
29911 {
29912 PyThreadState* __tstate = wxPyBeginAllowThreads();
29913 (arg1)->base_DoSetClientSize(arg2,arg3);
29914
29915 wxPyEndAllowThreads(__tstate);
29916 if (PyErr_Occurred()) SWIG_fail;
29917 }
29918 Py_INCREF(Py_None); resultobj = Py_None;
29919 return resultobj;
29920 fail:
29921 return NULL;
29922 }
29923
29924
29925 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29926 PyObject *resultobj;
29927 wxPyControl *arg1 = (wxPyControl *) 0 ;
29928 int arg2 ;
29929 int arg3 ;
29930 PyObject * obj0 = 0 ;
29931 PyObject * obj1 = 0 ;
29932 PyObject * obj2 = 0 ;
29933 char *kwnames[] = {
29934 (char *) "self",(char *) "x",(char *) "y", NULL
29935 };
29936
29937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29940 arg2 = (int)SWIG_As_int(obj1);
29941 if (PyErr_Occurred()) SWIG_fail;
29942 arg3 = (int)SWIG_As_int(obj2);
29943 if (PyErr_Occurred()) SWIG_fail;
29944 {
29945 PyThreadState* __tstate = wxPyBeginAllowThreads();
29946 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29947
29948 wxPyEndAllowThreads(__tstate);
29949 if (PyErr_Occurred()) SWIG_fail;
29950 }
29951 Py_INCREF(Py_None); resultobj = Py_None;
29952 return resultobj;
29953 fail:
29954 return NULL;
29955 }
29956
29957
29958 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29959 PyObject *resultobj;
29960 wxPyControl *arg1 = (wxPyControl *) 0 ;
29961 int *arg2 = (int *) 0 ;
29962 int *arg3 = (int *) 0 ;
29963 int temp2 ;
29964 int res2 = 0 ;
29965 int temp3 ;
29966 int res3 = 0 ;
29967 PyObject * obj0 = 0 ;
29968 char *kwnames[] = {
29969 (char *) "self", NULL
29970 };
29971
29972 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29973 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29977 {
29978 PyThreadState* __tstate = wxPyBeginAllowThreads();
29979 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29980
29981 wxPyEndAllowThreads(__tstate);
29982 if (PyErr_Occurred()) SWIG_fail;
29983 }
29984 Py_INCREF(Py_None); resultobj = Py_None;
29985 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29986 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29987 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29988 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29989 return resultobj;
29990 fail:
29991 return NULL;
29992 }
29993
29994
29995 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29996 PyObject *resultobj;
29997 wxPyControl *arg1 = (wxPyControl *) 0 ;
29998 int *arg2 = (int *) 0 ;
29999 int *arg3 = (int *) 0 ;
30000 int temp2 ;
30001 int res2 = 0 ;
30002 int temp3 ;
30003 int res3 = 0 ;
30004 PyObject * obj0 = 0 ;
30005 char *kwnames[] = {
30006 (char *) "self", NULL
30007 };
30008
30009 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30010 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
30012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30014 {
30015 PyThreadState* __tstate = wxPyBeginAllowThreads();
30016 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
30017
30018 wxPyEndAllowThreads(__tstate);
30019 if (PyErr_Occurred()) SWIG_fail;
30020 }
30021 Py_INCREF(Py_None); resultobj = Py_None;
30022 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30023 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30024 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30025 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30026 return resultobj;
30027 fail:
30028 return NULL;
30029 }
30030
30031
30032 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30033 PyObject *resultobj;
30034 wxPyControl *arg1 = (wxPyControl *) 0 ;
30035 int *arg2 = (int *) 0 ;
30036 int *arg3 = (int *) 0 ;
30037 int temp2 ;
30038 int res2 = 0 ;
30039 int temp3 ;
30040 int res3 = 0 ;
30041 PyObject * obj0 = 0 ;
30042 char *kwnames[] = {
30043 (char *) "self", NULL
30044 };
30045
30046 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30047 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
30049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30051 {
30052 PyThreadState* __tstate = wxPyBeginAllowThreads();
30053 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
30054
30055 wxPyEndAllowThreads(__tstate);
30056 if (PyErr_Occurred()) SWIG_fail;
30057 }
30058 Py_INCREF(Py_None); resultobj = Py_None;
30059 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30060 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30061 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30062 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30063 return resultobj;
30064 fail:
30065 return NULL;
30066 }
30067
30068
30069 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
30070 PyObject *resultobj;
30071 wxPyControl *arg1 = (wxPyControl *) 0 ;
30072 wxSize result;
30073 PyObject * obj0 = 0 ;
30074 char *kwnames[] = {
30075 (char *) "self", NULL
30076 };
30077
30078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
30079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30081 {
30082 PyThreadState* __tstate = wxPyBeginAllowThreads();
30083 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
30084
30085 wxPyEndAllowThreads(__tstate);
30086 if (PyErr_Occurred()) SWIG_fail;
30087 }
30088 {
30089 wxSize * resultptr;
30090 resultptr = new wxSize((wxSize &) result);
30091 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30092 }
30093 return resultobj;
30094 fail:
30095 return NULL;
30096 }
30097
30098
30099 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
30100 PyObject *resultobj;
30101 wxPyControl *arg1 = (wxPyControl *) 0 ;
30102 wxSize result;
30103 PyObject * obj0 = 0 ;
30104 char *kwnames[] = {
30105 (char *) "self", NULL
30106 };
30107
30108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
30109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30111 {
30112 PyThreadState* __tstate = wxPyBeginAllowThreads();
30113 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
30114
30115 wxPyEndAllowThreads(__tstate);
30116 if (PyErr_Occurred()) SWIG_fail;
30117 }
30118 {
30119 wxSize * resultptr;
30120 resultptr = new wxSize((wxSize &) result);
30121 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30122 }
30123 return resultobj;
30124 fail:
30125 return NULL;
30126 }
30127
30128
30129 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
30130 PyObject *resultobj;
30131 wxPyControl *arg1 = (wxPyControl *) 0 ;
30132 PyObject * obj0 = 0 ;
30133 char *kwnames[] = {
30134 (char *) "self", NULL
30135 };
30136
30137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
30138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30140 {
30141 PyThreadState* __tstate = wxPyBeginAllowThreads();
30142 (arg1)->base_InitDialog();
30143
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 Py_INCREF(Py_None); resultobj = Py_None;
30148 return resultobj;
30149 fail:
30150 return NULL;
30151 }
30152
30153
30154 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30155 PyObject *resultobj;
30156 wxPyControl *arg1 = (wxPyControl *) 0 ;
30157 bool result;
30158 PyObject * obj0 = 0 ;
30159 char *kwnames[] = {
30160 (char *) "self", NULL
30161 };
30162
30163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
30164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30166 {
30167 PyThreadState* __tstate = wxPyBeginAllowThreads();
30168 result = (bool)(arg1)->base_TransferDataToWindow();
30169
30170 wxPyEndAllowThreads(__tstate);
30171 if (PyErr_Occurred()) SWIG_fail;
30172 }
30173 {
30174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30175 }
30176 return resultobj;
30177 fail:
30178 return NULL;
30179 }
30180
30181
30182 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30183 PyObject *resultobj;
30184 wxPyControl *arg1 = (wxPyControl *) 0 ;
30185 bool result;
30186 PyObject * obj0 = 0 ;
30187 char *kwnames[] = {
30188 (char *) "self", NULL
30189 };
30190
30191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
30192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30194 {
30195 PyThreadState* __tstate = wxPyBeginAllowThreads();
30196 result = (bool)(arg1)->base_TransferDataFromWindow();
30197
30198 wxPyEndAllowThreads(__tstate);
30199 if (PyErr_Occurred()) SWIG_fail;
30200 }
30201 {
30202 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30203 }
30204 return resultobj;
30205 fail:
30206 return NULL;
30207 }
30208
30209
30210 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
30211 PyObject *resultobj;
30212 wxPyControl *arg1 = (wxPyControl *) 0 ;
30213 bool result;
30214 PyObject * obj0 = 0 ;
30215 char *kwnames[] = {
30216 (char *) "self", NULL
30217 };
30218
30219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
30220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30222 {
30223 PyThreadState* __tstate = wxPyBeginAllowThreads();
30224 result = (bool)(arg1)->base_Validate();
30225
30226 wxPyEndAllowThreads(__tstate);
30227 if (PyErr_Occurred()) SWIG_fail;
30228 }
30229 {
30230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30231 }
30232 return resultobj;
30233 fail:
30234 return NULL;
30235 }
30236
30237
30238 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
30239 PyObject *resultobj;
30240 wxPyControl *arg1 = (wxPyControl *) 0 ;
30241 bool result;
30242 PyObject * obj0 = 0 ;
30243 char *kwnames[] = {
30244 (char *) "self", NULL
30245 };
30246
30247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
30248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30250 {
30251 PyThreadState* __tstate = wxPyBeginAllowThreads();
30252 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
30253
30254 wxPyEndAllowThreads(__tstate);
30255 if (PyErr_Occurred()) SWIG_fail;
30256 }
30257 {
30258 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30259 }
30260 return resultobj;
30261 fail:
30262 return NULL;
30263 }
30264
30265
30266 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
30267 PyObject *resultobj;
30268 wxPyControl *arg1 = (wxPyControl *) 0 ;
30269 bool result;
30270 PyObject * obj0 = 0 ;
30271 char *kwnames[] = {
30272 (char *) "self", NULL
30273 };
30274
30275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30278 {
30279 PyThreadState* __tstate = wxPyBeginAllowThreads();
30280 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30281
30282 wxPyEndAllowThreads(__tstate);
30283 if (PyErr_Occurred()) SWIG_fail;
30284 }
30285 {
30286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30287 }
30288 return resultobj;
30289 fail:
30290 return NULL;
30291 }
30292
30293
30294 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30295 PyObject *resultobj;
30296 wxPyControl *arg1 = (wxPyControl *) 0 ;
30297 wxSize result;
30298 PyObject * obj0 = 0 ;
30299 char *kwnames[] = {
30300 (char *) "self", NULL
30301 };
30302
30303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30306 {
30307 PyThreadState* __tstate = wxPyBeginAllowThreads();
30308 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30309
30310 wxPyEndAllowThreads(__tstate);
30311 if (PyErr_Occurred()) SWIG_fail;
30312 }
30313 {
30314 wxSize * resultptr;
30315 resultptr = new wxSize((wxSize &) result);
30316 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30317 }
30318 return resultobj;
30319 fail:
30320 return NULL;
30321 }
30322
30323
30324 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30325 PyObject *resultobj;
30326 wxPyControl *arg1 = (wxPyControl *) 0 ;
30327 wxWindow *arg2 = (wxWindow *) 0 ;
30328 PyObject * obj0 = 0 ;
30329 PyObject * obj1 = 0 ;
30330 char *kwnames[] = {
30331 (char *) "self",(char *) "child", NULL
30332 };
30333
30334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30337 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30339 {
30340 PyThreadState* __tstate = wxPyBeginAllowThreads();
30341 (arg1)->base_AddChild(arg2);
30342
30343 wxPyEndAllowThreads(__tstate);
30344 if (PyErr_Occurred()) SWIG_fail;
30345 }
30346 Py_INCREF(Py_None); resultobj = Py_None;
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj;
30355 wxPyControl *arg1 = (wxPyControl *) 0 ;
30356 wxWindow *arg2 = (wxWindow *) 0 ;
30357 PyObject * obj0 = 0 ;
30358 PyObject * obj1 = 0 ;
30359 char *kwnames[] = {
30360 (char *) "self",(char *) "child", NULL
30361 };
30362
30363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30366 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30368 {
30369 PyThreadState* __tstate = wxPyBeginAllowThreads();
30370 (arg1)->base_RemoveChild(arg2);
30371
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 Py_INCREF(Py_None); resultobj = Py_None;
30376 return resultobj;
30377 fail:
30378 return NULL;
30379 }
30380
30381
30382 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30383 PyObject *resultobj;
30384 wxPyControl *arg1 = (wxPyControl *) 0 ;
30385 bool result;
30386 PyObject * obj0 = 0 ;
30387 char *kwnames[] = {
30388 (char *) "self", NULL
30389 };
30390
30391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30394 {
30395 PyThreadState* __tstate = wxPyBeginAllowThreads();
30396 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30397
30398 wxPyEndAllowThreads(__tstate);
30399 if (PyErr_Occurred()) SWIG_fail;
30400 }
30401 {
30402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30403 }
30404 return resultobj;
30405 fail:
30406 return NULL;
30407 }
30408
30409
30410 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30411 PyObject *resultobj;
30412 wxPyControl *arg1 = (wxPyControl *) 0 ;
30413 wxColour *arg2 = 0 ;
30414 wxColour temp2 ;
30415 PyObject * obj0 = 0 ;
30416 PyObject * obj1 = 0 ;
30417 char *kwnames[] = {
30418 (char *) "self",(char *) "c", NULL
30419 };
30420
30421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30424 {
30425 arg2 = &temp2;
30426 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30427 }
30428 {
30429 PyThreadState* __tstate = wxPyBeginAllowThreads();
30430 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30431
30432 wxPyEndAllowThreads(__tstate);
30433 if (PyErr_Occurred()) SWIG_fail;
30434 }
30435 Py_INCREF(Py_None); resultobj = Py_None;
30436 return resultobj;
30437 fail:
30438 return NULL;
30439 }
30440
30441
30442 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30443 PyObject *resultobj;
30444 wxPyControl *arg1 = (wxPyControl *) 0 ;
30445 wxVisualAttributes result;
30446 PyObject * obj0 = 0 ;
30447 char *kwnames[] = {
30448 (char *) "self", NULL
30449 };
30450
30451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30454 {
30455 PyThreadState* __tstate = wxPyBeginAllowThreads();
30456 result = (arg1)->base_GetDefaultAttributes();
30457
30458 wxPyEndAllowThreads(__tstate);
30459 if (PyErr_Occurred()) SWIG_fail;
30460 }
30461 {
30462 wxVisualAttributes * resultptr;
30463 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30465 }
30466 return resultobj;
30467 fail:
30468 return NULL;
30469 }
30470
30471
30472 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30473 PyObject *obj;
30474 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30475 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30476 Py_INCREF(obj);
30477 return Py_BuildValue((char *)"");
30478 }
30479 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30480 PyObject *resultobj;
30481 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30482 int arg2 = (int) 0 ;
30483 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30484 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30485 wxHelpEvent *result;
30486 wxPoint temp3 ;
30487 PyObject * obj0 = 0 ;
30488 PyObject * obj1 = 0 ;
30489 PyObject * obj2 = 0 ;
30490 char *kwnames[] = {
30491 (char *) "type",(char *) "winid",(char *) "pt", NULL
30492 };
30493
30494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30495 if (obj0) {
30496 arg1 = (wxEventType)SWIG_As_int(obj0);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 if (obj1) {
30500 arg2 = (int)SWIG_As_int(obj1);
30501 if (PyErr_Occurred()) SWIG_fail;
30502 }
30503 if (obj2) {
30504 {
30505 arg3 = &temp3;
30506 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30507 }
30508 }
30509 {
30510 PyThreadState* __tstate = wxPyBeginAllowThreads();
30511 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30512
30513 wxPyEndAllowThreads(__tstate);
30514 if (PyErr_Occurred()) SWIG_fail;
30515 }
30516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30517 return resultobj;
30518 fail:
30519 return NULL;
30520 }
30521
30522
30523 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30524 PyObject *resultobj;
30525 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30526 wxPoint result;
30527 PyObject * obj0 = 0 ;
30528 char *kwnames[] = {
30529 (char *) "self", NULL
30530 };
30531
30532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30535 {
30536 PyThreadState* __tstate = wxPyBeginAllowThreads();
30537 result = ((wxHelpEvent const *)arg1)->GetPosition();
30538
30539 wxPyEndAllowThreads(__tstate);
30540 if (PyErr_Occurred()) SWIG_fail;
30541 }
30542 {
30543 wxPoint * resultptr;
30544 resultptr = new wxPoint((wxPoint &) result);
30545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30546 }
30547 return resultobj;
30548 fail:
30549 return NULL;
30550 }
30551
30552
30553 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30554 PyObject *resultobj;
30555 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30556 wxPoint *arg2 = 0 ;
30557 wxPoint temp2 ;
30558 PyObject * obj0 = 0 ;
30559 PyObject * obj1 = 0 ;
30560 char *kwnames[] = {
30561 (char *) "self",(char *) "pos", NULL
30562 };
30563
30564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30567 {
30568 arg2 = &temp2;
30569 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30570 }
30571 {
30572 PyThreadState* __tstate = wxPyBeginAllowThreads();
30573 (arg1)->SetPosition((wxPoint const &)*arg2);
30574
30575 wxPyEndAllowThreads(__tstate);
30576 if (PyErr_Occurred()) SWIG_fail;
30577 }
30578 Py_INCREF(Py_None); resultobj = Py_None;
30579 return resultobj;
30580 fail:
30581 return NULL;
30582 }
30583
30584
30585 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30586 PyObject *resultobj;
30587 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30588 wxString *result;
30589 PyObject * obj0 = 0 ;
30590 char *kwnames[] = {
30591 (char *) "self", NULL
30592 };
30593
30594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30597 {
30598 PyThreadState* __tstate = wxPyBeginAllowThreads();
30599 {
30600 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30601 result = (wxString *) &_result_ref;
30602 }
30603
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 {
30608 #if wxUSE_UNICODE
30609 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30610 #else
30611 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30612 #endif
30613 }
30614 return resultobj;
30615 fail:
30616 return NULL;
30617 }
30618
30619
30620 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30621 PyObject *resultobj;
30622 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30623 wxString *arg2 = 0 ;
30624 bool temp2 = false ;
30625 PyObject * obj0 = 0 ;
30626 PyObject * obj1 = 0 ;
30627 char *kwnames[] = {
30628 (char *) "self",(char *) "link", NULL
30629 };
30630
30631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30634 {
30635 arg2 = wxString_in_helper(obj1);
30636 if (arg2 == NULL) SWIG_fail;
30637 temp2 = true;
30638 }
30639 {
30640 PyThreadState* __tstate = wxPyBeginAllowThreads();
30641 (arg1)->SetLink((wxString const &)*arg2);
30642
30643 wxPyEndAllowThreads(__tstate);
30644 if (PyErr_Occurred()) SWIG_fail;
30645 }
30646 Py_INCREF(Py_None); resultobj = Py_None;
30647 {
30648 if (temp2)
30649 delete arg2;
30650 }
30651 return resultobj;
30652 fail:
30653 {
30654 if (temp2)
30655 delete arg2;
30656 }
30657 return NULL;
30658 }
30659
30660
30661 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30662 PyObject *resultobj;
30663 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30664 wxString *result;
30665 PyObject * obj0 = 0 ;
30666 char *kwnames[] = {
30667 (char *) "self", NULL
30668 };
30669
30670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30673 {
30674 PyThreadState* __tstate = wxPyBeginAllowThreads();
30675 {
30676 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30677 result = (wxString *) &_result_ref;
30678 }
30679
30680 wxPyEndAllowThreads(__tstate);
30681 if (PyErr_Occurred()) SWIG_fail;
30682 }
30683 {
30684 #if wxUSE_UNICODE
30685 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30686 #else
30687 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30688 #endif
30689 }
30690 return resultobj;
30691 fail:
30692 return NULL;
30693 }
30694
30695
30696 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30697 PyObject *resultobj;
30698 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30699 wxString *arg2 = 0 ;
30700 bool temp2 = false ;
30701 PyObject * obj0 = 0 ;
30702 PyObject * obj1 = 0 ;
30703 char *kwnames[] = {
30704 (char *) "self",(char *) "target", NULL
30705 };
30706
30707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30710 {
30711 arg2 = wxString_in_helper(obj1);
30712 if (arg2 == NULL) SWIG_fail;
30713 temp2 = true;
30714 }
30715 {
30716 PyThreadState* __tstate = wxPyBeginAllowThreads();
30717 (arg1)->SetTarget((wxString const &)*arg2);
30718
30719 wxPyEndAllowThreads(__tstate);
30720 if (PyErr_Occurred()) SWIG_fail;
30721 }
30722 Py_INCREF(Py_None); resultobj = Py_None;
30723 {
30724 if (temp2)
30725 delete arg2;
30726 }
30727 return resultobj;
30728 fail:
30729 {
30730 if (temp2)
30731 delete arg2;
30732 }
30733 return NULL;
30734 }
30735
30736
30737 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30738 PyObject *obj;
30739 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30740 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30741 Py_INCREF(obj);
30742 return Py_BuildValue((char *)"");
30743 }
30744 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30745 PyObject *resultobj;
30746 wxWindow *arg1 = (wxWindow *) NULL ;
30747 bool arg2 = (bool) true ;
30748 wxContextHelp *result;
30749 PyObject * obj0 = 0 ;
30750 PyObject * obj1 = 0 ;
30751 char *kwnames[] = {
30752 (char *) "window",(char *) "doNow", NULL
30753 };
30754
30755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30756 if (obj0) {
30757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30759 }
30760 if (obj1) {
30761 arg2 = (bool)SWIG_As_bool(obj1);
30762 if (PyErr_Occurred()) SWIG_fail;
30763 }
30764 {
30765 if (!wxPyCheckForApp()) SWIG_fail;
30766 PyThreadState* __tstate = wxPyBeginAllowThreads();
30767 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30768
30769 wxPyEndAllowThreads(__tstate);
30770 if (PyErr_Occurred()) SWIG_fail;
30771 }
30772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30773 return resultobj;
30774 fail:
30775 return NULL;
30776 }
30777
30778
30779 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30780 PyObject *resultobj;
30781 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30782 PyObject * obj0 = 0 ;
30783 char *kwnames[] = {
30784 (char *) "self", NULL
30785 };
30786
30787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30790 {
30791 PyThreadState* __tstate = wxPyBeginAllowThreads();
30792 delete arg1;
30793
30794 wxPyEndAllowThreads(__tstate);
30795 if (PyErr_Occurred()) SWIG_fail;
30796 }
30797 Py_INCREF(Py_None); resultobj = Py_None;
30798 return resultobj;
30799 fail:
30800 return NULL;
30801 }
30802
30803
30804 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30805 PyObject *resultobj;
30806 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30807 wxWindow *arg2 = (wxWindow *) NULL ;
30808 bool result;
30809 PyObject * obj0 = 0 ;
30810 PyObject * obj1 = 0 ;
30811 char *kwnames[] = {
30812 (char *) "self",(char *) "window", NULL
30813 };
30814
30815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30818 if (obj1) {
30819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30821 }
30822 {
30823 PyThreadState* __tstate = wxPyBeginAllowThreads();
30824 result = (bool)(arg1)->BeginContextHelp(arg2);
30825
30826 wxPyEndAllowThreads(__tstate);
30827 if (PyErr_Occurred()) SWIG_fail;
30828 }
30829 {
30830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30831 }
30832 return resultobj;
30833 fail:
30834 return NULL;
30835 }
30836
30837
30838 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30839 PyObject *resultobj;
30840 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30841 bool result;
30842 PyObject * obj0 = 0 ;
30843 char *kwnames[] = {
30844 (char *) "self", NULL
30845 };
30846
30847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30850 {
30851 PyThreadState* __tstate = wxPyBeginAllowThreads();
30852 result = (bool)(arg1)->EndContextHelp();
30853
30854 wxPyEndAllowThreads(__tstate);
30855 if (PyErr_Occurred()) SWIG_fail;
30856 }
30857 {
30858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30859 }
30860 return resultobj;
30861 fail:
30862 return NULL;
30863 }
30864
30865
30866 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30867 PyObject *obj;
30868 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30869 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30870 Py_INCREF(obj);
30871 return Py_BuildValue((char *)"");
30872 }
30873 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30874 PyObject *resultobj;
30875 wxWindow *arg1 = (wxWindow *) 0 ;
30876 int arg2 = (int) wxID_CONTEXT_HELP ;
30877 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30878 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30879 wxSize const &arg4_defvalue = wxDefaultSize ;
30880 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30881 long arg5 = (long) wxBU_AUTODRAW ;
30882 wxContextHelpButton *result;
30883 wxPoint temp3 ;
30884 wxSize temp4 ;
30885 PyObject * obj0 = 0 ;
30886 PyObject * obj1 = 0 ;
30887 PyObject * obj2 = 0 ;
30888 PyObject * obj3 = 0 ;
30889 PyObject * obj4 = 0 ;
30890 char *kwnames[] = {
30891 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30892 };
30893
30894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30897 if (obj1) {
30898 arg2 = (int)SWIG_As_int(obj1);
30899 if (PyErr_Occurred()) SWIG_fail;
30900 }
30901 if (obj2) {
30902 {
30903 arg3 = &temp3;
30904 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30905 }
30906 }
30907 if (obj3) {
30908 {
30909 arg4 = &temp4;
30910 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30911 }
30912 }
30913 if (obj4) {
30914 arg5 = (long)SWIG_As_long(obj4);
30915 if (PyErr_Occurred()) SWIG_fail;
30916 }
30917 {
30918 if (!wxPyCheckForApp()) SWIG_fail;
30919 PyThreadState* __tstate = wxPyBeginAllowThreads();
30920 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30921
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30933 PyObject *obj;
30934 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30935 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30936 Py_INCREF(obj);
30937 return Py_BuildValue((char *)"");
30938 }
30939 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30940 PyObject *resultobj;
30941 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30942 wxHelpProvider *result;
30943 PyObject * obj0 = 0 ;
30944 char *kwnames[] = {
30945 (char *) "helpProvider", NULL
30946 };
30947
30948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30951 {
30952 PyThreadState* __tstate = wxPyBeginAllowThreads();
30953 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30954
30955 wxPyEndAllowThreads(__tstate);
30956 if (PyErr_Occurred()) SWIG_fail;
30957 }
30958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30959 return resultobj;
30960 fail:
30961 return NULL;
30962 }
30963
30964
30965 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30966 PyObject *resultobj;
30967 wxHelpProvider *result;
30968 char *kwnames[] = {
30969 NULL
30970 };
30971
30972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30973 {
30974 PyThreadState* __tstate = wxPyBeginAllowThreads();
30975 result = (wxHelpProvider *)wxHelpProvider::Get();
30976
30977 wxPyEndAllowThreads(__tstate);
30978 if (PyErr_Occurred()) SWIG_fail;
30979 }
30980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30981 return resultobj;
30982 fail:
30983 return NULL;
30984 }
30985
30986
30987 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30988 PyObject *resultobj;
30989 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30990 wxWindow *arg2 = (wxWindow *) 0 ;
30991 wxString result;
30992 PyObject * obj0 = 0 ;
30993 PyObject * obj1 = 0 ;
30994 char *kwnames[] = {
30995 (char *) "self",(char *) "window", NULL
30996 };
30997
30998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31003 {
31004 PyThreadState* __tstate = wxPyBeginAllowThreads();
31005 result = (arg1)->GetHelp((wxWindow const *)arg2);
31006
31007 wxPyEndAllowThreads(__tstate);
31008 if (PyErr_Occurred()) SWIG_fail;
31009 }
31010 {
31011 #if wxUSE_UNICODE
31012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31013 #else
31014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31015 #endif
31016 }
31017 return resultobj;
31018 fail:
31019 return NULL;
31020 }
31021
31022
31023 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31024 PyObject *resultobj;
31025 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31026 wxWindow *arg2 = (wxWindow *) 0 ;
31027 bool result;
31028 PyObject * obj0 = 0 ;
31029 PyObject * obj1 = 0 ;
31030 char *kwnames[] = {
31031 (char *) "self",(char *) "window", NULL
31032 };
31033
31034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
31035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31039 {
31040 PyThreadState* __tstate = wxPyBeginAllowThreads();
31041 result = (bool)(arg1)->ShowHelp(arg2);
31042
31043 wxPyEndAllowThreads(__tstate);
31044 if (PyErr_Occurred()) SWIG_fail;
31045 }
31046 {
31047 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31048 }
31049 return resultobj;
31050 fail:
31051 return NULL;
31052 }
31053
31054
31055 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31056 PyObject *resultobj;
31057 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31058 wxWindow *arg2 = (wxWindow *) 0 ;
31059 wxString *arg3 = 0 ;
31060 bool temp3 = false ;
31061 PyObject * obj0 = 0 ;
31062 PyObject * obj1 = 0 ;
31063 PyObject * obj2 = 0 ;
31064 char *kwnames[] = {
31065 (char *) "self",(char *) "window",(char *) "text", NULL
31066 };
31067
31068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
31069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31073 {
31074 arg3 = wxString_in_helper(obj2);
31075 if (arg3 == NULL) SWIG_fail;
31076 temp3 = true;
31077 }
31078 {
31079 PyThreadState* __tstate = wxPyBeginAllowThreads();
31080 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31081
31082 wxPyEndAllowThreads(__tstate);
31083 if (PyErr_Occurred()) SWIG_fail;
31084 }
31085 Py_INCREF(Py_None); resultobj = Py_None;
31086 {
31087 if (temp3)
31088 delete arg3;
31089 }
31090 return resultobj;
31091 fail:
31092 {
31093 if (temp3)
31094 delete arg3;
31095 }
31096 return NULL;
31097 }
31098
31099
31100 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
31101 PyObject *resultobj;
31102 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31103 int arg2 ;
31104 wxString *arg3 = 0 ;
31105 bool temp3 = false ;
31106 PyObject * obj0 = 0 ;
31107 PyObject * obj1 = 0 ;
31108 PyObject * obj2 = 0 ;
31109 char *kwnames[] = {
31110 (char *) "self",(char *) "id",(char *) "text", NULL
31111 };
31112
31113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
31114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31116 arg2 = (int)SWIG_As_int(obj1);
31117 if (PyErr_Occurred()) SWIG_fail;
31118 {
31119 arg3 = wxString_in_helper(obj2);
31120 if (arg3 == NULL) SWIG_fail;
31121 temp3 = true;
31122 }
31123 {
31124 PyThreadState* __tstate = wxPyBeginAllowThreads();
31125 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31126
31127 wxPyEndAllowThreads(__tstate);
31128 if (PyErr_Occurred()) SWIG_fail;
31129 }
31130 Py_INCREF(Py_None); resultobj = Py_None;
31131 {
31132 if (temp3)
31133 delete arg3;
31134 }
31135 return resultobj;
31136 fail:
31137 {
31138 if (temp3)
31139 delete arg3;
31140 }
31141 return NULL;
31142 }
31143
31144
31145 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31146 PyObject *resultobj;
31147 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31148 wxWindow *arg2 = (wxWindow *) 0 ;
31149 PyObject * obj0 = 0 ;
31150 PyObject * obj1 = 0 ;
31151 char *kwnames[] = {
31152 (char *) "self",(char *) "window", NULL
31153 };
31154
31155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
31156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31160 {
31161 PyThreadState* __tstate = wxPyBeginAllowThreads();
31162 (arg1)->RemoveHelp(arg2);
31163
31164 wxPyEndAllowThreads(__tstate);
31165 if (PyErr_Occurred()) SWIG_fail;
31166 }
31167 Py_INCREF(Py_None); resultobj = Py_None;
31168 return resultobj;
31169 fail:
31170 return NULL;
31171 }
31172
31173
31174 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
31175 PyObject *resultobj;
31176 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31177 PyObject * obj0 = 0 ;
31178 char *kwnames[] = {
31179 (char *) "self", NULL
31180 };
31181
31182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
31183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31185 {
31186 PyThreadState* __tstate = wxPyBeginAllowThreads();
31187 wxHelpProvider_Destroy(arg1);
31188
31189 wxPyEndAllowThreads(__tstate);
31190 if (PyErr_Occurred()) SWIG_fail;
31191 }
31192 Py_INCREF(Py_None); resultobj = Py_None;
31193 return resultobj;
31194 fail:
31195 return NULL;
31196 }
31197
31198
31199 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
31200 PyObject *obj;
31201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31202 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
31203 Py_INCREF(obj);
31204 return Py_BuildValue((char *)"");
31205 }
31206 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
31207 PyObject *resultobj;
31208 wxSimpleHelpProvider *result;
31209 char *kwnames[] = {
31210 NULL
31211 };
31212
31213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
31216 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
31217
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
31222 return resultobj;
31223 fail:
31224 return NULL;
31225 }
31226
31227
31228 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
31229 PyObject *obj;
31230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31231 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
31232 Py_INCREF(obj);
31233 return Py_BuildValue((char *)"");
31234 }
31235 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31236 PyObject *resultobj;
31237 wxBitmap *arg1 = 0 ;
31238 wxCursor const &arg2_defvalue = wxNullCursor ;
31239 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31240 wxGenericDragImage *result;
31241 PyObject * obj0 = 0 ;
31242 PyObject * obj1 = 0 ;
31243 char *kwnames[] = {
31244 (char *) "image",(char *) "cursor", NULL
31245 };
31246
31247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
31248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
31249 SWIG_POINTER_EXCEPTION | 0)) == -1)
31250 SWIG_fail;
31251 if (arg1 == NULL) {
31252 PyErr_SetString(PyExc_TypeError,"null reference");
31253 SWIG_fail;
31254 }
31255 if (obj1) {
31256 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31257 SWIG_POINTER_EXCEPTION | 0)) == -1)
31258 SWIG_fail;
31259 if (arg2 == NULL) {
31260 PyErr_SetString(PyExc_TypeError,"null reference");
31261 SWIG_fail;
31262 }
31263 }
31264 {
31265 if (!wxPyCheckForApp()) SWIG_fail;
31266 PyThreadState* __tstate = wxPyBeginAllowThreads();
31267 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
31268
31269 wxPyEndAllowThreads(__tstate);
31270 if (PyErr_Occurred()) SWIG_fail;
31271 }
31272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31273 return resultobj;
31274 fail:
31275 return NULL;
31276 }
31277
31278
31279 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31280 PyObject *resultobj;
31281 wxIcon *arg1 = 0 ;
31282 wxCursor const &arg2_defvalue = wxNullCursor ;
31283 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31284 wxGenericDragImage *result;
31285 PyObject * obj0 = 0 ;
31286 PyObject * obj1 = 0 ;
31287 char *kwnames[] = {
31288 (char *) "image",(char *) "cursor", NULL
31289 };
31290
31291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31293 SWIG_POINTER_EXCEPTION | 0)) == -1)
31294 SWIG_fail;
31295 if (arg1 == NULL) {
31296 PyErr_SetString(PyExc_TypeError,"null reference");
31297 SWIG_fail;
31298 }
31299 if (obj1) {
31300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31301 SWIG_POINTER_EXCEPTION | 0)) == -1)
31302 SWIG_fail;
31303 if (arg2 == NULL) {
31304 PyErr_SetString(PyExc_TypeError,"null reference");
31305 SWIG_fail;
31306 }
31307 }
31308 {
31309 if (!wxPyCheckForApp()) SWIG_fail;
31310 PyThreadState* __tstate = wxPyBeginAllowThreads();
31311 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31312
31313 wxPyEndAllowThreads(__tstate);
31314 if (PyErr_Occurred()) SWIG_fail;
31315 }
31316 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31317 return resultobj;
31318 fail:
31319 return NULL;
31320 }
31321
31322
31323 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31324 PyObject *resultobj;
31325 wxString *arg1 = 0 ;
31326 wxCursor const &arg2_defvalue = wxNullCursor ;
31327 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31328 wxGenericDragImage *result;
31329 bool temp1 = false ;
31330 PyObject * obj0 = 0 ;
31331 PyObject * obj1 = 0 ;
31332 char *kwnames[] = {
31333 (char *) "str",(char *) "cursor", NULL
31334 };
31335
31336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31337 {
31338 arg1 = wxString_in_helper(obj0);
31339 if (arg1 == NULL) SWIG_fail;
31340 temp1 = true;
31341 }
31342 if (obj1) {
31343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31344 SWIG_POINTER_EXCEPTION | 0)) == -1)
31345 SWIG_fail;
31346 if (arg2 == NULL) {
31347 PyErr_SetString(PyExc_TypeError,"null reference");
31348 SWIG_fail;
31349 }
31350 }
31351 {
31352 if (!wxPyCheckForApp()) SWIG_fail;
31353 PyThreadState* __tstate = wxPyBeginAllowThreads();
31354 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31355
31356 wxPyEndAllowThreads(__tstate);
31357 if (PyErr_Occurred()) SWIG_fail;
31358 }
31359 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31360 {
31361 if (temp1)
31362 delete arg1;
31363 }
31364 return resultobj;
31365 fail:
31366 {
31367 if (temp1)
31368 delete arg1;
31369 }
31370 return NULL;
31371 }
31372
31373
31374 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31375 PyObject *resultobj;
31376 wxPyTreeCtrl *arg1 = 0 ;
31377 wxTreeItemId *arg2 = 0 ;
31378 wxGenericDragImage *result;
31379 PyObject * obj0 = 0 ;
31380 PyObject * obj1 = 0 ;
31381 char *kwnames[] = {
31382 (char *) "treeCtrl",(char *) "id", NULL
31383 };
31384
31385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31387 SWIG_POINTER_EXCEPTION | 0)) == -1)
31388 SWIG_fail;
31389 if (arg1 == NULL) {
31390 PyErr_SetString(PyExc_TypeError,"null reference");
31391 SWIG_fail;
31392 }
31393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31394 SWIG_POINTER_EXCEPTION | 0)) == -1)
31395 SWIG_fail;
31396 if (arg2 == NULL) {
31397 PyErr_SetString(PyExc_TypeError,"null reference");
31398 SWIG_fail;
31399 }
31400 {
31401 if (!wxPyCheckForApp()) SWIG_fail;
31402 PyThreadState* __tstate = wxPyBeginAllowThreads();
31403 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31404
31405 wxPyEndAllowThreads(__tstate);
31406 if (PyErr_Occurred()) SWIG_fail;
31407 }
31408 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31409 return resultobj;
31410 fail:
31411 return NULL;
31412 }
31413
31414
31415 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31416 PyObject *resultobj;
31417 wxPyListCtrl *arg1 = 0 ;
31418 long arg2 ;
31419 wxGenericDragImage *result;
31420 PyObject * obj0 = 0 ;
31421 PyObject * obj1 = 0 ;
31422 char *kwnames[] = {
31423 (char *) "listCtrl",(char *) "id", NULL
31424 };
31425
31426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31428 SWIG_POINTER_EXCEPTION | 0)) == -1)
31429 SWIG_fail;
31430 if (arg1 == NULL) {
31431 PyErr_SetString(PyExc_TypeError,"null reference");
31432 SWIG_fail;
31433 }
31434 arg2 = (long)SWIG_As_long(obj1);
31435 if (PyErr_Occurred()) SWIG_fail;
31436 {
31437 if (!wxPyCheckForApp()) SWIG_fail;
31438 PyThreadState* __tstate = wxPyBeginAllowThreads();
31439 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31440
31441 wxPyEndAllowThreads(__tstate);
31442 if (PyErr_Occurred()) SWIG_fail;
31443 }
31444 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31445 return resultobj;
31446 fail:
31447 return NULL;
31448 }
31449
31450
31451 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31452 PyObject *resultobj;
31453 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31454 PyObject * obj0 = 0 ;
31455 char *kwnames[] = {
31456 (char *) "self", NULL
31457 };
31458
31459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31462 {
31463 PyThreadState* __tstate = wxPyBeginAllowThreads();
31464 delete arg1;
31465
31466 wxPyEndAllowThreads(__tstate);
31467 if (PyErr_Occurred()) SWIG_fail;
31468 }
31469 Py_INCREF(Py_None); resultobj = Py_None;
31470 return resultobj;
31471 fail:
31472 return NULL;
31473 }
31474
31475
31476 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31477 PyObject *resultobj;
31478 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31479 wxBitmap *arg2 = (wxBitmap *) 0 ;
31480 PyObject * obj0 = 0 ;
31481 PyObject * obj1 = 0 ;
31482 char *kwnames[] = {
31483 (char *) "self",(char *) "bitmap", NULL
31484 };
31485
31486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31491 {
31492 PyThreadState* __tstate = wxPyBeginAllowThreads();
31493 (arg1)->SetBackingBitmap(arg2);
31494
31495 wxPyEndAllowThreads(__tstate);
31496 if (PyErr_Occurred()) SWIG_fail;
31497 }
31498 Py_INCREF(Py_None); resultobj = Py_None;
31499 return resultobj;
31500 fail:
31501 return NULL;
31502 }
31503
31504
31505 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31506 PyObject *resultobj;
31507 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31508 wxPoint *arg2 = 0 ;
31509 wxWindow *arg3 = (wxWindow *) 0 ;
31510 bool arg4 = (bool) false ;
31511 wxRect *arg5 = (wxRect *) NULL ;
31512 bool result;
31513 wxPoint temp2 ;
31514 PyObject * obj0 = 0 ;
31515 PyObject * obj1 = 0 ;
31516 PyObject * obj2 = 0 ;
31517 PyObject * obj3 = 0 ;
31518 PyObject * obj4 = 0 ;
31519 char *kwnames[] = {
31520 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31521 };
31522
31523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31526 {
31527 arg2 = &temp2;
31528 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31529 }
31530 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31532 if (obj3) {
31533 arg4 = (bool)SWIG_As_bool(obj3);
31534 if (PyErr_Occurred()) SWIG_fail;
31535 }
31536 if (obj4) {
31537 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31539 }
31540 {
31541 PyThreadState* __tstate = wxPyBeginAllowThreads();
31542 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31543
31544 wxPyEndAllowThreads(__tstate);
31545 if (PyErr_Occurred()) SWIG_fail;
31546 }
31547 {
31548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31549 }
31550 return resultobj;
31551 fail:
31552 return NULL;
31553 }
31554
31555
31556 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31557 PyObject *resultobj;
31558 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31559 wxPoint *arg2 = 0 ;
31560 wxWindow *arg3 = (wxWindow *) 0 ;
31561 wxWindow *arg4 = (wxWindow *) 0 ;
31562 bool result;
31563 wxPoint temp2 ;
31564 PyObject * obj0 = 0 ;
31565 PyObject * obj1 = 0 ;
31566 PyObject * obj2 = 0 ;
31567 PyObject * obj3 = 0 ;
31568 char *kwnames[] = {
31569 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31570 };
31571
31572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31575 {
31576 arg2 = &temp2;
31577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31578 }
31579 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31581 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31583 {
31584 PyThreadState* __tstate = wxPyBeginAllowThreads();
31585 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31586
31587 wxPyEndAllowThreads(__tstate);
31588 if (PyErr_Occurred()) SWIG_fail;
31589 }
31590 {
31591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31592 }
31593 return resultobj;
31594 fail:
31595 return NULL;
31596 }
31597
31598
31599 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31600 PyObject *resultobj;
31601 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31602 bool result;
31603 PyObject * obj0 = 0 ;
31604 char *kwnames[] = {
31605 (char *) "self", NULL
31606 };
31607
31608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31611 {
31612 PyThreadState* __tstate = wxPyBeginAllowThreads();
31613 result = (bool)(arg1)->EndDrag();
31614
31615 wxPyEndAllowThreads(__tstate);
31616 if (PyErr_Occurred()) SWIG_fail;
31617 }
31618 {
31619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31620 }
31621 return resultobj;
31622 fail:
31623 return NULL;
31624 }
31625
31626
31627 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31628 PyObject *resultobj;
31629 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31630 wxPoint *arg2 = 0 ;
31631 bool result;
31632 wxPoint temp2 ;
31633 PyObject * obj0 = 0 ;
31634 PyObject * obj1 = 0 ;
31635 char *kwnames[] = {
31636 (char *) "self",(char *) "pt", NULL
31637 };
31638
31639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31642 {
31643 arg2 = &temp2;
31644 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31645 }
31646 {
31647 PyThreadState* __tstate = wxPyBeginAllowThreads();
31648 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
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_Show(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_Show",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)->Show();
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_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31691 PyObject *resultobj;
31692 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31693 bool result;
31694 PyObject * obj0 = 0 ;
31695 char *kwnames[] = {
31696 (char *) "self", NULL
31697 };
31698
31699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31702 {
31703 PyThreadState* __tstate = wxPyBeginAllowThreads();
31704 result = (bool)(arg1)->Hide();
31705
31706 wxPyEndAllowThreads(__tstate);
31707 if (PyErr_Occurred()) SWIG_fail;
31708 }
31709 {
31710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31711 }
31712 return resultobj;
31713 fail:
31714 return NULL;
31715 }
31716
31717
31718 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31719 PyObject *resultobj;
31720 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31721 wxPoint *arg2 = 0 ;
31722 wxRect result;
31723 wxPoint temp2 ;
31724 PyObject * obj0 = 0 ;
31725 PyObject * obj1 = 0 ;
31726 char *kwnames[] = {
31727 (char *) "self",(char *) "pos", NULL
31728 };
31729
31730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31733 {
31734 arg2 = &temp2;
31735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31736 }
31737 {
31738 PyThreadState* __tstate = wxPyBeginAllowThreads();
31739 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31740
31741 wxPyEndAllowThreads(__tstate);
31742 if (PyErr_Occurred()) SWIG_fail;
31743 }
31744 {
31745 wxRect * resultptr;
31746 resultptr = new wxRect((wxRect &) result);
31747 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31748 }
31749 return resultobj;
31750 fail:
31751 return NULL;
31752 }
31753
31754
31755 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31756 PyObject *resultobj;
31757 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31758 wxDC *arg2 = 0 ;
31759 wxPoint *arg3 = 0 ;
31760 bool result;
31761 wxPoint temp3 ;
31762 PyObject * obj0 = 0 ;
31763 PyObject * obj1 = 0 ;
31764 PyObject * obj2 = 0 ;
31765 char *kwnames[] = {
31766 (char *) "self",(char *) "dc",(char *) "pos", NULL
31767 };
31768
31769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31772 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31773 SWIG_POINTER_EXCEPTION | 0)) == -1)
31774 SWIG_fail;
31775 if (arg2 == NULL) {
31776 PyErr_SetString(PyExc_TypeError,"null reference");
31777 SWIG_fail;
31778 }
31779 {
31780 arg3 = &temp3;
31781 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31782 }
31783 {
31784 PyThreadState* __tstate = wxPyBeginAllowThreads();
31785 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31786
31787 wxPyEndAllowThreads(__tstate);
31788 if (PyErr_Occurred()) SWIG_fail;
31789 }
31790 {
31791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31792 }
31793 return resultobj;
31794 fail:
31795 return NULL;
31796 }
31797
31798
31799 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31800 PyObject *resultobj;
31801 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31802 wxDC *arg2 = 0 ;
31803 wxMemoryDC *arg3 = 0 ;
31804 wxRect *arg4 = 0 ;
31805 wxRect *arg5 = 0 ;
31806 bool result;
31807 wxRect temp4 ;
31808 wxRect temp5 ;
31809 PyObject * obj0 = 0 ;
31810 PyObject * obj1 = 0 ;
31811 PyObject * obj2 = 0 ;
31812 PyObject * obj3 = 0 ;
31813 PyObject * obj4 = 0 ;
31814 char *kwnames[] = {
31815 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31816 };
31817
31818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31822 SWIG_POINTER_EXCEPTION | 0)) == -1)
31823 SWIG_fail;
31824 if (arg2 == NULL) {
31825 PyErr_SetString(PyExc_TypeError,"null reference");
31826 SWIG_fail;
31827 }
31828 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31829 SWIG_POINTER_EXCEPTION | 0)) == -1)
31830 SWIG_fail;
31831 if (arg3 == NULL) {
31832 PyErr_SetString(PyExc_TypeError,"null reference");
31833 SWIG_fail;
31834 }
31835 {
31836 arg4 = &temp4;
31837 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31838 }
31839 {
31840 arg5 = &temp5;
31841 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31842 }
31843 {
31844 PyThreadState* __tstate = wxPyBeginAllowThreads();
31845 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31846
31847 wxPyEndAllowThreads(__tstate);
31848 if (PyErr_Occurred()) SWIG_fail;
31849 }
31850 {
31851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31852 }
31853 return resultobj;
31854 fail:
31855 return NULL;
31856 }
31857
31858
31859 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31860 PyObject *resultobj;
31861 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31862 wxPoint *arg2 = 0 ;
31863 wxPoint *arg3 = 0 ;
31864 bool arg4 ;
31865 bool arg5 ;
31866 bool result;
31867 wxPoint temp2 ;
31868 wxPoint temp3 ;
31869 PyObject * obj0 = 0 ;
31870 PyObject * obj1 = 0 ;
31871 PyObject * obj2 = 0 ;
31872 PyObject * obj3 = 0 ;
31873 PyObject * obj4 = 0 ;
31874 char *kwnames[] = {
31875 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31876 };
31877
31878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31881 {
31882 arg2 = &temp2;
31883 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31884 }
31885 {
31886 arg3 = &temp3;
31887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31888 }
31889 arg4 = (bool)SWIG_As_bool(obj3);
31890 if (PyErr_Occurred()) SWIG_fail;
31891 arg5 = (bool)SWIG_As_bool(obj4);
31892 if (PyErr_Occurred()) SWIG_fail;
31893 {
31894 PyThreadState* __tstate = wxPyBeginAllowThreads();
31895 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31896
31897 wxPyEndAllowThreads(__tstate);
31898 if (PyErr_Occurred()) SWIG_fail;
31899 }
31900 {
31901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31902 }
31903 return resultobj;
31904 fail:
31905 return NULL;
31906 }
31907
31908
31909 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31910 PyObject *obj;
31911 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31912 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31913 Py_INCREF(obj);
31914 return Py_BuildValue((char *)"");
31915 }
31916 static PyMethodDef SwigMethods[] = {
31917 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31924 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31926 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31934 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31935 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31939 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31941 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31942 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31951 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31959 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31968 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31989 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
32003 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
32008 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
32015 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
32020 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
32028 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
32051 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
32059 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
32090 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
32146 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
32151 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
32163 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
32176 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
32188 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
32192 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
32210 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
32217 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
32240 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
32243 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32250 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
32251 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL },
32273 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32277 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL },
32279 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32289 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32291 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32297 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32299 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32301 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL },
32305 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL },
32307 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32309 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32312 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32317 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32320 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32321 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32335 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32337 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32347 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32370 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32392 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32398 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32399 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32410 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32421 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32422 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32433 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32440 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32462 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32468 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32476 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32477 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32478 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32479 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32485 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32489 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32492 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32496 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32497 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32498 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32499 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32500 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32501 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32502 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32503 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32504 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32505 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32506 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32507 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32508 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32509 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32510 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32511 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32512 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32513 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32514 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32515 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32516 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32517 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32518 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32519 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32520 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32521 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32522 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32523 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32524 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32525 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32526 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32527 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32528 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32529 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32530 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32531 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32532 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32533 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32534 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32535 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32536 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32537 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32538 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32539 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32540 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32541 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32542 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32543 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32544 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32545 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32546 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32547 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32548 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32549 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32550 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32551 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32552 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32553 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32554 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32555 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32556 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32557 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32558 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32559 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32560 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32561 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32562 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32563 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32564 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32565 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32566 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32567 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32568 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32569 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32570 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32571 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32572 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32573 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32574 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32575 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32576 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32577 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32578 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32579 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32580 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32581 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32582 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32583 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32584 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32585 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32586 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32587 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32588 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32589 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32590 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32591 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32592 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32593 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32594 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32595 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32596 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32597 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32598 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32599 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32600 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32601 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32602 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32603 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32604 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32605 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32606 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32607 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32608 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32609 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32610 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32611 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32612 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32613 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32614 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32615 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32616 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32617 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32618 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32619 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32620 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32621 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32622 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32623 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32624 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32625 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32626 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32627 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32628 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32629 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32630 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32631 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32632 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32633 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32634 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32635 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32636 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32637 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32638 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32639 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32640 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32641 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32642 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32643 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32644 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32645 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32646 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32647 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32648 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32649 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32650 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32651 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32652 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32653 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32654 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32655 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32656 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32657 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32658 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32659 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32660 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32661 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32662 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32663 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32664 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32665 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32666 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32667 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32668 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32669 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32670 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32671 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32672 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32673 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32674 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32675 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32676 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32677 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32678 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32679 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32680 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32681 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32682 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32683 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32684 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32685 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32686 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32687 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32688 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32689 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32690 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32691 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32692 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32693 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32694 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32695 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32696 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32697 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32698 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32699 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32700 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32701 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32702 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32703 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32704 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32705 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32706 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32707 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32708 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32709 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32710 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32711 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32712 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32713 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32714 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32715 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32716 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32717 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32718 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32719 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32720 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32721 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32722 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32723 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32724 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32725 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32726 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32727 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32728 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32729 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32730 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32731 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32732 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32733 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32734 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32735 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32736 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32737 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32738 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32739 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32740 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32741 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32742 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32743 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32744 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32745 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32746 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32747 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32748 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32749 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32750 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32751 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32752 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32753 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32754 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32755 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32756 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32757 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32758 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32759 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32760 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32761 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32762 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32763 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32764 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32765 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32766 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32767 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32768 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32769 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32770 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32771 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32772 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32773 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32774 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32775 { NULL, NULL, 0, NULL }
32776 };
32777
32778
32779 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32780
32781 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32782 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32783 }
32784 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32785 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32786 }
32787 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32788 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32789 }
32790 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32791 return (void *)((wxSizer *) ((wxGridSizer *) x));
32792 }
32793 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32794 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32795 }
32796 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32797 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32798 }
32799 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32800 return (void *)((wxSizer *) ((wxPySizer *) x));
32801 }
32802 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32803 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32804 }
32805 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32806 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32807 }
32808 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32809 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32810 }
32811 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32812 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32813 }
32814 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32815 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32816 }
32817 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32818 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32819 }
32820 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
32821 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
32822 }
32823 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32824 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32825 }
32826 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32827 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32828 }
32829 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32830 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32831 }
32832 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32833 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32834 }
32835 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32836 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32837 }
32838 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32839 return (void *)((wxEvent *) ((wxPyEvent *) x));
32840 }
32841 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32842 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32843 }
32844 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32845 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32846 }
32847 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32848 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
32849 }
32850 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32851 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
32852 }
32853 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
32854 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
32855 }
32856 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32857 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32858 }
32859 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32860 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32861 }
32862 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32863 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32864 }
32865 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32866 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32867 }
32868 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32869 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32870 }
32871 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32872 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32873 }
32874 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32875 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32876 }
32877 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32878 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32879 }
32880 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32881 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32882 }
32883 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32884 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32885 }
32886 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32887 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32888 }
32889 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32890 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32891 }
32892 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32893 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32894 }
32895 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32896 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32897 }
32898 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32899 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32900 }
32901 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32902 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32903 }
32904 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32905 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32906 }
32907 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32908 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32909 }
32910 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32911 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32912 }
32913 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32914 return (void *)((wxEvent *) ((wxShowEvent *) x));
32915 }
32916 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32917 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32918 }
32919 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32921 }
32922 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32923 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32924 }
32925 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32926 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32927 }
32928 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32929 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32930 }
32931 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32932 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32933 }
32934 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32935 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32936 }
32937 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32938 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32939 }
32940 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32941 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32942 }
32943 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32944 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32945 }
32946 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32947 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32948 }
32949 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32950 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32951 }
32952 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32953 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32954 }
32955 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32956 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32957 }
32958 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
32959 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
32960 }
32961 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32962 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32963 }
32964 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32965 return (void *)((wxControl *) ((wxToggleButton *) x));
32966 }
32967 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32968 return (void *)((wxControl *) ((wxRadioButton *) x));
32969 }
32970 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32971 return (void *)((wxControl *) ((wxPyControl *) x));
32972 }
32973 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32974 return (void *)((wxControl *) ((wxToolBarBase *) x));
32975 }
32976 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32977 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32978 }
32979 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32980 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32981 }
32982 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32983 return (void *)((wxControl *) ((wxComboBox *) x));
32984 }
32985 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32986 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32987 }
32988 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32989 return (void *)((wxControl *) ((wxScrollBar *) x));
32990 }
32991 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32992 return (void *)((wxControl *) ((wxControlWithItems *) x));
32993 }
32994 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32995 return (void *)((wxControl *) ((wxGauge *) x));
32996 }
32997 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32998 return (void *)((wxControl *) ((wxStaticLine *) x));
32999 }
33000 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
33001 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
33002 }
33003 static void *_p_wxListbookTo_p_wxControl(void *x) {
33004 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
33005 }
33006 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
33007 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
33008 }
33009 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
33010 return (void *)((wxControl *) ((wxCheckBox *) x));
33011 }
33012 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
33013 return (void *)((wxControl *) ((wxRadioBox *) x));
33014 }
33015 static void *_p_wxChoiceTo_p_wxControl(void *x) {
33016 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
33017 }
33018 static void *_p_wxListBoxTo_p_wxControl(void *x) {
33019 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
33020 }
33021 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
33022 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33023 }
33024 static void *_p_wxListViewTo_p_wxControl(void *x) {
33025 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
33026 }
33027 static void *_p_wxNotebookTo_p_wxControl(void *x) {
33028 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
33029 }
33030 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
33031 return (void *)((wxControl *) ((wxStaticBitmap *) x));
33032 }
33033 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
33034 return (void *)((wxControl *) ((wxSpinCtrl *) x));
33035 }
33036 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
33037 return (void *)((wxControl *) ((wxStaticText *) x));
33038 }
33039 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
33040 return (void *)((wxControl *) ((wxStaticBox *) x));
33041 }
33042 static void *_p_wxSliderTo_p_wxControl(void *x) {
33043 return (void *)((wxControl *) ((wxSlider *) x));
33044 }
33045 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
33046 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33047 }
33048 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
33049 return (void *)((wxControl *) ((wxSpinButton *) x));
33050 }
33051 static void *_p_wxButtonTo_p_wxControl(void *x) {
33052 return (void *)((wxControl *) ((wxButton *) x));
33053 }
33054 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
33055 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
33056 }
33057 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
33058 return (void *)((wxControl *) ((wxTextCtrl *) x));
33059 }
33060 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
33061 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
33062 }
33063 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
33064 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
33065 }
33066 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
33067 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33068 }
33069 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
33070 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
33071 }
33072 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
33073 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
33074 }
33075 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
33076 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
33077 }
33078 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
33079 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33080 }
33081 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
33082 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33083 }
33084 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
33085 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33086 }
33087 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
33088 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
33089 }
33090 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
33091 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
33092 }
33093 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
33094 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
33095 }
33096 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33097 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33098 }
33099 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
33100 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33101 }
33102 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33103 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33104 }
33105 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33106 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33107 }
33108 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
33109 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33110 }
33111 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33112 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33113 }
33114 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
33115 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
33116 }
33117 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
33118 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
33119 }
33120 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33121 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33122 }
33123 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33124 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33125 }
33126 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
33127 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33128 }
33129 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
33130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
33131 }
33132 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
33133 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33134 }
33135 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
33136 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33137 }
33138 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
33139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
33140 }
33141 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33142 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33143 }
33144 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
33145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33146 }
33147 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
33148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
33149 }
33150 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33151 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33152 }
33153 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
33154 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
33155 }
33156 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
33157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
33158 }
33159 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
33160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33161 }
33162 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
33163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33164 }
33165 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
33166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33167 }
33168 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
33169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
33170 }
33171 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
33172 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
33173 }
33174 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
33175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33176 }
33177 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
33178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33179 }
33180 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
33181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33182 }
33183 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
33184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33185 }
33186 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
33187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33188 }
33189 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
33190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33191 }
33192 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
33193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33194 }
33195 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
33196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
33197 }
33198 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
33199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
33200 }
33201 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
33202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
33203 }
33204 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
33205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
33206 }
33207 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
33208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
33209 }
33210 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
33211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33212 }
33213 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
33214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33215 }
33216 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
33217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33218 }
33219 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
33220 return (void *)((wxListBox *) ((wxCheckListBox *) x));
33221 }
33222 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
33223 return (void *)((wxButton *) ((wxBitmapButton *) x));
33224 }
33225 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
33226 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
33227 }
33228 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
33229 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
33230 }
33231 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
33232 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
33233 }
33234 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33235 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33236 }
33237 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33238 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33239 }
33240 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33241 return (void *)((wxObject *) ((wxSizerItem *) x));
33242 }
33243 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33244 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33245 }
33246 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33247 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33248 }
33249 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
33250 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
33251 }
33252 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33253 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33254 }
33255 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33256 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33257 }
33258 static void *_p_wxSizerTo_p_wxObject(void *x) {
33259 return (void *)((wxObject *) ((wxSizer *) x));
33260 }
33261 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33262 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33263 }
33264 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
33265 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
33266 }
33267 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
33268 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33269 }
33270 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33271 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33272 }
33273 static void *_p_wxEventTo_p_wxObject(void *x) {
33274 return (void *)((wxObject *) ((wxEvent *) x));
33275 }
33276 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33277 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33278 }
33279 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33280 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33281 }
33282 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33283 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33284 }
33285 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33286 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33287 }
33288 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33289 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33290 }
33291 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33292 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33293 }
33294 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33295 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33296 }
33297 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33298 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33299 }
33300 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33301 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33302 }
33303 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33304 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33305 }
33306 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33307 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33308 }
33309 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33310 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33311 }
33312 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33313 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33314 }
33315 static void *_p_wxControlTo_p_wxObject(void *x) {
33316 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33317 }
33318 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33319 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33320 }
33321 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33323 }
33324 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33325 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33326 }
33327 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33328 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33329 }
33330 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33331 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33332 }
33333 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33334 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33335 }
33336 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33337 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33338 }
33339 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33340 return (void *)((wxObject *) ((wxFSFile *) x));
33341 }
33342 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33343 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33344 }
33345 static void *_p_wxListViewTo_p_wxObject(void *x) {
33346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33347 }
33348 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33350 }
33351 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33353 }
33354 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33355 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33356 }
33357 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33358 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33359 }
33360 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
33361 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33362 }
33363 static void *_p_wxListbookTo_p_wxObject(void *x) {
33364 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33365 }
33366 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33367 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33368 }
33369 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33370 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33371 }
33372 static void *_p_wxSliderTo_p_wxObject(void *x) {
33373 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33374 }
33375 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33376 return (void *)((wxObject *) ((wxMenuItem *) x));
33377 }
33378 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33379 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33380 }
33381 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33382 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33383 }
33384 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33385 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33386 }
33387 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33388 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33389 }
33390 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33391 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33392 }
33393 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33394 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33395 }
33396 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33397 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33398 }
33399 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33400 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33401 }
33402 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33404 }
33405 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33406 return (void *)((wxObject *) ((wxContextHelp *) x));
33407 }
33408 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
33409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33410 }
33411 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33412 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33413 }
33414 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33415 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33416 }
33417 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33418 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33419 }
33420 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33421 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33422 }
33423 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33424 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33425 }
33426 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33427 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33428 }
33429 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33430 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33431 }
33432 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33433 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33434 }
33435 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33436 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33437 }
33438 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33439 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33440 }
33441 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33442 return (void *)((wxObject *) ((wxImageHandler *) x));
33443 }
33444 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33445 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33446 }
33447 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33448 return (void *)((wxObject *) ((wxEvtHandler *) x));
33449 }
33450 static void *_p_wxListEventTo_p_wxObject(void *x) {
33451 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33452 }
33453 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33454 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33455 }
33456 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33457 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33458 }
33459 static void *_p_wxButtonTo_p_wxObject(void *x) {
33460 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33461 }
33462 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33463 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33464 }
33465 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33466 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33467 }
33468 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33469 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33470 }
33471 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33472 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33473 }
33474 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33475 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33476 }
33477 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33478 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33479 }
33480 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33481 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
33482 }
33483 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33484 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33485 }
33486 static void *_p_wxListItemTo_p_wxObject(void *x) {
33487 return (void *)((wxObject *) ((wxListItem *) x));
33488 }
33489 static void *_p_wxImageTo_p_wxObject(void *x) {
33490 return (void *)((wxObject *) ((wxImage *) x));
33491 }
33492 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33493 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33494 }
33495 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33496 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33497 }
33498 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33499 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33500 }
33501 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33502 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33503 }
33504 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33506 }
33507 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33508 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33509 }
33510 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33511 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33512 }
33513 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
33514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33515 }
33516 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33517 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33518 }
33519 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33520 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33521 }
33522 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33523 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33524 }
33525 static void *_p_wxWindowTo_p_wxObject(void *x) {
33526 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33527 }
33528 static void *_p_wxMenuTo_p_wxObject(void *x) {
33529 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33530 }
33531 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33532 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33533 }
33534 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33535 return (void *)((wxObject *) ((wxFileSystem *) x));
33536 }
33537 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33538 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33539 }
33540 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33541 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33542 }
33543 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33544 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33545 }
33546 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33547 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33548 }
33549 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33550 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33551 }
33552 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33553 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33554 }
33555 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
33556 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33557 }
33558 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33559 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33560 }
33561 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33562 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33563 }
33564 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33565 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33566 }
33567 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33568 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33569 }
33570 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33571 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33572 }
33573 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33574 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33575 }
33576 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33577 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33578 }
33579 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33580 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33581 }
33582 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33583 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33584 }
33585 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33586 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33587 }
33588 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33589 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33590 }
33591 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33592 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33593 }
33594 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33595 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33596 }
33597 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33598 return (void *)((wxWindow *) ((wxMenuBar *) x));
33599 }
33600 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
33601 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
33602 }
33603 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33604 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33605 }
33606 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33607 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33608 }
33609 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33610 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33611 }
33612 static void *_p_wxControlTo_p_wxWindow(void *x) {
33613 return (void *)((wxWindow *) ((wxControl *) x));
33614 }
33615 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33616 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33617 }
33618 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33619 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33620 }
33621 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33622 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33623 }
33624 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33625 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
33626 }
33627 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33628 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33629 }
33630 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33631 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33632 }
33633 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33634 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33635 }
33636 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33637 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33638 }
33639 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33640 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33641 }
33642 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33643 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33644 }
33645 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
33646 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33647 }
33648 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33649 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33650 }
33651 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33652 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33653 }
33654 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33655 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33656 }
33657 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33658 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33659 }
33660 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33661 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33662 }
33663 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33664 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33665 }
33666 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33667 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33668 }
33669 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33670 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33671 }
33672 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33673 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33674 }
33675 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33676 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33677 }
33678 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33679 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33680 }
33681 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33682 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33683 }
33684 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33685 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33686 }
33687 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33688 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33689 }
33690 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33691 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33692 }
33693 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33694 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33695 }
33696 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33697 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33698 }
33699 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33700 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33701 }
33702 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33703 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33704 }
33705 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33706 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33707 }
33708 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33709 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33710 }
33711 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33712 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33713 }
33714 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33715 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33716 }
33717 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33718 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33719 }
33720 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33721 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33722 }
33723 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33724 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33725 }
33726 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33727 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33728 }
33729 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33730 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33731 }
33732 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
33733 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33734 }
33735 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33736 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33737 }
33738 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33739 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33740 }
33741 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33742 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33743 }
33744 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33745 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33746 }
33747 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
33748 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33749 }
33750 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33751 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33752 }
33753 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33754 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33755 }
33756 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33757 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33758 }
33759 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33760 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33761 }
33762 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33763 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33764 }
33765 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33766 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33767 }
33768 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33769 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33770 }
33771 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33772 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33773 }
33774 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33775 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33776 }
33777 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33778 return (void *)((wxValidator *) ((wxPyValidator *) x));
33779 }
33780 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}};
33781 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}};
33782 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}};
33783 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}};
33784 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}};
33785 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}};
33786 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}};
33787 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}};
33788 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}};
33789 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}};
33790 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}};
33791 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}};
33792 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}};
33793 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}};
33794 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}};
33795 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}};
33796 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}};
33797 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}};
33798 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}};
33799 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 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}};
33800 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}};
33801 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}};
33802 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}};
33803 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}};
33804 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}};
33805 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}};
33806 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}};
33807 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}};
33808 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}};
33809 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}};
33810 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}};
33811 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}};
33812 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}};
33813 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}};
33814 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}};
33815 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}};
33816 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}};
33817 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}};
33818 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}};
33819 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}};
33820 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}};
33821 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}};
33822 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}};
33823 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}};
33824 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}};
33825 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}};
33826 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}};
33827 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}};
33828 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}};
33829 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}};
33830 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}};
33831 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}};
33832 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}};
33833 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}};
33834 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}};
33835 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}};
33836 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}};
33837 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}};
33838 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}};
33839 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}};
33840 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}};
33841 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}};
33842 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}};
33843 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}};
33844 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}};
33845 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}};
33846 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}};
33847 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}};
33848 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}};
33849 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}};
33850 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}};
33851 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}};
33852 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}};
33853 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}};
33854 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}};
33855 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}};
33856 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}};
33857 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}};
33858 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}};
33859 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}};
33860 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}};
33861 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 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}};
33862 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}};
33863 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}};
33864 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}};
33865 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}};
33866 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}};
33867
33868 static swig_type_info *swig_types_initial[] = {
33869 _swigt__p_wxTextUrlEvent,
33870 _swigt__p_wxSizer,
33871 _swigt__p_wxCheckBox,
33872 _swigt__p_wxPyTreeCtrl,
33873 _swigt__p_wxEvent,
33874 _swigt__p_wxGenericDirCtrl,
33875 _swigt__p_bool,
33876 _swigt__p_wxPyTreeItemData,
33877 _swigt__p_wxItemContainer,
33878 _swigt__p_wxPyListCtrl,
33879 _swigt__p_wxDirFilterListCtrl,
33880 _swigt__p_wxStaticLine,
33881 _swigt__p_wxControl,
33882 _swigt__p_wxPyControl,
33883 _swigt__p_wxGauge,
33884 _swigt__p_wxToolBarBase,
33885 _swigt__p_wxFont,
33886 _swigt__p_wxToggleButton,
33887 _swigt__p_wxRadioButton,
33888 _swigt__p_wxChoice,
33889 _swigt__p_wxMemoryDC,
33890 _swigt__p_wxListItemAttr,
33891 _swigt__p_void,
33892 _swigt__p_int,
33893 _swigt__p_wxSize,
33894 _swigt__p_wxDC,
33895 _swigt__p_wxListView,
33896 _swigt__p_wxIcon,
33897 _swigt__p_wxVisualAttributes,
33898 _swigt__p_wxTextCtrl,
33899 _swigt__p_wxNotebook,
33900 _swigt__p_wxChoicebook,
33901 _swigt__p_wxNotifyEvent,
33902 _swigt__p_wxArrayString,
33903 _swigt__p_wxListbook,
33904 _swigt__p_wxStaticBitmap,
33905 _swigt__p_wxSlider,
33906 _swigt__p_wxStaticBox,
33907 _swigt__p_wxArrayInt,
33908 _swigt__p_wxContextHelp,
33909 _swigt__p_long,
33910 _swigt__p_wxBookCtrlBase,
33911 _swigt__p_wxEvtHandler,
33912 _swigt__p_wxListEvent,
33913 _swigt__p_wxCheckListBox,
33914 _swigt__p_wxListBox,
33915 _swigt__p_wxSpinButton,
33916 _swigt__p_wxButton,
33917 _swigt__p_wxBitmapButton,
33918 _swigt__p_wxRect,
33919 _swigt__p_wxContextHelpButton,
33920 _swigt__p_wxRadioBox,
33921 _swigt__p_wxScrollBar,
33922 _swigt__p_char,
33923 _swigt__p_wxTreeItemId,
33924 _swigt__p_wxComboBox,
33925 _swigt__p_wxHelpEvent,
33926 _swigt__p_wxListItem,
33927 _swigt__p_wxNotebookSizer,
33928 _swigt__p_wxSpinEvent,
33929 _swigt__p_wxGenericDragImage,
33930 _swigt__p_wxSpinCtrl,
33931 _swigt__p_wxImageList,
33932 _swigt__p_wxHelpProvider,
33933 _swigt__p_wxTextAttr,
33934 _swigt__p_wxSimpleHelpProvider,
33935 _swigt__p_wxPoint,
33936 _swigt__p_wxChoicebookEvent,
33937 _swigt__p_wxListbookEvent,
33938 _swigt__p_wxNotebookEvent,
33939 _swigt__p_wxObject,
33940 _swigt__p_wxCursor,
33941 _swigt__p_wxKeyEvent,
33942 _swigt__p_wxWindow,
33943 _swigt__p_wxString,
33944 _swigt__p_wxBitmap,
33945 _swigt__p_wxTreeEvent,
33946 _swigt__p_wxMouseEvent,
33947 _swigt__p_wxBookCtrlBaseEvent,
33948 _swigt__p_wxCommandEvent,
33949 _swigt__p_wxStaticText,
33950 _swigt__p_wxControlWithItems,
33951 _swigt__p_wxToolBarToolBase,
33952 _swigt__p_wxColour,
33953 _swigt__p_wxToolBar,
33954 _swigt__p_wxBookCtrlSizer,
33955 _swigt__p_wxValidator,
33956 0
33957 };
33958
33959
33960 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33961
33962 static swig_const_info swig_const_table[] = {
33963 {0, 0, 0, 0.0, 0, 0}};
33964
33965 #ifdef __cplusplus
33966 }
33967 #endif
33968
33969 #ifdef __cplusplus
33970 extern "C"
33971 #endif
33972 SWIGEXPORT(void) SWIG_init(void) {
33973 static PyObject *SWIG_globals = 0;
33974 static int typeinit = 0;
33975 PyObject *m, *d;
33976 int i;
33977 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33978 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33979 d = PyModule_GetDict(m);
33980
33981 if (!typeinit) {
33982 for (i = 0; swig_types_initial[i]; i++) {
33983 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33984 }
33985 typeinit = 1;
33986 }
33987 SWIG_InstallConstants(d,swig_const_table);
33988
33989 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33990 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33991 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33992 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33993 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33994 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33995 PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)wxBU_ALIGN_MASK));
33996 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33997 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33998 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33999 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
34000 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
34001 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
34002 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
34003 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
34004 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
34005 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
34006 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
34007 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
34008 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
34009 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
34010 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
34011 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
34012 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
34013 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
34014 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
34015 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
34016 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
34017 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
34018 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
34019 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
34020 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
34021 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
34022 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
34023 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
34024 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
34025 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
34026 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
34027 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
34028 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
34029 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
34030 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
34031 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
34032 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
34033 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
34034 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
34035 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
34036 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
34037 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
34038 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
34039 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
34040 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
34041 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
34042 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
34043 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
34044 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
34045 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
34046 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
34047 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
34048 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
34049 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
34050 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
34051 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
34052 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
34053 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
34054 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
34055 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
34056 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
34057 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
34058 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
34059 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
34060 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
34061 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
34062 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
34063 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
34064 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
34065 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
34066 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
34067 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
34068 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
34069 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
34070 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
34071 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
34072 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
34073 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
34074 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
34075 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
34076 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
34077 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
34078 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
34079 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
34080 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
34081 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
34082 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
34083 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
34084 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
34085 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
34086 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
34087 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
34088 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
34089 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
34090 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
34091 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
34092 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
34093 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
34094 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
34095 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
34096 PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT));
34097 PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP));
34098 PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM));
34099 PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT));
34100 PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT));
34101 PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK));
34102 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
34103 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
34104 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
34105 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
34106 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
34107 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
34108 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
34109 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
34110 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
34111 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
34112 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
34113 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
34114 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
34115 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
34116 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
34117 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
34118 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
34119 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
34120 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
34121 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
34122 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
34123 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
34124 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
34125 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
34126 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
34127 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
34128 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
34129 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
34130 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
34131 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
34132 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
34133 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
34134 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
34135 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
34136 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
34137 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
34138 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
34139 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
34140 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
34141 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
34142 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
34143 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
34144 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
34145 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
34146 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
34147 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
34148 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
34149 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
34150 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
34151 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
34152 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
34153 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
34154 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
34155 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
34156 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
34157 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
34158 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
34159 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
34160 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
34161 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
34162 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
34163 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
34164 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
34165 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
34166 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
34167 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
34168 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
34169 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
34170 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
34171 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
34172 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
34173 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
34174 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
34175 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
34176 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
34177 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
34178 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
34179 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
34180 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
34181 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
34182 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
34183 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
34184 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
34185 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
34186 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
34187 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
34188 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
34189 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
34190 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
34191 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
34192 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
34193 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
34194 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
34195 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
34196 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
34197 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
34198 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
34199 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
34200 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
34201 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
34202 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
34203 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
34204 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
34205 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
34206 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
34207 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
34208 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
34209
34210 // Map renamed classes back to their common name for OOR
34211 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
34212
34213 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
34214 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
34215 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
34216 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
34217 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
34218 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
34219 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
34220 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
34221 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
34222 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
34223 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
34224 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
34225 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
34226 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
34227 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
34228 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
34229 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
34230 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
34231 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
34232 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
34233 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
34234 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
34235 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
34236 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
34237 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
34238 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
34239 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
34240 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
34241 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
34242 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
34243 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
34244 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
34245 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
34246 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
34247 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
34248 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
34249 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
34250 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
34251 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
34252 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
34253 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
34254 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
34255 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
34256 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
34257 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
34258 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
34259 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
34260 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
34261 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
34262 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
34263 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
34264 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
34265 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
34266 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
34267 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
34268 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
34269
34270 // Map renamed classes back to their common name for OOR
34271 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
34272 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
34273
34274 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
34275 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
34276 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
34277 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
34278 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
34279 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
34280 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
34281 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
34282 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
34283 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
34284
34285 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
34286
34287 }
34288