]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_controls_wrap.cpp
Allow the OOR reference to be saved without doing an INCREF. This
[wxWidgets.git] / wxPython / src / gtk / _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 int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; }
672 int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; }
673 int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; }
674
675 #include <wx/slider.h>
676
677
678 static const wxString wxPySliderNameStr(wxSliderNameStr);
679 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
680
681 #if !wxUSE_TOGGLEBTN
682 // implement dummy items for platforms that don't have this class
683
684 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
685
686 class wxToggleButton : public wxControl
687 {
688 public:
689 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
690 const wxPoint&, const wxSize&, long,
691 const wxValidator&, const wxString&)
692 { wxPyRaiseNotImplemented(); }
693
694 wxToggleButton()
695 { wxPyRaiseNotImplemented(); }
696 };
697 #endif
698
699 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
700
701 SWIGSTATICINLINE(PyObject* )
702 SWIG_From_unsigned_SS_long(unsigned long value)
703 {
704 return (value > LONG_MAX) ?
705 PyLong_FromUnsignedLong(value)
706 : PyInt_FromLong(swig_numeric_cast(value,long));
707 }
708
709 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
710 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
711 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
712 if (udata) {
713 Py_INCREF(udata->m_obj);
714 return udata->m_obj;
715 } else {
716 Py_INCREF(Py_None);
717 return Py_None;
718 }
719 }
720 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
721 self->SetClientData(new wxPyUserData(clientData));
722 }
723 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){
724 wxPyUserData* udata = NULL;
725 if (clientData && clientData != Py_None)
726 udata = new wxPyUserData(clientData);
727 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
728 shortHelp, longHelp, udata);
729 }
730 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){
731 wxPyUserData* udata = NULL;
732 if (clientData && clientData != Py_None)
733 udata = new wxPyUserData(clientData);
734 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
735 shortHelp, longHelp, udata);
736 }
737 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
738 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
739 if (udata) {
740 Py_INCREF(udata->m_obj);
741 return udata->m_obj;
742 } else {
743 Py_INCREF(Py_None);
744 return Py_None;
745 }
746 }
747 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
748 self->SetToolClientData(id, new wxPyUserData(clientData));
749 }
750
751 #include <wx/listctrl.h>
752
753 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
754 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
755 // Python aware sorting function for wxPyListCtrl
756 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
757 int retval = 0;
758 PyObject* func = (PyObject*)funcPtr;
759 bool blocked = wxPyBeginBlockThreads();
760
761 PyObject* args = Py_BuildValue("(ii)", item1, item2);
762 PyObject* result = PyEval_CallObject(func, args);
763 Py_DECREF(args);
764 if (result) {
765 retval = PyInt_AsLong(result);
766 Py_DECREF(result);
767 }
768
769 wxPyEndBlockThreads(blocked);
770 return retval;
771 }
772
773 // C++ Version of a Python aware class
774 class wxPyListCtrl : public wxListCtrl {
775 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
776 public:
777 wxPyListCtrl() : wxListCtrl() {}
778 wxPyListCtrl(wxWindow* parent, wxWindowID id,
779 const wxPoint& pos,
780 const wxSize& size,
781 long style,
782 const wxValidator& validator,
783 const wxString& name) :
784 wxListCtrl(parent, id, pos, size, style, validator, name) {}
785
786 bool Create(wxWindow* parent, wxWindowID id,
787 const wxPoint& pos,
788 const wxSize& size,
789 long style,
790 const wxValidator& validator,
791 const wxString& name) {
792 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
793 }
794
795 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
796 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
797
798 // use the virtual version to avoid a confusing assert in the base class
799 DEC_PYCALLBACK_INT_LONG_virtual(OnGetItemImage);
800
801 PYPRIVATE;
802 };
803
804 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
805
806 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
807 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
808 IMP_PYCALLBACK_INT_LONG_virtual(wxPyListCtrl, wxListCtrl, OnGetItemImage);
809
810
811 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
812 wxListItem item;
813 item.SetMask( wxLIST_MASK_STATE |
814 wxLIST_MASK_TEXT |
815 wxLIST_MASK_IMAGE |
816 wxLIST_MASK_DATA |
817 wxLIST_SET_ITEM |
818 wxLIST_MASK_WIDTH |
819 wxLIST_MASK_FORMAT
820 );
821 if (self->GetColumn(col, item))
822 return new wxListItem(item);
823 else
824 return NULL;
825 }
826 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
827 wxListItem* info = new wxListItem;
828 info->m_itemId = itemId;
829 info->m_col = col;
830 info->m_mask = 0xFFFF;
831 self->GetItem(*info);
832 return info;
833 }
834 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
835 wxPoint pos;
836 self->GetItemPosition(item, pos);
837 return pos;
838 }
839 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
840 wxRect rect;
841 self->GetItemRect(item, rect, code);
842 return rect;
843 }
844
845 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
846 if (!PyCallable_Check(func))
847 return false;
848 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
849 }
850 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
851
852
853
854 return (wxWindow*)self->m_mainWin;
855
856 }
857
858 #include <wx/treectrl.h>
859 #include "wx/wxPython/pytree.h"
860
861 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
862 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
863 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
864 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
865 // C++ version of Python aware wxTreeCtrl
866 class wxPyTreeCtrl : public wxTreeCtrl {
867 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
868 public:
869 wxPyTreeCtrl() : wxTreeCtrl() {}
870 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
871 const wxPoint& pos,
872 const wxSize& size,
873 long style,
874 const wxValidator& validator,
875 const wxString& name) :
876 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
877
878 bool Create(wxWindow *parent, wxWindowID id,
879 const wxPoint& pos,
880 const wxSize& size,
881 long style,
882 const wxValidator& validator,
883 const wxString& name) {
884 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
885 }
886
887
888 int OnCompareItems(const wxTreeItemId& item1,
889 const wxTreeItemId& item2) {
890 int rval = 0;
891 bool found;
892 bool blocked = wxPyBeginBlockThreads();
893 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
894 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
895 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
896 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
897 Py_DECREF(o1);
898 Py_DECREF(o2);
899 }
900 wxPyEndBlockThreads(blocked);
901 if (! found)
902 rval = wxTreeCtrl::OnCompareItems(item1, item2);
903 return rval;
904 }
905 PYPRIVATE;
906 };
907
908 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
909
910
911
912 #if UINT_MAX < LONG_MAX
913 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
914 #define SWIG_From_unsigned_SS_int SWIG_From_long
915 /*@@*/
916 #else
917 /*@/opt/swig/share/swig/1.3.22/python/pymacros.swg,63,SWIG_define@*/
918 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
919 /*@@*/
920 #endif
921
922
923 SWIGSTATICINLINE(int)
924 SWIG_CheckUnsignedLongInRange(unsigned long value,
925 unsigned long max_value,
926 const char *errmsg)
927 {
928 if (value > max_value) {
929 if (errmsg) {
930 PyErr_Format(PyExc_OverflowError,
931 "value %ld is greater than '%s' minimum %ld",
932 value, errmsg, max_value);
933 }
934 return 0;
935 }
936 return 1;
937 }
938
939
940 #if UINT_MAX != ULONG_MAX
941 SWIGSTATICINLINE(int)
942 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
943 {
944 const char* errmsg = val ? "unsigned int" : 0;
945 unsigned long v;
946 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
947 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
948 if (val) *val = swig_numeric_cast(v, unsigned int);
949 return 1;
950 }
951 } else {
952 PyErr_Clear();
953 }
954 if (val) {
955 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
956 }
957 return 0;
958 }
959 #else
960 SWIGSTATICINLINE(unsigned int)
961 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
962 {
963 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
964 }
965 #endif
966
967
968 SWIGSTATICINLINE(unsigned int)
969 SWIG_As_unsigned_SS_int(PyObject* obj)
970 {
971 unsigned int v;
972 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
973 /*
974 this is needed to make valgrind/purify happier. the other
975 solution is throw an exception, but since this code should work
976 with plain C ....
977 */
978 memset((void*)&v, 0, sizeof(unsigned int));
979 }
980 return v;
981 }
982
983
984 SWIGSTATICINLINE(int)
985 SWIG_Check_unsigned_SS_int(PyObject* obj)
986 {
987 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
988 }
989
990 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
991 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
992 if (data == NULL) {
993 data = new wxPyTreeItemData();
994 data->SetId(item); // set the id
995 self->SetItemData(item, data);
996 }
997 return data;
998 }
999 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
1000 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1001 if (data == NULL) {
1002 data = new wxPyTreeItemData();
1003 data->SetId(item); // set the id
1004 self->SetItemData(item, data);
1005 }
1006 return data->GetData();
1007 }
1008 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1009 data->SetId(item); // set the id
1010 self->SetItemData(item, data);
1011 }
1012 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1013 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1014 if (data == NULL) {
1015 data = new wxPyTreeItemData(obj);
1016 data->SetId(item); // set the id
1017 self->SetItemData(item, data);
1018 } else
1019 data->SetData(obj);
1020 }
1021 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1022 bool blocked = wxPyBeginBlockThreads();
1023 PyObject* rval = PyList_New(0);
1024 wxArrayTreeItemIds array;
1025 size_t num, x;
1026 num = self->GetSelections(array);
1027 for (x=0; x < num; x++) {
1028 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1029 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
1030 PyList_Append(rval, item);
1031 Py_DECREF(item);
1032 }
1033 wxPyEndBlockThreads(blocked);
1034 return rval;
1035 }
1036 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1037 void* cookie = 0;
1038 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1039 bool blocked = wxPyBeginBlockThreads();
1040 PyObject* tup = PyTuple_New(2);
1041 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1042 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1043 wxPyEndBlockThreads(blocked);
1044 return tup;
1045 }
1046 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1047 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1048 bool blocked = wxPyBeginBlockThreads();
1049 PyObject* tup = PyTuple_New(2);
1050 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1051 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1052 wxPyEndBlockThreads(blocked);
1053 return tup;
1054 }
1055 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1056 wxRect rect;
1057 if (self->GetBoundingRect(item, rect, textOnly)) {
1058 bool blocked = wxPyBeginBlockThreads();
1059 wxRect* r = new wxRect(rect);
1060 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
1061 wxPyEndBlockThreads(blocked);
1062 return val;
1063 }
1064 else
1065 RETURN_NONE();
1066 }
1067 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1068
1069 SWIGSTATICINLINE(PyObject*)
1070 SWIG_From_bool(bool value)
1071 {
1072 PyObject *obj = value ? Py_True : Py_False;
1073 Py_INCREF(obj);
1074 return obj;
1075 }
1076
1077
1078 // C++ version of Python aware wxControl
1079 class wxPyControl : public wxControl
1080 {
1081 DECLARE_DYNAMIC_CLASS(wxPyControl)
1082 public:
1083 wxPyControl() : wxControl() {}
1084 wxPyControl(wxWindow* parent, const wxWindowID id,
1085 const wxPoint& pos = wxDefaultPosition,
1086 const wxSize& size = wxDefaultSize,
1087 long style = 0,
1088 const wxValidator& validator=wxDefaultValidator,
1089 const wxString& name = wxPyControlNameStr)
1090 : wxControl(parent, id, pos, size, style, validator, name) {}
1091
1092 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1093
1094 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1095 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1096 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1097 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1098
1099 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1100 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1101 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1102
1103 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1104 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1105
1106 DEC_PYCALLBACK__(InitDialog);
1107 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1108 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1109 DEC_PYCALLBACK_BOOL_(Validate);
1110
1111 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1112 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1113 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1114
1115 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1116 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1117
1118 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1119 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1120 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1121
1122 PYPRIVATE;
1123 };
1124
1125 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1126
1127 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1128 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1129 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1130 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1131
1132 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1133 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1134 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1135
1136 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1137 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1138
1139 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1140 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1141 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1142 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1143
1144 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1145 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1146 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1147
1148 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1149 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1150
1151 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1152 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1153 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1154
1155
1156
1157 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1158
1159 #include <wx/generic/dragimgg.h>
1160
1161 #ifdef __cplusplus
1162 extern "C" {
1163 #endif
1164 static int _wrap_ButtonNameStr_set(PyObject *) {
1165 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1166 return 1;
1167 }
1168
1169
1170 static PyObject *_wrap_ButtonNameStr_get() {
1171 PyObject *pyobj;
1172
1173 {
1174 #if wxUSE_UNICODE
1175 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1176 #else
1177 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1178 #endif
1179 }
1180 return pyobj;
1181 }
1182
1183
1184 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1185 PyObject *resultobj;
1186 wxWindow *arg1 = (wxWindow *) 0 ;
1187 int arg2 = (int) -1 ;
1188 wxString const &arg3_defvalue = wxPyEmptyString ;
1189 wxString *arg3 = (wxString *) &arg3_defvalue ;
1190 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1191 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1192 wxSize const &arg5_defvalue = wxDefaultSize ;
1193 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1194 long arg6 = (long) 0 ;
1195 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1196 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1197 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1198 wxString *arg8 = (wxString *) &arg8_defvalue ;
1199 wxButton *result;
1200 bool temp3 = false ;
1201 wxPoint temp4 ;
1202 wxSize temp5 ;
1203 bool temp8 = false ;
1204 PyObject * obj0 = 0 ;
1205 PyObject * obj1 = 0 ;
1206 PyObject * obj2 = 0 ;
1207 PyObject * obj3 = 0 ;
1208 PyObject * obj4 = 0 ;
1209 PyObject * obj5 = 0 ;
1210 PyObject * obj6 = 0 ;
1211 PyObject * obj7 = 0 ;
1212 char *kwnames[] = {
1213 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1214 };
1215
1216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1219 if (obj1) {
1220 arg2 = (int)SWIG_As_int(obj1);
1221 if (PyErr_Occurred()) SWIG_fail;
1222 }
1223 if (obj2) {
1224 {
1225 arg3 = wxString_in_helper(obj2);
1226 if (arg3 == NULL) SWIG_fail;
1227 temp3 = true;
1228 }
1229 }
1230 if (obj3) {
1231 {
1232 arg4 = &temp4;
1233 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1234 }
1235 }
1236 if (obj4) {
1237 {
1238 arg5 = &temp5;
1239 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1240 }
1241 }
1242 if (obj5) {
1243 arg6 = (long)SWIG_As_long(obj5);
1244 if (PyErr_Occurred()) SWIG_fail;
1245 }
1246 if (obj6) {
1247 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1248 SWIG_POINTER_EXCEPTION | 0)) == -1)
1249 SWIG_fail;
1250 if (arg7 == NULL) {
1251 PyErr_SetString(PyExc_TypeError,"null reference");
1252 SWIG_fail;
1253 }
1254 }
1255 if (obj7) {
1256 {
1257 arg8 = wxString_in_helper(obj7);
1258 if (arg8 == NULL) SWIG_fail;
1259 temp8 = true;
1260 }
1261 }
1262 {
1263 if (!wxPyCheckForApp()) SWIG_fail;
1264 PyThreadState* __tstate = wxPyBeginAllowThreads();
1265 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1266
1267 wxPyEndAllowThreads(__tstate);
1268 if (PyErr_Occurred()) SWIG_fail;
1269 }
1270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1271 {
1272 if (temp3)
1273 delete arg3;
1274 }
1275 {
1276 if (temp8)
1277 delete arg8;
1278 }
1279 return resultobj;
1280 fail:
1281 {
1282 if (temp3)
1283 delete arg3;
1284 }
1285 {
1286 if (temp8)
1287 delete arg8;
1288 }
1289 return NULL;
1290 }
1291
1292
1293 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1294 PyObject *resultobj;
1295 wxButton *result;
1296 char *kwnames[] = {
1297 NULL
1298 };
1299
1300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1301 {
1302 if (!wxPyCheckForApp()) SWIG_fail;
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
1304 result = (wxButton *)new wxButton();
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) SWIG_fail;
1308 }
1309 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1310 return resultobj;
1311 fail:
1312 return NULL;
1313 }
1314
1315
1316 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1317 PyObject *resultobj;
1318 wxButton *arg1 = (wxButton *) 0 ;
1319 wxWindow *arg2 = (wxWindow *) 0 ;
1320 int arg3 = (int) -1 ;
1321 wxString const &arg4_defvalue = wxPyEmptyString ;
1322 wxString *arg4 = (wxString *) &arg4_defvalue ;
1323 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1324 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1325 wxSize const &arg6_defvalue = wxDefaultSize ;
1326 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1327 long arg7 = (long) 0 ;
1328 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1329 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1330 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1331 wxString *arg9 = (wxString *) &arg9_defvalue ;
1332 bool result;
1333 bool temp4 = false ;
1334 wxPoint temp5 ;
1335 wxSize temp6 ;
1336 bool temp9 = false ;
1337 PyObject * obj0 = 0 ;
1338 PyObject * obj1 = 0 ;
1339 PyObject * obj2 = 0 ;
1340 PyObject * obj3 = 0 ;
1341 PyObject * obj4 = 0 ;
1342 PyObject * obj5 = 0 ;
1343 PyObject * obj6 = 0 ;
1344 PyObject * obj7 = 0 ;
1345 PyObject * obj8 = 0 ;
1346 char *kwnames[] = {
1347 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1348 };
1349
1350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1353 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1355 if (obj2) {
1356 arg3 = (int)SWIG_As_int(obj2);
1357 if (PyErr_Occurred()) SWIG_fail;
1358 }
1359 if (obj3) {
1360 {
1361 arg4 = wxString_in_helper(obj3);
1362 if (arg4 == NULL) SWIG_fail;
1363 temp4 = true;
1364 }
1365 }
1366 if (obj4) {
1367 {
1368 arg5 = &temp5;
1369 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1370 }
1371 }
1372 if (obj5) {
1373 {
1374 arg6 = &temp6;
1375 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1376 }
1377 }
1378 if (obj6) {
1379 arg7 = (long)SWIG_As_long(obj6);
1380 if (PyErr_Occurred()) SWIG_fail;
1381 }
1382 if (obj7) {
1383 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1384 SWIG_POINTER_EXCEPTION | 0)) == -1)
1385 SWIG_fail;
1386 if (arg8 == NULL) {
1387 PyErr_SetString(PyExc_TypeError,"null reference");
1388 SWIG_fail;
1389 }
1390 }
1391 if (obj8) {
1392 {
1393 arg9 = wxString_in_helper(obj8);
1394 if (arg9 == NULL) SWIG_fail;
1395 temp9 = true;
1396 }
1397 }
1398 {
1399 PyThreadState* __tstate = wxPyBeginAllowThreads();
1400 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1401
1402 wxPyEndAllowThreads(__tstate);
1403 if (PyErr_Occurred()) SWIG_fail;
1404 }
1405 {
1406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1407 }
1408 {
1409 if (temp4)
1410 delete arg4;
1411 }
1412 {
1413 if (temp9)
1414 delete arg9;
1415 }
1416 return resultobj;
1417 fail:
1418 {
1419 if (temp4)
1420 delete arg4;
1421 }
1422 {
1423 if (temp9)
1424 delete arg9;
1425 }
1426 return NULL;
1427 }
1428
1429
1430 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1431 PyObject *resultobj;
1432 wxButton *arg1 = (wxButton *) 0 ;
1433 PyObject * obj0 = 0 ;
1434 char *kwnames[] = {
1435 (char *) "self", NULL
1436 };
1437
1438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1441 {
1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
1443 (arg1)->SetDefault();
1444
1445 wxPyEndAllowThreads(__tstate);
1446 if (PyErr_Occurred()) SWIG_fail;
1447 }
1448 Py_INCREF(Py_None); resultobj = Py_None;
1449 return resultobj;
1450 fail:
1451 return NULL;
1452 }
1453
1454
1455 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1456 PyObject *resultobj;
1457 wxSize result;
1458 char *kwnames[] = {
1459 NULL
1460 };
1461
1462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1463 {
1464 PyThreadState* __tstate = wxPyBeginAllowThreads();
1465 result = wxButton::GetDefaultSize();
1466
1467 wxPyEndAllowThreads(__tstate);
1468 if (PyErr_Occurred()) SWIG_fail;
1469 }
1470 {
1471 wxSize * resultptr;
1472 resultptr = new wxSize((wxSize &) result);
1473 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1474 }
1475 return resultobj;
1476 fail:
1477 return NULL;
1478 }
1479
1480
1481 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1482 PyObject *resultobj;
1483 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1484 wxVisualAttributes result;
1485 PyObject * obj0 = 0 ;
1486 char *kwnames[] = {
1487 (char *) "variant", NULL
1488 };
1489
1490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1491 if (obj0) {
1492 arg1 = (int)SWIG_As_int(obj0);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 }
1495 {
1496 if (!wxPyCheckForApp()) SWIG_fail;
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 {
1504 wxVisualAttributes * resultptr;
1505 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1507 }
1508 return resultobj;
1509 fail:
1510 return NULL;
1511 }
1512
1513
1514 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1515 PyObject *obj;
1516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1517 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1518 Py_INCREF(obj);
1519 return Py_BuildValue((char *)"");
1520 }
1521 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1522 PyObject *resultobj;
1523 wxWindow *arg1 = (wxWindow *) 0 ;
1524 int arg2 = (int) -1 ;
1525 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1526 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1527 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1528 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1529 wxSize const &arg5_defvalue = wxDefaultSize ;
1530 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1531 long arg6 = (long) wxBU_AUTODRAW ;
1532 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1533 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1534 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1535 wxString *arg8 = (wxString *) &arg8_defvalue ;
1536 wxBitmapButton *result;
1537 wxPoint temp4 ;
1538 wxSize temp5 ;
1539 bool temp8 = false ;
1540 PyObject * obj0 = 0 ;
1541 PyObject * obj1 = 0 ;
1542 PyObject * obj2 = 0 ;
1543 PyObject * obj3 = 0 ;
1544 PyObject * obj4 = 0 ;
1545 PyObject * obj5 = 0 ;
1546 PyObject * obj6 = 0 ;
1547 PyObject * obj7 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1555 if (obj1) {
1556 arg2 = (int)SWIG_As_int(obj1);
1557 if (PyErr_Occurred()) SWIG_fail;
1558 }
1559 if (obj2) {
1560 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1)
1562 SWIG_fail;
1563 if (arg3 == NULL) {
1564 PyErr_SetString(PyExc_TypeError,"null reference");
1565 SWIG_fail;
1566 }
1567 }
1568 if (obj3) {
1569 {
1570 arg4 = &temp4;
1571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1572 }
1573 }
1574 if (obj4) {
1575 {
1576 arg5 = &temp5;
1577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1578 }
1579 }
1580 if (obj5) {
1581 arg6 = (long)SWIG_As_long(obj5);
1582 if (PyErr_Occurred()) SWIG_fail;
1583 }
1584 if (obj6) {
1585 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1586 SWIG_POINTER_EXCEPTION | 0)) == -1)
1587 SWIG_fail;
1588 if (arg7 == NULL) {
1589 PyErr_SetString(PyExc_TypeError,"null reference");
1590 SWIG_fail;
1591 }
1592 }
1593 if (obj7) {
1594 {
1595 arg8 = wxString_in_helper(obj7);
1596 if (arg8 == NULL) SWIG_fail;
1597 temp8 = true;
1598 }
1599 }
1600 {
1601 if (!wxPyCheckForApp()) SWIG_fail;
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 }
1608 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1609 {
1610 if (temp8)
1611 delete arg8;
1612 }
1613 return resultobj;
1614 fail:
1615 {
1616 if (temp8)
1617 delete arg8;
1618 }
1619 return NULL;
1620 }
1621
1622
1623 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1624 PyObject *resultobj;
1625 wxBitmapButton *result;
1626 char *kwnames[] = {
1627 NULL
1628 };
1629
1630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1631 {
1632 if (!wxPyCheckForApp()) SWIG_fail;
1633 PyThreadState* __tstate = wxPyBeginAllowThreads();
1634 result = (wxBitmapButton *)new wxBitmapButton();
1635
1636 wxPyEndAllowThreads(__tstate);
1637 if (PyErr_Occurred()) SWIG_fail;
1638 }
1639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1640 return resultobj;
1641 fail:
1642 return NULL;
1643 }
1644
1645
1646 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1647 PyObject *resultobj;
1648 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1649 wxWindow *arg2 = (wxWindow *) 0 ;
1650 int arg3 = (int) -1 ;
1651 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1652 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1653 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1654 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1655 wxSize const &arg6_defvalue = wxDefaultSize ;
1656 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1657 long arg7 = (long) wxBU_AUTODRAW ;
1658 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1659 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1660 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1661 wxString *arg9 = (wxString *) &arg9_defvalue ;
1662 bool result;
1663 wxPoint temp5 ;
1664 wxSize temp6 ;
1665 bool temp9 = false ;
1666 PyObject * obj0 = 0 ;
1667 PyObject * obj1 = 0 ;
1668 PyObject * obj2 = 0 ;
1669 PyObject * obj3 = 0 ;
1670 PyObject * obj4 = 0 ;
1671 PyObject * obj5 = 0 ;
1672 PyObject * obj6 = 0 ;
1673 PyObject * obj7 = 0 ;
1674 PyObject * obj8 = 0 ;
1675 char *kwnames[] = {
1676 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1677 };
1678
1679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1684 if (obj2) {
1685 arg3 = (int)SWIG_As_int(obj2);
1686 if (PyErr_Occurred()) SWIG_fail;
1687 }
1688 if (obj3) {
1689 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1690 SWIG_POINTER_EXCEPTION | 0)) == -1)
1691 SWIG_fail;
1692 if (arg4 == NULL) {
1693 PyErr_SetString(PyExc_TypeError,"null reference");
1694 SWIG_fail;
1695 }
1696 }
1697 if (obj4) {
1698 {
1699 arg5 = &temp5;
1700 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1701 }
1702 }
1703 if (obj5) {
1704 {
1705 arg6 = &temp6;
1706 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1707 }
1708 }
1709 if (obj6) {
1710 arg7 = (long)SWIG_As_long(obj6);
1711 if (PyErr_Occurred()) SWIG_fail;
1712 }
1713 if (obj7) {
1714 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1715 SWIG_POINTER_EXCEPTION | 0)) == -1)
1716 SWIG_fail;
1717 if (arg8 == NULL) {
1718 PyErr_SetString(PyExc_TypeError,"null reference");
1719 SWIG_fail;
1720 }
1721 }
1722 if (obj8) {
1723 {
1724 arg9 = wxString_in_helper(obj8);
1725 if (arg9 == NULL) SWIG_fail;
1726 temp9 = true;
1727 }
1728 }
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 {
1737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1738 }
1739 {
1740 if (temp9)
1741 delete arg9;
1742 }
1743 return resultobj;
1744 fail:
1745 {
1746 if (temp9)
1747 delete arg9;
1748 }
1749 return NULL;
1750 }
1751
1752
1753 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1754 PyObject *resultobj;
1755 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1756 wxBitmap result;
1757 PyObject * obj0 = 0 ;
1758 char *kwnames[] = {
1759 (char *) "self", NULL
1760 };
1761
1762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 result = (arg1)->GetBitmapLabel();
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 {
1773 wxBitmap * resultptr;
1774 resultptr = new wxBitmap((wxBitmap &) result);
1775 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1776 }
1777 return resultobj;
1778 fail:
1779 return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1784 PyObject *resultobj;
1785 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1786 wxBitmap result;
1787 PyObject * obj0 = 0 ;
1788 char *kwnames[] = {
1789 (char *) "self", NULL
1790 };
1791
1792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 result = (arg1)->GetBitmapDisabled();
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) SWIG_fail;
1801 }
1802 {
1803 wxBitmap * resultptr;
1804 resultptr = new wxBitmap((wxBitmap &) result);
1805 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1806 }
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1816 wxBitmap result;
1817 PyObject * obj0 = 0 ;
1818 char *kwnames[] = {
1819 (char *) "self", NULL
1820 };
1821
1822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1825 {
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 result = (arg1)->GetBitmapFocus();
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) SWIG_fail;
1831 }
1832 {
1833 wxBitmap * resultptr;
1834 resultptr = new wxBitmap((wxBitmap &) result);
1835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1836 }
1837 return resultobj;
1838 fail:
1839 return NULL;
1840 }
1841
1842
1843 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1844 PyObject *resultobj;
1845 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1846 wxBitmap result;
1847 PyObject * obj0 = 0 ;
1848 char *kwnames[] = {
1849 (char *) "self", NULL
1850 };
1851
1852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1855 {
1856 PyThreadState* __tstate = wxPyBeginAllowThreads();
1857 result = (arg1)->GetBitmapSelected();
1858
1859 wxPyEndAllowThreads(__tstate);
1860 if (PyErr_Occurred()) SWIG_fail;
1861 }
1862 {
1863 wxBitmap * resultptr;
1864 resultptr = new wxBitmap((wxBitmap &) result);
1865 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1866 }
1867 return resultobj;
1868 fail:
1869 return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1876 wxBitmap *arg2 = 0 ;
1877 PyObject * obj0 = 0 ;
1878 PyObject * obj1 = 0 ;
1879 char *kwnames[] = {
1880 (char *) "self",(char *) "bitmap", NULL
1881 };
1882
1883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1886 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1887 SWIG_POINTER_EXCEPTION | 0)) == -1)
1888 SWIG_fail;
1889 if (arg2 == NULL) {
1890 PyErr_SetString(PyExc_TypeError,"null reference");
1891 SWIG_fail;
1892 }
1893 {
1894 PyThreadState* __tstate = wxPyBeginAllowThreads();
1895 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1896
1897 wxPyEndAllowThreads(__tstate);
1898 if (PyErr_Occurred()) SWIG_fail;
1899 }
1900 Py_INCREF(Py_None); resultobj = Py_None;
1901 return resultobj;
1902 fail:
1903 return NULL;
1904 }
1905
1906
1907 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1908 PyObject *resultobj;
1909 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1910 wxBitmap *arg2 = 0 ;
1911 PyObject * obj0 = 0 ;
1912 PyObject * obj1 = 0 ;
1913 char *kwnames[] = {
1914 (char *) "self",(char *) "bitmap", NULL
1915 };
1916
1917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1920 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1921 SWIG_POINTER_EXCEPTION | 0)) == -1)
1922 SWIG_fail;
1923 if (arg2 == NULL) {
1924 PyErr_SetString(PyExc_TypeError,"null reference");
1925 SWIG_fail;
1926 }
1927 {
1928 PyThreadState* __tstate = wxPyBeginAllowThreads();
1929 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1930
1931 wxPyEndAllowThreads(__tstate);
1932 if (PyErr_Occurred()) SWIG_fail;
1933 }
1934 Py_INCREF(Py_None); resultobj = Py_None;
1935 return resultobj;
1936 fail:
1937 return NULL;
1938 }
1939
1940
1941 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1942 PyObject *resultobj;
1943 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1944 wxBitmap *arg2 = 0 ;
1945 PyObject * obj0 = 0 ;
1946 PyObject * obj1 = 0 ;
1947 char *kwnames[] = {
1948 (char *) "self",(char *) "bitmap", NULL
1949 };
1950
1951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1954 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1955 SWIG_POINTER_EXCEPTION | 0)) == -1)
1956 SWIG_fail;
1957 if (arg2 == NULL) {
1958 PyErr_SetString(PyExc_TypeError,"null reference");
1959 SWIG_fail;
1960 }
1961 {
1962 PyThreadState* __tstate = wxPyBeginAllowThreads();
1963 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1964
1965 wxPyEndAllowThreads(__tstate);
1966 if (PyErr_Occurred()) SWIG_fail;
1967 }
1968 Py_INCREF(Py_None); resultobj = Py_None;
1969 return resultobj;
1970 fail:
1971 return NULL;
1972 }
1973
1974
1975 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1976 PyObject *resultobj;
1977 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1978 wxBitmap *arg2 = 0 ;
1979 PyObject * obj0 = 0 ;
1980 PyObject * obj1 = 0 ;
1981 char *kwnames[] = {
1982 (char *) "self",(char *) "bitmap", NULL
1983 };
1984
1985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1988 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1989 SWIG_POINTER_EXCEPTION | 0)) == -1)
1990 SWIG_fail;
1991 if (arg2 == NULL) {
1992 PyErr_SetString(PyExc_TypeError,"null reference");
1993 SWIG_fail;
1994 }
1995 {
1996 PyThreadState* __tstate = wxPyBeginAllowThreads();
1997 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1998
1999 wxPyEndAllowThreads(__tstate);
2000 if (PyErr_Occurred()) SWIG_fail;
2001 }
2002 Py_INCREF(Py_None); resultobj = Py_None;
2003 return resultobj;
2004 fail:
2005 return NULL;
2006 }
2007
2008
2009 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2010 PyObject *resultobj;
2011 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2012 int arg2 ;
2013 int arg3 ;
2014 PyObject * obj0 = 0 ;
2015 PyObject * obj1 = 0 ;
2016 PyObject * obj2 = 0 ;
2017 char *kwnames[] = {
2018 (char *) "self",(char *) "x",(char *) "y", NULL
2019 };
2020
2021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2024 arg2 = (int)SWIG_As_int(obj1);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 arg3 = (int)SWIG_As_int(obj2);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 {
2029 PyThreadState* __tstate = wxPyBeginAllowThreads();
2030 (arg1)->SetMargins(arg2,arg3);
2031
2032 wxPyEndAllowThreads(__tstate);
2033 if (PyErr_Occurred()) SWIG_fail;
2034 }
2035 Py_INCREF(Py_None); resultobj = Py_None;
2036 return resultobj;
2037 fail:
2038 return NULL;
2039 }
2040
2041
2042 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2043 PyObject *resultobj;
2044 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2045 int result;
2046 PyObject * obj0 = 0 ;
2047 char *kwnames[] = {
2048 (char *) "self", NULL
2049 };
2050
2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2054 {
2055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2056 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2057
2058 wxPyEndAllowThreads(__tstate);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 resultobj = SWIG_From_int((int)result);
2062 return resultobj;
2063 fail:
2064 return NULL;
2065 }
2066
2067
2068 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2069 PyObject *resultobj;
2070 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2071 int result;
2072 PyObject * obj0 = 0 ;
2073 char *kwnames[] = {
2074 (char *) "self", NULL
2075 };
2076
2077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 resultobj = SWIG_From_int((int)result);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2095 PyObject *obj;
2096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2097 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2098 Py_INCREF(obj);
2099 return Py_BuildValue((char *)"");
2100 }
2101 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2102 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2103 return 1;
2104 }
2105
2106
2107 static PyObject *_wrap_CheckBoxNameStr_get() {
2108 PyObject *pyobj;
2109
2110 {
2111 #if wxUSE_UNICODE
2112 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2113 #else
2114 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2115 #endif
2116 }
2117 return pyobj;
2118 }
2119
2120
2121 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2122 PyObject *resultobj;
2123 wxWindow *arg1 = (wxWindow *) 0 ;
2124 int arg2 = (int) -1 ;
2125 wxString const &arg3_defvalue = wxPyEmptyString ;
2126 wxString *arg3 = (wxString *) &arg3_defvalue ;
2127 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2128 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2129 wxSize const &arg5_defvalue = wxDefaultSize ;
2130 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2131 long arg6 = (long) 0 ;
2132 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2133 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2134 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2135 wxString *arg8 = (wxString *) &arg8_defvalue ;
2136 wxCheckBox *result;
2137 bool temp3 = false ;
2138 wxPoint temp4 ;
2139 wxSize temp5 ;
2140 bool temp8 = false ;
2141 PyObject * obj0 = 0 ;
2142 PyObject * obj1 = 0 ;
2143 PyObject * obj2 = 0 ;
2144 PyObject * obj3 = 0 ;
2145 PyObject * obj4 = 0 ;
2146 PyObject * obj5 = 0 ;
2147 PyObject * obj6 = 0 ;
2148 PyObject * obj7 = 0 ;
2149 char *kwnames[] = {
2150 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2151 };
2152
2153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2156 if (obj1) {
2157 arg2 = (int)SWIG_As_int(obj1);
2158 if (PyErr_Occurred()) SWIG_fail;
2159 }
2160 if (obj2) {
2161 {
2162 arg3 = wxString_in_helper(obj2);
2163 if (arg3 == NULL) SWIG_fail;
2164 temp3 = true;
2165 }
2166 }
2167 if (obj3) {
2168 {
2169 arg4 = &temp4;
2170 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2171 }
2172 }
2173 if (obj4) {
2174 {
2175 arg5 = &temp5;
2176 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2177 }
2178 }
2179 if (obj5) {
2180 arg6 = (long)SWIG_As_long(obj5);
2181 if (PyErr_Occurred()) SWIG_fail;
2182 }
2183 if (obj6) {
2184 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2185 SWIG_POINTER_EXCEPTION | 0)) == -1)
2186 SWIG_fail;
2187 if (arg7 == NULL) {
2188 PyErr_SetString(PyExc_TypeError,"null reference");
2189 SWIG_fail;
2190 }
2191 }
2192 if (obj7) {
2193 {
2194 arg8 = wxString_in_helper(obj7);
2195 if (arg8 == NULL) SWIG_fail;
2196 temp8 = true;
2197 }
2198 }
2199 {
2200 if (!wxPyCheckForApp()) SWIG_fail;
2201 PyThreadState* __tstate = wxPyBeginAllowThreads();
2202 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2203
2204 wxPyEndAllowThreads(__tstate);
2205 if (PyErr_Occurred()) SWIG_fail;
2206 }
2207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2208 {
2209 if (temp3)
2210 delete arg3;
2211 }
2212 {
2213 if (temp8)
2214 delete arg8;
2215 }
2216 return resultobj;
2217 fail:
2218 {
2219 if (temp3)
2220 delete arg3;
2221 }
2222 {
2223 if (temp8)
2224 delete arg8;
2225 }
2226 return NULL;
2227 }
2228
2229
2230 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2231 PyObject *resultobj;
2232 wxCheckBox *result;
2233 char *kwnames[] = {
2234 NULL
2235 };
2236
2237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2238 {
2239 if (!wxPyCheckForApp()) SWIG_fail;
2240 PyThreadState* __tstate = wxPyBeginAllowThreads();
2241 result = (wxCheckBox *)new wxCheckBox();
2242
2243 wxPyEndAllowThreads(__tstate);
2244 if (PyErr_Occurred()) SWIG_fail;
2245 }
2246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2247 return resultobj;
2248 fail:
2249 return NULL;
2250 }
2251
2252
2253 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2254 PyObject *resultobj;
2255 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2256 wxWindow *arg2 = (wxWindow *) 0 ;
2257 int arg3 = (int) -1 ;
2258 wxString const &arg4_defvalue = wxPyEmptyString ;
2259 wxString *arg4 = (wxString *) &arg4_defvalue ;
2260 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2261 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2262 wxSize const &arg6_defvalue = wxDefaultSize ;
2263 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2264 long arg7 = (long) 0 ;
2265 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2266 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2267 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2268 wxString *arg9 = (wxString *) &arg9_defvalue ;
2269 bool result;
2270 bool temp4 = false ;
2271 wxPoint temp5 ;
2272 wxSize temp6 ;
2273 bool temp9 = false ;
2274 PyObject * obj0 = 0 ;
2275 PyObject * obj1 = 0 ;
2276 PyObject * obj2 = 0 ;
2277 PyObject * obj3 = 0 ;
2278 PyObject * obj4 = 0 ;
2279 PyObject * obj5 = 0 ;
2280 PyObject * obj6 = 0 ;
2281 PyObject * obj7 = 0 ;
2282 PyObject * obj8 = 0 ;
2283 char *kwnames[] = {
2284 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2285 };
2286
2287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2288 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2289 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2290 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2292 if (obj2) {
2293 arg3 = (int)SWIG_As_int(obj2);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 }
2296 if (obj3) {
2297 {
2298 arg4 = wxString_in_helper(obj3);
2299 if (arg4 == NULL) SWIG_fail;
2300 temp4 = true;
2301 }
2302 }
2303 if (obj4) {
2304 {
2305 arg5 = &temp5;
2306 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2307 }
2308 }
2309 if (obj5) {
2310 {
2311 arg6 = &temp6;
2312 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2313 }
2314 }
2315 if (obj6) {
2316 arg7 = (long)SWIG_As_long(obj6);
2317 if (PyErr_Occurred()) SWIG_fail;
2318 }
2319 if (obj7) {
2320 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2321 SWIG_POINTER_EXCEPTION | 0)) == -1)
2322 SWIG_fail;
2323 if (arg8 == NULL) {
2324 PyErr_SetString(PyExc_TypeError,"null reference");
2325 SWIG_fail;
2326 }
2327 }
2328 if (obj8) {
2329 {
2330 arg9 = wxString_in_helper(obj8);
2331 if (arg9 == NULL) SWIG_fail;
2332 temp9 = true;
2333 }
2334 }
2335 {
2336 PyThreadState* __tstate = wxPyBeginAllowThreads();
2337 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2338
2339 wxPyEndAllowThreads(__tstate);
2340 if (PyErr_Occurred()) SWIG_fail;
2341 }
2342 {
2343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2344 }
2345 {
2346 if (temp4)
2347 delete arg4;
2348 }
2349 {
2350 if (temp9)
2351 delete arg9;
2352 }
2353 return resultobj;
2354 fail:
2355 {
2356 if (temp4)
2357 delete arg4;
2358 }
2359 {
2360 if (temp9)
2361 delete arg9;
2362 }
2363 return NULL;
2364 }
2365
2366
2367 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2368 PyObject *resultobj;
2369 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2370 bool result;
2371 PyObject * obj0 = 0 ;
2372 char *kwnames[] = {
2373 (char *) "self", NULL
2374 };
2375
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 result = (bool)(arg1)->GetValue();
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 {
2387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2388 }
2389 return resultobj;
2390 fail:
2391 return NULL;
2392 }
2393
2394
2395 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2396 PyObject *resultobj;
2397 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2398 bool result;
2399 PyObject * obj0 = 0 ;
2400 char *kwnames[] = {
2401 (char *) "self", NULL
2402 };
2403
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2407 {
2408 PyThreadState* __tstate = wxPyBeginAllowThreads();
2409 result = (bool)(arg1)->IsChecked();
2410
2411 wxPyEndAllowThreads(__tstate);
2412 if (PyErr_Occurred()) SWIG_fail;
2413 }
2414 {
2415 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2416 }
2417 return resultobj;
2418 fail:
2419 return NULL;
2420 }
2421
2422
2423 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2424 PyObject *resultobj;
2425 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2426 bool arg2 ;
2427 PyObject * obj0 = 0 ;
2428 PyObject * obj1 = 0 ;
2429 char *kwnames[] = {
2430 (char *) "self",(char *) "state", NULL
2431 };
2432
2433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2436 arg2 = (bool)SWIG_As_bool(obj1);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 {
2439 PyThreadState* __tstate = wxPyBeginAllowThreads();
2440 (arg1)->SetValue(arg2);
2441
2442 wxPyEndAllowThreads(__tstate);
2443 if (PyErr_Occurred()) SWIG_fail;
2444 }
2445 Py_INCREF(Py_None); resultobj = Py_None;
2446 return resultobj;
2447 fail:
2448 return NULL;
2449 }
2450
2451
2452 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2453 PyObject *resultobj;
2454 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2455 int result;
2456 PyObject * obj0 = 0 ;
2457 char *kwnames[] = {
2458 (char *) "self", NULL
2459 };
2460
2461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 resultobj = SWIG_From_int((int)result);
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2481 int arg2 ;
2482 PyObject * obj0 = 0 ;
2483 PyObject * obj1 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self",(char *) "state", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2491 arg2 = (int)SWIG_As_int(obj1);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 {
2494 PyThreadState* __tstate = wxPyBeginAllowThreads();
2495 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2496
2497 wxPyEndAllowThreads(__tstate);
2498 if (PyErr_Occurred()) SWIG_fail;
2499 }
2500 Py_INCREF(Py_None); resultobj = Py_None;
2501 return resultobj;
2502 fail:
2503 return NULL;
2504 }
2505
2506
2507 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2508 PyObject *resultobj;
2509 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2510 bool result;
2511 PyObject * obj0 = 0 ;
2512 char *kwnames[] = {
2513 (char *) "self", NULL
2514 };
2515
2516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2519 {
2520 PyThreadState* __tstate = wxPyBeginAllowThreads();
2521 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2522
2523 wxPyEndAllowThreads(__tstate);
2524 if (PyErr_Occurred()) SWIG_fail;
2525 }
2526 {
2527 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2528 }
2529 return resultobj;
2530 fail:
2531 return NULL;
2532 }
2533
2534
2535 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2536 PyObject *resultobj;
2537 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2538 bool result;
2539 PyObject * obj0 = 0 ;
2540 char *kwnames[] = {
2541 (char *) "self", NULL
2542 };
2543
2544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2547 {
2548 PyThreadState* __tstate = wxPyBeginAllowThreads();
2549 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2550
2551 wxPyEndAllowThreads(__tstate);
2552 if (PyErr_Occurred()) SWIG_fail;
2553 }
2554 {
2555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2556 }
2557 return resultobj;
2558 fail:
2559 return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2566 wxVisualAttributes result;
2567 PyObject * obj0 = 0 ;
2568 char *kwnames[] = {
2569 (char *) "variant", NULL
2570 };
2571
2572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2573 if (obj0) {
2574 arg1 = (int)SWIG_As_int(obj0);
2575 if (PyErr_Occurred()) SWIG_fail;
2576 }
2577 {
2578 if (!wxPyCheckForApp()) SWIG_fail;
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) SWIG_fail;
2584 }
2585 {
2586 wxVisualAttributes * resultptr;
2587 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2588 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2589 }
2590 return resultobj;
2591 fail:
2592 return NULL;
2593 }
2594
2595
2596 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2597 PyObject *obj;
2598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2599 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2600 Py_INCREF(obj);
2601 return Py_BuildValue((char *)"");
2602 }
2603 static int _wrap_ChoiceNameStr_set(PyObject *) {
2604 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2605 return 1;
2606 }
2607
2608
2609 static PyObject *_wrap_ChoiceNameStr_get() {
2610 PyObject *pyobj;
2611
2612 {
2613 #if wxUSE_UNICODE
2614 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2615 #else
2616 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2617 #endif
2618 }
2619 return pyobj;
2620 }
2621
2622
2623 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2624 PyObject *resultobj;
2625 wxWindow *arg1 = (wxWindow *) 0 ;
2626 int arg2 = (int) -1 ;
2627 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2628 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2629 wxSize const &arg4_defvalue = wxDefaultSize ;
2630 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2631 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2632 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2633 long arg6 = (long) 0 ;
2634 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2635 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2636 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2637 wxString *arg8 = (wxString *) &arg8_defvalue ;
2638 wxChoice *result;
2639 wxPoint temp3 ;
2640 wxSize temp4 ;
2641 bool temp5 = false ;
2642 bool temp8 = false ;
2643 PyObject * obj0 = 0 ;
2644 PyObject * obj1 = 0 ;
2645 PyObject * obj2 = 0 ;
2646 PyObject * obj3 = 0 ;
2647 PyObject * obj4 = 0 ;
2648 PyObject * obj5 = 0 ;
2649 PyObject * obj6 = 0 ;
2650 PyObject * obj7 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2658 if (obj1) {
2659 arg2 = (int)SWIG_As_int(obj1);
2660 if (PyErr_Occurred()) SWIG_fail;
2661 }
2662 if (obj2) {
2663 {
2664 arg3 = &temp3;
2665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2666 }
2667 }
2668 if (obj3) {
2669 {
2670 arg4 = &temp4;
2671 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2672 }
2673 }
2674 if (obj4) {
2675 {
2676 if (! PySequence_Check(obj4)) {
2677 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2678 SWIG_fail;
2679 }
2680 arg5 = new wxArrayString;
2681 temp5 = true;
2682 int i, len=PySequence_Length(obj4);
2683 for (i=0; i<len; i++) {
2684 PyObject* item = PySequence_GetItem(obj4, i);
2685 #if wxUSE_UNICODE
2686 PyObject* str = PyObject_Unicode(item);
2687 #else
2688 PyObject* str = PyObject_Str(item);
2689 #endif
2690 if (PyErr_Occurred()) SWIG_fail;
2691 arg5->Add(Py2wxString(str));
2692 Py_DECREF(item);
2693 Py_DECREF(str);
2694 }
2695 }
2696 }
2697 if (obj5) {
2698 arg6 = (long)SWIG_As_long(obj5);
2699 if (PyErr_Occurred()) SWIG_fail;
2700 }
2701 if (obj6) {
2702 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2703 SWIG_POINTER_EXCEPTION | 0)) == -1)
2704 SWIG_fail;
2705 if (arg7 == NULL) {
2706 PyErr_SetString(PyExc_TypeError,"null reference");
2707 SWIG_fail;
2708 }
2709 }
2710 if (obj7) {
2711 {
2712 arg8 = wxString_in_helper(obj7);
2713 if (arg8 == NULL) SWIG_fail;
2714 temp8 = true;
2715 }
2716 }
2717 {
2718 if (!wxPyCheckForApp()) SWIG_fail;
2719 PyThreadState* __tstate = wxPyBeginAllowThreads();
2720 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2721
2722 wxPyEndAllowThreads(__tstate);
2723 if (PyErr_Occurred()) SWIG_fail;
2724 }
2725 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2726 {
2727 if (temp5) delete arg5;
2728 }
2729 {
2730 if (temp8)
2731 delete arg8;
2732 }
2733 return resultobj;
2734 fail:
2735 {
2736 if (temp5) delete arg5;
2737 }
2738 {
2739 if (temp8)
2740 delete arg8;
2741 }
2742 return NULL;
2743 }
2744
2745
2746 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2747 PyObject *resultobj;
2748 wxChoice *result;
2749 char *kwnames[] = {
2750 NULL
2751 };
2752
2753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2754 {
2755 if (!wxPyCheckForApp()) SWIG_fail;
2756 PyThreadState* __tstate = wxPyBeginAllowThreads();
2757 result = (wxChoice *)new wxChoice();
2758
2759 wxPyEndAllowThreads(__tstate);
2760 if (PyErr_Occurred()) SWIG_fail;
2761 }
2762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2763 return resultobj;
2764 fail:
2765 return NULL;
2766 }
2767
2768
2769 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2770 PyObject *resultobj;
2771 wxChoice *arg1 = (wxChoice *) 0 ;
2772 wxWindow *arg2 = (wxWindow *) 0 ;
2773 int arg3 = (int) -1 ;
2774 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2775 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2776 wxSize const &arg5_defvalue = wxDefaultSize ;
2777 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2778 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2779 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2780 long arg7 = (long) 0 ;
2781 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2782 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2783 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2784 wxString *arg9 = (wxString *) &arg9_defvalue ;
2785 bool result;
2786 wxPoint temp4 ;
2787 wxSize temp5 ;
2788 bool temp6 = false ;
2789 bool temp9 = false ;
2790 PyObject * obj0 = 0 ;
2791 PyObject * obj1 = 0 ;
2792 PyObject * obj2 = 0 ;
2793 PyObject * obj3 = 0 ;
2794 PyObject * obj4 = 0 ;
2795 PyObject * obj5 = 0 ;
2796 PyObject * obj6 = 0 ;
2797 PyObject * obj7 = 0 ;
2798 PyObject * obj8 = 0 ;
2799 char *kwnames[] = {
2800 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2801 };
2802
2803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2808 if (obj2) {
2809 arg3 = (int)SWIG_As_int(obj2);
2810 if (PyErr_Occurred()) SWIG_fail;
2811 }
2812 if (obj3) {
2813 {
2814 arg4 = &temp4;
2815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2816 }
2817 }
2818 if (obj4) {
2819 {
2820 arg5 = &temp5;
2821 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2822 }
2823 }
2824 if (obj5) {
2825 {
2826 if (! PySequence_Check(obj5)) {
2827 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2828 SWIG_fail;
2829 }
2830 arg6 = new wxArrayString;
2831 temp6 = true;
2832 int i, len=PySequence_Length(obj5);
2833 for (i=0; i<len; i++) {
2834 PyObject* item = PySequence_GetItem(obj5, i);
2835 #if wxUSE_UNICODE
2836 PyObject* str = PyObject_Unicode(item);
2837 #else
2838 PyObject* str = PyObject_Str(item);
2839 #endif
2840 if (PyErr_Occurred()) SWIG_fail;
2841 arg6->Add(Py2wxString(str));
2842 Py_DECREF(item);
2843 Py_DECREF(str);
2844 }
2845 }
2846 }
2847 if (obj6) {
2848 arg7 = (long)SWIG_As_long(obj6);
2849 if (PyErr_Occurred()) SWIG_fail;
2850 }
2851 if (obj7) {
2852 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2853 SWIG_POINTER_EXCEPTION | 0)) == -1)
2854 SWIG_fail;
2855 if (arg8 == NULL) {
2856 PyErr_SetString(PyExc_TypeError,"null reference");
2857 SWIG_fail;
2858 }
2859 }
2860 if (obj8) {
2861 {
2862 arg9 = wxString_in_helper(obj8);
2863 if (arg9 == NULL) SWIG_fail;
2864 temp9 = true;
2865 }
2866 }
2867 {
2868 PyThreadState* __tstate = wxPyBeginAllowThreads();
2869 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2870
2871 wxPyEndAllowThreads(__tstate);
2872 if (PyErr_Occurred()) SWIG_fail;
2873 }
2874 {
2875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2876 }
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return resultobj;
2885 fail:
2886 {
2887 if (temp6) delete arg6;
2888 }
2889 {
2890 if (temp9)
2891 delete arg9;
2892 }
2893 return NULL;
2894 }
2895
2896
2897 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2898 PyObject *resultobj;
2899 wxChoice *arg1 = (wxChoice *) 0 ;
2900 int arg2 ;
2901 PyObject * obj0 = 0 ;
2902 PyObject * obj1 = 0 ;
2903 char *kwnames[] = {
2904 (char *) "self",(char *) "n", NULL
2905 };
2906
2907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2910 arg2 = (int)SWIG_As_int(obj1);
2911 if (PyErr_Occurred()) SWIG_fail;
2912 {
2913 PyThreadState* __tstate = wxPyBeginAllowThreads();
2914 (arg1)->SetSelection(arg2);
2915
2916 wxPyEndAllowThreads(__tstate);
2917 if (PyErr_Occurred()) SWIG_fail;
2918 }
2919 Py_INCREF(Py_None); resultobj = Py_None;
2920 return resultobj;
2921 fail:
2922 return NULL;
2923 }
2924
2925
2926 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2927 PyObject *resultobj;
2928 wxChoice *arg1 = (wxChoice *) 0 ;
2929 wxString *arg2 = 0 ;
2930 bool result;
2931 bool temp2 = false ;
2932 PyObject * obj0 = 0 ;
2933 PyObject * obj1 = 0 ;
2934 char *kwnames[] = {
2935 (char *) "self",(char *) "string", NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2941 {
2942 arg2 = wxString_in_helper(obj1);
2943 if (arg2 == NULL) SWIG_fail;
2944 temp2 = true;
2945 }
2946 {
2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
2948 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2949
2950 wxPyEndAllowThreads(__tstate);
2951 if (PyErr_Occurred()) SWIG_fail;
2952 }
2953 {
2954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2955 }
2956 {
2957 if (temp2)
2958 delete arg2;
2959 }
2960 return resultobj;
2961 fail:
2962 {
2963 if (temp2)
2964 delete arg2;
2965 }
2966 return NULL;
2967 }
2968
2969
2970 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2971 PyObject *resultobj;
2972 wxChoice *arg1 = (wxChoice *) 0 ;
2973 int arg2 ;
2974 wxString *arg3 = 0 ;
2975 bool temp3 = false ;
2976 PyObject * obj0 = 0 ;
2977 PyObject * obj1 = 0 ;
2978 PyObject * obj2 = 0 ;
2979 char *kwnames[] = {
2980 (char *) "self",(char *) "n",(char *) "string", NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2986 arg2 = (int)SWIG_As_int(obj1);
2987 if (PyErr_Occurred()) SWIG_fail;
2988 {
2989 arg3 = wxString_in_helper(obj2);
2990 if (arg3 == NULL) SWIG_fail;
2991 temp3 = true;
2992 }
2993 {
2994 PyThreadState* __tstate = wxPyBeginAllowThreads();
2995 (arg1)->SetString(arg2,(wxString const &)*arg3);
2996
2997 wxPyEndAllowThreads(__tstate);
2998 if (PyErr_Occurred()) SWIG_fail;
2999 }
3000 Py_INCREF(Py_None); resultobj = Py_None;
3001 {
3002 if (temp3)
3003 delete arg3;
3004 }
3005 return resultobj;
3006 fail:
3007 {
3008 if (temp3)
3009 delete arg3;
3010 }
3011 return NULL;
3012 }
3013
3014
3015 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3016 PyObject *resultobj;
3017 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3018 wxVisualAttributes result;
3019 PyObject * obj0 = 0 ;
3020 char *kwnames[] = {
3021 (char *) "variant", NULL
3022 };
3023
3024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3025 if (obj0) {
3026 arg1 = (int)SWIG_As_int(obj0);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 {
3030 if (!wxPyCheckForApp()) SWIG_fail;
3031 PyThreadState* __tstate = wxPyBeginAllowThreads();
3032 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3033
3034 wxPyEndAllowThreads(__tstate);
3035 if (PyErr_Occurred()) SWIG_fail;
3036 }
3037 {
3038 wxVisualAttributes * resultptr;
3039 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3040 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3041 }
3042 return resultobj;
3043 fail:
3044 return NULL;
3045 }
3046
3047
3048 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3049 PyObject *obj;
3050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3051 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3052 Py_INCREF(obj);
3053 return Py_BuildValue((char *)"");
3054 }
3055 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3056 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3057 return 1;
3058 }
3059
3060
3061 static PyObject *_wrap_ComboBoxNameStr_get() {
3062 PyObject *pyobj;
3063
3064 {
3065 #if wxUSE_UNICODE
3066 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3067 #else
3068 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3069 #endif
3070 }
3071 return pyobj;
3072 }
3073
3074
3075 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3076 PyObject *resultobj;
3077 wxWindow *arg1 = (wxWindow *) 0 ;
3078 int arg2 = (int) -1 ;
3079 wxString const &arg3_defvalue = wxPyEmptyString ;
3080 wxString *arg3 = (wxString *) &arg3_defvalue ;
3081 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3082 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3083 wxSize const &arg5_defvalue = wxDefaultSize ;
3084 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3085 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3086 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3087 long arg7 = (long) 0 ;
3088 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3089 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3090 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3091 wxString *arg9 = (wxString *) &arg9_defvalue ;
3092 wxComboBox *result;
3093 bool temp3 = false ;
3094 wxPoint temp4 ;
3095 wxSize temp5 ;
3096 bool temp6 = false ;
3097 bool temp9 = false ;
3098 PyObject * obj0 = 0 ;
3099 PyObject * obj1 = 0 ;
3100 PyObject * obj2 = 0 ;
3101 PyObject * obj3 = 0 ;
3102 PyObject * obj4 = 0 ;
3103 PyObject * obj5 = 0 ;
3104 PyObject * obj6 = 0 ;
3105 PyObject * obj7 = 0 ;
3106 PyObject * obj8 = 0 ;
3107 char *kwnames[] = {
3108 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3109 };
3110
3111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3114 if (obj1) {
3115 arg2 = (int)SWIG_As_int(obj1);
3116 if (PyErr_Occurred()) SWIG_fail;
3117 }
3118 if (obj2) {
3119 {
3120 arg3 = wxString_in_helper(obj2);
3121 if (arg3 == NULL) SWIG_fail;
3122 temp3 = true;
3123 }
3124 }
3125 if (obj3) {
3126 {
3127 arg4 = &temp4;
3128 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3129 }
3130 }
3131 if (obj4) {
3132 {
3133 arg5 = &temp5;
3134 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3135 }
3136 }
3137 if (obj5) {
3138 {
3139 if (! PySequence_Check(obj5)) {
3140 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3141 SWIG_fail;
3142 }
3143 arg6 = new wxArrayString;
3144 temp6 = true;
3145 int i, len=PySequence_Length(obj5);
3146 for (i=0; i<len; i++) {
3147 PyObject* item = PySequence_GetItem(obj5, i);
3148 #if wxUSE_UNICODE
3149 PyObject* str = PyObject_Unicode(item);
3150 #else
3151 PyObject* str = PyObject_Str(item);
3152 #endif
3153 if (PyErr_Occurred()) SWIG_fail;
3154 arg6->Add(Py2wxString(str));
3155 Py_DECREF(item);
3156 Py_DECREF(str);
3157 }
3158 }
3159 }
3160 if (obj6) {
3161 arg7 = (long)SWIG_As_long(obj6);
3162 if (PyErr_Occurred()) SWIG_fail;
3163 }
3164 if (obj7) {
3165 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3166 SWIG_POINTER_EXCEPTION | 0)) == -1)
3167 SWIG_fail;
3168 if (arg8 == NULL) {
3169 PyErr_SetString(PyExc_TypeError,"null reference");
3170 SWIG_fail;
3171 }
3172 }
3173 if (obj8) {
3174 {
3175 arg9 = wxString_in_helper(obj8);
3176 if (arg9 == NULL) SWIG_fail;
3177 temp9 = true;
3178 }
3179 }
3180 {
3181 if (!wxPyCheckForApp()) SWIG_fail;
3182 PyThreadState* __tstate = wxPyBeginAllowThreads();
3183 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);
3184
3185 wxPyEndAllowThreads(__tstate);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3189 {
3190 if (temp3)
3191 delete arg3;
3192 }
3193 {
3194 if (temp6) delete arg6;
3195 }
3196 {
3197 if (temp9)
3198 delete arg9;
3199 }
3200 return resultobj;
3201 fail:
3202 {
3203 if (temp3)
3204 delete arg3;
3205 }
3206 {
3207 if (temp6) delete arg6;
3208 }
3209 {
3210 if (temp9)
3211 delete arg9;
3212 }
3213 return NULL;
3214 }
3215
3216
3217 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3218 PyObject *resultobj;
3219 wxComboBox *result;
3220 char *kwnames[] = {
3221 NULL
3222 };
3223
3224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3225 {
3226 if (!wxPyCheckForApp()) SWIG_fail;
3227 PyThreadState* __tstate = wxPyBeginAllowThreads();
3228 result = (wxComboBox *)new wxComboBox();
3229
3230 wxPyEndAllowThreads(__tstate);
3231 if (PyErr_Occurred()) SWIG_fail;
3232 }
3233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3234 return resultobj;
3235 fail:
3236 return NULL;
3237 }
3238
3239
3240 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3241 PyObject *resultobj;
3242 wxComboBox *arg1 = (wxComboBox *) 0 ;
3243 wxWindow *arg2 = (wxWindow *) 0 ;
3244 int arg3 = (int) -1 ;
3245 wxString const &arg4_defvalue = wxPyEmptyString ;
3246 wxString *arg4 = (wxString *) &arg4_defvalue ;
3247 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3248 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3249 wxSize const &arg6_defvalue = wxDefaultSize ;
3250 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3251 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3252 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3253 long arg8 = (long) 0 ;
3254 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3255 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3256 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3257 wxString *arg10 = (wxString *) &arg10_defvalue ;
3258 bool result;
3259 bool temp4 = false ;
3260 wxPoint temp5 ;
3261 wxSize temp6 ;
3262 bool temp7 = false ;
3263 bool temp10 = false ;
3264 PyObject * obj0 = 0 ;
3265 PyObject * obj1 = 0 ;
3266 PyObject * obj2 = 0 ;
3267 PyObject * obj3 = 0 ;
3268 PyObject * obj4 = 0 ;
3269 PyObject * obj5 = 0 ;
3270 PyObject * obj6 = 0 ;
3271 PyObject * obj7 = 0 ;
3272 PyObject * obj8 = 0 ;
3273 PyObject * obj9 = 0 ;
3274 char *kwnames[] = {
3275 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3276 };
3277
3278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3283 if (obj2) {
3284 arg3 = (int)SWIG_As_int(obj2);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 if (obj3) {
3288 {
3289 arg4 = wxString_in_helper(obj3);
3290 if (arg4 == NULL) SWIG_fail;
3291 temp4 = true;
3292 }
3293 }
3294 if (obj4) {
3295 {
3296 arg5 = &temp5;
3297 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3298 }
3299 }
3300 if (obj5) {
3301 {
3302 arg6 = &temp6;
3303 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3304 }
3305 }
3306 if (obj6) {
3307 {
3308 if (! PySequence_Check(obj6)) {
3309 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3310 SWIG_fail;
3311 }
3312 arg7 = new wxArrayString;
3313 temp7 = true;
3314 int i, len=PySequence_Length(obj6);
3315 for (i=0; i<len; i++) {
3316 PyObject* item = PySequence_GetItem(obj6, i);
3317 #if wxUSE_UNICODE
3318 PyObject* str = PyObject_Unicode(item);
3319 #else
3320 PyObject* str = PyObject_Str(item);
3321 #endif
3322 if (PyErr_Occurred()) SWIG_fail;
3323 arg7->Add(Py2wxString(str));
3324 Py_DECREF(item);
3325 Py_DECREF(str);
3326 }
3327 }
3328 }
3329 if (obj7) {
3330 arg8 = (long)SWIG_As_long(obj7);
3331 if (PyErr_Occurred()) SWIG_fail;
3332 }
3333 if (obj8) {
3334 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3335 SWIG_POINTER_EXCEPTION | 0)) == -1)
3336 SWIG_fail;
3337 if (arg9 == NULL) {
3338 PyErr_SetString(PyExc_TypeError,"null reference");
3339 SWIG_fail;
3340 }
3341 }
3342 if (obj9) {
3343 {
3344 arg10 = wxString_in_helper(obj9);
3345 if (arg10 == NULL) SWIG_fail;
3346 temp10 = true;
3347 }
3348 }
3349 {
3350 PyThreadState* __tstate = wxPyBeginAllowThreads();
3351 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);
3352
3353 wxPyEndAllowThreads(__tstate);
3354 if (PyErr_Occurred()) SWIG_fail;
3355 }
3356 {
3357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3358 }
3359 {
3360 if (temp4)
3361 delete arg4;
3362 }
3363 {
3364 if (temp7) delete arg7;
3365 }
3366 {
3367 if (temp10)
3368 delete arg10;
3369 }
3370 return resultobj;
3371 fail:
3372 {
3373 if (temp4)
3374 delete arg4;
3375 }
3376 {
3377 if (temp7) delete arg7;
3378 }
3379 {
3380 if (temp10)
3381 delete arg10;
3382 }
3383 return NULL;
3384 }
3385
3386
3387 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3388 PyObject *resultobj;
3389 wxComboBox *arg1 = (wxComboBox *) 0 ;
3390 wxString result;
3391 PyObject * obj0 = 0 ;
3392 char *kwnames[] = {
3393 (char *) "self", NULL
3394 };
3395
3396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3399 {
3400 PyThreadState* __tstate = wxPyBeginAllowThreads();
3401 result = ((wxComboBox const *)arg1)->GetValue();
3402
3403 wxPyEndAllowThreads(__tstate);
3404 if (PyErr_Occurred()) SWIG_fail;
3405 }
3406 {
3407 #if wxUSE_UNICODE
3408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3409 #else
3410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3411 #endif
3412 }
3413 return resultobj;
3414 fail:
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxComboBox *arg1 = (wxComboBox *) 0 ;
3422 wxString *arg2 = 0 ;
3423 bool temp2 = false ;
3424 PyObject * obj0 = 0 ;
3425 PyObject * obj1 = 0 ;
3426 char *kwnames[] = {
3427 (char *) "self",(char *) "value", NULL
3428 };
3429
3430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3433 {
3434 arg2 = wxString_in_helper(obj1);
3435 if (arg2 == NULL) SWIG_fail;
3436 temp2 = true;
3437 }
3438 {
3439 PyThreadState* __tstate = wxPyBeginAllowThreads();
3440 (arg1)->SetValue((wxString const &)*arg2);
3441
3442 wxPyEndAllowThreads(__tstate);
3443 if (PyErr_Occurred()) SWIG_fail;
3444 }
3445 Py_INCREF(Py_None); resultobj = Py_None;
3446 {
3447 if (temp2)
3448 delete arg2;
3449 }
3450 return resultobj;
3451 fail:
3452 {
3453 if (temp2)
3454 delete arg2;
3455 }
3456 return NULL;
3457 }
3458
3459
3460 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3461 PyObject *resultobj;
3462 wxComboBox *arg1 = (wxComboBox *) 0 ;
3463 PyObject * obj0 = 0 ;
3464 char *kwnames[] = {
3465 (char *) "self", NULL
3466 };
3467
3468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 (arg1)->Copy();
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 Py_INCREF(Py_None); resultobj = Py_None;
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxComboBox *arg1 = (wxComboBox *) 0 ;
3488 PyObject * obj0 = 0 ;
3489 char *kwnames[] = {
3490 (char *) "self", NULL
3491 };
3492
3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3496 {
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 (arg1)->Cut();
3499
3500 wxPyEndAllowThreads(__tstate);
3501 if (PyErr_Occurred()) SWIG_fail;
3502 }
3503 Py_INCREF(Py_None); resultobj = Py_None;
3504 return resultobj;
3505 fail:
3506 return NULL;
3507 }
3508
3509
3510 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3511 PyObject *resultobj;
3512 wxComboBox *arg1 = (wxComboBox *) 0 ;
3513 PyObject * obj0 = 0 ;
3514 char *kwnames[] = {
3515 (char *) "self", NULL
3516 };
3517
3518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3521 {
3522 PyThreadState* __tstate = wxPyBeginAllowThreads();
3523 (arg1)->Paste();
3524
3525 wxPyEndAllowThreads(__tstate);
3526 if (PyErr_Occurred()) SWIG_fail;
3527 }
3528 Py_INCREF(Py_None); resultobj = Py_None;
3529 return resultobj;
3530 fail:
3531 return NULL;
3532 }
3533
3534
3535 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3536 PyObject *resultobj;
3537 wxComboBox *arg1 = (wxComboBox *) 0 ;
3538 long arg2 ;
3539 PyObject * obj0 = 0 ;
3540 PyObject * obj1 = 0 ;
3541 char *kwnames[] = {
3542 (char *) "self",(char *) "pos", NULL
3543 };
3544
3545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3548 arg2 = (long)SWIG_As_long(obj1);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 {
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 (arg1)->SetInsertionPoint(arg2);
3553
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 Py_INCREF(Py_None); resultobj = Py_None;
3558 return resultobj;
3559 fail:
3560 return NULL;
3561 }
3562
3563
3564 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3565 PyObject *resultobj;
3566 wxComboBox *arg1 = (wxComboBox *) 0 ;
3567 long result;
3568 PyObject * obj0 = 0 ;
3569 char *kwnames[] = {
3570 (char *) "self", NULL
3571 };
3572
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 resultobj = SWIG_From_long((long)result);
3584 return resultobj;
3585 fail:
3586 return NULL;
3587 }
3588
3589
3590 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj;
3592 wxComboBox *arg1 = (wxComboBox *) 0 ;
3593 long result;
3594 PyObject * obj0 = 0 ;
3595 char *kwnames[] = {
3596 (char *) "self", NULL
3597 };
3598
3599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3602 {
3603 PyThreadState* __tstate = wxPyBeginAllowThreads();
3604 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3605
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) SWIG_fail;
3608 }
3609 resultobj = SWIG_From_long((long)result);
3610 return resultobj;
3611 fail:
3612 return NULL;
3613 }
3614
3615
3616 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3617 PyObject *resultobj;
3618 wxComboBox *arg1 = (wxComboBox *) 0 ;
3619 long arg2 ;
3620 long arg3 ;
3621 wxString *arg4 = 0 ;
3622 bool temp4 = false ;
3623 PyObject * obj0 = 0 ;
3624 PyObject * obj1 = 0 ;
3625 PyObject * obj2 = 0 ;
3626 PyObject * obj3 = 0 ;
3627 char *kwnames[] = {
3628 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3629 };
3630
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3634 arg2 = (long)SWIG_As_long(obj1);
3635 if (PyErr_Occurred()) SWIG_fail;
3636 arg3 = (long)SWIG_As_long(obj2);
3637 if (PyErr_Occurred()) SWIG_fail;
3638 {
3639 arg4 = wxString_in_helper(obj3);
3640 if (arg4 == NULL) SWIG_fail;
3641 temp4 = true;
3642 }
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3646
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 Py_INCREF(Py_None); resultobj = Py_None;
3651 {
3652 if (temp4)
3653 delete arg4;
3654 }
3655 return resultobj;
3656 fail:
3657 {
3658 if (temp4)
3659 delete arg4;
3660 }
3661 return NULL;
3662 }
3663
3664
3665 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3666 PyObject *resultobj;
3667 wxComboBox *arg1 = (wxComboBox *) 0 ;
3668 int arg2 ;
3669 PyObject * obj0 = 0 ;
3670 PyObject * obj1 = 0 ;
3671 char *kwnames[] = {
3672 (char *) "self",(char *) "n", NULL
3673 };
3674
3675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3678 arg2 = (int)SWIG_As_int(obj1);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 (arg1)->SetSelection(arg2);
3683
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 Py_INCREF(Py_None); resultobj = Py_None;
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj;
3696 wxComboBox *arg1 = (wxComboBox *) 0 ;
3697 long arg2 ;
3698 long arg3 ;
3699 PyObject * obj0 = 0 ;
3700 PyObject * obj1 = 0 ;
3701 PyObject * obj2 = 0 ;
3702 char *kwnames[] = {
3703 (char *) "self",(char *) "from",(char *) "to", NULL
3704 };
3705
3706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3709 arg2 = (long)SWIG_As_long(obj1);
3710 if (PyErr_Occurred()) SWIG_fail;
3711 arg3 = (long)SWIG_As_long(obj2);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 {
3714 PyThreadState* __tstate = wxPyBeginAllowThreads();
3715 (arg1)->SetSelection(arg2,arg3);
3716
3717 wxPyEndAllowThreads(__tstate);
3718 if (PyErr_Occurred()) SWIG_fail;
3719 }
3720 Py_INCREF(Py_None); resultobj = Py_None;
3721 return resultobj;
3722 fail:
3723 return NULL;
3724 }
3725
3726
3727 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3728 PyObject *resultobj;
3729 wxComboBox *arg1 = (wxComboBox *) 0 ;
3730 wxString *arg2 = 0 ;
3731 bool result;
3732 bool temp2 = false ;
3733 PyObject * obj0 = 0 ;
3734 PyObject * obj1 = 0 ;
3735 char *kwnames[] = {
3736 (char *) "self",(char *) "string", NULL
3737 };
3738
3739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3742 {
3743 arg2 = wxString_in_helper(obj1);
3744 if (arg2 == NULL) SWIG_fail;
3745 temp2 = true;
3746 }
3747 {
3748 PyThreadState* __tstate = wxPyBeginAllowThreads();
3749 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3750
3751 wxPyEndAllowThreads(__tstate);
3752 if (PyErr_Occurred()) SWIG_fail;
3753 }
3754 {
3755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3756 }
3757 {
3758 if (temp2)
3759 delete arg2;
3760 }
3761 return resultobj;
3762 fail:
3763 {
3764 if (temp2)
3765 delete arg2;
3766 }
3767 return NULL;
3768 }
3769
3770
3771 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj;
3773 wxComboBox *arg1 = (wxComboBox *) 0 ;
3774 int arg2 ;
3775 wxString *arg3 = 0 ;
3776 bool temp3 = false ;
3777 PyObject * obj0 = 0 ;
3778 PyObject * obj1 = 0 ;
3779 PyObject * obj2 = 0 ;
3780 char *kwnames[] = {
3781 (char *) "self",(char *) "n",(char *) "string", NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3787 arg2 = (int)SWIG_As_int(obj1);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 {
3790 arg3 = wxString_in_helper(obj2);
3791 if (arg3 == NULL) SWIG_fail;
3792 temp3 = true;
3793 }
3794 {
3795 PyThreadState* __tstate = wxPyBeginAllowThreads();
3796 (arg1)->SetString(arg2,(wxString const &)*arg3);
3797
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 Py_INCREF(Py_None); resultobj = Py_None;
3802 {
3803 if (temp3)
3804 delete arg3;
3805 }
3806 return resultobj;
3807 fail:
3808 {
3809 if (temp3)
3810 delete arg3;
3811 }
3812 return NULL;
3813 }
3814
3815
3816 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj;
3818 wxComboBox *arg1 = (wxComboBox *) 0 ;
3819 bool arg2 ;
3820 PyObject * obj0 = 0 ;
3821 PyObject * obj1 = 0 ;
3822 char *kwnames[] = {
3823 (char *) "self",(char *) "editable", NULL
3824 };
3825
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3829 arg2 = (bool)SWIG_As_bool(obj1);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 {
3832 PyThreadState* __tstate = wxPyBeginAllowThreads();
3833 (arg1)->SetEditable(arg2);
3834
3835 wxPyEndAllowThreads(__tstate);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 Py_INCREF(Py_None); resultobj = Py_None;
3839 return resultobj;
3840 fail:
3841 return NULL;
3842 }
3843
3844
3845 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3846 PyObject *resultobj;
3847 wxComboBox *arg1 = (wxComboBox *) 0 ;
3848 PyObject * obj0 = 0 ;
3849 char *kwnames[] = {
3850 (char *) "self", NULL
3851 };
3852
3853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3856 {
3857 PyThreadState* __tstate = wxPyBeginAllowThreads();
3858 (arg1)->SetInsertionPointEnd();
3859
3860 wxPyEndAllowThreads(__tstate);
3861 if (PyErr_Occurred()) SWIG_fail;
3862 }
3863 Py_INCREF(Py_None); resultobj = Py_None;
3864 return resultobj;
3865 fail:
3866 return NULL;
3867 }
3868
3869
3870 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj;
3872 wxComboBox *arg1 = (wxComboBox *) 0 ;
3873 long arg2 ;
3874 long arg3 ;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 PyObject * obj2 = 0 ;
3878 char *kwnames[] = {
3879 (char *) "self",(char *) "from",(char *) "to", NULL
3880 };
3881
3882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3885 arg2 = (long)SWIG_As_long(obj1);
3886 if (PyErr_Occurred()) SWIG_fail;
3887 arg3 = (long)SWIG_As_long(obj2);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 (arg1)->Remove(arg2,arg3);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 Py_INCREF(Py_None); resultobj = Py_None;
3897 return resultobj;
3898 fail:
3899 return NULL;
3900 }
3901
3902
3903 static PyObject *_wrap_ComboBox_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 wxComboBox *arg1 = (wxComboBox *) 0 ;
3906 bool result;
3907 PyObject * obj0 = 0 ;
3908 char *kwnames[] = {
3909 (char *) "self", NULL
3910 };
3911
3912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_IsEditable",kwnames,&obj0)) goto fail;
3913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (bool)((wxComboBox const *)arg1)->IsEditable();
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 {
3923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3924 }
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_ComboBox_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
3932 PyObject *resultobj;
3933 wxComboBox *arg1 = (wxComboBox *) 0 ;
3934 PyObject * obj0 = 0 ;
3935 char *kwnames[] = {
3936 (char *) "self", NULL
3937 };
3938
3939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Undo",kwnames,&obj0)) goto fail;
3940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3942 {
3943 PyThreadState* __tstate = wxPyBeginAllowThreads();
3944 (arg1)->Undo();
3945
3946 wxPyEndAllowThreads(__tstate);
3947 if (PyErr_Occurred()) SWIG_fail;
3948 }
3949 Py_INCREF(Py_None); resultobj = Py_None;
3950 return resultobj;
3951 fail:
3952 return NULL;
3953 }
3954
3955
3956 static PyObject *_wrap_ComboBox_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj;
3958 wxComboBox *arg1 = (wxComboBox *) 0 ;
3959 PyObject * obj0 = 0 ;
3960 char *kwnames[] = {
3961 (char *) "self", NULL
3962 };
3963
3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Redo",kwnames,&obj0)) goto fail;
3965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3967 {
3968 PyThreadState* __tstate = wxPyBeginAllowThreads();
3969 (arg1)->Redo();
3970
3971 wxPyEndAllowThreads(__tstate);
3972 if (PyErr_Occurred()) SWIG_fail;
3973 }
3974 Py_INCREF(Py_None); resultobj = Py_None;
3975 return resultobj;
3976 fail:
3977 return NULL;
3978 }
3979
3980
3981 static PyObject *_wrap_ComboBox_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
3982 PyObject *resultobj;
3983 wxComboBox *arg1 = (wxComboBox *) 0 ;
3984 PyObject * obj0 = 0 ;
3985 char *kwnames[] = {
3986 (char *) "self", NULL
3987 };
3988
3989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SelectAll",kwnames,&obj0)) goto fail;
3990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3992 {
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 (arg1)->SelectAll();
3995
3996 wxPyEndAllowThreads(__tstate);
3997 if (PyErr_Occurred()) SWIG_fail;
3998 }
3999 Py_INCREF(Py_None); resultobj = Py_None;
4000 return resultobj;
4001 fail:
4002 return NULL;
4003 }
4004
4005
4006 static PyObject *_wrap_ComboBox_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
4007 PyObject *resultobj;
4008 wxComboBox *arg1 = (wxComboBox *) 0 ;
4009 bool result;
4010 PyObject * obj0 = 0 ;
4011 char *kwnames[] = {
4012 (char *) "self", NULL
4013 };
4014
4015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCopy",kwnames,&obj0)) goto fail;
4016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (bool)((wxComboBox const *)arg1)->CanCopy();
4021
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 {
4026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4027 }
4028 return resultobj;
4029 fail:
4030 return NULL;
4031 }
4032
4033
4034 static PyObject *_wrap_ComboBox_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
4035 PyObject *resultobj;
4036 wxComboBox *arg1 = (wxComboBox *) 0 ;
4037 bool result;
4038 PyObject * obj0 = 0 ;
4039 char *kwnames[] = {
4040 (char *) "self", NULL
4041 };
4042
4043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanCut",kwnames,&obj0)) goto fail;
4044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 result = (bool)((wxComboBox const *)arg1)->CanCut();
4049
4050 wxPyEndAllowThreads(__tstate);
4051 if (PyErr_Occurred()) SWIG_fail;
4052 }
4053 {
4054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4055 }
4056 return resultobj;
4057 fail:
4058 return NULL;
4059 }
4060
4061
4062 static PyObject *_wrap_ComboBox_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
4063 PyObject *resultobj;
4064 wxComboBox *arg1 = (wxComboBox *) 0 ;
4065 bool result;
4066 PyObject * obj0 = 0 ;
4067 char *kwnames[] = {
4068 (char *) "self", NULL
4069 };
4070
4071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanPaste",kwnames,&obj0)) goto fail;
4072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = (bool)((wxComboBox const *)arg1)->CanPaste();
4077
4078 wxPyEndAllowThreads(__tstate);
4079 if (PyErr_Occurred()) SWIG_fail;
4080 }
4081 {
4082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4083 }
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 static PyObject *_wrap_ComboBox_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
4091 PyObject *resultobj;
4092 wxComboBox *arg1 = (wxComboBox *) 0 ;
4093 bool result;
4094 PyObject * obj0 = 0 ;
4095 char *kwnames[] = {
4096 (char *) "self", NULL
4097 };
4098
4099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanUndo",kwnames,&obj0)) goto fail;
4100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 result = (bool)((wxComboBox const *)arg1)->CanUndo();
4105
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 {
4110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4111 }
4112 return resultobj;
4113 fail:
4114 return NULL;
4115 }
4116
4117
4118 static PyObject *_wrap_ComboBox_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
4119 PyObject *resultobj;
4120 wxComboBox *arg1 = (wxComboBox *) 0 ;
4121 bool result;
4122 PyObject * obj0 = 0 ;
4123 char *kwnames[] = {
4124 (char *) "self", NULL
4125 };
4126
4127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_CanRedo",kwnames,&obj0)) goto fail;
4128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
4129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4130 {
4131 PyThreadState* __tstate = wxPyBeginAllowThreads();
4132 result = (bool)((wxComboBox const *)arg1)->CanRedo();
4133
4134 wxPyEndAllowThreads(__tstate);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 {
4138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4139 }
4140 return resultobj;
4141 fail:
4142 return NULL;
4143 }
4144
4145
4146 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4147 PyObject *resultobj;
4148 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4149 wxVisualAttributes result;
4150 PyObject * obj0 = 0 ;
4151 char *kwnames[] = {
4152 (char *) "variant", NULL
4153 };
4154
4155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4156 if (obj0) {
4157 arg1 = (int)SWIG_As_int(obj0);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 {
4161 if (!wxPyCheckForApp()) SWIG_fail;
4162 PyThreadState* __tstate = wxPyBeginAllowThreads();
4163 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4164
4165 wxPyEndAllowThreads(__tstate);
4166 if (PyErr_Occurred()) SWIG_fail;
4167 }
4168 {
4169 wxVisualAttributes * resultptr;
4170 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4171 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4172 }
4173 return resultobj;
4174 fail:
4175 return NULL;
4176 }
4177
4178
4179 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
4180 PyObject *obj;
4181 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4182 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
4183 Py_INCREF(obj);
4184 return Py_BuildValue((char *)"");
4185 }
4186 static int _wrap_GaugeNameStr_set(PyObject *) {
4187 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
4188 return 1;
4189 }
4190
4191
4192 static PyObject *_wrap_GaugeNameStr_get() {
4193 PyObject *pyobj;
4194
4195 {
4196 #if wxUSE_UNICODE
4197 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
4198 #else
4199 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
4200 #endif
4201 }
4202 return pyobj;
4203 }
4204
4205
4206 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxWindow *arg1 = (wxWindow *) 0 ;
4209 int arg2 = (int) -1 ;
4210 int arg3 = (int) 100 ;
4211 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4212 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4213 wxSize const &arg5_defvalue = wxDefaultSize ;
4214 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4215 long arg6 = (long) wxGA_HORIZONTAL ;
4216 wxValidator const &arg7_defvalue = wxDefaultValidator ;
4217 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
4218 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
4219 wxString *arg8 = (wxString *) &arg8_defvalue ;
4220 wxGauge *result;
4221 wxPoint temp4 ;
4222 wxSize temp5 ;
4223 bool temp8 = false ;
4224 PyObject * obj0 = 0 ;
4225 PyObject * obj1 = 0 ;
4226 PyObject * obj2 = 0 ;
4227 PyObject * obj3 = 0 ;
4228 PyObject * obj4 = 0 ;
4229 PyObject * obj5 = 0 ;
4230 PyObject * obj6 = 0 ;
4231 PyObject * obj7 = 0 ;
4232 char *kwnames[] = {
4233 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4234 };
4235
4236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4239 if (obj1) {
4240 arg2 = (int)SWIG_As_int(obj1);
4241 if (PyErr_Occurred()) SWIG_fail;
4242 }
4243 if (obj2) {
4244 arg3 = (int)SWIG_As_int(obj2);
4245 if (PyErr_Occurred()) SWIG_fail;
4246 }
4247 if (obj3) {
4248 {
4249 arg4 = &temp4;
4250 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4251 }
4252 }
4253 if (obj4) {
4254 {
4255 arg5 = &temp5;
4256 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4257 }
4258 }
4259 if (obj5) {
4260 arg6 = (long)SWIG_As_long(obj5);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 if (obj6) {
4264 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4265 SWIG_POINTER_EXCEPTION | 0)) == -1)
4266 SWIG_fail;
4267 if (arg7 == NULL) {
4268 PyErr_SetString(PyExc_TypeError,"null reference");
4269 SWIG_fail;
4270 }
4271 }
4272 if (obj7) {
4273 {
4274 arg8 = wxString_in_helper(obj7);
4275 if (arg8 == NULL) SWIG_fail;
4276 temp8 = true;
4277 }
4278 }
4279 {
4280 if (!wxPyCheckForApp()) SWIG_fail;
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4288 {
4289 if (temp8)
4290 delete arg8;
4291 }
4292 return resultobj;
4293 fail:
4294 {
4295 if (temp8)
4296 delete arg8;
4297 }
4298 return NULL;
4299 }
4300
4301
4302 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj;
4304 wxGauge *result;
4305 char *kwnames[] = {
4306 NULL
4307 };
4308
4309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4310 {
4311 if (!wxPyCheckForApp()) SWIG_fail;
4312 PyThreadState* __tstate = wxPyBeginAllowThreads();
4313 result = (wxGauge *)new wxGauge();
4314
4315 wxPyEndAllowThreads(__tstate);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4319 return resultobj;
4320 fail:
4321 return NULL;
4322 }
4323
4324
4325 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4326 PyObject *resultobj;
4327 wxGauge *arg1 = (wxGauge *) 0 ;
4328 wxWindow *arg2 = (wxWindow *) 0 ;
4329 int arg3 = (int) -1 ;
4330 int arg4 = (int) 100 ;
4331 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4332 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4333 wxSize const &arg6_defvalue = wxDefaultSize ;
4334 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4335 long arg7 = (long) wxGA_HORIZONTAL ;
4336 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4337 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4338 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4339 wxString *arg9 = (wxString *) &arg9_defvalue ;
4340 bool result;
4341 wxPoint temp5 ;
4342 wxSize temp6 ;
4343 bool temp9 = false ;
4344 PyObject * obj0 = 0 ;
4345 PyObject * obj1 = 0 ;
4346 PyObject * obj2 = 0 ;
4347 PyObject * obj3 = 0 ;
4348 PyObject * obj4 = 0 ;
4349 PyObject * obj5 = 0 ;
4350 PyObject * obj6 = 0 ;
4351 PyObject * obj7 = 0 ;
4352 PyObject * obj8 = 0 ;
4353 char *kwnames[] = {
4354 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4355 };
4356
4357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4360 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4362 if (obj2) {
4363 arg3 = (int)SWIG_As_int(obj2);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 if (obj3) {
4367 arg4 = (int)SWIG_As_int(obj3);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 if (obj4) {
4371 {
4372 arg5 = &temp5;
4373 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4374 }
4375 }
4376 if (obj5) {
4377 {
4378 arg6 = &temp6;
4379 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4380 }
4381 }
4382 if (obj6) {
4383 arg7 = (long)SWIG_As_long(obj6);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 if (obj7) {
4387 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4388 SWIG_POINTER_EXCEPTION | 0)) == -1)
4389 SWIG_fail;
4390 if (arg8 == NULL) {
4391 PyErr_SetString(PyExc_TypeError,"null reference");
4392 SWIG_fail;
4393 }
4394 }
4395 if (obj8) {
4396 {
4397 arg9 = wxString_in_helper(obj8);
4398 if (arg9 == NULL) SWIG_fail;
4399 temp9 = true;
4400 }
4401 }
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 {
4410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4411 }
4412 {
4413 if (temp9)
4414 delete arg9;
4415 }
4416 return resultobj;
4417 fail:
4418 {
4419 if (temp9)
4420 delete arg9;
4421 }
4422 return NULL;
4423 }
4424
4425
4426 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 wxGauge *arg1 = (wxGauge *) 0 ;
4429 int arg2 ;
4430 PyObject * obj0 = 0 ;
4431 PyObject * obj1 = 0 ;
4432 char *kwnames[] = {
4433 (char *) "self",(char *) "range", NULL
4434 };
4435
4436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4439 arg2 = (int)SWIG_As_int(obj1);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 {
4442 PyThreadState* __tstate = wxPyBeginAllowThreads();
4443 (arg1)->SetRange(arg2);
4444
4445 wxPyEndAllowThreads(__tstate);
4446 if (PyErr_Occurred()) SWIG_fail;
4447 }
4448 Py_INCREF(Py_None); resultobj = Py_None;
4449 return resultobj;
4450 fail:
4451 return NULL;
4452 }
4453
4454
4455 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4456 PyObject *resultobj;
4457 wxGauge *arg1 = (wxGauge *) 0 ;
4458 int result;
4459 PyObject * obj0 = 0 ;
4460 char *kwnames[] = {
4461 (char *) "self", NULL
4462 };
4463
4464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4467 {
4468 PyThreadState* __tstate = wxPyBeginAllowThreads();
4469 result = (int)((wxGauge const *)arg1)->GetRange();
4470
4471 wxPyEndAllowThreads(__tstate);
4472 if (PyErr_Occurred()) SWIG_fail;
4473 }
4474 resultobj = SWIG_From_int((int)result);
4475 return resultobj;
4476 fail:
4477 return NULL;
4478 }
4479
4480
4481 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxGauge *arg1 = (wxGauge *) 0 ;
4484 int arg2 ;
4485 PyObject * obj0 = 0 ;
4486 PyObject * obj1 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "self",(char *) "pos", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4494 arg2 = (int)SWIG_As_int(obj1);
4495 if (PyErr_Occurred()) SWIG_fail;
4496 {
4497 PyThreadState* __tstate = wxPyBeginAllowThreads();
4498 (arg1)->SetValue(arg2);
4499
4500 wxPyEndAllowThreads(__tstate);
4501 if (PyErr_Occurred()) SWIG_fail;
4502 }
4503 Py_INCREF(Py_None); resultobj = Py_None;
4504 return resultobj;
4505 fail:
4506 return NULL;
4507 }
4508
4509
4510 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4511 PyObject *resultobj;
4512 wxGauge *arg1 = (wxGauge *) 0 ;
4513 int result;
4514 PyObject * obj0 = 0 ;
4515 char *kwnames[] = {
4516 (char *) "self", NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4522 {
4523 PyThreadState* __tstate = wxPyBeginAllowThreads();
4524 result = (int)((wxGauge const *)arg1)->GetValue();
4525
4526 wxPyEndAllowThreads(__tstate);
4527 if (PyErr_Occurred()) SWIG_fail;
4528 }
4529 resultobj = SWIG_From_int((int)result);
4530 return resultobj;
4531 fail:
4532 return NULL;
4533 }
4534
4535
4536 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4537 PyObject *resultobj;
4538 wxGauge *arg1 = (wxGauge *) 0 ;
4539 bool result;
4540 PyObject * obj0 = 0 ;
4541 char *kwnames[] = {
4542 (char *) "self", NULL
4543 };
4544
4545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = (bool)((wxGauge const *)arg1)->IsVertical();
4551
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4557 }
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4565 PyObject *resultobj;
4566 wxGauge *arg1 = (wxGauge *) 0 ;
4567 int arg2 ;
4568 PyObject * obj0 = 0 ;
4569 PyObject * obj1 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self",(char *) "w", NULL
4572 };
4573
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4577 arg2 = (int)SWIG_As_int(obj1);
4578 if (PyErr_Occurred()) SWIG_fail;
4579 {
4580 PyThreadState* __tstate = wxPyBeginAllowThreads();
4581 (arg1)->SetShadowWidth(arg2);
4582
4583 wxPyEndAllowThreads(__tstate);
4584 if (PyErr_Occurred()) SWIG_fail;
4585 }
4586 Py_INCREF(Py_None); resultobj = Py_None;
4587 return resultobj;
4588 fail:
4589 return NULL;
4590 }
4591
4592
4593 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 wxGauge *arg1 = (wxGauge *) 0 ;
4596 int result;
4597 PyObject * obj0 = 0 ;
4598 char *kwnames[] = {
4599 (char *) "self", NULL
4600 };
4601
4602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4605 {
4606 PyThreadState* __tstate = wxPyBeginAllowThreads();
4607 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4608
4609 wxPyEndAllowThreads(__tstate);
4610 if (PyErr_Occurred()) SWIG_fail;
4611 }
4612 resultobj = SWIG_From_int((int)result);
4613 return resultobj;
4614 fail:
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxGauge *arg1 = (wxGauge *) 0 ;
4622 int arg2 ;
4623 PyObject * obj0 = 0 ;
4624 PyObject * obj1 = 0 ;
4625 char *kwnames[] = {
4626 (char *) "self",(char *) "w", NULL
4627 };
4628
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4632 arg2 = (int)SWIG_As_int(obj1);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 {
4635 PyThreadState* __tstate = wxPyBeginAllowThreads();
4636 (arg1)->SetBezelFace(arg2);
4637
4638 wxPyEndAllowThreads(__tstate);
4639 if (PyErr_Occurred()) SWIG_fail;
4640 }
4641 Py_INCREF(Py_None); resultobj = Py_None;
4642 return resultobj;
4643 fail:
4644 return NULL;
4645 }
4646
4647
4648 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4649 PyObject *resultobj;
4650 wxGauge *arg1 = (wxGauge *) 0 ;
4651 int result;
4652 PyObject * obj0 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4660 {
4661 PyThreadState* __tstate = wxPyBeginAllowThreads();
4662 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4663
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_From_int((int)result);
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4675 PyObject *resultobj;
4676 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4677 wxVisualAttributes result;
4678 PyObject * obj0 = 0 ;
4679 char *kwnames[] = {
4680 (char *) "variant", NULL
4681 };
4682
4683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4684 if (obj0) {
4685 arg1 = (int)SWIG_As_int(obj0);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 if (!wxPyCheckForApp()) SWIG_fail;
4690 PyThreadState* __tstate = wxPyBeginAllowThreads();
4691 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4692
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 {
4697 wxVisualAttributes * resultptr;
4698 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4699 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4700 }
4701 return resultobj;
4702 fail:
4703 return NULL;
4704 }
4705
4706
4707 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4708 PyObject *obj;
4709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4710 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4711 Py_INCREF(obj);
4712 return Py_BuildValue((char *)"");
4713 }
4714 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4715 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4716 return 1;
4717 }
4718
4719
4720 static PyObject *_wrap_StaticBitmapNameStr_get() {
4721 PyObject *pyobj;
4722
4723 {
4724 #if wxUSE_UNICODE
4725 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4726 #else
4727 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4728 #endif
4729 }
4730 return pyobj;
4731 }
4732
4733
4734 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4735 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4736 return 1;
4737 }
4738
4739
4740 static PyObject *_wrap_StaticBoxNameStr_get() {
4741 PyObject *pyobj;
4742
4743 {
4744 #if wxUSE_UNICODE
4745 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4746 #else
4747 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4748 #endif
4749 }
4750 return pyobj;
4751 }
4752
4753
4754 static int _wrap_StaticTextNameStr_set(PyObject *) {
4755 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4756 return 1;
4757 }
4758
4759
4760 static PyObject *_wrap_StaticTextNameStr_get() {
4761 PyObject *pyobj;
4762
4763 {
4764 #if wxUSE_UNICODE
4765 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4766 #else
4767 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4768 #endif
4769 }
4770 return pyobj;
4771 }
4772
4773
4774 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj;
4776 wxWindow *arg1 = (wxWindow *) 0 ;
4777 int arg2 = (int) -1 ;
4778 wxString const &arg3_defvalue = wxPyEmptyString ;
4779 wxString *arg3 = (wxString *) &arg3_defvalue ;
4780 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4781 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4782 wxSize const &arg5_defvalue = wxDefaultSize ;
4783 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4784 long arg6 = (long) 0 ;
4785 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4786 wxString *arg7 = (wxString *) &arg7_defvalue ;
4787 wxStaticBox *result;
4788 bool temp3 = false ;
4789 wxPoint temp4 ;
4790 wxSize temp5 ;
4791 bool temp7 = false ;
4792 PyObject * obj0 = 0 ;
4793 PyObject * obj1 = 0 ;
4794 PyObject * obj2 = 0 ;
4795 PyObject * obj3 = 0 ;
4796 PyObject * obj4 = 0 ;
4797 PyObject * obj5 = 0 ;
4798 PyObject * obj6 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4806 if (obj1) {
4807 arg2 = (int)SWIG_As_int(obj1);
4808 if (PyErr_Occurred()) SWIG_fail;
4809 }
4810 if (obj2) {
4811 {
4812 arg3 = wxString_in_helper(obj2);
4813 if (arg3 == NULL) SWIG_fail;
4814 temp3 = true;
4815 }
4816 }
4817 if (obj3) {
4818 {
4819 arg4 = &temp4;
4820 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4821 }
4822 }
4823 if (obj4) {
4824 {
4825 arg5 = &temp5;
4826 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4827 }
4828 }
4829 if (obj5) {
4830 arg6 = (long)SWIG_As_long(obj5);
4831 if (PyErr_Occurred()) SWIG_fail;
4832 }
4833 if (obj6) {
4834 {
4835 arg7 = wxString_in_helper(obj6);
4836 if (arg7 == NULL) SWIG_fail;
4837 temp7 = true;
4838 }
4839 }
4840 {
4841 if (!wxPyCheckForApp()) SWIG_fail;
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4844
4845 wxPyEndAllowThreads(__tstate);
4846 if (PyErr_Occurred()) SWIG_fail;
4847 }
4848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4849 {
4850 if (temp3)
4851 delete arg3;
4852 }
4853 {
4854 if (temp7)
4855 delete arg7;
4856 }
4857 return resultobj;
4858 fail:
4859 {
4860 if (temp3)
4861 delete arg3;
4862 }
4863 {
4864 if (temp7)
4865 delete arg7;
4866 }
4867 return NULL;
4868 }
4869
4870
4871 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4872 PyObject *resultobj;
4873 wxStaticBox *result;
4874 char *kwnames[] = {
4875 NULL
4876 };
4877
4878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4879 {
4880 if (!wxPyCheckForApp()) SWIG_fail;
4881 PyThreadState* __tstate = wxPyBeginAllowThreads();
4882 result = (wxStaticBox *)new wxStaticBox();
4883
4884 wxPyEndAllowThreads(__tstate);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 }
4887 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4888 return resultobj;
4889 fail:
4890 return NULL;
4891 }
4892
4893
4894 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4895 PyObject *resultobj;
4896 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4897 wxWindow *arg2 = (wxWindow *) 0 ;
4898 int arg3 = (int) -1 ;
4899 wxString const &arg4_defvalue = wxPyEmptyString ;
4900 wxString *arg4 = (wxString *) &arg4_defvalue ;
4901 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4902 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4903 wxSize const &arg6_defvalue = wxDefaultSize ;
4904 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4905 long arg7 = (long) 0 ;
4906 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4907 wxString *arg8 = (wxString *) &arg8_defvalue ;
4908 bool result;
4909 bool temp4 = false ;
4910 wxPoint temp5 ;
4911 wxSize temp6 ;
4912 bool temp8 = false ;
4913 PyObject * obj0 = 0 ;
4914 PyObject * obj1 = 0 ;
4915 PyObject * obj2 = 0 ;
4916 PyObject * obj3 = 0 ;
4917 PyObject * obj4 = 0 ;
4918 PyObject * obj5 = 0 ;
4919 PyObject * obj6 = 0 ;
4920 PyObject * obj7 = 0 ;
4921 char *kwnames[] = {
4922 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4923 };
4924
4925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4928 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4930 if (obj2) {
4931 arg3 = (int)SWIG_As_int(obj2);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 }
4934 if (obj3) {
4935 {
4936 arg4 = wxString_in_helper(obj3);
4937 if (arg4 == NULL) SWIG_fail;
4938 temp4 = true;
4939 }
4940 }
4941 if (obj4) {
4942 {
4943 arg5 = &temp5;
4944 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4945 }
4946 }
4947 if (obj5) {
4948 {
4949 arg6 = &temp6;
4950 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4951 }
4952 }
4953 if (obj6) {
4954 arg7 = (long)SWIG_As_long(obj6);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 }
4957 if (obj7) {
4958 {
4959 arg8 = wxString_in_helper(obj7);
4960 if (arg8 == NULL) SWIG_fail;
4961 temp8 = true;
4962 }
4963 }
4964 {
4965 PyThreadState* __tstate = wxPyBeginAllowThreads();
4966 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4967
4968 wxPyEndAllowThreads(__tstate);
4969 if (PyErr_Occurred()) SWIG_fail;
4970 }
4971 {
4972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4973 }
4974 {
4975 if (temp4)
4976 delete arg4;
4977 }
4978 {
4979 if (temp8)
4980 delete arg8;
4981 }
4982 return resultobj;
4983 fail:
4984 {
4985 if (temp4)
4986 delete arg4;
4987 }
4988 {
4989 if (temp8)
4990 delete arg8;
4991 }
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4999 wxVisualAttributes result;
5000 PyObject * obj0 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "variant", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5006 if (obj0) {
5007 arg1 = (int)SWIG_As_int(obj0);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 }
5010 {
5011 if (!wxPyCheckForApp()) SWIG_fail;
5012 PyThreadState* __tstate = wxPyBeginAllowThreads();
5013 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
5014
5015 wxPyEndAllowThreads(__tstate);
5016 if (PyErr_Occurred()) SWIG_fail;
5017 }
5018 {
5019 wxVisualAttributes * resultptr;
5020 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5021 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5022 }
5023 return resultobj;
5024 fail:
5025 return NULL;
5026 }
5027
5028
5029 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
5030 PyObject *obj;
5031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5032 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
5033 Py_INCREF(obj);
5034 return Py_BuildValue((char *)"");
5035 }
5036 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
5037 PyObject *resultobj;
5038 wxWindow *arg1 = (wxWindow *) 0 ;
5039 int arg2 = (int) -1 ;
5040 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5041 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5042 wxSize const &arg4_defvalue = wxDefaultSize ;
5043 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5044 long arg5 = (long) wxLI_HORIZONTAL ;
5045 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
5046 wxString *arg6 = (wxString *) &arg6_defvalue ;
5047 wxStaticLine *result;
5048 wxPoint temp3 ;
5049 wxSize temp4 ;
5050 bool temp6 = false ;
5051 PyObject * obj0 = 0 ;
5052 PyObject * obj1 = 0 ;
5053 PyObject * obj2 = 0 ;
5054 PyObject * obj3 = 0 ;
5055 PyObject * obj4 = 0 ;
5056 PyObject * obj5 = 0 ;
5057 char *kwnames[] = {
5058 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5059 };
5060
5061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
5062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5064 if (obj1) {
5065 arg2 = (int)SWIG_As_int(obj1);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 if (obj2) {
5069 {
5070 arg3 = &temp3;
5071 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5072 }
5073 }
5074 if (obj3) {
5075 {
5076 arg4 = &temp4;
5077 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5078 }
5079 }
5080 if (obj4) {
5081 arg5 = (long)SWIG_As_long(obj4);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 if (obj5) {
5085 {
5086 arg6 = wxString_in_helper(obj5);
5087 if (arg6 == NULL) SWIG_fail;
5088 temp6 = true;
5089 }
5090 }
5091 {
5092 if (!wxPyCheckForApp()) SWIG_fail;
5093 PyThreadState* __tstate = wxPyBeginAllowThreads();
5094 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
5095
5096 wxPyEndAllowThreads(__tstate);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 }
5099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
5100 {
5101 if (temp6)
5102 delete arg6;
5103 }
5104 return resultobj;
5105 fail:
5106 {
5107 if (temp6)
5108 delete arg6;
5109 }
5110 return NULL;
5111 }
5112
5113
5114 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
5115 PyObject *resultobj;
5116 wxStaticLine *result;
5117 char *kwnames[] = {
5118 NULL
5119 };
5120
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
5122 {
5123 if (!wxPyCheckForApp()) SWIG_fail;
5124 PyThreadState* __tstate = wxPyBeginAllowThreads();
5125 result = (wxStaticLine *)new wxStaticLine();
5126
5127 wxPyEndAllowThreads(__tstate);
5128 if (PyErr_Occurred()) SWIG_fail;
5129 }
5130 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
5131 return resultobj;
5132 fail:
5133 return NULL;
5134 }
5135
5136
5137 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5138 PyObject *resultobj;
5139 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
5140 wxWindow *arg2 = (wxWindow *) 0 ;
5141 int arg3 = (int) -1 ;
5142 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5143 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5144 wxSize const &arg5_defvalue = wxDefaultSize ;
5145 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5146 long arg6 = (long) wxLI_HORIZONTAL ;
5147 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5148 wxString *arg7 = (wxString *) &arg7_defvalue ;
5149 bool result;
5150 wxPoint temp4 ;
5151 wxSize temp5 ;
5152 bool temp7 = false ;
5153 PyObject * obj0 = 0 ;
5154 PyObject * obj1 = 0 ;
5155 PyObject * obj2 = 0 ;
5156 PyObject * obj3 = 0 ;
5157 PyObject * obj4 = 0 ;
5158 PyObject * obj5 = 0 ;
5159 PyObject * obj6 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
5166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5169 if (obj2) {
5170 arg3 = (int)SWIG_As_int(obj2);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 if (obj3) {
5174 {
5175 arg4 = &temp4;
5176 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5177 }
5178 }
5179 if (obj4) {
5180 {
5181 arg5 = &temp5;
5182 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5183 }
5184 }
5185 if (obj5) {
5186 arg6 = (long)SWIG_As_long(obj5);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 if (obj6) {
5190 {
5191 arg7 = wxString_in_helper(obj6);
5192 if (arg7 == NULL) SWIG_fail;
5193 temp7 = true;
5194 }
5195 }
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 {
5204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5205 }
5206 {
5207 if (temp7)
5208 delete arg7;
5209 }
5210 return resultobj;
5211 fail:
5212 {
5213 if (temp7)
5214 delete arg7;
5215 }
5216 return NULL;
5217 }
5218
5219
5220 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
5221 PyObject *resultobj;
5222 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
5223 bool result;
5224 PyObject * obj0 = 0 ;
5225 char *kwnames[] = {
5226 (char *) "self", NULL
5227 };
5228
5229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
5230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
5231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
5235
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245 }
5246
5247
5248 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj;
5250 int result;
5251 char *kwnames[] = {
5252 NULL
5253 };
5254
5255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5256 {
5257 PyThreadState* __tstate = wxPyBeginAllowThreads();
5258 result = (int)wxStaticLine::GetDefaultSize();
5259
5260 wxPyEndAllowThreads(__tstate);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 resultobj = SWIG_From_int((int)result);
5264 return resultobj;
5265 fail:
5266 return NULL;
5267 }
5268
5269
5270 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5271 PyObject *resultobj;
5272 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5273 wxVisualAttributes result;
5274 PyObject * obj0 = 0 ;
5275 char *kwnames[] = {
5276 (char *) "variant", NULL
5277 };
5278
5279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5280 if (obj0) {
5281 arg1 = (int)SWIG_As_int(obj0);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 {
5285 if (!wxPyCheckForApp()) SWIG_fail;
5286 PyThreadState* __tstate = wxPyBeginAllowThreads();
5287 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5288
5289 wxPyEndAllowThreads(__tstate);
5290 if (PyErr_Occurred()) SWIG_fail;
5291 }
5292 {
5293 wxVisualAttributes * resultptr;
5294 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5295 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5296 }
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5304 PyObject *obj;
5305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5306 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5307 Py_INCREF(obj);
5308 return Py_BuildValue((char *)"");
5309 }
5310 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5311 PyObject *resultobj;
5312 wxWindow *arg1 = (wxWindow *) 0 ;
5313 int arg2 = (int) -1 ;
5314 wxString const &arg3_defvalue = wxPyEmptyString ;
5315 wxString *arg3 = (wxString *) &arg3_defvalue ;
5316 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5317 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5318 wxSize const &arg5_defvalue = wxDefaultSize ;
5319 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5320 long arg6 = (long) 0 ;
5321 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5322 wxString *arg7 = (wxString *) &arg7_defvalue ;
5323 wxStaticText *result;
5324 bool temp3 = false ;
5325 wxPoint temp4 ;
5326 wxSize temp5 ;
5327 bool temp7 = false ;
5328 PyObject * obj0 = 0 ;
5329 PyObject * obj1 = 0 ;
5330 PyObject * obj2 = 0 ;
5331 PyObject * obj3 = 0 ;
5332 PyObject * obj4 = 0 ;
5333 PyObject * obj5 = 0 ;
5334 PyObject * obj6 = 0 ;
5335 char *kwnames[] = {
5336 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5337 };
5338
5339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5342 if (obj1) {
5343 arg2 = (int)SWIG_As_int(obj1);
5344 if (PyErr_Occurred()) SWIG_fail;
5345 }
5346 if (obj2) {
5347 {
5348 arg3 = wxString_in_helper(obj2);
5349 if (arg3 == NULL) SWIG_fail;
5350 temp3 = true;
5351 }
5352 }
5353 if (obj3) {
5354 {
5355 arg4 = &temp4;
5356 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5357 }
5358 }
5359 if (obj4) {
5360 {
5361 arg5 = &temp5;
5362 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5363 }
5364 }
5365 if (obj5) {
5366 arg6 = (long)SWIG_As_long(obj5);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 if (obj6) {
5370 {
5371 arg7 = wxString_in_helper(obj6);
5372 if (arg7 == NULL) SWIG_fail;
5373 temp7 = true;
5374 }
5375 }
5376 {
5377 if (!wxPyCheckForApp()) SWIG_fail;
5378 PyThreadState* __tstate = wxPyBeginAllowThreads();
5379 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5380
5381 wxPyEndAllowThreads(__tstate);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 }
5384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5385 {
5386 if (temp3)
5387 delete arg3;
5388 }
5389 {
5390 if (temp7)
5391 delete arg7;
5392 }
5393 return resultobj;
5394 fail:
5395 {
5396 if (temp3)
5397 delete arg3;
5398 }
5399 {
5400 if (temp7)
5401 delete arg7;
5402 }
5403 return NULL;
5404 }
5405
5406
5407 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj;
5409 wxStaticText *result;
5410 char *kwnames[] = {
5411 NULL
5412 };
5413
5414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5415 {
5416 if (!wxPyCheckForApp()) SWIG_fail;
5417 PyThreadState* __tstate = wxPyBeginAllowThreads();
5418 result = (wxStaticText *)new wxStaticText();
5419
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5424 return resultobj;
5425 fail:
5426 return NULL;
5427 }
5428
5429
5430 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5431 PyObject *resultobj;
5432 wxStaticText *arg1 = (wxStaticText *) 0 ;
5433 wxWindow *arg2 = (wxWindow *) 0 ;
5434 int arg3 = (int) -1 ;
5435 wxString const &arg4_defvalue = wxPyEmptyString ;
5436 wxString *arg4 = (wxString *) &arg4_defvalue ;
5437 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5438 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5439 wxSize const &arg6_defvalue = wxDefaultSize ;
5440 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5441 long arg7 = (long) 0 ;
5442 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5443 wxString *arg8 = (wxString *) &arg8_defvalue ;
5444 bool result;
5445 bool temp4 = false ;
5446 wxPoint temp5 ;
5447 wxSize temp6 ;
5448 bool temp8 = false ;
5449 PyObject * obj0 = 0 ;
5450 PyObject * obj1 = 0 ;
5451 PyObject * obj2 = 0 ;
5452 PyObject * obj3 = 0 ;
5453 PyObject * obj4 = 0 ;
5454 PyObject * obj5 = 0 ;
5455 PyObject * obj6 = 0 ;
5456 PyObject * obj7 = 0 ;
5457 char *kwnames[] = {
5458 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 if (obj2) {
5467 arg3 = (int)SWIG_As_int(obj2);
5468 if (PyErr_Occurred()) SWIG_fail;
5469 }
5470 if (obj3) {
5471 {
5472 arg4 = wxString_in_helper(obj3);
5473 if (arg4 == NULL) SWIG_fail;
5474 temp4 = true;
5475 }
5476 }
5477 if (obj4) {
5478 {
5479 arg5 = &temp5;
5480 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5481 }
5482 }
5483 if (obj5) {
5484 {
5485 arg6 = &temp6;
5486 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5487 }
5488 }
5489 if (obj6) {
5490 arg7 = (long)SWIG_As_long(obj6);
5491 if (PyErr_Occurred()) SWIG_fail;
5492 }
5493 if (obj7) {
5494 {
5495 arg8 = wxString_in_helper(obj7);
5496 if (arg8 == NULL) SWIG_fail;
5497 temp8 = true;
5498 }
5499 }
5500 {
5501 PyThreadState* __tstate = wxPyBeginAllowThreads();
5502 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5503
5504 wxPyEndAllowThreads(__tstate);
5505 if (PyErr_Occurred()) SWIG_fail;
5506 }
5507 {
5508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5509 }
5510 {
5511 if (temp4)
5512 delete arg4;
5513 }
5514 {
5515 if (temp8)
5516 delete arg8;
5517 }
5518 return resultobj;
5519 fail:
5520 {
5521 if (temp4)
5522 delete arg4;
5523 }
5524 {
5525 if (temp8)
5526 delete arg8;
5527 }
5528 return NULL;
5529 }
5530
5531
5532 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj;
5534 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5535 wxVisualAttributes result;
5536 PyObject * obj0 = 0 ;
5537 char *kwnames[] = {
5538 (char *) "variant", NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5542 if (obj0) {
5543 arg1 = (int)SWIG_As_int(obj0);
5544 if (PyErr_Occurred()) SWIG_fail;
5545 }
5546 {
5547 if (!wxPyCheckForApp()) SWIG_fail;
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5550
5551 wxPyEndAllowThreads(__tstate);
5552 if (PyErr_Occurred()) SWIG_fail;
5553 }
5554 {
5555 wxVisualAttributes * resultptr;
5556 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5557 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5558 }
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5566 PyObject *obj;
5567 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5568 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5569 Py_INCREF(obj);
5570 return Py_BuildValue((char *)"");
5571 }
5572 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5573 PyObject *resultobj;
5574 wxWindow *arg1 = (wxWindow *) 0 ;
5575 int arg2 = (int) -1 ;
5576 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5577 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5578 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5579 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5580 wxSize const &arg5_defvalue = wxDefaultSize ;
5581 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5582 long arg6 = (long) 0 ;
5583 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5584 wxString *arg7 = (wxString *) &arg7_defvalue ;
5585 wxStaticBitmap *result;
5586 wxPoint temp4 ;
5587 wxSize temp5 ;
5588 bool temp7 = false ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 PyObject * obj2 = 0 ;
5592 PyObject * obj3 = 0 ;
5593 PyObject * obj4 = 0 ;
5594 PyObject * obj5 = 0 ;
5595 PyObject * obj6 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5603 if (obj1) {
5604 arg2 = (int)SWIG_As_int(obj1);
5605 if (PyErr_Occurred()) SWIG_fail;
5606 }
5607 if (obj2) {
5608 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5609 SWIG_POINTER_EXCEPTION | 0)) == -1)
5610 SWIG_fail;
5611 if (arg3 == NULL) {
5612 PyErr_SetString(PyExc_TypeError,"null reference");
5613 SWIG_fail;
5614 }
5615 }
5616 if (obj3) {
5617 {
5618 arg4 = &temp4;
5619 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5620 }
5621 }
5622 if (obj4) {
5623 {
5624 arg5 = &temp5;
5625 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5626 }
5627 }
5628 if (obj5) {
5629 arg6 = (long)SWIG_As_long(obj5);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 if (obj6) {
5633 {
5634 arg7 = wxString_in_helper(obj6);
5635 if (arg7 == NULL) SWIG_fail;
5636 temp7 = true;
5637 }
5638 }
5639 {
5640 if (!wxPyCheckForApp()) SWIG_fail;
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5643
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5648 {
5649 if (temp7)
5650 delete arg7;
5651 }
5652 return resultobj;
5653 fail:
5654 {
5655 if (temp7)
5656 delete arg7;
5657 }
5658 return NULL;
5659 }
5660
5661
5662 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5663 PyObject *resultobj;
5664 wxStaticBitmap *result;
5665 char *kwnames[] = {
5666 NULL
5667 };
5668
5669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5670 {
5671 if (!wxPyCheckForApp()) SWIG_fail;
5672 PyThreadState* __tstate = wxPyBeginAllowThreads();
5673 result = (wxStaticBitmap *)new wxStaticBitmap();
5674
5675 wxPyEndAllowThreads(__tstate);
5676 if (PyErr_Occurred()) SWIG_fail;
5677 }
5678 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5679 return resultobj;
5680 fail:
5681 return NULL;
5682 }
5683
5684
5685 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5686 PyObject *resultobj;
5687 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5688 wxWindow *arg2 = (wxWindow *) 0 ;
5689 int arg3 = (int) -1 ;
5690 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5691 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5692 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5693 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5694 wxSize const &arg6_defvalue = wxDefaultSize ;
5695 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5696 long arg7 = (long) 0 ;
5697 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5698 wxString *arg8 = (wxString *) &arg8_defvalue ;
5699 bool result;
5700 wxPoint temp5 ;
5701 wxSize temp6 ;
5702 bool temp8 = false ;
5703 PyObject * obj0 = 0 ;
5704 PyObject * obj1 = 0 ;
5705 PyObject * obj2 = 0 ;
5706 PyObject * obj3 = 0 ;
5707 PyObject * obj4 = 0 ;
5708 PyObject * obj5 = 0 ;
5709 PyObject * obj6 = 0 ;
5710 PyObject * obj7 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5718 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5720 if (obj2) {
5721 arg3 = (int)SWIG_As_int(obj2);
5722 if (PyErr_Occurred()) SWIG_fail;
5723 }
5724 if (obj3) {
5725 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5726 SWIG_POINTER_EXCEPTION | 0)) == -1)
5727 SWIG_fail;
5728 if (arg4 == NULL) {
5729 PyErr_SetString(PyExc_TypeError,"null reference");
5730 SWIG_fail;
5731 }
5732 }
5733 if (obj4) {
5734 {
5735 arg5 = &temp5;
5736 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5737 }
5738 }
5739 if (obj5) {
5740 {
5741 arg6 = &temp6;
5742 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5743 }
5744 }
5745 if (obj6) {
5746 arg7 = (long)SWIG_As_long(obj6);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 if (obj7) {
5750 {
5751 arg8 = wxString_in_helper(obj7);
5752 if (arg8 == NULL) SWIG_fail;
5753 temp8 = true;
5754 }
5755 }
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5759
5760 wxPyEndAllowThreads(__tstate);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 }
5763 {
5764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5765 }
5766 {
5767 if (temp8)
5768 delete arg8;
5769 }
5770 return resultobj;
5771 fail:
5772 {
5773 if (temp8)
5774 delete arg8;
5775 }
5776 return NULL;
5777 }
5778
5779
5780 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj;
5782 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5783 wxBitmap result;
5784 PyObject * obj0 = 0 ;
5785 char *kwnames[] = {
5786 (char *) "self", NULL
5787 };
5788
5789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5792 {
5793 PyThreadState* __tstate = wxPyBeginAllowThreads();
5794 result = (arg1)->GetBitmap();
5795
5796 wxPyEndAllowThreads(__tstate);
5797 if (PyErr_Occurred()) SWIG_fail;
5798 }
5799 {
5800 wxBitmap * resultptr;
5801 resultptr = new wxBitmap((wxBitmap &) result);
5802 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5803 }
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5813 wxBitmap *arg2 = 0 ;
5814 PyObject * obj0 = 0 ;
5815 PyObject * obj1 = 0 ;
5816 char *kwnames[] = {
5817 (char *) "self",(char *) "bitmap", NULL
5818 };
5819
5820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5823 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5824 SWIG_POINTER_EXCEPTION | 0)) == -1)
5825 SWIG_fail;
5826 if (arg2 == NULL) {
5827 PyErr_SetString(PyExc_TypeError,"null reference");
5828 SWIG_fail;
5829 }
5830 {
5831 PyThreadState* __tstate = wxPyBeginAllowThreads();
5832 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5833
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 Py_INCREF(Py_None); resultobj = Py_None;
5838 return resultobj;
5839 fail:
5840 return NULL;
5841 }
5842
5843
5844 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5845 PyObject *resultobj;
5846 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5847 wxIcon *arg2 = 0 ;
5848 PyObject * obj0 = 0 ;
5849 PyObject * obj1 = 0 ;
5850 char *kwnames[] = {
5851 (char *) "self",(char *) "icon", NULL
5852 };
5853
5854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1)
5859 SWIG_fail;
5860 if (arg2 == NULL) {
5861 PyErr_SetString(PyExc_TypeError,"null reference");
5862 SWIG_fail;
5863 }
5864 {
5865 PyThreadState* __tstate = wxPyBeginAllowThreads();
5866 (arg1)->SetIcon((wxIcon const &)*arg2);
5867
5868 wxPyEndAllowThreads(__tstate);
5869 if (PyErr_Occurred()) SWIG_fail;
5870 }
5871 Py_INCREF(Py_None); resultobj = Py_None;
5872 return resultobj;
5873 fail:
5874 return NULL;
5875 }
5876
5877
5878 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5879 PyObject *resultobj;
5880 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5881 wxVisualAttributes result;
5882 PyObject * obj0 = 0 ;
5883 char *kwnames[] = {
5884 (char *) "variant", NULL
5885 };
5886
5887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5888 if (obj0) {
5889 arg1 = (int)SWIG_As_int(obj0);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 {
5893 if (!wxPyCheckForApp()) SWIG_fail;
5894 PyThreadState* __tstate = wxPyBeginAllowThreads();
5895 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5896
5897 wxPyEndAllowThreads(__tstate);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 {
5901 wxVisualAttributes * resultptr;
5902 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5903 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5904 }
5905 return resultobj;
5906 fail:
5907 return NULL;
5908 }
5909
5910
5911 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5912 PyObject *obj;
5913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5914 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5915 Py_INCREF(obj);
5916 return Py_BuildValue((char *)"");
5917 }
5918 static int _wrap_ListBoxNameStr_set(PyObject *) {
5919 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5920 return 1;
5921 }
5922
5923
5924 static PyObject *_wrap_ListBoxNameStr_get() {
5925 PyObject *pyobj;
5926
5927 {
5928 #if wxUSE_UNICODE
5929 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5930 #else
5931 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5932 #endif
5933 }
5934 return pyobj;
5935 }
5936
5937
5938 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5939 PyObject *resultobj;
5940 wxWindow *arg1 = (wxWindow *) 0 ;
5941 int arg2 = (int) -1 ;
5942 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5943 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5944 wxSize const &arg4_defvalue = wxDefaultSize ;
5945 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5946 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5947 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5948 long arg6 = (long) 0 ;
5949 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5950 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5951 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5952 wxString *arg8 = (wxString *) &arg8_defvalue ;
5953 wxListBox *result;
5954 wxPoint temp3 ;
5955 wxSize temp4 ;
5956 bool temp5 = false ;
5957 bool temp8 = false ;
5958 PyObject * obj0 = 0 ;
5959 PyObject * obj1 = 0 ;
5960 PyObject * obj2 = 0 ;
5961 PyObject * obj3 = 0 ;
5962 PyObject * obj4 = 0 ;
5963 PyObject * obj5 = 0 ;
5964 PyObject * obj6 = 0 ;
5965 PyObject * obj7 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5973 if (obj1) {
5974 arg2 = (int)SWIG_As_int(obj1);
5975 if (PyErr_Occurred()) SWIG_fail;
5976 }
5977 if (obj2) {
5978 {
5979 arg3 = &temp3;
5980 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5981 }
5982 }
5983 if (obj3) {
5984 {
5985 arg4 = &temp4;
5986 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5987 }
5988 }
5989 if (obj4) {
5990 {
5991 if (! PySequence_Check(obj4)) {
5992 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5993 SWIG_fail;
5994 }
5995 arg5 = new wxArrayString;
5996 temp5 = true;
5997 int i, len=PySequence_Length(obj4);
5998 for (i=0; i<len; i++) {
5999 PyObject* item = PySequence_GetItem(obj4, i);
6000 #if wxUSE_UNICODE
6001 PyObject* str = PyObject_Unicode(item);
6002 #else
6003 PyObject* str = PyObject_Str(item);
6004 #endif
6005 if (PyErr_Occurred()) SWIG_fail;
6006 arg5->Add(Py2wxString(str));
6007 Py_DECREF(item);
6008 Py_DECREF(str);
6009 }
6010 }
6011 }
6012 if (obj5) {
6013 arg6 = (long)SWIG_As_long(obj5);
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 if (obj6) {
6017 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6018 SWIG_POINTER_EXCEPTION | 0)) == -1)
6019 SWIG_fail;
6020 if (arg7 == NULL) {
6021 PyErr_SetString(PyExc_TypeError,"null reference");
6022 SWIG_fail;
6023 }
6024 }
6025 if (obj7) {
6026 {
6027 arg8 = wxString_in_helper(obj7);
6028 if (arg8 == NULL) SWIG_fail;
6029 temp8 = true;
6030 }
6031 }
6032 {
6033 if (!wxPyCheckForApp()) SWIG_fail;
6034 PyThreadState* __tstate = wxPyBeginAllowThreads();
6035 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6036
6037 wxPyEndAllowThreads(__tstate);
6038 if (PyErr_Occurred()) SWIG_fail;
6039 }
6040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
6041 {
6042 if (temp5) delete arg5;
6043 }
6044 {
6045 if (temp8)
6046 delete arg8;
6047 }
6048 return resultobj;
6049 fail:
6050 {
6051 if (temp5) delete arg5;
6052 }
6053 {
6054 if (temp8)
6055 delete arg8;
6056 }
6057 return NULL;
6058 }
6059
6060
6061 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj;
6063 wxListBox *result;
6064 char *kwnames[] = {
6065 NULL
6066 };
6067
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
6069 {
6070 if (!wxPyCheckForApp()) SWIG_fail;
6071 PyThreadState* __tstate = wxPyBeginAllowThreads();
6072 result = (wxListBox *)new wxListBox();
6073
6074 wxPyEndAllowThreads(__tstate);
6075 if (PyErr_Occurred()) SWIG_fail;
6076 }
6077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj;
6086 wxListBox *arg1 = (wxListBox *) 0 ;
6087 wxWindow *arg2 = (wxWindow *) 0 ;
6088 int arg3 = (int) -1 ;
6089 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6090 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6091 wxSize const &arg5_defvalue = wxDefaultSize ;
6092 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6093 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6094 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6095 long arg7 = (long) 0 ;
6096 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6097 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6098 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6099 wxString *arg9 = (wxString *) &arg9_defvalue ;
6100 bool result;
6101 wxPoint temp4 ;
6102 wxSize temp5 ;
6103 bool temp6 = false ;
6104 bool temp9 = false ;
6105 PyObject * obj0 = 0 ;
6106 PyObject * obj1 = 0 ;
6107 PyObject * obj2 = 0 ;
6108 PyObject * obj3 = 0 ;
6109 PyObject * obj4 = 0 ;
6110 PyObject * obj5 = 0 ;
6111 PyObject * obj6 = 0 ;
6112 PyObject * obj7 = 0 ;
6113 PyObject * obj8 = 0 ;
6114 char *kwnames[] = {
6115 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6116 };
6117
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 if (obj2) {
6124 arg3 = (int)SWIG_As_int(obj2);
6125 if (PyErr_Occurred()) SWIG_fail;
6126 }
6127 if (obj3) {
6128 {
6129 arg4 = &temp4;
6130 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6131 }
6132 }
6133 if (obj4) {
6134 {
6135 arg5 = &temp5;
6136 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6137 }
6138 }
6139 if (obj5) {
6140 {
6141 if (! PySequence_Check(obj5)) {
6142 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6143 SWIG_fail;
6144 }
6145 arg6 = new wxArrayString;
6146 temp6 = true;
6147 int i, len=PySequence_Length(obj5);
6148 for (i=0; i<len; i++) {
6149 PyObject* item = PySequence_GetItem(obj5, i);
6150 #if wxUSE_UNICODE
6151 PyObject* str = PyObject_Unicode(item);
6152 #else
6153 PyObject* str = PyObject_Str(item);
6154 #endif
6155 if (PyErr_Occurred()) SWIG_fail;
6156 arg6->Add(Py2wxString(str));
6157 Py_DECREF(item);
6158 Py_DECREF(str);
6159 }
6160 }
6161 }
6162 if (obj6) {
6163 arg7 = (long)SWIG_As_long(obj6);
6164 if (PyErr_Occurred()) SWIG_fail;
6165 }
6166 if (obj7) {
6167 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6168 SWIG_POINTER_EXCEPTION | 0)) == -1)
6169 SWIG_fail;
6170 if (arg8 == NULL) {
6171 PyErr_SetString(PyExc_TypeError,"null reference");
6172 SWIG_fail;
6173 }
6174 }
6175 if (obj8) {
6176 {
6177 arg9 = wxString_in_helper(obj8);
6178 if (arg9 == NULL) SWIG_fail;
6179 temp9 = true;
6180 }
6181 }
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 {
6190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6191 }
6192 {
6193 if (temp6) delete arg6;
6194 }
6195 {
6196 if (temp9)
6197 delete arg9;
6198 }
6199 return resultobj;
6200 fail:
6201 {
6202 if (temp6) delete arg6;
6203 }
6204 {
6205 if (temp9)
6206 delete arg9;
6207 }
6208 return NULL;
6209 }
6210
6211
6212 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
6213 PyObject *resultobj;
6214 wxListBox *arg1 = (wxListBox *) 0 ;
6215 wxString *arg2 = 0 ;
6216 int arg3 ;
6217 PyObject *arg4 = (PyObject *) NULL ;
6218 bool temp2 = false ;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6221 PyObject * obj2 = 0 ;
6222 PyObject * obj3 = 0 ;
6223 char *kwnames[] = {
6224 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
6225 };
6226
6227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6230 {
6231 arg2 = wxString_in_helper(obj1);
6232 if (arg2 == NULL) SWIG_fail;
6233 temp2 = true;
6234 }
6235 arg3 = (int)SWIG_As_int(obj2);
6236 if (PyErr_Occurred()) SWIG_fail;
6237 if (obj3) {
6238 arg4 = obj3;
6239 }
6240 {
6241 PyThreadState* __tstate = wxPyBeginAllowThreads();
6242 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
6243
6244 wxPyEndAllowThreads(__tstate);
6245 if (PyErr_Occurred()) SWIG_fail;
6246 }
6247 Py_INCREF(Py_None); resultobj = Py_None;
6248 {
6249 if (temp2)
6250 delete arg2;
6251 }
6252 return resultobj;
6253 fail:
6254 {
6255 if (temp2)
6256 delete arg2;
6257 }
6258 return NULL;
6259 }
6260
6261
6262 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6263 PyObject *resultobj;
6264 wxListBox *arg1 = (wxListBox *) 0 ;
6265 wxArrayString *arg2 = 0 ;
6266 int arg3 ;
6267 bool temp2 = false ;
6268 PyObject * obj0 = 0 ;
6269 PyObject * obj1 = 0 ;
6270 PyObject * obj2 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self",(char *) "items",(char *) "pos", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 {
6279 if (! PySequence_Check(obj1)) {
6280 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6281 SWIG_fail;
6282 }
6283 arg2 = new wxArrayString;
6284 temp2 = true;
6285 int i, len=PySequence_Length(obj1);
6286 for (i=0; i<len; i++) {
6287 PyObject* item = PySequence_GetItem(obj1, i);
6288 #if wxUSE_UNICODE
6289 PyObject* str = PyObject_Unicode(item);
6290 #else
6291 PyObject* str = PyObject_Str(item);
6292 #endif
6293 if (PyErr_Occurred()) SWIG_fail;
6294 arg2->Add(Py2wxString(str));
6295 Py_DECREF(item);
6296 Py_DECREF(str);
6297 }
6298 }
6299 arg3 = (int)SWIG_As_int(obj2);
6300 if (PyErr_Occurred()) SWIG_fail;
6301 {
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6304
6305 wxPyEndAllowThreads(__tstate);
6306 if (PyErr_Occurred()) SWIG_fail;
6307 }
6308 Py_INCREF(Py_None); resultobj = Py_None;
6309 {
6310 if (temp2) delete arg2;
6311 }
6312 return resultobj;
6313 fail:
6314 {
6315 if (temp2) delete arg2;
6316 }
6317 return NULL;
6318 }
6319
6320
6321 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6322 PyObject *resultobj;
6323 wxListBox *arg1 = (wxListBox *) 0 ;
6324 wxArrayString *arg2 = 0 ;
6325 bool temp2 = false ;
6326 PyObject * obj0 = 0 ;
6327 PyObject * obj1 = 0 ;
6328 char *kwnames[] = {
6329 (char *) "self",(char *) "items", NULL
6330 };
6331
6332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6335 {
6336 if (! PySequence_Check(obj1)) {
6337 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6338 SWIG_fail;
6339 }
6340 arg2 = new wxArrayString;
6341 temp2 = true;
6342 int i, len=PySequence_Length(obj1);
6343 for (i=0; i<len; i++) {
6344 PyObject* item = PySequence_GetItem(obj1, i);
6345 #if wxUSE_UNICODE
6346 PyObject* str = PyObject_Unicode(item);
6347 #else
6348 PyObject* str = PyObject_Str(item);
6349 #endif
6350 if (PyErr_Occurred()) SWIG_fail;
6351 arg2->Add(Py2wxString(str));
6352 Py_DECREF(item);
6353 Py_DECREF(str);
6354 }
6355 }
6356 {
6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
6358 (arg1)->Set((wxArrayString const &)*arg2);
6359
6360 wxPyEndAllowThreads(__tstate);
6361 if (PyErr_Occurred()) SWIG_fail;
6362 }
6363 Py_INCREF(Py_None); resultobj = Py_None;
6364 {
6365 if (temp2) delete arg2;
6366 }
6367 return resultobj;
6368 fail:
6369 {
6370 if (temp2) delete arg2;
6371 }
6372 return NULL;
6373 }
6374
6375
6376 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6377 PyObject *resultobj;
6378 wxListBox *arg1 = (wxListBox *) 0 ;
6379 int arg2 ;
6380 bool result;
6381 PyObject * obj0 = 0 ;
6382 PyObject * obj1 = 0 ;
6383 char *kwnames[] = {
6384 (char *) "self",(char *) "n", NULL
6385 };
6386
6387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6390 arg2 = (int)SWIG_As_int(obj1);
6391 if (PyErr_Occurred()) SWIG_fail;
6392 {
6393 PyThreadState* __tstate = wxPyBeginAllowThreads();
6394 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6395
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 {
6400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6401 }
6402 return resultobj;
6403 fail:
6404 return NULL;
6405 }
6406
6407
6408 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6409 PyObject *resultobj;
6410 wxListBox *arg1 = (wxListBox *) 0 ;
6411 int arg2 ;
6412 bool arg3 = (bool) true ;
6413 PyObject * obj0 = 0 ;
6414 PyObject * obj1 = 0 ;
6415 PyObject * obj2 = 0 ;
6416 char *kwnames[] = {
6417 (char *) "self",(char *) "n",(char *) "select", NULL
6418 };
6419
6420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6423 arg2 = (int)SWIG_As_int(obj1);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 if (obj2) {
6426 arg3 = (bool)SWIG_As_bool(obj2);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 (arg1)->SetSelection(arg2,arg3);
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 Py_INCREF(Py_None); resultobj = Py_None;
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxListBox *arg1 = (wxListBox *) 0 ;
6446 int arg2 ;
6447 PyObject * obj0 = 0 ;
6448 PyObject * obj1 = 0 ;
6449 char *kwnames[] = {
6450 (char *) "self",(char *) "n", NULL
6451 };
6452
6453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6456 arg2 = (int)SWIG_As_int(obj1);
6457 if (PyErr_Occurred()) SWIG_fail;
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 (arg1)->Select(arg2);
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 Py_INCREF(Py_None); resultobj = Py_None;
6466 return resultobj;
6467 fail:
6468 return NULL;
6469 }
6470
6471
6472 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6473 PyObject *resultobj;
6474 wxListBox *arg1 = (wxListBox *) 0 ;
6475 int arg2 ;
6476 PyObject * obj0 = 0 ;
6477 PyObject * obj1 = 0 ;
6478 char *kwnames[] = {
6479 (char *) "self",(char *) "n", NULL
6480 };
6481
6482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6485 arg2 = (int)SWIG_As_int(obj1);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 {
6488 PyThreadState* __tstate = wxPyBeginAllowThreads();
6489 (arg1)->Deselect(arg2);
6490
6491 wxPyEndAllowThreads(__tstate);
6492 if (PyErr_Occurred()) SWIG_fail;
6493 }
6494 Py_INCREF(Py_None); resultobj = Py_None;
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6502 PyObject *resultobj;
6503 wxListBox *arg1 = (wxListBox *) 0 ;
6504 int arg2 = (int) -1 ;
6505 PyObject * obj0 = 0 ;
6506 PyObject * obj1 = 0 ;
6507 char *kwnames[] = {
6508 (char *) "self",(char *) "itemToLeaveSelected", NULL
6509 };
6510
6511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6514 if (obj1) {
6515 arg2 = (int)SWIG_As_int(obj1);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 {
6519 PyThreadState* __tstate = wxPyBeginAllowThreads();
6520 (arg1)->DeselectAll(arg2);
6521
6522 wxPyEndAllowThreads(__tstate);
6523 if (PyErr_Occurred()) SWIG_fail;
6524 }
6525 Py_INCREF(Py_None); resultobj = Py_None;
6526 return resultobj;
6527 fail:
6528 return NULL;
6529 }
6530
6531
6532 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6533 PyObject *resultobj;
6534 wxListBox *arg1 = (wxListBox *) 0 ;
6535 wxString *arg2 = 0 ;
6536 bool arg3 = (bool) true ;
6537 bool result;
6538 bool temp2 = false ;
6539 PyObject * obj0 = 0 ;
6540 PyObject * obj1 = 0 ;
6541 PyObject * obj2 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "self",(char *) "s",(char *) "select", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6549 {
6550 arg2 = wxString_in_helper(obj1);
6551 if (arg2 == NULL) SWIG_fail;
6552 temp2 = true;
6553 }
6554 if (obj2) {
6555 arg3 = (bool)SWIG_As_bool(obj2);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 {
6559 PyThreadState* __tstate = wxPyBeginAllowThreads();
6560 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6561
6562 wxPyEndAllowThreads(__tstate);
6563 if (PyErr_Occurred()) SWIG_fail;
6564 }
6565 {
6566 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6567 }
6568 {
6569 if (temp2)
6570 delete arg2;
6571 }
6572 return resultobj;
6573 fail:
6574 {
6575 if (temp2)
6576 delete arg2;
6577 }
6578 return NULL;
6579 }
6580
6581
6582 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxListBox *arg1 = (wxListBox *) 0 ;
6585 PyObject *result;
6586 PyObject * obj0 = 0 ;
6587 char *kwnames[] = {
6588 (char *) "self", NULL
6589 };
6590
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6594 {
6595 PyThreadState* __tstate = wxPyBeginAllowThreads();
6596 result = (PyObject *)wxListBox_GetSelections(arg1);
6597
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 resultobj = result;
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj;
6610 wxListBox *arg1 = (wxListBox *) 0 ;
6611 int arg2 ;
6612 PyObject * obj0 = 0 ;
6613 PyObject * obj1 = 0 ;
6614 char *kwnames[] = {
6615 (char *) "self",(char *) "n", NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6621 arg2 = (int)SWIG_As_int(obj1);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 (arg1)->SetFirstItem(arg2);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 Py_INCREF(Py_None); resultobj = Py_None;
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 wxListBox *arg1 = (wxListBox *) 0 ;
6640 wxString *arg2 = 0 ;
6641 bool temp2 = false ;
6642 PyObject * obj0 = 0 ;
6643 PyObject * obj1 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self",(char *) "s", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6651 {
6652 arg2 = wxString_in_helper(obj1);
6653 if (arg2 == NULL) SWIG_fail;
6654 temp2 = true;
6655 }
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 (arg1)->SetFirstItem((wxString const &)*arg2);
6659
6660 wxPyEndAllowThreads(__tstate);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 Py_INCREF(Py_None); resultobj = Py_None;
6664 {
6665 if (temp2)
6666 delete arg2;
6667 }
6668 return resultobj;
6669 fail:
6670 {
6671 if (temp2)
6672 delete arg2;
6673 }
6674 return NULL;
6675 }
6676
6677
6678 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6679 PyObject *resultobj;
6680 wxListBox *arg1 = (wxListBox *) 0 ;
6681 int arg2 ;
6682 PyObject * obj0 = 0 ;
6683 PyObject * obj1 = 0 ;
6684 char *kwnames[] = {
6685 (char *) "self",(char *) "n", NULL
6686 };
6687
6688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6691 arg2 = (int)SWIG_As_int(obj1);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 (arg1)->EnsureVisible(arg2);
6696
6697 wxPyEndAllowThreads(__tstate);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 Py_INCREF(Py_None); resultobj = Py_None;
6701 return resultobj;
6702 fail:
6703 return NULL;
6704 }
6705
6706
6707 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj;
6709 wxListBox *arg1 = (wxListBox *) 0 ;
6710 wxString *arg2 = 0 ;
6711 bool temp2 = false ;
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 char *kwnames[] = {
6715 (char *) "self",(char *) "s", NULL
6716 };
6717
6718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6721 {
6722 arg2 = wxString_in_helper(obj1);
6723 if (arg2 == NULL) SWIG_fail;
6724 temp2 = true;
6725 }
6726 {
6727 PyThreadState* __tstate = wxPyBeginAllowThreads();
6728 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6729
6730 wxPyEndAllowThreads(__tstate);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 }
6733 Py_INCREF(Py_None); resultobj = Py_None;
6734 {
6735 if (temp2)
6736 delete arg2;
6737 }
6738 return resultobj;
6739 fail:
6740 {
6741 if (temp2)
6742 delete arg2;
6743 }
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxListBox *arg1 = (wxListBox *) 0 ;
6751 bool result;
6752 PyObject * obj0 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "self", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6760 {
6761 PyThreadState* __tstate = wxPyBeginAllowThreads();
6762 result = (bool)((wxListBox const *)arg1)->IsSorted();
6763
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 {
6768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6769 }
6770 return resultobj;
6771 fail:
6772 return NULL;
6773 }
6774
6775
6776 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj;
6778 wxListBox *arg1 = (wxListBox *) 0 ;
6779 int arg2 ;
6780 wxColour *arg3 = 0 ;
6781 wxColour temp3 ;
6782 PyObject * obj0 = 0 ;
6783 PyObject * obj1 = 0 ;
6784 PyObject * obj2 = 0 ;
6785 char *kwnames[] = {
6786 (char *) "self",(char *) "item",(char *) "c", NULL
6787 };
6788
6789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6792 arg2 = (int)SWIG_As_int(obj1);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 {
6795 arg3 = &temp3;
6796 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6797 }
6798 {
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6801
6802 wxPyEndAllowThreads(__tstate);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 Py_INCREF(Py_None); resultobj = Py_None;
6806 return resultobj;
6807 fail:
6808 return NULL;
6809 }
6810
6811
6812 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6813 PyObject *resultobj;
6814 wxListBox *arg1 = (wxListBox *) 0 ;
6815 int arg2 ;
6816 wxColour *arg3 = 0 ;
6817 wxColour temp3 ;
6818 PyObject * obj0 = 0 ;
6819 PyObject * obj1 = 0 ;
6820 PyObject * obj2 = 0 ;
6821 char *kwnames[] = {
6822 (char *) "self",(char *) "item",(char *) "c", NULL
6823 };
6824
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6828 arg2 = (int)SWIG_As_int(obj1);
6829 if (PyErr_Occurred()) SWIG_fail;
6830 {
6831 arg3 = &temp3;
6832 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6833 }
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 Py_INCREF(Py_None); resultobj = Py_None;
6842 return resultobj;
6843 fail:
6844 return NULL;
6845 }
6846
6847
6848 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj;
6850 wxListBox *arg1 = (wxListBox *) 0 ;
6851 int arg2 ;
6852 wxFont *arg3 = 0 ;
6853 PyObject * obj0 = 0 ;
6854 PyObject * obj1 = 0 ;
6855 PyObject * obj2 = 0 ;
6856 char *kwnames[] = {
6857 (char *) "self",(char *) "item",(char *) "f", NULL
6858 };
6859
6860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6863 arg2 = (int)SWIG_As_int(obj1);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6866 SWIG_POINTER_EXCEPTION | 0)) == -1)
6867 SWIG_fail;
6868 if (arg3 == NULL) {
6869 PyErr_SetString(PyExc_TypeError,"null reference");
6870 SWIG_fail;
6871 }
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 Py_INCREF(Py_None); resultobj = Py_None;
6880 return resultobj;
6881 fail:
6882 return NULL;
6883 }
6884
6885
6886 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6887 PyObject *resultobj;
6888 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6889 wxVisualAttributes result;
6890 PyObject * obj0 = 0 ;
6891 char *kwnames[] = {
6892 (char *) "variant", NULL
6893 };
6894
6895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6896 if (obj0) {
6897 arg1 = (int)SWIG_As_int(obj0);
6898 if (PyErr_Occurred()) SWIG_fail;
6899 }
6900 {
6901 if (!wxPyCheckForApp()) SWIG_fail;
6902 PyThreadState* __tstate = wxPyBeginAllowThreads();
6903 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6904
6905 wxPyEndAllowThreads(__tstate);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 wxVisualAttributes * resultptr;
6910 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6911 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6912 }
6913 return resultobj;
6914 fail:
6915 return NULL;
6916 }
6917
6918
6919 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6920 PyObject *obj;
6921 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6922 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6923 Py_INCREF(obj);
6924 return Py_BuildValue((char *)"");
6925 }
6926 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6927 PyObject *resultobj;
6928 wxWindow *arg1 = (wxWindow *) 0 ;
6929 int arg2 = (int) -1 ;
6930 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6931 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6932 wxSize const &arg4_defvalue = wxDefaultSize ;
6933 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6934 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6935 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6936 long arg6 = (long) 0 ;
6937 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6938 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6939 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6940 wxString *arg8 = (wxString *) &arg8_defvalue ;
6941 wxCheckListBox *result;
6942 wxPoint temp3 ;
6943 wxSize temp4 ;
6944 bool temp5 = false ;
6945 bool temp8 = false ;
6946 PyObject * obj0 = 0 ;
6947 PyObject * obj1 = 0 ;
6948 PyObject * obj2 = 0 ;
6949 PyObject * obj3 = 0 ;
6950 PyObject * obj4 = 0 ;
6951 PyObject * obj5 = 0 ;
6952 PyObject * obj6 = 0 ;
6953 PyObject * obj7 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6961 if (obj1) {
6962 arg2 = (int)SWIG_As_int(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 }
6965 if (obj2) {
6966 {
6967 arg3 = &temp3;
6968 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6969 }
6970 }
6971 if (obj3) {
6972 {
6973 arg4 = &temp4;
6974 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6975 }
6976 }
6977 if (obj4) {
6978 {
6979 if (! PySequence_Check(obj4)) {
6980 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6981 SWIG_fail;
6982 }
6983 arg5 = new wxArrayString;
6984 temp5 = true;
6985 int i, len=PySequence_Length(obj4);
6986 for (i=0; i<len; i++) {
6987 PyObject* item = PySequence_GetItem(obj4, i);
6988 #if wxUSE_UNICODE
6989 PyObject* str = PyObject_Unicode(item);
6990 #else
6991 PyObject* str = PyObject_Str(item);
6992 #endif
6993 if (PyErr_Occurred()) SWIG_fail;
6994 arg5->Add(Py2wxString(str));
6995 Py_DECREF(item);
6996 Py_DECREF(str);
6997 }
6998 }
6999 }
7000 if (obj5) {
7001 arg6 = (long)SWIG_As_long(obj5);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 if (obj6) {
7005 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
7006 SWIG_POINTER_EXCEPTION | 0)) == -1)
7007 SWIG_fail;
7008 if (arg7 == NULL) {
7009 PyErr_SetString(PyExc_TypeError,"null reference");
7010 SWIG_fail;
7011 }
7012 }
7013 if (obj7) {
7014 {
7015 arg8 = wxString_in_helper(obj7);
7016 if (arg8 == NULL) SWIG_fail;
7017 temp8 = true;
7018 }
7019 }
7020 {
7021 if (!wxPyCheckForApp()) SWIG_fail;
7022 PyThreadState* __tstate = wxPyBeginAllowThreads();
7023 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
7024
7025 wxPyEndAllowThreads(__tstate);
7026 if (PyErr_Occurred()) SWIG_fail;
7027 }
7028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
7029 {
7030 if (temp5) delete arg5;
7031 }
7032 {
7033 if (temp8)
7034 delete arg8;
7035 }
7036 return resultobj;
7037 fail:
7038 {
7039 if (temp5) delete arg5;
7040 }
7041 {
7042 if (temp8)
7043 delete arg8;
7044 }
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 wxCheckListBox *result;
7052 char *kwnames[] = {
7053 NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
7057 {
7058 if (!wxPyCheckForApp()) SWIG_fail;
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 result = (wxCheckListBox *)new wxCheckListBox();
7061
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj;
7074 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7075 wxWindow *arg2 = (wxWindow *) 0 ;
7076 int arg3 = (int) -1 ;
7077 wxPoint const &arg4_defvalue = wxDefaultPosition ;
7078 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
7079 wxSize const &arg5_defvalue = wxDefaultSize ;
7080 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
7081 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
7082 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
7083 long arg7 = (long) 0 ;
7084 wxValidator const &arg8_defvalue = wxDefaultValidator ;
7085 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
7086 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
7087 wxString *arg9 = (wxString *) &arg9_defvalue ;
7088 bool result;
7089 wxPoint temp4 ;
7090 wxSize temp5 ;
7091 bool temp6 = false ;
7092 bool temp9 = false ;
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 PyObject * obj2 = 0 ;
7096 PyObject * obj3 = 0 ;
7097 PyObject * obj4 = 0 ;
7098 PyObject * obj5 = 0 ;
7099 PyObject * obj6 = 0 ;
7100 PyObject * obj7 = 0 ;
7101 PyObject * obj8 = 0 ;
7102 char *kwnames[] = {
7103 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
7104 };
7105
7106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
7107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7111 if (obj2) {
7112 arg3 = (int)SWIG_As_int(obj2);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 if (obj3) {
7116 {
7117 arg4 = &temp4;
7118 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
7119 }
7120 }
7121 if (obj4) {
7122 {
7123 arg5 = &temp5;
7124 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
7125 }
7126 }
7127 if (obj5) {
7128 {
7129 if (! PySequence_Check(obj5)) {
7130 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
7131 SWIG_fail;
7132 }
7133 arg6 = new wxArrayString;
7134 temp6 = true;
7135 int i, len=PySequence_Length(obj5);
7136 for (i=0; i<len; i++) {
7137 PyObject* item = PySequence_GetItem(obj5, i);
7138 #if wxUSE_UNICODE
7139 PyObject* str = PyObject_Unicode(item);
7140 #else
7141 PyObject* str = PyObject_Str(item);
7142 #endif
7143 if (PyErr_Occurred()) SWIG_fail;
7144 arg6->Add(Py2wxString(str));
7145 Py_DECREF(item);
7146 Py_DECREF(str);
7147 }
7148 }
7149 }
7150 if (obj6) {
7151 arg7 = (long)SWIG_As_long(obj6);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 if (obj7) {
7155 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
7156 SWIG_POINTER_EXCEPTION | 0)) == -1)
7157 SWIG_fail;
7158 if (arg8 == NULL) {
7159 PyErr_SetString(PyExc_TypeError,"null reference");
7160 SWIG_fail;
7161 }
7162 }
7163 if (obj8) {
7164 {
7165 arg9 = wxString_in_helper(obj8);
7166 if (arg9 == NULL) SWIG_fail;
7167 temp9 = true;
7168 }
7169 }
7170 {
7171 PyThreadState* __tstate = wxPyBeginAllowThreads();
7172 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
7173
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 {
7178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7179 }
7180 {
7181 if (temp6) delete arg6;
7182 }
7183 {
7184 if (temp9)
7185 delete arg9;
7186 }
7187 return resultobj;
7188 fail:
7189 {
7190 if (temp6) delete arg6;
7191 }
7192 {
7193 if (temp9)
7194 delete arg9;
7195 }
7196 return NULL;
7197 }
7198
7199
7200 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
7201 PyObject *resultobj;
7202 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7203 int arg2 ;
7204 bool result;
7205 PyObject * obj0 = 0 ;
7206 PyObject * obj1 = 0 ;
7207 char *kwnames[] = {
7208 (char *) "self",(char *) "index", NULL
7209 };
7210
7211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
7212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7214 arg2 = (int)SWIG_As_int(obj1);
7215 if (PyErr_Occurred()) SWIG_fail;
7216 {
7217 PyThreadState* __tstate = wxPyBeginAllowThreads();
7218 result = (bool)(arg1)->IsChecked(arg2);
7219
7220 wxPyEndAllowThreads(__tstate);
7221 if (PyErr_Occurred()) SWIG_fail;
7222 }
7223 {
7224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7225 }
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
7233 PyObject *resultobj;
7234 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7235 int arg2 ;
7236 int arg3 = (int) true ;
7237 PyObject * obj0 = 0 ;
7238 PyObject * obj1 = 0 ;
7239 PyObject * obj2 = 0 ;
7240 char *kwnames[] = {
7241 (char *) "self",(char *) "index",(char *) "check", NULL
7242 };
7243
7244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
7245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7247 arg2 = (int)SWIG_As_int(obj1);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 if (obj2) {
7250 arg3 = (int)SWIG_As_int(obj2);
7251 if (PyErr_Occurred()) SWIG_fail;
7252 }
7253 {
7254 PyThreadState* __tstate = wxPyBeginAllowThreads();
7255 (arg1)->Check(arg2,arg3);
7256
7257 wxPyEndAllowThreads(__tstate);
7258 if (PyErr_Occurred()) SWIG_fail;
7259 }
7260 Py_INCREF(Py_None); resultobj = Py_None;
7261 return resultobj;
7262 fail:
7263 return NULL;
7264 }
7265
7266
7267 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7268 PyObject *resultobj;
7269 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7270 int result;
7271 PyObject * obj0 = 0 ;
7272 char *kwnames[] = {
7273 (char *) "self", NULL
7274 };
7275
7276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (int)(arg1)->GetItemHeight();
7282
7283 wxPyEndAllowThreads(__tstate);
7284 if (PyErr_Occurred()) SWIG_fail;
7285 }
7286 resultobj = SWIG_From_int((int)result);
7287 return resultobj;
7288 fail:
7289 return NULL;
7290 }
7291
7292
7293 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7294 PyObject *resultobj;
7295 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7296 wxPoint *arg2 = 0 ;
7297 int result;
7298 wxPoint temp2 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 char *kwnames[] = {
7302 (char *) "self",(char *) "pt", NULL
7303 };
7304
7305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7308 {
7309 arg2 = &temp2;
7310 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7311 }
7312 {
7313 PyThreadState* __tstate = wxPyBeginAllowThreads();
7314 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7315
7316 wxPyEndAllowThreads(__tstate);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 resultobj = SWIG_From_int((int)result);
7320 return resultobj;
7321 fail:
7322 return NULL;
7323 }
7324
7325
7326 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7327 PyObject *resultobj;
7328 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7329 int arg2 ;
7330 int arg3 ;
7331 int result;
7332 PyObject * obj0 = 0 ;
7333 PyObject * obj1 = 0 ;
7334 PyObject * obj2 = 0 ;
7335 char *kwnames[] = {
7336 (char *) "self",(char *) "x",(char *) "y", NULL
7337 };
7338
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7342 arg2 = (int)SWIG_As_int(obj1);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 arg3 = (int)SWIG_As_int(obj2);
7345 if (PyErr_Occurred()) SWIG_fail;
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = SWIG_From_int((int)result);
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7361 PyObject *obj;
7362 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7363 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7364 Py_INCREF(obj);
7365 return Py_BuildValue((char *)"");
7366 }
7367 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7368 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7369 return 1;
7370 }
7371
7372
7373 static PyObject *_wrap_TextCtrlNameStr_get() {
7374 PyObject *pyobj;
7375
7376 {
7377 #if wxUSE_UNICODE
7378 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7379 #else
7380 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7381 #endif
7382 }
7383 return pyobj;
7384 }
7385
7386
7387 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7388 PyObject *resultobj;
7389 wxColour const &arg1_defvalue = wxNullColour ;
7390 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7391 wxColour const &arg2_defvalue = wxNullColour ;
7392 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7393 wxFont const &arg3_defvalue = wxNullFont ;
7394 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7395 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7396 wxTextAttr *result;
7397 wxColour temp1 ;
7398 wxColour temp2 ;
7399 PyObject * obj0 = 0 ;
7400 PyObject * obj1 = 0 ;
7401 PyObject * obj2 = 0 ;
7402 PyObject * obj3 = 0 ;
7403 char *kwnames[] = {
7404 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7405 };
7406
7407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7408 if (obj0) {
7409 {
7410 arg1 = &temp1;
7411 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7412 }
7413 }
7414 if (obj1) {
7415 {
7416 arg2 = &temp2;
7417 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7418 }
7419 }
7420 if (obj2) {
7421 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7422 SWIG_POINTER_EXCEPTION | 0)) == -1)
7423 SWIG_fail;
7424 if (arg3 == NULL) {
7425 PyErr_SetString(PyExc_TypeError,"null reference");
7426 SWIG_fail;
7427 }
7428 }
7429 if (obj3) {
7430 arg4 = (int)SWIG_As_int(obj3);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7441 return resultobj;
7442 fail:
7443 return NULL;
7444 }
7445
7446
7447 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7448 PyObject *resultobj;
7449 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7450 PyObject * obj0 = 0 ;
7451 char *kwnames[] = {
7452 (char *) "self", NULL
7453 };
7454
7455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7458 {
7459 PyThreadState* __tstate = wxPyBeginAllowThreads();
7460 delete arg1;
7461
7462 wxPyEndAllowThreads(__tstate);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 }
7465 Py_INCREF(Py_None); resultobj = Py_None;
7466 return resultobj;
7467 fail:
7468 return NULL;
7469 }
7470
7471
7472 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7473 PyObject *resultobj;
7474 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7475 PyObject * obj0 = 0 ;
7476 char *kwnames[] = {
7477 (char *) "self", NULL
7478 };
7479
7480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7483 {
7484 PyThreadState* __tstate = wxPyBeginAllowThreads();
7485 (arg1)->Init();
7486
7487 wxPyEndAllowThreads(__tstate);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 Py_INCREF(Py_None); resultobj = Py_None;
7491 return resultobj;
7492 fail:
7493 return NULL;
7494 }
7495
7496
7497 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7498 PyObject *resultobj;
7499 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7500 wxColour *arg2 = 0 ;
7501 wxColour temp2 ;
7502 PyObject * obj0 = 0 ;
7503 PyObject * obj1 = 0 ;
7504 char *kwnames[] = {
7505 (char *) "self",(char *) "colText", NULL
7506 };
7507
7508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7511 {
7512 arg2 = &temp2;
7513 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7514 }
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 (arg1)->SetTextColour((wxColour const &)*arg2);
7518
7519 wxPyEndAllowThreads(__tstate);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 Py_INCREF(Py_None); resultobj = Py_None;
7523 return resultobj;
7524 fail:
7525 return NULL;
7526 }
7527
7528
7529 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj;
7531 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7532 wxColour *arg2 = 0 ;
7533 wxColour temp2 ;
7534 PyObject * obj0 = 0 ;
7535 PyObject * obj1 = 0 ;
7536 char *kwnames[] = {
7537 (char *) "self",(char *) "colBack", NULL
7538 };
7539
7540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7543 {
7544 arg2 = &temp2;
7545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7546 }
7547 {
7548 PyThreadState* __tstate = wxPyBeginAllowThreads();
7549 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7550
7551 wxPyEndAllowThreads(__tstate);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 Py_INCREF(Py_None); resultobj = Py_None;
7555 return resultobj;
7556 fail:
7557 return NULL;
7558 }
7559
7560
7561 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7562 PyObject *resultobj;
7563 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7564 wxFont *arg2 = 0 ;
7565 long arg3 = (long) wxTEXT_ATTR_FONT ;
7566 PyObject * obj0 = 0 ;
7567 PyObject * obj1 = 0 ;
7568 PyObject * obj2 = 0 ;
7569 char *kwnames[] = {
7570 (char *) "self",(char *) "font",(char *) "flags", NULL
7571 };
7572
7573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7576 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7577 SWIG_POINTER_EXCEPTION | 0)) == -1)
7578 SWIG_fail;
7579 if (arg2 == NULL) {
7580 PyErr_SetString(PyExc_TypeError,"null reference");
7581 SWIG_fail;
7582 }
7583 if (obj2) {
7584 arg3 = (long)SWIG_As_long(obj2);
7585 if (PyErr_Occurred()) SWIG_fail;
7586 }
7587 {
7588 PyThreadState* __tstate = wxPyBeginAllowThreads();
7589 (arg1)->SetFont((wxFont const &)*arg2,arg3);
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_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7602 PyObject *resultobj;
7603 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7604 int arg2 ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 char *kwnames[] = {
7608 (char *) "self",(char *) "alignment", NULL
7609 };
7610
7611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7614 arg2 = (int)SWIG_As_int(obj1);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 {
7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
7618 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7619
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 Py_INCREF(Py_None); resultobj = Py_None;
7624 return resultobj;
7625 fail:
7626 return NULL;
7627 }
7628
7629
7630 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7631 PyObject *resultobj;
7632 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7633 wxArrayInt *arg2 = 0 ;
7634 bool temp2 = false ;
7635 PyObject * obj0 = 0 ;
7636 PyObject * obj1 = 0 ;
7637 char *kwnames[] = {
7638 (char *) "self",(char *) "tabs", NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7644 {
7645 if (! PySequence_Check(obj1)) {
7646 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7647 SWIG_fail;
7648 }
7649 arg2 = new wxArrayInt;
7650 temp2 = true;
7651 int i, len=PySequence_Length(obj1);
7652 for (i=0; i<len; i++) {
7653 PyObject* item = PySequence_GetItem(obj1, i);
7654 PyObject* number = PyNumber_Int(item);
7655 arg2->Add(PyInt_AS_LONG(number));
7656 Py_DECREF(item);
7657 Py_DECREF(number);
7658 }
7659 }
7660 {
7661 PyThreadState* __tstate = wxPyBeginAllowThreads();
7662 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7663
7664 wxPyEndAllowThreads(__tstate);
7665 if (PyErr_Occurred()) SWIG_fail;
7666 }
7667 Py_INCREF(Py_None); resultobj = Py_None;
7668 {
7669 if (temp2) delete arg2;
7670 }
7671 return resultobj;
7672 fail:
7673 {
7674 if (temp2) delete arg2;
7675 }
7676 return NULL;
7677 }
7678
7679
7680 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7681 PyObject *resultobj;
7682 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7683 int arg2 ;
7684 int arg3 = (int) 0 ;
7685 PyObject * obj0 = 0 ;
7686 PyObject * obj1 = 0 ;
7687 PyObject * obj2 = 0 ;
7688 char *kwnames[] = {
7689 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7690 };
7691
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7695 arg2 = (int)SWIG_As_int(obj1);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 if (obj2) {
7698 arg3 = (int)SWIG_As_int(obj2);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 (arg1)->SetLeftIndent(arg2,arg3);
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_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7716 PyObject *resultobj;
7717 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7718 int arg2 ;
7719 PyObject * obj0 = 0 ;
7720 PyObject * obj1 = 0 ;
7721 char *kwnames[] = {
7722 (char *) "self",(char *) "indent", NULL
7723 };
7724
7725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",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 = (int)SWIG_As_int(obj1);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 {
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 (arg1)->SetRightIndent(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_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7745 PyObject *resultobj;
7746 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7747 long arg2 ;
7748 PyObject * obj0 = 0 ;
7749 PyObject * obj1 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "self",(char *) "flags", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7757 arg2 = (long)SWIG_As_long(obj1);
7758 if (PyErr_Occurred()) SWIG_fail;
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 (arg1)->SetFlags(arg2);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 Py_INCREF(Py_None); resultobj = Py_None;
7767 return resultobj;
7768 fail:
7769 return NULL;
7770 }
7771
7772
7773 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7774 PyObject *resultobj;
7775 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7776 bool result;
7777 PyObject * obj0 = 0 ;
7778 char *kwnames[] = {
7779 (char *) "self", NULL
7780 };
7781
7782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7785 {
7786 PyThreadState* __tstate = wxPyBeginAllowThreads();
7787 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7788
7789 wxPyEndAllowThreads(__tstate);
7790 if (PyErr_Occurred()) SWIG_fail;
7791 }
7792 {
7793 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7794 }
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7804 bool result;
7805 PyObject * obj0 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "self", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 {
7821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7822 }
7823 return resultobj;
7824 fail:
7825 return NULL;
7826 }
7827
7828
7829 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7830 PyObject *resultobj;
7831 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7832 bool result;
7833 PyObject * obj0 = 0 ;
7834 char *kwnames[] = {
7835 (char *) "self", NULL
7836 };
7837
7838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7841 {
7842 PyThreadState* __tstate = wxPyBeginAllowThreads();
7843 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7844
7845 wxPyEndAllowThreads(__tstate);
7846 if (PyErr_Occurred()) SWIG_fail;
7847 }
7848 {
7849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7850 }
7851 return resultobj;
7852 fail:
7853 return NULL;
7854 }
7855
7856
7857 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7858 PyObject *resultobj;
7859 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7860 bool result;
7861 PyObject * obj0 = 0 ;
7862 char *kwnames[] = {
7863 (char *) "self", NULL
7864 };
7865
7866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7869 {
7870 PyThreadState* __tstate = wxPyBeginAllowThreads();
7871 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7872
7873 wxPyEndAllowThreads(__tstate);
7874 if (PyErr_Occurred()) SWIG_fail;
7875 }
7876 {
7877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7878 }
7879 return resultobj;
7880 fail:
7881 return NULL;
7882 }
7883
7884
7885 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7886 PyObject *resultobj;
7887 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7888 bool result;
7889 PyObject * obj0 = 0 ;
7890 char *kwnames[] = {
7891 (char *) "self", NULL
7892 };
7893
7894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7897 {
7898 PyThreadState* __tstate = wxPyBeginAllowThreads();
7899 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7900
7901 wxPyEndAllowThreads(__tstate);
7902 if (PyErr_Occurred()) SWIG_fail;
7903 }
7904 {
7905 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7906 }
7907 return resultobj;
7908 fail:
7909 return NULL;
7910 }
7911
7912
7913 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7914 PyObject *resultobj;
7915 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7916 bool result;
7917 PyObject * obj0 = 0 ;
7918 char *kwnames[] = {
7919 (char *) "self", NULL
7920 };
7921
7922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7925 {
7926 PyThreadState* __tstate = wxPyBeginAllowThreads();
7927 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7928
7929 wxPyEndAllowThreads(__tstate);
7930 if (PyErr_Occurred()) SWIG_fail;
7931 }
7932 {
7933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7934 }
7935 return resultobj;
7936 fail:
7937 return NULL;
7938 }
7939
7940
7941 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj;
7943 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7944 bool result;
7945 PyObject * obj0 = 0 ;
7946 char *kwnames[] = {
7947 (char *) "self", NULL
7948 };
7949
7950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7953 {
7954 PyThreadState* __tstate = wxPyBeginAllowThreads();
7955 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7956
7957 wxPyEndAllowThreads(__tstate);
7958 if (PyErr_Occurred()) SWIG_fail;
7959 }
7960 {
7961 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7962 }
7963 return resultobj;
7964 fail:
7965 return NULL;
7966 }
7967
7968
7969 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7970 PyObject *resultobj;
7971 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7972 long arg2 ;
7973 bool result;
7974 PyObject * obj0 = 0 ;
7975 PyObject * obj1 = 0 ;
7976 char *kwnames[] = {
7977 (char *) "self",(char *) "flag", NULL
7978 };
7979
7980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7983 arg2 = (long)SWIG_As_long(obj1);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 {
7986 PyThreadState* __tstate = wxPyBeginAllowThreads();
7987 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7988
7989 wxPyEndAllowThreads(__tstate);
7990 if (PyErr_Occurred()) SWIG_fail;
7991 }
7992 {
7993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7994 }
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_TextAttr_GetTextColour(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_GetTextColour",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)->GetTextColour();
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_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
8031 PyObject *resultobj;
8032 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8033 wxColour *result;
8034 PyObject * obj0 = 0 ;
8035 char *kwnames[] = {
8036 (char *) "self", NULL
8037 };
8038
8039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",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 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
8046 result = (wxColour *) &_result_ref;
8047 }
8048
8049 wxPyEndAllowThreads(__tstate);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
8060 PyObject *resultobj;
8061 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8062 wxFont *result;
8063 PyObject * obj0 = 0 ;
8064 char *kwnames[] = {
8065 (char *) "self", NULL
8066 };
8067
8068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
8069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 {
8074 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
8075 result = (wxFont *) &_result_ref;
8076 }
8077
8078 wxPyEndAllowThreads(__tstate);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 {
8082 wxFont* resultptr = new wxFont(*result);
8083 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
8084 }
8085 return resultobj;
8086 fail:
8087 return NULL;
8088 }
8089
8090
8091 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
8092 PyObject *resultobj;
8093 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8094 int result;
8095 PyObject * obj0 = 0 ;
8096 char *kwnames[] = {
8097 (char *) "self", NULL
8098 };
8099
8100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
8101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 resultobj = SWIG_From_int((int)result);
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8120 wxArrayInt *result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
8127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 {
8132 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
8133 result = (wxArrayInt *) &_result_ref;
8134 }
8135
8136 wxPyEndAllowThreads(__tstate);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 {
8140 resultobj = PyList_New(0);
8141 size_t idx;
8142 for (idx = 0; idx < result->GetCount(); idx += 1) {
8143 PyObject* val = PyInt_FromLong( result->Item(idx) );
8144 PyList_Append(resultobj, val);
8145 Py_DECREF(val);
8146 }
8147 }
8148 return resultobj;
8149 fail:
8150 return NULL;
8151 }
8152
8153
8154 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8155 PyObject *resultobj;
8156 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8157 long result;
8158 PyObject * obj0 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "self", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
8164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8166 {
8167 PyThreadState* __tstate = wxPyBeginAllowThreads();
8168 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
8169
8170 wxPyEndAllowThreads(__tstate);
8171 if (PyErr_Occurred()) SWIG_fail;
8172 }
8173 resultobj = SWIG_From_long((long)result);
8174 return resultobj;
8175 fail:
8176 return NULL;
8177 }
8178
8179
8180 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj;
8182 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8183 long result;
8184 PyObject * obj0 = 0 ;
8185 char *kwnames[] = {
8186 (char *) "self", NULL
8187 };
8188
8189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
8190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8192 {
8193 PyThreadState* __tstate = wxPyBeginAllowThreads();
8194 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
8195
8196 wxPyEndAllowThreads(__tstate);
8197 if (PyErr_Occurred()) SWIG_fail;
8198 }
8199 resultobj = SWIG_From_long((long)result);
8200 return resultobj;
8201 fail:
8202 return NULL;
8203 }
8204
8205
8206 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
8207 PyObject *resultobj;
8208 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8209 long result;
8210 PyObject * obj0 = 0 ;
8211 char *kwnames[] = {
8212 (char *) "self", NULL
8213 };
8214
8215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
8216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 resultobj = SWIG_From_long((long)result);
8226 return resultobj;
8227 fail:
8228 return NULL;
8229 }
8230
8231
8232 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
8233 PyObject *resultobj;
8234 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8235 long result;
8236 PyObject * obj0 = 0 ;
8237 char *kwnames[] = {
8238 (char *) "self", NULL
8239 };
8240
8241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
8242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8244 {
8245 PyThreadState* __tstate = wxPyBeginAllowThreads();
8246 result = (long)((wxTextAttr const *)arg1)->GetFlags();
8247
8248 wxPyEndAllowThreads(__tstate);
8249 if (PyErr_Occurred()) SWIG_fail;
8250 }
8251 resultobj = SWIG_From_long((long)result);
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8261 bool result;
8262 PyObject * obj0 = 0 ;
8263 char *kwnames[] = {
8264 (char *) "self", NULL
8265 };
8266
8267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8273
8274 wxPyEndAllowThreads(__tstate);
8275 if (PyErr_Occurred()) SWIG_fail;
8276 }
8277 {
8278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8279 }
8280 return resultobj;
8281 fail:
8282 return NULL;
8283 }
8284
8285
8286 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8287 PyObject *resultobj;
8288 wxTextAttr *arg1 = 0 ;
8289 wxTextAttr *arg2 = 0 ;
8290 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8291 wxTextAttr result;
8292 PyObject * obj0 = 0 ;
8293 PyObject * obj1 = 0 ;
8294 PyObject * obj2 = 0 ;
8295 char *kwnames[] = {
8296 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8297 };
8298
8299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8301 SWIG_POINTER_EXCEPTION | 0)) == -1)
8302 SWIG_fail;
8303 if (arg1 == NULL) {
8304 PyErr_SetString(PyExc_TypeError,"null reference");
8305 SWIG_fail;
8306 }
8307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8308 SWIG_POINTER_EXCEPTION | 0)) == -1)
8309 SWIG_fail;
8310 if (arg2 == NULL) {
8311 PyErr_SetString(PyExc_TypeError,"null reference");
8312 SWIG_fail;
8313 }
8314 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 {
8317 PyThreadState* __tstate = wxPyBeginAllowThreads();
8318 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8319
8320 wxPyEndAllowThreads(__tstate);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 {
8324 wxTextAttr * resultptr;
8325 resultptr = new wxTextAttr((wxTextAttr &) result);
8326 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8327 }
8328 return resultobj;
8329 fail:
8330 return NULL;
8331 }
8332
8333
8334 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8335 PyObject *obj;
8336 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8337 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8338 Py_INCREF(obj);
8339 return Py_BuildValue((char *)"");
8340 }
8341 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8342 PyObject *resultobj;
8343 wxWindow *arg1 = (wxWindow *) 0 ;
8344 int arg2 = (int) -1 ;
8345 wxString const &arg3_defvalue = wxPyEmptyString ;
8346 wxString *arg3 = (wxString *) &arg3_defvalue ;
8347 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8348 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8349 wxSize const &arg5_defvalue = wxDefaultSize ;
8350 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8351 long arg6 = (long) 0 ;
8352 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8353 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8354 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8355 wxString *arg8 = (wxString *) &arg8_defvalue ;
8356 wxTextCtrl *result;
8357 bool temp3 = false ;
8358 wxPoint temp4 ;
8359 wxSize temp5 ;
8360 bool temp8 = false ;
8361 PyObject * obj0 = 0 ;
8362 PyObject * obj1 = 0 ;
8363 PyObject * obj2 = 0 ;
8364 PyObject * obj3 = 0 ;
8365 PyObject * obj4 = 0 ;
8366 PyObject * obj5 = 0 ;
8367 PyObject * obj6 = 0 ;
8368 PyObject * obj7 = 0 ;
8369 char *kwnames[] = {
8370 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8371 };
8372
8373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8376 if (obj1) {
8377 arg2 = (int)SWIG_As_int(obj1);
8378 if (PyErr_Occurred()) SWIG_fail;
8379 }
8380 if (obj2) {
8381 {
8382 arg3 = wxString_in_helper(obj2);
8383 if (arg3 == NULL) SWIG_fail;
8384 temp3 = true;
8385 }
8386 }
8387 if (obj3) {
8388 {
8389 arg4 = &temp4;
8390 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8391 }
8392 }
8393 if (obj4) {
8394 {
8395 arg5 = &temp5;
8396 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8397 }
8398 }
8399 if (obj5) {
8400 arg6 = (long)SWIG_As_long(obj5);
8401 if (PyErr_Occurred()) SWIG_fail;
8402 }
8403 if (obj6) {
8404 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8405 SWIG_POINTER_EXCEPTION | 0)) == -1)
8406 SWIG_fail;
8407 if (arg7 == NULL) {
8408 PyErr_SetString(PyExc_TypeError,"null reference");
8409 SWIG_fail;
8410 }
8411 }
8412 if (obj7) {
8413 {
8414 arg8 = wxString_in_helper(obj7);
8415 if (arg8 == NULL) SWIG_fail;
8416 temp8 = true;
8417 }
8418 }
8419 {
8420 if (!wxPyCheckForApp()) SWIG_fail;
8421 PyThreadState* __tstate = wxPyBeginAllowThreads();
8422 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8423
8424 wxPyEndAllowThreads(__tstate);
8425 if (PyErr_Occurred()) SWIG_fail;
8426 }
8427 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8428 {
8429 if (temp3)
8430 delete arg3;
8431 }
8432 {
8433 if (temp8)
8434 delete arg8;
8435 }
8436 return resultobj;
8437 fail:
8438 {
8439 if (temp3)
8440 delete arg3;
8441 }
8442 {
8443 if (temp8)
8444 delete arg8;
8445 }
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxTextCtrl *result;
8453 char *kwnames[] = {
8454 NULL
8455 };
8456
8457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8458 {
8459 if (!wxPyCheckForApp()) SWIG_fail;
8460 PyThreadState* __tstate = wxPyBeginAllowThreads();
8461 result = (wxTextCtrl *)new wxTextCtrl();
8462
8463 wxPyEndAllowThreads(__tstate);
8464 if (PyErr_Occurred()) SWIG_fail;
8465 }
8466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8467 return resultobj;
8468 fail:
8469 return NULL;
8470 }
8471
8472
8473 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8474 PyObject *resultobj;
8475 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8476 wxWindow *arg2 = (wxWindow *) 0 ;
8477 int arg3 = (int) -1 ;
8478 wxString const &arg4_defvalue = wxPyEmptyString ;
8479 wxString *arg4 = (wxString *) &arg4_defvalue ;
8480 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8481 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8482 wxSize const &arg6_defvalue = wxDefaultSize ;
8483 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8484 long arg7 = (long) 0 ;
8485 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8486 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8487 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8488 wxString *arg9 = (wxString *) &arg9_defvalue ;
8489 bool result;
8490 bool temp4 = false ;
8491 wxPoint temp5 ;
8492 wxSize temp6 ;
8493 bool temp9 = false ;
8494 PyObject * obj0 = 0 ;
8495 PyObject * obj1 = 0 ;
8496 PyObject * obj2 = 0 ;
8497 PyObject * obj3 = 0 ;
8498 PyObject * obj4 = 0 ;
8499 PyObject * obj5 = 0 ;
8500 PyObject * obj6 = 0 ;
8501 PyObject * obj7 = 0 ;
8502 PyObject * obj8 = 0 ;
8503 char *kwnames[] = {
8504 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8505 };
8506
8507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8512 if (obj2) {
8513 arg3 = (int)SWIG_As_int(obj2);
8514 if (PyErr_Occurred()) SWIG_fail;
8515 }
8516 if (obj3) {
8517 {
8518 arg4 = wxString_in_helper(obj3);
8519 if (arg4 == NULL) SWIG_fail;
8520 temp4 = true;
8521 }
8522 }
8523 if (obj4) {
8524 {
8525 arg5 = &temp5;
8526 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8527 }
8528 }
8529 if (obj5) {
8530 {
8531 arg6 = &temp6;
8532 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8533 }
8534 }
8535 if (obj6) {
8536 arg7 = (long)SWIG_As_long(obj6);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 if (obj7) {
8540 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8541 SWIG_POINTER_EXCEPTION | 0)) == -1)
8542 SWIG_fail;
8543 if (arg8 == NULL) {
8544 PyErr_SetString(PyExc_TypeError,"null reference");
8545 SWIG_fail;
8546 }
8547 }
8548 if (obj8) {
8549 {
8550 arg9 = wxString_in_helper(obj8);
8551 if (arg9 == NULL) SWIG_fail;
8552 temp9 = true;
8553 }
8554 }
8555 {
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8558
8559 wxPyEndAllowThreads(__tstate);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 {
8563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8564 }
8565 {
8566 if (temp4)
8567 delete arg4;
8568 }
8569 {
8570 if (temp9)
8571 delete arg9;
8572 }
8573 return resultobj;
8574 fail:
8575 {
8576 if (temp4)
8577 delete arg4;
8578 }
8579 {
8580 if (temp9)
8581 delete arg9;
8582 }
8583 return NULL;
8584 }
8585
8586
8587 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8590 wxString result;
8591 PyObject * obj0 = 0 ;
8592 char *kwnames[] = {
8593 (char *) "self", NULL
8594 };
8595
8596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8599 {
8600 PyThreadState* __tstate = wxPyBeginAllowThreads();
8601 result = ((wxTextCtrl const *)arg1)->GetValue();
8602
8603 wxPyEndAllowThreads(__tstate);
8604 if (PyErr_Occurred()) SWIG_fail;
8605 }
8606 {
8607 #if wxUSE_UNICODE
8608 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8609 #else
8610 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8611 #endif
8612 }
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj;
8621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8622 wxString *arg2 = 0 ;
8623 bool temp2 = false ;
8624 PyObject * obj0 = 0 ;
8625 PyObject * obj1 = 0 ;
8626 char *kwnames[] = {
8627 (char *) "self",(char *) "value", NULL
8628 };
8629
8630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8633 {
8634 arg2 = wxString_in_helper(obj1);
8635 if (arg2 == NULL) SWIG_fail;
8636 temp2 = true;
8637 }
8638 {
8639 PyThreadState* __tstate = wxPyBeginAllowThreads();
8640 (arg1)->SetValue((wxString const &)*arg2);
8641
8642 wxPyEndAllowThreads(__tstate);
8643 if (PyErr_Occurred()) SWIG_fail;
8644 }
8645 Py_INCREF(Py_None); resultobj = Py_None;
8646 {
8647 if (temp2)
8648 delete arg2;
8649 }
8650 return resultobj;
8651 fail:
8652 {
8653 if (temp2)
8654 delete arg2;
8655 }
8656 return NULL;
8657 }
8658
8659
8660 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8661 PyObject *resultobj;
8662 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8663 long arg2 ;
8664 long arg3 ;
8665 wxString result;
8666 PyObject * obj0 = 0 ;
8667 PyObject * obj1 = 0 ;
8668 PyObject * obj2 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "self",(char *) "from",(char *) "to", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8676 arg2 = (long)SWIG_As_long(obj1);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 arg3 = (long)SWIG_As_long(obj2);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8683
8684 wxPyEndAllowThreads(__tstate);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 {
8688 #if wxUSE_UNICODE
8689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8690 #else
8691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8692 #endif
8693 }
8694 return resultobj;
8695 fail:
8696 return NULL;
8697 }
8698
8699
8700 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj;
8702 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8703 long arg2 ;
8704 int result;
8705 PyObject * obj0 = 0 ;
8706 PyObject * obj1 = 0 ;
8707 char *kwnames[] = {
8708 (char *) "self",(char *) "lineNo", NULL
8709 };
8710
8711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8714 arg2 = (long)SWIG_As_long(obj1);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 {
8717 PyThreadState* __tstate = wxPyBeginAllowThreads();
8718 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8719
8720 wxPyEndAllowThreads(__tstate);
8721 if (PyErr_Occurred()) SWIG_fail;
8722 }
8723 resultobj = SWIG_From_int((int)result);
8724 return resultobj;
8725 fail:
8726 return NULL;
8727 }
8728
8729
8730 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8731 PyObject *resultobj;
8732 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8733 long arg2 ;
8734 wxString result;
8735 PyObject * obj0 = 0 ;
8736 PyObject * obj1 = 0 ;
8737 char *kwnames[] = {
8738 (char *) "self",(char *) "lineNo", NULL
8739 };
8740
8741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8744 arg2 = (long)SWIG_As_long(obj1);
8745 if (PyErr_Occurred()) SWIG_fail;
8746 {
8747 PyThreadState* __tstate = wxPyBeginAllowThreads();
8748 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8749
8750 wxPyEndAllowThreads(__tstate);
8751 if (PyErr_Occurred()) SWIG_fail;
8752 }
8753 {
8754 #if wxUSE_UNICODE
8755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8756 #else
8757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8758 #endif
8759 }
8760 return resultobj;
8761 fail:
8762 return NULL;
8763 }
8764
8765
8766 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8767 PyObject *resultobj;
8768 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8769 int result;
8770 PyObject * obj0 = 0 ;
8771 char *kwnames[] = {
8772 (char *) "self", NULL
8773 };
8774
8775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8778 {
8779 PyThreadState* __tstate = wxPyBeginAllowThreads();
8780 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8781
8782 wxPyEndAllowThreads(__tstate);
8783 if (PyErr_Occurred()) SWIG_fail;
8784 }
8785 resultobj = SWIG_From_int((int)result);
8786 return resultobj;
8787 fail:
8788 return NULL;
8789 }
8790
8791
8792 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj;
8794 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8795 bool result;
8796 PyObject * obj0 = 0 ;
8797 char *kwnames[] = {
8798 (char *) "self", NULL
8799 };
8800
8801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8804 {
8805 PyThreadState* __tstate = wxPyBeginAllowThreads();
8806 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8807
8808 wxPyEndAllowThreads(__tstate);
8809 if (PyErr_Occurred()) SWIG_fail;
8810 }
8811 {
8812 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8813 }
8814 return resultobj;
8815 fail:
8816 return NULL;
8817 }
8818
8819
8820 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8821 PyObject *resultobj;
8822 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8823 bool result;
8824 PyObject * obj0 = 0 ;
8825 char *kwnames[] = {
8826 (char *) "self", NULL
8827 };
8828
8829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8832 {
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8835
8836 wxPyEndAllowThreads(__tstate);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 {
8840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8841 }
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj;
8850 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8851 bool result;
8852 PyObject * obj0 = 0 ;
8853 char *kwnames[] = {
8854 (char *) "self", NULL
8855 };
8856
8857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8860 {
8861 PyThreadState* __tstate = wxPyBeginAllowThreads();
8862 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8863
8864 wxPyEndAllowThreads(__tstate);
8865 if (PyErr_Occurred()) SWIG_fail;
8866 }
8867 {
8868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8869 }
8870 return resultobj;
8871 fail:
8872 return NULL;
8873 }
8874
8875
8876 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8879 bool result;
8880 PyObject * obj0 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8888 {
8889 PyThreadState* __tstate = wxPyBeginAllowThreads();
8890 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8891
8892 wxPyEndAllowThreads(__tstate);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 }
8895 {
8896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8897 }
8898 return resultobj;
8899 fail:
8900 return NULL;
8901 }
8902
8903
8904 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8907 long *arg2 = (long *) 0 ;
8908 long *arg3 = (long *) 0 ;
8909 long temp2 ;
8910 int res2 = 0 ;
8911 long temp3 ;
8912 int res3 = 0 ;
8913 PyObject * obj0 = 0 ;
8914 char *kwnames[] = {
8915 (char *) "self", NULL
8916 };
8917
8918 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8919 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8923 {
8924 PyThreadState* __tstate = wxPyBeginAllowThreads();
8925 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8926
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 Py_INCREF(Py_None); resultobj = Py_None;
8931 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8932 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8933 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8934 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8935 return resultobj;
8936 fail:
8937 return NULL;
8938 }
8939
8940
8941 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj;
8943 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8944 wxString result;
8945 PyObject * obj0 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "self", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8953 {
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8956
8957 wxPyEndAllowThreads(__tstate);
8958 if (PyErr_Occurred()) SWIG_fail;
8959 }
8960 {
8961 #if wxUSE_UNICODE
8962 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8963 #else
8964 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8965 #endif
8966 }
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj;
8975 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8976 PyObject * obj0 = 0 ;
8977 char *kwnames[] = {
8978 (char *) "self", NULL
8979 };
8980
8981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 (arg1)->Clear();
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 Py_INCREF(Py_None); resultobj = Py_None;
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9001 long arg2 ;
9002 long arg3 ;
9003 wxString *arg4 = 0 ;
9004 bool temp4 = false ;
9005 PyObject * obj0 = 0 ;
9006 PyObject * obj1 = 0 ;
9007 PyObject * obj2 = 0 ;
9008 PyObject * obj3 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9016 arg2 = (long)SWIG_As_long(obj1);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 arg3 = (long)SWIG_As_long(obj2);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 {
9021 arg4 = wxString_in_helper(obj3);
9022 if (arg4 == NULL) SWIG_fail;
9023 temp4 = true;
9024 }
9025 {
9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
9027 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
9028
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 Py_INCREF(Py_None); resultobj = Py_None;
9033 {
9034 if (temp4)
9035 delete arg4;
9036 }
9037 return resultobj;
9038 fail:
9039 {
9040 if (temp4)
9041 delete arg4;
9042 }
9043 return NULL;
9044 }
9045
9046
9047 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj;
9049 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9050 long arg2 ;
9051 long arg3 ;
9052 PyObject * obj0 = 0 ;
9053 PyObject * obj1 = 0 ;
9054 PyObject * obj2 = 0 ;
9055 char *kwnames[] = {
9056 (char *) "self",(char *) "from",(char *) "to", NULL
9057 };
9058
9059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
9060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9062 arg2 = (long)SWIG_As_long(obj1);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 arg3 = (long)SWIG_As_long(obj2);
9065 if (PyErr_Occurred()) SWIG_fail;
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 (arg1)->Remove(arg2,arg3);
9069
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 Py_INCREF(Py_None); resultobj = Py_None;
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9083 wxString *arg2 = 0 ;
9084 bool result;
9085 bool temp2 = false ;
9086 PyObject * obj0 = 0 ;
9087 PyObject * obj1 = 0 ;
9088 char *kwnames[] = {
9089 (char *) "self",(char *) "file", NULL
9090 };
9091
9092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
9093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9095 {
9096 arg2 = wxString_in_helper(obj1);
9097 if (arg2 == NULL) SWIG_fail;
9098 temp2 = true;
9099 }
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9109 }
9110 {
9111 if (temp2)
9112 delete arg2;
9113 }
9114 return resultobj;
9115 fail:
9116 {
9117 if (temp2)
9118 delete arg2;
9119 }
9120 return NULL;
9121 }
9122
9123
9124 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
9125 PyObject *resultobj;
9126 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9127 wxString const &arg2_defvalue = wxPyEmptyString ;
9128 wxString *arg2 = (wxString *) &arg2_defvalue ;
9129 bool result;
9130 bool temp2 = false ;
9131 PyObject * obj0 = 0 ;
9132 PyObject * obj1 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self",(char *) "file", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9140 if (obj1) {
9141 {
9142 arg2 = wxString_in_helper(obj1);
9143 if (arg2 == NULL) SWIG_fail;
9144 temp2 = true;
9145 }
9146 }
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 {
9155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9156 }
9157 {
9158 if (temp2)
9159 delete arg2;
9160 }
9161 return resultobj;
9162 fail:
9163 {
9164 if (temp2)
9165 delete arg2;
9166 }
9167 return NULL;
9168 }
9169
9170
9171 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
9172 PyObject *resultobj;
9173 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9174 PyObject * obj0 = 0 ;
9175 char *kwnames[] = {
9176 (char *) "self", NULL
9177 };
9178
9179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
9180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9182 {
9183 PyThreadState* __tstate = wxPyBeginAllowThreads();
9184 (arg1)->MarkDirty();
9185
9186 wxPyEndAllowThreads(__tstate);
9187 if (PyErr_Occurred()) SWIG_fail;
9188 }
9189 Py_INCREF(Py_None); resultobj = Py_None;
9190 return resultobj;
9191 fail:
9192 return NULL;
9193 }
9194
9195
9196 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
9197 PyObject *resultobj;
9198 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9199 PyObject * obj0 = 0 ;
9200 char *kwnames[] = {
9201 (char *) "self", NULL
9202 };
9203
9204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
9205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 (arg1)->DiscardEdits();
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_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj;
9223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9224 unsigned long arg2 ;
9225 PyObject * obj0 = 0 ;
9226 PyObject * obj1 = 0 ;
9227 char *kwnames[] = {
9228 (char *) "self",(char *) "len", NULL
9229 };
9230
9231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
9232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9234 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 (arg1)->SetMaxLength(arg2);
9239
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 Py_INCREF(Py_None); resultobj = Py_None;
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9253 wxString *arg2 = 0 ;
9254 bool temp2 = false ;
9255 PyObject * obj0 = 0 ;
9256 PyObject * obj1 = 0 ;
9257 char *kwnames[] = {
9258 (char *) "self",(char *) "text", NULL
9259 };
9260
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9264 {
9265 arg2 = wxString_in_helper(obj1);
9266 if (arg2 == NULL) SWIG_fail;
9267 temp2 = true;
9268 }
9269 {
9270 PyThreadState* __tstate = wxPyBeginAllowThreads();
9271 (arg1)->WriteText((wxString const &)*arg2);
9272
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 Py_INCREF(Py_None); resultobj = Py_None;
9277 {
9278 if (temp2)
9279 delete arg2;
9280 }
9281 return resultobj;
9282 fail:
9283 {
9284 if (temp2)
9285 delete arg2;
9286 }
9287 return NULL;
9288 }
9289
9290
9291 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj;
9293 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9294 wxString *arg2 = 0 ;
9295 bool temp2 = false ;
9296 PyObject * obj0 = 0 ;
9297 PyObject * obj1 = 0 ;
9298 char *kwnames[] = {
9299 (char *) "self",(char *) "text", NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9305 {
9306 arg2 = wxString_in_helper(obj1);
9307 if (arg2 == NULL) SWIG_fail;
9308 temp2 = true;
9309 }
9310 {
9311 PyThreadState* __tstate = wxPyBeginAllowThreads();
9312 (arg1)->AppendText((wxString const &)*arg2);
9313
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 Py_INCREF(Py_None); resultobj = Py_None;
9318 {
9319 if (temp2)
9320 delete arg2;
9321 }
9322 return resultobj;
9323 fail:
9324 {
9325 if (temp2)
9326 delete arg2;
9327 }
9328 return NULL;
9329 }
9330
9331
9332 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj;
9334 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9335 wxKeyEvent *arg2 = 0 ;
9336 bool result;
9337 PyObject * obj0 = 0 ;
9338 PyObject * obj1 = 0 ;
9339 char *kwnames[] = {
9340 (char *) "self",(char *) "event", NULL
9341 };
9342
9343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9346 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9347 SWIG_POINTER_EXCEPTION | 0)) == -1)
9348 SWIG_fail;
9349 if (arg2 == NULL) {
9350 PyErr_SetString(PyExc_TypeError,"null reference");
9351 SWIG_fail;
9352 }
9353 {
9354 PyThreadState* __tstate = wxPyBeginAllowThreads();
9355 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9356
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 {
9361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9362 }
9363 return resultobj;
9364 fail:
9365 return NULL;
9366 }
9367
9368
9369 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9370 PyObject *resultobj;
9371 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9372 long arg2 ;
9373 long arg3 ;
9374 wxTextAttr *arg4 = 0 ;
9375 bool result;
9376 PyObject * obj0 = 0 ;
9377 PyObject * obj1 = 0 ;
9378 PyObject * obj2 = 0 ;
9379 PyObject * obj3 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 arg2 = (long)SWIG_As_long(obj1);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 arg3 = (long)SWIG_As_long(obj2);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9392 SWIG_POINTER_EXCEPTION | 0)) == -1)
9393 SWIG_fail;
9394 if (arg4 == NULL) {
9395 PyErr_SetString(PyExc_TypeError,"null reference");
9396 SWIG_fail;
9397 }
9398 {
9399 PyThreadState* __tstate = wxPyBeginAllowThreads();
9400 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9401
9402 wxPyEndAllowThreads(__tstate);
9403 if (PyErr_Occurred()) SWIG_fail;
9404 }
9405 {
9406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9407 }
9408 return resultobj;
9409 fail:
9410 return NULL;
9411 }
9412
9413
9414 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9415 PyObject *resultobj;
9416 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9417 long arg2 ;
9418 wxTextAttr *arg3 = 0 ;
9419 bool result;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 PyObject * obj2 = 0 ;
9423 char *kwnames[] = {
9424 (char *) "self",(char *) "position",(char *) "style", NULL
9425 };
9426
9427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9430 arg2 = (long)SWIG_As_long(obj1);
9431 if (PyErr_Occurred()) SWIG_fail;
9432 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9433 SWIG_POINTER_EXCEPTION | 0)) == -1)
9434 SWIG_fail;
9435 if (arg3 == NULL) {
9436 PyErr_SetString(PyExc_TypeError,"null reference");
9437 SWIG_fail;
9438 }
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9442
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 {
9447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9448 }
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9456 PyObject *resultobj;
9457 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9458 wxTextAttr *arg2 = 0 ;
9459 bool result;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self",(char *) "style", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9470 SWIG_POINTER_EXCEPTION | 0)) == -1)
9471 SWIG_fail;
9472 if (arg2 == NULL) {
9473 PyErr_SetString(PyExc_TypeError,"null reference");
9474 SWIG_fail;
9475 }
9476 {
9477 PyThreadState* __tstate = wxPyBeginAllowThreads();
9478 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9479
9480 wxPyEndAllowThreads(__tstate);
9481 if (PyErr_Occurred()) SWIG_fail;
9482 }
9483 {
9484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9485 }
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj;
9494 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9495 wxTextAttr *result;
9496 PyObject * obj0 = 0 ;
9497 char *kwnames[] = {
9498 (char *) "self", NULL
9499 };
9500
9501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 {
9507 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9508 result = (wxTextAttr *) &_result_ref;
9509 }
9510
9511 wxPyEndAllowThreads(__tstate);
9512 if (PyErr_Occurred()) SWIG_fail;
9513 }
9514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9515 return resultobj;
9516 fail:
9517 return NULL;
9518 }
9519
9520
9521 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9522 PyObject *resultobj;
9523 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9524 long arg2 ;
9525 long arg3 ;
9526 long result;
9527 PyObject * obj0 = 0 ;
9528 PyObject * obj1 = 0 ;
9529 PyObject * obj2 = 0 ;
9530 char *kwnames[] = {
9531 (char *) "self",(char *) "x",(char *) "y", NULL
9532 };
9533
9534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9537 arg2 = (long)SWIG_As_long(obj1);
9538 if (PyErr_Occurred()) SWIG_fail;
9539 arg3 = (long)SWIG_As_long(obj2);
9540 if (PyErr_Occurred()) SWIG_fail;
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 resultobj = SWIG_From_long((long)result);
9549 return resultobj;
9550 fail:
9551 return NULL;
9552 }
9553
9554
9555 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9556 PyObject *resultobj;
9557 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9558 long arg2 ;
9559 long *arg3 = (long *) 0 ;
9560 long *arg4 = (long *) 0 ;
9561 long temp3 ;
9562 int res3 = 0 ;
9563 long temp4 ;
9564 int res4 = 0 ;
9565 PyObject * obj0 = 0 ;
9566 PyObject * obj1 = 0 ;
9567 char *kwnames[] = {
9568 (char *) "self",(char *) "pos", NULL
9569 };
9570
9571 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9572 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9576 arg2 = (long)SWIG_As_long(obj1);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 {
9579 PyThreadState* __tstate = wxPyBeginAllowThreads();
9580 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9581
9582 wxPyEndAllowThreads(__tstate);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 }
9585 Py_INCREF(Py_None); resultobj = Py_None;
9586 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9587 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9588 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9589 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9590 return resultobj;
9591 fail:
9592 return NULL;
9593 }
9594
9595
9596 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9597 PyObject *resultobj;
9598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9599 long arg2 ;
9600 PyObject * obj0 = 0 ;
9601 PyObject * obj1 = 0 ;
9602 char *kwnames[] = {
9603 (char *) "self",(char *) "pos", NULL
9604 };
9605
9606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9609 arg2 = (long)SWIG_As_long(obj1);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 (arg1)->ShowPosition(arg2);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 Py_INCREF(Py_None); resultobj = Py_None;
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9626 PyObject *resultobj;
9627 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9628 wxPoint *arg2 = 0 ;
9629 long *arg3 = (long *) 0 ;
9630 long *arg4 = (long *) 0 ;
9631 int result;
9632 wxPoint temp2 ;
9633 long temp3 ;
9634 int res3 = 0 ;
9635 long temp4 ;
9636 int res4 = 0 ;
9637 PyObject * obj0 = 0 ;
9638 PyObject * obj1 = 0 ;
9639 char *kwnames[] = {
9640 (char *) "self",(char *) "pt", NULL
9641 };
9642
9643 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9644 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9648 {
9649 arg2 = &temp2;
9650 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9651 }
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9655
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 resultobj = SWIG_From_int((int)result);
9660 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9661 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9662 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9663 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9664 return resultobj;
9665 fail:
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9673 wxPoint *arg2 = 0 ;
9674 long *arg3 = (long *) 0 ;
9675 int result;
9676 wxPoint temp2 ;
9677 long temp3 ;
9678 int res3 = 0 ;
9679 PyObject * obj0 = 0 ;
9680 PyObject * obj1 = 0 ;
9681 char *kwnames[] = {
9682 (char *) "self",(char *) "pt", NULL
9683 };
9684
9685 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9689 {
9690 arg2 = &temp2;
9691 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9692 }
9693 {
9694 PyThreadState* __tstate = wxPyBeginAllowThreads();
9695 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9696
9697 wxPyEndAllowThreads(__tstate);
9698 if (PyErr_Occurred()) SWIG_fail;
9699 }
9700 resultobj = SWIG_From_int((int)result);
9701 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9702 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9712 PyObject * obj0 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "self", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9720 {
9721 PyThreadState* __tstate = wxPyBeginAllowThreads();
9722 (arg1)->Copy();
9723
9724 wxPyEndAllowThreads(__tstate);
9725 if (PyErr_Occurred()) SWIG_fail;
9726 }
9727 Py_INCREF(Py_None); resultobj = Py_None;
9728 return resultobj;
9729 fail:
9730 return NULL;
9731 }
9732
9733
9734 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj;
9736 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9737 PyObject * obj0 = 0 ;
9738 char *kwnames[] = {
9739 (char *) "self", NULL
9740 };
9741
9742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9745 {
9746 PyThreadState* __tstate = wxPyBeginAllowThreads();
9747 (arg1)->Cut();
9748
9749 wxPyEndAllowThreads(__tstate);
9750 if (PyErr_Occurred()) SWIG_fail;
9751 }
9752 Py_INCREF(Py_None); resultobj = Py_None;
9753 return resultobj;
9754 fail:
9755 return NULL;
9756 }
9757
9758
9759 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj;
9761 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9762 PyObject * obj0 = 0 ;
9763 char *kwnames[] = {
9764 (char *) "self", NULL
9765 };
9766
9767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9770 {
9771 PyThreadState* __tstate = wxPyBeginAllowThreads();
9772 (arg1)->Paste();
9773
9774 wxPyEndAllowThreads(__tstate);
9775 if (PyErr_Occurred()) SWIG_fail;
9776 }
9777 Py_INCREF(Py_None); resultobj = Py_None;
9778 return resultobj;
9779 fail:
9780 return NULL;
9781 }
9782
9783
9784 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9785 PyObject *resultobj;
9786 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9787 bool result;
9788 PyObject * obj0 = 0 ;
9789 char *kwnames[] = {
9790 (char *) "self", NULL
9791 };
9792
9793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9799
9800 wxPyEndAllowThreads(__tstate);
9801 if (PyErr_Occurred()) SWIG_fail;
9802 }
9803 {
9804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9805 }
9806 return resultobj;
9807 fail:
9808 return NULL;
9809 }
9810
9811
9812 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj;
9814 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9815 bool result;
9816 PyObject * obj0 = 0 ;
9817 char *kwnames[] = {
9818 (char *) "self", NULL
9819 };
9820
9821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9827
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 {
9832 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9833 }
9834 return resultobj;
9835 fail:
9836 return NULL;
9837 }
9838
9839
9840 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9841 PyObject *resultobj;
9842 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9843 bool result;
9844 PyObject * obj0 = 0 ;
9845 char *kwnames[] = {
9846 (char *) "self", NULL
9847 };
9848
9849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9852 {
9853 PyThreadState* __tstate = wxPyBeginAllowThreads();
9854 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9855
9856 wxPyEndAllowThreads(__tstate);
9857 if (PyErr_Occurred()) SWIG_fail;
9858 }
9859 {
9860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9861 }
9862 return resultobj;
9863 fail:
9864 return NULL;
9865 }
9866
9867
9868 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9869 PyObject *resultobj;
9870 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9871 PyObject * obj0 = 0 ;
9872 char *kwnames[] = {
9873 (char *) "self", NULL
9874 };
9875
9876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9879 {
9880 PyThreadState* __tstate = wxPyBeginAllowThreads();
9881 (arg1)->Undo();
9882
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 Py_INCREF(Py_None); resultobj = Py_None;
9887 return resultobj;
9888 fail:
9889 return NULL;
9890 }
9891
9892
9893 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9894 PyObject *resultobj;
9895 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9896 PyObject * obj0 = 0 ;
9897 char *kwnames[] = {
9898 (char *) "self", NULL
9899 };
9900
9901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 (arg1)->Redo();
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 Py_INCREF(Py_None); resultobj = Py_None;
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9921 bool result;
9922 PyObject * obj0 = 0 ;
9923 char *kwnames[] = {
9924 (char *) "self", NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9933
9934 wxPyEndAllowThreads(__tstate);
9935 if (PyErr_Occurred()) SWIG_fail;
9936 }
9937 {
9938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9939 }
9940 return resultobj;
9941 fail:
9942 return NULL;
9943 }
9944
9945
9946 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9947 PyObject *resultobj;
9948 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9949 bool result;
9950 PyObject * obj0 = 0 ;
9951 char *kwnames[] = {
9952 (char *) "self", NULL
9953 };
9954
9955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 {
9966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9967 }
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj;
9976 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9977 long arg2 ;
9978 PyObject * obj0 = 0 ;
9979 PyObject * obj1 = 0 ;
9980 char *kwnames[] = {
9981 (char *) "self",(char *) "pos", NULL
9982 };
9983
9984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9987 arg2 = (long)SWIG_As_long(obj1);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 (arg1)->SetInsertionPoint(arg2);
9992
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 Py_INCREF(Py_None); resultobj = Py_None;
9997 return resultobj;
9998 fail:
9999 return NULL;
10000 }
10001
10002
10003 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10004 PyObject *resultobj;
10005 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10006 PyObject * obj0 = 0 ;
10007 char *kwnames[] = {
10008 (char *) "self", NULL
10009 };
10010
10011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
10012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10014 {
10015 PyThreadState* __tstate = wxPyBeginAllowThreads();
10016 (arg1)->SetInsertionPointEnd();
10017
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 Py_INCREF(Py_None); resultobj = Py_None;
10022 return resultobj;
10023 fail:
10024 return NULL;
10025 }
10026
10027
10028 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj;
10030 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10031 long result;
10032 PyObject * obj0 = 0 ;
10033 char *kwnames[] = {
10034 (char *) "self", NULL
10035 };
10036
10037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
10038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
10043
10044 wxPyEndAllowThreads(__tstate);
10045 if (PyErr_Occurred()) SWIG_fail;
10046 }
10047 resultobj = SWIG_From_long((long)result);
10048 return resultobj;
10049 fail:
10050 return NULL;
10051 }
10052
10053
10054 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10055 PyObject *resultobj;
10056 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10057 long result;
10058 PyObject * obj0 = 0 ;
10059 char *kwnames[] = {
10060 (char *) "self", NULL
10061 };
10062
10063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
10064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10066 {
10067 PyThreadState* __tstate = wxPyBeginAllowThreads();
10068 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
10069
10070 wxPyEndAllowThreads(__tstate);
10071 if (PyErr_Occurred()) SWIG_fail;
10072 }
10073 resultobj = SWIG_From_long((long)result);
10074 return resultobj;
10075 fail:
10076 return NULL;
10077 }
10078
10079
10080 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
10081 PyObject *resultobj;
10082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10083 long arg2 ;
10084 long arg3 ;
10085 PyObject * obj0 = 0 ;
10086 PyObject * obj1 = 0 ;
10087 PyObject * obj2 = 0 ;
10088 char *kwnames[] = {
10089 (char *) "self",(char *) "from",(char *) "to", NULL
10090 };
10091
10092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
10093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10095 arg2 = (long)SWIG_As_long(obj1);
10096 if (PyErr_Occurred()) SWIG_fail;
10097 arg3 = (long)SWIG_As_long(obj2);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 {
10100 PyThreadState* __tstate = wxPyBeginAllowThreads();
10101 (arg1)->SetSelection(arg2,arg3);
10102
10103 wxPyEndAllowThreads(__tstate);
10104 if (PyErr_Occurred()) SWIG_fail;
10105 }
10106 Py_INCREF(Py_None); resultobj = Py_None;
10107 return resultobj;
10108 fail:
10109 return NULL;
10110 }
10111
10112
10113 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
10114 PyObject *resultobj;
10115 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10116 PyObject * obj0 = 0 ;
10117 char *kwnames[] = {
10118 (char *) "self", NULL
10119 };
10120
10121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
10122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10124 {
10125 PyThreadState* __tstate = wxPyBeginAllowThreads();
10126 (arg1)->SelectAll();
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_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
10139 PyObject *resultobj;
10140 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10141 bool arg2 ;
10142 PyObject * obj0 = 0 ;
10143 PyObject * obj1 = 0 ;
10144 char *kwnames[] = {
10145 (char *) "self",(char *) "editable", NULL
10146 };
10147
10148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
10149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10151 arg2 = (bool)SWIG_As_bool(obj1);
10152 if (PyErr_Occurred()) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 (arg1)->SetEditable(arg2);
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 Py_INCREF(Py_None); resultobj = Py_None;
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj;
10169 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10170 wxString *arg2 = 0 ;
10171 bool temp2 = false ;
10172 PyObject * obj0 = 0 ;
10173 PyObject * obj1 = 0 ;
10174 char *kwnames[] = {
10175 (char *) "self",(char *) "text", NULL
10176 };
10177
10178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
10179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10181 {
10182 arg2 = wxString_in_helper(obj1);
10183 if (arg2 == NULL) SWIG_fail;
10184 temp2 = true;
10185 }
10186 {
10187 PyThreadState* __tstate = wxPyBeginAllowThreads();
10188 wxTextCtrl_write(arg1,(wxString const &)*arg2);
10189
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 Py_INCREF(Py_None); resultobj = Py_None;
10194 {
10195 if (temp2)
10196 delete arg2;
10197 }
10198 return resultobj;
10199 fail:
10200 {
10201 if (temp2)
10202 delete arg2;
10203 }
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10211 long arg2 ;
10212 long arg3 ;
10213 wxString result;
10214 PyObject * obj0 = 0 ;
10215 PyObject * obj1 = 0 ;
10216 PyObject * obj2 = 0 ;
10217 char *kwnames[] = {
10218 (char *) "self",(char *) "from",(char *) "to", NULL
10219 };
10220
10221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10224 arg2 = (long)SWIG_As_long(obj1);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 arg3 = (long)SWIG_As_long(obj2);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 {
10229 PyThreadState* __tstate = wxPyBeginAllowThreads();
10230 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10231
10232 wxPyEndAllowThreads(__tstate);
10233 if (PyErr_Occurred()) SWIG_fail;
10234 }
10235 {
10236 #if wxUSE_UNICODE
10237 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10238 #else
10239 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10240 #endif
10241 }
10242 return resultobj;
10243 fail:
10244 return NULL;
10245 }
10246
10247
10248 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10249 PyObject *resultobj;
10250 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10251 wxVisualAttributes result;
10252 PyObject * obj0 = 0 ;
10253 char *kwnames[] = {
10254 (char *) "variant", NULL
10255 };
10256
10257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10258 if (obj0) {
10259 arg1 = (int)SWIG_As_int(obj0);
10260 if (PyErr_Occurred()) SWIG_fail;
10261 }
10262 {
10263 if (!wxPyCheckForApp()) SWIG_fail;
10264 PyThreadState* __tstate = wxPyBeginAllowThreads();
10265 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10266
10267 wxPyEndAllowThreads(__tstate);
10268 if (PyErr_Occurred()) SWIG_fail;
10269 }
10270 {
10271 wxVisualAttributes * resultptr;
10272 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10273 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10274 }
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10282 PyObject *obj;
10283 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10284 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10285 Py_INCREF(obj);
10286 return Py_BuildValue((char *)"");
10287 }
10288 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10289 PyObject *resultobj;
10290 int arg1 ;
10291 wxMouseEvent *arg2 = 0 ;
10292 long arg3 ;
10293 long arg4 ;
10294 wxTextUrlEvent *result;
10295 PyObject * obj0 = 0 ;
10296 PyObject * obj1 = 0 ;
10297 PyObject * obj2 = 0 ;
10298 PyObject * obj3 = 0 ;
10299 char *kwnames[] = {
10300 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10301 };
10302
10303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10304 arg1 = (int)SWIG_As_int(obj0);
10305 if (PyErr_Occurred()) SWIG_fail;
10306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10307 SWIG_POINTER_EXCEPTION | 0)) == -1)
10308 SWIG_fail;
10309 if (arg2 == NULL) {
10310 PyErr_SetString(PyExc_TypeError,"null reference");
10311 SWIG_fail;
10312 }
10313 arg3 = (long)SWIG_As_long(obj2);
10314 if (PyErr_Occurred()) SWIG_fail;
10315 arg4 = (long)SWIG_As_long(obj3);
10316 if (PyErr_Occurred()) SWIG_fail;
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10325 return resultobj;
10326 fail:
10327 return NULL;
10328 }
10329
10330
10331 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10332 PyObject *resultobj;
10333 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10334 wxMouseEvent *result;
10335 PyObject * obj0 = 0 ;
10336 char *kwnames[] = {
10337 (char *) "self", NULL
10338 };
10339
10340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",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 {
10346 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10347 result = (wxMouseEvent *) &_result_ref;
10348 }
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10363 long result;
10364 PyObject * obj0 = 0 ;
10365 char *kwnames[] = {
10366 (char *) "self", NULL
10367 };
10368
10369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10372 {
10373 PyThreadState* __tstate = wxPyBeginAllowThreads();
10374 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10375
10376 wxPyEndAllowThreads(__tstate);
10377 if (PyErr_Occurred()) SWIG_fail;
10378 }
10379 resultobj = SWIG_From_long((long)result);
10380 return resultobj;
10381 fail:
10382 return NULL;
10383 }
10384
10385
10386 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10387 PyObject *resultobj;
10388 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10389 long result;
10390 PyObject * obj0 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_From_long((long)result);
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10413 PyObject *obj;
10414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10415 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10416 Py_INCREF(obj);
10417 return Py_BuildValue((char *)"");
10418 }
10419 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10420 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10421 return 1;
10422 }
10423
10424
10425 static PyObject *_wrap_ScrollBarNameStr_get() {
10426 PyObject *pyobj;
10427
10428 {
10429 #if wxUSE_UNICODE
10430 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10431 #else
10432 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10433 #endif
10434 }
10435 return pyobj;
10436 }
10437
10438
10439 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj;
10441 wxWindow *arg1 = (wxWindow *) 0 ;
10442 int arg2 = (int) -1 ;
10443 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10444 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10445 wxSize const &arg4_defvalue = wxDefaultSize ;
10446 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10447 long arg5 = (long) wxSB_HORIZONTAL ;
10448 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10449 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10450 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10451 wxString *arg7 = (wxString *) &arg7_defvalue ;
10452 wxScrollBar *result;
10453 wxPoint temp3 ;
10454 wxSize temp4 ;
10455 bool temp7 = false ;
10456 PyObject * obj0 = 0 ;
10457 PyObject * obj1 = 0 ;
10458 PyObject * obj2 = 0 ;
10459 PyObject * obj3 = 0 ;
10460 PyObject * obj4 = 0 ;
10461 PyObject * obj5 = 0 ;
10462 PyObject * obj6 = 0 ;
10463 char *kwnames[] = {
10464 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10465 };
10466
10467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10470 if (obj1) {
10471 arg2 = (int)SWIG_As_int(obj1);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 if (obj2) {
10475 {
10476 arg3 = &temp3;
10477 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10478 }
10479 }
10480 if (obj3) {
10481 {
10482 arg4 = &temp4;
10483 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10484 }
10485 }
10486 if (obj4) {
10487 arg5 = (long)SWIG_As_long(obj4);
10488 if (PyErr_Occurred()) SWIG_fail;
10489 }
10490 if (obj5) {
10491 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10492 SWIG_POINTER_EXCEPTION | 0)) == -1)
10493 SWIG_fail;
10494 if (arg6 == NULL) {
10495 PyErr_SetString(PyExc_TypeError,"null reference");
10496 SWIG_fail;
10497 }
10498 }
10499 if (obj6) {
10500 {
10501 arg7 = wxString_in_helper(obj6);
10502 if (arg7 == NULL) SWIG_fail;
10503 temp7 = true;
10504 }
10505 }
10506 {
10507 if (!wxPyCheckForApp()) SWIG_fail;
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10510
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10515 {
10516 if (temp7)
10517 delete arg7;
10518 }
10519 return resultobj;
10520 fail:
10521 {
10522 if (temp7)
10523 delete arg7;
10524 }
10525 return NULL;
10526 }
10527
10528
10529 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10530 PyObject *resultobj;
10531 wxScrollBar *result;
10532 char *kwnames[] = {
10533 NULL
10534 };
10535
10536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10537 {
10538 if (!wxPyCheckForApp()) SWIG_fail;
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (wxScrollBar *)new wxScrollBar();
10541
10542 wxPyEndAllowThreads(__tstate);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 }
10545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10546 return resultobj;
10547 fail:
10548 return NULL;
10549 }
10550
10551
10552 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10553 PyObject *resultobj;
10554 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10555 wxWindow *arg2 = (wxWindow *) 0 ;
10556 int arg3 = (int) -1 ;
10557 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10558 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10559 wxSize const &arg5_defvalue = wxDefaultSize ;
10560 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10561 long arg6 = (long) wxSB_HORIZONTAL ;
10562 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10563 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10564 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10565 wxString *arg8 = (wxString *) &arg8_defvalue ;
10566 bool result;
10567 wxPoint temp4 ;
10568 wxSize temp5 ;
10569 bool temp8 = false ;
10570 PyObject * obj0 = 0 ;
10571 PyObject * obj1 = 0 ;
10572 PyObject * obj2 = 0 ;
10573 PyObject * obj3 = 0 ;
10574 PyObject * obj4 = 0 ;
10575 PyObject * obj5 = 0 ;
10576 PyObject * obj6 = 0 ;
10577 PyObject * obj7 = 0 ;
10578 char *kwnames[] = {
10579 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10580 };
10581
10582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10587 if (obj2) {
10588 arg3 = (int)SWIG_As_int(obj2);
10589 if (PyErr_Occurred()) SWIG_fail;
10590 }
10591 if (obj3) {
10592 {
10593 arg4 = &temp4;
10594 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10595 }
10596 }
10597 if (obj4) {
10598 {
10599 arg5 = &temp5;
10600 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10601 }
10602 }
10603 if (obj5) {
10604 arg6 = (long)SWIG_As_long(obj5);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 }
10607 if (obj6) {
10608 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10609 SWIG_POINTER_EXCEPTION | 0)) == -1)
10610 SWIG_fail;
10611 if (arg7 == NULL) {
10612 PyErr_SetString(PyExc_TypeError,"null reference");
10613 SWIG_fail;
10614 }
10615 }
10616 if (obj7) {
10617 {
10618 arg8 = wxString_in_helper(obj7);
10619 if (arg8 == NULL) SWIG_fail;
10620 temp8 = true;
10621 }
10622 }
10623 {
10624 PyThreadState* __tstate = wxPyBeginAllowThreads();
10625 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10626
10627 wxPyEndAllowThreads(__tstate);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 }
10630 {
10631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10632 }
10633 {
10634 if (temp8)
10635 delete arg8;
10636 }
10637 return resultobj;
10638 fail:
10639 {
10640 if (temp8)
10641 delete arg8;
10642 }
10643 return NULL;
10644 }
10645
10646
10647 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10648 PyObject *resultobj;
10649 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10650 int result;
10651 PyObject * obj0 = 0 ;
10652 char *kwnames[] = {
10653 (char *) "self", NULL
10654 };
10655
10656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 resultobj = SWIG_From_int((int)result);
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10676 int result;
10677 PyObject * obj0 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10688
10689 wxPyEndAllowThreads(__tstate);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 resultobj = SWIG_From_int((int)result);
10693 return resultobj;
10694 fail:
10695 return NULL;
10696 }
10697
10698
10699 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10700 PyObject *resultobj;
10701 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10702 int result;
10703 PyObject * obj0 = 0 ;
10704 char *kwnames[] = {
10705 (char *) "self", NULL
10706 };
10707
10708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 resultobj = SWIG_From_int((int)result);
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10728 int result;
10729 PyObject * obj0 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 result = (int)((wxScrollBar const *)arg1)->GetRange();
10740
10741 wxPyEndAllowThreads(__tstate);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 resultobj = SWIG_From_int((int)result);
10745 return resultobj;
10746 fail:
10747 return NULL;
10748 }
10749
10750
10751 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10752 PyObject *resultobj;
10753 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10754 bool result;
10755 PyObject * obj0 = 0 ;
10756 char *kwnames[] = {
10757 (char *) "self", NULL
10758 };
10759
10760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10766
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 {
10771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10772 }
10773 return resultobj;
10774 fail:
10775 return NULL;
10776 }
10777
10778
10779 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10780 PyObject *resultobj;
10781 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10782 int arg2 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 char *kwnames[] = {
10786 (char *) "self",(char *) "viewStart", NULL
10787 };
10788
10789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10792 arg2 = (int)SWIG_As_int(obj1);
10793 if (PyErr_Occurred()) SWIG_fail;
10794 {
10795 PyThreadState* __tstate = wxPyBeginAllowThreads();
10796 (arg1)->SetThumbPosition(arg2);
10797
10798 wxPyEndAllowThreads(__tstate);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 Py_INCREF(Py_None); resultobj = Py_None;
10802 return resultobj;
10803 fail:
10804 return NULL;
10805 }
10806
10807
10808 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10809 PyObject *resultobj;
10810 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10811 int arg2 ;
10812 int arg3 ;
10813 int arg4 ;
10814 int arg5 ;
10815 bool arg6 = (bool) true ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 PyObject * obj2 = 0 ;
10819 PyObject * obj3 = 0 ;
10820 PyObject * obj4 = 0 ;
10821 PyObject * obj5 = 0 ;
10822 char *kwnames[] = {
10823 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10824 };
10825
10826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10829 arg2 = (int)SWIG_As_int(obj1);
10830 if (PyErr_Occurred()) SWIG_fail;
10831 arg3 = (int)SWIG_As_int(obj2);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 arg4 = (int)SWIG_As_int(obj3);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 arg5 = (int)SWIG_As_int(obj4);
10836 if (PyErr_Occurred()) SWIG_fail;
10837 if (obj5) {
10838 arg6 = (bool)SWIG_As_bool(obj5);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10844
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 Py_INCREF(Py_None); resultobj = Py_None;
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10858 wxVisualAttributes result;
10859 PyObject * obj0 = 0 ;
10860 char *kwnames[] = {
10861 (char *) "variant", NULL
10862 };
10863
10864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10865 if (obj0) {
10866 arg1 = (int)SWIG_As_int(obj0);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 {
10870 if (!wxPyCheckForApp()) SWIG_fail;
10871 PyThreadState* __tstate = wxPyBeginAllowThreads();
10872 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10873
10874 wxPyEndAllowThreads(__tstate);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 }
10877 {
10878 wxVisualAttributes * resultptr;
10879 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10881 }
10882 return resultobj;
10883 fail:
10884 return NULL;
10885 }
10886
10887
10888 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10889 PyObject *obj;
10890 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10891 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10892 Py_INCREF(obj);
10893 return Py_BuildValue((char *)"");
10894 }
10895 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10896 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10897 return 1;
10898 }
10899
10900
10901 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10902 PyObject *pyobj;
10903
10904 {
10905 #if wxUSE_UNICODE
10906 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10907 #else
10908 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10909 #endif
10910 }
10911 return pyobj;
10912 }
10913
10914
10915 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10916 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10917 return 1;
10918 }
10919
10920
10921 static PyObject *_wrap_SpinCtrlNameStr_get() {
10922 PyObject *pyobj;
10923
10924 {
10925 #if wxUSE_UNICODE
10926 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10927 #else
10928 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10929 #endif
10930 }
10931 return pyobj;
10932 }
10933
10934
10935 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10936 PyObject *resultobj;
10937 wxWindow *arg1 = (wxWindow *) 0 ;
10938 int arg2 = (int) -1 ;
10939 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10940 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10941 wxSize const &arg4_defvalue = wxDefaultSize ;
10942 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10943 long arg5 = (long) wxSP_HORIZONTAL ;
10944 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10945 wxString *arg6 = (wxString *) &arg6_defvalue ;
10946 wxSpinButton *result;
10947 wxPoint temp3 ;
10948 wxSize temp4 ;
10949 bool temp6 = false ;
10950 PyObject * obj0 = 0 ;
10951 PyObject * obj1 = 0 ;
10952 PyObject * obj2 = 0 ;
10953 PyObject * obj3 = 0 ;
10954 PyObject * obj4 = 0 ;
10955 PyObject * obj5 = 0 ;
10956 char *kwnames[] = {
10957 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10958 };
10959
10960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10963 if (obj1) {
10964 arg2 = (int)SWIG_As_int(obj1);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 }
10967 if (obj2) {
10968 {
10969 arg3 = &temp3;
10970 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10971 }
10972 }
10973 if (obj3) {
10974 {
10975 arg4 = &temp4;
10976 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10977 }
10978 }
10979 if (obj4) {
10980 arg5 = (long)SWIG_As_long(obj4);
10981 if (PyErr_Occurred()) SWIG_fail;
10982 }
10983 if (obj5) {
10984 {
10985 arg6 = wxString_in_helper(obj5);
10986 if (arg6 == NULL) SWIG_fail;
10987 temp6 = true;
10988 }
10989 }
10990 {
10991 if (!wxPyCheckForApp()) SWIG_fail;
10992 PyThreadState* __tstate = wxPyBeginAllowThreads();
10993 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10994
10995 wxPyEndAllowThreads(__tstate);
10996 if (PyErr_Occurred()) SWIG_fail;
10997 }
10998 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10999 {
11000 if (temp6)
11001 delete arg6;
11002 }
11003 return resultobj;
11004 fail:
11005 {
11006 if (temp6)
11007 delete arg6;
11008 }
11009 return NULL;
11010 }
11011
11012
11013 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj;
11015 wxSpinButton *result;
11016 char *kwnames[] = {
11017 NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
11021 {
11022 if (!wxPyCheckForApp()) SWIG_fail;
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 result = (wxSpinButton *)new wxSpinButton();
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
11030 return resultobj;
11031 fail:
11032 return NULL;
11033 }
11034
11035
11036 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11037 PyObject *resultobj;
11038 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11039 wxWindow *arg2 = (wxWindow *) 0 ;
11040 int arg3 = (int) -1 ;
11041 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11042 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11043 wxSize const &arg5_defvalue = wxDefaultSize ;
11044 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11045 long arg6 = (long) wxSP_HORIZONTAL ;
11046 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
11047 wxString *arg7 = (wxString *) &arg7_defvalue ;
11048 bool result;
11049 wxPoint temp4 ;
11050 wxSize temp5 ;
11051 bool temp7 = false ;
11052 PyObject * obj0 = 0 ;
11053 PyObject * obj1 = 0 ;
11054 PyObject * obj2 = 0 ;
11055 PyObject * obj3 = 0 ;
11056 PyObject * obj4 = 0 ;
11057 PyObject * obj5 = 0 ;
11058 PyObject * obj6 = 0 ;
11059 char *kwnames[] = {
11060 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
11061 };
11062
11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11068 if (obj2) {
11069 arg3 = (int)SWIG_As_int(obj2);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 if (obj3) {
11073 {
11074 arg4 = &temp4;
11075 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11076 }
11077 }
11078 if (obj4) {
11079 {
11080 arg5 = &temp5;
11081 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11082 }
11083 }
11084 if (obj5) {
11085 arg6 = (long)SWIG_As_long(obj5);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 if (obj6) {
11089 {
11090 arg7 = wxString_in_helper(obj6);
11091 if (arg7 == NULL) SWIG_fail;
11092 temp7 = true;
11093 }
11094 }
11095 {
11096 PyThreadState* __tstate = wxPyBeginAllowThreads();
11097 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
11098
11099 wxPyEndAllowThreads(__tstate);
11100 if (PyErr_Occurred()) SWIG_fail;
11101 }
11102 {
11103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11104 }
11105 {
11106 if (temp7)
11107 delete arg7;
11108 }
11109 return resultobj;
11110 fail:
11111 {
11112 if (temp7)
11113 delete arg7;
11114 }
11115 return NULL;
11116 }
11117
11118
11119 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj;
11121 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11122 int result;
11123 PyObject * obj0 = 0 ;
11124 char *kwnames[] = {
11125 (char *) "self", NULL
11126 };
11127
11128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
11129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11131 {
11132 PyThreadState* __tstate = wxPyBeginAllowThreads();
11133 result = (int)((wxSpinButton const *)arg1)->GetValue();
11134
11135 wxPyEndAllowThreads(__tstate);
11136 if (PyErr_Occurred()) SWIG_fail;
11137 }
11138 resultobj = SWIG_From_int((int)result);
11139 return resultobj;
11140 fail:
11141 return NULL;
11142 }
11143
11144
11145 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11146 PyObject *resultobj;
11147 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11148 int result;
11149 PyObject * obj0 = 0 ;
11150 char *kwnames[] = {
11151 (char *) "self", NULL
11152 };
11153
11154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
11155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11157 {
11158 PyThreadState* __tstate = wxPyBeginAllowThreads();
11159 result = (int)((wxSpinButton const *)arg1)->GetMin();
11160
11161 wxPyEndAllowThreads(__tstate);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 }
11164 resultobj = SWIG_From_int((int)result);
11165 return resultobj;
11166 fail:
11167 return NULL;
11168 }
11169
11170
11171 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11172 PyObject *resultobj;
11173 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11174 int result;
11175 PyObject * obj0 = 0 ;
11176 char *kwnames[] = {
11177 (char *) "self", NULL
11178 };
11179
11180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
11181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
11185 result = (int)((wxSpinButton const *)arg1)->GetMax();
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 resultobj = SWIG_From_int((int)result);
11191 return resultobj;
11192 fail:
11193 return NULL;
11194 }
11195
11196
11197 static PyObject *_wrap_SpinButton_SetValue(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 *) "val", NULL
11205 };
11206
11207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",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)->SetValue(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_SetMin(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 *) "minVal", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",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)->SetMin(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_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11256 PyObject *resultobj;
11257 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11258 int arg2 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 char *kwnames[] = {
11262 (char *) "self",(char *) "maxVal", NULL
11263 };
11264
11265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11268 arg2 = (int)SWIG_As_int(obj1);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 (arg1)->SetMax(arg2);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 Py_INCREF(Py_None); resultobj = Py_None;
11278 return resultobj;
11279 fail:
11280 return NULL;
11281 }
11282
11283
11284 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11285 PyObject *resultobj;
11286 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11287 int arg2 ;
11288 int arg3 ;
11289 PyObject * obj0 = 0 ;
11290 PyObject * obj1 = 0 ;
11291 PyObject * obj2 = 0 ;
11292 char *kwnames[] = {
11293 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11294 };
11295
11296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11299 arg2 = (int)SWIG_As_int(obj1);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 arg3 = (int)SWIG_As_int(obj2);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 (arg1)->SetRange(arg2,arg3);
11306
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 Py_INCREF(Py_None); resultobj = Py_None;
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11320 bool result;
11321 PyObject * obj0 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11329 {
11330 PyThreadState* __tstate = wxPyBeginAllowThreads();
11331 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11332
11333 wxPyEndAllowThreads(__tstate);
11334 if (PyErr_Occurred()) SWIG_fail;
11335 }
11336 {
11337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11338 }
11339 return resultobj;
11340 fail:
11341 return NULL;
11342 }
11343
11344
11345 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11346 PyObject *resultobj;
11347 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11348 wxVisualAttributes result;
11349 PyObject * obj0 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "variant", NULL
11352 };
11353
11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11355 if (obj0) {
11356 arg1 = (int)SWIG_As_int(obj0);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 {
11360 if (!wxPyCheckForApp()) SWIG_fail;
11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
11362 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11363
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 {
11368 wxVisualAttributes * resultptr;
11369 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11370 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11371 }
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11379 PyObject *obj;
11380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11381 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11382 Py_INCREF(obj);
11383 return Py_BuildValue((char *)"");
11384 }
11385 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj;
11387 wxWindow *arg1 = (wxWindow *) 0 ;
11388 int arg2 = (int) -1 ;
11389 wxString const &arg3_defvalue = wxPyEmptyString ;
11390 wxString *arg3 = (wxString *) &arg3_defvalue ;
11391 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11392 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11393 wxSize const &arg5_defvalue = wxDefaultSize ;
11394 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11395 long arg6 = (long) wxSP_ARROW_KEYS ;
11396 int arg7 = (int) 0 ;
11397 int arg8 = (int) 100 ;
11398 int arg9 = (int) 0 ;
11399 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11400 wxString *arg10 = (wxString *) &arg10_defvalue ;
11401 wxSpinCtrl *result;
11402 bool temp3 = false ;
11403 wxPoint temp4 ;
11404 wxSize temp5 ;
11405 bool temp10 = false ;
11406 PyObject * obj0 = 0 ;
11407 PyObject * obj1 = 0 ;
11408 PyObject * obj2 = 0 ;
11409 PyObject * obj3 = 0 ;
11410 PyObject * obj4 = 0 ;
11411 PyObject * obj5 = 0 ;
11412 PyObject * obj6 = 0 ;
11413 PyObject * obj7 = 0 ;
11414 PyObject * obj8 = 0 ;
11415 PyObject * obj9 = 0 ;
11416 char *kwnames[] = {
11417 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11418 };
11419
11420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11423 if (obj1) {
11424 arg2 = (int)SWIG_As_int(obj1);
11425 if (PyErr_Occurred()) SWIG_fail;
11426 }
11427 if (obj2) {
11428 {
11429 arg3 = wxString_in_helper(obj2);
11430 if (arg3 == NULL) SWIG_fail;
11431 temp3 = true;
11432 }
11433 }
11434 if (obj3) {
11435 {
11436 arg4 = &temp4;
11437 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11438 }
11439 }
11440 if (obj4) {
11441 {
11442 arg5 = &temp5;
11443 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11444 }
11445 }
11446 if (obj5) {
11447 arg6 = (long)SWIG_As_long(obj5);
11448 if (PyErr_Occurred()) SWIG_fail;
11449 }
11450 if (obj6) {
11451 arg7 = (int)SWIG_As_int(obj6);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 if (obj7) {
11455 arg8 = (int)SWIG_As_int(obj7);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 if (obj8) {
11459 arg9 = (int)SWIG_As_int(obj8);
11460 if (PyErr_Occurred()) SWIG_fail;
11461 }
11462 if (obj9) {
11463 {
11464 arg10 = wxString_in_helper(obj9);
11465 if (arg10 == NULL) SWIG_fail;
11466 temp10 = true;
11467 }
11468 }
11469 {
11470 if (!wxPyCheckForApp()) SWIG_fail;
11471 PyThreadState* __tstate = wxPyBeginAllowThreads();
11472 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11473
11474 wxPyEndAllowThreads(__tstate);
11475 if (PyErr_Occurred()) SWIG_fail;
11476 }
11477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11478 {
11479 if (temp3)
11480 delete arg3;
11481 }
11482 {
11483 if (temp10)
11484 delete arg10;
11485 }
11486 return resultobj;
11487 fail:
11488 {
11489 if (temp3)
11490 delete arg3;
11491 }
11492 {
11493 if (temp10)
11494 delete arg10;
11495 }
11496 return NULL;
11497 }
11498
11499
11500 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11501 PyObject *resultobj;
11502 wxSpinCtrl *result;
11503 char *kwnames[] = {
11504 NULL
11505 };
11506
11507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11508 {
11509 if (!wxPyCheckForApp()) SWIG_fail;
11510 PyThreadState* __tstate = wxPyBeginAllowThreads();
11511 result = (wxSpinCtrl *)new wxSpinCtrl();
11512
11513 wxPyEndAllowThreads(__tstate);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11517 return resultobj;
11518 fail:
11519 return NULL;
11520 }
11521
11522
11523 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11524 PyObject *resultobj;
11525 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11526 wxWindow *arg2 = (wxWindow *) 0 ;
11527 int arg3 = (int) -1 ;
11528 wxString const &arg4_defvalue = wxPyEmptyString ;
11529 wxString *arg4 = (wxString *) &arg4_defvalue ;
11530 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11531 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11532 wxSize const &arg6_defvalue = wxDefaultSize ;
11533 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11534 long arg7 = (long) wxSP_ARROW_KEYS ;
11535 int arg8 = (int) 0 ;
11536 int arg9 = (int) 100 ;
11537 int arg10 = (int) 0 ;
11538 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11539 wxString *arg11 = (wxString *) &arg11_defvalue ;
11540 bool result;
11541 bool temp4 = false ;
11542 wxPoint temp5 ;
11543 wxSize temp6 ;
11544 bool temp11 = false ;
11545 PyObject * obj0 = 0 ;
11546 PyObject * obj1 = 0 ;
11547 PyObject * obj2 = 0 ;
11548 PyObject * obj3 = 0 ;
11549 PyObject * obj4 = 0 ;
11550 PyObject * obj5 = 0 ;
11551 PyObject * obj6 = 0 ;
11552 PyObject * obj7 = 0 ;
11553 PyObject * obj8 = 0 ;
11554 PyObject * obj9 = 0 ;
11555 PyObject * obj10 = 0 ;
11556 char *kwnames[] = {
11557 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11558 };
11559
11560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11563 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 if (obj2) {
11566 arg3 = (int)SWIG_As_int(obj2);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 if (obj3) {
11570 {
11571 arg4 = wxString_in_helper(obj3);
11572 if (arg4 == NULL) SWIG_fail;
11573 temp4 = true;
11574 }
11575 }
11576 if (obj4) {
11577 {
11578 arg5 = &temp5;
11579 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11580 }
11581 }
11582 if (obj5) {
11583 {
11584 arg6 = &temp6;
11585 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11586 }
11587 }
11588 if (obj6) {
11589 arg7 = (long)SWIG_As_long(obj6);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 if (obj7) {
11593 arg8 = (int)SWIG_As_int(obj7);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 if (obj8) {
11597 arg9 = (int)SWIG_As_int(obj8);
11598 if (PyErr_Occurred()) SWIG_fail;
11599 }
11600 if (obj9) {
11601 arg10 = (int)SWIG_As_int(obj9);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 if (obj10) {
11605 {
11606 arg11 = wxString_in_helper(obj10);
11607 if (arg11 == NULL) SWIG_fail;
11608 temp11 = true;
11609 }
11610 }
11611 {
11612 PyThreadState* __tstate = wxPyBeginAllowThreads();
11613 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11614
11615 wxPyEndAllowThreads(__tstate);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 }
11618 {
11619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11620 }
11621 {
11622 if (temp4)
11623 delete arg4;
11624 }
11625 {
11626 if (temp11)
11627 delete arg11;
11628 }
11629 return resultobj;
11630 fail:
11631 {
11632 if (temp4)
11633 delete arg4;
11634 }
11635 {
11636 if (temp11)
11637 delete arg11;
11638 }
11639 return NULL;
11640 }
11641
11642
11643 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11644 PyObject *resultobj;
11645 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11646 int result;
11647 PyObject * obj0 = 0 ;
11648 char *kwnames[] = {
11649 (char *) "self", NULL
11650 };
11651
11652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11655 {
11656 PyThreadState* __tstate = wxPyBeginAllowThreads();
11657 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11658
11659 wxPyEndAllowThreads(__tstate);
11660 if (PyErr_Occurred()) SWIG_fail;
11661 }
11662 resultobj = SWIG_From_int((int)result);
11663 return resultobj;
11664 fail:
11665 return NULL;
11666 }
11667
11668
11669 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11670 PyObject *resultobj;
11671 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11672 int arg2 ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675 char *kwnames[] = {
11676 (char *) "self",(char *) "value", NULL
11677 };
11678
11679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11682 arg2 = (int)SWIG_As_int(obj1);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 {
11685 PyThreadState* __tstate = wxPyBeginAllowThreads();
11686 (arg1)->SetValue(arg2);
11687
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 Py_INCREF(Py_None); resultobj = Py_None;
11692 return resultobj;
11693 fail:
11694 return NULL;
11695 }
11696
11697
11698 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11699 PyObject *resultobj;
11700 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11701 wxString *arg2 = 0 ;
11702 bool temp2 = false ;
11703 PyObject * obj0 = 0 ;
11704 PyObject * obj1 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self",(char *) "text", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11712 {
11713 arg2 = wxString_in_helper(obj1);
11714 if (arg2 == NULL) SWIG_fail;
11715 temp2 = true;
11716 }
11717 {
11718 PyThreadState* __tstate = wxPyBeginAllowThreads();
11719 (arg1)->SetValue((wxString const &)*arg2);
11720
11721 wxPyEndAllowThreads(__tstate);
11722 if (PyErr_Occurred()) SWIG_fail;
11723 }
11724 Py_INCREF(Py_None); resultobj = Py_None;
11725 {
11726 if (temp2)
11727 delete arg2;
11728 }
11729 return resultobj;
11730 fail:
11731 {
11732 if (temp2)
11733 delete arg2;
11734 }
11735 return NULL;
11736 }
11737
11738
11739 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11740 PyObject *resultobj;
11741 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11742 int arg2 ;
11743 int arg3 ;
11744 PyObject * obj0 = 0 ;
11745 PyObject * obj1 = 0 ;
11746 PyObject * obj2 = 0 ;
11747 char *kwnames[] = {
11748 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11749 };
11750
11751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11754 arg2 = (int)SWIG_As_int(obj1);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 arg3 = (int)SWIG_As_int(obj2);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 {
11759 PyThreadState* __tstate = wxPyBeginAllowThreads();
11760 (arg1)->SetRange(arg2,arg3);
11761
11762 wxPyEndAllowThreads(__tstate);
11763 if (PyErr_Occurred()) SWIG_fail;
11764 }
11765 Py_INCREF(Py_None); resultobj = Py_None;
11766 return resultobj;
11767 fail:
11768 return NULL;
11769 }
11770
11771
11772 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11773 PyObject *resultobj;
11774 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11775 int result;
11776 PyObject * obj0 = 0 ;
11777 char *kwnames[] = {
11778 (char *) "self", NULL
11779 };
11780
11781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11784 {
11785 PyThreadState* __tstate = wxPyBeginAllowThreads();
11786 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11787
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_From_int((int)result);
11792 return resultobj;
11793 fail:
11794 return NULL;
11795 }
11796
11797
11798 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj;
11800 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11801 int result;
11802 PyObject * obj0 = 0 ;
11803 char *kwnames[] = {
11804 (char *) "self", NULL
11805 };
11806
11807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 resultobj = SWIG_From_int((int)result);
11818 return resultobj;
11819 fail:
11820 return NULL;
11821 }
11822
11823
11824 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11825 PyObject *resultobj;
11826 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11827 long arg2 ;
11828 long arg3 ;
11829 PyObject * obj0 = 0 ;
11830 PyObject * obj1 = 0 ;
11831 PyObject * obj2 = 0 ;
11832 char *kwnames[] = {
11833 (char *) "self",(char *) "from",(char *) "to", NULL
11834 };
11835
11836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11839 arg2 = (long)SWIG_As_long(obj1);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 arg3 = (long)SWIG_As_long(obj2);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 {
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 (arg1)->SetSelection(arg2,arg3);
11846
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 Py_INCREF(Py_None); resultobj = Py_None;
11851 return resultobj;
11852 fail:
11853 return NULL;
11854 }
11855
11856
11857 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj;
11859 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11860 wxVisualAttributes result;
11861 PyObject * obj0 = 0 ;
11862 char *kwnames[] = {
11863 (char *) "variant", NULL
11864 };
11865
11866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11867 if (obj0) {
11868 arg1 = (int)SWIG_As_int(obj0);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 {
11872 if (!wxPyCheckForApp()) SWIG_fail;
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11875
11876 wxPyEndAllowThreads(__tstate);
11877 if (PyErr_Occurred()) SWIG_fail;
11878 }
11879 {
11880 wxVisualAttributes * resultptr;
11881 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11883 }
11884 return resultobj;
11885 fail:
11886 return NULL;
11887 }
11888
11889
11890 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11891 PyObject *obj;
11892 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11893 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11894 Py_INCREF(obj);
11895 return Py_BuildValue((char *)"");
11896 }
11897 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj;
11899 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11900 int arg2 = (int) 0 ;
11901 wxSpinEvent *result;
11902 PyObject * obj0 = 0 ;
11903 PyObject * obj1 = 0 ;
11904 char *kwnames[] = {
11905 (char *) "commandType",(char *) "winid", NULL
11906 };
11907
11908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11909 if (obj0) {
11910 arg1 = (wxEventType)SWIG_As_int(obj0);
11911 if (PyErr_Occurred()) SWIG_fail;
11912 }
11913 if (obj1) {
11914 arg2 = (int)SWIG_As_int(obj1);
11915 if (PyErr_Occurred()) SWIG_fail;
11916 }
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11932 PyObject *resultobj;
11933 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11934 int result;
11935 PyObject * obj0 = 0 ;
11936 char *kwnames[] = {
11937 (char *) "self", NULL
11938 };
11939
11940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11943 {
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11946
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_From_int((int)result);
11951 return resultobj;
11952 fail:
11953 return NULL;
11954 }
11955
11956
11957 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11958 PyObject *resultobj;
11959 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11960 int arg2 ;
11961 PyObject * obj0 = 0 ;
11962 PyObject * obj1 = 0 ;
11963 char *kwnames[] = {
11964 (char *) "self",(char *) "pos", NULL
11965 };
11966
11967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11970 arg2 = (int)SWIG_As_int(obj1);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 {
11973 PyThreadState* __tstate = wxPyBeginAllowThreads();
11974 (arg1)->SetPosition(arg2);
11975
11976 wxPyEndAllowThreads(__tstate);
11977 if (PyErr_Occurred()) SWIG_fail;
11978 }
11979 Py_INCREF(Py_None); resultobj = Py_None;
11980 return resultobj;
11981 fail:
11982 return NULL;
11983 }
11984
11985
11986 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11987 PyObject *obj;
11988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11989 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11990 Py_INCREF(obj);
11991 return Py_BuildValue((char *)"");
11992 }
11993 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11994 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11995 return 1;
11996 }
11997
11998
11999 static PyObject *_wrap_RadioBoxNameStr_get() {
12000 PyObject *pyobj;
12001
12002 {
12003 #if wxUSE_UNICODE
12004 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
12005 #else
12006 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
12007 #endif
12008 }
12009 return pyobj;
12010 }
12011
12012
12013 static int _wrap_RadioButtonNameStr_set(PyObject *) {
12014 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
12015 return 1;
12016 }
12017
12018
12019 static PyObject *_wrap_RadioButtonNameStr_get() {
12020 PyObject *pyobj;
12021
12022 {
12023 #if wxUSE_UNICODE
12024 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
12025 #else
12026 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
12027 #endif
12028 }
12029 return pyobj;
12030 }
12031
12032
12033 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj;
12035 wxWindow *arg1 = (wxWindow *) 0 ;
12036 int arg2 = (int) -1 ;
12037 wxString const &arg3_defvalue = wxPyEmptyString ;
12038 wxString *arg3 = (wxString *) &arg3_defvalue ;
12039 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12040 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12041 wxSize const &arg5_defvalue = wxDefaultSize ;
12042 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12043 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
12044 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
12045 int arg7 = (int) 0 ;
12046 long arg8 = (long) wxRA_HORIZONTAL ;
12047 wxValidator const &arg9_defvalue = wxDefaultValidator ;
12048 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
12049 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
12050 wxString *arg10 = (wxString *) &arg10_defvalue ;
12051 wxRadioBox *result;
12052 bool temp3 = false ;
12053 wxPoint temp4 ;
12054 wxSize temp5 ;
12055 bool temp6 = false ;
12056 bool temp10 = false ;
12057 PyObject * obj0 = 0 ;
12058 PyObject * obj1 = 0 ;
12059 PyObject * obj2 = 0 ;
12060 PyObject * obj3 = 0 ;
12061 PyObject * obj4 = 0 ;
12062 PyObject * obj5 = 0 ;
12063 PyObject * obj6 = 0 ;
12064 PyObject * obj7 = 0 ;
12065 PyObject * obj8 = 0 ;
12066 PyObject * obj9 = 0 ;
12067 char *kwnames[] = {
12068 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12069 };
12070
12071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
12072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12074 if (obj1) {
12075 arg2 = (int)SWIG_As_int(obj1);
12076 if (PyErr_Occurred()) SWIG_fail;
12077 }
12078 if (obj2) {
12079 {
12080 arg3 = wxString_in_helper(obj2);
12081 if (arg3 == NULL) SWIG_fail;
12082 temp3 = true;
12083 }
12084 }
12085 if (obj3) {
12086 {
12087 arg4 = &temp4;
12088 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12089 }
12090 }
12091 if (obj4) {
12092 {
12093 arg5 = &temp5;
12094 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12095 }
12096 }
12097 if (obj5) {
12098 {
12099 if (! PySequence_Check(obj5)) {
12100 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12101 SWIG_fail;
12102 }
12103 arg6 = new wxArrayString;
12104 temp6 = true;
12105 int i, len=PySequence_Length(obj5);
12106 for (i=0; i<len; i++) {
12107 PyObject* item = PySequence_GetItem(obj5, i);
12108 #if wxUSE_UNICODE
12109 PyObject* str = PyObject_Unicode(item);
12110 #else
12111 PyObject* str = PyObject_Str(item);
12112 #endif
12113 if (PyErr_Occurred()) SWIG_fail;
12114 arg6->Add(Py2wxString(str));
12115 Py_DECREF(item);
12116 Py_DECREF(str);
12117 }
12118 }
12119 }
12120 if (obj6) {
12121 arg7 = (int)SWIG_As_int(obj6);
12122 if (PyErr_Occurred()) SWIG_fail;
12123 }
12124 if (obj7) {
12125 arg8 = (long)SWIG_As_long(obj7);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 if (obj8) {
12129 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
12130 SWIG_POINTER_EXCEPTION | 0)) == -1)
12131 SWIG_fail;
12132 if (arg9 == NULL) {
12133 PyErr_SetString(PyExc_TypeError,"null reference");
12134 SWIG_fail;
12135 }
12136 }
12137 if (obj9) {
12138 {
12139 arg10 = wxString_in_helper(obj9);
12140 if (arg10 == NULL) SWIG_fail;
12141 temp10 = true;
12142 }
12143 }
12144 {
12145 if (!wxPyCheckForApp()) SWIG_fail;
12146 PyThreadState* __tstate = wxPyBeginAllowThreads();
12147 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);
12148
12149 wxPyEndAllowThreads(__tstate);
12150 if (PyErr_Occurred()) SWIG_fail;
12151 }
12152 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12153 {
12154 if (temp3)
12155 delete arg3;
12156 }
12157 {
12158 if (temp6) delete arg6;
12159 }
12160 {
12161 if (temp10)
12162 delete arg10;
12163 }
12164 return resultobj;
12165 fail:
12166 {
12167 if (temp3)
12168 delete arg3;
12169 }
12170 {
12171 if (temp6) delete arg6;
12172 }
12173 {
12174 if (temp10)
12175 delete arg10;
12176 }
12177 return NULL;
12178 }
12179
12180
12181 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
12182 PyObject *resultobj;
12183 wxRadioBox *result;
12184 char *kwnames[] = {
12185 NULL
12186 };
12187
12188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
12189 {
12190 if (!wxPyCheckForApp()) SWIG_fail;
12191 PyThreadState* __tstate = wxPyBeginAllowThreads();
12192 result = (wxRadioBox *)new wxRadioBox();
12193
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12198 return resultobj;
12199 fail:
12200 return NULL;
12201 }
12202
12203
12204 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12205 PyObject *resultobj;
12206 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12207 wxWindow *arg2 = (wxWindow *) 0 ;
12208 int arg3 = (int) -1 ;
12209 wxString const &arg4_defvalue = wxPyEmptyString ;
12210 wxString *arg4 = (wxString *) &arg4_defvalue ;
12211 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12212 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12213 wxSize const &arg6_defvalue = wxDefaultSize ;
12214 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12215 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12216 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12217 int arg8 = (int) 0 ;
12218 long arg9 = (long) wxRA_HORIZONTAL ;
12219 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12220 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12221 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12222 wxString *arg11 = (wxString *) &arg11_defvalue ;
12223 bool result;
12224 bool temp4 = false ;
12225 wxPoint temp5 ;
12226 wxSize temp6 ;
12227 bool temp7 = false ;
12228 bool temp11 = false ;
12229 PyObject * obj0 = 0 ;
12230 PyObject * obj1 = 0 ;
12231 PyObject * obj2 = 0 ;
12232 PyObject * obj3 = 0 ;
12233 PyObject * obj4 = 0 ;
12234 PyObject * obj5 = 0 ;
12235 PyObject * obj6 = 0 ;
12236 PyObject * obj7 = 0 ;
12237 PyObject * obj8 = 0 ;
12238 PyObject * obj9 = 0 ;
12239 PyObject * obj10 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12249 if (obj2) {
12250 arg3 = (int)SWIG_As_int(obj2);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 if (obj3) {
12254 {
12255 arg4 = wxString_in_helper(obj3);
12256 if (arg4 == NULL) SWIG_fail;
12257 temp4 = true;
12258 }
12259 }
12260 if (obj4) {
12261 {
12262 arg5 = &temp5;
12263 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12264 }
12265 }
12266 if (obj5) {
12267 {
12268 arg6 = &temp6;
12269 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12270 }
12271 }
12272 if (obj6) {
12273 {
12274 if (! PySequence_Check(obj6)) {
12275 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12276 SWIG_fail;
12277 }
12278 arg7 = new wxArrayString;
12279 temp7 = true;
12280 int i, len=PySequence_Length(obj6);
12281 for (i=0; i<len; i++) {
12282 PyObject* item = PySequence_GetItem(obj6, i);
12283 #if wxUSE_UNICODE
12284 PyObject* str = PyObject_Unicode(item);
12285 #else
12286 PyObject* str = PyObject_Str(item);
12287 #endif
12288 if (PyErr_Occurred()) SWIG_fail;
12289 arg7->Add(Py2wxString(str));
12290 Py_DECREF(item);
12291 Py_DECREF(str);
12292 }
12293 }
12294 }
12295 if (obj7) {
12296 arg8 = (int)SWIG_As_int(obj7);
12297 if (PyErr_Occurred()) SWIG_fail;
12298 }
12299 if (obj8) {
12300 arg9 = (long)SWIG_As_long(obj8);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 if (obj9) {
12304 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12305 SWIG_POINTER_EXCEPTION | 0)) == -1)
12306 SWIG_fail;
12307 if (arg10 == NULL) {
12308 PyErr_SetString(PyExc_TypeError,"null reference");
12309 SWIG_fail;
12310 }
12311 }
12312 if (obj10) {
12313 {
12314 arg11 = wxString_in_helper(obj10);
12315 if (arg11 == NULL) SWIG_fail;
12316 temp11 = true;
12317 }
12318 }
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 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);
12322
12323 wxPyEndAllowThreads(__tstate);
12324 if (PyErr_Occurred()) SWIG_fail;
12325 }
12326 {
12327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12328 }
12329 {
12330 if (temp4)
12331 delete arg4;
12332 }
12333 {
12334 if (temp7) delete arg7;
12335 }
12336 {
12337 if (temp11)
12338 delete arg11;
12339 }
12340 return resultobj;
12341 fail:
12342 {
12343 if (temp4)
12344 delete arg4;
12345 }
12346 {
12347 if (temp7) delete arg7;
12348 }
12349 {
12350 if (temp11)
12351 delete arg11;
12352 }
12353 return NULL;
12354 }
12355
12356
12357 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12358 PyObject *resultobj;
12359 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12360 int arg2 ;
12361 PyObject * obj0 = 0 ;
12362 PyObject * obj1 = 0 ;
12363 char *kwnames[] = {
12364 (char *) "self",(char *) "n", NULL
12365 };
12366
12367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12370 arg2 = (int)SWIG_As_int(obj1);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 {
12373 PyThreadState* __tstate = wxPyBeginAllowThreads();
12374 (arg1)->SetSelection(arg2);
12375
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 Py_INCREF(Py_None); resultobj = Py_None;
12380 return resultobj;
12381 fail:
12382 return NULL;
12383 }
12384
12385
12386 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12387 PyObject *resultobj;
12388 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12389 int result;
12390 PyObject * obj0 = 0 ;
12391 char *kwnames[] = {
12392 (char *) "self", NULL
12393 };
12394
12395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12398 {
12399 PyThreadState* __tstate = wxPyBeginAllowThreads();
12400 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12401
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_From_int((int)result);
12406 return resultobj;
12407 fail:
12408 return NULL;
12409 }
12410
12411
12412 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12413 PyObject *resultobj;
12414 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12415 wxString result;
12416 PyObject * obj0 = 0 ;
12417 char *kwnames[] = {
12418 (char *) "self", NULL
12419 };
12420
12421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12424 {
12425 PyThreadState* __tstate = wxPyBeginAllowThreads();
12426 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12427
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 {
12432 #if wxUSE_UNICODE
12433 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12434 #else
12435 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12436 #endif
12437 }
12438 return resultobj;
12439 fail:
12440 return NULL;
12441 }
12442
12443
12444 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12445 PyObject *resultobj;
12446 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12447 wxString *arg2 = 0 ;
12448 bool result;
12449 bool temp2 = false ;
12450 PyObject * obj0 = 0 ;
12451 PyObject * obj1 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self",(char *) "s", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12459 {
12460 arg2 = wxString_in_helper(obj1);
12461 if (arg2 == NULL) SWIG_fail;
12462 temp2 = true;
12463 }
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12467
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12473 }
12474 {
12475 if (temp2)
12476 delete arg2;
12477 }
12478 return resultobj;
12479 fail:
12480 {
12481 if (temp2)
12482 delete arg2;
12483 }
12484 return NULL;
12485 }
12486
12487
12488 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12489 PyObject *resultobj;
12490 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12491 int result;
12492 PyObject * obj0 = 0 ;
12493 char *kwnames[] = {
12494 (char *) "self", NULL
12495 };
12496
12497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12500 {
12501 PyThreadState* __tstate = wxPyBeginAllowThreads();
12502 result = (int)((wxRadioBox const *)arg1)->GetCount();
12503
12504 wxPyEndAllowThreads(__tstate);
12505 if (PyErr_Occurred()) SWIG_fail;
12506 }
12507 resultobj = SWIG_From_int((int)result);
12508 return resultobj;
12509 fail:
12510 return NULL;
12511 }
12512
12513
12514 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12515 PyObject *resultobj;
12516 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12517 wxString *arg2 = 0 ;
12518 int result;
12519 bool temp2 = false ;
12520 PyObject * obj0 = 0 ;
12521 PyObject * obj1 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self",(char *) "s", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 arg2 = wxString_in_helper(obj1);
12531 if (arg2 == NULL) SWIG_fail;
12532 temp2 = true;
12533 }
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 resultobj = SWIG_From_int((int)result);
12542 {
12543 if (temp2)
12544 delete arg2;
12545 }
12546 return resultobj;
12547 fail:
12548 {
12549 if (temp2)
12550 delete arg2;
12551 }
12552 return NULL;
12553 }
12554
12555
12556 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj;
12558 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12559 int arg2 ;
12560 wxString result;
12561 PyObject * obj0 = 0 ;
12562 PyObject * obj1 = 0 ;
12563 char *kwnames[] = {
12564 (char *) "self",(char *) "n", NULL
12565 };
12566
12567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12570 arg2 = (int)SWIG_As_int(obj1);
12571 if (PyErr_Occurred()) SWIG_fail;
12572 {
12573 PyThreadState* __tstate = wxPyBeginAllowThreads();
12574 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12575
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 {
12580 #if wxUSE_UNICODE
12581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12582 #else
12583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12584 #endif
12585 }
12586 return resultobj;
12587 fail:
12588 return NULL;
12589 }
12590
12591
12592 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12593 PyObject *resultobj;
12594 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12595 int arg2 ;
12596 wxString *arg3 = 0 ;
12597 bool temp3 = false ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 PyObject * obj2 = 0 ;
12601 char *kwnames[] = {
12602 (char *) "self",(char *) "n",(char *) "label", NULL
12603 };
12604
12605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12608 arg2 = (int)SWIG_As_int(obj1);
12609 if (PyErr_Occurred()) SWIG_fail;
12610 {
12611 arg3 = wxString_in_helper(obj2);
12612 if (arg3 == NULL) SWIG_fail;
12613 temp3 = true;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 (arg1)->SetString(arg2,(wxString const &)*arg3);
12618
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 Py_INCREF(Py_None); resultobj = Py_None;
12623 {
12624 if (temp3)
12625 delete arg3;
12626 }
12627 return resultobj;
12628 fail:
12629 {
12630 if (temp3)
12631 delete arg3;
12632 }
12633 return NULL;
12634 }
12635
12636
12637 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12638 PyObject *resultobj;
12639 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12640 int arg2 ;
12641 bool arg3 = (bool) true ;
12642 PyObject * obj0 = 0 ;
12643 PyObject * obj1 = 0 ;
12644 PyObject * obj2 = 0 ;
12645 char *kwnames[] = {
12646 (char *) "self",(char *) "n",(char *) "enable", NULL
12647 };
12648
12649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12652 arg2 = (int)SWIG_As_int(obj1);
12653 if (PyErr_Occurred()) SWIG_fail;
12654 if (obj2) {
12655 arg3 = (bool)SWIG_As_bool(obj2);
12656 if (PyErr_Occurred()) SWIG_fail;
12657 }
12658 {
12659 PyThreadState* __tstate = wxPyBeginAllowThreads();
12660 (arg1)->Enable(arg2,arg3);
12661
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 Py_INCREF(Py_None); resultobj = Py_None;
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12673 PyObject *resultobj;
12674 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12675 int arg2 ;
12676 bool arg3 = (bool) true ;
12677 PyObject * obj0 = 0 ;
12678 PyObject * obj1 = 0 ;
12679 PyObject * obj2 = 0 ;
12680 char *kwnames[] = {
12681 (char *) "self",(char *) "n",(char *) "show", NULL
12682 };
12683
12684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12687 arg2 = (int)SWIG_As_int(obj1);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 if (obj2) {
12690 arg3 = (bool)SWIG_As_bool(obj2);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 (arg1)->Show(arg2,arg3);
12696
12697 wxPyEndAllowThreads(__tstate);
12698 if (PyErr_Occurred()) SWIG_fail;
12699 }
12700 Py_INCREF(Py_None); resultobj = Py_None;
12701 return resultobj;
12702 fail:
12703 return NULL;
12704 }
12705
12706
12707 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12708 PyObject *resultobj;
12709 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12710 int result;
12711 PyObject * obj0 = 0 ;
12712 char *kwnames[] = {
12713 (char *) "self", NULL
12714 };
12715
12716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12719 {
12720 PyThreadState* __tstate = wxPyBeginAllowThreads();
12721 result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1);
12722
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 resultobj = SWIG_From_int((int)result);
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj;
12735 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12736 int result;
12737 PyObject * obj0 = 0 ;
12738 char *kwnames[] = {
12739 (char *) "self", NULL
12740 };
12741
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1);
12748
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 resultobj = SWIG_From_int((int)result);
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12762 int arg2 ;
12763 int arg3 ;
12764 long arg4 ;
12765 int result;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 PyObject * obj2 = 0 ;
12769 PyObject * obj3 = 0 ;
12770 char *kwnames[] = {
12771 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12772 };
12773
12774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12777 arg2 = (int)SWIG_As_int(obj1);
12778 if (PyErr_Occurred()) SWIG_fail;
12779 arg3 = (int)SWIG_As_int(obj2);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 arg4 = (long)SWIG_As_long(obj3);
12782 if (PyErr_Occurred()) SWIG_fail;
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4);
12786
12787 wxPyEndAllowThreads(__tstate);
12788 if (PyErr_Occurred()) SWIG_fail;
12789 }
12790 resultobj = SWIG_From_int((int)result);
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12800 wxVisualAttributes result;
12801 PyObject * obj0 = 0 ;
12802 char *kwnames[] = {
12803 (char *) "variant", NULL
12804 };
12805
12806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12807 if (obj0) {
12808 arg1 = (int)SWIG_As_int(obj0);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 {
12812 if (!wxPyCheckForApp()) SWIG_fail;
12813 PyThreadState* __tstate = wxPyBeginAllowThreads();
12814 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12815
12816 wxPyEndAllowThreads(__tstate);
12817 if (PyErr_Occurred()) SWIG_fail;
12818 }
12819 {
12820 wxVisualAttributes * resultptr;
12821 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12822 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12823 }
12824 return resultobj;
12825 fail:
12826 return NULL;
12827 }
12828
12829
12830 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12831 PyObject *obj;
12832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12833 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12834 Py_INCREF(obj);
12835 return Py_BuildValue((char *)"");
12836 }
12837 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12838 PyObject *resultobj;
12839 wxWindow *arg1 = (wxWindow *) 0 ;
12840 int arg2 = (int) -1 ;
12841 wxString const &arg3_defvalue = wxPyEmptyString ;
12842 wxString *arg3 = (wxString *) &arg3_defvalue ;
12843 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12844 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12845 wxSize const &arg5_defvalue = wxDefaultSize ;
12846 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12847 long arg6 = (long) 0 ;
12848 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12849 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12850 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12851 wxString *arg8 = (wxString *) &arg8_defvalue ;
12852 wxRadioButton *result;
12853 bool temp3 = false ;
12854 wxPoint temp4 ;
12855 wxSize temp5 ;
12856 bool temp8 = false ;
12857 PyObject * obj0 = 0 ;
12858 PyObject * obj1 = 0 ;
12859 PyObject * obj2 = 0 ;
12860 PyObject * obj3 = 0 ;
12861 PyObject * obj4 = 0 ;
12862 PyObject * obj5 = 0 ;
12863 PyObject * obj6 = 0 ;
12864 PyObject * obj7 = 0 ;
12865 char *kwnames[] = {
12866 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12867 };
12868
12869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12872 if (obj1) {
12873 arg2 = (int)SWIG_As_int(obj1);
12874 if (PyErr_Occurred()) SWIG_fail;
12875 }
12876 if (obj2) {
12877 {
12878 arg3 = wxString_in_helper(obj2);
12879 if (arg3 == NULL) SWIG_fail;
12880 temp3 = true;
12881 }
12882 }
12883 if (obj3) {
12884 {
12885 arg4 = &temp4;
12886 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12887 }
12888 }
12889 if (obj4) {
12890 {
12891 arg5 = &temp5;
12892 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12893 }
12894 }
12895 if (obj5) {
12896 arg6 = (long)SWIG_As_long(obj5);
12897 if (PyErr_Occurred()) SWIG_fail;
12898 }
12899 if (obj6) {
12900 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12901 SWIG_POINTER_EXCEPTION | 0)) == -1)
12902 SWIG_fail;
12903 if (arg7 == NULL) {
12904 PyErr_SetString(PyExc_TypeError,"null reference");
12905 SWIG_fail;
12906 }
12907 }
12908 if (obj7) {
12909 {
12910 arg8 = wxString_in_helper(obj7);
12911 if (arg8 == NULL) SWIG_fail;
12912 temp8 = true;
12913 }
12914 }
12915 {
12916 if (!wxPyCheckForApp()) SWIG_fail;
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12919
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12924 {
12925 if (temp3)
12926 delete arg3;
12927 }
12928 {
12929 if (temp8)
12930 delete arg8;
12931 }
12932 return resultobj;
12933 fail:
12934 {
12935 if (temp3)
12936 delete arg3;
12937 }
12938 {
12939 if (temp8)
12940 delete arg8;
12941 }
12942 return NULL;
12943 }
12944
12945
12946 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12947 PyObject *resultobj;
12948 wxRadioButton *result;
12949 char *kwnames[] = {
12950 NULL
12951 };
12952
12953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12954 {
12955 if (!wxPyCheckForApp()) SWIG_fail;
12956 PyThreadState* __tstate = wxPyBeginAllowThreads();
12957 result = (wxRadioButton *)new wxRadioButton();
12958
12959 wxPyEndAllowThreads(__tstate);
12960 if (PyErr_Occurred()) SWIG_fail;
12961 }
12962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12963 return resultobj;
12964 fail:
12965 return NULL;
12966 }
12967
12968
12969 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12970 PyObject *resultobj;
12971 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12972 wxWindow *arg2 = (wxWindow *) 0 ;
12973 int arg3 = (int) -1 ;
12974 wxString const &arg4_defvalue = wxPyEmptyString ;
12975 wxString *arg4 = (wxString *) &arg4_defvalue ;
12976 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12977 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12978 wxSize const &arg6_defvalue = wxDefaultSize ;
12979 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12980 long arg7 = (long) 0 ;
12981 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12982 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12983 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12984 wxString *arg9 = (wxString *) &arg9_defvalue ;
12985 bool result;
12986 bool temp4 = false ;
12987 wxPoint temp5 ;
12988 wxSize temp6 ;
12989 bool temp9 = false ;
12990 PyObject * obj0 = 0 ;
12991 PyObject * obj1 = 0 ;
12992 PyObject * obj2 = 0 ;
12993 PyObject * obj3 = 0 ;
12994 PyObject * obj4 = 0 ;
12995 PyObject * obj5 = 0 ;
12996 PyObject * obj6 = 0 ;
12997 PyObject * obj7 = 0 ;
12998 PyObject * obj8 = 0 ;
12999 char *kwnames[] = {
13000 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13001 };
13002
13003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
13004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
13005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13008 if (obj2) {
13009 arg3 = (int)SWIG_As_int(obj2);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 if (obj3) {
13013 {
13014 arg4 = wxString_in_helper(obj3);
13015 if (arg4 == NULL) SWIG_fail;
13016 temp4 = true;
13017 }
13018 }
13019 if (obj4) {
13020 {
13021 arg5 = &temp5;
13022 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
13023 }
13024 }
13025 if (obj5) {
13026 {
13027 arg6 = &temp6;
13028 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
13029 }
13030 }
13031 if (obj6) {
13032 arg7 = (long)SWIG_As_long(obj6);
13033 if (PyErr_Occurred()) SWIG_fail;
13034 }
13035 if (obj7) {
13036 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
13037 SWIG_POINTER_EXCEPTION | 0)) == -1)
13038 SWIG_fail;
13039 if (arg8 == NULL) {
13040 PyErr_SetString(PyExc_TypeError,"null reference");
13041 SWIG_fail;
13042 }
13043 }
13044 if (obj8) {
13045 {
13046 arg9 = wxString_in_helper(obj8);
13047 if (arg9 == NULL) SWIG_fail;
13048 temp9 = true;
13049 }
13050 }
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
13054
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 {
13059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13060 }
13061 {
13062 if (temp4)
13063 delete arg4;
13064 }
13065 {
13066 if (temp9)
13067 delete arg9;
13068 }
13069 return resultobj;
13070 fail:
13071 {
13072 if (temp4)
13073 delete arg4;
13074 }
13075 {
13076 if (temp9)
13077 delete arg9;
13078 }
13079 return NULL;
13080 }
13081
13082
13083 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13084 PyObject *resultobj;
13085 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
13086 bool result;
13087 PyObject * obj0 = 0 ;
13088 char *kwnames[] = {
13089 (char *) "self", NULL
13090 };
13091
13092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
13093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
13094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (bool)(arg1)->GetValue();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 {
13103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13104 }
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
13114 bool arg2 ;
13115 PyObject * obj0 = 0 ;
13116 PyObject * obj1 = 0 ;
13117 char *kwnames[] = {
13118 (char *) "self",(char *) "value", NULL
13119 };
13120
13121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
13122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13124 arg2 = (bool)SWIG_As_bool(obj1);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 {
13127 PyThreadState* __tstate = wxPyBeginAllowThreads();
13128 (arg1)->SetValue(arg2);
13129
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 Py_INCREF(Py_None); resultobj = Py_None;
13134 return resultobj;
13135 fail:
13136 return NULL;
13137 }
13138
13139
13140 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13141 PyObject *resultobj;
13142 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13143 wxVisualAttributes result;
13144 PyObject * obj0 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "variant", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13150 if (obj0) {
13151 arg1 = (int)SWIG_As_int(obj0);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 if (!wxPyCheckForApp()) SWIG_fail;
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 {
13163 wxVisualAttributes * resultptr;
13164 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13165 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13166 }
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
13174 PyObject *obj;
13175 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13176 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
13177 Py_INCREF(obj);
13178 return Py_BuildValue((char *)"");
13179 }
13180 static int _wrap_SliderNameStr_set(PyObject *) {
13181 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
13182 return 1;
13183 }
13184
13185
13186 static PyObject *_wrap_SliderNameStr_get() {
13187 PyObject *pyobj;
13188
13189 {
13190 #if wxUSE_UNICODE
13191 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13192 #else
13193 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13194 #endif
13195 }
13196 return pyobj;
13197 }
13198
13199
13200 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13201 PyObject *resultobj;
13202 wxWindow *arg1 = (wxWindow *) 0 ;
13203 int arg2 = (int) -1 ;
13204 int arg3 = (int) 0 ;
13205 int arg4 = (int) 0 ;
13206 int arg5 = (int) 100 ;
13207 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13208 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13209 wxSize const &arg7_defvalue = wxDefaultSize ;
13210 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13211 long arg8 = (long) wxSL_HORIZONTAL ;
13212 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13213 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13214 wxString const &arg10_defvalue = wxPySliderNameStr ;
13215 wxString *arg10 = (wxString *) &arg10_defvalue ;
13216 wxSlider *result;
13217 wxPoint temp6 ;
13218 wxSize temp7 ;
13219 bool temp10 = false ;
13220 PyObject * obj0 = 0 ;
13221 PyObject * obj1 = 0 ;
13222 PyObject * obj2 = 0 ;
13223 PyObject * obj3 = 0 ;
13224 PyObject * obj4 = 0 ;
13225 PyObject * obj5 = 0 ;
13226 PyObject * obj6 = 0 ;
13227 PyObject * obj7 = 0 ;
13228 PyObject * obj8 = 0 ;
13229 PyObject * obj9 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13232 };
13233
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13237 if (obj1) {
13238 arg2 = (int)SWIG_As_int(obj1);
13239 if (PyErr_Occurred()) SWIG_fail;
13240 }
13241 if (obj2) {
13242 arg3 = (int)SWIG_As_int(obj2);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 if (obj3) {
13246 arg4 = (int)SWIG_As_int(obj3);
13247 if (PyErr_Occurred()) SWIG_fail;
13248 }
13249 if (obj4) {
13250 arg5 = (int)SWIG_As_int(obj4);
13251 if (PyErr_Occurred()) SWIG_fail;
13252 }
13253 if (obj5) {
13254 {
13255 arg6 = &temp6;
13256 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13257 }
13258 }
13259 if (obj6) {
13260 {
13261 arg7 = &temp7;
13262 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13263 }
13264 }
13265 if (obj7) {
13266 arg8 = (long)SWIG_As_long(obj7);
13267 if (PyErr_Occurred()) SWIG_fail;
13268 }
13269 if (obj8) {
13270 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13271 SWIG_POINTER_EXCEPTION | 0)) == -1)
13272 SWIG_fail;
13273 if (arg9 == NULL) {
13274 PyErr_SetString(PyExc_TypeError,"null reference");
13275 SWIG_fail;
13276 }
13277 }
13278 if (obj9) {
13279 {
13280 arg10 = wxString_in_helper(obj9);
13281 if (arg10 == NULL) SWIG_fail;
13282 temp10 = true;
13283 }
13284 }
13285 {
13286 if (!wxPyCheckForApp()) SWIG_fail;
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13294 {
13295 if (temp10)
13296 delete arg10;
13297 }
13298 return resultobj;
13299 fail:
13300 {
13301 if (temp10)
13302 delete arg10;
13303 }
13304 return NULL;
13305 }
13306
13307
13308 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13309 PyObject *resultobj;
13310 wxSlider *result;
13311 char *kwnames[] = {
13312 NULL
13313 };
13314
13315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13316 {
13317 if (!wxPyCheckForApp()) SWIG_fail;
13318 PyThreadState* __tstate = wxPyBeginAllowThreads();
13319 result = (wxSlider *)new wxSlider();
13320
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13325 return resultobj;
13326 fail:
13327 return NULL;
13328 }
13329
13330
13331 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13332 PyObject *resultobj;
13333 wxSlider *arg1 = (wxSlider *) 0 ;
13334 wxWindow *arg2 = (wxWindow *) 0 ;
13335 int arg3 = (int) -1 ;
13336 int arg4 = (int) 0 ;
13337 int arg5 = (int) 0 ;
13338 int arg6 = (int) 100 ;
13339 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13340 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13341 wxSize const &arg8_defvalue = wxDefaultSize ;
13342 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13343 long arg9 = (long) wxSL_HORIZONTAL ;
13344 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13345 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13346 wxString const &arg11_defvalue = wxPySliderNameStr ;
13347 wxString *arg11 = (wxString *) &arg11_defvalue ;
13348 bool result;
13349 wxPoint temp7 ;
13350 wxSize temp8 ;
13351 bool temp11 = false ;
13352 PyObject * obj0 = 0 ;
13353 PyObject * obj1 = 0 ;
13354 PyObject * obj2 = 0 ;
13355 PyObject * obj3 = 0 ;
13356 PyObject * obj4 = 0 ;
13357 PyObject * obj5 = 0 ;
13358 PyObject * obj6 = 0 ;
13359 PyObject * obj7 = 0 ;
13360 PyObject * obj8 = 0 ;
13361 PyObject * obj9 = 0 ;
13362 PyObject * obj10 = 0 ;
13363 char *kwnames[] = {
13364 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13365 };
13366
13367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13372 if (obj2) {
13373 arg3 = (int)SWIG_As_int(obj2);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 if (obj3) {
13377 arg4 = (int)SWIG_As_int(obj3);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 }
13380 if (obj4) {
13381 arg5 = (int)SWIG_As_int(obj4);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 if (obj5) {
13385 arg6 = (int)SWIG_As_int(obj5);
13386 if (PyErr_Occurred()) SWIG_fail;
13387 }
13388 if (obj6) {
13389 {
13390 arg7 = &temp7;
13391 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13392 }
13393 }
13394 if (obj7) {
13395 {
13396 arg8 = &temp8;
13397 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13398 }
13399 }
13400 if (obj8) {
13401 arg9 = (long)SWIG_As_long(obj8);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 if (obj9) {
13405 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1)
13407 SWIG_fail;
13408 if (arg10 == NULL) {
13409 PyErr_SetString(PyExc_TypeError,"null reference");
13410 SWIG_fail;
13411 }
13412 }
13413 if (obj10) {
13414 {
13415 arg11 = wxString_in_helper(obj10);
13416 if (arg11 == NULL) SWIG_fail;
13417 temp11 = true;
13418 }
13419 }
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 {
13428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13429 }
13430 {
13431 if (temp11)
13432 delete arg11;
13433 }
13434 return resultobj;
13435 fail:
13436 {
13437 if (temp11)
13438 delete arg11;
13439 }
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxSlider *arg1 = (wxSlider *) 0 ;
13447 int result;
13448 PyObject * obj0 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 result = (int)((wxSlider const *)arg1)->GetValue();
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_From_int((int)result);
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxSlider *arg1 = (wxSlider *) 0 ;
13473 int arg2 ;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char *kwnames[] = {
13477 (char *) "self",(char *) "value", NULL
13478 };
13479
13480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13483 arg2 = (int)SWIG_As_int(obj1);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 (arg1)->SetValue(arg2);
13488
13489 wxPyEndAllowThreads(__tstate);
13490 if (PyErr_Occurred()) SWIG_fail;
13491 }
13492 Py_INCREF(Py_None); resultobj = Py_None;
13493 return resultobj;
13494 fail:
13495 return NULL;
13496 }
13497
13498
13499 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13500 PyObject *resultobj;
13501 wxSlider *arg1 = (wxSlider *) 0 ;
13502 int arg2 ;
13503 int arg3 ;
13504 PyObject * obj0 = 0 ;
13505 PyObject * obj1 = 0 ;
13506 PyObject * obj2 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13514 arg2 = (int)SWIG_As_int(obj1);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 arg3 = (int)SWIG_As_int(obj2);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 (arg1)->SetRange(arg2,arg3);
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 Py_INCREF(Py_None); resultobj = Py_None;
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxSlider *arg1 = (wxSlider *) 0 ;
13535 int result;
13536 PyObject * obj0 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (int)((wxSlider const *)arg1)->GetMin();
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 resultobj = SWIG_From_int((int)result);
13552 return resultobj;
13553 fail:
13554 return NULL;
13555 }
13556
13557
13558 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13559 PyObject *resultobj;
13560 wxSlider *arg1 = (wxSlider *) 0 ;
13561 int result;
13562 PyObject * obj0 = 0 ;
13563 char *kwnames[] = {
13564 (char *) "self", NULL
13565 };
13566
13567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13570 {
13571 PyThreadState* __tstate = wxPyBeginAllowThreads();
13572 result = (int)((wxSlider const *)arg1)->GetMax();
13573
13574 wxPyEndAllowThreads(__tstate);
13575 if (PyErr_Occurred()) SWIG_fail;
13576 }
13577 resultobj = SWIG_From_int((int)result);
13578 return resultobj;
13579 fail:
13580 return NULL;
13581 }
13582
13583
13584 static PyObject *_wrap_Slider_SetMin(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 *) "minValue", NULL
13592 };
13593
13594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",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)->SetMin(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_SetMax(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 *) "maxValue", NULL
13621 };
13622
13623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",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)->SetMax(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_SetLineSize(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 *) "lineSize", NULL
13650 };
13651
13652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",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)->SetLineSize(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_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13672 PyObject *resultobj;
13673 wxSlider *arg1 = (wxSlider *) 0 ;
13674 int arg2 ;
13675 PyObject * obj0 = 0 ;
13676 PyObject * obj1 = 0 ;
13677 char *kwnames[] = {
13678 (char *) "self",(char *) "pageSize", NULL
13679 };
13680
13681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13684 arg2 = (int)SWIG_As_int(obj1);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 {
13687 PyThreadState* __tstate = wxPyBeginAllowThreads();
13688 (arg1)->SetPageSize(arg2);
13689
13690 wxPyEndAllowThreads(__tstate);
13691 if (PyErr_Occurred()) SWIG_fail;
13692 }
13693 Py_INCREF(Py_None); resultobj = Py_None;
13694 return resultobj;
13695 fail:
13696 return NULL;
13697 }
13698
13699
13700 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13701 PyObject *resultobj;
13702 wxSlider *arg1 = (wxSlider *) 0 ;
13703 int result;
13704 PyObject * obj0 = 0 ;
13705 char *kwnames[] = {
13706 (char *) "self", NULL
13707 };
13708
13709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13712 {
13713 PyThreadState* __tstate = wxPyBeginAllowThreads();
13714 result = (int)((wxSlider const *)arg1)->GetLineSize();
13715
13716 wxPyEndAllowThreads(__tstate);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 resultobj = SWIG_From_int((int)result);
13720 return resultobj;
13721 fail:
13722 return NULL;
13723 }
13724
13725
13726 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13727 PyObject *resultobj;
13728 wxSlider *arg1 = (wxSlider *) 0 ;
13729 int result;
13730 PyObject * obj0 = 0 ;
13731 char *kwnames[] = {
13732 (char *) "self", NULL
13733 };
13734
13735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13738 {
13739 PyThreadState* __tstate = wxPyBeginAllowThreads();
13740 result = (int)((wxSlider const *)arg1)->GetPageSize();
13741
13742 wxPyEndAllowThreads(__tstate);
13743 if (PyErr_Occurred()) SWIG_fail;
13744 }
13745 resultobj = SWIG_From_int((int)result);
13746 return resultobj;
13747 fail:
13748 return NULL;
13749 }
13750
13751
13752 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13753 PyObject *resultobj;
13754 wxSlider *arg1 = (wxSlider *) 0 ;
13755 int arg2 ;
13756 PyObject * obj0 = 0 ;
13757 PyObject * obj1 = 0 ;
13758 char *kwnames[] = {
13759 (char *) "self",(char *) "lenPixels", NULL
13760 };
13761
13762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13765 arg2 = (int)SWIG_As_int(obj1);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 (arg1)->SetThumbLength(arg2);
13770
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 Py_INCREF(Py_None); resultobj = Py_None;
13775 return resultobj;
13776 fail:
13777 return NULL;
13778 }
13779
13780
13781 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13782 PyObject *resultobj;
13783 wxSlider *arg1 = (wxSlider *) 0 ;
13784 int result;
13785 PyObject * obj0 = 0 ;
13786 char *kwnames[] = {
13787 (char *) "self", NULL
13788 };
13789
13790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13793 {
13794 PyThreadState* __tstate = wxPyBeginAllowThreads();
13795 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13796
13797 wxPyEndAllowThreads(__tstate);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 resultobj = SWIG_From_int((int)result);
13801 return resultobj;
13802 fail:
13803 return NULL;
13804 }
13805
13806
13807 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13808 PyObject *resultobj;
13809 wxSlider *arg1 = (wxSlider *) 0 ;
13810 int arg2 ;
13811 int arg3 = (int) 1 ;
13812 PyObject * obj0 = 0 ;
13813 PyObject * obj1 = 0 ;
13814 PyObject * obj2 = 0 ;
13815 char *kwnames[] = {
13816 (char *) "self",(char *) "n",(char *) "pos", NULL
13817 };
13818
13819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13822 arg2 = (int)SWIG_As_int(obj1);
13823 if (PyErr_Occurred()) SWIG_fail;
13824 if (obj2) {
13825 arg3 = (int)SWIG_As_int(obj2);
13826 if (PyErr_Occurred()) SWIG_fail;
13827 }
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 (arg1)->SetTickFreq(arg2,arg3);
13831
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 Py_INCREF(Py_None); resultobj = Py_None;
13836 return resultobj;
13837 fail:
13838 return NULL;
13839 }
13840
13841
13842 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj;
13844 wxSlider *arg1 = (wxSlider *) 0 ;
13845 int result;
13846 PyObject * obj0 = 0 ;
13847 char *kwnames[] = {
13848 (char *) "self", NULL
13849 };
13850
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13854 {
13855 PyThreadState* __tstate = wxPyBeginAllowThreads();
13856 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13857
13858 wxPyEndAllowThreads(__tstate);
13859 if (PyErr_Occurred()) SWIG_fail;
13860 }
13861 resultobj = SWIG_From_int((int)result);
13862 return resultobj;
13863 fail:
13864 return NULL;
13865 }
13866
13867
13868 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13869 PyObject *resultobj;
13870 wxSlider *arg1 = (wxSlider *) 0 ;
13871 PyObject * obj0 = 0 ;
13872 char *kwnames[] = {
13873 (char *) "self", NULL
13874 };
13875
13876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13879 {
13880 PyThreadState* __tstate = wxPyBeginAllowThreads();
13881 (arg1)->ClearTicks();
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_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13894 PyObject *resultobj;
13895 wxSlider *arg1 = (wxSlider *) 0 ;
13896 int arg2 ;
13897 PyObject * obj0 = 0 ;
13898 PyObject * obj1 = 0 ;
13899 char *kwnames[] = {
13900 (char *) "self",(char *) "tickPos", NULL
13901 };
13902
13903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13906 arg2 = (int)SWIG_As_int(obj1);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 (arg1)->SetTick(arg2);
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 Py_INCREF(Py_None); resultobj = Py_None;
13916 return resultobj;
13917 fail:
13918 return NULL;
13919 }
13920
13921
13922 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13923 PyObject *resultobj;
13924 wxSlider *arg1 = (wxSlider *) 0 ;
13925 PyObject * obj0 = 0 ;
13926 char *kwnames[] = {
13927 (char *) "self", NULL
13928 };
13929
13930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 (arg1)->ClearSel();
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 Py_INCREF(Py_None); resultobj = Py_None;
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxSlider *arg1 = (wxSlider *) 0 ;
13950 int result;
13951 PyObject * obj0 = 0 ;
13952 char *kwnames[] = {
13953 (char *) "self", NULL
13954 };
13955
13956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 resultobj = SWIG_From_int((int)result);
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj;
13975 wxSlider *arg1 = (wxSlider *) 0 ;
13976 int result;
13977 PyObject * obj0 = 0 ;
13978 char *kwnames[] = {
13979 (char *) "self", NULL
13980 };
13981
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13985 {
13986 PyThreadState* __tstate = wxPyBeginAllowThreads();
13987 result = (int)((wxSlider const *)arg1)->GetSelStart();
13988
13989 wxPyEndAllowThreads(__tstate);
13990 if (PyErr_Occurred()) SWIG_fail;
13991 }
13992 resultobj = SWIG_From_int((int)result);
13993 return resultobj;
13994 fail:
13995 return NULL;
13996 }
13997
13998
13999 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14000 PyObject *resultobj;
14001 wxSlider *arg1 = (wxSlider *) 0 ;
14002 int arg2 ;
14003 int arg3 ;
14004 PyObject * obj0 = 0 ;
14005 PyObject * obj1 = 0 ;
14006 PyObject * obj2 = 0 ;
14007 char *kwnames[] = {
14008 (char *) "self",(char *) "min",(char *) "max", NULL
14009 };
14010
14011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
14012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
14013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14014 arg2 = (int)SWIG_As_int(obj1);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 arg3 = (int)SWIG_As_int(obj2);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 {
14019 PyThreadState* __tstate = wxPyBeginAllowThreads();
14020 (arg1)->SetSelection(arg2,arg3);
14021
14022 wxPyEndAllowThreads(__tstate);
14023 if (PyErr_Occurred()) SWIG_fail;
14024 }
14025 Py_INCREF(Py_None); resultobj = Py_None;
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14033 PyObject *resultobj;
14034 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14035 wxVisualAttributes result;
14036 PyObject * obj0 = 0 ;
14037 char *kwnames[] = {
14038 (char *) "variant", NULL
14039 };
14040
14041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14042 if (obj0) {
14043 arg1 = (int)SWIG_As_int(obj0);
14044 if (PyErr_Occurred()) SWIG_fail;
14045 }
14046 {
14047 if (!wxPyCheckForApp()) SWIG_fail;
14048 PyThreadState* __tstate = wxPyBeginAllowThreads();
14049 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
14050
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 {
14055 wxVisualAttributes * resultptr;
14056 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14057 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14058 }
14059 return resultobj;
14060 fail:
14061 return NULL;
14062 }
14063
14064
14065 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
14066 PyObject *obj;
14067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14068 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
14069 Py_INCREF(obj);
14070 return Py_BuildValue((char *)"");
14071 }
14072 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
14073 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
14074 return 1;
14075 }
14076
14077
14078 static PyObject *_wrap_ToggleButtonNameStr_get() {
14079 PyObject *pyobj;
14080
14081 {
14082 #if wxUSE_UNICODE
14083 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
14084 #else
14085 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
14086 #endif
14087 }
14088 return pyobj;
14089 }
14090
14091
14092 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj;
14094 wxWindow *arg1 = (wxWindow *) 0 ;
14095 int arg2 = (int) -1 ;
14096 wxString const &arg3_defvalue = wxPyEmptyString ;
14097 wxString *arg3 = (wxString *) &arg3_defvalue ;
14098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
14099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
14100 wxSize const &arg5_defvalue = wxDefaultSize ;
14101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
14102 long arg6 = (long) 0 ;
14103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
14104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
14105 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
14106 wxString *arg8 = (wxString *) &arg8_defvalue ;
14107 wxToggleButton *result;
14108 bool temp3 = false ;
14109 wxPoint temp4 ;
14110 wxSize temp5 ;
14111 bool temp8 = false ;
14112 PyObject * obj0 = 0 ;
14113 PyObject * obj1 = 0 ;
14114 PyObject * obj2 = 0 ;
14115 PyObject * obj3 = 0 ;
14116 PyObject * obj4 = 0 ;
14117 PyObject * obj5 = 0 ;
14118 PyObject * obj6 = 0 ;
14119 PyObject * obj7 = 0 ;
14120 char *kwnames[] = {
14121 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14122 };
14123
14124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
14125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
14126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14127 if (obj1) {
14128 arg2 = (int)SWIG_As_int(obj1);
14129 if (PyErr_Occurred()) SWIG_fail;
14130 }
14131 if (obj2) {
14132 {
14133 arg3 = wxString_in_helper(obj2);
14134 if (arg3 == NULL) SWIG_fail;
14135 temp3 = true;
14136 }
14137 }
14138 if (obj3) {
14139 {
14140 arg4 = &temp4;
14141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
14142 }
14143 }
14144 if (obj4) {
14145 {
14146 arg5 = &temp5;
14147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
14148 }
14149 }
14150 if (obj5) {
14151 arg6 = (long)SWIG_As_long(obj5);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 if (obj6) {
14155 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
14156 SWIG_POINTER_EXCEPTION | 0)) == -1)
14157 SWIG_fail;
14158 if (arg7 == NULL) {
14159 PyErr_SetString(PyExc_TypeError,"null reference");
14160 SWIG_fail;
14161 }
14162 }
14163 if (obj7) {
14164 {
14165 arg8 = wxString_in_helper(obj7);
14166 if (arg8 == NULL) SWIG_fail;
14167 temp8 = true;
14168 }
14169 }
14170 {
14171 if (!wxPyCheckForApp()) SWIG_fail;
14172 PyThreadState* __tstate = wxPyBeginAllowThreads();
14173 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
14174
14175 wxPyEndAllowThreads(__tstate);
14176 if (PyErr_Occurred()) SWIG_fail;
14177 }
14178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14179 {
14180 if (temp3)
14181 delete arg3;
14182 }
14183 {
14184 if (temp8)
14185 delete arg8;
14186 }
14187 return resultobj;
14188 fail:
14189 {
14190 if (temp3)
14191 delete arg3;
14192 }
14193 {
14194 if (temp8)
14195 delete arg8;
14196 }
14197 return NULL;
14198 }
14199
14200
14201 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14202 PyObject *resultobj;
14203 wxToggleButton *result;
14204 char *kwnames[] = {
14205 NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14209 {
14210 if (!wxPyCheckForApp()) SWIG_fail;
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 result = (wxToggleButton *)new wxToggleButton();
14213
14214 wxPyEndAllowThreads(__tstate);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 }
14217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj;
14226 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14227 wxWindow *arg2 = (wxWindow *) 0 ;
14228 int arg3 = (int) -1 ;
14229 wxString const &arg4_defvalue = wxPyEmptyString ;
14230 wxString *arg4 = (wxString *) &arg4_defvalue ;
14231 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14232 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14233 wxSize const &arg6_defvalue = wxDefaultSize ;
14234 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14235 long arg7 = (long) 0 ;
14236 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14237 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14238 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14239 wxString *arg9 = (wxString *) &arg9_defvalue ;
14240 bool result;
14241 bool temp4 = false ;
14242 wxPoint temp5 ;
14243 wxSize temp6 ;
14244 bool temp9 = false ;
14245 PyObject * obj0 = 0 ;
14246 PyObject * obj1 = 0 ;
14247 PyObject * obj2 = 0 ;
14248 PyObject * obj3 = 0 ;
14249 PyObject * obj4 = 0 ;
14250 PyObject * obj5 = 0 ;
14251 PyObject * obj6 = 0 ;
14252 PyObject * obj7 = 0 ;
14253 PyObject * obj8 = 0 ;
14254 char *kwnames[] = {
14255 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14256 };
14257
14258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14263 if (obj2) {
14264 arg3 = (int)SWIG_As_int(obj2);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 }
14267 if (obj3) {
14268 {
14269 arg4 = wxString_in_helper(obj3);
14270 if (arg4 == NULL) SWIG_fail;
14271 temp4 = true;
14272 }
14273 }
14274 if (obj4) {
14275 {
14276 arg5 = &temp5;
14277 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14278 }
14279 }
14280 if (obj5) {
14281 {
14282 arg6 = &temp6;
14283 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14284 }
14285 }
14286 if (obj6) {
14287 arg7 = (long)SWIG_As_long(obj6);
14288 if (PyErr_Occurred()) SWIG_fail;
14289 }
14290 if (obj7) {
14291 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14292 SWIG_POINTER_EXCEPTION | 0)) == -1)
14293 SWIG_fail;
14294 if (arg8 == NULL) {
14295 PyErr_SetString(PyExc_TypeError,"null reference");
14296 SWIG_fail;
14297 }
14298 }
14299 if (obj8) {
14300 {
14301 arg9 = wxString_in_helper(obj8);
14302 if (arg9 == NULL) SWIG_fail;
14303 temp9 = true;
14304 }
14305 }
14306 {
14307 PyThreadState* __tstate = wxPyBeginAllowThreads();
14308 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14309
14310 wxPyEndAllowThreads(__tstate);
14311 if (PyErr_Occurred()) SWIG_fail;
14312 }
14313 {
14314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14315 }
14316 {
14317 if (temp4)
14318 delete arg4;
14319 }
14320 {
14321 if (temp9)
14322 delete arg9;
14323 }
14324 return resultobj;
14325 fail:
14326 {
14327 if (temp4)
14328 delete arg4;
14329 }
14330 {
14331 if (temp9)
14332 delete arg9;
14333 }
14334 return NULL;
14335 }
14336
14337
14338 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14341 bool arg2 ;
14342 PyObject * obj0 = 0 ;
14343 PyObject * obj1 = 0 ;
14344 char *kwnames[] = {
14345 (char *) "self",(char *) "value", NULL
14346 };
14347
14348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14351 arg2 = (bool)SWIG_As_bool(obj1);
14352 if (PyErr_Occurred()) SWIG_fail;
14353 {
14354 PyThreadState* __tstate = wxPyBeginAllowThreads();
14355 (arg1)->SetValue(arg2);
14356
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 Py_INCREF(Py_None); resultobj = Py_None;
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14370 bool result;
14371 PyObject * obj0 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self", NULL
14374 };
14375
14376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14382
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 {
14387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14388 }
14389 return resultobj;
14390 fail:
14391 return NULL;
14392 }
14393
14394
14395 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14396 PyObject *resultobj;
14397 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14398 wxString *arg2 = 0 ;
14399 bool temp2 = false ;
14400 PyObject * obj0 = 0 ;
14401 PyObject * obj1 = 0 ;
14402 char *kwnames[] = {
14403 (char *) "self",(char *) "label", NULL
14404 };
14405
14406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14409 {
14410 arg2 = wxString_in_helper(obj1);
14411 if (arg2 == NULL) SWIG_fail;
14412 temp2 = true;
14413 }
14414 {
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 (arg1)->SetLabel((wxString const &)*arg2);
14417
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 Py_INCREF(Py_None); resultobj = Py_None;
14422 {
14423 if (temp2)
14424 delete arg2;
14425 }
14426 return resultobj;
14427 fail:
14428 {
14429 if (temp2)
14430 delete arg2;
14431 }
14432 return NULL;
14433 }
14434
14435
14436 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj;
14438 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14439 wxVisualAttributes result;
14440 PyObject * obj0 = 0 ;
14441 char *kwnames[] = {
14442 (char *) "variant", NULL
14443 };
14444
14445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14446 if (obj0) {
14447 arg1 = (int)SWIG_As_int(obj0);
14448 if (PyErr_Occurred()) SWIG_fail;
14449 }
14450 {
14451 if (!wxPyCheckForApp()) SWIG_fail;
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14454
14455 wxPyEndAllowThreads(__tstate);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 }
14458 {
14459 wxVisualAttributes * resultptr;
14460 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14461 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14462 }
14463 return resultobj;
14464 fail:
14465 return NULL;
14466 }
14467
14468
14469 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14470 PyObject *obj;
14471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14472 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14473 Py_INCREF(obj);
14474 return Py_BuildValue((char *)"");
14475 }
14476 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14477 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14478 return 1;
14479 }
14480
14481
14482 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14483 PyObject *pyobj;
14484
14485 {
14486 #if wxUSE_UNICODE
14487 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14488 #else
14489 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14490 #endif
14491 }
14492 return pyobj;
14493 }
14494
14495
14496 static PyObject *_wrap_BookCtrlBase_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14497 PyObject *resultobj;
14498 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14499 size_t result;
14500 PyObject * obj0 = 0 ;
14501 char *kwnames[] = {
14502 (char *) "self", NULL
14503 };
14504
14505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetPageCount",kwnames,&obj0)) goto fail;
14506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 result = (size_t)((wxBookCtrlBase const *)arg1)->GetPageCount();
14511
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14516 return resultobj;
14517 fail:
14518 return NULL;
14519 }
14520
14521
14522 static PyObject *_wrap_BookCtrlBase_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14523 PyObject *resultobj;
14524 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14525 size_t arg2 ;
14526 wxWindow *result;
14527 PyObject * obj0 = 0 ;
14528 PyObject * obj1 = 0 ;
14529 char *kwnames[] = {
14530 (char *) "self",(char *) "n", NULL
14531 };
14532
14533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPage",kwnames,&obj0,&obj1)) goto fail;
14534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14536 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 {
14539 PyThreadState* __tstate = wxPyBeginAllowThreads();
14540 result = (wxWindow *)(arg1)->GetPage(arg2);
14541
14542 wxPyEndAllowThreads(__tstate);
14543 if (PyErr_Occurred()) SWIG_fail;
14544 }
14545 {
14546 resultobj = wxPyMake_wxObject(result, 0);
14547 }
14548 return resultobj;
14549 fail:
14550 return NULL;
14551 }
14552
14553
14554 static PyObject *_wrap_BookCtrlBase_GetCurrentPage(PyObject *, PyObject *args, PyObject *kwargs) {
14555 PyObject *resultobj;
14556 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14557 wxWindow *result;
14558 PyObject * obj0 = 0 ;
14559 char *kwnames[] = {
14560 (char *) "self", NULL
14561 };
14562
14563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetCurrentPage",kwnames,&obj0)) goto fail;
14564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (wxWindow *)((wxBookCtrlBase const *)arg1)->GetCurrentPage();
14569
14570 wxPyEndAllowThreads(__tstate);
14571 if (PyErr_Occurred()) SWIG_fail;
14572 }
14573 {
14574 resultobj = wxPyMake_wxObject(result, 0);
14575 }
14576 return resultobj;
14577 fail:
14578 return NULL;
14579 }
14580
14581
14582 static PyObject *_wrap_BookCtrlBase_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14583 PyObject *resultobj;
14584 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14585 int result;
14586 PyObject * obj0 = 0 ;
14587 char *kwnames[] = {
14588 (char *) "self", NULL
14589 };
14590
14591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetSelection",kwnames,&obj0)) goto fail;
14592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14594 {
14595 PyThreadState* __tstate = wxPyBeginAllowThreads();
14596 result = (int)((wxBookCtrlBase const *)arg1)->GetSelection();
14597
14598 wxPyEndAllowThreads(__tstate);
14599 if (PyErr_Occurred()) SWIG_fail;
14600 }
14601 resultobj = SWIG_From_int((int)result);
14602 return resultobj;
14603 fail:
14604 return NULL;
14605 }
14606
14607
14608 static PyObject *_wrap_BookCtrlBase_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14609 PyObject *resultobj;
14610 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14611 size_t arg2 ;
14612 wxString *arg3 = 0 ;
14613 bool result;
14614 bool temp3 = false ;
14615 PyObject * obj0 = 0 ;
14616 PyObject * obj1 = 0 ;
14617 PyObject * obj2 = 0 ;
14618 char *kwnames[] = {
14619 (char *) "self",(char *) "n",(char *) "strText", NULL
14620 };
14621
14622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14625 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 {
14628 arg3 = wxString_in_helper(obj2);
14629 if (arg3 == NULL) SWIG_fail;
14630 temp3 = true;
14631 }
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
14640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14641 }
14642 {
14643 if (temp3)
14644 delete arg3;
14645 }
14646 return resultobj;
14647 fail:
14648 {
14649 if (temp3)
14650 delete arg3;
14651 }
14652 return NULL;
14653 }
14654
14655
14656 static PyObject *_wrap_BookCtrlBase_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14657 PyObject *resultobj;
14658 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14659 size_t arg2 ;
14660 wxString result;
14661 PyObject * obj0 = 0 ;
14662 PyObject * obj1 = 0 ;
14663 char *kwnames[] = {
14664 (char *) "self",(char *) "n", NULL
14665 };
14666
14667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14670 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14671 if (PyErr_Occurred()) SWIG_fail;
14672 {
14673 PyThreadState* __tstate = wxPyBeginAllowThreads();
14674 result = ((wxBookCtrlBase const *)arg1)->GetPageText(arg2);
14675
14676 wxPyEndAllowThreads(__tstate);
14677 if (PyErr_Occurred()) SWIG_fail;
14678 }
14679 {
14680 #if wxUSE_UNICODE
14681 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14682 #else
14683 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14684 #endif
14685 }
14686 return resultobj;
14687 fail:
14688 return NULL;
14689 }
14690
14691
14692 static PyObject *_wrap_BookCtrlBase_SetImageList(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_SetImageList",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 | 0)) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 (arg1)->SetImageList(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_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14722 PyObject *resultobj;
14723 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14724 wxImageList *arg2 = (wxImageList *) 0 ;
14725 PyObject * obj0 = 0 ;
14726 PyObject * obj1 = 0 ;
14727 char *kwnames[] = {
14728 (char *) "self",(char *) "imageList", NULL
14729 };
14730
14731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14734 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14735 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 (arg1)->AssignImageList(arg2);
14739
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 Py_INCREF(Py_None); resultobj = Py_None;
14744 return resultobj;
14745 fail:
14746 return NULL;
14747 }
14748
14749
14750 static PyObject *_wrap_BookCtrlBase_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj;
14752 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14753 wxImageList *result;
14754 PyObject * obj0 = 0 ;
14755 char *kwnames[] = {
14756 (char *) "self", NULL
14757 };
14758
14759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_GetImageList",kwnames,&obj0)) goto fail;
14760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (wxImageList *)((wxBookCtrlBase const *)arg1)->GetImageList();
14765
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 {
14770 resultobj = wxPyMake_wxObject(result, 0);
14771 }
14772 return resultobj;
14773 fail:
14774 return NULL;
14775 }
14776
14777
14778 static PyObject *_wrap_BookCtrlBase_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14779 PyObject *resultobj;
14780 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14781 size_t arg2 ;
14782 int result;
14783 PyObject * obj0 = 0 ;
14784 PyObject * obj1 = 0 ;
14785 char *kwnames[] = {
14786 (char *) "self",(char *) "n", NULL
14787 };
14788
14789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14792 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14793 if (PyErr_Occurred()) SWIG_fail;
14794 {
14795 PyThreadState* __tstate = wxPyBeginAllowThreads();
14796 result = (int)((wxBookCtrlBase const *)arg1)->GetPageImage(arg2);
14797
14798 wxPyEndAllowThreads(__tstate);
14799 if (PyErr_Occurred()) SWIG_fail;
14800 }
14801 resultobj = SWIG_From_int((int)result);
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject *_wrap_BookCtrlBase_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14811 size_t arg2 ;
14812 int arg3 ;
14813 bool result;
14814 PyObject * obj0 = 0 ;
14815 PyObject * obj1 = 0 ;
14816 PyObject * obj2 = 0 ;
14817 char *kwnames[] = {
14818 (char *) "self",(char *) "n",(char *) "imageId", NULL
14819 };
14820
14821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrlBase_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14824 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14825 if (PyErr_Occurred()) SWIG_fail;
14826 arg3 = (int)SWIG_As_int(obj2);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14831
14832 wxPyEndAllowThreads(__tstate);
14833 if (PyErr_Occurred()) SWIG_fail;
14834 }
14835 {
14836 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14837 }
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 static PyObject *_wrap_BookCtrlBase_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14845 PyObject *resultobj;
14846 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14847 wxSize *arg2 = 0 ;
14848 wxSize temp2 ;
14849 PyObject * obj0 = 0 ;
14850 PyObject * obj1 = 0 ;
14851 char *kwnames[] = {
14852 (char *) "self",(char *) "size", NULL
14853 };
14854
14855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14858 {
14859 arg2 = &temp2;
14860 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14861 }
14862 {
14863 PyThreadState* __tstate = wxPyBeginAllowThreads();
14864 (arg1)->SetPageSize((wxSize const &)*arg2);
14865
14866 wxPyEndAllowThreads(__tstate);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 Py_INCREF(Py_None); resultobj = Py_None;
14870 return resultobj;
14871 fail:
14872 return NULL;
14873 }
14874
14875
14876 static PyObject *_wrap_BookCtrlBase_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14877 PyObject *resultobj;
14878 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14879 wxSize *arg2 = 0 ;
14880 wxSize result;
14881 wxSize temp2 ;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 char *kwnames[] = {
14885 (char *) "self",(char *) "sizePage", NULL
14886 };
14887
14888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14891 {
14892 arg2 = &temp2;
14893 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14894 }
14895 {
14896 PyThreadState* __tstate = wxPyBeginAllowThreads();
14897 result = ((wxBookCtrlBase const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14898
14899 wxPyEndAllowThreads(__tstate);
14900 if (PyErr_Occurred()) SWIG_fail;
14901 }
14902 {
14903 wxSize * resultptr;
14904 resultptr = new wxSize((wxSize &) result);
14905 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14906 }
14907 return resultobj;
14908 fail:
14909 return NULL;
14910 }
14911
14912
14913 static PyObject *_wrap_BookCtrlBase_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14914 PyObject *resultobj;
14915 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14916 size_t arg2 ;
14917 bool result;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 char *kwnames[] = {
14921 (char *) "self",(char *) "n", NULL
14922 };
14923
14924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14927 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (bool)(arg1)->DeletePage(arg2);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 {
14937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14938 }
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_BookCtrlBase_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14948 size_t arg2 ;
14949 bool result;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 char *kwnames[] = {
14953 (char *) "self",(char *) "n", NULL
14954 };
14955
14956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14959 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 result = (bool)(arg1)->RemovePage(arg2);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 {
14969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14970 }
14971 return resultobj;
14972 fail:
14973 return NULL;
14974 }
14975
14976
14977 static PyObject *_wrap_BookCtrlBase_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14978 PyObject *resultobj;
14979 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
14980 bool result;
14981 PyObject * obj0 = 0 ;
14982 char *kwnames[] = {
14983 (char *) "self", NULL
14984 };
14985
14986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBase_DeleteAllPages",kwnames,&obj0)) goto fail;
14987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
14988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14989 {
14990 PyThreadState* __tstate = wxPyBeginAllowThreads();
14991 result = (bool)(arg1)->DeleteAllPages();
14992
14993 wxPyEndAllowThreads(__tstate);
14994 if (PyErr_Occurred()) SWIG_fail;
14995 }
14996 {
14997 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14998 }
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject *_wrap_BookCtrlBase_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
15006 PyObject *resultobj;
15007 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15008 wxWindow *arg2 = (wxWindow *) 0 ;
15009 wxString *arg3 = 0 ;
15010 bool arg4 = (bool) false ;
15011 int arg5 = (int) -1 ;
15012 bool result;
15013 bool temp3 = false ;
15014 PyObject * obj0 = 0 ;
15015 PyObject * obj1 = 0 ;
15016 PyObject * obj2 = 0 ;
15017 PyObject * obj3 = 0 ;
15018 PyObject * obj4 = 0 ;
15019 char *kwnames[] = {
15020 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
15021 };
15022
15023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrlBase_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15028 {
15029 arg3 = wxString_in_helper(obj2);
15030 if (arg3 == NULL) SWIG_fail;
15031 temp3 = true;
15032 }
15033 if (obj3) {
15034 arg4 = (bool)SWIG_As_bool(obj3);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 if (obj4) {
15038 arg5 = (int)SWIG_As_int(obj4);
15039 if (PyErr_Occurred()) SWIG_fail;
15040 }
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
15044
15045 wxPyEndAllowThreads(__tstate);
15046 if (PyErr_Occurred()) SWIG_fail;
15047 }
15048 {
15049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15050 }
15051 {
15052 if (temp3)
15053 delete arg3;
15054 }
15055 return resultobj;
15056 fail:
15057 {
15058 if (temp3)
15059 delete arg3;
15060 }
15061 return NULL;
15062 }
15063
15064
15065 static PyObject *_wrap_BookCtrlBase_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj;
15067 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15068 size_t arg2 ;
15069 wxWindow *arg3 = (wxWindow *) 0 ;
15070 wxString *arg4 = 0 ;
15071 bool arg5 = (bool) false ;
15072 int arg6 = (int) -1 ;
15073 bool result;
15074 bool temp4 = false ;
15075 PyObject * obj0 = 0 ;
15076 PyObject * obj1 = 0 ;
15077 PyObject * obj2 = 0 ;
15078 PyObject * obj3 = 0 ;
15079 PyObject * obj4 = 0 ;
15080 PyObject * obj5 = 0 ;
15081 char *kwnames[] = {
15082 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
15083 };
15084
15085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrlBase_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15088 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
15089 if (PyErr_Occurred()) SWIG_fail;
15090 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
15091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15092 {
15093 arg4 = wxString_in_helper(obj3);
15094 if (arg4 == NULL) SWIG_fail;
15095 temp4 = true;
15096 }
15097 if (obj4) {
15098 arg5 = (bool)SWIG_As_bool(obj4);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
15101 if (obj5) {
15102 arg6 = (int)SWIG_As_int(obj5);
15103 if (PyErr_Occurred()) SWIG_fail;
15104 }
15105 {
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 {
15113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15114 }
15115 {
15116 if (temp4)
15117 delete arg4;
15118 }
15119 return resultobj;
15120 fail:
15121 {
15122 if (temp4)
15123 delete arg4;
15124 }
15125 return NULL;
15126 }
15127
15128
15129 static PyObject *_wrap_BookCtrlBase_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15130 PyObject *resultobj;
15131 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15132 size_t arg2 ;
15133 int result;
15134 PyObject * obj0 = 0 ;
15135 PyObject * obj1 = 0 ;
15136 char *kwnames[] = {
15137 (char *) "self",(char *) "n", NULL
15138 };
15139
15140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBase_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15143 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 {
15146 PyThreadState* __tstate = wxPyBeginAllowThreads();
15147 result = (int)(arg1)->SetSelection(arg2);
15148
15149 wxPyEndAllowThreads(__tstate);
15150 if (PyErr_Occurred()) SWIG_fail;
15151 }
15152 resultobj = SWIG_From_int((int)result);
15153 return resultobj;
15154 fail:
15155 return NULL;
15156 }
15157
15158
15159 static PyObject *_wrap_BookCtrlBase_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15160 PyObject *resultobj;
15161 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
15162 bool arg2 = (bool) true ;
15163 PyObject * obj0 = 0 ;
15164 PyObject * obj1 = 0 ;
15165 char *kwnames[] = {
15166 (char *) "self",(char *) "forward", NULL
15167 };
15168
15169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrlBase_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
15170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
15171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15172 if (obj1) {
15173 arg2 = (bool)SWIG_As_bool(obj1);
15174 if (PyErr_Occurred()) SWIG_fail;
15175 }
15176 {
15177 PyThreadState* __tstate = wxPyBeginAllowThreads();
15178 (arg1)->AdvanceSelection(arg2);
15179
15180 wxPyEndAllowThreads(__tstate);
15181 if (PyErr_Occurred()) SWIG_fail;
15182 }
15183 Py_INCREF(Py_None); resultobj = Py_None;
15184 return resultobj;
15185 fail:
15186 return NULL;
15187 }
15188
15189
15190 static PyObject *_wrap_BookCtrlBase_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15191 PyObject *resultobj;
15192 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15193 wxVisualAttributes result;
15194 PyObject * obj0 = 0 ;
15195 char *kwnames[] = {
15196 (char *) "variant", NULL
15197 };
15198
15199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrlBase_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15200 if (obj0) {
15201 arg1 = (int)SWIG_As_int(obj0);
15202 if (PyErr_Occurred()) SWIG_fail;
15203 }
15204 {
15205 if (!wxPyCheckForApp()) SWIG_fail;
15206 PyThreadState* __tstate = wxPyBeginAllowThreads();
15207 result = wxBookCtrlBase::GetClassDefaultAttributes((wxWindowVariant )arg1);
15208
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 {
15213 wxVisualAttributes * resultptr;
15214 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15216 }
15217 return resultobj;
15218 fail:
15219 return NULL;
15220 }
15221
15222
15223 static PyObject * BookCtrlBase_swigregister(PyObject *, PyObject *args) {
15224 PyObject *obj;
15225 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15226 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBase, obj);
15227 Py_INCREF(obj);
15228 return Py_BuildValue((char *)"");
15229 }
15230 static PyObject *_wrap_new_BookCtrlBaseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj;
15232 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15233 int arg2 = (int) 0 ;
15234 int arg3 = (int) -1 ;
15235 int arg4 = (int) -1 ;
15236 wxBookCtrlBaseEvent *result;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239 PyObject * obj2 = 0 ;
15240 PyObject * obj3 = 0 ;
15241 char *kwnames[] = {
15242 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15243 };
15244
15245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlBaseEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15246 if (obj0) {
15247 arg1 = (wxEventType)SWIG_As_int(obj0);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 if (obj1) {
15251 arg2 = (int)SWIG_As_int(obj1);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 if (obj2) {
15255 arg3 = (int)SWIG_As_int(obj2);
15256 if (PyErr_Occurred()) SWIG_fail;
15257 }
15258 if (obj3) {
15259 arg4 = (int)SWIG_As_int(obj3);
15260 if (PyErr_Occurred()) SWIG_fail;
15261 }
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (wxBookCtrlBaseEvent *)new wxBookCtrlBaseEvent(arg1,arg2,arg3,arg4);
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBaseEvent, 1);
15270 return resultobj;
15271 fail:
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_BookCtrlBaseEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15279 int result;
15280 PyObject * obj0 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "self", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetSelection",kwnames,&obj0)) goto fail;
15286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetSelection();
15291
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 resultobj = SWIG_From_int((int)result);
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 static PyObject *_wrap_BookCtrlBaseEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj;
15304 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15305 int arg2 ;
15306 PyObject * obj0 = 0 ;
15307 PyObject * obj1 = 0 ;
15308 char *kwnames[] = {
15309 (char *) "self",(char *) "nSel", NULL
15310 };
15311
15312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15315 arg2 = (int)SWIG_As_int(obj1);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 {
15318 PyThreadState* __tstate = wxPyBeginAllowThreads();
15319 (arg1)->SetSelection(arg2);
15320
15321 wxPyEndAllowThreads(__tstate);
15322 if (PyErr_Occurred()) SWIG_fail;
15323 }
15324 Py_INCREF(Py_None); resultobj = Py_None;
15325 return resultobj;
15326 fail:
15327 return NULL;
15328 }
15329
15330
15331 static PyObject *_wrap_BookCtrlBaseEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15332 PyObject *resultobj;
15333 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15334 int result;
15335 PyObject * obj0 = 0 ;
15336 char *kwnames[] = {
15337 (char *) "self", NULL
15338 };
15339
15340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlBaseEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15343 {
15344 PyThreadState* __tstate = wxPyBeginAllowThreads();
15345 result = (int)((wxBookCtrlBaseEvent const *)arg1)->GetOldSelection();
15346
15347 wxPyEndAllowThreads(__tstate);
15348 if (PyErr_Occurred()) SWIG_fail;
15349 }
15350 resultobj = SWIG_From_int((int)result);
15351 return resultobj;
15352 fail:
15353 return NULL;
15354 }
15355
15356
15357 static PyObject *_wrap_BookCtrlBaseEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15358 PyObject *resultobj;
15359 wxBookCtrlBaseEvent *arg1 = (wxBookCtrlBaseEvent *) 0 ;
15360 int arg2 ;
15361 PyObject * obj0 = 0 ;
15362 PyObject * obj1 = 0 ;
15363 char *kwnames[] = {
15364 (char *) "self",(char *) "nOldSel", NULL
15365 };
15366
15367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlBaseEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBaseEvent,
15369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15370 arg2 = (int)SWIG_As_int(obj1);
15371 if (PyErr_Occurred()) SWIG_fail;
15372 {
15373 PyThreadState* __tstate = wxPyBeginAllowThreads();
15374 (arg1)->SetOldSelection(arg2);
15375
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 Py_INCREF(Py_None); resultobj = Py_None;
15380 return resultobj;
15381 fail:
15382 return NULL;
15383 }
15384
15385
15386 static PyObject * BookCtrlBaseEvent_swigregister(PyObject *, PyObject *args) {
15387 PyObject *obj;
15388 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15389 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlBaseEvent, obj);
15390 Py_INCREF(obj);
15391 return Py_BuildValue((char *)"");
15392 }
15393 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15394 PyObject *resultobj;
15395 wxWindow *arg1 = (wxWindow *) 0 ;
15396 int arg2 = (int) -1 ;
15397 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15398 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15399 wxSize const &arg4_defvalue = wxDefaultSize ;
15400 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15401 long arg5 = (long) 0 ;
15402 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15403 wxString *arg6 = (wxString *) &arg6_defvalue ;
15404 wxNotebook *result;
15405 wxPoint temp3 ;
15406 wxSize temp4 ;
15407 bool temp6 = false ;
15408 PyObject * obj0 = 0 ;
15409 PyObject * obj1 = 0 ;
15410 PyObject * obj2 = 0 ;
15411 PyObject * obj3 = 0 ;
15412 PyObject * obj4 = 0 ;
15413 PyObject * obj5 = 0 ;
15414 char *kwnames[] = {
15415 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15416 };
15417
15418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15421 if (obj1) {
15422 arg2 = (int)SWIG_As_int(obj1);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 if (obj2) {
15426 {
15427 arg3 = &temp3;
15428 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15429 }
15430 }
15431 if (obj3) {
15432 {
15433 arg4 = &temp4;
15434 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15435 }
15436 }
15437 if (obj4) {
15438 arg5 = (long)SWIG_As_long(obj4);
15439 if (PyErr_Occurred()) SWIG_fail;
15440 }
15441 if (obj5) {
15442 {
15443 arg6 = wxString_in_helper(obj5);
15444 if (arg6 == NULL) SWIG_fail;
15445 temp6 = true;
15446 }
15447 }
15448 {
15449 if (!wxPyCheckForApp()) SWIG_fail;
15450 PyThreadState* __tstate = wxPyBeginAllowThreads();
15451 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15452
15453 wxPyEndAllowThreads(__tstate);
15454 if (PyErr_Occurred()) SWIG_fail;
15455 }
15456 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15457 {
15458 if (temp6)
15459 delete arg6;
15460 }
15461 return resultobj;
15462 fail:
15463 {
15464 if (temp6)
15465 delete arg6;
15466 }
15467 return NULL;
15468 }
15469
15470
15471 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15472 PyObject *resultobj;
15473 wxNotebook *result;
15474 char *kwnames[] = {
15475 NULL
15476 };
15477
15478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15479 {
15480 if (!wxPyCheckForApp()) SWIG_fail;
15481 PyThreadState* __tstate = wxPyBeginAllowThreads();
15482 result = (wxNotebook *)new wxNotebook();
15483
15484 wxPyEndAllowThreads(__tstate);
15485 if (PyErr_Occurred()) SWIG_fail;
15486 }
15487 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15488 return resultobj;
15489 fail:
15490 return NULL;
15491 }
15492
15493
15494 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15495 PyObject *resultobj;
15496 wxNotebook *arg1 = (wxNotebook *) 0 ;
15497 wxWindow *arg2 = (wxWindow *) 0 ;
15498 int arg3 = (int) -1 ;
15499 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15500 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15501 wxSize const &arg5_defvalue = wxDefaultSize ;
15502 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15503 long arg6 = (long) 0 ;
15504 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15505 wxString *arg7 = (wxString *) &arg7_defvalue ;
15506 bool result;
15507 wxPoint temp4 ;
15508 wxSize temp5 ;
15509 bool temp7 = false ;
15510 PyObject * obj0 = 0 ;
15511 PyObject * obj1 = 0 ;
15512 PyObject * obj2 = 0 ;
15513 PyObject * obj3 = 0 ;
15514 PyObject * obj4 = 0 ;
15515 PyObject * obj5 = 0 ;
15516 PyObject * obj6 = 0 ;
15517 char *kwnames[] = {
15518 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15519 };
15520
15521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15524 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15526 if (obj2) {
15527 arg3 = (int)SWIG_As_int(obj2);
15528 if (PyErr_Occurred()) SWIG_fail;
15529 }
15530 if (obj3) {
15531 {
15532 arg4 = &temp4;
15533 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15534 }
15535 }
15536 if (obj4) {
15537 {
15538 arg5 = &temp5;
15539 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15540 }
15541 }
15542 if (obj5) {
15543 arg6 = (long)SWIG_As_long(obj5);
15544 if (PyErr_Occurred()) SWIG_fail;
15545 }
15546 if (obj6) {
15547 {
15548 arg7 = wxString_in_helper(obj6);
15549 if (arg7 == NULL) SWIG_fail;
15550 temp7 = true;
15551 }
15552 }
15553 {
15554 PyThreadState* __tstate = wxPyBeginAllowThreads();
15555 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15556
15557 wxPyEndAllowThreads(__tstate);
15558 if (PyErr_Occurred()) SWIG_fail;
15559 }
15560 {
15561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15562 }
15563 {
15564 if (temp7)
15565 delete arg7;
15566 }
15567 return resultobj;
15568 fail:
15569 {
15570 if (temp7)
15571 delete arg7;
15572 }
15573 return NULL;
15574 }
15575
15576
15577 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15578 PyObject *resultobj;
15579 wxNotebook *arg1 = (wxNotebook *) 0 ;
15580 int result;
15581 PyObject * obj0 = 0 ;
15582 char *kwnames[] = {
15583 (char *) "self", NULL
15584 };
15585
15586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15589 {
15590 PyThreadState* __tstate = wxPyBeginAllowThreads();
15591 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15592
15593 wxPyEndAllowThreads(__tstate);
15594 if (PyErr_Occurred()) SWIG_fail;
15595 }
15596 resultobj = SWIG_From_int((int)result);
15597 return resultobj;
15598 fail:
15599 return NULL;
15600 }
15601
15602
15603 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15604 PyObject *resultobj;
15605 wxNotebook *arg1 = (wxNotebook *) 0 ;
15606 wxSize *arg2 = 0 ;
15607 wxSize temp2 ;
15608 PyObject * obj0 = 0 ;
15609 PyObject * obj1 = 0 ;
15610 char *kwnames[] = {
15611 (char *) "self",(char *) "padding", NULL
15612 };
15613
15614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15617 {
15618 arg2 = &temp2;
15619 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15620 }
15621 {
15622 PyThreadState* __tstate = wxPyBeginAllowThreads();
15623 (arg1)->SetPadding((wxSize const &)*arg2);
15624
15625 wxPyEndAllowThreads(__tstate);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 Py_INCREF(Py_None); resultobj = Py_None;
15629 return resultobj;
15630 fail:
15631 return NULL;
15632 }
15633
15634
15635 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15636 PyObject *resultobj;
15637 wxNotebook *arg1 = (wxNotebook *) 0 ;
15638 wxSize *arg2 = 0 ;
15639 wxSize temp2 ;
15640 PyObject * obj0 = 0 ;
15641 PyObject * obj1 = 0 ;
15642 char *kwnames[] = {
15643 (char *) "self",(char *) "sz", NULL
15644 };
15645
15646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15649 {
15650 arg2 = &temp2;
15651 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15652 }
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 (arg1)->SetTabSize((wxSize const &)*arg2);
15656
15657 wxPyEndAllowThreads(__tstate);
15658 if (PyErr_Occurred()) SWIG_fail;
15659 }
15660 Py_INCREF(Py_None); resultobj = Py_None;
15661 return resultobj;
15662 fail:
15663 return NULL;
15664 }
15665
15666
15667 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15668 PyObject *resultobj;
15669 wxNotebook *arg1 = (wxNotebook *) 0 ;
15670 wxPoint *arg2 = 0 ;
15671 long *arg3 = (long *) 0 ;
15672 int result;
15673 wxPoint temp2 ;
15674 long temp3 ;
15675 int res3 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 PyObject * obj1 = 0 ;
15678 char *kwnames[] = {
15679 (char *) "self",(char *) "pt", NULL
15680 };
15681
15682 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15686 {
15687 arg2 = &temp2;
15688 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15689 }
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15693
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 resultobj = SWIG_From_int((int)result);
15698 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15699 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15707 PyObject *resultobj;
15708 wxNotebook *arg1 = (wxNotebook *) 0 ;
15709 wxSize *arg2 = 0 ;
15710 wxSize result;
15711 wxSize temp2 ;
15712 PyObject * obj0 = 0 ;
15713 PyObject * obj1 = 0 ;
15714 char *kwnames[] = {
15715 (char *) "self",(char *) "sizePage", NULL
15716 };
15717
15718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15721 {
15722 arg2 = &temp2;
15723 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15724 }
15725 {
15726 PyThreadState* __tstate = wxPyBeginAllowThreads();
15727 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15728
15729 wxPyEndAllowThreads(__tstate);
15730 if (PyErr_Occurred()) SWIG_fail;
15731 }
15732 {
15733 wxSize * resultptr;
15734 resultptr = new wxSize((wxSize &) result);
15735 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15736 }
15737 return resultobj;
15738 fail:
15739 return NULL;
15740 }
15741
15742
15743 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15744 PyObject *resultobj;
15745 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15746 wxVisualAttributes result;
15747 PyObject * obj0 = 0 ;
15748 char *kwnames[] = {
15749 (char *) "variant", NULL
15750 };
15751
15752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15753 if (obj0) {
15754 arg1 = (int)SWIG_As_int(obj0);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 {
15758 if (!wxPyCheckForApp()) SWIG_fail;
15759 PyThreadState* __tstate = wxPyBeginAllowThreads();
15760 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15761
15762 wxPyEndAllowThreads(__tstate);
15763 if (PyErr_Occurred()) SWIG_fail;
15764 }
15765 {
15766 wxVisualAttributes * resultptr;
15767 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15769 }
15770 return resultobj;
15771 fail:
15772 return NULL;
15773 }
15774
15775
15776 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15777 PyObject *obj;
15778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15779 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15780 Py_INCREF(obj);
15781 return Py_BuildValue((char *)"");
15782 }
15783 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15784 PyObject *resultobj;
15785 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15786 int arg2 = (int) 0 ;
15787 int arg3 = (int) -1 ;
15788 int arg4 = (int) -1 ;
15789 wxNotebookEvent *result;
15790 PyObject * obj0 = 0 ;
15791 PyObject * obj1 = 0 ;
15792 PyObject * obj2 = 0 ;
15793 PyObject * obj3 = 0 ;
15794 char *kwnames[] = {
15795 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15796 };
15797
15798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15799 if (obj0) {
15800 arg1 = (wxEventType)SWIG_As_int(obj0);
15801 if (PyErr_Occurred()) SWIG_fail;
15802 }
15803 if (obj1) {
15804 arg2 = (int)SWIG_As_int(obj1);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 if (obj2) {
15808 arg3 = (int)SWIG_As_int(obj2);
15809 if (PyErr_Occurred()) SWIG_fail;
15810 }
15811 if (obj3) {
15812 arg4 = (int)SWIG_As_int(obj3);
15813 if (PyErr_Occurred()) SWIG_fail;
15814 }
15815 {
15816 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15818
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15823 return resultobj;
15824 fail:
15825 return NULL;
15826 }
15827
15828
15829 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15830 PyObject *obj;
15831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15832 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15833 Py_INCREF(obj);
15834 return Py_BuildValue((char *)"");
15835 }
15836 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15837 PyObject *resultobj;
15838 wxWindow *arg1 = (wxWindow *) 0 ;
15839 int arg2 = (int) -1 ;
15840 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15841 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15842 wxSize const &arg4_defvalue = wxDefaultSize ;
15843 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15844 long arg5 = (long) 0 ;
15845 wxString const &arg6_defvalue = wxPyEmptyString ;
15846 wxString *arg6 = (wxString *) &arg6_defvalue ;
15847 wxListbook *result;
15848 wxPoint temp3 ;
15849 wxSize temp4 ;
15850 bool temp6 = false ;
15851 PyObject * obj0 = 0 ;
15852 PyObject * obj1 = 0 ;
15853 PyObject * obj2 = 0 ;
15854 PyObject * obj3 = 0 ;
15855 PyObject * obj4 = 0 ;
15856 PyObject * obj5 = 0 ;
15857 char *kwnames[] = {
15858 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15859 };
15860
15861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15864 if (obj1) {
15865 arg2 = (int)SWIG_As_int(obj1);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 if (obj2) {
15869 {
15870 arg3 = &temp3;
15871 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15872 }
15873 }
15874 if (obj3) {
15875 {
15876 arg4 = &temp4;
15877 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15878 }
15879 }
15880 if (obj4) {
15881 arg5 = (long)SWIG_As_long(obj4);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 if (obj5) {
15885 {
15886 arg6 = wxString_in_helper(obj5);
15887 if (arg6 == NULL) SWIG_fail;
15888 temp6 = true;
15889 }
15890 }
15891 {
15892 if (!wxPyCheckForApp()) SWIG_fail;
15893 PyThreadState* __tstate = wxPyBeginAllowThreads();
15894 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15895
15896 wxPyEndAllowThreads(__tstate);
15897 if (PyErr_Occurred()) SWIG_fail;
15898 }
15899 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15900 {
15901 if (temp6)
15902 delete arg6;
15903 }
15904 return resultobj;
15905 fail:
15906 {
15907 if (temp6)
15908 delete arg6;
15909 }
15910 return NULL;
15911 }
15912
15913
15914 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15915 PyObject *resultobj;
15916 wxListbook *result;
15917 char *kwnames[] = {
15918 NULL
15919 };
15920
15921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15922 {
15923 if (!wxPyCheckForApp()) SWIG_fail;
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (wxListbook *)new wxListbook();
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15931 return resultobj;
15932 fail:
15933 return NULL;
15934 }
15935
15936
15937 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxListbook *arg1 = (wxListbook *) 0 ;
15940 wxWindow *arg2 = (wxWindow *) 0 ;
15941 int arg3 = (int) -1 ;
15942 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15943 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15944 wxSize const &arg5_defvalue = wxDefaultSize ;
15945 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15946 long arg6 = (long) 0 ;
15947 wxString const &arg7_defvalue = wxPyEmptyString ;
15948 wxString *arg7 = (wxString *) &arg7_defvalue ;
15949 bool result;
15950 wxPoint temp4 ;
15951 wxSize temp5 ;
15952 bool temp7 = false ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 PyObject * obj2 = 0 ;
15956 PyObject * obj3 = 0 ;
15957 PyObject * obj4 = 0 ;
15958 PyObject * obj5 = 0 ;
15959 PyObject * obj6 = 0 ;
15960 char *kwnames[] = {
15961 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15962 };
15963
15964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15967 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15969 if (obj2) {
15970 arg3 = (int)SWIG_As_int(obj2);
15971 if (PyErr_Occurred()) SWIG_fail;
15972 }
15973 if (obj3) {
15974 {
15975 arg4 = &temp4;
15976 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15977 }
15978 }
15979 if (obj4) {
15980 {
15981 arg5 = &temp5;
15982 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15983 }
15984 }
15985 if (obj5) {
15986 arg6 = (long)SWIG_As_long(obj5);
15987 if (PyErr_Occurred()) SWIG_fail;
15988 }
15989 if (obj6) {
15990 {
15991 arg7 = wxString_in_helper(obj6);
15992 if (arg7 == NULL) SWIG_fail;
15993 temp7 = true;
15994 }
15995 }
15996 {
15997 PyThreadState* __tstate = wxPyBeginAllowThreads();
15998 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15999
16000 wxPyEndAllowThreads(__tstate);
16001 if (PyErr_Occurred()) SWIG_fail;
16002 }
16003 {
16004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16005 }
16006 {
16007 if (temp7)
16008 delete arg7;
16009 }
16010 return resultobj;
16011 fail:
16012 {
16013 if (temp7)
16014 delete arg7;
16015 }
16016 return NULL;
16017 }
16018
16019
16020 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 wxListbook *arg1 = (wxListbook *) 0 ;
16023 bool result;
16024 PyObject * obj0 = 0 ;
16025 char *kwnames[] = {
16026 (char *) "self", NULL
16027 };
16028
16029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
16030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
16031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16032 {
16033 PyThreadState* __tstate = wxPyBeginAllowThreads();
16034 result = (bool)((wxListbook const *)arg1)->IsVertical();
16035
16036 wxPyEndAllowThreads(__tstate);
16037 if (PyErr_Occurred()) SWIG_fail;
16038 }
16039 {
16040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16041 }
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj;
16050 wxListbook *arg1 = (wxListbook *) 0 ;
16051 wxListView *result;
16052 PyObject * obj0 = 0 ;
16053 char *kwnames[] = {
16054 (char *) "self", NULL
16055 };
16056
16057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
16058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
16059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16060 {
16061 PyThreadState* __tstate = wxPyBeginAllowThreads();
16062 result = (wxListView *)(arg1)->GetListView();
16063
16064 wxPyEndAllowThreads(__tstate);
16065 if (PyErr_Occurred()) SWIG_fail;
16066 }
16067 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
16068 return resultobj;
16069 fail:
16070 return NULL;
16071 }
16072
16073
16074 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
16075 PyObject *obj;
16076 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16077 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
16078 Py_INCREF(obj);
16079 return Py_BuildValue((char *)"");
16080 }
16081 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj;
16083 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16084 int arg2 = (int) 0 ;
16085 int arg3 = (int) -1 ;
16086 int arg4 = (int) -1 ;
16087 wxListbookEvent *result;
16088 PyObject * obj0 = 0 ;
16089 PyObject * obj1 = 0 ;
16090 PyObject * obj2 = 0 ;
16091 PyObject * obj3 = 0 ;
16092 char *kwnames[] = {
16093 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16094 };
16095
16096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16097 if (obj0) {
16098 arg1 = (wxEventType)SWIG_As_int(obj0);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 }
16101 if (obj1) {
16102 arg2 = (int)SWIG_As_int(obj1);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 }
16105 if (obj2) {
16106 arg3 = (int)SWIG_As_int(obj2);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 if (obj3) {
16110 arg4 = (int)SWIG_As_int(obj3);
16111 if (PyErr_Occurred()) SWIG_fail;
16112 }
16113 {
16114 PyThreadState* __tstate = wxPyBeginAllowThreads();
16115 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
16116
16117 wxPyEndAllowThreads(__tstate);
16118 if (PyErr_Occurred()) SWIG_fail;
16119 }
16120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
16121 return resultobj;
16122 fail:
16123 return NULL;
16124 }
16125
16126
16127 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
16128 PyObject *obj;
16129 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16130 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
16131 Py_INCREF(obj);
16132 return Py_BuildValue((char *)"");
16133 }
16134 static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16135 PyObject *resultobj;
16136 wxWindow *arg1 = (wxWindow *) 0 ;
16137 int arg2 ;
16138 wxPoint const &arg3_defvalue = wxDefaultPosition ;
16139 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
16140 wxSize const &arg4_defvalue = wxDefaultSize ;
16141 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
16142 long arg5 = (long) 0 ;
16143 wxString const &arg6_defvalue = wxPyEmptyString ;
16144 wxString *arg6 = (wxString *) &arg6_defvalue ;
16145 wxChoicebook *result;
16146 wxPoint temp3 ;
16147 wxSize temp4 ;
16148 bool temp6 = false ;
16149 PyObject * obj0 = 0 ;
16150 PyObject * obj1 = 0 ;
16151 PyObject * obj2 = 0 ;
16152 PyObject * obj3 = 0 ;
16153 PyObject * obj4 = 0 ;
16154 PyObject * obj5 = 0 ;
16155 char *kwnames[] = {
16156 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16157 };
16158
16159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
16160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16162 arg2 = (int)SWIG_As_int(obj1);
16163 if (PyErr_Occurred()) SWIG_fail;
16164 if (obj2) {
16165 {
16166 arg3 = &temp3;
16167 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16168 }
16169 }
16170 if (obj3) {
16171 {
16172 arg4 = &temp4;
16173 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
16174 }
16175 }
16176 if (obj4) {
16177 arg5 = (long)SWIG_As_long(obj4);
16178 if (PyErr_Occurred()) SWIG_fail;
16179 }
16180 if (obj5) {
16181 {
16182 arg6 = wxString_in_helper(obj5);
16183 if (arg6 == NULL) SWIG_fail;
16184 temp6 = true;
16185 }
16186 }
16187 {
16188 if (!wxPyCheckForApp()) SWIG_fail;
16189 PyThreadState* __tstate = wxPyBeginAllowThreads();
16190 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
16191
16192 wxPyEndAllowThreads(__tstate);
16193 if (PyErr_Occurred()) SWIG_fail;
16194 }
16195 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16196 {
16197 if (temp6)
16198 delete arg6;
16199 }
16200 return resultobj;
16201 fail:
16202 {
16203 if (temp6)
16204 delete arg6;
16205 }
16206 return NULL;
16207 }
16208
16209
16210 static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16211 PyObject *resultobj;
16212 wxChoicebook *result;
16213 char *kwnames[] = {
16214 NULL
16215 };
16216
16217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail;
16218 {
16219 if (!wxPyCheckForApp()) SWIG_fail;
16220 PyThreadState* __tstate = wxPyBeginAllowThreads();
16221 result = (wxChoicebook *)new wxChoicebook();
16222
16223 wxPyEndAllowThreads(__tstate);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 }
16226 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16227 return resultobj;
16228 fail:
16229 return NULL;
16230 }
16231
16232
16233 static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
16234 PyObject *resultobj;
16235 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16236 wxWindow *arg2 = (wxWindow *) 0 ;
16237 int arg3 ;
16238 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16239 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16240 wxSize const &arg5_defvalue = wxDefaultSize ;
16241 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16242 long arg6 = (long) 0 ;
16243 wxString const &arg7_defvalue = wxPyEmptyString ;
16244 wxString *arg7 = (wxString *) &arg7_defvalue ;
16245 bool result;
16246 wxPoint temp4 ;
16247 wxSize temp5 ;
16248 bool temp7 = false ;
16249 PyObject * obj0 = 0 ;
16250 PyObject * obj1 = 0 ;
16251 PyObject * obj2 = 0 ;
16252 PyObject * obj3 = 0 ;
16253 PyObject * obj4 = 0 ;
16254 PyObject * obj5 = 0 ;
16255 PyObject * obj6 = 0 ;
16256 char *kwnames[] = {
16257 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16258 };
16259
16260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16263 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16265 arg3 = (int)SWIG_As_int(obj2);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 if (obj3) {
16268 {
16269 arg4 = &temp4;
16270 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16271 }
16272 }
16273 if (obj4) {
16274 {
16275 arg5 = &temp5;
16276 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16277 }
16278 }
16279 if (obj5) {
16280 arg6 = (long)SWIG_As_long(obj5);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 if (obj6) {
16284 {
16285 arg7 = wxString_in_helper(obj6);
16286 if (arg7 == NULL) SWIG_fail;
16287 temp7 = true;
16288 }
16289 }
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
16293
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 {
16298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16299 }
16300 {
16301 if (temp7)
16302 delete arg7;
16303 }
16304 return resultobj;
16305 fail:
16306 {
16307 if (temp7)
16308 delete arg7;
16309 }
16310 return NULL;
16311 }
16312
16313
16314 static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
16315 PyObject *resultobj;
16316 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16317 bool result;
16318 PyObject * obj0 = 0 ;
16319 char *kwnames[] = {
16320 (char *) "self", NULL
16321 };
16322
16323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail;
16324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 result = (bool)((wxChoicebook const *)arg1)->IsVertical();
16329
16330 wxPyEndAllowThreads(__tstate);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 }
16333 {
16334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16335 }
16336 return resultobj;
16337 fail:
16338 return NULL;
16339 }
16340
16341
16342 static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16345 bool result;
16346 PyObject * obj0 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (bool)(arg1)->DeleteAllPages();
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 {
16362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16363 }
16364 return resultobj;
16365 fail:
16366 return NULL;
16367 }
16368
16369
16370 static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) {
16371 PyObject *obj;
16372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16373 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj);
16374 Py_INCREF(obj);
16375 return Py_BuildValue((char *)"");
16376 }
16377 static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16378 PyObject *resultobj;
16379 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16380 int arg2 = (int) 0 ;
16381 int arg3 = (int) -1 ;
16382 int arg4 = (int) -1 ;
16383 wxChoicebookEvent *result;
16384 PyObject * obj0 = 0 ;
16385 PyObject * obj1 = 0 ;
16386 PyObject * obj2 = 0 ;
16387 PyObject * obj3 = 0 ;
16388 char *kwnames[] = {
16389 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16390 };
16391
16392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16393 if (obj0) {
16394 arg1 = (wxEventType)SWIG_As_int(obj0);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 if (obj1) {
16398 arg2 = (int)SWIG_As_int(obj1);
16399 if (PyErr_Occurred()) SWIG_fail;
16400 }
16401 if (obj2) {
16402 arg3 = (int)SWIG_As_int(obj2);
16403 if (PyErr_Occurred()) SWIG_fail;
16404 }
16405 if (obj3) {
16406 arg4 = (int)SWIG_As_int(obj3);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
16412
16413 wxPyEndAllowThreads(__tstate);
16414 if (PyErr_Occurred()) SWIG_fail;
16415 }
16416 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1);
16417 return resultobj;
16418 fail:
16419 return NULL;
16420 }
16421
16422
16423 static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) {
16424 PyObject *obj;
16425 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16426 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj);
16427 Py_INCREF(obj);
16428 return Py_BuildValue((char *)"");
16429 }
16430 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16431 PyObject *resultobj;
16432 wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
16433 wxBookCtrlSizer *result;
16434 PyObject * obj0 = 0 ;
16435 char *kwnames[] = {
16436 (char *) "nb", NULL
16437 };
16438
16439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
16440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlBase,
16441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
16445
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
16450 return resultobj;
16451 fail:
16452 return NULL;
16453 }
16454
16455
16456 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj;
16458 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16459 PyObject * obj0 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16467 {
16468 PyThreadState* __tstate = wxPyBeginAllowThreads();
16469 (arg1)->RecalcSizes();
16470
16471 wxPyEndAllowThreads(__tstate);
16472 if (PyErr_Occurred()) SWIG_fail;
16473 }
16474 Py_INCREF(Py_None); resultobj = Py_None;
16475 return resultobj;
16476 fail:
16477 return NULL;
16478 }
16479
16480
16481 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16484 wxSize result;
16485 PyObject * obj0 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (arg1)->CalcMin();
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 wxSize * resultptr;
16502 resultptr = new wxSize((wxSize &) result);
16503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16504 }
16505 return resultobj;
16506 fail:
16507 return NULL;
16508 }
16509
16510
16511 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16512 PyObject *resultobj;
16513 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16514 wxBookCtrlBase *result;
16515 PyObject * obj0 = 0 ;
16516 char *kwnames[] = {
16517 (char *) "self", NULL
16518 };
16519
16520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16523 {
16524 PyThreadState* __tstate = wxPyBeginAllowThreads();
16525 result = (wxBookCtrlBase *)(arg1)->GetControl();
16526
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlBase, 0);
16531 return resultobj;
16532 fail:
16533 return NULL;
16534 }
16535
16536
16537 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16538 PyObject *obj;
16539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16540 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16541 Py_INCREF(obj);
16542 return Py_BuildValue((char *)"");
16543 }
16544 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16545 PyObject *resultobj;
16546 wxNotebook *arg1 = (wxNotebook *) 0 ;
16547 wxNotebookSizer *result;
16548 PyObject * obj0 = 0 ;
16549 char *kwnames[] = {
16550 (char *) "nb", NULL
16551 };
16552
16553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16556 {
16557 PyThreadState* __tstate = wxPyBeginAllowThreads();
16558 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16559
16560 wxPyEndAllowThreads(__tstate);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16564 return resultobj;
16565 fail:
16566 return NULL;
16567 }
16568
16569
16570 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16571 PyObject *resultobj;
16572 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16573 PyObject * obj0 = 0 ;
16574 char *kwnames[] = {
16575 (char *) "self", NULL
16576 };
16577
16578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16581 {
16582 PyThreadState* __tstate = wxPyBeginAllowThreads();
16583 (arg1)->RecalcSizes();
16584
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 Py_INCREF(Py_None); resultobj = Py_None;
16589 return resultobj;
16590 fail:
16591 return NULL;
16592 }
16593
16594
16595 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16596 PyObject *resultobj;
16597 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16598 wxSize result;
16599 PyObject * obj0 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "self", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16607 {
16608 PyThreadState* __tstate = wxPyBeginAllowThreads();
16609 result = (arg1)->CalcMin();
16610
16611 wxPyEndAllowThreads(__tstate);
16612 if (PyErr_Occurred()) SWIG_fail;
16613 }
16614 {
16615 wxSize * resultptr;
16616 resultptr = new wxSize((wxSize &) result);
16617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16618 }
16619 return resultobj;
16620 fail:
16621 return NULL;
16622 }
16623
16624
16625 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16626 PyObject *resultobj;
16627 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16628 wxNotebook *result;
16629 PyObject * obj0 = 0 ;
16630 char *kwnames[] = {
16631 (char *) "self", NULL
16632 };
16633
16634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16637 {
16638 PyThreadState* __tstate = wxPyBeginAllowThreads();
16639 result = (wxNotebook *)(arg1)->GetNotebook();
16640
16641 wxPyEndAllowThreads(__tstate);
16642 if (PyErr_Occurred()) SWIG_fail;
16643 }
16644 {
16645 resultobj = wxPyMake_wxObject(result, 0);
16646 }
16647 return resultobj;
16648 fail:
16649 return NULL;
16650 }
16651
16652
16653 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16654 PyObject *obj;
16655 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16656 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16657 Py_INCREF(obj);
16658 return Py_BuildValue((char *)"");
16659 }
16660 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16661 PyObject *resultobj;
16662 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16663 int result;
16664 PyObject * obj0 = 0 ;
16665 char *kwnames[] = {
16666 (char *) "self", NULL
16667 };
16668
16669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16672 {
16673 PyThreadState* __tstate = wxPyBeginAllowThreads();
16674 result = (int)(arg1)->GetId();
16675
16676 wxPyEndAllowThreads(__tstate);
16677 if (PyErr_Occurred()) SWIG_fail;
16678 }
16679 resultobj = SWIG_From_int((int)result);
16680 return resultobj;
16681 fail:
16682 return NULL;
16683 }
16684
16685
16686 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16687 PyObject *resultobj;
16688 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16689 wxControl *result;
16690 PyObject * obj0 = 0 ;
16691 char *kwnames[] = {
16692 (char *) "self", NULL
16693 };
16694
16695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 result = (wxControl *)(arg1)->GetControl();
16701
16702 wxPyEndAllowThreads(__tstate);
16703 if (PyErr_Occurred()) SWIG_fail;
16704 }
16705 {
16706 resultobj = wxPyMake_wxObject(result, 0);
16707 }
16708 return resultobj;
16709 fail:
16710 return NULL;
16711 }
16712
16713
16714 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16717 wxToolBarBase *result;
16718 PyObject * obj0 = 0 ;
16719 char *kwnames[] = {
16720 (char *) "self", NULL
16721 };
16722
16723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16726 {
16727 PyThreadState* __tstate = wxPyBeginAllowThreads();
16728 result = (wxToolBarBase *)(arg1)->GetToolBar();
16729
16730 wxPyEndAllowThreads(__tstate);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 }
16733 {
16734 resultobj = wxPyMake_wxObject(result, 0);
16735 }
16736 return resultobj;
16737 fail:
16738 return NULL;
16739 }
16740
16741
16742 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16743 PyObject *resultobj;
16744 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16745 int result;
16746 PyObject * obj0 = 0 ;
16747 char *kwnames[] = {
16748 (char *) "self", NULL
16749 };
16750
16751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16754 {
16755 PyThreadState* __tstate = wxPyBeginAllowThreads();
16756 result = (int)(arg1)->IsButton();
16757
16758 wxPyEndAllowThreads(__tstate);
16759 if (PyErr_Occurred()) SWIG_fail;
16760 }
16761 resultobj = SWIG_From_int((int)result);
16762 return resultobj;
16763 fail:
16764 return NULL;
16765 }
16766
16767
16768 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16769 PyObject *resultobj;
16770 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16771 int result;
16772 PyObject * obj0 = 0 ;
16773 char *kwnames[] = {
16774 (char *) "self", NULL
16775 };
16776
16777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (int)(arg1)->IsControl();
16783
16784 wxPyEndAllowThreads(__tstate);
16785 if (PyErr_Occurred()) SWIG_fail;
16786 }
16787 resultobj = SWIG_From_int((int)result);
16788 return resultobj;
16789 fail:
16790 return NULL;
16791 }
16792
16793
16794 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16795 PyObject *resultobj;
16796 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16797 int result;
16798 PyObject * obj0 = 0 ;
16799 char *kwnames[] = {
16800 (char *) "self", NULL
16801 };
16802
16803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16806 {
16807 PyThreadState* __tstate = wxPyBeginAllowThreads();
16808 result = (int)(arg1)->IsSeparator();
16809
16810 wxPyEndAllowThreads(__tstate);
16811 if (PyErr_Occurred()) SWIG_fail;
16812 }
16813 resultobj = SWIG_From_int((int)result);
16814 return resultobj;
16815 fail:
16816 return NULL;
16817 }
16818
16819
16820 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16821 PyObject *resultobj;
16822 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16823 int result;
16824 PyObject * obj0 = 0 ;
16825 char *kwnames[] = {
16826 (char *) "self", NULL
16827 };
16828
16829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16832 {
16833 PyThreadState* __tstate = wxPyBeginAllowThreads();
16834 result = (int)(arg1)->GetStyle();
16835
16836 wxPyEndAllowThreads(__tstate);
16837 if (PyErr_Occurred()) SWIG_fail;
16838 }
16839 resultobj = SWIG_From_int((int)result);
16840 return resultobj;
16841 fail:
16842 return NULL;
16843 }
16844
16845
16846 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16847 PyObject *resultobj;
16848 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16849 int result;
16850 PyObject * obj0 = 0 ;
16851 char *kwnames[] = {
16852 (char *) "self", NULL
16853 };
16854
16855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16858 {
16859 PyThreadState* __tstate = wxPyBeginAllowThreads();
16860 result = (int)(arg1)->GetKind();
16861
16862 wxPyEndAllowThreads(__tstate);
16863 if (PyErr_Occurred()) SWIG_fail;
16864 }
16865 resultobj = SWIG_From_int((int)result);
16866 return resultobj;
16867 fail:
16868 return NULL;
16869 }
16870
16871
16872 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16873 PyObject *resultobj;
16874 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16875 bool result;
16876 PyObject * obj0 = 0 ;
16877 char *kwnames[] = {
16878 (char *) "self", NULL
16879 };
16880
16881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16884 {
16885 PyThreadState* __tstate = wxPyBeginAllowThreads();
16886 result = (bool)(arg1)->IsEnabled();
16887
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 {
16892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16893 }
16894 return resultobj;
16895 fail:
16896 return NULL;
16897 }
16898
16899
16900 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16901 PyObject *resultobj;
16902 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16903 bool result;
16904 PyObject * obj0 = 0 ;
16905 char *kwnames[] = {
16906 (char *) "self", NULL
16907 };
16908
16909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16912 {
16913 PyThreadState* __tstate = wxPyBeginAllowThreads();
16914 result = (bool)(arg1)->IsToggled();
16915
16916 wxPyEndAllowThreads(__tstate);
16917 if (PyErr_Occurred()) SWIG_fail;
16918 }
16919 {
16920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16921 }
16922 return resultobj;
16923 fail:
16924 return NULL;
16925 }
16926
16927
16928 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16931 bool result;
16932 PyObject * obj0 = 0 ;
16933 char *kwnames[] = {
16934 (char *) "self", NULL
16935 };
16936
16937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 result = (bool)(arg1)->CanBeToggled();
16943
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 {
16948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16949 }
16950 return resultobj;
16951 fail:
16952 return NULL;
16953 }
16954
16955
16956 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16957 PyObject *resultobj;
16958 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16959 wxBitmap *result;
16960 PyObject * obj0 = 0 ;
16961 char *kwnames[] = {
16962 (char *) "self", NULL
16963 };
16964
16965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16968 {
16969 PyThreadState* __tstate = wxPyBeginAllowThreads();
16970 {
16971 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16972 result = (wxBitmap *) &_result_ref;
16973 }
16974
16975 wxPyEndAllowThreads(__tstate);
16976 if (PyErr_Occurred()) SWIG_fail;
16977 }
16978 {
16979 wxBitmap* resultptr = new wxBitmap(*result);
16980 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16981 }
16982 return resultobj;
16983 fail:
16984 return NULL;
16985 }
16986
16987
16988 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16989 PyObject *resultobj;
16990 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16991 wxBitmap *result;
16992 PyObject * obj0 = 0 ;
16993 char *kwnames[] = {
16994 (char *) "self", NULL
16995 };
16996
16997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17000 {
17001 PyThreadState* __tstate = wxPyBeginAllowThreads();
17002 {
17003 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
17004 result = (wxBitmap *) &_result_ref;
17005 }
17006
17007 wxPyEndAllowThreads(__tstate);
17008 if (PyErr_Occurred()) SWIG_fail;
17009 }
17010 {
17011 wxBitmap* resultptr = new wxBitmap(*result);
17012 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17013 }
17014 return resultobj;
17015 fail:
17016 return NULL;
17017 }
17018
17019
17020 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17021 PyObject *resultobj;
17022 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17023 wxBitmap result;
17024 PyObject * obj0 = 0 ;
17025 char *kwnames[] = {
17026 (char *) "self", NULL
17027 };
17028
17029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
17030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17032 {
17033 PyThreadState* __tstate = wxPyBeginAllowThreads();
17034 result = (arg1)->GetBitmap();
17035
17036 wxPyEndAllowThreads(__tstate);
17037 if (PyErr_Occurred()) SWIG_fail;
17038 }
17039 {
17040 wxBitmap * resultptr;
17041 resultptr = new wxBitmap((wxBitmap &) result);
17042 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
17043 }
17044 return resultobj;
17045 fail:
17046 return NULL;
17047 }
17048
17049
17050 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17051 PyObject *resultobj;
17052 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17053 wxString result;
17054 PyObject * obj0 = 0 ;
17055 char *kwnames[] = {
17056 (char *) "self", NULL
17057 };
17058
17059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
17060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (arg1)->GetLabel();
17065
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 {
17070 #if wxUSE_UNICODE
17071 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17072 #else
17073 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17074 #endif
17075 }
17076 return resultobj;
17077 fail:
17078 return NULL;
17079 }
17080
17081
17082 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17083 PyObject *resultobj;
17084 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17085 wxString result;
17086 PyObject * obj0 = 0 ;
17087 char *kwnames[] = {
17088 (char *) "self", NULL
17089 };
17090
17091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
17092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17094 {
17095 PyThreadState* __tstate = wxPyBeginAllowThreads();
17096 result = (arg1)->GetShortHelp();
17097
17098 wxPyEndAllowThreads(__tstate);
17099 if (PyErr_Occurred()) SWIG_fail;
17100 }
17101 {
17102 #if wxUSE_UNICODE
17103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17104 #else
17105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17106 #endif
17107 }
17108 return resultobj;
17109 fail:
17110 return NULL;
17111 }
17112
17113
17114 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17115 PyObject *resultobj;
17116 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17117 wxString result;
17118 PyObject * obj0 = 0 ;
17119 char *kwnames[] = {
17120 (char *) "self", NULL
17121 };
17122
17123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
17124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17126 {
17127 PyThreadState* __tstate = wxPyBeginAllowThreads();
17128 result = (arg1)->GetLongHelp();
17129
17130 wxPyEndAllowThreads(__tstate);
17131 if (PyErr_Occurred()) SWIG_fail;
17132 }
17133 {
17134 #if wxUSE_UNICODE
17135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17136 #else
17137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17138 #endif
17139 }
17140 return resultobj;
17141 fail:
17142 return NULL;
17143 }
17144
17145
17146 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj;
17148 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17149 bool arg2 ;
17150 bool result;
17151 PyObject * obj0 = 0 ;
17152 PyObject * obj1 = 0 ;
17153 char *kwnames[] = {
17154 (char *) "self",(char *) "enable", NULL
17155 };
17156
17157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
17158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17160 arg2 = (bool)SWIG_As_bool(obj1);
17161 if (PyErr_Occurred()) SWIG_fail;
17162 {
17163 PyThreadState* __tstate = wxPyBeginAllowThreads();
17164 result = (bool)(arg1)->Enable(arg2);
17165
17166 wxPyEndAllowThreads(__tstate);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 }
17169 {
17170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17171 }
17172 return resultobj;
17173 fail:
17174 return NULL;
17175 }
17176
17177
17178 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj;
17180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17181 PyObject * obj0 = 0 ;
17182 char *kwnames[] = {
17183 (char *) "self", NULL
17184 };
17185
17186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
17187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17189 {
17190 PyThreadState* __tstate = wxPyBeginAllowThreads();
17191 (arg1)->Toggle();
17192
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 Py_INCREF(Py_None); resultobj = Py_None;
17197 return resultobj;
17198 fail:
17199 return NULL;
17200 }
17201
17202
17203 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17204 PyObject *resultobj;
17205 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17206 bool arg2 ;
17207 bool result;
17208 PyObject * obj0 = 0 ;
17209 PyObject * obj1 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "self",(char *) "toggle", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
17215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17217 arg2 = (bool)SWIG_As_bool(obj1);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 {
17220 PyThreadState* __tstate = wxPyBeginAllowThreads();
17221 result = (bool)(arg1)->SetToggle(arg2);
17222
17223 wxPyEndAllowThreads(__tstate);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 {
17227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17228 }
17229 return resultobj;
17230 fail:
17231 return NULL;
17232 }
17233
17234
17235 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17236 PyObject *resultobj;
17237 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17238 wxString *arg2 = 0 ;
17239 bool result;
17240 bool temp2 = false ;
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 char *kwnames[] = {
17244 (char *) "self",(char *) "help", NULL
17245 };
17246
17247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
17248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17250 {
17251 arg2 = wxString_in_helper(obj1);
17252 if (arg2 == NULL) SWIG_fail;
17253 temp2 = true;
17254 }
17255 {
17256 PyThreadState* __tstate = wxPyBeginAllowThreads();
17257 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
17258
17259 wxPyEndAllowThreads(__tstate);
17260 if (PyErr_Occurred()) SWIG_fail;
17261 }
17262 {
17263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17264 }
17265 {
17266 if (temp2)
17267 delete arg2;
17268 }
17269 return resultobj;
17270 fail:
17271 {
17272 if (temp2)
17273 delete arg2;
17274 }
17275 return NULL;
17276 }
17277
17278
17279 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17280 PyObject *resultobj;
17281 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17282 wxString *arg2 = 0 ;
17283 bool result;
17284 bool temp2 = false ;
17285 PyObject * obj0 = 0 ;
17286 PyObject * obj1 = 0 ;
17287 char *kwnames[] = {
17288 (char *) "self",(char *) "help", NULL
17289 };
17290
17291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
17292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17294 {
17295 arg2 = wxString_in_helper(obj1);
17296 if (arg2 == NULL) SWIG_fail;
17297 temp2 = true;
17298 }
17299 {
17300 PyThreadState* __tstate = wxPyBeginAllowThreads();
17301 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
17302
17303 wxPyEndAllowThreads(__tstate);
17304 if (PyErr_Occurred()) SWIG_fail;
17305 }
17306 {
17307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17308 }
17309 {
17310 if (temp2)
17311 delete arg2;
17312 }
17313 return resultobj;
17314 fail:
17315 {
17316 if (temp2)
17317 delete arg2;
17318 }
17319 return NULL;
17320 }
17321
17322
17323 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17324 PyObject *resultobj;
17325 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17326 wxBitmap *arg2 = 0 ;
17327 PyObject * obj0 = 0 ;
17328 PyObject * obj1 = 0 ;
17329 char *kwnames[] = {
17330 (char *) "self",(char *) "bmp", NULL
17331 };
17332
17333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
17334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17336 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17337 SWIG_POINTER_EXCEPTION | 0)) == -1)
17338 SWIG_fail;
17339 if (arg2 == NULL) {
17340 PyErr_SetString(PyExc_TypeError,"null reference");
17341 SWIG_fail;
17342 }
17343 {
17344 PyThreadState* __tstate = wxPyBeginAllowThreads();
17345 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
17346
17347 wxPyEndAllowThreads(__tstate);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 }
17350 Py_INCREF(Py_None); resultobj = Py_None;
17351 return resultobj;
17352 fail:
17353 return NULL;
17354 }
17355
17356
17357 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17358 PyObject *resultobj;
17359 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17360 wxBitmap *arg2 = 0 ;
17361 PyObject * obj0 = 0 ;
17362 PyObject * obj1 = 0 ;
17363 char *kwnames[] = {
17364 (char *) "self",(char *) "bmp", NULL
17365 };
17366
17367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
17368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17371 SWIG_POINTER_EXCEPTION | 0)) == -1)
17372 SWIG_fail;
17373 if (arg2 == NULL) {
17374 PyErr_SetString(PyExc_TypeError,"null reference");
17375 SWIG_fail;
17376 }
17377 {
17378 PyThreadState* __tstate = wxPyBeginAllowThreads();
17379 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
17380
17381 wxPyEndAllowThreads(__tstate);
17382 if (PyErr_Occurred()) SWIG_fail;
17383 }
17384 Py_INCREF(Py_None); resultobj = Py_None;
17385 return resultobj;
17386 fail:
17387 return NULL;
17388 }
17389
17390
17391 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17392 PyObject *resultobj;
17393 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17394 wxString *arg2 = 0 ;
17395 bool temp2 = false ;
17396 PyObject * obj0 = 0 ;
17397 PyObject * obj1 = 0 ;
17398 char *kwnames[] = {
17399 (char *) "self",(char *) "label", NULL
17400 };
17401
17402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
17403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17405 {
17406 arg2 = wxString_in_helper(obj1);
17407 if (arg2 == NULL) SWIG_fail;
17408 temp2 = true;
17409 }
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 (arg1)->SetLabel((wxString const &)*arg2);
17413
17414 wxPyEndAllowThreads(__tstate);
17415 if (PyErr_Occurred()) SWIG_fail;
17416 }
17417 Py_INCREF(Py_None); resultobj = Py_None;
17418 {
17419 if (temp2)
17420 delete arg2;
17421 }
17422 return resultobj;
17423 fail:
17424 {
17425 if (temp2)
17426 delete arg2;
17427 }
17428 return NULL;
17429 }
17430
17431
17432 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
17433 PyObject *resultobj;
17434 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17435 PyObject * obj0 = 0 ;
17436 char *kwnames[] = {
17437 (char *) "self", NULL
17438 };
17439
17440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
17441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17443 {
17444 PyThreadState* __tstate = wxPyBeginAllowThreads();
17445 (arg1)->Detach();
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_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
17458 PyObject *resultobj;
17459 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17460 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
17461 PyObject * obj0 = 0 ;
17462 PyObject * obj1 = 0 ;
17463 char *kwnames[] = {
17464 (char *) "self",(char *) "tbar", NULL
17465 };
17466
17467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
17468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
17471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17472 {
17473 PyThreadState* __tstate = wxPyBeginAllowThreads();
17474 (arg1)->Attach(arg2);
17475
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 Py_INCREF(Py_None); resultobj = Py_None;
17480 return resultobj;
17481 fail:
17482 return NULL;
17483 }
17484
17485
17486 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj;
17488 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17489 PyObject *result;
17490 PyObject * obj0 = 0 ;
17491 char *kwnames[] = {
17492 (char *) "self", NULL
17493 };
17494
17495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17498 {
17499 PyThreadState* __tstate = wxPyBeginAllowThreads();
17500 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17501
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = result;
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj;
17514 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17515 PyObject *arg2 = (PyObject *) 0 ;
17516 PyObject * obj0 = 0 ;
17517 PyObject * obj1 = 0 ;
17518 char *kwnames[] = {
17519 (char *) "self",(char *) "clientData", NULL
17520 };
17521
17522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17525 arg2 = obj1;
17526 {
17527 PyThreadState* __tstate = wxPyBeginAllowThreads();
17528 wxToolBarToolBase_SetClientData(arg1,arg2);
17529
17530 wxPyEndAllowThreads(__tstate);
17531 if (PyErr_Occurred()) SWIG_fail;
17532 }
17533 Py_INCREF(Py_None); resultobj = Py_None;
17534 return resultobj;
17535 fail:
17536 return NULL;
17537 }
17538
17539
17540 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17541 PyObject *obj;
17542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17543 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17544 Py_INCREF(obj);
17545 return Py_BuildValue((char *)"");
17546 }
17547 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17548 PyObject *resultobj;
17549 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17550 int arg2 ;
17551 wxString *arg3 = 0 ;
17552 wxBitmap *arg4 = 0 ;
17553 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17554 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17555 int arg6 = (int) wxITEM_NORMAL ;
17556 wxString const &arg7_defvalue = wxPyEmptyString ;
17557 wxString *arg7 = (wxString *) &arg7_defvalue ;
17558 wxString const &arg8_defvalue = wxPyEmptyString ;
17559 wxString *arg8 = (wxString *) &arg8_defvalue ;
17560 PyObject *arg9 = (PyObject *) NULL ;
17561 wxToolBarToolBase *result;
17562 bool temp3 = false ;
17563 bool temp7 = false ;
17564 bool temp8 = false ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 PyObject * obj2 = 0 ;
17568 PyObject * obj3 = 0 ;
17569 PyObject * obj4 = 0 ;
17570 PyObject * obj5 = 0 ;
17571 PyObject * obj6 = 0 ;
17572 PyObject * obj7 = 0 ;
17573 PyObject * obj8 = 0 ;
17574 char *kwnames[] = {
17575 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17576 };
17577
17578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17581 arg2 = (int)SWIG_As_int(obj1);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 {
17584 arg3 = wxString_in_helper(obj2);
17585 if (arg3 == NULL) SWIG_fail;
17586 temp3 = true;
17587 }
17588 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17589 SWIG_POINTER_EXCEPTION | 0)) == -1)
17590 SWIG_fail;
17591 if (arg4 == NULL) {
17592 PyErr_SetString(PyExc_TypeError,"null reference");
17593 SWIG_fail;
17594 }
17595 if (obj4) {
17596 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17597 SWIG_POINTER_EXCEPTION | 0)) == -1)
17598 SWIG_fail;
17599 if (arg5 == NULL) {
17600 PyErr_SetString(PyExc_TypeError,"null reference");
17601 SWIG_fail;
17602 }
17603 }
17604 if (obj5) {
17605 arg6 = (int)SWIG_As_int(obj5);
17606 if (PyErr_Occurred()) SWIG_fail;
17607 }
17608 if (obj6) {
17609 {
17610 arg7 = wxString_in_helper(obj6);
17611 if (arg7 == NULL) SWIG_fail;
17612 temp7 = true;
17613 }
17614 }
17615 if (obj7) {
17616 {
17617 arg8 = wxString_in_helper(obj7);
17618 if (arg8 == NULL) SWIG_fail;
17619 temp8 = true;
17620 }
17621 }
17622 if (obj8) {
17623 arg9 = obj8;
17624 }
17625 {
17626 PyThreadState* __tstate = wxPyBeginAllowThreads();
17627 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17628
17629 wxPyEndAllowThreads(__tstate);
17630 if (PyErr_Occurred()) SWIG_fail;
17631 }
17632 {
17633 resultobj = wxPyMake_wxObject(result, 0);
17634 }
17635 {
17636 if (temp3)
17637 delete arg3;
17638 }
17639 {
17640 if (temp7)
17641 delete arg7;
17642 }
17643 {
17644 if (temp8)
17645 delete arg8;
17646 }
17647 return resultobj;
17648 fail:
17649 {
17650 if (temp3)
17651 delete arg3;
17652 }
17653 {
17654 if (temp7)
17655 delete arg7;
17656 }
17657 {
17658 if (temp8)
17659 delete arg8;
17660 }
17661 return NULL;
17662 }
17663
17664
17665 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj;
17667 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17668 size_t arg2 ;
17669 int arg3 ;
17670 wxString *arg4 = 0 ;
17671 wxBitmap *arg5 = 0 ;
17672 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17673 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17674 int arg7 = (int) wxITEM_NORMAL ;
17675 wxString const &arg8_defvalue = wxPyEmptyString ;
17676 wxString *arg8 = (wxString *) &arg8_defvalue ;
17677 wxString const &arg9_defvalue = wxPyEmptyString ;
17678 wxString *arg9 = (wxString *) &arg9_defvalue ;
17679 PyObject *arg10 = (PyObject *) NULL ;
17680 wxToolBarToolBase *result;
17681 bool temp4 = false ;
17682 bool temp8 = false ;
17683 bool temp9 = false ;
17684 PyObject * obj0 = 0 ;
17685 PyObject * obj1 = 0 ;
17686 PyObject * obj2 = 0 ;
17687 PyObject * obj3 = 0 ;
17688 PyObject * obj4 = 0 ;
17689 PyObject * obj5 = 0 ;
17690 PyObject * obj6 = 0 ;
17691 PyObject * obj7 = 0 ;
17692 PyObject * obj8 = 0 ;
17693 PyObject * obj9 = 0 ;
17694 char *kwnames[] = {
17695 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17696 };
17697
17698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17701 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 arg3 = (int)SWIG_As_int(obj2);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 {
17706 arg4 = wxString_in_helper(obj3);
17707 if (arg4 == NULL) SWIG_fail;
17708 temp4 = true;
17709 }
17710 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17711 SWIG_POINTER_EXCEPTION | 0)) == -1)
17712 SWIG_fail;
17713 if (arg5 == NULL) {
17714 PyErr_SetString(PyExc_TypeError,"null reference");
17715 SWIG_fail;
17716 }
17717 if (obj5) {
17718 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17719 SWIG_POINTER_EXCEPTION | 0)) == -1)
17720 SWIG_fail;
17721 if (arg6 == NULL) {
17722 PyErr_SetString(PyExc_TypeError,"null reference");
17723 SWIG_fail;
17724 }
17725 }
17726 if (obj6) {
17727 arg7 = (int)SWIG_As_int(obj6);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 }
17730 if (obj7) {
17731 {
17732 arg8 = wxString_in_helper(obj7);
17733 if (arg8 == NULL) SWIG_fail;
17734 temp8 = true;
17735 }
17736 }
17737 if (obj8) {
17738 {
17739 arg9 = wxString_in_helper(obj8);
17740 if (arg9 == NULL) SWIG_fail;
17741 temp9 = true;
17742 }
17743 }
17744 if (obj9) {
17745 arg10 = obj9;
17746 }
17747 {
17748 PyThreadState* __tstate = wxPyBeginAllowThreads();
17749 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);
17750
17751 wxPyEndAllowThreads(__tstate);
17752 if (PyErr_Occurred()) SWIG_fail;
17753 }
17754 {
17755 resultobj = wxPyMake_wxObject(result, 0);
17756 }
17757 {
17758 if (temp4)
17759 delete arg4;
17760 }
17761 {
17762 if (temp8)
17763 delete arg8;
17764 }
17765 {
17766 if (temp9)
17767 delete arg9;
17768 }
17769 return resultobj;
17770 fail:
17771 {
17772 if (temp4)
17773 delete arg4;
17774 }
17775 {
17776 if (temp8)
17777 delete arg8;
17778 }
17779 {
17780 if (temp9)
17781 delete arg9;
17782 }
17783 return NULL;
17784 }
17785
17786
17787 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17788 PyObject *resultobj;
17789 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17790 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17791 wxToolBarToolBase *result;
17792 PyObject * obj0 = 0 ;
17793 PyObject * obj1 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self",(char *) "tool", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17801 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17803 {
17804 PyThreadState* __tstate = wxPyBeginAllowThreads();
17805 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17806
17807 wxPyEndAllowThreads(__tstate);
17808 if (PyErr_Occurred()) SWIG_fail;
17809 }
17810 {
17811 resultobj = wxPyMake_wxObject(result, 0);
17812 }
17813 return resultobj;
17814 fail:
17815 return NULL;
17816 }
17817
17818
17819 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj;
17821 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17822 size_t arg2 ;
17823 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17824 wxToolBarToolBase *result;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 PyObject * obj2 = 0 ;
17828 char *kwnames[] = {
17829 (char *) "self",(char *) "pos",(char *) "tool", NULL
17830 };
17831
17832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17835 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17839 {
17840 PyThreadState* __tstate = wxPyBeginAllowThreads();
17841 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17842
17843 wxPyEndAllowThreads(__tstate);
17844 if (PyErr_Occurred()) SWIG_fail;
17845 }
17846 {
17847 resultobj = wxPyMake_wxObject(result, 0);
17848 }
17849 return resultobj;
17850 fail:
17851 return NULL;
17852 }
17853
17854
17855 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj;
17857 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17858 wxControl *arg2 = (wxControl *) 0 ;
17859 wxToolBarToolBase *result;
17860 PyObject * obj0 = 0 ;
17861 PyObject * obj1 = 0 ;
17862 char *kwnames[] = {
17863 (char *) "self",(char *) "control", NULL
17864 };
17865
17866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17871 {
17872 PyThreadState* __tstate = wxPyBeginAllowThreads();
17873 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17874
17875 wxPyEndAllowThreads(__tstate);
17876 if (PyErr_Occurred()) SWIG_fail;
17877 }
17878 {
17879 resultobj = wxPyMake_wxObject(result, 0);
17880 }
17881 return resultobj;
17882 fail:
17883 return NULL;
17884 }
17885
17886
17887 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17888 PyObject *resultobj;
17889 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17890 size_t arg2 ;
17891 wxControl *arg3 = (wxControl *) 0 ;
17892 wxToolBarToolBase *result;
17893 PyObject * obj0 = 0 ;
17894 PyObject * obj1 = 0 ;
17895 PyObject * obj2 = 0 ;
17896 char *kwnames[] = {
17897 (char *) "self",(char *) "pos",(char *) "control", NULL
17898 };
17899
17900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17903 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17907 {
17908 PyThreadState* __tstate = wxPyBeginAllowThreads();
17909 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17910
17911 wxPyEndAllowThreads(__tstate);
17912 if (PyErr_Occurred()) SWIG_fail;
17913 }
17914 {
17915 resultobj = wxPyMake_wxObject(result, 0);
17916 }
17917 return resultobj;
17918 fail:
17919 return NULL;
17920 }
17921
17922
17923 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17924 PyObject *resultobj;
17925 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17926 int arg2 ;
17927 wxControl *result;
17928 PyObject * obj0 = 0 ;
17929 PyObject * obj1 = 0 ;
17930 char *kwnames[] = {
17931 (char *) "self",(char *) "id", NULL
17932 };
17933
17934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17937 arg2 = (int)SWIG_As_int(obj1);
17938 if (PyErr_Occurred()) SWIG_fail;
17939 {
17940 PyThreadState* __tstate = wxPyBeginAllowThreads();
17941 result = (wxControl *)(arg1)->FindControl(arg2);
17942
17943 wxPyEndAllowThreads(__tstate);
17944 if (PyErr_Occurred()) SWIG_fail;
17945 }
17946 {
17947 resultobj = wxPyMake_wxObject(result, 0);
17948 }
17949 return resultobj;
17950 fail:
17951 return NULL;
17952 }
17953
17954
17955 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17956 PyObject *resultobj;
17957 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17958 wxToolBarToolBase *result;
17959 PyObject * obj0 = 0 ;
17960 char *kwnames[] = {
17961 (char *) "self", NULL
17962 };
17963
17964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17967 {
17968 PyThreadState* __tstate = wxPyBeginAllowThreads();
17969 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17970
17971 wxPyEndAllowThreads(__tstate);
17972 if (PyErr_Occurred()) SWIG_fail;
17973 }
17974 {
17975 resultobj = wxPyMake_wxObject(result, 0);
17976 }
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj;
17985 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17986 size_t arg2 ;
17987 wxToolBarToolBase *result;
17988 PyObject * obj0 = 0 ;
17989 PyObject * obj1 = 0 ;
17990 char *kwnames[] = {
17991 (char *) "self",(char *) "pos", NULL
17992 };
17993
17994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17997 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17998 if (PyErr_Occurred()) SWIG_fail;
17999 {
18000 PyThreadState* __tstate = wxPyBeginAllowThreads();
18001 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
18002
18003 wxPyEndAllowThreads(__tstate);
18004 if (PyErr_Occurred()) SWIG_fail;
18005 }
18006 {
18007 resultobj = wxPyMake_wxObject(result, 0);
18008 }
18009 return resultobj;
18010 fail:
18011 return NULL;
18012 }
18013
18014
18015 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
18016 PyObject *resultobj;
18017 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18018 int arg2 ;
18019 wxToolBarToolBase *result;
18020 PyObject * obj0 = 0 ;
18021 PyObject * obj1 = 0 ;
18022 char *kwnames[] = {
18023 (char *) "self",(char *) "id", NULL
18024 };
18025
18026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
18027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18029 arg2 = (int)SWIG_As_int(obj1);
18030 if (PyErr_Occurred()) SWIG_fail;
18031 {
18032 PyThreadState* __tstate = wxPyBeginAllowThreads();
18033 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
18034
18035 wxPyEndAllowThreads(__tstate);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 }
18038 {
18039 resultobj = wxPyMake_wxObject(result, 0);
18040 }
18041 return resultobj;
18042 fail:
18043 return NULL;
18044 }
18045
18046
18047 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18050 size_t arg2 ;
18051 bool result;
18052 PyObject * obj0 = 0 ;
18053 PyObject * obj1 = 0 ;
18054 char *kwnames[] = {
18055 (char *) "self",(char *) "pos", NULL
18056 };
18057
18058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
18059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18061 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
18062 if (PyErr_Occurred()) SWIG_fail;
18063 {
18064 PyThreadState* __tstate = wxPyBeginAllowThreads();
18065 result = (bool)(arg1)->DeleteToolByPos(arg2);
18066
18067 wxPyEndAllowThreads(__tstate);
18068 if (PyErr_Occurred()) SWIG_fail;
18069 }
18070 {
18071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18072 }
18073 return resultobj;
18074 fail:
18075 return NULL;
18076 }
18077
18078
18079 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
18080 PyObject *resultobj;
18081 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18082 int arg2 ;
18083 bool result;
18084 PyObject * obj0 = 0 ;
18085 PyObject * obj1 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self",(char *) "id", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 arg2 = (int)SWIG_As_int(obj1);
18094 if (PyErr_Occurred()) SWIG_fail;
18095 {
18096 PyThreadState* __tstate = wxPyBeginAllowThreads();
18097 result = (bool)(arg1)->DeleteTool(arg2);
18098
18099 wxPyEndAllowThreads(__tstate);
18100 if (PyErr_Occurred()) SWIG_fail;
18101 }
18102 {
18103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18104 }
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18114 PyObject * obj0 = 0 ;
18115 char *kwnames[] = {
18116 (char *) "self", NULL
18117 };
18118
18119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
18120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->ClearTools();
18125
18126 wxPyEndAllowThreads(__tstate);
18127 if (PyErr_Occurred()) SWIG_fail;
18128 }
18129 Py_INCREF(Py_None); resultobj = Py_None;
18130 return resultobj;
18131 fail:
18132 return NULL;
18133 }
18134
18135
18136 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
18137 PyObject *resultobj;
18138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18139 bool result;
18140 PyObject * obj0 = 0 ;
18141 char *kwnames[] = {
18142 (char *) "self", NULL
18143 };
18144
18145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
18146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 result = (bool)(arg1)->Realize();
18151
18152 wxPyEndAllowThreads(__tstate);
18153 if (PyErr_Occurred()) SWIG_fail;
18154 }
18155 {
18156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18157 }
18158 return resultobj;
18159 fail:
18160 return NULL;
18161 }
18162
18163
18164 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
18165 PyObject *resultobj;
18166 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18167 int arg2 ;
18168 bool arg3 ;
18169 PyObject * obj0 = 0 ;
18170 PyObject * obj1 = 0 ;
18171 PyObject * obj2 = 0 ;
18172 char *kwnames[] = {
18173 (char *) "self",(char *) "id",(char *) "enable", NULL
18174 };
18175
18176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18179 arg2 = (int)SWIG_As_int(obj1);
18180 if (PyErr_Occurred()) SWIG_fail;
18181 arg3 = (bool)SWIG_As_bool(obj2);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->EnableTool(arg2,arg3);
18186
18187 wxPyEndAllowThreads(__tstate);
18188 if (PyErr_Occurred()) SWIG_fail;
18189 }
18190 Py_INCREF(Py_None); resultobj = Py_None;
18191 return resultobj;
18192 fail:
18193 return NULL;
18194 }
18195
18196
18197 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj;
18199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18200 int arg2 ;
18201 bool arg3 ;
18202 PyObject * obj0 = 0 ;
18203 PyObject * obj1 = 0 ;
18204 PyObject * obj2 = 0 ;
18205 char *kwnames[] = {
18206 (char *) "self",(char *) "id",(char *) "toggle", NULL
18207 };
18208
18209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18212 arg2 = (int)SWIG_As_int(obj1);
18213 if (PyErr_Occurred()) SWIG_fail;
18214 arg3 = (bool)SWIG_As_bool(obj2);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 {
18217 PyThreadState* __tstate = wxPyBeginAllowThreads();
18218 (arg1)->ToggleTool(arg2,arg3);
18219
18220 wxPyEndAllowThreads(__tstate);
18221 if (PyErr_Occurred()) SWIG_fail;
18222 }
18223 Py_INCREF(Py_None); resultobj = Py_None;
18224 return resultobj;
18225 fail:
18226 return NULL;
18227 }
18228
18229
18230 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
18231 PyObject *resultobj;
18232 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18233 int arg2 ;
18234 bool arg3 ;
18235 PyObject * obj0 = 0 ;
18236 PyObject * obj1 = 0 ;
18237 PyObject * obj2 = 0 ;
18238 char *kwnames[] = {
18239 (char *) "self",(char *) "id",(char *) "toggle", NULL
18240 };
18241
18242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
18243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18245 arg2 = (int)SWIG_As_int(obj1);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 arg3 = (bool)SWIG_As_bool(obj2);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 {
18250 PyThreadState* __tstate = wxPyBeginAllowThreads();
18251 (arg1)->SetToggle(arg2,arg3);
18252
18253 wxPyEndAllowThreads(__tstate);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 }
18256 Py_INCREF(Py_None); resultobj = Py_None;
18257 return resultobj;
18258 fail:
18259 return NULL;
18260 }
18261
18262
18263 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18264 PyObject *resultobj;
18265 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18266 int arg2 ;
18267 PyObject *result;
18268 PyObject * obj0 = 0 ;
18269 PyObject * obj1 = 0 ;
18270 char *kwnames[] = {
18271 (char *) "self",(char *) "id", NULL
18272 };
18273
18274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
18275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18277 arg2 = (int)SWIG_As_int(obj1);
18278 if (PyErr_Occurred()) SWIG_fail;
18279 {
18280 PyThreadState* __tstate = wxPyBeginAllowThreads();
18281 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
18282
18283 wxPyEndAllowThreads(__tstate);
18284 if (PyErr_Occurred()) SWIG_fail;
18285 }
18286 resultobj = result;
18287 return resultobj;
18288 fail:
18289 return NULL;
18290 }
18291
18292
18293 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18294 PyObject *resultobj;
18295 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18296 int arg2 ;
18297 PyObject *arg3 = (PyObject *) 0 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 PyObject * obj2 = 0 ;
18301 char *kwnames[] = {
18302 (char *) "self",(char *) "id",(char *) "clientData", NULL
18303 };
18304
18305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
18306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18308 arg2 = (int)SWIG_As_int(obj1);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 arg3 = obj2;
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
18314
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 Py_INCREF(Py_None); resultobj = Py_None;
18319 return resultobj;
18320 fail:
18321 return NULL;
18322 }
18323
18324
18325 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
18326 PyObject *resultobj;
18327 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18328 int arg2 ;
18329 int result;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332 char *kwnames[] = {
18333 (char *) "self",(char *) "id", NULL
18334 };
18335
18336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
18337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18339 arg2 = (int)SWIG_As_int(obj1);
18340 if (PyErr_Occurred()) SWIG_fail;
18341 {
18342 PyThreadState* __tstate = wxPyBeginAllowThreads();
18343 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
18344
18345 wxPyEndAllowThreads(__tstate);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 }
18348 resultobj = SWIG_From_int((int)result);
18349 return resultobj;
18350 fail:
18351 return NULL;
18352 }
18353
18354
18355 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
18356 PyObject *resultobj;
18357 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18358 int arg2 ;
18359 bool result;
18360 PyObject * obj0 = 0 ;
18361 PyObject * obj1 = 0 ;
18362 char *kwnames[] = {
18363 (char *) "self",(char *) "id", NULL
18364 };
18365
18366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
18367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18369 arg2 = (int)SWIG_As_int(obj1);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 {
18372 PyThreadState* __tstate = wxPyBeginAllowThreads();
18373 result = (bool)(arg1)->GetToolState(arg2);
18374
18375 wxPyEndAllowThreads(__tstate);
18376 if (PyErr_Occurred()) SWIG_fail;
18377 }
18378 {
18379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18380 }
18381 return resultobj;
18382 fail:
18383 return NULL;
18384 }
18385
18386
18387 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18388 PyObject *resultobj;
18389 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18390 int arg2 ;
18391 bool result;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 char *kwnames[] = {
18395 (char *) "self",(char *) "id", NULL
18396 };
18397
18398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
18399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18401 arg2 = (int)SWIG_As_int(obj1);
18402 if (PyErr_Occurred()) SWIG_fail;
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 result = (bool)(arg1)->GetToolEnabled(arg2);
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 {
18411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18412 }
18413 return resultobj;
18414 fail:
18415 return NULL;
18416 }
18417
18418
18419 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18420 PyObject *resultobj;
18421 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18422 int arg2 ;
18423 wxString *arg3 = 0 ;
18424 bool temp3 = false ;
18425 PyObject * obj0 = 0 ;
18426 PyObject * obj1 = 0 ;
18427 PyObject * obj2 = 0 ;
18428 char *kwnames[] = {
18429 (char *) "self",(char *) "id",(char *) "helpString", NULL
18430 };
18431
18432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18435 arg2 = (int)SWIG_As_int(obj1);
18436 if (PyErr_Occurred()) SWIG_fail;
18437 {
18438 arg3 = wxString_in_helper(obj2);
18439 if (arg3 == NULL) SWIG_fail;
18440 temp3 = true;
18441 }
18442 {
18443 PyThreadState* __tstate = wxPyBeginAllowThreads();
18444 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
18445
18446 wxPyEndAllowThreads(__tstate);
18447 if (PyErr_Occurred()) SWIG_fail;
18448 }
18449 Py_INCREF(Py_None); resultobj = Py_None;
18450 {
18451 if (temp3)
18452 delete arg3;
18453 }
18454 return resultobj;
18455 fail:
18456 {
18457 if (temp3)
18458 delete arg3;
18459 }
18460 return NULL;
18461 }
18462
18463
18464 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18465 PyObject *resultobj;
18466 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18467 int arg2 ;
18468 wxString result;
18469 PyObject * obj0 = 0 ;
18470 PyObject * obj1 = 0 ;
18471 char *kwnames[] = {
18472 (char *) "self",(char *) "id", NULL
18473 };
18474
18475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
18476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18478 arg2 = (int)SWIG_As_int(obj1);
18479 if (PyErr_Occurred()) SWIG_fail;
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 result = (arg1)->GetToolShortHelp(arg2);
18483
18484 wxPyEndAllowThreads(__tstate);
18485 if (PyErr_Occurred()) SWIG_fail;
18486 }
18487 {
18488 #if wxUSE_UNICODE
18489 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18490 #else
18491 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18492 #endif
18493 }
18494 return resultobj;
18495 fail:
18496 return NULL;
18497 }
18498
18499
18500 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18501 PyObject *resultobj;
18502 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18503 int arg2 ;
18504 wxString *arg3 = 0 ;
18505 bool temp3 = false ;
18506 PyObject * obj0 = 0 ;
18507 PyObject * obj1 = 0 ;
18508 PyObject * obj2 = 0 ;
18509 char *kwnames[] = {
18510 (char *) "self",(char *) "id",(char *) "helpString", NULL
18511 };
18512
18513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18516 arg2 = (int)SWIG_As_int(obj1);
18517 if (PyErr_Occurred()) SWIG_fail;
18518 {
18519 arg3 = wxString_in_helper(obj2);
18520 if (arg3 == NULL) SWIG_fail;
18521 temp3 = true;
18522 }
18523 {
18524 PyThreadState* __tstate = wxPyBeginAllowThreads();
18525 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18526
18527 wxPyEndAllowThreads(__tstate);
18528 if (PyErr_Occurred()) SWIG_fail;
18529 }
18530 Py_INCREF(Py_None); resultobj = Py_None;
18531 {
18532 if (temp3)
18533 delete arg3;
18534 }
18535 return resultobj;
18536 fail:
18537 {
18538 if (temp3)
18539 delete arg3;
18540 }
18541 return NULL;
18542 }
18543
18544
18545 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj;
18547 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18548 int arg2 ;
18549 wxString result;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 char *kwnames[] = {
18553 (char *) "self",(char *) "id", NULL
18554 };
18555
18556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18559 arg2 = (int)SWIG_As_int(obj1);
18560 if (PyErr_Occurred()) SWIG_fail;
18561 {
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 result = (arg1)->GetToolLongHelp(arg2);
18564
18565 wxPyEndAllowThreads(__tstate);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 {
18569 #if wxUSE_UNICODE
18570 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18571 #else
18572 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18573 #endif
18574 }
18575 return resultobj;
18576 fail:
18577 return NULL;
18578 }
18579
18580
18581 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18582 PyObject *resultobj;
18583 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18584 int arg2 ;
18585 int arg3 ;
18586 PyObject * obj0 = 0 ;
18587 PyObject * obj1 = 0 ;
18588 PyObject * obj2 = 0 ;
18589 char *kwnames[] = {
18590 (char *) "self",(char *) "x",(char *) "y", NULL
18591 };
18592
18593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18596 arg2 = (int)SWIG_As_int(obj1);
18597 if (PyErr_Occurred()) SWIG_fail;
18598 arg3 = (int)SWIG_As_int(obj2);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->SetMargins(arg2,arg3);
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 Py_INCREF(Py_None); resultobj = Py_None;
18608 return resultobj;
18609 fail:
18610 return NULL;
18611 }
18612
18613
18614 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18615 PyObject *resultobj;
18616 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18617 wxSize *arg2 = 0 ;
18618 wxSize temp2 ;
18619 PyObject * obj0 = 0 ;
18620 PyObject * obj1 = 0 ;
18621 char *kwnames[] = {
18622 (char *) "self",(char *) "size", NULL
18623 };
18624
18625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18628 {
18629 arg2 = &temp2;
18630 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18631 }
18632 {
18633 PyThreadState* __tstate = wxPyBeginAllowThreads();
18634 (arg1)->SetMargins((wxSize const &)*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_SetToolPacking(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 *) "packing", NULL
18654 };
18655
18656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",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)->SetToolPacking(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_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18676 PyObject *resultobj;
18677 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18678 int arg2 ;
18679 PyObject * obj0 = 0 ;
18680 PyObject * obj1 = 0 ;
18681 char *kwnames[] = {
18682 (char *) "self",(char *) "separation", NULL
18683 };
18684
18685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18688 arg2 = (int)SWIG_As_int(obj1);
18689 if (PyErr_Occurred()) SWIG_fail;
18690 {
18691 PyThreadState* __tstate = wxPyBeginAllowThreads();
18692 (arg1)->SetToolSeparation(arg2);
18693
18694 wxPyEndAllowThreads(__tstate);
18695 if (PyErr_Occurred()) SWIG_fail;
18696 }
18697 Py_INCREF(Py_None); resultobj = Py_None;
18698 return resultobj;
18699 fail:
18700 return NULL;
18701 }
18702
18703
18704 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18705 PyObject *resultobj;
18706 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18707 wxSize result;
18708 PyObject * obj0 = 0 ;
18709 char *kwnames[] = {
18710 (char *) "self", NULL
18711 };
18712
18713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18716 {
18717 PyThreadState* __tstate = wxPyBeginAllowThreads();
18718 result = (arg1)->GetToolMargins();
18719
18720 wxPyEndAllowThreads(__tstate);
18721 if (PyErr_Occurred()) SWIG_fail;
18722 }
18723 {
18724 wxSize * resultptr;
18725 resultptr = new wxSize((wxSize &) result);
18726 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18727 }
18728 return resultobj;
18729 fail:
18730 return NULL;
18731 }
18732
18733
18734 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18735 PyObject *resultobj;
18736 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18737 wxSize result;
18738 PyObject * obj0 = 0 ;
18739 char *kwnames[] = {
18740 (char *) "self", NULL
18741 };
18742
18743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 result = (arg1)->GetMargins();
18749
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 {
18754 wxSize * resultptr;
18755 resultptr = new wxSize((wxSize &) result);
18756 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18757 }
18758 return resultobj;
18759 fail:
18760 return NULL;
18761 }
18762
18763
18764 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18765 PyObject *resultobj;
18766 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18767 int result;
18768 PyObject * obj0 = 0 ;
18769 char *kwnames[] = {
18770 (char *) "self", NULL
18771 };
18772
18773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18776 {
18777 PyThreadState* __tstate = wxPyBeginAllowThreads();
18778 result = (int)(arg1)->GetToolPacking();
18779
18780 wxPyEndAllowThreads(__tstate);
18781 if (PyErr_Occurred()) SWIG_fail;
18782 }
18783 resultobj = SWIG_From_int((int)result);
18784 return resultobj;
18785 fail:
18786 return NULL;
18787 }
18788
18789
18790 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18791 PyObject *resultobj;
18792 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18793 int result;
18794 PyObject * obj0 = 0 ;
18795 char *kwnames[] = {
18796 (char *) "self", NULL
18797 };
18798
18799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18802 {
18803 PyThreadState* __tstate = wxPyBeginAllowThreads();
18804 result = (int)(arg1)->GetToolSeparation();
18805
18806 wxPyEndAllowThreads(__tstate);
18807 if (PyErr_Occurred()) SWIG_fail;
18808 }
18809 resultobj = SWIG_From_int((int)result);
18810 return resultobj;
18811 fail:
18812 return NULL;
18813 }
18814
18815
18816 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18817 PyObject *resultobj;
18818 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18819 int arg2 ;
18820 PyObject * obj0 = 0 ;
18821 PyObject * obj1 = 0 ;
18822 char *kwnames[] = {
18823 (char *) "self",(char *) "nRows", NULL
18824 };
18825
18826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18829 arg2 = (int)SWIG_As_int(obj1);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 {
18832 PyThreadState* __tstate = wxPyBeginAllowThreads();
18833 (arg1)->SetRows(arg2);
18834
18835 wxPyEndAllowThreads(__tstate);
18836 if (PyErr_Occurred()) SWIG_fail;
18837 }
18838 Py_INCREF(Py_None); resultobj = Py_None;
18839 return resultobj;
18840 fail:
18841 return NULL;
18842 }
18843
18844
18845 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18846 PyObject *resultobj;
18847 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18848 int arg2 ;
18849 int arg3 ;
18850 PyObject * obj0 = 0 ;
18851 PyObject * obj1 = 0 ;
18852 PyObject * obj2 = 0 ;
18853 char *kwnames[] = {
18854 (char *) "self",(char *) "rows",(char *) "cols", NULL
18855 };
18856
18857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18860 arg2 = (int)SWIG_As_int(obj1);
18861 if (PyErr_Occurred()) SWIG_fail;
18862 arg3 = (int)SWIG_As_int(obj2);
18863 if (PyErr_Occurred()) SWIG_fail;
18864 {
18865 PyThreadState* __tstate = wxPyBeginAllowThreads();
18866 (arg1)->SetMaxRowsCols(arg2,arg3);
18867
18868 wxPyEndAllowThreads(__tstate);
18869 if (PyErr_Occurred()) SWIG_fail;
18870 }
18871 Py_INCREF(Py_None); resultobj = Py_None;
18872 return resultobj;
18873 fail:
18874 return NULL;
18875 }
18876
18877
18878 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18879 PyObject *resultobj;
18880 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18881 int result;
18882 PyObject * obj0 = 0 ;
18883 char *kwnames[] = {
18884 (char *) "self", NULL
18885 };
18886
18887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18890 {
18891 PyThreadState* __tstate = wxPyBeginAllowThreads();
18892 result = (int)(arg1)->GetMaxRows();
18893
18894 wxPyEndAllowThreads(__tstate);
18895 if (PyErr_Occurred()) SWIG_fail;
18896 }
18897 resultobj = SWIG_From_int((int)result);
18898 return resultobj;
18899 fail:
18900 return NULL;
18901 }
18902
18903
18904 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18905 PyObject *resultobj;
18906 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18907 int result;
18908 PyObject * obj0 = 0 ;
18909 char *kwnames[] = {
18910 (char *) "self", NULL
18911 };
18912
18913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18916 {
18917 PyThreadState* __tstate = wxPyBeginAllowThreads();
18918 result = (int)(arg1)->GetMaxCols();
18919
18920 wxPyEndAllowThreads(__tstate);
18921 if (PyErr_Occurred()) SWIG_fail;
18922 }
18923 resultobj = SWIG_From_int((int)result);
18924 return resultobj;
18925 fail:
18926 return NULL;
18927 }
18928
18929
18930 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18931 PyObject *resultobj;
18932 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18933 wxSize *arg2 = 0 ;
18934 wxSize temp2 ;
18935 PyObject * obj0 = 0 ;
18936 PyObject * obj1 = 0 ;
18937 char *kwnames[] = {
18938 (char *) "self",(char *) "size", NULL
18939 };
18940
18941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18944 {
18945 arg2 = &temp2;
18946 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18947 }
18948 {
18949 PyThreadState* __tstate = wxPyBeginAllowThreads();
18950 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18951
18952 wxPyEndAllowThreads(__tstate);
18953 if (PyErr_Occurred()) SWIG_fail;
18954 }
18955 Py_INCREF(Py_None); resultobj = Py_None;
18956 return resultobj;
18957 fail:
18958 return NULL;
18959 }
18960
18961
18962 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18963 PyObject *resultobj;
18964 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18965 wxSize result;
18966 PyObject * obj0 = 0 ;
18967 char *kwnames[] = {
18968 (char *) "self", NULL
18969 };
18970
18971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18974 {
18975 PyThreadState* __tstate = wxPyBeginAllowThreads();
18976 result = (arg1)->GetToolBitmapSize();
18977
18978 wxPyEndAllowThreads(__tstate);
18979 if (PyErr_Occurred()) SWIG_fail;
18980 }
18981 {
18982 wxSize * resultptr;
18983 resultptr = new wxSize((wxSize &) result);
18984 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18985 }
18986 return resultobj;
18987 fail:
18988 return NULL;
18989 }
18990
18991
18992 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj;
18994 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18995 wxSize result;
18996 PyObject * obj0 = 0 ;
18997 char *kwnames[] = {
18998 (char *) "self", NULL
18999 };
19000
19001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
19002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19004 {
19005 PyThreadState* __tstate = wxPyBeginAllowThreads();
19006 result = (arg1)->GetToolSize();
19007
19008 wxPyEndAllowThreads(__tstate);
19009 if (PyErr_Occurred()) SWIG_fail;
19010 }
19011 {
19012 wxSize * resultptr;
19013 resultptr = new wxSize((wxSize &) result);
19014 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
19015 }
19016 return resultobj;
19017 fail:
19018 return NULL;
19019 }
19020
19021
19022 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19023 PyObject *resultobj;
19024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
19025 int arg2 ;
19026 int arg3 ;
19027 wxToolBarToolBase *result;
19028 PyObject * obj0 = 0 ;
19029 PyObject * obj1 = 0 ;
19030 PyObject * obj2 = 0 ;
19031 char *kwnames[] = {
19032 (char *) "self",(char *) "x",(char *) "y", NULL
19033 };
19034
19035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19038 arg2 = (int)SWIG_As_int(obj1);
19039 if (PyErr_Occurred()) SWIG_fail;
19040 arg3 = (int)SWIG_As_int(obj2);
19041 if (PyErr_Occurred()) SWIG_fail;
19042 {
19043 PyThreadState* __tstate = wxPyBeginAllowThreads();
19044 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19045
19046 wxPyEndAllowThreads(__tstate);
19047 if (PyErr_Occurred()) SWIG_fail;
19048 }
19049 {
19050 resultobj = wxPyMake_wxObject(result, 0);
19051 }
19052 return resultobj;
19053 fail:
19054 return NULL;
19055 }
19056
19057
19058 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj;
19060 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
19061 int arg2 ;
19062 wxToolBarToolBase *result;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 char *kwnames[] = {
19066 (char *) "self",(char *) "toolid", NULL
19067 };
19068
19069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
19070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19072 arg2 = (int)SWIG_As_int(obj1);
19073 if (PyErr_Occurred()) SWIG_fail;
19074 {
19075 PyThreadState* __tstate = wxPyBeginAllowThreads();
19076 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
19077
19078 wxPyEndAllowThreads(__tstate);
19079 if (PyErr_Occurred()) SWIG_fail;
19080 }
19081 {
19082 resultobj = wxPyMake_wxObject(result, 0);
19083 }
19084 return resultobj;
19085 fail:
19086 return NULL;
19087 }
19088
19089
19090 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
19091 PyObject *resultobj;
19092 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
19093 bool result;
19094 PyObject * obj0 = 0 ;
19095 char *kwnames[] = {
19096 (char *) "self", NULL
19097 };
19098
19099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
19100 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
19101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19102 {
19103 PyThreadState* __tstate = wxPyBeginAllowThreads();
19104 result = (bool)(arg1)->IsVertical();
19105
19106 wxPyEndAllowThreads(__tstate);
19107 if (PyErr_Occurred()) SWIG_fail;
19108 }
19109 {
19110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19111 }
19112 return resultobj;
19113 fail:
19114 return NULL;
19115 }
19116
19117
19118 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
19119 PyObject *obj;
19120 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19121 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
19122 Py_INCREF(obj);
19123 return Py_BuildValue((char *)"");
19124 }
19125 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19126 PyObject *resultobj;
19127 wxWindow *arg1 = (wxWindow *) 0 ;
19128 int arg2 = (int) -1 ;
19129 wxPoint const &arg3_defvalue = wxDefaultPosition ;
19130 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
19131 wxSize const &arg4_defvalue = wxDefaultSize ;
19132 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
19133 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19134 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
19135 wxString *arg6 = (wxString *) &arg6_defvalue ;
19136 wxToolBar *result;
19137 wxPoint temp3 ;
19138 wxSize temp4 ;
19139 bool temp6 = false ;
19140 PyObject * obj0 = 0 ;
19141 PyObject * obj1 = 0 ;
19142 PyObject * obj2 = 0 ;
19143 PyObject * obj3 = 0 ;
19144 PyObject * obj4 = 0 ;
19145 PyObject * obj5 = 0 ;
19146 char *kwnames[] = {
19147 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19148 };
19149
19150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
19151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
19152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19153 if (obj1) {
19154 arg2 = (int)SWIG_As_int(obj1);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 if (obj2) {
19158 {
19159 arg3 = &temp3;
19160 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19161 }
19162 }
19163 if (obj3) {
19164 {
19165 arg4 = &temp4;
19166 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
19167 }
19168 }
19169 if (obj4) {
19170 arg5 = (long)SWIG_As_long(obj4);
19171 if (PyErr_Occurred()) SWIG_fail;
19172 }
19173 if (obj5) {
19174 {
19175 arg6 = wxString_in_helper(obj5);
19176 if (arg6 == NULL) SWIG_fail;
19177 temp6 = true;
19178 }
19179 }
19180 {
19181 if (!wxPyCheckForApp()) SWIG_fail;
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19189 {
19190 if (temp6)
19191 delete arg6;
19192 }
19193 return resultobj;
19194 fail:
19195 {
19196 if (temp6)
19197 delete arg6;
19198 }
19199 return NULL;
19200 }
19201
19202
19203 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19204 PyObject *resultobj;
19205 wxToolBar *result;
19206 char *kwnames[] = {
19207 NULL
19208 };
19209
19210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
19211 {
19212 if (!wxPyCheckForApp()) SWIG_fail;
19213 PyThreadState* __tstate = wxPyBeginAllowThreads();
19214 result = (wxToolBar *)new wxToolBar();
19215
19216 wxPyEndAllowThreads(__tstate);
19217 if (PyErr_Occurred()) SWIG_fail;
19218 }
19219 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19220 return resultobj;
19221 fail:
19222 return NULL;
19223 }
19224
19225
19226 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj;
19228 wxToolBar *arg1 = (wxToolBar *) 0 ;
19229 wxWindow *arg2 = (wxWindow *) 0 ;
19230 int arg3 = (int) -1 ;
19231 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19232 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19233 wxSize const &arg5_defvalue = wxDefaultSize ;
19234 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19235 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19236 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
19237 wxString *arg7 = (wxString *) &arg7_defvalue ;
19238 bool result;
19239 wxPoint temp4 ;
19240 wxSize temp5 ;
19241 bool temp7 = false ;
19242 PyObject * obj0 = 0 ;
19243 PyObject * obj1 = 0 ;
19244 PyObject * obj2 = 0 ;
19245 PyObject * obj3 = 0 ;
19246 PyObject * obj4 = 0 ;
19247 PyObject * obj5 = 0 ;
19248 PyObject * obj6 = 0 ;
19249 char *kwnames[] = {
19250 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19251 };
19252
19253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19256 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19258 if (obj2) {
19259 arg3 = (int)SWIG_As_int(obj2);
19260 if (PyErr_Occurred()) SWIG_fail;
19261 }
19262 if (obj3) {
19263 {
19264 arg4 = &temp4;
19265 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19266 }
19267 }
19268 if (obj4) {
19269 {
19270 arg5 = &temp5;
19271 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19272 }
19273 }
19274 if (obj5) {
19275 arg6 = (long)SWIG_As_long(obj5);
19276 if (PyErr_Occurred()) SWIG_fail;
19277 }
19278 if (obj6) {
19279 {
19280 arg7 = wxString_in_helper(obj6);
19281 if (arg7 == NULL) SWIG_fail;
19282 temp7 = true;
19283 }
19284 }
19285 {
19286 PyThreadState* __tstate = wxPyBeginAllowThreads();
19287 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
19288
19289 wxPyEndAllowThreads(__tstate);
19290 if (PyErr_Occurred()) SWIG_fail;
19291 }
19292 {
19293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19294 }
19295 {
19296 if (temp7)
19297 delete arg7;
19298 }
19299 return resultobj;
19300 fail:
19301 {
19302 if (temp7)
19303 delete arg7;
19304 }
19305 return NULL;
19306 }
19307
19308
19309 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19310 PyObject *resultobj;
19311 wxToolBar *arg1 = (wxToolBar *) 0 ;
19312 int arg2 ;
19313 int arg3 ;
19314 wxToolBarToolBase *result;
19315 PyObject * obj0 = 0 ;
19316 PyObject * obj1 = 0 ;
19317 PyObject * obj2 = 0 ;
19318 char *kwnames[] = {
19319 (char *) "self",(char *) "x",(char *) "y", NULL
19320 };
19321
19322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19325 arg2 = (int)SWIG_As_int(obj1);
19326 if (PyErr_Occurred()) SWIG_fail;
19327 arg3 = (int)SWIG_As_int(obj2);
19328 if (PyErr_Occurred()) SWIG_fail;
19329 {
19330 PyThreadState* __tstate = wxPyBeginAllowThreads();
19331 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19332
19333 wxPyEndAllowThreads(__tstate);
19334 if (PyErr_Occurred()) SWIG_fail;
19335 }
19336 {
19337 resultobj = wxPyMake_wxObject(result, 0);
19338 }
19339 return resultobj;
19340 fail:
19341 return NULL;
19342 }
19343
19344
19345 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19346 PyObject *resultobj;
19347 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
19348 wxVisualAttributes result;
19349 PyObject * obj0 = 0 ;
19350 char *kwnames[] = {
19351 (char *) "variant", NULL
19352 };
19353
19354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
19355 if (obj0) {
19356 arg1 = (int)SWIG_As_int(obj0);
19357 if (PyErr_Occurred()) SWIG_fail;
19358 }
19359 {
19360 if (!wxPyCheckForApp()) SWIG_fail;
19361 PyThreadState* __tstate = wxPyBeginAllowThreads();
19362 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
19363
19364 wxPyEndAllowThreads(__tstate);
19365 if (PyErr_Occurred()) SWIG_fail;
19366 }
19367 {
19368 wxVisualAttributes * resultptr;
19369 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
19370 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
19371 }
19372 return resultobj;
19373 fail:
19374 return NULL;
19375 }
19376
19377
19378 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
19379 PyObject *obj;
19380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19381 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
19382 Py_INCREF(obj);
19383 return Py_BuildValue((char *)"");
19384 }
19385 static int _wrap_ListCtrlNameStr_set(PyObject *) {
19386 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
19387 return 1;
19388 }
19389
19390
19391 static PyObject *_wrap_ListCtrlNameStr_get() {
19392 PyObject *pyobj;
19393
19394 {
19395 #if wxUSE_UNICODE
19396 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19397 #else
19398 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19399 #endif
19400 }
19401 return pyobj;
19402 }
19403
19404
19405 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
19406 PyObject *resultobj;
19407 wxColour const &arg1_defvalue = wxNullColour ;
19408 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
19409 wxColour const &arg2_defvalue = wxNullColour ;
19410 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
19411 wxFont const &arg3_defvalue = wxNullFont ;
19412 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
19413 wxListItemAttr *result;
19414 wxColour temp1 ;
19415 wxColour temp2 ;
19416 PyObject * obj0 = 0 ;
19417 PyObject * obj1 = 0 ;
19418 PyObject * obj2 = 0 ;
19419 char *kwnames[] = {
19420 (char *) "colText",(char *) "colBack",(char *) "font", NULL
19421 };
19422
19423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
19424 if (obj0) {
19425 {
19426 arg1 = &temp1;
19427 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
19428 }
19429 }
19430 if (obj1) {
19431 {
19432 arg2 = &temp2;
19433 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19434 }
19435 }
19436 if (obj2) {
19437 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
19438 SWIG_POINTER_EXCEPTION | 0)) == -1)
19439 SWIG_fail;
19440 if (arg3 == NULL) {
19441 PyErr_SetString(PyExc_TypeError,"null reference");
19442 SWIG_fail;
19443 }
19444 }
19445 {
19446 PyThreadState* __tstate = wxPyBeginAllowThreads();
19447 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
19448
19449 wxPyEndAllowThreads(__tstate);
19450 if (PyErr_Occurred()) SWIG_fail;
19451 }
19452 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
19453 return resultobj;
19454 fail:
19455 return NULL;
19456 }
19457
19458
19459 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19460 PyObject *resultobj;
19461 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19462 wxColour *arg2 = 0 ;
19463 wxColour temp2 ;
19464 PyObject * obj0 = 0 ;
19465 PyObject * obj1 = 0 ;
19466 char *kwnames[] = {
19467 (char *) "self",(char *) "colText", NULL
19468 };
19469
19470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19473 {
19474 arg2 = &temp2;
19475 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19476 }
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->SetTextColour((wxColour const &)*arg2);
19480
19481 wxPyEndAllowThreads(__tstate);
19482 if (PyErr_Occurred()) SWIG_fail;
19483 }
19484 Py_INCREF(Py_None); resultobj = Py_None;
19485 return resultobj;
19486 fail:
19487 return NULL;
19488 }
19489
19490
19491 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19492 PyObject *resultobj;
19493 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19494 wxColour *arg2 = 0 ;
19495 wxColour temp2 ;
19496 PyObject * obj0 = 0 ;
19497 PyObject * obj1 = 0 ;
19498 char *kwnames[] = {
19499 (char *) "self",(char *) "colBack", NULL
19500 };
19501
19502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19505 {
19506 arg2 = &temp2;
19507 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19508 }
19509 {
19510 PyThreadState* __tstate = wxPyBeginAllowThreads();
19511 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19512
19513 wxPyEndAllowThreads(__tstate);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 }
19516 Py_INCREF(Py_None); resultobj = Py_None;
19517 return resultobj;
19518 fail:
19519 return NULL;
19520 }
19521
19522
19523 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19524 PyObject *resultobj;
19525 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19526 wxFont *arg2 = 0 ;
19527 PyObject * obj0 = 0 ;
19528 PyObject * obj1 = 0 ;
19529 char *kwnames[] = {
19530 (char *) "self",(char *) "font", NULL
19531 };
19532
19533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19536 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19537 SWIG_POINTER_EXCEPTION | 0)) == -1)
19538 SWIG_fail;
19539 if (arg2 == NULL) {
19540 PyErr_SetString(PyExc_TypeError,"null reference");
19541 SWIG_fail;
19542 }
19543 {
19544 PyThreadState* __tstate = wxPyBeginAllowThreads();
19545 (arg1)->SetFont((wxFont const &)*arg2);
19546
19547 wxPyEndAllowThreads(__tstate);
19548 if (PyErr_Occurred()) SWIG_fail;
19549 }
19550 Py_INCREF(Py_None); resultobj = Py_None;
19551 return resultobj;
19552 fail:
19553 return NULL;
19554 }
19555
19556
19557 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19558 PyObject *resultobj;
19559 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19560 bool result;
19561 PyObject * obj0 = 0 ;
19562 char *kwnames[] = {
19563 (char *) "self", NULL
19564 };
19565
19566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19569 {
19570 PyThreadState* __tstate = wxPyBeginAllowThreads();
19571 result = (bool)(arg1)->HasTextColour();
19572
19573 wxPyEndAllowThreads(__tstate);
19574 if (PyErr_Occurred()) SWIG_fail;
19575 }
19576 {
19577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19578 }
19579 return resultobj;
19580 fail:
19581 return NULL;
19582 }
19583
19584
19585 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj;
19587 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19588 bool result;
19589 PyObject * obj0 = 0 ;
19590 char *kwnames[] = {
19591 (char *) "self", NULL
19592 };
19593
19594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19597 {
19598 PyThreadState* __tstate = wxPyBeginAllowThreads();
19599 result = (bool)(arg1)->HasBackgroundColour();
19600
19601 wxPyEndAllowThreads(__tstate);
19602 if (PyErr_Occurred()) SWIG_fail;
19603 }
19604 {
19605 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19606 }
19607 return resultobj;
19608 fail:
19609 return NULL;
19610 }
19611
19612
19613 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19614 PyObject *resultobj;
19615 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19616 bool result;
19617 PyObject * obj0 = 0 ;
19618 char *kwnames[] = {
19619 (char *) "self", NULL
19620 };
19621
19622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19625 {
19626 PyThreadState* __tstate = wxPyBeginAllowThreads();
19627 result = (bool)(arg1)->HasFont();
19628
19629 wxPyEndAllowThreads(__tstate);
19630 if (PyErr_Occurred()) SWIG_fail;
19631 }
19632 {
19633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19634 }
19635 return resultobj;
19636 fail:
19637 return NULL;
19638 }
19639
19640
19641 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19642 PyObject *resultobj;
19643 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19644 wxColour result;
19645 PyObject * obj0 = 0 ;
19646 char *kwnames[] = {
19647 (char *) "self", NULL
19648 };
19649
19650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19653 {
19654 PyThreadState* __tstate = wxPyBeginAllowThreads();
19655 result = (arg1)->GetTextColour();
19656
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 {
19661 wxColour * resultptr;
19662 resultptr = new wxColour((wxColour &) result);
19663 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19664 }
19665 return resultobj;
19666 fail:
19667 return NULL;
19668 }
19669
19670
19671 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19672 PyObject *resultobj;
19673 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19674 wxColour result;
19675 PyObject * obj0 = 0 ;
19676 char *kwnames[] = {
19677 (char *) "self", NULL
19678 };
19679
19680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19683 {
19684 PyThreadState* __tstate = wxPyBeginAllowThreads();
19685 result = (arg1)->GetBackgroundColour();
19686
19687 wxPyEndAllowThreads(__tstate);
19688 if (PyErr_Occurred()) SWIG_fail;
19689 }
19690 {
19691 wxColour * resultptr;
19692 resultptr = new wxColour((wxColour &) result);
19693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19694 }
19695 return resultobj;
19696 fail:
19697 return NULL;
19698 }
19699
19700
19701 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj;
19703 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19704 wxFont result;
19705 PyObject * obj0 = 0 ;
19706 char *kwnames[] = {
19707 (char *) "self", NULL
19708 };
19709
19710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",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 result = (arg1)->GetFont();
19716
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 {
19721 wxFont * resultptr;
19722 resultptr = new wxFont((wxFont &) result);
19723 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19724 }
19725 return resultobj;
19726 fail:
19727 return NULL;
19728 }
19729
19730
19731 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19732 PyObject *resultobj;
19733 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19734 PyObject * obj0 = 0 ;
19735 char *kwnames[] = {
19736 (char *) "self", NULL
19737 };
19738
19739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19742 {
19743 PyThreadState* __tstate = wxPyBeginAllowThreads();
19744 wxListItemAttr_Destroy(arg1);
19745
19746 wxPyEndAllowThreads(__tstate);
19747 if (PyErr_Occurred()) SWIG_fail;
19748 }
19749 Py_INCREF(Py_None); resultobj = Py_None;
19750 return resultobj;
19751 fail:
19752 return NULL;
19753 }
19754
19755
19756 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19757 PyObject *obj;
19758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19759 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19760 Py_INCREF(obj);
19761 return Py_BuildValue((char *)"");
19762 }
19763 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19764 PyObject *resultobj;
19765 wxListItem *result;
19766 char *kwnames[] = {
19767 NULL
19768 };
19769
19770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19771 {
19772 PyThreadState* __tstate = wxPyBeginAllowThreads();
19773 result = (wxListItem *)new wxListItem();
19774
19775 wxPyEndAllowThreads(__tstate);
19776 if (PyErr_Occurred()) SWIG_fail;
19777 }
19778 {
19779 resultobj = wxPyMake_wxObject(result, 1);
19780 }
19781 return resultobj;
19782 fail:
19783 return NULL;
19784 }
19785
19786
19787 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj;
19789 wxListItem *arg1 = (wxListItem *) 0 ;
19790 PyObject * obj0 = 0 ;
19791 char *kwnames[] = {
19792 (char *) "self", NULL
19793 };
19794
19795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 delete arg1;
19801
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 Py_INCREF(Py_None); resultobj = Py_None;
19806 return resultobj;
19807 fail:
19808 return NULL;
19809 }
19810
19811
19812 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19813 PyObject *resultobj;
19814 wxListItem *arg1 = (wxListItem *) 0 ;
19815 PyObject * obj0 = 0 ;
19816 char *kwnames[] = {
19817 (char *) "self", NULL
19818 };
19819
19820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19823 {
19824 PyThreadState* __tstate = wxPyBeginAllowThreads();
19825 (arg1)->Clear();
19826
19827 wxPyEndAllowThreads(__tstate);
19828 if (PyErr_Occurred()) SWIG_fail;
19829 }
19830 Py_INCREF(Py_None); resultobj = Py_None;
19831 return resultobj;
19832 fail:
19833 return NULL;
19834 }
19835
19836
19837 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19838 PyObject *resultobj;
19839 wxListItem *arg1 = (wxListItem *) 0 ;
19840 PyObject * obj0 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19848 {
19849 PyThreadState* __tstate = wxPyBeginAllowThreads();
19850 (arg1)->ClearAttributes();
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_SetMask(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 *) "mask", NULL
19870 };
19871
19872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",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)->SetMask(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_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19892 PyObject *resultobj;
19893 wxListItem *arg1 = (wxListItem *) 0 ;
19894 long arg2 ;
19895 PyObject * obj0 = 0 ;
19896 PyObject * obj1 = 0 ;
19897 char *kwnames[] = {
19898 (char *) "self",(char *) "id", NULL
19899 };
19900
19901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",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 = (long)SWIG_As_long(obj1);
19905 if (PyErr_Occurred()) SWIG_fail;
19906 {
19907 PyThreadState* __tstate = wxPyBeginAllowThreads();
19908 (arg1)->SetId(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_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19921 PyObject *resultobj;
19922 wxListItem *arg1 = (wxListItem *) 0 ;
19923 int arg2 ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 char *kwnames[] = {
19927 (char *) "self",(char *) "col", NULL
19928 };
19929
19930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",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 = (int)SWIG_As_int(obj1);
19934 if (PyErr_Occurred()) SWIG_fail;
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 (arg1)->SetColumn(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_SetState(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 *) "state", NULL
19957 };
19958
19959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",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)->SetState(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_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19979 PyObject *resultobj;
19980 wxListItem *arg1 = (wxListItem *) 0 ;
19981 long arg2 ;
19982 PyObject * obj0 = 0 ;
19983 PyObject * obj1 = 0 ;
19984 char *kwnames[] = {
19985 (char *) "self",(char *) "stateMask", NULL
19986 };
19987
19988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19991 arg2 = (long)SWIG_As_long(obj1);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 {
19994 PyThreadState* __tstate = wxPyBeginAllowThreads();
19995 (arg1)->SetStateMask(arg2);
19996
19997 wxPyEndAllowThreads(__tstate);
19998 if (PyErr_Occurred()) SWIG_fail;
19999 }
20000 Py_INCREF(Py_None); resultobj = Py_None;
20001 return resultobj;
20002 fail:
20003 return NULL;
20004 }
20005
20006
20007 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
20008 PyObject *resultobj;
20009 wxListItem *arg1 = (wxListItem *) 0 ;
20010 wxString *arg2 = 0 ;
20011 bool temp2 = false ;
20012 PyObject * obj0 = 0 ;
20013 PyObject * obj1 = 0 ;
20014 char *kwnames[] = {
20015 (char *) "self",(char *) "text", NULL
20016 };
20017
20018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
20019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20021 {
20022 arg2 = wxString_in_helper(obj1);
20023 if (arg2 == NULL) SWIG_fail;
20024 temp2 = true;
20025 }
20026 {
20027 PyThreadState* __tstate = wxPyBeginAllowThreads();
20028 (arg1)->SetText((wxString const &)*arg2);
20029
20030 wxPyEndAllowThreads(__tstate);
20031 if (PyErr_Occurred()) SWIG_fail;
20032 }
20033 Py_INCREF(Py_None); resultobj = Py_None;
20034 {
20035 if (temp2)
20036 delete arg2;
20037 }
20038 return resultobj;
20039 fail:
20040 {
20041 if (temp2)
20042 delete arg2;
20043 }
20044 return NULL;
20045 }
20046
20047
20048 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20049 PyObject *resultobj;
20050 wxListItem *arg1 = (wxListItem *) 0 ;
20051 int arg2 ;
20052 PyObject * obj0 = 0 ;
20053 PyObject * obj1 = 0 ;
20054 char *kwnames[] = {
20055 (char *) "self",(char *) "image", NULL
20056 };
20057
20058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",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 = (int)SWIG_As_int(obj1);
20062 if (PyErr_Occurred()) SWIG_fail;
20063 {
20064 PyThreadState* __tstate = wxPyBeginAllowThreads();
20065 (arg1)->SetImage(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_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
20078 PyObject *resultobj;
20079 wxListItem *arg1 = (wxListItem *) 0 ;
20080 long arg2 ;
20081 PyObject * obj0 = 0 ;
20082 PyObject * obj1 = 0 ;
20083 char *kwnames[] = {
20084 (char *) "self",(char *) "data", NULL
20085 };
20086
20087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",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 = (long)SWIG_As_long(obj1);
20091 if (PyErr_Occurred()) SWIG_fail;
20092 {
20093 PyThreadState* __tstate = wxPyBeginAllowThreads();
20094 (arg1)->SetData(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_SetWidth(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 *) "width", NULL
20114 };
20115
20116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",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)->SetWidth(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_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj;
20137 wxListItem *arg1 = (wxListItem *) 0 ;
20138 int arg2 ;
20139 PyObject * obj0 = 0 ;
20140 PyObject * obj1 = 0 ;
20141 char *kwnames[] = {
20142 (char *) "self",(char *) "align", NULL
20143 };
20144
20145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
20146 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20147 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20148 arg2 = (int)SWIG_As_int(obj1);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 {
20151 PyThreadState* __tstate = wxPyBeginAllowThreads();
20152 (arg1)->SetAlign((wxListColumnFormat )arg2);
20153
20154 wxPyEndAllowThreads(__tstate);
20155 if (PyErr_Occurred()) SWIG_fail;
20156 }
20157 Py_INCREF(Py_None); resultobj = Py_None;
20158 return resultobj;
20159 fail:
20160 return NULL;
20161 }
20162
20163
20164 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20165 PyObject *resultobj;
20166 wxListItem *arg1 = (wxListItem *) 0 ;
20167 wxColour *arg2 = 0 ;
20168 wxColour temp2 ;
20169 PyObject * obj0 = 0 ;
20170 PyObject * obj1 = 0 ;
20171 char *kwnames[] = {
20172 (char *) "self",(char *) "colText", NULL
20173 };
20174
20175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
20176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20178 {
20179 arg2 = &temp2;
20180 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20181 }
20182 {
20183 PyThreadState* __tstate = wxPyBeginAllowThreads();
20184 (arg1)->SetTextColour((wxColour const &)*arg2);
20185
20186 wxPyEndAllowThreads(__tstate);
20187 if (PyErr_Occurred()) SWIG_fail;
20188 }
20189 Py_INCREF(Py_None); resultobj = Py_None;
20190 return resultobj;
20191 fail:
20192 return NULL;
20193 }
20194
20195
20196 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20197 PyObject *resultobj;
20198 wxListItem *arg1 = (wxListItem *) 0 ;
20199 wxColour *arg2 = 0 ;
20200 wxColour temp2 ;
20201 PyObject * obj0 = 0 ;
20202 PyObject * obj1 = 0 ;
20203 char *kwnames[] = {
20204 (char *) "self",(char *) "colBack", NULL
20205 };
20206
20207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20210 {
20211 arg2 = &temp2;
20212 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20213 }
20214 {
20215 PyThreadState* __tstate = wxPyBeginAllowThreads();
20216 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
20217
20218 wxPyEndAllowThreads(__tstate);
20219 if (PyErr_Occurred()) SWIG_fail;
20220 }
20221 Py_INCREF(Py_None); resultobj = Py_None;
20222 return resultobj;
20223 fail:
20224 return NULL;
20225 }
20226
20227
20228 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20229 PyObject *resultobj;
20230 wxListItem *arg1 = (wxListItem *) 0 ;
20231 wxFont *arg2 = 0 ;
20232 PyObject * obj0 = 0 ;
20233 PyObject * obj1 = 0 ;
20234 char *kwnames[] = {
20235 (char *) "self",(char *) "font", NULL
20236 };
20237
20238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
20239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
20242 SWIG_POINTER_EXCEPTION | 0)) == -1)
20243 SWIG_fail;
20244 if (arg2 == NULL) {
20245 PyErr_SetString(PyExc_TypeError,"null reference");
20246 SWIG_fail;
20247 }
20248 {
20249 PyThreadState* __tstate = wxPyBeginAllowThreads();
20250 (arg1)->SetFont((wxFont const &)*arg2);
20251
20252 wxPyEndAllowThreads(__tstate);
20253 if (PyErr_Occurred()) SWIG_fail;
20254 }
20255 Py_INCREF(Py_None); resultobj = Py_None;
20256 return resultobj;
20257 fail:
20258 return NULL;
20259 }
20260
20261
20262 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
20263 PyObject *resultobj;
20264 wxListItem *arg1 = (wxListItem *) 0 ;
20265 long result;
20266 PyObject * obj0 = 0 ;
20267 char *kwnames[] = {
20268 (char *) "self", NULL
20269 };
20270
20271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
20272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20274 {
20275 PyThreadState* __tstate = wxPyBeginAllowThreads();
20276 result = (long)(arg1)->GetMask();
20277
20278 wxPyEndAllowThreads(__tstate);
20279 if (PyErr_Occurred()) SWIG_fail;
20280 }
20281 resultobj = SWIG_From_long((long)result);
20282 return resultobj;
20283 fail:
20284 return NULL;
20285 }
20286
20287
20288 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
20289 PyObject *resultobj;
20290 wxListItem *arg1 = (wxListItem *) 0 ;
20291 long result;
20292 PyObject * obj0 = 0 ;
20293 char *kwnames[] = {
20294 (char *) "self", NULL
20295 };
20296
20297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
20298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20300 {
20301 PyThreadState* __tstate = wxPyBeginAllowThreads();
20302 result = (long)(arg1)->GetId();
20303
20304 wxPyEndAllowThreads(__tstate);
20305 if (PyErr_Occurred()) SWIG_fail;
20306 }
20307 resultobj = SWIG_From_long((long)result);
20308 return resultobj;
20309 fail:
20310 return NULL;
20311 }
20312
20313
20314 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20315 PyObject *resultobj;
20316 wxListItem *arg1 = (wxListItem *) 0 ;
20317 int result;
20318 PyObject * obj0 = 0 ;
20319 char *kwnames[] = {
20320 (char *) "self", NULL
20321 };
20322
20323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
20324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20326 {
20327 PyThreadState* __tstate = wxPyBeginAllowThreads();
20328 result = (int)(arg1)->GetColumn();
20329
20330 wxPyEndAllowThreads(__tstate);
20331 if (PyErr_Occurred()) SWIG_fail;
20332 }
20333 resultobj = SWIG_From_int((int)result);
20334 return resultobj;
20335 fail:
20336 return NULL;
20337 }
20338
20339
20340 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
20341 PyObject *resultobj;
20342 wxListItem *arg1 = (wxListItem *) 0 ;
20343 long result;
20344 PyObject * obj0 = 0 ;
20345 char *kwnames[] = {
20346 (char *) "self", NULL
20347 };
20348
20349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
20350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20352 {
20353 PyThreadState* __tstate = wxPyBeginAllowThreads();
20354 result = (long)(arg1)->GetState();
20355
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 resultobj = SWIG_From_long((long)result);
20360 return resultobj;
20361 fail:
20362 return NULL;
20363 }
20364
20365
20366 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20367 PyObject *resultobj;
20368 wxListItem *arg1 = (wxListItem *) 0 ;
20369 wxString *result;
20370 PyObject * obj0 = 0 ;
20371 char *kwnames[] = {
20372 (char *) "self", NULL
20373 };
20374
20375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
20376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 {
20381 wxString const &_result_ref = (arg1)->GetText();
20382 result = (wxString *) &_result_ref;
20383 }
20384
20385 wxPyEndAllowThreads(__tstate);
20386 if (PyErr_Occurred()) SWIG_fail;
20387 }
20388 {
20389 #if wxUSE_UNICODE
20390 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20391 #else
20392 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20393 #endif
20394 }
20395 return resultobj;
20396 fail:
20397 return NULL;
20398 }
20399
20400
20401 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20402 PyObject *resultobj;
20403 wxListItem *arg1 = (wxListItem *) 0 ;
20404 int result;
20405 PyObject * obj0 = 0 ;
20406 char *kwnames[] = {
20407 (char *) "self", NULL
20408 };
20409
20410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
20411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20413 {
20414 PyThreadState* __tstate = wxPyBeginAllowThreads();
20415 result = (int)(arg1)->GetImage();
20416
20417 wxPyEndAllowThreads(__tstate);
20418 if (PyErr_Occurred()) SWIG_fail;
20419 }
20420 resultobj = SWIG_From_int((int)result);
20421 return resultobj;
20422 fail:
20423 return NULL;
20424 }
20425
20426
20427 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
20428 PyObject *resultobj;
20429 wxListItem *arg1 = (wxListItem *) 0 ;
20430 long result;
20431 PyObject * obj0 = 0 ;
20432 char *kwnames[] = {
20433 (char *) "self", NULL
20434 };
20435
20436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
20437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20439 {
20440 PyThreadState* __tstate = wxPyBeginAllowThreads();
20441 result = (long)(arg1)->GetData();
20442
20443 wxPyEndAllowThreads(__tstate);
20444 if (PyErr_Occurred()) SWIG_fail;
20445 }
20446 resultobj = SWIG_From_long((long)result);
20447 return resultobj;
20448 fail:
20449 return NULL;
20450 }
20451
20452
20453 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20454 PyObject *resultobj;
20455 wxListItem *arg1 = (wxListItem *) 0 ;
20456 int result;
20457 PyObject * obj0 = 0 ;
20458 char *kwnames[] = {
20459 (char *) "self", NULL
20460 };
20461
20462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
20463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20465 {
20466 PyThreadState* __tstate = wxPyBeginAllowThreads();
20467 result = (int)(arg1)->GetWidth();
20468
20469 wxPyEndAllowThreads(__tstate);
20470 if (PyErr_Occurred()) SWIG_fail;
20471 }
20472 resultobj = SWIG_From_int((int)result);
20473 return resultobj;
20474 fail:
20475 return NULL;
20476 }
20477
20478
20479 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20480 PyObject *resultobj;
20481 wxListItem *arg1 = (wxListItem *) 0 ;
20482 int result;
20483 PyObject * obj0 = 0 ;
20484 char *kwnames[] = {
20485 (char *) "self", NULL
20486 };
20487
20488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20491 {
20492 PyThreadState* __tstate = wxPyBeginAllowThreads();
20493 result = (int)(arg1)->GetAlign();
20494
20495 wxPyEndAllowThreads(__tstate);
20496 if (PyErr_Occurred()) SWIG_fail;
20497 }
20498 resultobj = SWIG_From_int((int)result);
20499 return resultobj;
20500 fail:
20501 return NULL;
20502 }
20503
20504
20505 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20506 PyObject *resultobj;
20507 wxListItem *arg1 = (wxListItem *) 0 ;
20508 wxListItemAttr *result;
20509 PyObject * obj0 = 0 ;
20510 char *kwnames[] = {
20511 (char *) "self", NULL
20512 };
20513
20514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20517 {
20518 PyThreadState* __tstate = wxPyBeginAllowThreads();
20519 result = (wxListItemAttr *)(arg1)->GetAttributes();
20520
20521 wxPyEndAllowThreads(__tstate);
20522 if (PyErr_Occurred()) SWIG_fail;
20523 }
20524 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20525 return resultobj;
20526 fail:
20527 return NULL;
20528 }
20529
20530
20531 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20532 PyObject *resultobj;
20533 wxListItem *arg1 = (wxListItem *) 0 ;
20534 bool result;
20535 PyObject * obj0 = 0 ;
20536 char *kwnames[] = {
20537 (char *) "self", NULL
20538 };
20539
20540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 result = (bool)(arg1)->HasAttributes();
20546
20547 wxPyEndAllowThreads(__tstate);
20548 if (PyErr_Occurred()) SWIG_fail;
20549 }
20550 {
20551 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20552 }
20553 return resultobj;
20554 fail:
20555 return NULL;
20556 }
20557
20558
20559 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20560 PyObject *resultobj;
20561 wxListItem *arg1 = (wxListItem *) 0 ;
20562 wxColour result;
20563 PyObject * obj0 = 0 ;
20564 char *kwnames[] = {
20565 (char *) "self", NULL
20566 };
20567
20568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = ((wxListItem const *)arg1)->GetTextColour();
20574
20575 wxPyEndAllowThreads(__tstate);
20576 if (PyErr_Occurred()) SWIG_fail;
20577 }
20578 {
20579 wxColour * resultptr;
20580 resultptr = new wxColour((wxColour &) result);
20581 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20582 }
20583 return resultobj;
20584 fail:
20585 return NULL;
20586 }
20587
20588
20589 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20590 PyObject *resultobj;
20591 wxListItem *arg1 = (wxListItem *) 0 ;
20592 wxColour result;
20593 PyObject * obj0 = 0 ;
20594 char *kwnames[] = {
20595 (char *) "self", NULL
20596 };
20597
20598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20601 {
20602 PyThreadState* __tstate = wxPyBeginAllowThreads();
20603 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20604
20605 wxPyEndAllowThreads(__tstate);
20606 if (PyErr_Occurred()) SWIG_fail;
20607 }
20608 {
20609 wxColour * resultptr;
20610 resultptr = new wxColour((wxColour &) result);
20611 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20612 }
20613 return resultobj;
20614 fail:
20615 return NULL;
20616 }
20617
20618
20619 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20620 PyObject *resultobj;
20621 wxListItem *arg1 = (wxListItem *) 0 ;
20622 wxFont result;
20623 PyObject * obj0 = 0 ;
20624 char *kwnames[] = {
20625 (char *) "self", NULL
20626 };
20627
20628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20631 {
20632 PyThreadState* __tstate = wxPyBeginAllowThreads();
20633 result = ((wxListItem const *)arg1)->GetFont();
20634
20635 wxPyEndAllowThreads(__tstate);
20636 if (PyErr_Occurred()) SWIG_fail;
20637 }
20638 {
20639 wxFont * resultptr;
20640 resultptr = new wxFont((wxFont &) result);
20641 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20642 }
20643 return resultobj;
20644 fail:
20645 return NULL;
20646 }
20647
20648
20649 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20650 PyObject *resultobj;
20651 wxListItem *arg1 = (wxListItem *) 0 ;
20652 long arg2 ;
20653 PyObject * obj0 = 0 ;
20654 PyObject * obj1 = 0 ;
20655 char *kwnames[] = {
20656 (char *) "self",(char *) "m_mask", NULL
20657 };
20658
20659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20662 arg2 = (long)SWIG_As_long(obj1);
20663 if (PyErr_Occurred()) SWIG_fail;
20664 if (arg1) (arg1)->m_mask = arg2;
20665
20666 Py_INCREF(Py_None); resultobj = Py_None;
20667 return resultobj;
20668 fail:
20669 return NULL;
20670 }
20671
20672
20673 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20674 PyObject *resultobj;
20675 wxListItem *arg1 = (wxListItem *) 0 ;
20676 long result;
20677 PyObject * obj0 = 0 ;
20678 char *kwnames[] = {
20679 (char *) "self", NULL
20680 };
20681
20682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20685 result = (long) ((arg1)->m_mask);
20686
20687 resultobj = SWIG_From_long((long)result);
20688 return resultobj;
20689 fail:
20690 return NULL;
20691 }
20692
20693
20694 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20695 PyObject *resultobj;
20696 wxListItem *arg1 = (wxListItem *) 0 ;
20697 long arg2 ;
20698 PyObject * obj0 = 0 ;
20699 PyObject * obj1 = 0 ;
20700 char *kwnames[] = {
20701 (char *) "self",(char *) "m_itemId", NULL
20702 };
20703
20704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20707 arg2 = (long)SWIG_As_long(obj1);
20708 if (PyErr_Occurred()) SWIG_fail;
20709 if (arg1) (arg1)->m_itemId = arg2;
20710
20711 Py_INCREF(Py_None); resultobj = Py_None;
20712 return resultobj;
20713 fail:
20714 return NULL;
20715 }
20716
20717
20718 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20719 PyObject *resultobj;
20720 wxListItem *arg1 = (wxListItem *) 0 ;
20721 long result;
20722 PyObject * obj0 = 0 ;
20723 char *kwnames[] = {
20724 (char *) "self", NULL
20725 };
20726
20727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20730 result = (long) ((arg1)->m_itemId);
20731
20732 resultobj = SWIG_From_long((long)result);
20733 return resultobj;
20734 fail:
20735 return NULL;
20736 }
20737
20738
20739 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20740 PyObject *resultobj;
20741 wxListItem *arg1 = (wxListItem *) 0 ;
20742 int arg2 ;
20743 PyObject * obj0 = 0 ;
20744 PyObject * obj1 = 0 ;
20745 char *kwnames[] = {
20746 (char *) "self",(char *) "m_col", NULL
20747 };
20748
20749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20751 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20752 arg2 = (int)SWIG_As_int(obj1);
20753 if (PyErr_Occurred()) SWIG_fail;
20754 if (arg1) (arg1)->m_col = arg2;
20755
20756 Py_INCREF(Py_None); resultobj = Py_None;
20757 return resultobj;
20758 fail:
20759 return NULL;
20760 }
20761
20762
20763 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20764 PyObject *resultobj;
20765 wxListItem *arg1 = (wxListItem *) 0 ;
20766 int result;
20767 PyObject * obj0 = 0 ;
20768 char *kwnames[] = {
20769 (char *) "self", NULL
20770 };
20771
20772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20775 result = (int) ((arg1)->m_col);
20776
20777 resultobj = SWIG_From_int((int)result);
20778 return resultobj;
20779 fail:
20780 return NULL;
20781 }
20782
20783
20784 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20785 PyObject *resultobj;
20786 wxListItem *arg1 = (wxListItem *) 0 ;
20787 long arg2 ;
20788 PyObject * obj0 = 0 ;
20789 PyObject * obj1 = 0 ;
20790 char *kwnames[] = {
20791 (char *) "self",(char *) "m_state", NULL
20792 };
20793
20794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20797 arg2 = (long)SWIG_As_long(obj1);
20798 if (PyErr_Occurred()) SWIG_fail;
20799 if (arg1) (arg1)->m_state = arg2;
20800
20801 Py_INCREF(Py_None); resultobj = Py_None;
20802 return resultobj;
20803 fail:
20804 return NULL;
20805 }
20806
20807
20808 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20809 PyObject *resultobj;
20810 wxListItem *arg1 = (wxListItem *) 0 ;
20811 long result;
20812 PyObject * obj0 = 0 ;
20813 char *kwnames[] = {
20814 (char *) "self", NULL
20815 };
20816
20817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20820 result = (long) ((arg1)->m_state);
20821
20822 resultobj = SWIG_From_long((long)result);
20823 return resultobj;
20824 fail:
20825 return NULL;
20826 }
20827
20828
20829 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20830 PyObject *resultobj;
20831 wxListItem *arg1 = (wxListItem *) 0 ;
20832 long arg2 ;
20833 PyObject * obj0 = 0 ;
20834 PyObject * obj1 = 0 ;
20835 char *kwnames[] = {
20836 (char *) "self",(char *) "m_stateMask", NULL
20837 };
20838
20839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20842 arg2 = (long)SWIG_As_long(obj1);
20843 if (PyErr_Occurred()) SWIG_fail;
20844 if (arg1) (arg1)->m_stateMask = arg2;
20845
20846 Py_INCREF(Py_None); resultobj = Py_None;
20847 return resultobj;
20848 fail:
20849 return NULL;
20850 }
20851
20852
20853 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20854 PyObject *resultobj;
20855 wxListItem *arg1 = (wxListItem *) 0 ;
20856 long result;
20857 PyObject * obj0 = 0 ;
20858 char *kwnames[] = {
20859 (char *) "self", NULL
20860 };
20861
20862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20865 result = (long) ((arg1)->m_stateMask);
20866
20867 resultobj = SWIG_From_long((long)result);
20868 return resultobj;
20869 fail:
20870 return NULL;
20871 }
20872
20873
20874 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20875 PyObject *resultobj;
20876 wxListItem *arg1 = (wxListItem *) 0 ;
20877 wxString *arg2 = (wxString *) 0 ;
20878 bool temp2 = false ;
20879 PyObject * obj0 = 0 ;
20880 PyObject * obj1 = 0 ;
20881 char *kwnames[] = {
20882 (char *) "self",(char *) "m_text", NULL
20883 };
20884
20885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20888 {
20889 arg2 = wxString_in_helper(obj1);
20890 if (arg2 == NULL) SWIG_fail;
20891 temp2 = true;
20892 }
20893 if (arg1) (arg1)->m_text = *arg2;
20894
20895 Py_INCREF(Py_None); resultobj = Py_None;
20896 {
20897 if (temp2)
20898 delete arg2;
20899 }
20900 return resultobj;
20901 fail:
20902 {
20903 if (temp2)
20904 delete arg2;
20905 }
20906 return NULL;
20907 }
20908
20909
20910 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20911 PyObject *resultobj;
20912 wxListItem *arg1 = (wxListItem *) 0 ;
20913 wxString *result;
20914 PyObject * obj0 = 0 ;
20915 char *kwnames[] = {
20916 (char *) "self", NULL
20917 };
20918
20919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20922 result = (wxString *)& ((arg1)->m_text);
20923
20924 {
20925 #if wxUSE_UNICODE
20926 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20927 #else
20928 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20929 #endif
20930 }
20931 return resultobj;
20932 fail:
20933 return NULL;
20934 }
20935
20936
20937 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20938 PyObject *resultobj;
20939 wxListItem *arg1 = (wxListItem *) 0 ;
20940 int arg2 ;
20941 PyObject * obj0 = 0 ;
20942 PyObject * obj1 = 0 ;
20943 char *kwnames[] = {
20944 (char *) "self",(char *) "m_image", NULL
20945 };
20946
20947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20950 arg2 = (int)SWIG_As_int(obj1);
20951 if (PyErr_Occurred()) SWIG_fail;
20952 if (arg1) (arg1)->m_image = arg2;
20953
20954 Py_INCREF(Py_None); resultobj = Py_None;
20955 return resultobj;
20956 fail:
20957 return NULL;
20958 }
20959
20960
20961 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20962 PyObject *resultobj;
20963 wxListItem *arg1 = (wxListItem *) 0 ;
20964 int result;
20965 PyObject * obj0 = 0 ;
20966 char *kwnames[] = {
20967 (char *) "self", NULL
20968 };
20969
20970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20973 result = (int) ((arg1)->m_image);
20974
20975 resultobj = SWIG_From_int((int)result);
20976 return resultobj;
20977 fail:
20978 return NULL;
20979 }
20980
20981
20982 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20983 PyObject *resultobj;
20984 wxListItem *arg1 = (wxListItem *) 0 ;
20985 long arg2 ;
20986 PyObject * obj0 = 0 ;
20987 PyObject * obj1 = 0 ;
20988 char *kwnames[] = {
20989 (char *) "self",(char *) "m_data", NULL
20990 };
20991
20992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20995 arg2 = (long)SWIG_As_long(obj1);
20996 if (PyErr_Occurred()) SWIG_fail;
20997 if (arg1) (arg1)->m_data = arg2;
20998
20999 Py_INCREF(Py_None); resultobj = Py_None;
21000 return resultobj;
21001 fail:
21002 return NULL;
21003 }
21004
21005
21006 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
21007 PyObject *resultobj;
21008 wxListItem *arg1 = (wxListItem *) 0 ;
21009 long result;
21010 PyObject * obj0 = 0 ;
21011 char *kwnames[] = {
21012 (char *) "self", NULL
21013 };
21014
21015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
21016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21018 result = (long) ((arg1)->m_data);
21019
21020 resultobj = SWIG_From_long((long)result);
21021 return resultobj;
21022 fail:
21023 return NULL;
21024 }
21025
21026
21027 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
21028 PyObject *resultobj;
21029 wxListItem *arg1 = (wxListItem *) 0 ;
21030 int arg2 ;
21031 PyObject * obj0 = 0 ;
21032 PyObject * obj1 = 0 ;
21033 char *kwnames[] = {
21034 (char *) "self",(char *) "m_format", NULL
21035 };
21036
21037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
21038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21040 arg2 = (int)SWIG_As_int(obj1);
21041 if (PyErr_Occurred()) SWIG_fail;
21042 if (arg1) (arg1)->m_format = arg2;
21043
21044 Py_INCREF(Py_None); resultobj = Py_None;
21045 return resultobj;
21046 fail:
21047 return NULL;
21048 }
21049
21050
21051 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
21052 PyObject *resultobj;
21053 wxListItem *arg1 = (wxListItem *) 0 ;
21054 int result;
21055 PyObject * obj0 = 0 ;
21056 char *kwnames[] = {
21057 (char *) "self", NULL
21058 };
21059
21060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
21061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21063 result = (int) ((arg1)->m_format);
21064
21065 resultobj = SWIG_From_int((int)result);
21066 return resultobj;
21067 fail:
21068 return NULL;
21069 }
21070
21071
21072 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
21073 PyObject *resultobj;
21074 wxListItem *arg1 = (wxListItem *) 0 ;
21075 int arg2 ;
21076 PyObject * obj0 = 0 ;
21077 PyObject * obj1 = 0 ;
21078 char *kwnames[] = {
21079 (char *) "self",(char *) "m_width", NULL
21080 };
21081
21082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
21083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21085 arg2 = (int)SWIG_As_int(obj1);
21086 if (PyErr_Occurred()) SWIG_fail;
21087 if (arg1) (arg1)->m_width = arg2;
21088
21089 Py_INCREF(Py_None); resultobj = Py_None;
21090 return resultobj;
21091 fail:
21092 return NULL;
21093 }
21094
21095
21096 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
21097 PyObject *resultobj;
21098 wxListItem *arg1 = (wxListItem *) 0 ;
21099 int result;
21100 PyObject * obj0 = 0 ;
21101 char *kwnames[] = {
21102 (char *) "self", NULL
21103 };
21104
21105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
21106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
21107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21108 result = (int) ((arg1)->m_width);
21109
21110 resultobj = SWIG_From_int((int)result);
21111 return resultobj;
21112 fail:
21113 return NULL;
21114 }
21115
21116
21117 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
21118 PyObject *obj;
21119 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21120 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
21121 Py_INCREF(obj);
21122 return Py_BuildValue((char *)"");
21123 }
21124 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
21125 PyObject *resultobj;
21126 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
21127 int arg2 = (int) 0 ;
21128 wxListEvent *result;
21129 PyObject * obj0 = 0 ;
21130 PyObject * obj1 = 0 ;
21131 char *kwnames[] = {
21132 (char *) "commandType",(char *) "id", NULL
21133 };
21134
21135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
21136 if (obj0) {
21137 arg1 = (wxEventType)SWIG_As_int(obj0);
21138 if (PyErr_Occurred()) SWIG_fail;
21139 }
21140 if (obj1) {
21141 arg2 = (int)SWIG_As_int(obj1);
21142 if (PyErr_Occurred()) SWIG_fail;
21143 }
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (wxListEvent *)new wxListEvent(arg1,arg2);
21147
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj;
21160 wxListEvent *arg1 = (wxListEvent *) 0 ;
21161 int arg2 ;
21162 PyObject * obj0 = 0 ;
21163 PyObject * obj1 = 0 ;
21164 char *kwnames[] = {
21165 (char *) "self",(char *) "m_code", NULL
21166 };
21167
21168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
21169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21171 arg2 = (int)SWIG_As_int(obj1);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 if (arg1) (arg1)->m_code = arg2;
21174
21175 Py_INCREF(Py_None); resultobj = Py_None;
21176 return resultobj;
21177 fail:
21178 return NULL;
21179 }
21180
21181
21182 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
21183 PyObject *resultobj;
21184 wxListEvent *arg1 = (wxListEvent *) 0 ;
21185 int result;
21186 PyObject * obj0 = 0 ;
21187 char *kwnames[] = {
21188 (char *) "self", NULL
21189 };
21190
21191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
21192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21194 result = (int) ((arg1)->m_code);
21195
21196 resultobj = SWIG_From_int((int)result);
21197 return resultobj;
21198 fail:
21199 return NULL;
21200 }
21201
21202
21203 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21204 PyObject *resultobj;
21205 wxListEvent *arg1 = (wxListEvent *) 0 ;
21206 long arg2 ;
21207 PyObject * obj0 = 0 ;
21208 PyObject * obj1 = 0 ;
21209 char *kwnames[] = {
21210 (char *) "self",(char *) "m_oldItemIndex", NULL
21211 };
21212
21213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21216 arg2 = (long)SWIG_As_long(obj1);
21217 if (PyErr_Occurred()) SWIG_fail;
21218 if (arg1) (arg1)->m_oldItemIndex = arg2;
21219
21220 Py_INCREF(Py_None); resultobj = Py_None;
21221 return resultobj;
21222 fail:
21223 return NULL;
21224 }
21225
21226
21227 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj;
21229 wxListEvent *arg1 = (wxListEvent *) 0 ;
21230 long result;
21231 PyObject * obj0 = 0 ;
21232 char *kwnames[] = {
21233 (char *) "self", NULL
21234 };
21235
21236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
21237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21239 result = (long) ((arg1)->m_oldItemIndex);
21240
21241 resultobj = SWIG_From_long((long)result);
21242 return resultobj;
21243 fail:
21244 return NULL;
21245 }
21246
21247
21248 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21249 PyObject *resultobj;
21250 wxListEvent *arg1 = (wxListEvent *) 0 ;
21251 long arg2 ;
21252 PyObject * obj0 = 0 ;
21253 PyObject * obj1 = 0 ;
21254 char *kwnames[] = {
21255 (char *) "self",(char *) "m_itemIndex", NULL
21256 };
21257
21258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21261 arg2 = (long)SWIG_As_long(obj1);
21262 if (PyErr_Occurred()) SWIG_fail;
21263 if (arg1) (arg1)->m_itemIndex = arg2;
21264
21265 Py_INCREF(Py_None); resultobj = Py_None;
21266 return resultobj;
21267 fail:
21268 return NULL;
21269 }
21270
21271
21272 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj;
21274 wxListEvent *arg1 = (wxListEvent *) 0 ;
21275 long result;
21276 PyObject * obj0 = 0 ;
21277 char *kwnames[] = {
21278 (char *) "self", NULL
21279 };
21280
21281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
21282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21284 result = (long) ((arg1)->m_itemIndex);
21285
21286 resultobj = SWIG_From_long((long)result);
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxListEvent *arg1 = (wxListEvent *) 0 ;
21296 int arg2 ;
21297 PyObject * obj0 = 0 ;
21298 PyObject * obj1 = 0 ;
21299 char *kwnames[] = {
21300 (char *) "self",(char *) "m_col", NULL
21301 };
21302
21303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
21304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21306 arg2 = (int)SWIG_As_int(obj1);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 if (arg1) (arg1)->m_col = arg2;
21309
21310 Py_INCREF(Py_None); resultobj = Py_None;
21311 return resultobj;
21312 fail:
21313 return NULL;
21314 }
21315
21316
21317 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj;
21319 wxListEvent *arg1 = (wxListEvent *) 0 ;
21320 int result;
21321 PyObject * obj0 = 0 ;
21322 char *kwnames[] = {
21323 (char *) "self", NULL
21324 };
21325
21326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
21327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21329 result = (int) ((arg1)->m_col);
21330
21331 resultobj = SWIG_From_int((int)result);
21332 return resultobj;
21333 fail:
21334 return NULL;
21335 }
21336
21337
21338 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
21339 PyObject *resultobj;
21340 wxListEvent *arg1 = (wxListEvent *) 0 ;
21341 wxPoint *arg2 = (wxPoint *) 0 ;
21342 PyObject * obj0 = 0 ;
21343 PyObject * obj1 = 0 ;
21344 char *kwnames[] = {
21345 (char *) "self",(char *) "m_pointDrag", NULL
21346 };
21347
21348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
21349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21351 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
21352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21353 if (arg1) (arg1)->m_pointDrag = *arg2;
21354
21355 Py_INCREF(Py_None); resultobj = Py_None;
21356 return resultobj;
21357 fail:
21358 return NULL;
21359 }
21360
21361
21362 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
21363 PyObject *resultobj;
21364 wxListEvent *arg1 = (wxListEvent *) 0 ;
21365 wxPoint *result;
21366 PyObject * obj0 = 0 ;
21367 char *kwnames[] = {
21368 (char *) "self", NULL
21369 };
21370
21371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
21372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21374 result = (wxPoint *)& ((arg1)->m_pointDrag);
21375
21376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
21377 return resultobj;
21378 fail:
21379 return NULL;
21380 }
21381
21382
21383 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
21384 PyObject *resultobj;
21385 wxListEvent *arg1 = (wxListEvent *) 0 ;
21386 wxListItem *result;
21387 PyObject * obj0 = 0 ;
21388 char *kwnames[] = {
21389 (char *) "self", NULL
21390 };
21391
21392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
21393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21395 result = (wxListItem *)& ((arg1)->m_item);
21396
21397 {
21398 resultobj = wxPyMake_wxObject(result, 0);
21399 }
21400 return resultobj;
21401 fail:
21402 return NULL;
21403 }
21404
21405
21406 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
21407 PyObject *resultobj;
21408 wxListEvent *arg1 = (wxListEvent *) 0 ;
21409 int result;
21410 PyObject * obj0 = 0 ;
21411 char *kwnames[] = {
21412 (char *) "self", NULL
21413 };
21414
21415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
21416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21418 {
21419 PyThreadState* __tstate = wxPyBeginAllowThreads();
21420 result = (int)(arg1)->GetKeyCode();
21421
21422 wxPyEndAllowThreads(__tstate);
21423 if (PyErr_Occurred()) SWIG_fail;
21424 }
21425 resultobj = SWIG_From_int((int)result);
21426 return resultobj;
21427 fail:
21428 return NULL;
21429 }
21430
21431
21432 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
21433 PyObject *resultobj;
21434 wxListEvent *arg1 = (wxListEvent *) 0 ;
21435 long result;
21436 PyObject * obj0 = 0 ;
21437 char *kwnames[] = {
21438 (char *) "self", NULL
21439 };
21440
21441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
21442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21444 {
21445 PyThreadState* __tstate = wxPyBeginAllowThreads();
21446 result = (long)(arg1)->GetIndex();
21447
21448 wxPyEndAllowThreads(__tstate);
21449 if (PyErr_Occurred()) SWIG_fail;
21450 }
21451 resultobj = SWIG_From_long((long)result);
21452 return resultobj;
21453 fail:
21454 return NULL;
21455 }
21456
21457
21458 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21459 PyObject *resultobj;
21460 wxListEvent *arg1 = (wxListEvent *) 0 ;
21461 int result;
21462 PyObject * obj0 = 0 ;
21463 char *kwnames[] = {
21464 (char *) "self", NULL
21465 };
21466
21467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
21468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 result = (int)(arg1)->GetColumn();
21473
21474 wxPyEndAllowThreads(__tstate);
21475 if (PyErr_Occurred()) SWIG_fail;
21476 }
21477 resultobj = SWIG_From_int((int)result);
21478 return resultobj;
21479 fail:
21480 return NULL;
21481 }
21482
21483
21484 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21485 PyObject *resultobj;
21486 wxListEvent *arg1 = (wxListEvent *) 0 ;
21487 wxPoint result;
21488 PyObject * obj0 = 0 ;
21489 char *kwnames[] = {
21490 (char *) "self", NULL
21491 };
21492
21493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21496 {
21497 PyThreadState* __tstate = wxPyBeginAllowThreads();
21498 result = (arg1)->GetPoint();
21499
21500 wxPyEndAllowThreads(__tstate);
21501 if (PyErr_Occurred()) SWIG_fail;
21502 }
21503 {
21504 wxPoint * resultptr;
21505 resultptr = new wxPoint((wxPoint &) result);
21506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21507 }
21508 return resultobj;
21509 fail:
21510 return NULL;
21511 }
21512
21513
21514 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21515 PyObject *resultobj;
21516 wxListEvent *arg1 = (wxListEvent *) 0 ;
21517 wxString *result;
21518 PyObject * obj0 = 0 ;
21519 char *kwnames[] = {
21520 (char *) "self", NULL
21521 };
21522
21523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21526 {
21527 PyThreadState* __tstate = wxPyBeginAllowThreads();
21528 {
21529 wxString const &_result_ref = (arg1)->GetLabel();
21530 result = (wxString *) &_result_ref;
21531 }
21532
21533 wxPyEndAllowThreads(__tstate);
21534 if (PyErr_Occurred()) SWIG_fail;
21535 }
21536 {
21537 #if wxUSE_UNICODE
21538 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21539 #else
21540 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21541 #endif
21542 }
21543 return resultobj;
21544 fail:
21545 return NULL;
21546 }
21547
21548
21549 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21550 PyObject *resultobj;
21551 wxListEvent *arg1 = (wxListEvent *) 0 ;
21552 wxString *result;
21553 PyObject * obj0 = 0 ;
21554 char *kwnames[] = {
21555 (char *) "self", NULL
21556 };
21557
21558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21561 {
21562 PyThreadState* __tstate = wxPyBeginAllowThreads();
21563 {
21564 wxString const &_result_ref = (arg1)->GetText();
21565 result = (wxString *) &_result_ref;
21566 }
21567
21568 wxPyEndAllowThreads(__tstate);
21569 if (PyErr_Occurred()) SWIG_fail;
21570 }
21571 {
21572 #if wxUSE_UNICODE
21573 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21574 #else
21575 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21576 #endif
21577 }
21578 return resultobj;
21579 fail:
21580 return NULL;
21581 }
21582
21583
21584 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21585 PyObject *resultobj;
21586 wxListEvent *arg1 = (wxListEvent *) 0 ;
21587 int result;
21588 PyObject * obj0 = 0 ;
21589 char *kwnames[] = {
21590 (char *) "self", NULL
21591 };
21592
21593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21596 {
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 result = (int)(arg1)->GetImage();
21599
21600 wxPyEndAllowThreads(__tstate);
21601 if (PyErr_Occurred()) SWIG_fail;
21602 }
21603 resultobj = SWIG_From_int((int)result);
21604 return resultobj;
21605 fail:
21606 return NULL;
21607 }
21608
21609
21610 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21611 PyObject *resultobj;
21612 wxListEvent *arg1 = (wxListEvent *) 0 ;
21613 long result;
21614 PyObject * obj0 = 0 ;
21615 char *kwnames[] = {
21616 (char *) "self", NULL
21617 };
21618
21619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (long)(arg1)->GetData();
21625
21626 wxPyEndAllowThreads(__tstate);
21627 if (PyErr_Occurred()) SWIG_fail;
21628 }
21629 resultobj = SWIG_From_long((long)result);
21630 return resultobj;
21631 fail:
21632 return NULL;
21633 }
21634
21635
21636 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21637 PyObject *resultobj;
21638 wxListEvent *arg1 = (wxListEvent *) 0 ;
21639 long result;
21640 PyObject * obj0 = 0 ;
21641 char *kwnames[] = {
21642 (char *) "self", NULL
21643 };
21644
21645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21648 {
21649 PyThreadState* __tstate = wxPyBeginAllowThreads();
21650 result = (long)(arg1)->GetMask();
21651
21652 wxPyEndAllowThreads(__tstate);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 }
21655 resultobj = SWIG_From_long((long)result);
21656 return resultobj;
21657 fail:
21658 return NULL;
21659 }
21660
21661
21662 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21663 PyObject *resultobj;
21664 wxListEvent *arg1 = (wxListEvent *) 0 ;
21665 wxListItem *result;
21666 PyObject * obj0 = 0 ;
21667 char *kwnames[] = {
21668 (char *) "self", NULL
21669 };
21670
21671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",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 {
21677 wxListItem const &_result_ref = (arg1)->GetItem();
21678 result = (wxListItem *) &_result_ref;
21679 }
21680
21681 wxPyEndAllowThreads(__tstate);
21682 if (PyErr_Occurred()) SWIG_fail;
21683 }
21684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21685 return resultobj;
21686 fail:
21687 return NULL;
21688 }
21689
21690
21691 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21692 PyObject *resultobj;
21693 wxListEvent *arg1 = (wxListEvent *) 0 ;
21694 long result;
21695 PyObject * obj0 = 0 ;
21696 char *kwnames[] = {
21697 (char *) "self", NULL
21698 };
21699
21700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21703 {
21704 PyThreadState* __tstate = wxPyBeginAllowThreads();
21705 result = (long)(arg1)->GetCacheFrom();
21706
21707 wxPyEndAllowThreads(__tstate);
21708 if (PyErr_Occurred()) SWIG_fail;
21709 }
21710 resultobj = SWIG_From_long((long)result);
21711 return resultobj;
21712 fail:
21713 return NULL;
21714 }
21715
21716
21717 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj;
21719 wxListEvent *arg1 = (wxListEvent *) 0 ;
21720 long result;
21721 PyObject * obj0 = 0 ;
21722 char *kwnames[] = {
21723 (char *) "self", NULL
21724 };
21725
21726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21729 {
21730 PyThreadState* __tstate = wxPyBeginAllowThreads();
21731 result = (long)(arg1)->GetCacheTo();
21732
21733 wxPyEndAllowThreads(__tstate);
21734 if (PyErr_Occurred()) SWIG_fail;
21735 }
21736 resultobj = SWIG_From_long((long)result);
21737 return resultobj;
21738 fail:
21739 return NULL;
21740 }
21741
21742
21743 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21744 PyObject *resultobj;
21745 wxListEvent *arg1 = (wxListEvent *) 0 ;
21746 bool result;
21747 PyObject * obj0 = 0 ;
21748 char *kwnames[] = {
21749 (char *) "self", NULL
21750 };
21751
21752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21758
21759 wxPyEndAllowThreads(__tstate);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 }
21762 {
21763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21764 }
21765 return resultobj;
21766 fail:
21767 return NULL;
21768 }
21769
21770
21771 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21772 PyObject *resultobj;
21773 wxListEvent *arg1 = (wxListEvent *) 0 ;
21774 bool arg2 ;
21775 PyObject * obj0 = 0 ;
21776 PyObject * obj1 = 0 ;
21777 char *kwnames[] = {
21778 (char *) "self",(char *) "editCancelled", NULL
21779 };
21780
21781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21784 arg2 = (bool)SWIG_As_bool(obj1);
21785 if (PyErr_Occurred()) SWIG_fail;
21786 {
21787 PyThreadState* __tstate = wxPyBeginAllowThreads();
21788 (arg1)->SetEditCanceled(arg2);
21789
21790 wxPyEndAllowThreads(__tstate);
21791 if (PyErr_Occurred()) SWIG_fail;
21792 }
21793 Py_INCREF(Py_None); resultobj = Py_None;
21794 return resultobj;
21795 fail:
21796 return NULL;
21797 }
21798
21799
21800 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21801 PyObject *obj;
21802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21803 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21804 Py_INCREF(obj);
21805 return Py_BuildValue((char *)"");
21806 }
21807 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21808 PyObject *resultobj;
21809 wxWindow *arg1 = (wxWindow *) 0 ;
21810 int arg2 = (int) -1 ;
21811 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21812 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21813 wxSize const &arg4_defvalue = wxDefaultSize ;
21814 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21815 long arg5 = (long) wxLC_ICON ;
21816 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21817 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21818 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21819 wxString *arg7 = (wxString *) &arg7_defvalue ;
21820 wxPyListCtrl *result;
21821 wxPoint temp3 ;
21822 wxSize temp4 ;
21823 bool temp7 = false ;
21824 PyObject * obj0 = 0 ;
21825 PyObject * obj1 = 0 ;
21826 PyObject * obj2 = 0 ;
21827 PyObject * obj3 = 0 ;
21828 PyObject * obj4 = 0 ;
21829 PyObject * obj5 = 0 ;
21830 PyObject * obj6 = 0 ;
21831 char *kwnames[] = {
21832 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21833 };
21834
21835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21838 if (obj1) {
21839 arg2 = (int)SWIG_As_int(obj1);
21840 if (PyErr_Occurred()) SWIG_fail;
21841 }
21842 if (obj2) {
21843 {
21844 arg3 = &temp3;
21845 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21846 }
21847 }
21848 if (obj3) {
21849 {
21850 arg4 = &temp4;
21851 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21852 }
21853 }
21854 if (obj4) {
21855 arg5 = (long)SWIG_As_long(obj4);
21856 if (PyErr_Occurred()) SWIG_fail;
21857 }
21858 if (obj5) {
21859 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21860 SWIG_POINTER_EXCEPTION | 0)) == -1)
21861 SWIG_fail;
21862 if (arg6 == NULL) {
21863 PyErr_SetString(PyExc_TypeError,"null reference");
21864 SWIG_fail;
21865 }
21866 }
21867 if (obj6) {
21868 {
21869 arg7 = wxString_in_helper(obj6);
21870 if (arg7 == NULL) SWIG_fail;
21871 temp7 = true;
21872 }
21873 }
21874 {
21875 if (!wxPyCheckForApp()) SWIG_fail;
21876 PyThreadState* __tstate = wxPyBeginAllowThreads();
21877 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21878
21879 wxPyEndAllowThreads(__tstate);
21880 if (PyErr_Occurred()) SWIG_fail;
21881 }
21882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21883 {
21884 if (temp7)
21885 delete arg7;
21886 }
21887 return resultobj;
21888 fail:
21889 {
21890 if (temp7)
21891 delete arg7;
21892 }
21893 return NULL;
21894 }
21895
21896
21897 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj;
21899 wxPyListCtrl *result;
21900 char *kwnames[] = {
21901 NULL
21902 };
21903
21904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21905 {
21906 if (!wxPyCheckForApp()) SWIG_fail;
21907 PyThreadState* __tstate = wxPyBeginAllowThreads();
21908 result = (wxPyListCtrl *)new wxPyListCtrl();
21909
21910 wxPyEndAllowThreads(__tstate);
21911 if (PyErr_Occurred()) SWIG_fail;
21912 }
21913 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21914 return resultobj;
21915 fail:
21916 return NULL;
21917 }
21918
21919
21920 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21921 PyObject *resultobj;
21922 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21923 wxWindow *arg2 = (wxWindow *) 0 ;
21924 int arg3 = (int) -1 ;
21925 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21926 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21927 wxSize const &arg5_defvalue = wxDefaultSize ;
21928 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21929 long arg6 = (long) wxLC_ICON ;
21930 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21931 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21932 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21933 wxString *arg8 = (wxString *) &arg8_defvalue ;
21934 bool result;
21935 wxPoint temp4 ;
21936 wxSize temp5 ;
21937 bool temp8 = false ;
21938 PyObject * obj0 = 0 ;
21939 PyObject * obj1 = 0 ;
21940 PyObject * obj2 = 0 ;
21941 PyObject * obj3 = 0 ;
21942 PyObject * obj4 = 0 ;
21943 PyObject * obj5 = 0 ;
21944 PyObject * obj6 = 0 ;
21945 PyObject * obj7 = 0 ;
21946 char *kwnames[] = {
21947 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21948 };
21949
21950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21953 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21955 if (obj2) {
21956 arg3 = (int)SWIG_As_int(obj2);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
21959 if (obj3) {
21960 {
21961 arg4 = &temp4;
21962 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21963 }
21964 }
21965 if (obj4) {
21966 {
21967 arg5 = &temp5;
21968 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21969 }
21970 }
21971 if (obj5) {
21972 arg6 = (long)SWIG_As_long(obj5);
21973 if (PyErr_Occurred()) SWIG_fail;
21974 }
21975 if (obj6) {
21976 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21977 SWIG_POINTER_EXCEPTION | 0)) == -1)
21978 SWIG_fail;
21979 if (arg7 == NULL) {
21980 PyErr_SetString(PyExc_TypeError,"null reference");
21981 SWIG_fail;
21982 }
21983 }
21984 if (obj7) {
21985 {
21986 arg8 = wxString_in_helper(obj7);
21987 if (arg8 == NULL) SWIG_fail;
21988 temp8 = true;
21989 }
21990 }
21991 {
21992 PyThreadState* __tstate = wxPyBeginAllowThreads();
21993 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21994
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 {
21999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22000 }
22001 {
22002 if (temp8)
22003 delete arg8;
22004 }
22005 return resultobj;
22006 fail:
22007 {
22008 if (temp8)
22009 delete arg8;
22010 }
22011 return NULL;
22012 }
22013
22014
22015 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
22016 PyObject *resultobj;
22017 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22018 PyObject *arg2 = (PyObject *) 0 ;
22019 PyObject *arg3 = (PyObject *) 0 ;
22020 PyObject * obj0 = 0 ;
22021 PyObject * obj1 = 0 ;
22022 PyObject * obj2 = 0 ;
22023 char *kwnames[] = {
22024 (char *) "self",(char *) "self",(char *) "_class", NULL
22025 };
22026
22027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
22028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22030 arg2 = obj1;
22031 arg3 = obj2;
22032 {
22033 PyThreadState* __tstate = wxPyBeginAllowThreads();
22034 (arg1)->_setCallbackInfo(arg2,arg3);
22035
22036 wxPyEndAllowThreads(__tstate);
22037 if (PyErr_Occurred()) SWIG_fail;
22038 }
22039 Py_INCREF(Py_None); resultobj = Py_None;
22040 return resultobj;
22041 fail:
22042 return NULL;
22043 }
22044
22045
22046 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22047 PyObject *resultobj;
22048 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22049 wxColour *arg2 = 0 ;
22050 bool result;
22051 wxColour temp2 ;
22052 PyObject * obj0 = 0 ;
22053 PyObject * obj1 = 0 ;
22054 char *kwnames[] = {
22055 (char *) "self",(char *) "col", NULL
22056 };
22057
22058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
22059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22061 {
22062 arg2 = &temp2;
22063 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22064 }
22065 {
22066 PyThreadState* __tstate = wxPyBeginAllowThreads();
22067 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
22068
22069 wxPyEndAllowThreads(__tstate);
22070 if (PyErr_Occurred()) SWIG_fail;
22071 }
22072 {
22073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22074 }
22075 return resultobj;
22076 fail:
22077 return NULL;
22078 }
22079
22080
22081 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
22082 PyObject *resultobj;
22083 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22084 wxColour *arg2 = 0 ;
22085 bool result;
22086 wxColour temp2 ;
22087 PyObject * obj0 = 0 ;
22088 PyObject * obj1 = 0 ;
22089 char *kwnames[] = {
22090 (char *) "self",(char *) "col", NULL
22091 };
22092
22093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
22094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22096 {
22097 arg2 = &temp2;
22098 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22099 }
22100 {
22101 PyThreadState* __tstate = wxPyBeginAllowThreads();
22102 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
22103
22104 wxPyEndAllowThreads(__tstate);
22105 if (PyErr_Occurred()) SWIG_fail;
22106 }
22107 {
22108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22109 }
22110 return resultobj;
22111 fail:
22112 return NULL;
22113 }
22114
22115
22116 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22117 PyObject *resultobj;
22118 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22119 int arg2 ;
22120 wxListItem *result;
22121 PyObject * obj0 = 0 ;
22122 PyObject * obj1 = 0 ;
22123 char *kwnames[] = {
22124 (char *) "self",(char *) "col", NULL
22125 };
22126
22127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
22128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22130 arg2 = (int)SWIG_As_int(obj1);
22131 if (PyErr_Occurred()) SWIG_fail;
22132 {
22133 PyThreadState* __tstate = wxPyBeginAllowThreads();
22134 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
22135
22136 wxPyEndAllowThreads(__tstate);
22137 if (PyErr_Occurred()) SWIG_fail;
22138 }
22139 {
22140 resultobj = wxPyMake_wxObject(result, 0);
22141 }
22142 return resultobj;
22143 fail:
22144 return NULL;
22145 }
22146
22147
22148 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22149 PyObject *resultobj;
22150 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22151 int arg2 ;
22152 wxListItem *arg3 = 0 ;
22153 bool result;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 PyObject * obj2 = 0 ;
22157 char *kwnames[] = {
22158 (char *) "self",(char *) "col",(char *) "item", NULL
22159 };
22160
22161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
22162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22164 arg2 = (int)SWIG_As_int(obj1);
22165 if (PyErr_Occurred()) SWIG_fail;
22166 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
22167 SWIG_POINTER_EXCEPTION | 0)) == -1)
22168 SWIG_fail;
22169 if (arg3 == NULL) {
22170 PyErr_SetString(PyExc_TypeError,"null reference");
22171 SWIG_fail;
22172 }
22173 {
22174 PyThreadState* __tstate = wxPyBeginAllowThreads();
22175 result = (bool)(arg1)->SetColumn(arg2,*arg3);
22176
22177 wxPyEndAllowThreads(__tstate);
22178 if (PyErr_Occurred()) SWIG_fail;
22179 }
22180 {
22181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22182 }
22183 return resultobj;
22184 fail:
22185 return NULL;
22186 }
22187
22188
22189 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22190 PyObject *resultobj;
22191 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22192 int arg2 ;
22193 int result;
22194 PyObject * obj0 = 0 ;
22195 PyObject * obj1 = 0 ;
22196 char *kwnames[] = {
22197 (char *) "self",(char *) "col", NULL
22198 };
22199
22200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
22201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22203 arg2 = (int)SWIG_As_int(obj1);
22204 if (PyErr_Occurred()) SWIG_fail;
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
22208
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_From_int((int)result);
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22220 PyObject *resultobj;
22221 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22222 int arg2 ;
22223 int arg3 ;
22224 bool result;
22225 PyObject * obj0 = 0 ;
22226 PyObject * obj1 = 0 ;
22227 PyObject * obj2 = 0 ;
22228 char *kwnames[] = {
22229 (char *) "self",(char *) "col",(char *) "width", NULL
22230 };
22231
22232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
22233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22235 arg2 = (int)SWIG_As_int(obj1);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 arg3 = (int)SWIG_As_int(obj2);
22238 if (PyErr_Occurred()) SWIG_fail;
22239 {
22240 PyThreadState* __tstate = wxPyBeginAllowThreads();
22241 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
22242
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 {
22247 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22248 }
22249 return resultobj;
22250 fail:
22251 return NULL;
22252 }
22253
22254
22255 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
22256 PyObject *resultobj;
22257 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22258 int result;
22259 PyObject * obj0 = 0 ;
22260 char *kwnames[] = {
22261 (char *) "self", NULL
22262 };
22263
22264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
22265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22267 {
22268 PyThreadState* __tstate = wxPyBeginAllowThreads();
22269 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
22270
22271 wxPyEndAllowThreads(__tstate);
22272 if (PyErr_Occurred()) SWIG_fail;
22273 }
22274 resultobj = SWIG_From_int((int)result);
22275 return resultobj;
22276 fail:
22277 return NULL;
22278 }
22279
22280
22281 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
22282 PyObject *resultobj;
22283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22284 wxRect result;
22285 PyObject * obj0 = 0 ;
22286 char *kwnames[] = {
22287 (char *) "self", NULL
22288 };
22289
22290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
22291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22293 {
22294 PyThreadState* __tstate = wxPyBeginAllowThreads();
22295 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
22296
22297 wxPyEndAllowThreads(__tstate);
22298 if (PyErr_Occurred()) SWIG_fail;
22299 }
22300 {
22301 wxRect * resultptr;
22302 resultptr = new wxRect((wxRect &) result);
22303 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22304 }
22305 return resultobj;
22306 fail:
22307 return NULL;
22308 }
22309
22310
22311 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22312 PyObject *resultobj;
22313 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22314 long arg2 ;
22315 int arg3 = (int) 0 ;
22316 wxListItem *result;
22317 PyObject * obj0 = 0 ;
22318 PyObject * obj1 = 0 ;
22319 PyObject * obj2 = 0 ;
22320 char *kwnames[] = {
22321 (char *) "self",(char *) "itemId",(char *) "col", NULL
22322 };
22323
22324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22327 arg2 = (long)SWIG_As_long(obj1);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 if (obj2) {
22330 arg3 = (int)SWIG_As_int(obj2);
22331 if (PyErr_Occurred()) SWIG_fail;
22332 }
22333 {
22334 PyThreadState* __tstate = wxPyBeginAllowThreads();
22335 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
22336
22337 wxPyEndAllowThreads(__tstate);
22338 if (PyErr_Occurred()) SWIG_fail;
22339 }
22340 {
22341 resultobj = wxPyMake_wxObject(result, 0);
22342 }
22343 return resultobj;
22344 fail:
22345 return NULL;
22346 }
22347
22348
22349 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22350 PyObject *resultobj;
22351 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22352 wxListItem *arg2 = 0 ;
22353 bool result;
22354 PyObject * obj0 = 0 ;
22355 PyObject * obj1 = 0 ;
22356 char *kwnames[] = {
22357 (char *) "self",(char *) "info", NULL
22358 };
22359
22360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
22361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22364 SWIG_POINTER_EXCEPTION | 0)) == -1)
22365 SWIG_fail;
22366 if (arg2 == NULL) {
22367 PyErr_SetString(PyExc_TypeError,"null reference");
22368 SWIG_fail;
22369 }
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 result = (bool)(arg1)->SetItem(*arg2);
22373
22374 wxPyEndAllowThreads(__tstate);
22375 if (PyErr_Occurred()) SWIG_fail;
22376 }
22377 {
22378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22379 }
22380 return resultobj;
22381 fail:
22382 return NULL;
22383 }
22384
22385
22386 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj;
22388 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22389 long arg2 ;
22390 int arg3 ;
22391 wxString *arg4 = 0 ;
22392 int arg5 = (int) -1 ;
22393 long result;
22394 bool temp4 = false ;
22395 PyObject * obj0 = 0 ;
22396 PyObject * obj1 = 0 ;
22397 PyObject * obj2 = 0 ;
22398 PyObject * obj3 = 0 ;
22399 PyObject * obj4 = 0 ;
22400 char *kwnames[] = {
22401 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
22402 };
22403
22404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22407 arg2 = (long)SWIG_As_long(obj1);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 arg3 = (int)SWIG_As_int(obj2);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 {
22412 arg4 = wxString_in_helper(obj3);
22413 if (arg4 == NULL) SWIG_fail;
22414 temp4 = true;
22415 }
22416 if (obj4) {
22417 arg5 = (int)SWIG_As_int(obj4);
22418 if (PyErr_Occurred()) SWIG_fail;
22419 }
22420 {
22421 PyThreadState* __tstate = wxPyBeginAllowThreads();
22422 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
22423
22424 wxPyEndAllowThreads(__tstate);
22425 if (PyErr_Occurred()) SWIG_fail;
22426 }
22427 resultobj = SWIG_From_long((long)result);
22428 {
22429 if (temp4)
22430 delete arg4;
22431 }
22432 return resultobj;
22433 fail:
22434 {
22435 if (temp4)
22436 delete arg4;
22437 }
22438 return NULL;
22439 }
22440
22441
22442 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22443 PyObject *resultobj;
22444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22445 long arg2 ;
22446 long arg3 ;
22447 int result;
22448 PyObject * obj0 = 0 ;
22449 PyObject * obj1 = 0 ;
22450 PyObject * obj2 = 0 ;
22451 char *kwnames[] = {
22452 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22453 };
22454
22455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22458 arg2 = (long)SWIG_As_long(obj1);
22459 if (PyErr_Occurred()) SWIG_fail;
22460 arg3 = (long)SWIG_As_long(obj2);
22461 if (PyErr_Occurred()) SWIG_fail;
22462 {
22463 PyThreadState* __tstate = wxPyBeginAllowThreads();
22464 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22465
22466 wxPyEndAllowThreads(__tstate);
22467 if (PyErr_Occurred()) SWIG_fail;
22468 }
22469 resultobj = SWIG_From_int((int)result);
22470 return resultobj;
22471 fail:
22472 return NULL;
22473 }
22474
22475
22476 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22477 PyObject *resultobj;
22478 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22479 long arg2 ;
22480 long arg3 ;
22481 long arg4 ;
22482 bool result;
22483 PyObject * obj0 = 0 ;
22484 PyObject * obj1 = 0 ;
22485 PyObject * obj2 = 0 ;
22486 PyObject * obj3 = 0 ;
22487 char *kwnames[] = {
22488 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22489 };
22490
22491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22494 arg2 = (long)SWIG_As_long(obj1);
22495 if (PyErr_Occurred()) SWIG_fail;
22496 arg3 = (long)SWIG_As_long(obj2);
22497 if (PyErr_Occurred()) SWIG_fail;
22498 arg4 = (long)SWIG_As_long(obj3);
22499 if (PyErr_Occurred()) SWIG_fail;
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22503
22504 wxPyEndAllowThreads(__tstate);
22505 if (PyErr_Occurred()) SWIG_fail;
22506 }
22507 {
22508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22509 }
22510 return resultobj;
22511 fail:
22512 return NULL;
22513 }
22514
22515
22516 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj;
22518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22519 long arg2 ;
22520 int arg3 ;
22521 int arg4 = (int) -1 ;
22522 bool result;
22523 PyObject * obj0 = 0 ;
22524 PyObject * obj1 = 0 ;
22525 PyObject * obj2 = 0 ;
22526 PyObject * obj3 = 0 ;
22527 char *kwnames[] = {
22528 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22529 };
22530
22531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22534 arg2 = (long)SWIG_As_long(obj1);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 arg3 = (int)SWIG_As_int(obj2);
22537 if (PyErr_Occurred()) SWIG_fail;
22538 if (obj3) {
22539 arg4 = (int)SWIG_As_int(obj3);
22540 if (PyErr_Occurred()) SWIG_fail;
22541 }
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22545
22546 wxPyEndAllowThreads(__tstate);
22547 if (PyErr_Occurred()) SWIG_fail;
22548 }
22549 {
22550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22551 }
22552 return resultobj;
22553 fail:
22554 return NULL;
22555 }
22556
22557
22558 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22559 PyObject *resultobj;
22560 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22561 long arg2 ;
22562 wxString result;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 char *kwnames[] = {
22566 (char *) "self",(char *) "item", NULL
22567 };
22568
22569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22572 arg2 = (long)SWIG_As_long(obj1);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 {
22575 PyThreadState* __tstate = wxPyBeginAllowThreads();
22576 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22577
22578 wxPyEndAllowThreads(__tstate);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 }
22581 {
22582 #if wxUSE_UNICODE
22583 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22584 #else
22585 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22586 #endif
22587 }
22588 return resultobj;
22589 fail:
22590 return NULL;
22591 }
22592
22593
22594 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22595 PyObject *resultobj;
22596 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22597 long arg2 ;
22598 wxString *arg3 = 0 ;
22599 bool temp3 = false ;
22600 PyObject * obj0 = 0 ;
22601 PyObject * obj1 = 0 ;
22602 PyObject * obj2 = 0 ;
22603 char *kwnames[] = {
22604 (char *) "self",(char *) "item",(char *) "str", NULL
22605 };
22606
22607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22610 arg2 = (long)SWIG_As_long(obj1);
22611 if (PyErr_Occurred()) SWIG_fail;
22612 {
22613 arg3 = wxString_in_helper(obj2);
22614 if (arg3 == NULL) SWIG_fail;
22615 temp3 = true;
22616 }
22617 {
22618 PyThreadState* __tstate = wxPyBeginAllowThreads();
22619 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22620
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 Py_INCREF(Py_None); resultobj = Py_None;
22625 {
22626 if (temp3)
22627 delete arg3;
22628 }
22629 return resultobj;
22630 fail:
22631 {
22632 if (temp3)
22633 delete arg3;
22634 }
22635 return NULL;
22636 }
22637
22638
22639 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22640 PyObject *resultobj;
22641 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22642 long arg2 ;
22643 long result;
22644 PyObject * obj0 = 0 ;
22645 PyObject * obj1 = 0 ;
22646 char *kwnames[] = {
22647 (char *) "self",(char *) "item", NULL
22648 };
22649
22650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22653 arg2 = (long)SWIG_As_long(obj1);
22654 if (PyErr_Occurred()) SWIG_fail;
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22658
22659 wxPyEndAllowThreads(__tstate);
22660 if (PyErr_Occurred()) SWIG_fail;
22661 }
22662 resultobj = SWIG_From_long((long)result);
22663 return resultobj;
22664 fail:
22665 return NULL;
22666 }
22667
22668
22669 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22670 PyObject *resultobj;
22671 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22672 long arg2 ;
22673 long arg3 ;
22674 bool result;
22675 PyObject * obj0 = 0 ;
22676 PyObject * obj1 = 0 ;
22677 PyObject * obj2 = 0 ;
22678 char *kwnames[] = {
22679 (char *) "self",(char *) "item",(char *) "data", NULL
22680 };
22681
22682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22685 arg2 = (long)SWIG_As_long(obj1);
22686 if (PyErr_Occurred()) SWIG_fail;
22687 arg3 = (long)SWIG_As_long(obj2);
22688 if (PyErr_Occurred()) SWIG_fail;
22689 {
22690 PyThreadState* __tstate = wxPyBeginAllowThreads();
22691 result = (bool)(arg1)->SetItemData(arg2,arg3);
22692
22693 wxPyEndAllowThreads(__tstate);
22694 if (PyErr_Occurred()) SWIG_fail;
22695 }
22696 {
22697 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22698 }
22699 return resultobj;
22700 fail:
22701 return NULL;
22702 }
22703
22704
22705 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22706 PyObject *resultobj;
22707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22708 long arg2 ;
22709 wxPoint result;
22710 PyObject * obj0 = 0 ;
22711 PyObject * obj1 = 0 ;
22712 char *kwnames[] = {
22713 (char *) "self",(char *) "item", NULL
22714 };
22715
22716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22719 arg2 = (long)SWIG_As_long(obj1);
22720 if (PyErr_Occurred()) SWIG_fail;
22721 {
22722 PyThreadState* __tstate = wxPyBeginAllowThreads();
22723 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22724
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 {
22729 wxPoint * resultptr;
22730 resultptr = new wxPoint((wxPoint &) result);
22731 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22732 }
22733 return resultobj;
22734 fail:
22735 return NULL;
22736 }
22737
22738
22739 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22740 PyObject *resultobj;
22741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22742 long arg2 ;
22743 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22744 wxRect result;
22745 PyObject * obj0 = 0 ;
22746 PyObject * obj1 = 0 ;
22747 PyObject * obj2 = 0 ;
22748 char *kwnames[] = {
22749 (char *) "self",(char *) "item",(char *) "code", NULL
22750 };
22751
22752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22755 arg2 = (long)SWIG_As_long(obj1);
22756 if (PyErr_Occurred()) SWIG_fail;
22757 if (obj2) {
22758 arg3 = (int)SWIG_As_int(obj2);
22759 if (PyErr_Occurred()) SWIG_fail;
22760 }
22761 {
22762 PyThreadState* __tstate = wxPyBeginAllowThreads();
22763 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22764
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 {
22769 wxRect * resultptr;
22770 resultptr = new wxRect((wxRect &) result);
22771 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22772 }
22773 return resultobj;
22774 fail:
22775 return NULL;
22776 }
22777
22778
22779 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22780 PyObject *resultobj;
22781 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22782 long arg2 ;
22783 wxPoint *arg3 = 0 ;
22784 bool result;
22785 wxPoint temp3 ;
22786 PyObject * obj0 = 0 ;
22787 PyObject * obj1 = 0 ;
22788 PyObject * obj2 = 0 ;
22789 char *kwnames[] = {
22790 (char *) "self",(char *) "item",(char *) "pos", NULL
22791 };
22792
22793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22796 arg2 = (long)SWIG_As_long(obj1);
22797 if (PyErr_Occurred()) SWIG_fail;
22798 {
22799 arg3 = &temp3;
22800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22801 }
22802 {
22803 PyThreadState* __tstate = wxPyBeginAllowThreads();
22804 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22805
22806 wxPyEndAllowThreads(__tstate);
22807 if (PyErr_Occurred()) SWIG_fail;
22808 }
22809 {
22810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22811 }
22812 return resultobj;
22813 fail:
22814 return NULL;
22815 }
22816
22817
22818 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22819 PyObject *resultobj;
22820 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22821 int result;
22822 PyObject * obj0 = 0 ;
22823 char *kwnames[] = {
22824 (char *) "self", NULL
22825 };
22826
22827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22830 {
22831 PyThreadState* __tstate = wxPyBeginAllowThreads();
22832 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22833
22834 wxPyEndAllowThreads(__tstate);
22835 if (PyErr_Occurred()) SWIG_fail;
22836 }
22837 resultobj = SWIG_From_int((int)result);
22838 return resultobj;
22839 fail:
22840 return NULL;
22841 }
22842
22843
22844 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22845 PyObject *resultobj;
22846 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22847 int result;
22848 PyObject * obj0 = 0 ;
22849 char *kwnames[] = {
22850 (char *) "self", NULL
22851 };
22852
22853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22856 {
22857 PyThreadState* __tstate = wxPyBeginAllowThreads();
22858 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22859
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_From_int((int)result);
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22871 PyObject *resultobj;
22872 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22873 wxSize result;
22874 PyObject * obj0 = 0 ;
22875 char *kwnames[] = {
22876 (char *) "self", NULL
22877 };
22878
22879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 {
22890 wxSize * resultptr;
22891 resultptr = new wxSize((wxSize &) result);
22892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22893 }
22894 return resultobj;
22895 fail:
22896 return NULL;
22897 }
22898
22899
22900 static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22901 PyObject *resultobj;
22902 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22903 int arg2 ;
22904 bool arg3 = (bool) false ;
22905 PyObject * obj0 = 0 ;
22906 PyObject * obj1 = 0 ;
22907 PyObject * obj2 = 0 ;
22908 char *kwnames[] = {
22909 (char *) "self",(char *) "spacing",(char *) "isSmall", NULL
22910 };
22911
22912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail;
22913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22915 arg2 = (int)SWIG_As_int(obj1);
22916 if (PyErr_Occurred()) SWIG_fail;
22917 if (obj2) {
22918 arg3 = (bool)SWIG_As_bool(obj2);
22919 if (PyErr_Occurred()) SWIG_fail;
22920 }
22921 {
22922 PyThreadState* __tstate = wxPyBeginAllowThreads();
22923 (arg1)->SetItemSpacing(arg2,arg3);
22924
22925 wxPyEndAllowThreads(__tstate);
22926 if (PyErr_Occurred()) SWIG_fail;
22927 }
22928 Py_INCREF(Py_None); resultobj = Py_None;
22929 return resultobj;
22930 fail:
22931 return NULL;
22932 }
22933
22934
22935 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22936 PyObject *resultobj;
22937 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22938 int result;
22939 PyObject * obj0 = 0 ;
22940 char *kwnames[] = {
22941 (char *) "self", NULL
22942 };
22943
22944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22947 {
22948 PyThreadState* __tstate = wxPyBeginAllowThreads();
22949 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22950
22951 wxPyEndAllowThreads(__tstate);
22952 if (PyErr_Occurred()) SWIG_fail;
22953 }
22954 resultobj = SWIG_From_int((int)result);
22955 return resultobj;
22956 fail:
22957 return NULL;
22958 }
22959
22960
22961 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22962 PyObject *resultobj;
22963 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22964 wxColour result;
22965 PyObject * obj0 = 0 ;
22966 char *kwnames[] = {
22967 (char *) "self", NULL
22968 };
22969
22970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22973 {
22974 PyThreadState* __tstate = wxPyBeginAllowThreads();
22975 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22976
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 {
22981 wxColour * resultptr;
22982 resultptr = new wxColour((wxColour &) result);
22983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22984 }
22985 return resultobj;
22986 fail:
22987 return NULL;
22988 }
22989
22990
22991 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22992 PyObject *resultobj;
22993 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22994 wxColour *arg2 = 0 ;
22995 wxColour temp2 ;
22996 PyObject * obj0 = 0 ;
22997 PyObject * obj1 = 0 ;
22998 char *kwnames[] = {
22999 (char *) "self",(char *) "col", NULL
23000 };
23001
23002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
23003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23005 {
23006 arg2 = &temp2;
23007 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23008 }
23009 {
23010 PyThreadState* __tstate = wxPyBeginAllowThreads();
23011 (arg1)->SetTextColour((wxColour const &)*arg2);
23012
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 Py_INCREF(Py_None); resultobj = Py_None;
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj;
23025 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23026 long result;
23027 PyObject * obj0 = 0 ;
23028 char *kwnames[] = {
23029 (char *) "self", NULL
23030 };
23031
23032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
23033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23035 {
23036 PyThreadState* __tstate = wxPyBeginAllowThreads();
23037 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
23038
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 resultobj = SWIG_From_long((long)result);
23043 return resultobj;
23044 fail:
23045 return NULL;
23046 }
23047
23048
23049 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj;
23051 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23052 long arg2 ;
23053 bool arg3 = (bool) true ;
23054 PyObject * obj0 = 0 ;
23055 PyObject * obj1 = 0 ;
23056 PyObject * obj2 = 0 ;
23057 char *kwnames[] = {
23058 (char *) "self",(char *) "style",(char *) "add", NULL
23059 };
23060
23061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
23062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23064 arg2 = (long)SWIG_As_long(obj1);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 if (obj2) {
23067 arg3 = (bool)SWIG_As_bool(obj2);
23068 if (PyErr_Occurred()) SWIG_fail;
23069 }
23070 {
23071 PyThreadState* __tstate = wxPyBeginAllowThreads();
23072 (arg1)->SetSingleStyle(arg2,arg3);
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_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
23085 PyObject *resultobj;
23086 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23087 long arg2 ;
23088 PyObject * obj0 = 0 ;
23089 PyObject * obj1 = 0 ;
23090 char *kwnames[] = {
23091 (char *) "self",(char *) "style", NULL
23092 };
23093
23094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
23095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23097 arg2 = (long)SWIG_As_long(obj1);
23098 if (PyErr_Occurred()) SWIG_fail;
23099 {
23100 PyThreadState* __tstate = wxPyBeginAllowThreads();
23101 (arg1)->SetWindowStyleFlag(arg2);
23102
23103 wxPyEndAllowThreads(__tstate);
23104 if (PyErr_Occurred()) SWIG_fail;
23105 }
23106 Py_INCREF(Py_None); resultobj = Py_None;
23107 return resultobj;
23108 fail:
23109 return NULL;
23110 }
23111
23112
23113 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
23114 PyObject *resultobj;
23115 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23116 long arg2 ;
23117 int arg3 = (int) wxLIST_NEXT_ALL ;
23118 int arg4 = (int) wxLIST_STATE_DONTCARE ;
23119 long result;
23120 PyObject * obj0 = 0 ;
23121 PyObject * obj1 = 0 ;
23122 PyObject * obj2 = 0 ;
23123 PyObject * obj3 = 0 ;
23124 char *kwnames[] = {
23125 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
23126 };
23127
23128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23131 arg2 = (long)SWIG_As_long(obj1);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 if (obj2) {
23134 arg3 = (int)SWIG_As_int(obj2);
23135 if (PyErr_Occurred()) SWIG_fail;
23136 }
23137 if (obj3) {
23138 arg4 = (int)SWIG_As_int(obj3);
23139 if (PyErr_Occurred()) SWIG_fail;
23140 }
23141 {
23142 PyThreadState* __tstate = wxPyBeginAllowThreads();
23143 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
23144
23145 wxPyEndAllowThreads(__tstate);
23146 if (PyErr_Occurred()) SWIG_fail;
23147 }
23148 resultobj = SWIG_From_long((long)result);
23149 return resultobj;
23150 fail:
23151 return NULL;
23152 }
23153
23154
23155 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23156 PyObject *resultobj;
23157 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23158 int arg2 ;
23159 wxImageList *result;
23160 PyObject * obj0 = 0 ;
23161 PyObject * obj1 = 0 ;
23162 char *kwnames[] = {
23163 (char *) "self",(char *) "which", NULL
23164 };
23165
23166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
23167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23169 arg2 = (int)SWIG_As_int(obj1);
23170 if (PyErr_Occurred()) SWIG_fail;
23171 {
23172 PyThreadState* __tstate = wxPyBeginAllowThreads();
23173 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
23174
23175 wxPyEndAllowThreads(__tstate);
23176 if (PyErr_Occurred()) SWIG_fail;
23177 }
23178 {
23179 resultobj = wxPyMake_wxObject(result, 0);
23180 }
23181 return resultobj;
23182 fail:
23183 return NULL;
23184 }
23185
23186
23187 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23188 PyObject *resultobj;
23189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23190 wxImageList *arg2 = (wxImageList *) 0 ;
23191 int arg3 ;
23192 PyObject * obj0 = 0 ;
23193 PyObject * obj1 = 0 ;
23194 PyObject * obj2 = 0 ;
23195 char *kwnames[] = {
23196 (char *) "self",(char *) "imageList",(char *) "which", NULL
23197 };
23198
23199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23204 arg3 = (int)SWIG_As_int(obj2);
23205 if (PyErr_Occurred()) SWIG_fail;
23206 {
23207 PyThreadState* __tstate = wxPyBeginAllowThreads();
23208 (arg1)->SetImageList(arg2,arg3);
23209
23210 wxPyEndAllowThreads(__tstate);
23211 if (PyErr_Occurred()) SWIG_fail;
23212 }
23213 Py_INCREF(Py_None); resultobj = Py_None;
23214 return resultobj;
23215 fail:
23216 return NULL;
23217 }
23218
23219
23220 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23221 PyObject *resultobj;
23222 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23223 wxImageList *arg2 = (wxImageList *) 0 ;
23224 int arg3 ;
23225 PyObject * obj0 = 0 ;
23226 PyObject * obj1 = 0 ;
23227 PyObject * obj2 = 0 ;
23228 char *kwnames[] = {
23229 (char *) "self",(char *) "imageList",(char *) "which", NULL
23230 };
23231
23232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23236 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23237 arg3 = (int)SWIG_As_int(obj2);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 {
23240 PyThreadState* __tstate = wxPyBeginAllowThreads();
23241 (arg1)->AssignImageList(arg2,arg3);
23242
23243 wxPyEndAllowThreads(__tstate);
23244 if (PyErr_Occurred()) SWIG_fail;
23245 }
23246 Py_INCREF(Py_None); resultobj = Py_None;
23247 return resultobj;
23248 fail:
23249 return NULL;
23250 }
23251
23252
23253 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
23254 PyObject *resultobj;
23255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23256 bool result;
23257 PyObject * obj0 = 0 ;
23258 char *kwnames[] = {
23259 (char *) "self", NULL
23260 };
23261
23262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
23263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
23268
23269 wxPyEndAllowThreads(__tstate);
23270 if (PyErr_Occurred()) SWIG_fail;
23271 }
23272 {
23273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23274 }
23275 return resultobj;
23276 fail:
23277 return NULL;
23278 }
23279
23280
23281 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
23282 PyObject *resultobj;
23283 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23284 bool result;
23285 PyObject * obj0 = 0 ;
23286 char *kwnames[] = {
23287 (char *) "self", NULL
23288 };
23289
23290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
23291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
23296
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23302 }
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23312 long arg2 ;
23313 PyObject * obj0 = 0 ;
23314 PyObject * obj1 = 0 ;
23315 char *kwnames[] = {
23316 (char *) "self",(char *) "item", NULL
23317 };
23318
23319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
23320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23322 arg2 = (long)SWIG_As_long(obj1);
23323 if (PyErr_Occurred()) SWIG_fail;
23324 {
23325 PyThreadState* __tstate = wxPyBeginAllowThreads();
23326 (arg1)->RefreshItem(arg2);
23327
23328 wxPyEndAllowThreads(__tstate);
23329 if (PyErr_Occurred()) SWIG_fail;
23330 }
23331 Py_INCREF(Py_None); resultobj = Py_None;
23332 return resultobj;
23333 fail:
23334 return NULL;
23335 }
23336
23337
23338 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
23339 PyObject *resultobj;
23340 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23341 long arg2 ;
23342 long arg3 ;
23343 PyObject * obj0 = 0 ;
23344 PyObject * obj1 = 0 ;
23345 PyObject * obj2 = 0 ;
23346 char *kwnames[] = {
23347 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
23348 };
23349
23350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
23351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23353 arg2 = (long)SWIG_As_long(obj1);
23354 if (PyErr_Occurred()) SWIG_fail;
23355 arg3 = (long)SWIG_As_long(obj2);
23356 if (PyErr_Occurred()) SWIG_fail;
23357 {
23358 PyThreadState* __tstate = wxPyBeginAllowThreads();
23359 (arg1)->RefreshItems(arg2,arg3);
23360
23361 wxPyEndAllowThreads(__tstate);
23362 if (PyErr_Occurred()) SWIG_fail;
23363 }
23364 Py_INCREF(Py_None); resultobj = Py_None;
23365 return resultobj;
23366 fail:
23367 return NULL;
23368 }
23369
23370
23371 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
23372 PyObject *resultobj;
23373 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23374 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
23375 bool result;
23376 PyObject * obj0 = 0 ;
23377 PyObject * obj1 = 0 ;
23378 char *kwnames[] = {
23379 (char *) "self",(char *) "flag", NULL
23380 };
23381
23382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
23383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23385 if (obj1) {
23386 arg2 = (int)SWIG_As_int(obj1);
23387 if (PyErr_Occurred()) SWIG_fail;
23388 }
23389 {
23390 PyThreadState* __tstate = wxPyBeginAllowThreads();
23391 result = (bool)(arg1)->Arrange(arg2);
23392
23393 wxPyEndAllowThreads(__tstate);
23394 if (PyErr_Occurred()) SWIG_fail;
23395 }
23396 {
23397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23398 }
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
23406 PyObject *resultobj;
23407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23408 long arg2 ;
23409 bool result;
23410 PyObject * obj0 = 0 ;
23411 PyObject * obj1 = 0 ;
23412 char *kwnames[] = {
23413 (char *) "self",(char *) "item", NULL
23414 };
23415
23416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
23417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23419 arg2 = (long)SWIG_As_long(obj1);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 {
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 result = (bool)(arg1)->DeleteItem(arg2);
23424
23425 wxPyEndAllowThreads(__tstate);
23426 if (PyErr_Occurred()) SWIG_fail;
23427 }
23428 {
23429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23430 }
23431 return resultobj;
23432 fail:
23433 return NULL;
23434 }
23435
23436
23437 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
23438 PyObject *resultobj;
23439 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23440 bool result;
23441 PyObject * obj0 = 0 ;
23442 char *kwnames[] = {
23443 (char *) "self", NULL
23444 };
23445
23446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
23447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23449 {
23450 PyThreadState* __tstate = wxPyBeginAllowThreads();
23451 result = (bool)(arg1)->DeleteAllItems();
23452
23453 wxPyEndAllowThreads(__tstate);
23454 if (PyErr_Occurred()) SWIG_fail;
23455 }
23456 {
23457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23458 }
23459 return resultobj;
23460 fail:
23461 return NULL;
23462 }
23463
23464
23465 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23466 PyObject *resultobj;
23467 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23468 int arg2 ;
23469 bool result;
23470 PyObject * obj0 = 0 ;
23471 PyObject * obj1 = 0 ;
23472 char *kwnames[] = {
23473 (char *) "self",(char *) "col", NULL
23474 };
23475
23476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
23477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23479 arg2 = (int)SWIG_As_int(obj1);
23480 if (PyErr_Occurred()) SWIG_fail;
23481 {
23482 PyThreadState* __tstate = wxPyBeginAllowThreads();
23483 result = (bool)(arg1)->DeleteColumn(arg2);
23484
23485 wxPyEndAllowThreads(__tstate);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
23488 {
23489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23490 }
23491 return resultobj;
23492 fail:
23493 return NULL;
23494 }
23495
23496
23497 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23498 PyObject *resultobj;
23499 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23500 bool result;
23501 PyObject * obj0 = 0 ;
23502 char *kwnames[] = {
23503 (char *) "self", NULL
23504 };
23505
23506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
23507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23509 {
23510 PyThreadState* __tstate = wxPyBeginAllowThreads();
23511 result = (bool)(arg1)->DeleteAllColumns();
23512
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 {
23517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23518 }
23519 return resultobj;
23520 fail:
23521 return NULL;
23522 }
23523
23524
23525 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23526 PyObject *resultobj;
23527 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23528 PyObject * obj0 = 0 ;
23529 char *kwnames[] = {
23530 (char *) "self", NULL
23531 };
23532
23533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23536 {
23537 PyThreadState* __tstate = wxPyBeginAllowThreads();
23538 (arg1)->ClearAll();
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_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23551 PyObject *resultobj;
23552 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23553 long arg2 ;
23554 PyObject * obj0 = 0 ;
23555 PyObject * obj1 = 0 ;
23556 char *kwnames[] = {
23557 (char *) "self",(char *) "item", NULL
23558 };
23559
23560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23563 arg2 = (long)SWIG_As_long(obj1);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 {
23566 PyThreadState* __tstate = wxPyBeginAllowThreads();
23567 (arg1)->EditLabel(arg2);
23568
23569 wxPyEndAllowThreads(__tstate);
23570 if (PyErr_Occurred()) SWIG_fail;
23571 }
23572 Py_INCREF(Py_None); resultobj = Py_None;
23573 return resultobj;
23574 fail:
23575 return NULL;
23576 }
23577
23578
23579 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23580 PyObject *resultobj;
23581 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23582 long arg2 ;
23583 bool result;
23584 PyObject * obj0 = 0 ;
23585 PyObject * obj1 = 0 ;
23586 char *kwnames[] = {
23587 (char *) "self",(char *) "item", NULL
23588 };
23589
23590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23593 arg2 = (long)SWIG_As_long(obj1);
23594 if (PyErr_Occurred()) SWIG_fail;
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 result = (bool)(arg1)->EnsureVisible(arg2);
23598
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 {
23603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23604 }
23605 return resultobj;
23606 fail:
23607 return NULL;
23608 }
23609
23610
23611 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23612 PyObject *resultobj;
23613 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23614 long arg2 ;
23615 wxString *arg3 = 0 ;
23616 bool arg4 = (bool) false ;
23617 long result;
23618 bool temp3 = false ;
23619 PyObject * obj0 = 0 ;
23620 PyObject * obj1 = 0 ;
23621 PyObject * obj2 = 0 ;
23622 PyObject * obj3 = 0 ;
23623 char *kwnames[] = {
23624 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23625 };
23626
23627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23630 arg2 = (long)SWIG_As_long(obj1);
23631 if (PyErr_Occurred()) SWIG_fail;
23632 {
23633 arg3 = wxString_in_helper(obj2);
23634 if (arg3 == NULL) SWIG_fail;
23635 temp3 = true;
23636 }
23637 if (obj3) {
23638 arg4 = (bool)SWIG_As_bool(obj3);
23639 if (PyErr_Occurred()) SWIG_fail;
23640 }
23641 {
23642 PyThreadState* __tstate = wxPyBeginAllowThreads();
23643 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23644
23645 wxPyEndAllowThreads(__tstate);
23646 if (PyErr_Occurred()) SWIG_fail;
23647 }
23648 resultobj = SWIG_From_long((long)result);
23649 {
23650 if (temp3)
23651 delete arg3;
23652 }
23653 return resultobj;
23654 fail:
23655 {
23656 if (temp3)
23657 delete arg3;
23658 }
23659 return NULL;
23660 }
23661
23662
23663 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj;
23665 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23666 long arg2 ;
23667 long arg3 ;
23668 long result;
23669 PyObject * obj0 = 0 ;
23670 PyObject * obj1 = 0 ;
23671 PyObject * obj2 = 0 ;
23672 char *kwnames[] = {
23673 (char *) "self",(char *) "start",(char *) "data", NULL
23674 };
23675
23676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23679 arg2 = (long)SWIG_As_long(obj1);
23680 if (PyErr_Occurred()) SWIG_fail;
23681 arg3 = (long)SWIG_As_long(obj2);
23682 if (PyErr_Occurred()) SWIG_fail;
23683 {
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
23685 result = (long)(arg1)->FindItem(arg2,arg3);
23686
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 resultobj = SWIG_From_long((long)result);
23691 return resultobj;
23692 fail:
23693 return NULL;
23694 }
23695
23696
23697 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23698 PyObject *resultobj;
23699 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23700 long arg2 ;
23701 wxPoint *arg3 = 0 ;
23702 int arg4 ;
23703 long result;
23704 wxPoint temp3 ;
23705 PyObject * obj0 = 0 ;
23706 PyObject * obj1 = 0 ;
23707 PyObject * obj2 = 0 ;
23708 PyObject * obj3 = 0 ;
23709 char *kwnames[] = {
23710 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23711 };
23712
23713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23716 arg2 = (long)SWIG_As_long(obj1);
23717 if (PyErr_Occurred()) SWIG_fail;
23718 {
23719 arg3 = &temp3;
23720 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23721 }
23722 arg4 = (int)SWIG_As_int(obj3);
23723 if (PyErr_Occurred()) SWIG_fail;
23724 {
23725 PyThreadState* __tstate = wxPyBeginAllowThreads();
23726 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23727
23728 wxPyEndAllowThreads(__tstate);
23729 if (PyErr_Occurred()) SWIG_fail;
23730 }
23731 resultobj = SWIG_From_long((long)result);
23732 return resultobj;
23733 fail:
23734 return NULL;
23735 }
23736
23737
23738 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23739 PyObject *resultobj;
23740 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23741 wxPoint *arg2 = 0 ;
23742 int *arg3 = 0 ;
23743 long result;
23744 wxPoint temp2 ;
23745 int temp3 ;
23746 int res3 = 0 ;
23747 PyObject * obj0 = 0 ;
23748 PyObject * obj1 = 0 ;
23749 char *kwnames[] = {
23750 (char *) "self",(char *) "point", NULL
23751 };
23752
23753 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23757 {
23758 arg2 = &temp2;
23759 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23760 }
23761 {
23762 PyThreadState* __tstate = wxPyBeginAllowThreads();
23763 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23764
23765 wxPyEndAllowThreads(__tstate);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 }
23768 resultobj = SWIG_From_long((long)result);
23769 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23770 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23771 return resultobj;
23772 fail:
23773 return NULL;
23774 }
23775
23776
23777 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23778 PyObject *resultobj;
23779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23780 wxListItem *arg2 = 0 ;
23781 long result;
23782 PyObject * obj0 = 0 ;
23783 PyObject * obj1 = 0 ;
23784 char *kwnames[] = {
23785 (char *) "self",(char *) "info", NULL
23786 };
23787
23788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23791 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23792 SWIG_POINTER_EXCEPTION | 0)) == -1)
23793 SWIG_fail;
23794 if (arg2 == NULL) {
23795 PyErr_SetString(PyExc_TypeError,"null reference");
23796 SWIG_fail;
23797 }
23798 {
23799 PyThreadState* __tstate = wxPyBeginAllowThreads();
23800 result = (long)(arg1)->InsertItem(*arg2);
23801
23802 wxPyEndAllowThreads(__tstate);
23803 if (PyErr_Occurred()) SWIG_fail;
23804 }
23805 resultobj = SWIG_From_long((long)result);
23806 return resultobj;
23807 fail:
23808 return NULL;
23809 }
23810
23811
23812 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23813 PyObject *resultobj;
23814 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23815 long arg2 ;
23816 wxString *arg3 = 0 ;
23817 long result;
23818 bool temp3 = false ;
23819 PyObject * obj0 = 0 ;
23820 PyObject * obj1 = 0 ;
23821 PyObject * obj2 = 0 ;
23822 char *kwnames[] = {
23823 (char *) "self",(char *) "index",(char *) "label", NULL
23824 };
23825
23826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23829 arg2 = (long)SWIG_As_long(obj1);
23830 if (PyErr_Occurred()) SWIG_fail;
23831 {
23832 arg3 = wxString_in_helper(obj2);
23833 if (arg3 == NULL) SWIG_fail;
23834 temp3 = true;
23835 }
23836 {
23837 PyThreadState* __tstate = wxPyBeginAllowThreads();
23838 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23839
23840 wxPyEndAllowThreads(__tstate);
23841 if (PyErr_Occurred()) SWIG_fail;
23842 }
23843 resultobj = SWIG_From_long((long)result);
23844 {
23845 if (temp3)
23846 delete arg3;
23847 }
23848 return resultobj;
23849 fail:
23850 {
23851 if (temp3)
23852 delete arg3;
23853 }
23854 return NULL;
23855 }
23856
23857
23858 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23859 PyObject *resultobj;
23860 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23861 long arg2 ;
23862 int arg3 ;
23863 long result;
23864 PyObject * obj0 = 0 ;
23865 PyObject * obj1 = 0 ;
23866 PyObject * obj2 = 0 ;
23867 char *kwnames[] = {
23868 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23869 };
23870
23871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23874 arg2 = (long)SWIG_As_long(obj1);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 arg3 = (int)SWIG_As_int(obj2);
23877 if (PyErr_Occurred()) SWIG_fail;
23878 {
23879 PyThreadState* __tstate = wxPyBeginAllowThreads();
23880 result = (long)(arg1)->InsertItem(arg2,arg3);
23881
23882 wxPyEndAllowThreads(__tstate);
23883 if (PyErr_Occurred()) SWIG_fail;
23884 }
23885 resultobj = SWIG_From_long((long)result);
23886 return resultobj;
23887 fail:
23888 return NULL;
23889 }
23890
23891
23892 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23893 PyObject *resultobj;
23894 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23895 long arg2 ;
23896 wxString *arg3 = 0 ;
23897 int arg4 ;
23898 long result;
23899 bool temp3 = false ;
23900 PyObject * obj0 = 0 ;
23901 PyObject * obj1 = 0 ;
23902 PyObject * obj2 = 0 ;
23903 PyObject * obj3 = 0 ;
23904 char *kwnames[] = {
23905 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23906 };
23907
23908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23911 arg2 = (long)SWIG_As_long(obj1);
23912 if (PyErr_Occurred()) SWIG_fail;
23913 {
23914 arg3 = wxString_in_helper(obj2);
23915 if (arg3 == NULL) SWIG_fail;
23916 temp3 = true;
23917 }
23918 arg4 = (int)SWIG_As_int(obj3);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 {
23921 PyThreadState* __tstate = wxPyBeginAllowThreads();
23922 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23923
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_From_long((long)result);
23928 {
23929 if (temp3)
23930 delete arg3;
23931 }
23932 return resultobj;
23933 fail:
23934 {
23935 if (temp3)
23936 delete arg3;
23937 }
23938 return NULL;
23939 }
23940
23941
23942 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23943 PyObject *resultobj;
23944 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23945 long arg2 ;
23946 wxListItem *arg3 = 0 ;
23947 long result;
23948 PyObject * obj0 = 0 ;
23949 PyObject * obj1 = 0 ;
23950 PyObject * obj2 = 0 ;
23951 char *kwnames[] = {
23952 (char *) "self",(char *) "col",(char *) "info", NULL
23953 };
23954
23955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23958 arg2 = (long)SWIG_As_long(obj1);
23959 if (PyErr_Occurred()) SWIG_fail;
23960 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23961 SWIG_POINTER_EXCEPTION | 0)) == -1)
23962 SWIG_fail;
23963 if (arg3 == NULL) {
23964 PyErr_SetString(PyExc_TypeError,"null reference");
23965 SWIG_fail;
23966 }
23967 {
23968 PyThreadState* __tstate = wxPyBeginAllowThreads();
23969 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23970
23971 wxPyEndAllowThreads(__tstate);
23972 if (PyErr_Occurred()) SWIG_fail;
23973 }
23974 resultobj = SWIG_From_long((long)result);
23975 return resultobj;
23976 fail:
23977 return NULL;
23978 }
23979
23980
23981 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj;
23983 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23984 long arg2 ;
23985 wxString *arg3 = 0 ;
23986 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23987 int arg5 = (int) -1 ;
23988 long result;
23989 bool temp3 = false ;
23990 PyObject * obj0 = 0 ;
23991 PyObject * obj1 = 0 ;
23992 PyObject * obj2 = 0 ;
23993 PyObject * obj3 = 0 ;
23994 PyObject * obj4 = 0 ;
23995 char *kwnames[] = {
23996 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23997 };
23998
23999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
24000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24002 arg2 = (long)SWIG_As_long(obj1);
24003 if (PyErr_Occurred()) SWIG_fail;
24004 {
24005 arg3 = wxString_in_helper(obj2);
24006 if (arg3 == NULL) SWIG_fail;
24007 temp3 = true;
24008 }
24009 if (obj3) {
24010 arg4 = (int)SWIG_As_int(obj3);
24011 if (PyErr_Occurred()) SWIG_fail;
24012 }
24013 if (obj4) {
24014 arg5 = (int)SWIG_As_int(obj4);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 }
24017 {
24018 PyThreadState* __tstate = wxPyBeginAllowThreads();
24019 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
24020
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 resultobj = SWIG_From_long((long)result);
24025 {
24026 if (temp3)
24027 delete arg3;
24028 }
24029 return resultobj;
24030 fail:
24031 {
24032 if (temp3)
24033 delete arg3;
24034 }
24035 return NULL;
24036 }
24037
24038
24039 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
24040 PyObject *resultobj;
24041 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24042 long arg2 ;
24043 PyObject * obj0 = 0 ;
24044 PyObject * obj1 = 0 ;
24045 char *kwnames[] = {
24046 (char *) "self",(char *) "count", NULL
24047 };
24048
24049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
24050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24052 arg2 = (long)SWIG_As_long(obj1);
24053 if (PyErr_Occurred()) SWIG_fail;
24054 {
24055 PyThreadState* __tstate = wxPyBeginAllowThreads();
24056 (arg1)->SetItemCount(arg2);
24057
24058 wxPyEndAllowThreads(__tstate);
24059 if (PyErr_Occurred()) SWIG_fail;
24060 }
24061 Py_INCREF(Py_None); resultobj = Py_None;
24062 return resultobj;
24063 fail:
24064 return NULL;
24065 }
24066
24067
24068 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
24069 PyObject *resultobj;
24070 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24071 int arg2 ;
24072 int arg3 ;
24073 bool result;
24074 PyObject * obj0 = 0 ;
24075 PyObject * obj1 = 0 ;
24076 PyObject * obj2 = 0 ;
24077 char *kwnames[] = {
24078 (char *) "self",(char *) "dx",(char *) "dy", NULL
24079 };
24080
24081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
24082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24084 arg2 = (int)SWIG_As_int(obj1);
24085 if (PyErr_Occurred()) SWIG_fail;
24086 arg3 = (int)SWIG_As_int(obj2);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 {
24089 PyThreadState* __tstate = wxPyBeginAllowThreads();
24090 result = (bool)(arg1)->ScrollList(arg2,arg3);
24091
24092 wxPyEndAllowThreads(__tstate);
24093 if (PyErr_Occurred()) SWIG_fail;
24094 }
24095 {
24096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24097 }
24098 return resultobj;
24099 fail:
24100 return NULL;
24101 }
24102
24103
24104 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24105 PyObject *resultobj;
24106 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24107 long arg2 ;
24108 wxColour *arg3 = 0 ;
24109 wxColour temp3 ;
24110 PyObject * obj0 = 0 ;
24111 PyObject * obj1 = 0 ;
24112 PyObject * obj2 = 0 ;
24113 char *kwnames[] = {
24114 (char *) "self",(char *) "item",(char *) "col", NULL
24115 };
24116
24117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24120 arg2 = (long)SWIG_As_long(obj1);
24121 if (PyErr_Occurred()) SWIG_fail;
24122 {
24123 arg3 = &temp3;
24124 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24125 }
24126 {
24127 PyThreadState* __tstate = wxPyBeginAllowThreads();
24128 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
24129
24130 wxPyEndAllowThreads(__tstate);
24131 if (PyErr_Occurred()) SWIG_fail;
24132 }
24133 Py_INCREF(Py_None); resultobj = Py_None;
24134 return resultobj;
24135 fail:
24136 return NULL;
24137 }
24138
24139
24140 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
24141 PyObject *resultobj;
24142 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24143 long arg2 ;
24144 wxColour result;
24145 PyObject * obj0 = 0 ;
24146 PyObject * obj1 = 0 ;
24147 char *kwnames[] = {
24148 (char *) "self",(char *) "item", NULL
24149 };
24150
24151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
24152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24154 arg2 = (long)SWIG_As_long(obj1);
24155 if (PyErr_Occurred()) SWIG_fail;
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
24159
24160 wxPyEndAllowThreads(__tstate);
24161 if (PyErr_Occurred()) SWIG_fail;
24162 }
24163 {
24164 wxColour * resultptr;
24165 resultptr = new wxColour((wxColour &) result);
24166 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24167 }
24168 return resultobj;
24169 fail:
24170 return NULL;
24171 }
24172
24173
24174 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24175 PyObject *resultobj;
24176 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24177 long arg2 ;
24178 wxColour *arg3 = 0 ;
24179 wxColour temp3 ;
24180 PyObject * obj0 = 0 ;
24181 PyObject * obj1 = 0 ;
24182 PyObject * obj2 = 0 ;
24183 char *kwnames[] = {
24184 (char *) "self",(char *) "item",(char *) "col", NULL
24185 };
24186
24187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24190 arg2 = (long)SWIG_As_long(obj1);
24191 if (PyErr_Occurred()) SWIG_fail;
24192 {
24193 arg3 = &temp3;
24194 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24195 }
24196 {
24197 PyThreadState* __tstate = wxPyBeginAllowThreads();
24198 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
24199
24200 wxPyEndAllowThreads(__tstate);
24201 if (PyErr_Occurred()) SWIG_fail;
24202 }
24203 Py_INCREF(Py_None); resultobj = Py_None;
24204 return resultobj;
24205 fail:
24206 return NULL;
24207 }
24208
24209
24210 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24211 PyObject *resultobj;
24212 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24213 long arg2 ;
24214 wxColour result;
24215 PyObject * obj0 = 0 ;
24216 PyObject * obj1 = 0 ;
24217 char *kwnames[] = {
24218 (char *) "self",(char *) "item", NULL
24219 };
24220
24221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24224 arg2 = (long)SWIG_As_long(obj1);
24225 if (PyErr_Occurred()) SWIG_fail;
24226 {
24227 PyThreadState* __tstate = wxPyBeginAllowThreads();
24228 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
24229
24230 wxPyEndAllowThreads(__tstate);
24231 if (PyErr_Occurred()) SWIG_fail;
24232 }
24233 {
24234 wxColour * resultptr;
24235 resultptr = new wxColour((wxColour &) result);
24236 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24237 }
24238 return resultobj;
24239 fail:
24240 return NULL;
24241 }
24242
24243
24244 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
24245 PyObject *resultobj;
24246 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24247 PyObject *arg2 = (PyObject *) 0 ;
24248 bool result;
24249 PyObject * obj0 = 0 ;
24250 PyObject * obj1 = 0 ;
24251 char *kwnames[] = {
24252 (char *) "self",(char *) "func", NULL
24253 };
24254
24255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
24256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24258 arg2 = obj1;
24259 {
24260 PyThreadState* __tstate = wxPyBeginAllowThreads();
24261 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
24262
24263 wxPyEndAllowThreads(__tstate);
24264 if (PyErr_Occurred()) SWIG_fail;
24265 }
24266 {
24267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24268 }
24269 return resultobj;
24270 fail:
24271 return NULL;
24272 }
24273
24274
24275 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
24276 PyObject *resultobj;
24277 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24278 wxWindow *result;
24279 PyObject * obj0 = 0 ;
24280 char *kwnames[] = {
24281 (char *) "self", NULL
24282 };
24283
24284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
24285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24287 {
24288 PyThreadState* __tstate = wxPyBeginAllowThreads();
24289 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
24290
24291 wxPyEndAllowThreads(__tstate);
24292 if (PyErr_Occurred()) SWIG_fail;
24293 }
24294 {
24295 resultobj = wxPyMake_wxObject(result, 0);
24296 }
24297 return resultobj;
24298 fail:
24299 return NULL;
24300 }
24301
24302
24303 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj;
24305 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
24306 wxVisualAttributes result;
24307 PyObject * obj0 = 0 ;
24308 char *kwnames[] = {
24309 (char *) "variant", NULL
24310 };
24311
24312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
24313 if (obj0) {
24314 arg1 = (int)SWIG_As_int(obj0);
24315 if (PyErr_Occurred()) SWIG_fail;
24316 }
24317 {
24318 if (!wxPyCheckForApp()) SWIG_fail;
24319 PyThreadState* __tstate = wxPyBeginAllowThreads();
24320 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
24321
24322 wxPyEndAllowThreads(__tstate);
24323 if (PyErr_Occurred()) SWIG_fail;
24324 }
24325 {
24326 wxVisualAttributes * resultptr;
24327 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
24328 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
24329 }
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
24337 PyObject *obj;
24338 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24339 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
24340 Py_INCREF(obj);
24341 return Py_BuildValue((char *)"");
24342 }
24343 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
24344 PyObject *resultobj;
24345 wxWindow *arg1 = (wxWindow *) 0 ;
24346 int arg2 = (int) -1 ;
24347 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24348 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24349 wxSize const &arg4_defvalue = wxDefaultSize ;
24350 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24351 long arg5 = (long) wxLC_REPORT ;
24352 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24353 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24354 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
24355 wxString *arg7 = (wxString *) &arg7_defvalue ;
24356 wxListView *result;
24357 wxPoint temp3 ;
24358 wxSize temp4 ;
24359 bool temp7 = false ;
24360 PyObject * obj0 = 0 ;
24361 PyObject * obj1 = 0 ;
24362 PyObject * obj2 = 0 ;
24363 PyObject * obj3 = 0 ;
24364 PyObject * obj4 = 0 ;
24365 PyObject * obj5 = 0 ;
24366 PyObject * obj6 = 0 ;
24367 char *kwnames[] = {
24368 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24369 };
24370
24371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24374 if (obj1) {
24375 arg2 = (int)SWIG_As_int(obj1);
24376 if (PyErr_Occurred()) SWIG_fail;
24377 }
24378 if (obj2) {
24379 {
24380 arg3 = &temp3;
24381 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24382 }
24383 }
24384 if (obj3) {
24385 {
24386 arg4 = &temp4;
24387 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24388 }
24389 }
24390 if (obj4) {
24391 arg5 = (long)SWIG_As_long(obj4);
24392 if (PyErr_Occurred()) SWIG_fail;
24393 }
24394 if (obj5) {
24395 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24396 SWIG_POINTER_EXCEPTION | 0)) == -1)
24397 SWIG_fail;
24398 if (arg6 == NULL) {
24399 PyErr_SetString(PyExc_TypeError,"null reference");
24400 SWIG_fail;
24401 }
24402 }
24403 if (obj6) {
24404 {
24405 arg7 = wxString_in_helper(obj6);
24406 if (arg7 == NULL) SWIG_fail;
24407 temp7 = true;
24408 }
24409 }
24410 {
24411 if (!wxPyCheckForApp()) SWIG_fail;
24412 PyThreadState* __tstate = wxPyBeginAllowThreads();
24413 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24414
24415 wxPyEndAllowThreads(__tstate);
24416 if (PyErr_Occurred()) SWIG_fail;
24417 }
24418 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24419 {
24420 if (temp7)
24421 delete arg7;
24422 }
24423 return resultobj;
24424 fail:
24425 {
24426 if (temp7)
24427 delete arg7;
24428 }
24429 return NULL;
24430 }
24431
24432
24433 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 wxListView *result;
24436 char *kwnames[] = {
24437 NULL
24438 };
24439
24440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
24441 {
24442 if (!wxPyCheckForApp()) SWIG_fail;
24443 PyThreadState* __tstate = wxPyBeginAllowThreads();
24444 result = (wxListView *)new wxListView();
24445
24446 wxPyEndAllowThreads(__tstate);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 }
24449 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24450 return resultobj;
24451 fail:
24452 return NULL;
24453 }
24454
24455
24456 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24457 PyObject *resultobj;
24458 wxListView *arg1 = (wxListView *) 0 ;
24459 wxWindow *arg2 = (wxWindow *) 0 ;
24460 int arg3 = (int) -1 ;
24461 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24462 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24463 wxSize const &arg5_defvalue = wxDefaultSize ;
24464 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24465 long arg6 = (long) wxLC_REPORT ;
24466 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24467 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24468 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24469 wxString *arg8 = (wxString *) &arg8_defvalue ;
24470 bool result;
24471 wxPoint temp4 ;
24472 wxSize temp5 ;
24473 bool temp8 = false ;
24474 PyObject * obj0 = 0 ;
24475 PyObject * obj1 = 0 ;
24476 PyObject * obj2 = 0 ;
24477 PyObject * obj3 = 0 ;
24478 PyObject * obj4 = 0 ;
24479 PyObject * obj5 = 0 ;
24480 PyObject * obj6 = 0 ;
24481 PyObject * obj7 = 0 ;
24482 char *kwnames[] = {
24483 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24484 };
24485
24486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24489 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24491 if (obj2) {
24492 arg3 = (int)SWIG_As_int(obj2);
24493 if (PyErr_Occurred()) SWIG_fail;
24494 }
24495 if (obj3) {
24496 {
24497 arg4 = &temp4;
24498 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24499 }
24500 }
24501 if (obj4) {
24502 {
24503 arg5 = &temp5;
24504 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24505 }
24506 }
24507 if (obj5) {
24508 arg6 = (long)SWIG_As_long(obj5);
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 if (obj6) {
24512 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24513 SWIG_POINTER_EXCEPTION | 0)) == -1)
24514 SWIG_fail;
24515 if (arg7 == NULL) {
24516 PyErr_SetString(PyExc_TypeError,"null reference");
24517 SWIG_fail;
24518 }
24519 }
24520 if (obj7) {
24521 {
24522 arg8 = wxString_in_helper(obj7);
24523 if (arg8 == NULL) SWIG_fail;
24524 temp8 = true;
24525 }
24526 }
24527 {
24528 PyThreadState* __tstate = wxPyBeginAllowThreads();
24529 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24530
24531 wxPyEndAllowThreads(__tstate);
24532 if (PyErr_Occurred()) SWIG_fail;
24533 }
24534 {
24535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24536 }
24537 {
24538 if (temp8)
24539 delete arg8;
24540 }
24541 return resultobj;
24542 fail:
24543 {
24544 if (temp8)
24545 delete arg8;
24546 }
24547 return NULL;
24548 }
24549
24550
24551 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24552 PyObject *resultobj;
24553 wxListView *arg1 = (wxListView *) 0 ;
24554 long arg2 ;
24555 bool arg3 = (bool) true ;
24556 PyObject * obj0 = 0 ;
24557 PyObject * obj1 = 0 ;
24558 PyObject * obj2 = 0 ;
24559 char *kwnames[] = {
24560 (char *) "self",(char *) "n",(char *) "on", NULL
24561 };
24562
24563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24566 arg2 = (long)SWIG_As_long(obj1);
24567 if (PyErr_Occurred()) SWIG_fail;
24568 if (obj2) {
24569 arg3 = (bool)SWIG_As_bool(obj2);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 {
24573 PyThreadState* __tstate = wxPyBeginAllowThreads();
24574 (arg1)->Select(arg2,arg3);
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_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24587 PyObject *resultobj;
24588 wxListView *arg1 = (wxListView *) 0 ;
24589 long arg2 ;
24590 PyObject * obj0 = 0 ;
24591 PyObject * obj1 = 0 ;
24592 char *kwnames[] = {
24593 (char *) "self",(char *) "index", NULL
24594 };
24595
24596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24599 arg2 = (long)SWIG_As_long(obj1);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 {
24602 PyThreadState* __tstate = wxPyBeginAllowThreads();
24603 (arg1)->Focus(arg2);
24604
24605 wxPyEndAllowThreads(__tstate);
24606 if (PyErr_Occurred()) SWIG_fail;
24607 }
24608 Py_INCREF(Py_None); resultobj = Py_None;
24609 return resultobj;
24610 fail:
24611 return NULL;
24612 }
24613
24614
24615 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24616 PyObject *resultobj;
24617 wxListView *arg1 = (wxListView *) 0 ;
24618 long result;
24619 PyObject * obj0 = 0 ;
24620 char *kwnames[] = {
24621 (char *) "self", NULL
24622 };
24623
24624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24627 {
24628 PyThreadState* __tstate = wxPyBeginAllowThreads();
24629 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24630
24631 wxPyEndAllowThreads(__tstate);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 resultobj = SWIG_From_long((long)result);
24635 return resultobj;
24636 fail:
24637 return NULL;
24638 }
24639
24640
24641 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24642 PyObject *resultobj;
24643 wxListView *arg1 = (wxListView *) 0 ;
24644 long arg2 ;
24645 long result;
24646 PyObject * obj0 = 0 ;
24647 PyObject * obj1 = 0 ;
24648 char *kwnames[] = {
24649 (char *) "self",(char *) "item", NULL
24650 };
24651
24652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24655 arg2 = (long)SWIG_As_long(obj1);
24656 if (PyErr_Occurred()) SWIG_fail;
24657 {
24658 PyThreadState* __tstate = wxPyBeginAllowThreads();
24659 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24660
24661 wxPyEndAllowThreads(__tstate);
24662 if (PyErr_Occurred()) SWIG_fail;
24663 }
24664 resultobj = SWIG_From_long((long)result);
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24672 PyObject *resultobj;
24673 wxListView *arg1 = (wxListView *) 0 ;
24674 long result;
24675 PyObject * obj0 = 0 ;
24676 char *kwnames[] = {
24677 (char *) "self", NULL
24678 };
24679
24680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24683 {
24684 PyThreadState* __tstate = wxPyBeginAllowThreads();
24685 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24686
24687 wxPyEndAllowThreads(__tstate);
24688 if (PyErr_Occurred()) SWIG_fail;
24689 }
24690 resultobj = SWIG_From_long((long)result);
24691 return resultobj;
24692 fail:
24693 return NULL;
24694 }
24695
24696
24697 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24698 PyObject *resultobj;
24699 wxListView *arg1 = (wxListView *) 0 ;
24700 long arg2 ;
24701 bool result;
24702 PyObject * obj0 = 0 ;
24703 PyObject * obj1 = 0 ;
24704 char *kwnames[] = {
24705 (char *) "self",(char *) "index", NULL
24706 };
24707
24708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24711 arg2 = (long)SWIG_As_long(obj1);
24712 if (PyErr_Occurred()) SWIG_fail;
24713 {
24714 PyThreadState* __tstate = wxPyBeginAllowThreads();
24715 result = (bool)(arg1)->IsSelected(arg2);
24716
24717 wxPyEndAllowThreads(__tstate);
24718 if (PyErr_Occurred()) SWIG_fail;
24719 }
24720 {
24721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24722 }
24723 return resultobj;
24724 fail:
24725 return NULL;
24726 }
24727
24728
24729 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24730 PyObject *resultobj;
24731 wxListView *arg1 = (wxListView *) 0 ;
24732 int arg2 ;
24733 int arg3 ;
24734 PyObject * obj0 = 0 ;
24735 PyObject * obj1 = 0 ;
24736 PyObject * obj2 = 0 ;
24737 char *kwnames[] = {
24738 (char *) "self",(char *) "col",(char *) "image", NULL
24739 };
24740
24741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24744 arg2 = (int)SWIG_As_int(obj1);
24745 if (PyErr_Occurred()) SWIG_fail;
24746 arg3 = (int)SWIG_As_int(obj2);
24747 if (PyErr_Occurred()) SWIG_fail;
24748 {
24749 PyThreadState* __tstate = wxPyBeginAllowThreads();
24750 (arg1)->SetColumnImage(arg2,arg3);
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 *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24763 PyObject *resultobj;
24764 wxListView *arg1 = (wxListView *) 0 ;
24765 int arg2 ;
24766 PyObject * obj0 = 0 ;
24767 PyObject * obj1 = 0 ;
24768 char *kwnames[] = {
24769 (char *) "self",(char *) "col", NULL
24770 };
24771
24772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24775 arg2 = (int)SWIG_As_int(obj1);
24776 if (PyErr_Occurred()) SWIG_fail;
24777 {
24778 PyThreadState* __tstate = wxPyBeginAllowThreads();
24779 (arg1)->ClearColumnImage(arg2);
24780
24781 wxPyEndAllowThreads(__tstate);
24782 if (PyErr_Occurred()) SWIG_fail;
24783 }
24784 Py_INCREF(Py_None); resultobj = Py_None;
24785 return resultobj;
24786 fail:
24787 return NULL;
24788 }
24789
24790
24791 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24792 PyObject *obj;
24793 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24794 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24795 Py_INCREF(obj);
24796 return Py_BuildValue((char *)"");
24797 }
24798 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24799 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24800 return 1;
24801 }
24802
24803
24804 static PyObject *_wrap_TreeCtrlNameStr_get() {
24805 PyObject *pyobj;
24806
24807 {
24808 #if wxUSE_UNICODE
24809 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24810 #else
24811 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24812 #endif
24813 }
24814 return pyobj;
24815 }
24816
24817
24818 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24819 PyObject *resultobj;
24820 wxTreeItemId *result;
24821 char *kwnames[] = {
24822 NULL
24823 };
24824
24825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24826 {
24827 PyThreadState* __tstate = wxPyBeginAllowThreads();
24828 result = (wxTreeItemId *)new wxTreeItemId();
24829
24830 wxPyEndAllowThreads(__tstate);
24831 if (PyErr_Occurred()) SWIG_fail;
24832 }
24833 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24834 return resultobj;
24835 fail:
24836 return NULL;
24837 }
24838
24839
24840 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24841 PyObject *resultobj;
24842 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24843 PyObject * obj0 = 0 ;
24844 char *kwnames[] = {
24845 (char *) "self", NULL
24846 };
24847
24848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24851 {
24852 PyThreadState* __tstate = wxPyBeginAllowThreads();
24853 delete arg1;
24854
24855 wxPyEndAllowThreads(__tstate);
24856 if (PyErr_Occurred()) SWIG_fail;
24857 }
24858 Py_INCREF(Py_None); resultobj = Py_None;
24859 return resultobj;
24860 fail:
24861 return NULL;
24862 }
24863
24864
24865 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24866 PyObject *resultobj;
24867 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24868 bool result;
24869 PyObject * obj0 = 0 ;
24870 char *kwnames[] = {
24871 (char *) "self", NULL
24872 };
24873
24874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24877 {
24878 PyThreadState* __tstate = wxPyBeginAllowThreads();
24879 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24880
24881 wxPyEndAllowThreads(__tstate);
24882 if (PyErr_Occurred()) SWIG_fail;
24883 }
24884 {
24885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24886 }
24887 return resultobj;
24888 fail:
24889 return NULL;
24890 }
24891
24892
24893 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24894 PyObject *resultobj;
24895 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24896 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24897 bool result;
24898 PyObject * obj0 = 0 ;
24899 PyObject * obj1 = 0 ;
24900 char *kwnames[] = {
24901 (char *) "self",(char *) "other", NULL
24902 };
24903
24904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24907 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24909 {
24910 PyThreadState* __tstate = wxPyBeginAllowThreads();
24911 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24912
24913 wxPyEndAllowThreads(__tstate);
24914 if (PyErr_Occurred()) SWIG_fail;
24915 }
24916 {
24917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24918 }
24919 return resultobj;
24920 fail:
24921 return NULL;
24922 }
24923
24924
24925 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24926 PyObject *resultobj;
24927 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24928 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24929 bool result;
24930 PyObject * obj0 = 0 ;
24931 PyObject * obj1 = 0 ;
24932 char *kwnames[] = {
24933 (char *) "self",(char *) "other", NULL
24934 };
24935
24936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24939 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24941 {
24942 PyThreadState* __tstate = wxPyBeginAllowThreads();
24943 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24944
24945 wxPyEndAllowThreads(__tstate);
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 {
24949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24950 }
24951 return resultobj;
24952 fail:
24953 return NULL;
24954 }
24955
24956
24957 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24958 PyObject *resultobj;
24959 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24960 void *arg2 = (void *) 0 ;
24961 PyObject * obj0 = 0 ;
24962 PyObject * obj1 = 0 ;
24963 char *kwnames[] = {
24964 (char *) "self",(char *) "m_pItem", NULL
24965 };
24966
24967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24970 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24971 if (arg1) (arg1)->m_pItem = arg2;
24972
24973 Py_INCREF(Py_None); resultobj = Py_None;
24974 return resultobj;
24975 fail:
24976 return NULL;
24977 }
24978
24979
24980 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24981 PyObject *resultobj;
24982 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24983 void *result;
24984 PyObject * obj0 = 0 ;
24985 char *kwnames[] = {
24986 (char *) "self", NULL
24987 };
24988
24989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24992 result = (void *) ((arg1)->m_pItem);
24993
24994 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24995 return resultobj;
24996 fail:
24997 return NULL;
24998 }
24999
25000
25001 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
25002 PyObject *obj;
25003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25004 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
25005 Py_INCREF(obj);
25006 return Py_BuildValue((char *)"");
25007 }
25008 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25009 PyObject *resultobj;
25010 PyObject *arg1 = (PyObject *) NULL ;
25011 wxPyTreeItemData *result;
25012 PyObject * obj0 = 0 ;
25013 char *kwnames[] = {
25014 (char *) "obj", NULL
25015 };
25016
25017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
25018 if (obj0) {
25019 arg1 = obj0;
25020 }
25021 {
25022 PyThreadState* __tstate = wxPyBeginAllowThreads();
25023 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
25024
25025 wxPyEndAllowThreads(__tstate);
25026 if (PyErr_Occurred()) SWIG_fail;
25027 }
25028 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
25029 return resultobj;
25030 fail:
25031 return NULL;
25032 }
25033
25034
25035 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
25036 PyObject *resultobj;
25037 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25038 PyObject *result;
25039 PyObject * obj0 = 0 ;
25040 char *kwnames[] = {
25041 (char *) "self", NULL
25042 };
25043
25044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
25045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25047 {
25048 PyThreadState* __tstate = wxPyBeginAllowThreads();
25049 result = (PyObject *)(arg1)->GetData();
25050
25051 wxPyEndAllowThreads(__tstate);
25052 if (PyErr_Occurred()) SWIG_fail;
25053 }
25054 resultobj = result;
25055 return resultobj;
25056 fail:
25057 return NULL;
25058 }
25059
25060
25061 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
25062 PyObject *resultobj;
25063 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25064 PyObject *arg2 = (PyObject *) 0 ;
25065 PyObject * obj0 = 0 ;
25066 PyObject * obj1 = 0 ;
25067 char *kwnames[] = {
25068 (char *) "self",(char *) "obj", NULL
25069 };
25070
25071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
25072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25074 arg2 = obj1;
25075 {
25076 PyThreadState* __tstate = wxPyBeginAllowThreads();
25077 (arg1)->SetData(arg2);
25078
25079 wxPyEndAllowThreads(__tstate);
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 Py_INCREF(Py_None); resultobj = Py_None;
25083 return resultobj;
25084 fail:
25085 return NULL;
25086 }
25087
25088
25089 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
25090 PyObject *resultobj;
25091 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25092 wxTreeItemId *result;
25093 PyObject * obj0 = 0 ;
25094 char *kwnames[] = {
25095 (char *) "self", NULL
25096 };
25097
25098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
25099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25101 {
25102 PyThreadState* __tstate = wxPyBeginAllowThreads();
25103 {
25104 wxTreeItemId const &_result_ref = (arg1)->GetId();
25105 result = (wxTreeItemId *) &_result_ref;
25106 }
25107
25108 wxPyEndAllowThreads(__tstate);
25109 if (PyErr_Occurred()) SWIG_fail;
25110 }
25111 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
25112 return resultobj;
25113 fail:
25114 return NULL;
25115 }
25116
25117
25118 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
25119 PyObject *resultobj;
25120 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25121 wxTreeItemId *arg2 = 0 ;
25122 PyObject * obj0 = 0 ;
25123 PyObject * obj1 = 0 ;
25124 char *kwnames[] = {
25125 (char *) "self",(char *) "id", NULL
25126 };
25127
25128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
25129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25131 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25132 SWIG_POINTER_EXCEPTION | 0)) == -1)
25133 SWIG_fail;
25134 if (arg2 == NULL) {
25135 PyErr_SetString(PyExc_TypeError,"null reference");
25136 SWIG_fail;
25137 }
25138 {
25139 PyThreadState* __tstate = wxPyBeginAllowThreads();
25140 (arg1)->SetId((wxTreeItemId const &)*arg2);
25141
25142 wxPyEndAllowThreads(__tstate);
25143 if (PyErr_Occurred()) SWIG_fail;
25144 }
25145 Py_INCREF(Py_None); resultobj = Py_None;
25146 return resultobj;
25147 fail:
25148 return NULL;
25149 }
25150
25151
25152 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
25153 PyObject *resultobj;
25154 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25155 PyObject * obj0 = 0 ;
25156 char *kwnames[] = {
25157 (char *) "self", NULL
25158 };
25159
25160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
25161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25163 {
25164 PyThreadState* __tstate = wxPyBeginAllowThreads();
25165 wxPyTreeItemData_Destroy(arg1);
25166
25167 wxPyEndAllowThreads(__tstate);
25168 if (PyErr_Occurred()) SWIG_fail;
25169 }
25170 Py_INCREF(Py_None); resultobj = Py_None;
25171 return resultobj;
25172 fail:
25173 return NULL;
25174 }
25175
25176
25177 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
25178 PyObject *obj;
25179 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25180 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
25181 Py_INCREF(obj);
25182 return Py_BuildValue((char *)"");
25183 }
25184 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25185 PyObject *resultobj;
25186 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
25187 int arg2 = (int) 0 ;
25188 wxTreeEvent *result;
25189 PyObject * obj0 = 0 ;
25190 PyObject * obj1 = 0 ;
25191 char *kwnames[] = {
25192 (char *) "commandType",(char *) "id", NULL
25193 };
25194
25195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
25196 if (obj0) {
25197 arg1 = (wxEventType)SWIG_As_int(obj0);
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 if (obj1) {
25201 arg2 = (int)SWIG_As_int(obj1);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 {
25205 PyThreadState* __tstate = wxPyBeginAllowThreads();
25206 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
25207
25208 wxPyEndAllowThreads(__tstate);
25209 if (PyErr_Occurred()) SWIG_fail;
25210 }
25211 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
25212 return resultobj;
25213 fail:
25214 return NULL;
25215 }
25216
25217
25218 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25219 PyObject *resultobj;
25220 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25221 wxTreeItemId result;
25222 PyObject * obj0 = 0 ;
25223 char *kwnames[] = {
25224 (char *) "self", NULL
25225 };
25226
25227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
25228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25230 {
25231 PyThreadState* __tstate = wxPyBeginAllowThreads();
25232 result = ((wxTreeEvent const *)arg1)->GetItem();
25233
25234 wxPyEndAllowThreads(__tstate);
25235 if (PyErr_Occurred()) SWIG_fail;
25236 }
25237 {
25238 wxTreeItemId * resultptr;
25239 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25240 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25241 }
25242 return resultobj;
25243 fail:
25244 return NULL;
25245 }
25246
25247
25248 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25249 PyObject *resultobj;
25250 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25251 wxTreeItemId *arg2 = 0 ;
25252 PyObject * obj0 = 0 ;
25253 PyObject * obj1 = 0 ;
25254 char *kwnames[] = {
25255 (char *) "self",(char *) "item", NULL
25256 };
25257
25258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
25259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25262 SWIG_POINTER_EXCEPTION | 0)) == -1)
25263 SWIG_fail;
25264 if (arg2 == NULL) {
25265 PyErr_SetString(PyExc_TypeError,"null reference");
25266 SWIG_fail;
25267 }
25268 {
25269 PyThreadState* __tstate = wxPyBeginAllowThreads();
25270 (arg1)->SetItem((wxTreeItemId const &)*arg2);
25271
25272 wxPyEndAllowThreads(__tstate);
25273 if (PyErr_Occurred()) SWIG_fail;
25274 }
25275 Py_INCREF(Py_None); resultobj = Py_None;
25276 return resultobj;
25277 fail:
25278 return NULL;
25279 }
25280
25281
25282 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25283 PyObject *resultobj;
25284 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25285 wxTreeItemId result;
25286 PyObject * obj0 = 0 ;
25287 char *kwnames[] = {
25288 (char *) "self", NULL
25289 };
25290
25291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
25292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25294 {
25295 PyThreadState* __tstate = wxPyBeginAllowThreads();
25296 result = ((wxTreeEvent const *)arg1)->GetOldItem();
25297
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 {
25302 wxTreeItemId * resultptr;
25303 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25304 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25305 }
25306 return resultobj;
25307 fail:
25308 return NULL;
25309 }
25310
25311
25312 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25313 PyObject *resultobj;
25314 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25315 wxTreeItemId *arg2 = 0 ;
25316 PyObject * obj0 = 0 ;
25317 PyObject * obj1 = 0 ;
25318 char *kwnames[] = {
25319 (char *) "self",(char *) "item", NULL
25320 };
25321
25322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
25323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25326 SWIG_POINTER_EXCEPTION | 0)) == -1)
25327 SWIG_fail;
25328 if (arg2 == NULL) {
25329 PyErr_SetString(PyExc_TypeError,"null reference");
25330 SWIG_fail;
25331 }
25332 {
25333 PyThreadState* __tstate = wxPyBeginAllowThreads();
25334 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
25335
25336 wxPyEndAllowThreads(__tstate);
25337 if (PyErr_Occurred()) SWIG_fail;
25338 }
25339 Py_INCREF(Py_None); resultobj = Py_None;
25340 return resultobj;
25341 fail:
25342 return NULL;
25343 }
25344
25345
25346 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25347 PyObject *resultobj;
25348 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25349 wxPoint result;
25350 PyObject * obj0 = 0 ;
25351 char *kwnames[] = {
25352 (char *) "self", NULL
25353 };
25354
25355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
25356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25358 {
25359 PyThreadState* __tstate = wxPyBeginAllowThreads();
25360 result = ((wxTreeEvent const *)arg1)->GetPoint();
25361
25362 wxPyEndAllowThreads(__tstate);
25363 if (PyErr_Occurred()) SWIG_fail;
25364 }
25365 {
25366 wxPoint * resultptr;
25367 resultptr = new wxPoint((wxPoint &) result);
25368 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25369 }
25370 return resultobj;
25371 fail:
25372 return NULL;
25373 }
25374
25375
25376 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25377 PyObject *resultobj;
25378 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25379 wxPoint *arg2 = 0 ;
25380 wxPoint temp2 ;
25381 PyObject * obj0 = 0 ;
25382 PyObject * obj1 = 0 ;
25383 char *kwnames[] = {
25384 (char *) "self",(char *) "pt", NULL
25385 };
25386
25387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
25388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25390 {
25391 arg2 = &temp2;
25392 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25393 }
25394 {
25395 PyThreadState* __tstate = wxPyBeginAllowThreads();
25396 (arg1)->SetPoint((wxPoint const &)*arg2);
25397
25398 wxPyEndAllowThreads(__tstate);
25399 if (PyErr_Occurred()) SWIG_fail;
25400 }
25401 Py_INCREF(Py_None); resultobj = Py_None;
25402 return resultobj;
25403 fail:
25404 return NULL;
25405 }
25406
25407
25408 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25409 PyObject *resultobj;
25410 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25411 wxKeyEvent *result;
25412 PyObject * obj0 = 0 ;
25413 char *kwnames[] = {
25414 (char *) "self", NULL
25415 };
25416
25417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",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 {
25423 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
25424 result = (wxKeyEvent *) &_result_ref;
25425 }
25426
25427 wxPyEndAllowThreads(__tstate);
25428 if (PyErr_Occurred()) SWIG_fail;
25429 }
25430 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
25431 return resultobj;
25432 fail:
25433 return NULL;
25434 }
25435
25436
25437 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
25438 PyObject *resultobj;
25439 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25440 int result;
25441 PyObject * obj0 = 0 ;
25442 char *kwnames[] = {
25443 (char *) "self", NULL
25444 };
25445
25446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
25447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25449 {
25450 PyThreadState* __tstate = wxPyBeginAllowThreads();
25451 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25452
25453 wxPyEndAllowThreads(__tstate);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 resultobj = SWIG_From_int((int)result);
25457 return resultobj;
25458 fail:
25459 return NULL;
25460 }
25461
25462
25463 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25464 PyObject *resultobj;
25465 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25466 wxKeyEvent *arg2 = 0 ;
25467 PyObject * obj0 = 0 ;
25468 PyObject * obj1 = 0 ;
25469 char *kwnames[] = {
25470 (char *) "self",(char *) "evt", NULL
25471 };
25472
25473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25476 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25477 SWIG_POINTER_EXCEPTION | 0)) == -1)
25478 SWIG_fail;
25479 if (arg2 == NULL) {
25480 PyErr_SetString(PyExc_TypeError,"null reference");
25481 SWIG_fail;
25482 }
25483 {
25484 PyThreadState* __tstate = wxPyBeginAllowThreads();
25485 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25486
25487 wxPyEndAllowThreads(__tstate);
25488 if (PyErr_Occurred()) SWIG_fail;
25489 }
25490 Py_INCREF(Py_None); resultobj = Py_None;
25491 return resultobj;
25492 fail:
25493 return NULL;
25494 }
25495
25496
25497 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25498 PyObject *resultobj;
25499 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25500 wxString *result;
25501 PyObject * obj0 = 0 ;
25502 char *kwnames[] = {
25503 (char *) "self", NULL
25504 };
25505
25506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25509 {
25510 PyThreadState* __tstate = wxPyBeginAllowThreads();
25511 {
25512 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25513 result = (wxString *) &_result_ref;
25514 }
25515
25516 wxPyEndAllowThreads(__tstate);
25517 if (PyErr_Occurred()) SWIG_fail;
25518 }
25519 {
25520 #if wxUSE_UNICODE
25521 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25522 #else
25523 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25524 #endif
25525 }
25526 return resultobj;
25527 fail:
25528 return NULL;
25529 }
25530
25531
25532 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25533 PyObject *resultobj;
25534 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25535 wxString *arg2 = 0 ;
25536 bool temp2 = false ;
25537 PyObject * obj0 = 0 ;
25538 PyObject * obj1 = 0 ;
25539 char *kwnames[] = {
25540 (char *) "self",(char *) "label", NULL
25541 };
25542
25543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25546 {
25547 arg2 = wxString_in_helper(obj1);
25548 if (arg2 == NULL) SWIG_fail;
25549 temp2 = true;
25550 }
25551 {
25552 PyThreadState* __tstate = wxPyBeginAllowThreads();
25553 (arg1)->SetLabel((wxString const &)*arg2);
25554
25555 wxPyEndAllowThreads(__tstate);
25556 if (PyErr_Occurred()) SWIG_fail;
25557 }
25558 Py_INCREF(Py_None); resultobj = Py_None;
25559 {
25560 if (temp2)
25561 delete arg2;
25562 }
25563 return resultobj;
25564 fail:
25565 {
25566 if (temp2)
25567 delete arg2;
25568 }
25569 return NULL;
25570 }
25571
25572
25573 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25574 PyObject *resultobj;
25575 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25576 bool result;
25577 PyObject * obj0 = 0 ;
25578 char *kwnames[] = {
25579 (char *) "self", NULL
25580 };
25581
25582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25585 {
25586 PyThreadState* __tstate = wxPyBeginAllowThreads();
25587 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25588
25589 wxPyEndAllowThreads(__tstate);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 }
25592 {
25593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25594 }
25595 return resultobj;
25596 fail:
25597 return NULL;
25598 }
25599
25600
25601 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25602 PyObject *resultobj;
25603 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25604 bool arg2 ;
25605 PyObject * obj0 = 0 ;
25606 PyObject * obj1 = 0 ;
25607 char *kwnames[] = {
25608 (char *) "self",(char *) "editCancelled", NULL
25609 };
25610
25611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25614 arg2 = (bool)SWIG_As_bool(obj1);
25615 if (PyErr_Occurred()) SWIG_fail;
25616 {
25617 PyThreadState* __tstate = wxPyBeginAllowThreads();
25618 (arg1)->SetEditCanceled(arg2);
25619
25620 wxPyEndAllowThreads(__tstate);
25621 if (PyErr_Occurred()) SWIG_fail;
25622 }
25623 Py_INCREF(Py_None); resultobj = Py_None;
25624 return resultobj;
25625 fail:
25626 return NULL;
25627 }
25628
25629
25630 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25631 PyObject *resultobj;
25632 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25633 wxString *arg2 = 0 ;
25634 bool temp2 = false ;
25635 PyObject * obj0 = 0 ;
25636 PyObject * obj1 = 0 ;
25637 char *kwnames[] = {
25638 (char *) "self",(char *) "toolTip", NULL
25639 };
25640
25641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25644 {
25645 arg2 = wxString_in_helper(obj1);
25646 if (arg2 == NULL) SWIG_fail;
25647 temp2 = true;
25648 }
25649 {
25650 PyThreadState* __tstate = wxPyBeginAllowThreads();
25651 (arg1)->SetToolTip((wxString const &)*arg2);
25652
25653 wxPyEndAllowThreads(__tstate);
25654 if (PyErr_Occurred()) SWIG_fail;
25655 }
25656 Py_INCREF(Py_None); resultobj = Py_None;
25657 {
25658 if (temp2)
25659 delete arg2;
25660 }
25661 return resultobj;
25662 fail:
25663 {
25664 if (temp2)
25665 delete arg2;
25666 }
25667 return NULL;
25668 }
25669
25670
25671 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25672 PyObject *obj;
25673 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25674 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25675 Py_INCREF(obj);
25676 return Py_BuildValue((char *)"");
25677 }
25678 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25679 PyObject *resultobj;
25680 wxWindow *arg1 = (wxWindow *) 0 ;
25681 int arg2 = (int) -1 ;
25682 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25683 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25684 wxSize const &arg4_defvalue = wxDefaultSize ;
25685 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25686 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25687 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25688 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25689 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25690 wxString *arg7 = (wxString *) &arg7_defvalue ;
25691 wxPyTreeCtrl *result;
25692 wxPoint temp3 ;
25693 wxSize temp4 ;
25694 bool temp7 = false ;
25695 PyObject * obj0 = 0 ;
25696 PyObject * obj1 = 0 ;
25697 PyObject * obj2 = 0 ;
25698 PyObject * obj3 = 0 ;
25699 PyObject * obj4 = 0 ;
25700 PyObject * obj5 = 0 ;
25701 PyObject * obj6 = 0 ;
25702 char *kwnames[] = {
25703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25704 };
25705
25706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25709 if (obj1) {
25710 arg2 = (int)SWIG_As_int(obj1);
25711 if (PyErr_Occurred()) SWIG_fail;
25712 }
25713 if (obj2) {
25714 {
25715 arg3 = &temp3;
25716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25717 }
25718 }
25719 if (obj3) {
25720 {
25721 arg4 = &temp4;
25722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25723 }
25724 }
25725 if (obj4) {
25726 arg5 = (long)SWIG_As_long(obj4);
25727 if (PyErr_Occurred()) SWIG_fail;
25728 }
25729 if (obj5) {
25730 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25731 SWIG_POINTER_EXCEPTION | 0)) == -1)
25732 SWIG_fail;
25733 if (arg6 == NULL) {
25734 PyErr_SetString(PyExc_TypeError,"null reference");
25735 SWIG_fail;
25736 }
25737 }
25738 if (obj6) {
25739 {
25740 arg7 = wxString_in_helper(obj6);
25741 if (arg7 == NULL) SWIG_fail;
25742 temp7 = true;
25743 }
25744 }
25745 {
25746 if (!wxPyCheckForApp()) SWIG_fail;
25747 PyThreadState* __tstate = wxPyBeginAllowThreads();
25748 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25749
25750 wxPyEndAllowThreads(__tstate);
25751 if (PyErr_Occurred()) SWIG_fail;
25752 }
25753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25754 {
25755 if (temp7)
25756 delete arg7;
25757 }
25758 return resultobj;
25759 fail:
25760 {
25761 if (temp7)
25762 delete arg7;
25763 }
25764 return NULL;
25765 }
25766
25767
25768 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25769 PyObject *resultobj;
25770 wxPyTreeCtrl *result;
25771 char *kwnames[] = {
25772 NULL
25773 };
25774
25775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25776 {
25777 if (!wxPyCheckForApp()) SWIG_fail;
25778 PyThreadState* __tstate = wxPyBeginAllowThreads();
25779 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25780
25781 wxPyEndAllowThreads(__tstate);
25782 if (PyErr_Occurred()) SWIG_fail;
25783 }
25784 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25785 return resultobj;
25786 fail:
25787 return NULL;
25788 }
25789
25790
25791 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25792 PyObject *resultobj;
25793 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25794 wxWindow *arg2 = (wxWindow *) 0 ;
25795 int arg3 = (int) -1 ;
25796 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25797 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25798 wxSize const &arg5_defvalue = wxDefaultSize ;
25799 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25800 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25801 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25802 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25803 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25804 wxString *arg8 = (wxString *) &arg8_defvalue ;
25805 bool result;
25806 wxPoint temp4 ;
25807 wxSize temp5 ;
25808 bool temp8 = false ;
25809 PyObject * obj0 = 0 ;
25810 PyObject * obj1 = 0 ;
25811 PyObject * obj2 = 0 ;
25812 PyObject * obj3 = 0 ;
25813 PyObject * obj4 = 0 ;
25814 PyObject * obj5 = 0 ;
25815 PyObject * obj6 = 0 ;
25816 PyObject * obj7 = 0 ;
25817 char *kwnames[] = {
25818 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25819 };
25820
25821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25824 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25826 if (obj2) {
25827 arg3 = (int)SWIG_As_int(obj2);
25828 if (PyErr_Occurred()) SWIG_fail;
25829 }
25830 if (obj3) {
25831 {
25832 arg4 = &temp4;
25833 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25834 }
25835 }
25836 if (obj4) {
25837 {
25838 arg5 = &temp5;
25839 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25840 }
25841 }
25842 if (obj5) {
25843 arg6 = (long)SWIG_As_long(obj5);
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
25846 if (obj6) {
25847 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25848 SWIG_POINTER_EXCEPTION | 0)) == -1)
25849 SWIG_fail;
25850 if (arg7 == NULL) {
25851 PyErr_SetString(PyExc_TypeError,"null reference");
25852 SWIG_fail;
25853 }
25854 }
25855 if (obj7) {
25856 {
25857 arg8 = wxString_in_helper(obj7);
25858 if (arg8 == NULL) SWIG_fail;
25859 temp8 = true;
25860 }
25861 }
25862 {
25863 PyThreadState* __tstate = wxPyBeginAllowThreads();
25864 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25865
25866 wxPyEndAllowThreads(__tstate);
25867 if (PyErr_Occurred()) SWIG_fail;
25868 }
25869 {
25870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25871 }
25872 {
25873 if (temp8)
25874 delete arg8;
25875 }
25876 return resultobj;
25877 fail:
25878 {
25879 if (temp8)
25880 delete arg8;
25881 }
25882 return NULL;
25883 }
25884
25885
25886 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25887 PyObject *resultobj;
25888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25889 PyObject *arg2 = (PyObject *) 0 ;
25890 PyObject *arg3 = (PyObject *) 0 ;
25891 PyObject * obj0 = 0 ;
25892 PyObject * obj1 = 0 ;
25893 PyObject * obj2 = 0 ;
25894 char *kwnames[] = {
25895 (char *) "self",(char *) "self",(char *) "_class", NULL
25896 };
25897
25898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25901 arg2 = obj1;
25902 arg3 = obj2;
25903 {
25904 PyThreadState* __tstate = wxPyBeginAllowThreads();
25905 (arg1)->_setCallbackInfo(arg2,arg3);
25906
25907 wxPyEndAllowThreads(__tstate);
25908 if (PyErr_Occurred()) SWIG_fail;
25909 }
25910 Py_INCREF(Py_None); resultobj = Py_None;
25911 return resultobj;
25912 fail:
25913 return NULL;
25914 }
25915
25916
25917 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25918 PyObject *resultobj;
25919 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25920 size_t result;
25921 PyObject * obj0 = 0 ;
25922 char *kwnames[] = {
25923 (char *) "self", NULL
25924 };
25925
25926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25929 {
25930 PyThreadState* __tstate = wxPyBeginAllowThreads();
25931 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25932
25933 wxPyEndAllowThreads(__tstate);
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25944 PyObject *resultobj;
25945 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25946 unsigned int result;
25947 PyObject * obj0 = 0 ;
25948 char *kwnames[] = {
25949 (char *) "self", NULL
25950 };
25951
25952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25955 {
25956 PyThreadState* __tstate = wxPyBeginAllowThreads();
25957 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25958
25959 wxPyEndAllowThreads(__tstate);
25960 if (PyErr_Occurred()) SWIG_fail;
25961 }
25962 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25963 return resultobj;
25964 fail:
25965 return NULL;
25966 }
25967
25968
25969 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25970 PyObject *resultobj;
25971 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25972 unsigned int arg2 ;
25973 PyObject * obj0 = 0 ;
25974 PyObject * obj1 = 0 ;
25975 char *kwnames[] = {
25976 (char *) "self",(char *) "indent", NULL
25977 };
25978
25979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25982 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 {
25985 PyThreadState* __tstate = wxPyBeginAllowThreads();
25986 (arg1)->SetIndent(arg2);
25987
25988 wxPyEndAllowThreads(__tstate);
25989 if (PyErr_Occurred()) SWIG_fail;
25990 }
25991 Py_INCREF(Py_None); resultobj = Py_None;
25992 return resultobj;
25993 fail:
25994 return NULL;
25995 }
25996
25997
25998 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25999 PyObject *resultobj;
26000 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26001 unsigned int result;
26002 PyObject * obj0 = 0 ;
26003 char *kwnames[] = {
26004 (char *) "self", NULL
26005 };
26006
26007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
26008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26010 {
26011 PyThreadState* __tstate = wxPyBeginAllowThreads();
26012 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
26013
26014 wxPyEndAllowThreads(__tstate);
26015 if (PyErr_Occurred()) SWIG_fail;
26016 }
26017 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
26018 return resultobj;
26019 fail:
26020 return NULL;
26021 }
26022
26023
26024 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
26025 PyObject *resultobj;
26026 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26027 unsigned int arg2 ;
26028 PyObject * obj0 = 0 ;
26029 PyObject * obj1 = 0 ;
26030 char *kwnames[] = {
26031 (char *) "self",(char *) "spacing", NULL
26032 };
26033
26034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
26035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26037 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
26038 if (PyErr_Occurred()) SWIG_fail;
26039 {
26040 PyThreadState* __tstate = wxPyBeginAllowThreads();
26041 (arg1)->SetSpacing(arg2);
26042
26043 wxPyEndAllowThreads(__tstate);
26044 if (PyErr_Occurred()) SWIG_fail;
26045 }
26046 Py_INCREF(Py_None); resultobj = Py_None;
26047 return resultobj;
26048 fail:
26049 return NULL;
26050 }
26051
26052
26053 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26054 PyObject *resultobj;
26055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26056 wxImageList *result;
26057 PyObject * obj0 = 0 ;
26058 char *kwnames[] = {
26059 (char *) "self", NULL
26060 };
26061
26062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
26063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26065 {
26066 PyThreadState* __tstate = wxPyBeginAllowThreads();
26067 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
26068
26069 wxPyEndAllowThreads(__tstate);
26070 if (PyErr_Occurred()) SWIG_fail;
26071 }
26072 {
26073 resultobj = wxPyMake_wxObject(result, 0);
26074 }
26075 return resultobj;
26076 fail:
26077 return NULL;
26078 }
26079
26080
26081 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26082 PyObject *resultobj;
26083 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26084 wxImageList *result;
26085 PyObject * obj0 = 0 ;
26086 char *kwnames[] = {
26087 (char *) "self", NULL
26088 };
26089
26090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
26091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
26096
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 {
26101 resultobj = wxPyMake_wxObject(result, 0);
26102 }
26103 return resultobj;
26104 fail:
26105 return NULL;
26106 }
26107
26108
26109 static PyObject *_wrap_TreeCtrl_SetImageList(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_SetImageList",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)->SetImageList(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_SetStateImageList(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_SetStateImageList",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 | 0)) == -1) SWIG_fail;
26153 {
26154 PyThreadState* __tstate = wxPyBeginAllowThreads();
26155 (arg1)->SetStateImageList(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_AssignImageList(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_AssignImageList",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)->AssignImageList(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_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26197 PyObject *resultobj;
26198 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26199 wxImageList *arg2 = (wxImageList *) 0 ;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 char *kwnames[] = {
26203 (char *) "self",(char *) "imageList", NULL
26204 };
26205
26206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
26207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26210 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26211 {
26212 PyThreadState* __tstate = wxPyBeginAllowThreads();
26213 (arg1)->AssignStateImageList(arg2);
26214
26215 wxPyEndAllowThreads(__tstate);
26216 if (PyErr_Occurred()) SWIG_fail;
26217 }
26218 Py_INCREF(Py_None); resultobj = Py_None;
26219 return resultobj;
26220 fail:
26221 return NULL;
26222 }
26223
26224
26225 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26226 PyObject *resultobj;
26227 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26228 wxTreeItemId *arg2 = 0 ;
26229 wxString result;
26230 PyObject * obj0 = 0 ;
26231 PyObject * obj1 = 0 ;
26232 char *kwnames[] = {
26233 (char *) "self",(char *) "item", NULL
26234 };
26235
26236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
26237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26240 SWIG_POINTER_EXCEPTION | 0)) == -1)
26241 SWIG_fail;
26242 if (arg2 == NULL) {
26243 PyErr_SetString(PyExc_TypeError,"null reference");
26244 SWIG_fail;
26245 }
26246 {
26247 PyThreadState* __tstate = wxPyBeginAllowThreads();
26248 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
26249
26250 wxPyEndAllowThreads(__tstate);
26251 if (PyErr_Occurred()) SWIG_fail;
26252 }
26253 {
26254 #if wxUSE_UNICODE
26255 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26256 #else
26257 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26258 #endif
26259 }
26260 return resultobj;
26261 fail:
26262 return NULL;
26263 }
26264
26265
26266 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26267 PyObject *resultobj;
26268 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26269 wxTreeItemId *arg2 = 0 ;
26270 int arg3 = (int) wxTreeItemIcon_Normal ;
26271 int result;
26272 PyObject * obj0 = 0 ;
26273 PyObject * obj1 = 0 ;
26274 PyObject * obj2 = 0 ;
26275 char *kwnames[] = {
26276 (char *) "self",(char *) "item",(char *) "which", NULL
26277 };
26278
26279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
26280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26283 SWIG_POINTER_EXCEPTION | 0)) == -1)
26284 SWIG_fail;
26285 if (arg2 == NULL) {
26286 PyErr_SetString(PyExc_TypeError,"null reference");
26287 SWIG_fail;
26288 }
26289 if (obj2) {
26290 arg3 = (int)SWIG_As_int(obj2);
26291 if (PyErr_Occurred()) SWIG_fail;
26292 }
26293 {
26294 PyThreadState* __tstate = wxPyBeginAllowThreads();
26295 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
26296
26297 wxPyEndAllowThreads(__tstate);
26298 if (PyErr_Occurred()) SWIG_fail;
26299 }
26300 resultobj = SWIG_From_int((int)result);
26301 return resultobj;
26302 fail:
26303 return NULL;
26304 }
26305
26306
26307 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26308 PyObject *resultobj;
26309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26310 wxTreeItemId *arg2 = 0 ;
26311 wxPyTreeItemData *result;
26312 PyObject * obj0 = 0 ;
26313 PyObject * obj1 = 0 ;
26314 char *kwnames[] = {
26315 (char *) "self",(char *) "item", NULL
26316 };
26317
26318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
26319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26322 SWIG_POINTER_EXCEPTION | 0)) == -1)
26323 SWIG_fail;
26324 if (arg2 == NULL) {
26325 PyErr_SetString(PyExc_TypeError,"null reference");
26326 SWIG_fail;
26327 }
26328 {
26329 PyThreadState* __tstate = wxPyBeginAllowThreads();
26330 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
26331
26332 wxPyEndAllowThreads(__tstate);
26333 if (PyErr_Occurred()) SWIG_fail;
26334 }
26335 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
26336 return resultobj;
26337 fail:
26338 return NULL;
26339 }
26340
26341
26342 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26343 PyObject *resultobj;
26344 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26345 wxTreeItemId *arg2 = 0 ;
26346 PyObject *result;
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 char *kwnames[] = {
26350 (char *) "self",(char *) "item", NULL
26351 };
26352
26353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
26354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26356 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26357 SWIG_POINTER_EXCEPTION | 0)) == -1)
26358 SWIG_fail;
26359 if (arg2 == NULL) {
26360 PyErr_SetString(PyExc_TypeError,"null reference");
26361 SWIG_fail;
26362 }
26363 {
26364 PyThreadState* __tstate = wxPyBeginAllowThreads();
26365 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
26366
26367 wxPyEndAllowThreads(__tstate);
26368 if (PyErr_Occurred()) SWIG_fail;
26369 }
26370 resultobj = result;
26371 return resultobj;
26372 fail:
26373 return NULL;
26374 }
26375
26376
26377 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26378 PyObject *resultobj;
26379 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26380 wxTreeItemId *arg2 = 0 ;
26381 wxColour result;
26382 PyObject * obj0 = 0 ;
26383 PyObject * obj1 = 0 ;
26384 char *kwnames[] = {
26385 (char *) "self",(char *) "item", NULL
26386 };
26387
26388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
26389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26392 SWIG_POINTER_EXCEPTION | 0)) == -1)
26393 SWIG_fail;
26394 if (arg2 == NULL) {
26395 PyErr_SetString(PyExc_TypeError,"null reference");
26396 SWIG_fail;
26397 }
26398 {
26399 PyThreadState* __tstate = wxPyBeginAllowThreads();
26400 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
26401
26402 wxPyEndAllowThreads(__tstate);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 {
26406 wxColour * resultptr;
26407 resultptr = new wxColour((wxColour &) result);
26408 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26409 }
26410 return resultobj;
26411 fail:
26412 return NULL;
26413 }
26414
26415
26416 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj;
26418 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26419 wxTreeItemId *arg2 = 0 ;
26420 wxColour result;
26421 PyObject * obj0 = 0 ;
26422 PyObject * obj1 = 0 ;
26423 char *kwnames[] = {
26424 (char *) "self",(char *) "item", NULL
26425 };
26426
26427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26430 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26431 SWIG_POINTER_EXCEPTION | 0)) == -1)
26432 SWIG_fail;
26433 if (arg2 == NULL) {
26434 PyErr_SetString(PyExc_TypeError,"null reference");
26435 SWIG_fail;
26436 }
26437 {
26438 PyThreadState* __tstate = wxPyBeginAllowThreads();
26439 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
26440
26441 wxPyEndAllowThreads(__tstate);
26442 if (PyErr_Occurred()) SWIG_fail;
26443 }
26444 {
26445 wxColour * resultptr;
26446 resultptr = new wxColour((wxColour &) result);
26447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26448 }
26449 return resultobj;
26450 fail:
26451 return NULL;
26452 }
26453
26454
26455 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26456 PyObject *resultobj;
26457 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26458 wxTreeItemId *arg2 = 0 ;
26459 wxFont result;
26460 PyObject * obj0 = 0 ;
26461 PyObject * obj1 = 0 ;
26462 char *kwnames[] = {
26463 (char *) "self",(char *) "item", NULL
26464 };
26465
26466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26470 SWIG_POINTER_EXCEPTION | 0)) == -1)
26471 SWIG_fail;
26472 if (arg2 == NULL) {
26473 PyErr_SetString(PyExc_TypeError,"null reference");
26474 SWIG_fail;
26475 }
26476 {
26477 PyThreadState* __tstate = wxPyBeginAllowThreads();
26478 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26479
26480 wxPyEndAllowThreads(__tstate);
26481 if (PyErr_Occurred()) SWIG_fail;
26482 }
26483 {
26484 wxFont * resultptr;
26485 resultptr = new wxFont((wxFont &) result);
26486 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26487 }
26488 return resultobj;
26489 fail:
26490 return NULL;
26491 }
26492
26493
26494 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26495 PyObject *resultobj;
26496 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26497 wxTreeItemId *arg2 = 0 ;
26498 wxString *arg3 = 0 ;
26499 bool temp3 = false ;
26500 PyObject * obj0 = 0 ;
26501 PyObject * obj1 = 0 ;
26502 PyObject * obj2 = 0 ;
26503 char *kwnames[] = {
26504 (char *) "self",(char *) "item",(char *) "text", NULL
26505 };
26506
26507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26510 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26511 SWIG_POINTER_EXCEPTION | 0)) == -1)
26512 SWIG_fail;
26513 if (arg2 == NULL) {
26514 PyErr_SetString(PyExc_TypeError,"null reference");
26515 SWIG_fail;
26516 }
26517 {
26518 arg3 = wxString_in_helper(obj2);
26519 if (arg3 == NULL) SWIG_fail;
26520 temp3 = true;
26521 }
26522 {
26523 PyThreadState* __tstate = wxPyBeginAllowThreads();
26524 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26525
26526 wxPyEndAllowThreads(__tstate);
26527 if (PyErr_Occurred()) SWIG_fail;
26528 }
26529 Py_INCREF(Py_None); resultobj = Py_None;
26530 {
26531 if (temp3)
26532 delete arg3;
26533 }
26534 return resultobj;
26535 fail:
26536 {
26537 if (temp3)
26538 delete arg3;
26539 }
26540 return NULL;
26541 }
26542
26543
26544 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26545 PyObject *resultobj;
26546 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26547 wxTreeItemId *arg2 = 0 ;
26548 int arg3 ;
26549 int arg4 = (int) wxTreeItemIcon_Normal ;
26550 PyObject * obj0 = 0 ;
26551 PyObject * obj1 = 0 ;
26552 PyObject * obj2 = 0 ;
26553 PyObject * obj3 = 0 ;
26554 char *kwnames[] = {
26555 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26556 };
26557
26558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26562 SWIG_POINTER_EXCEPTION | 0)) == -1)
26563 SWIG_fail;
26564 if (arg2 == NULL) {
26565 PyErr_SetString(PyExc_TypeError,"null reference");
26566 SWIG_fail;
26567 }
26568 arg3 = (int)SWIG_As_int(obj2);
26569 if (PyErr_Occurred()) SWIG_fail;
26570 if (obj3) {
26571 arg4 = (int)SWIG_As_int(obj3);
26572 if (PyErr_Occurred()) SWIG_fail;
26573 }
26574 {
26575 PyThreadState* __tstate = wxPyBeginAllowThreads();
26576 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26577
26578 wxPyEndAllowThreads(__tstate);
26579 if (PyErr_Occurred()) SWIG_fail;
26580 }
26581 Py_INCREF(Py_None); resultobj = Py_None;
26582 return resultobj;
26583 fail:
26584 return NULL;
26585 }
26586
26587
26588 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26589 PyObject *resultobj;
26590 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26591 wxTreeItemId *arg2 = 0 ;
26592 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26593 PyObject * obj0 = 0 ;
26594 PyObject * obj1 = 0 ;
26595 PyObject * obj2 = 0 ;
26596 char *kwnames[] = {
26597 (char *) "self",(char *) "item",(char *) "data", NULL
26598 };
26599
26600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26603 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26604 SWIG_POINTER_EXCEPTION | 0)) == -1)
26605 SWIG_fail;
26606 if (arg2 == NULL) {
26607 PyErr_SetString(PyExc_TypeError,"null reference");
26608 SWIG_fail;
26609 }
26610 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26612 {
26613 PyThreadState* __tstate = wxPyBeginAllowThreads();
26614 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26615
26616 wxPyEndAllowThreads(__tstate);
26617 if (PyErr_Occurred()) SWIG_fail;
26618 }
26619 Py_INCREF(Py_None); resultobj = Py_None;
26620 return resultobj;
26621 fail:
26622 return NULL;
26623 }
26624
26625
26626 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26627 PyObject *resultobj;
26628 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26629 wxTreeItemId *arg2 = 0 ;
26630 PyObject *arg3 = (PyObject *) 0 ;
26631 PyObject * obj0 = 0 ;
26632 PyObject * obj1 = 0 ;
26633 PyObject * obj2 = 0 ;
26634 char *kwnames[] = {
26635 (char *) "self",(char *) "item",(char *) "obj", NULL
26636 };
26637
26638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26641 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26642 SWIG_POINTER_EXCEPTION | 0)) == -1)
26643 SWIG_fail;
26644 if (arg2 == NULL) {
26645 PyErr_SetString(PyExc_TypeError,"null reference");
26646 SWIG_fail;
26647 }
26648 arg3 = obj2;
26649 {
26650 PyThreadState* __tstate = wxPyBeginAllowThreads();
26651 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26652
26653 wxPyEndAllowThreads(__tstate);
26654 if (PyErr_Occurred()) SWIG_fail;
26655 }
26656 Py_INCREF(Py_None); resultobj = Py_None;
26657 return resultobj;
26658 fail:
26659 return NULL;
26660 }
26661
26662
26663 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26664 PyObject *resultobj;
26665 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26666 wxTreeItemId *arg2 = 0 ;
26667 bool arg3 = (bool) true ;
26668 PyObject * obj0 = 0 ;
26669 PyObject * obj1 = 0 ;
26670 PyObject * obj2 = 0 ;
26671 char *kwnames[] = {
26672 (char *) "self",(char *) "item",(char *) "has", NULL
26673 };
26674
26675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26678 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26679 SWIG_POINTER_EXCEPTION | 0)) == -1)
26680 SWIG_fail;
26681 if (arg2 == NULL) {
26682 PyErr_SetString(PyExc_TypeError,"null reference");
26683 SWIG_fail;
26684 }
26685 if (obj2) {
26686 arg3 = (bool)SWIG_As_bool(obj2);
26687 if (PyErr_Occurred()) SWIG_fail;
26688 }
26689 {
26690 PyThreadState* __tstate = wxPyBeginAllowThreads();
26691 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26692
26693 wxPyEndAllowThreads(__tstate);
26694 if (PyErr_Occurred()) SWIG_fail;
26695 }
26696 Py_INCREF(Py_None); resultobj = Py_None;
26697 return resultobj;
26698 fail:
26699 return NULL;
26700 }
26701
26702
26703 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26704 PyObject *resultobj;
26705 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26706 wxTreeItemId *arg2 = 0 ;
26707 bool arg3 = (bool) true ;
26708 PyObject * obj0 = 0 ;
26709 PyObject * obj1 = 0 ;
26710 PyObject * obj2 = 0 ;
26711 char *kwnames[] = {
26712 (char *) "self",(char *) "item",(char *) "bold", NULL
26713 };
26714
26715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26718 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26719 SWIG_POINTER_EXCEPTION | 0)) == -1)
26720 SWIG_fail;
26721 if (arg2 == NULL) {
26722 PyErr_SetString(PyExc_TypeError,"null reference");
26723 SWIG_fail;
26724 }
26725 if (obj2) {
26726 arg3 = (bool)SWIG_As_bool(obj2);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 {
26730 PyThreadState* __tstate = wxPyBeginAllowThreads();
26731 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26732
26733 wxPyEndAllowThreads(__tstate);
26734 if (PyErr_Occurred()) SWIG_fail;
26735 }
26736 Py_INCREF(Py_None); resultobj = Py_None;
26737 return resultobj;
26738 fail:
26739 return NULL;
26740 }
26741
26742
26743 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26744 PyObject *resultobj;
26745 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26746 wxTreeItemId *arg2 = 0 ;
26747 wxColour *arg3 = 0 ;
26748 wxColour temp3 ;
26749 PyObject * obj0 = 0 ;
26750 PyObject * obj1 = 0 ;
26751 PyObject * obj2 = 0 ;
26752 char *kwnames[] = {
26753 (char *) "self",(char *) "item",(char *) "col", NULL
26754 };
26755
26756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26759 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26760 SWIG_POINTER_EXCEPTION | 0)) == -1)
26761 SWIG_fail;
26762 if (arg2 == NULL) {
26763 PyErr_SetString(PyExc_TypeError,"null reference");
26764 SWIG_fail;
26765 }
26766 {
26767 arg3 = &temp3;
26768 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26769 }
26770 {
26771 PyThreadState* __tstate = wxPyBeginAllowThreads();
26772 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26773
26774 wxPyEndAllowThreads(__tstate);
26775 if (PyErr_Occurred()) SWIG_fail;
26776 }
26777 Py_INCREF(Py_None); resultobj = Py_None;
26778 return resultobj;
26779 fail:
26780 return NULL;
26781 }
26782
26783
26784 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26785 PyObject *resultobj;
26786 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26787 wxTreeItemId *arg2 = 0 ;
26788 wxColour *arg3 = 0 ;
26789 wxColour temp3 ;
26790 PyObject * obj0 = 0 ;
26791 PyObject * obj1 = 0 ;
26792 PyObject * obj2 = 0 ;
26793 char *kwnames[] = {
26794 (char *) "self",(char *) "item",(char *) "col", NULL
26795 };
26796
26797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26801 SWIG_POINTER_EXCEPTION | 0)) == -1)
26802 SWIG_fail;
26803 if (arg2 == NULL) {
26804 PyErr_SetString(PyExc_TypeError,"null reference");
26805 SWIG_fail;
26806 }
26807 {
26808 arg3 = &temp3;
26809 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26810 }
26811 {
26812 PyThreadState* __tstate = wxPyBeginAllowThreads();
26813 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26814
26815 wxPyEndAllowThreads(__tstate);
26816 if (PyErr_Occurred()) SWIG_fail;
26817 }
26818 Py_INCREF(Py_None); resultobj = Py_None;
26819 return resultobj;
26820 fail:
26821 return NULL;
26822 }
26823
26824
26825 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26826 PyObject *resultobj;
26827 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26828 wxTreeItemId *arg2 = 0 ;
26829 wxFont *arg3 = 0 ;
26830 PyObject * obj0 = 0 ;
26831 PyObject * obj1 = 0 ;
26832 PyObject * obj2 = 0 ;
26833 char *kwnames[] = {
26834 (char *) "self",(char *) "item",(char *) "font", NULL
26835 };
26836
26837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26841 SWIG_POINTER_EXCEPTION | 0)) == -1)
26842 SWIG_fail;
26843 if (arg2 == NULL) {
26844 PyErr_SetString(PyExc_TypeError,"null reference");
26845 SWIG_fail;
26846 }
26847 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26848 SWIG_POINTER_EXCEPTION | 0)) == -1)
26849 SWIG_fail;
26850 if (arg3 == NULL) {
26851 PyErr_SetString(PyExc_TypeError,"null reference");
26852 SWIG_fail;
26853 }
26854 {
26855 PyThreadState* __tstate = wxPyBeginAllowThreads();
26856 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26857
26858 wxPyEndAllowThreads(__tstate);
26859 if (PyErr_Occurred()) SWIG_fail;
26860 }
26861 Py_INCREF(Py_None); resultobj = Py_None;
26862 return resultobj;
26863 fail:
26864 return NULL;
26865 }
26866
26867
26868 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26869 PyObject *resultobj;
26870 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26871 wxTreeItemId *arg2 = 0 ;
26872 bool result;
26873 PyObject * obj0 = 0 ;
26874 PyObject * obj1 = 0 ;
26875 char *kwnames[] = {
26876 (char *) "self",(char *) "item", NULL
26877 };
26878
26879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26882 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26883 SWIG_POINTER_EXCEPTION | 0)) == -1)
26884 SWIG_fail;
26885 if (arg2 == NULL) {
26886 PyErr_SetString(PyExc_TypeError,"null reference");
26887 SWIG_fail;
26888 }
26889 {
26890 PyThreadState* __tstate = wxPyBeginAllowThreads();
26891 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26892
26893 wxPyEndAllowThreads(__tstate);
26894 if (PyErr_Occurred()) SWIG_fail;
26895 }
26896 {
26897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26898 }
26899 return resultobj;
26900 fail:
26901 return NULL;
26902 }
26903
26904
26905 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26906 PyObject *resultobj;
26907 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26908 wxTreeItemId *arg2 = 0 ;
26909 bool result;
26910 PyObject * obj0 = 0 ;
26911 PyObject * obj1 = 0 ;
26912 char *kwnames[] = {
26913 (char *) "self",(char *) "item", NULL
26914 };
26915
26916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26919 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26920 SWIG_POINTER_EXCEPTION | 0)) == -1)
26921 SWIG_fail;
26922 if (arg2 == NULL) {
26923 PyErr_SetString(PyExc_TypeError,"null reference");
26924 SWIG_fail;
26925 }
26926 {
26927 PyThreadState* __tstate = wxPyBeginAllowThreads();
26928 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26929
26930 wxPyEndAllowThreads(__tstate);
26931 if (PyErr_Occurred()) SWIG_fail;
26932 }
26933 {
26934 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26935 }
26936 return resultobj;
26937 fail:
26938 return NULL;
26939 }
26940
26941
26942 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26943 PyObject *resultobj;
26944 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26945 wxTreeItemId *arg2 = 0 ;
26946 bool result;
26947 PyObject * obj0 = 0 ;
26948 PyObject * obj1 = 0 ;
26949 char *kwnames[] = {
26950 (char *) "self",(char *) "item", NULL
26951 };
26952
26953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26957 SWIG_POINTER_EXCEPTION | 0)) == -1)
26958 SWIG_fail;
26959 if (arg2 == NULL) {
26960 PyErr_SetString(PyExc_TypeError,"null reference");
26961 SWIG_fail;
26962 }
26963 {
26964 PyThreadState* __tstate = wxPyBeginAllowThreads();
26965 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26966
26967 wxPyEndAllowThreads(__tstate);
26968 if (PyErr_Occurred()) SWIG_fail;
26969 }
26970 {
26971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26972 }
26973 return resultobj;
26974 fail:
26975 return NULL;
26976 }
26977
26978
26979 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26980 PyObject *resultobj;
26981 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26982 wxTreeItemId *arg2 = 0 ;
26983 bool result;
26984 PyObject * obj0 = 0 ;
26985 PyObject * obj1 = 0 ;
26986 char *kwnames[] = {
26987 (char *) "self",(char *) "item", NULL
26988 };
26989
26990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26993 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26994 SWIG_POINTER_EXCEPTION | 0)) == -1)
26995 SWIG_fail;
26996 if (arg2 == NULL) {
26997 PyErr_SetString(PyExc_TypeError,"null reference");
26998 SWIG_fail;
26999 }
27000 {
27001 PyThreadState* __tstate = wxPyBeginAllowThreads();
27002 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
27003
27004 wxPyEndAllowThreads(__tstate);
27005 if (PyErr_Occurred()) SWIG_fail;
27006 }
27007 {
27008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27009 }
27010 return resultobj;
27011 fail:
27012 return NULL;
27013 }
27014
27015
27016 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
27017 PyObject *resultobj;
27018 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27019 wxTreeItemId *arg2 = 0 ;
27020 bool result;
27021 PyObject * obj0 = 0 ;
27022 PyObject * obj1 = 0 ;
27023 char *kwnames[] = {
27024 (char *) "self",(char *) "item", NULL
27025 };
27026
27027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
27028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27031 SWIG_POINTER_EXCEPTION | 0)) == -1)
27032 SWIG_fail;
27033 if (arg2 == NULL) {
27034 PyErr_SetString(PyExc_TypeError,"null reference");
27035 SWIG_fail;
27036 }
27037 {
27038 PyThreadState* __tstate = wxPyBeginAllowThreads();
27039 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
27040
27041 wxPyEndAllowThreads(__tstate);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 {
27045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27046 }
27047 return resultobj;
27048 fail:
27049 return NULL;
27050 }
27051
27052
27053 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj;
27055 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27056 wxTreeItemId *arg2 = 0 ;
27057 bool arg3 = (bool) true ;
27058 size_t result;
27059 PyObject * obj0 = 0 ;
27060 PyObject * obj1 = 0 ;
27061 PyObject * obj2 = 0 ;
27062 char *kwnames[] = {
27063 (char *) "self",(char *) "item",(char *) "recursively", NULL
27064 };
27065
27066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
27067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27069 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27070 SWIG_POINTER_EXCEPTION | 0)) == -1)
27071 SWIG_fail;
27072 if (arg2 == NULL) {
27073 PyErr_SetString(PyExc_TypeError,"null reference");
27074 SWIG_fail;
27075 }
27076 if (obj2) {
27077 arg3 = (bool)SWIG_As_bool(obj2);
27078 if (PyErr_Occurred()) SWIG_fail;
27079 }
27080 {
27081 PyThreadState* __tstate = wxPyBeginAllowThreads();
27082 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
27083
27084 wxPyEndAllowThreads(__tstate);
27085 if (PyErr_Occurred()) SWIG_fail;
27086 }
27087 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
27088 return resultobj;
27089 fail:
27090 return NULL;
27091 }
27092
27093
27094 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
27095 PyObject *resultobj;
27096 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27097 wxTreeItemId result;
27098 PyObject * obj0 = 0 ;
27099 char *kwnames[] = {
27100 (char *) "self", NULL
27101 };
27102
27103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
27104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27106 {
27107 PyThreadState* __tstate = wxPyBeginAllowThreads();
27108 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
27109
27110 wxPyEndAllowThreads(__tstate);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 {
27114 wxTreeItemId * resultptr;
27115 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27116 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27117 }
27118 return resultobj;
27119 fail:
27120 return NULL;
27121 }
27122
27123
27124 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27125 PyObject *resultobj;
27126 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27127 wxTreeItemId result;
27128 PyObject * obj0 = 0 ;
27129 char *kwnames[] = {
27130 (char *) "self", NULL
27131 };
27132
27133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
27134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27136 {
27137 PyThreadState* __tstate = wxPyBeginAllowThreads();
27138 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
27139
27140 wxPyEndAllowThreads(__tstate);
27141 if (PyErr_Occurred()) SWIG_fail;
27142 }
27143 {
27144 wxTreeItemId * resultptr;
27145 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27146 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27147 }
27148 return resultobj;
27149 fail:
27150 return NULL;
27151 }
27152
27153
27154 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
27155 PyObject *resultobj;
27156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27157 PyObject *result;
27158 PyObject * obj0 = 0 ;
27159 char *kwnames[] = {
27160 (char *) "self", NULL
27161 };
27162
27163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
27164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27166 {
27167 PyThreadState* __tstate = wxPyBeginAllowThreads();
27168 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
27169
27170 wxPyEndAllowThreads(__tstate);
27171 if (PyErr_Occurred()) SWIG_fail;
27172 }
27173 resultobj = result;
27174 return resultobj;
27175 fail:
27176 return NULL;
27177 }
27178
27179
27180 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
27181 PyObject *resultobj;
27182 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27183 wxTreeItemId *arg2 = 0 ;
27184 wxTreeItemId result;
27185 PyObject * obj0 = 0 ;
27186 PyObject * obj1 = 0 ;
27187 char *kwnames[] = {
27188 (char *) "self",(char *) "item", NULL
27189 };
27190
27191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
27192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27194 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27195 SWIG_POINTER_EXCEPTION | 0)) == -1)
27196 SWIG_fail;
27197 if (arg2 == NULL) {
27198 PyErr_SetString(PyExc_TypeError,"null reference");
27199 SWIG_fail;
27200 }
27201 {
27202 PyThreadState* __tstate = wxPyBeginAllowThreads();
27203 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
27204
27205 wxPyEndAllowThreads(__tstate);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 {
27209 wxTreeItemId * resultptr;
27210 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27211 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27212 }
27213 return resultobj;
27214 fail:
27215 return NULL;
27216 }
27217
27218
27219 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
27220 PyObject *resultobj;
27221 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27222 wxTreeItemId *arg2 = 0 ;
27223 PyObject *result;
27224 PyObject * obj0 = 0 ;
27225 PyObject * obj1 = 0 ;
27226 char *kwnames[] = {
27227 (char *) "self",(char *) "item", NULL
27228 };
27229
27230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
27231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27234 SWIG_POINTER_EXCEPTION | 0)) == -1)
27235 SWIG_fail;
27236 if (arg2 == NULL) {
27237 PyErr_SetString(PyExc_TypeError,"null reference");
27238 SWIG_fail;
27239 }
27240 {
27241 PyThreadState* __tstate = wxPyBeginAllowThreads();
27242 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
27243
27244 wxPyEndAllowThreads(__tstate);
27245 if (PyErr_Occurred()) SWIG_fail;
27246 }
27247 resultobj = result;
27248 return resultobj;
27249 fail:
27250 return NULL;
27251 }
27252
27253
27254 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
27255 PyObject *resultobj;
27256 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27257 wxTreeItemId *arg2 = 0 ;
27258 void *arg3 = (void *) 0 ;
27259 PyObject *result;
27260 PyObject * obj0 = 0 ;
27261 PyObject * obj1 = 0 ;
27262 PyObject * obj2 = 0 ;
27263 char *kwnames[] = {
27264 (char *) "self",(char *) "item",(char *) "cookie", NULL
27265 };
27266
27267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27270 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27271 SWIG_POINTER_EXCEPTION | 0)) == -1)
27272 SWIG_fail;
27273 if (arg2 == NULL) {
27274 PyErr_SetString(PyExc_TypeError,"null reference");
27275 SWIG_fail;
27276 }
27277 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27278 {
27279 PyThreadState* __tstate = wxPyBeginAllowThreads();
27280 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
27281
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 resultobj = result;
27286 return resultobj;
27287 fail:
27288 return NULL;
27289 }
27290
27291
27292 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
27293 PyObject *resultobj;
27294 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27295 wxTreeItemId *arg2 = 0 ;
27296 wxTreeItemId result;
27297 PyObject * obj0 = 0 ;
27298 PyObject * obj1 = 0 ;
27299 char *kwnames[] = {
27300 (char *) "self",(char *) "item", NULL
27301 };
27302
27303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
27304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27307 SWIG_POINTER_EXCEPTION | 0)) == -1)
27308 SWIG_fail;
27309 if (arg2 == NULL) {
27310 PyErr_SetString(PyExc_TypeError,"null reference");
27311 SWIG_fail;
27312 }
27313 {
27314 PyThreadState* __tstate = wxPyBeginAllowThreads();
27315 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
27316
27317 wxPyEndAllowThreads(__tstate);
27318 if (PyErr_Occurred()) SWIG_fail;
27319 }
27320 {
27321 wxTreeItemId * resultptr;
27322 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27323 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27324 }
27325 return resultobj;
27326 fail:
27327 return NULL;
27328 }
27329
27330
27331 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27332 PyObject *resultobj;
27333 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27334 wxTreeItemId *arg2 = 0 ;
27335 wxTreeItemId result;
27336 PyObject * obj0 = 0 ;
27337 PyObject * obj1 = 0 ;
27338 char *kwnames[] = {
27339 (char *) "self",(char *) "item", NULL
27340 };
27341
27342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
27343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27345 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27346 SWIG_POINTER_EXCEPTION | 0)) == -1)
27347 SWIG_fail;
27348 if (arg2 == NULL) {
27349 PyErr_SetString(PyExc_TypeError,"null reference");
27350 SWIG_fail;
27351 }
27352 {
27353 PyThreadState* __tstate = wxPyBeginAllowThreads();
27354 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
27355
27356 wxPyEndAllowThreads(__tstate);
27357 if (PyErr_Occurred()) SWIG_fail;
27358 }
27359 {
27360 wxTreeItemId * resultptr;
27361 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27362 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27363 }
27364 return resultobj;
27365 fail:
27366 return NULL;
27367 }
27368
27369
27370 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27371 PyObject *resultobj;
27372 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27373 wxTreeItemId *arg2 = 0 ;
27374 wxTreeItemId result;
27375 PyObject * obj0 = 0 ;
27376 PyObject * obj1 = 0 ;
27377 char *kwnames[] = {
27378 (char *) "self",(char *) "item", NULL
27379 };
27380
27381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
27382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27385 SWIG_POINTER_EXCEPTION | 0)) == -1)
27386 SWIG_fail;
27387 if (arg2 == NULL) {
27388 PyErr_SetString(PyExc_TypeError,"null reference");
27389 SWIG_fail;
27390 }
27391 {
27392 PyThreadState* __tstate = wxPyBeginAllowThreads();
27393 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
27394
27395 wxPyEndAllowThreads(__tstate);
27396 if (PyErr_Occurred()) SWIG_fail;
27397 }
27398 {
27399 wxTreeItemId * resultptr;
27400 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27401 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27402 }
27403 return resultobj;
27404 fail:
27405 return NULL;
27406 }
27407
27408
27409 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
27410 PyObject *resultobj;
27411 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27412 wxTreeItemId result;
27413 PyObject * obj0 = 0 ;
27414 char *kwnames[] = {
27415 (char *) "self", NULL
27416 };
27417
27418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27421 {
27422 PyThreadState* __tstate = wxPyBeginAllowThreads();
27423 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27424
27425 wxPyEndAllowThreads(__tstate);
27426 if (PyErr_Occurred()) SWIG_fail;
27427 }
27428 {
27429 wxTreeItemId * resultptr;
27430 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27431 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27432 }
27433 return resultobj;
27434 fail:
27435 return NULL;
27436 }
27437
27438
27439 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27440 PyObject *resultobj;
27441 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27442 wxTreeItemId *arg2 = 0 ;
27443 wxTreeItemId result;
27444 PyObject * obj0 = 0 ;
27445 PyObject * obj1 = 0 ;
27446 char *kwnames[] = {
27447 (char *) "self",(char *) "item", NULL
27448 };
27449
27450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27453 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27454 SWIG_POINTER_EXCEPTION | 0)) == -1)
27455 SWIG_fail;
27456 if (arg2 == NULL) {
27457 PyErr_SetString(PyExc_TypeError,"null reference");
27458 SWIG_fail;
27459 }
27460 {
27461 PyThreadState* __tstate = wxPyBeginAllowThreads();
27462 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27463
27464 wxPyEndAllowThreads(__tstate);
27465 if (PyErr_Occurred()) SWIG_fail;
27466 }
27467 {
27468 wxTreeItemId * resultptr;
27469 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27471 }
27472 return resultobj;
27473 fail:
27474 return NULL;
27475 }
27476
27477
27478 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27479 PyObject *resultobj;
27480 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27481 wxTreeItemId *arg2 = 0 ;
27482 wxTreeItemId result;
27483 PyObject * obj0 = 0 ;
27484 PyObject * obj1 = 0 ;
27485 char *kwnames[] = {
27486 (char *) "self",(char *) "item", NULL
27487 };
27488
27489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27493 SWIG_POINTER_EXCEPTION | 0)) == -1)
27494 SWIG_fail;
27495 if (arg2 == NULL) {
27496 PyErr_SetString(PyExc_TypeError,"null reference");
27497 SWIG_fail;
27498 }
27499 {
27500 PyThreadState* __tstate = wxPyBeginAllowThreads();
27501 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27502
27503 wxPyEndAllowThreads(__tstate);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 {
27507 wxTreeItemId * resultptr;
27508 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27509 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27510 }
27511 return resultobj;
27512 fail:
27513 return NULL;
27514 }
27515
27516
27517 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27518 PyObject *resultobj;
27519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27520 wxString *arg2 = 0 ;
27521 int arg3 = (int) -1 ;
27522 int arg4 = (int) -1 ;
27523 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27524 wxTreeItemId result;
27525 bool temp2 = false ;
27526 PyObject * obj0 = 0 ;
27527 PyObject * obj1 = 0 ;
27528 PyObject * obj2 = 0 ;
27529 PyObject * obj3 = 0 ;
27530 PyObject * obj4 = 0 ;
27531 char *kwnames[] = {
27532 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27533 };
27534
27535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27538 {
27539 arg2 = wxString_in_helper(obj1);
27540 if (arg2 == NULL) SWIG_fail;
27541 temp2 = true;
27542 }
27543 if (obj2) {
27544 arg3 = (int)SWIG_As_int(obj2);
27545 if (PyErr_Occurred()) SWIG_fail;
27546 }
27547 if (obj3) {
27548 arg4 = (int)SWIG_As_int(obj3);
27549 if (PyErr_Occurred()) SWIG_fail;
27550 }
27551 if (obj4) {
27552 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27554 }
27555 {
27556 PyThreadState* __tstate = wxPyBeginAllowThreads();
27557 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27558
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 {
27563 wxTreeItemId * resultptr;
27564 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27565 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27566 }
27567 {
27568 if (temp2)
27569 delete arg2;
27570 }
27571 return resultobj;
27572 fail:
27573 {
27574 if (temp2)
27575 delete arg2;
27576 }
27577 return NULL;
27578 }
27579
27580
27581 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27582 PyObject *resultobj;
27583 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27584 wxTreeItemId *arg2 = 0 ;
27585 wxString *arg3 = 0 ;
27586 int arg4 = (int) -1 ;
27587 int arg5 = (int) -1 ;
27588 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27589 wxTreeItemId result;
27590 bool temp3 = false ;
27591 PyObject * obj0 = 0 ;
27592 PyObject * obj1 = 0 ;
27593 PyObject * obj2 = 0 ;
27594 PyObject * obj3 = 0 ;
27595 PyObject * obj4 = 0 ;
27596 PyObject * obj5 = 0 ;
27597 char *kwnames[] = {
27598 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27599 };
27600
27601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27605 SWIG_POINTER_EXCEPTION | 0)) == -1)
27606 SWIG_fail;
27607 if (arg2 == NULL) {
27608 PyErr_SetString(PyExc_TypeError,"null reference");
27609 SWIG_fail;
27610 }
27611 {
27612 arg3 = wxString_in_helper(obj2);
27613 if (arg3 == NULL) SWIG_fail;
27614 temp3 = true;
27615 }
27616 if (obj3) {
27617 arg4 = (int)SWIG_As_int(obj3);
27618 if (PyErr_Occurred()) SWIG_fail;
27619 }
27620 if (obj4) {
27621 arg5 = (int)SWIG_As_int(obj4);
27622 if (PyErr_Occurred()) SWIG_fail;
27623 }
27624 if (obj5) {
27625 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27627 }
27628 {
27629 PyThreadState* __tstate = wxPyBeginAllowThreads();
27630 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27631
27632 wxPyEndAllowThreads(__tstate);
27633 if (PyErr_Occurred()) SWIG_fail;
27634 }
27635 {
27636 wxTreeItemId * resultptr;
27637 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27638 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27639 }
27640 {
27641 if (temp3)
27642 delete arg3;
27643 }
27644 return resultobj;
27645 fail:
27646 {
27647 if (temp3)
27648 delete arg3;
27649 }
27650 return NULL;
27651 }
27652
27653
27654 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27655 PyObject *resultobj;
27656 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27657 wxTreeItemId *arg2 = 0 ;
27658 wxTreeItemId *arg3 = 0 ;
27659 wxString *arg4 = 0 ;
27660 int arg5 = (int) -1 ;
27661 int arg6 = (int) -1 ;
27662 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27663 wxTreeItemId result;
27664 bool temp4 = false ;
27665 PyObject * obj0 = 0 ;
27666 PyObject * obj1 = 0 ;
27667 PyObject * obj2 = 0 ;
27668 PyObject * obj3 = 0 ;
27669 PyObject * obj4 = 0 ;
27670 PyObject * obj5 = 0 ;
27671 PyObject * obj6 = 0 ;
27672 char *kwnames[] = {
27673 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27674 };
27675
27676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27680 SWIG_POINTER_EXCEPTION | 0)) == -1)
27681 SWIG_fail;
27682 if (arg2 == NULL) {
27683 PyErr_SetString(PyExc_TypeError,"null reference");
27684 SWIG_fail;
27685 }
27686 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27687 SWIG_POINTER_EXCEPTION | 0)) == -1)
27688 SWIG_fail;
27689 if (arg3 == NULL) {
27690 PyErr_SetString(PyExc_TypeError,"null reference");
27691 SWIG_fail;
27692 }
27693 {
27694 arg4 = wxString_in_helper(obj3);
27695 if (arg4 == NULL) SWIG_fail;
27696 temp4 = true;
27697 }
27698 if (obj4) {
27699 arg5 = (int)SWIG_As_int(obj4);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 if (obj5) {
27703 arg6 = (int)SWIG_As_int(obj5);
27704 if (PyErr_Occurred()) SWIG_fail;
27705 }
27706 if (obj6) {
27707 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27709 }
27710 {
27711 PyThreadState* __tstate = wxPyBeginAllowThreads();
27712 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27713
27714 wxPyEndAllowThreads(__tstate);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
27717 {
27718 wxTreeItemId * resultptr;
27719 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27720 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27721 }
27722 {
27723 if (temp4)
27724 delete arg4;
27725 }
27726 return resultobj;
27727 fail:
27728 {
27729 if (temp4)
27730 delete arg4;
27731 }
27732 return NULL;
27733 }
27734
27735
27736 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27737 PyObject *resultobj;
27738 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27739 wxTreeItemId *arg2 = 0 ;
27740 size_t arg3 ;
27741 wxString *arg4 = 0 ;
27742 int arg5 = (int) -1 ;
27743 int arg6 = (int) -1 ;
27744 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27745 wxTreeItemId result;
27746 bool temp4 = false ;
27747 PyObject * obj0 = 0 ;
27748 PyObject * obj1 = 0 ;
27749 PyObject * obj2 = 0 ;
27750 PyObject * obj3 = 0 ;
27751 PyObject * obj4 = 0 ;
27752 PyObject * obj5 = 0 ;
27753 PyObject * obj6 = 0 ;
27754 char *kwnames[] = {
27755 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27756 };
27757
27758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27761 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27762 SWIG_POINTER_EXCEPTION | 0)) == -1)
27763 SWIG_fail;
27764 if (arg2 == NULL) {
27765 PyErr_SetString(PyExc_TypeError,"null reference");
27766 SWIG_fail;
27767 }
27768 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27769 if (PyErr_Occurred()) SWIG_fail;
27770 {
27771 arg4 = wxString_in_helper(obj3);
27772 if (arg4 == NULL) SWIG_fail;
27773 temp4 = true;
27774 }
27775 if (obj4) {
27776 arg5 = (int)SWIG_As_int(obj4);
27777 if (PyErr_Occurred()) SWIG_fail;
27778 }
27779 if (obj5) {
27780 arg6 = (int)SWIG_As_int(obj5);
27781 if (PyErr_Occurred()) SWIG_fail;
27782 }
27783 if (obj6) {
27784 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27786 }
27787 {
27788 PyThreadState* __tstate = wxPyBeginAllowThreads();
27789 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27790
27791 wxPyEndAllowThreads(__tstate);
27792 if (PyErr_Occurred()) SWIG_fail;
27793 }
27794 {
27795 wxTreeItemId * resultptr;
27796 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27797 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27798 }
27799 {
27800 if (temp4)
27801 delete arg4;
27802 }
27803 return resultobj;
27804 fail:
27805 {
27806 if (temp4)
27807 delete arg4;
27808 }
27809 return NULL;
27810 }
27811
27812
27813 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27814 PyObject *resultobj;
27815 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27816 wxTreeItemId *arg2 = 0 ;
27817 wxString *arg3 = 0 ;
27818 int arg4 = (int) -1 ;
27819 int arg5 = (int) -1 ;
27820 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27821 wxTreeItemId result;
27822 bool temp3 = false ;
27823 PyObject * obj0 = 0 ;
27824 PyObject * obj1 = 0 ;
27825 PyObject * obj2 = 0 ;
27826 PyObject * obj3 = 0 ;
27827 PyObject * obj4 = 0 ;
27828 PyObject * obj5 = 0 ;
27829 char *kwnames[] = {
27830 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27831 };
27832
27833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27836 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27837 SWIG_POINTER_EXCEPTION | 0)) == -1)
27838 SWIG_fail;
27839 if (arg2 == NULL) {
27840 PyErr_SetString(PyExc_TypeError,"null reference");
27841 SWIG_fail;
27842 }
27843 {
27844 arg3 = wxString_in_helper(obj2);
27845 if (arg3 == NULL) SWIG_fail;
27846 temp3 = true;
27847 }
27848 if (obj3) {
27849 arg4 = (int)SWIG_As_int(obj3);
27850 if (PyErr_Occurred()) SWIG_fail;
27851 }
27852 if (obj4) {
27853 arg5 = (int)SWIG_As_int(obj4);
27854 if (PyErr_Occurred()) SWIG_fail;
27855 }
27856 if (obj5) {
27857 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27859 }
27860 {
27861 PyThreadState* __tstate = wxPyBeginAllowThreads();
27862 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27863
27864 wxPyEndAllowThreads(__tstate);
27865 if (PyErr_Occurred()) SWIG_fail;
27866 }
27867 {
27868 wxTreeItemId * resultptr;
27869 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27871 }
27872 {
27873 if (temp3)
27874 delete arg3;
27875 }
27876 return resultobj;
27877 fail:
27878 {
27879 if (temp3)
27880 delete arg3;
27881 }
27882 return NULL;
27883 }
27884
27885
27886 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27887 PyObject *resultobj;
27888 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27889 wxTreeItemId *arg2 = 0 ;
27890 PyObject * obj0 = 0 ;
27891 PyObject * obj1 = 0 ;
27892 char *kwnames[] = {
27893 (char *) "self",(char *) "item", NULL
27894 };
27895
27896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27899 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27900 SWIG_POINTER_EXCEPTION | 0)) == -1)
27901 SWIG_fail;
27902 if (arg2 == NULL) {
27903 PyErr_SetString(PyExc_TypeError,"null reference");
27904 SWIG_fail;
27905 }
27906 {
27907 PyThreadState* __tstate = wxPyBeginAllowThreads();
27908 (arg1)->Delete((wxTreeItemId const &)*arg2);
27909
27910 wxPyEndAllowThreads(__tstate);
27911 if (PyErr_Occurred()) SWIG_fail;
27912 }
27913 Py_INCREF(Py_None); resultobj = Py_None;
27914 return resultobj;
27915 fail:
27916 return NULL;
27917 }
27918
27919
27920 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27921 PyObject *resultobj;
27922 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27923 wxTreeItemId *arg2 = 0 ;
27924 PyObject * obj0 = 0 ;
27925 PyObject * obj1 = 0 ;
27926 char *kwnames[] = {
27927 (char *) "self",(char *) "item", NULL
27928 };
27929
27930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27934 SWIG_POINTER_EXCEPTION | 0)) == -1)
27935 SWIG_fail;
27936 if (arg2 == NULL) {
27937 PyErr_SetString(PyExc_TypeError,"null reference");
27938 SWIG_fail;
27939 }
27940 {
27941 PyThreadState* __tstate = wxPyBeginAllowThreads();
27942 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27943
27944 wxPyEndAllowThreads(__tstate);
27945 if (PyErr_Occurred()) SWIG_fail;
27946 }
27947 Py_INCREF(Py_None); resultobj = Py_None;
27948 return resultobj;
27949 fail:
27950 return NULL;
27951 }
27952
27953
27954 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27955 PyObject *resultobj;
27956 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27957 PyObject * obj0 = 0 ;
27958 char *kwnames[] = {
27959 (char *) "self", NULL
27960 };
27961
27962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27965 {
27966 PyThreadState* __tstate = wxPyBeginAllowThreads();
27967 (arg1)->DeleteAllItems();
27968
27969 wxPyEndAllowThreads(__tstate);
27970 if (PyErr_Occurred()) SWIG_fail;
27971 }
27972 Py_INCREF(Py_None); resultobj = Py_None;
27973 return resultobj;
27974 fail:
27975 return NULL;
27976 }
27977
27978
27979 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27980 PyObject *resultobj;
27981 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27982 wxTreeItemId *arg2 = 0 ;
27983 PyObject * obj0 = 0 ;
27984 PyObject * obj1 = 0 ;
27985 char *kwnames[] = {
27986 (char *) "self",(char *) "item", NULL
27987 };
27988
27989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27993 SWIG_POINTER_EXCEPTION | 0)) == -1)
27994 SWIG_fail;
27995 if (arg2 == NULL) {
27996 PyErr_SetString(PyExc_TypeError,"null reference");
27997 SWIG_fail;
27998 }
27999 {
28000 PyThreadState* __tstate = wxPyBeginAllowThreads();
28001 (arg1)->Expand((wxTreeItemId const &)*arg2);
28002
28003 wxPyEndAllowThreads(__tstate);
28004 if (PyErr_Occurred()) SWIG_fail;
28005 }
28006 Py_INCREF(Py_None); resultobj = Py_None;
28007 return resultobj;
28008 fail:
28009 return NULL;
28010 }
28011
28012
28013 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
28014 PyObject *resultobj;
28015 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28016 wxTreeItemId *arg2 = 0 ;
28017 PyObject * obj0 = 0 ;
28018 PyObject * obj1 = 0 ;
28019 char *kwnames[] = {
28020 (char *) "self",(char *) "item", NULL
28021 };
28022
28023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
28024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28026 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28027 SWIG_POINTER_EXCEPTION | 0)) == -1)
28028 SWIG_fail;
28029 if (arg2 == NULL) {
28030 PyErr_SetString(PyExc_TypeError,"null reference");
28031 SWIG_fail;
28032 }
28033 {
28034 PyThreadState* __tstate = wxPyBeginAllowThreads();
28035 (arg1)->Collapse((wxTreeItemId const &)*arg2);
28036
28037 wxPyEndAllowThreads(__tstate);
28038 if (PyErr_Occurred()) SWIG_fail;
28039 }
28040 Py_INCREF(Py_None); resultobj = Py_None;
28041 return resultobj;
28042 fail:
28043 return NULL;
28044 }
28045
28046
28047 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
28048 PyObject *resultobj;
28049 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28050 wxTreeItemId *arg2 = 0 ;
28051 PyObject * obj0 = 0 ;
28052 PyObject * obj1 = 0 ;
28053 char *kwnames[] = {
28054 (char *) "self",(char *) "item", NULL
28055 };
28056
28057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
28058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28061 SWIG_POINTER_EXCEPTION | 0)) == -1)
28062 SWIG_fail;
28063 if (arg2 == NULL) {
28064 PyErr_SetString(PyExc_TypeError,"null reference");
28065 SWIG_fail;
28066 }
28067 {
28068 PyThreadState* __tstate = wxPyBeginAllowThreads();
28069 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
28070
28071 wxPyEndAllowThreads(__tstate);
28072 if (PyErr_Occurred()) SWIG_fail;
28073 }
28074 Py_INCREF(Py_None); resultobj = Py_None;
28075 return resultobj;
28076 fail:
28077 return NULL;
28078 }
28079
28080
28081 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
28082 PyObject *resultobj;
28083 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28084 wxTreeItemId *arg2 = 0 ;
28085 PyObject * obj0 = 0 ;
28086 PyObject * obj1 = 0 ;
28087 char *kwnames[] = {
28088 (char *) "self",(char *) "item", NULL
28089 };
28090
28091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
28092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28095 SWIG_POINTER_EXCEPTION | 0)) == -1)
28096 SWIG_fail;
28097 if (arg2 == NULL) {
28098 PyErr_SetString(PyExc_TypeError,"null reference");
28099 SWIG_fail;
28100 }
28101 {
28102 PyThreadState* __tstate = wxPyBeginAllowThreads();
28103 (arg1)->Toggle((wxTreeItemId const &)*arg2);
28104
28105 wxPyEndAllowThreads(__tstate);
28106 if (PyErr_Occurred()) SWIG_fail;
28107 }
28108 Py_INCREF(Py_None); resultobj = Py_None;
28109 return resultobj;
28110 fail:
28111 return NULL;
28112 }
28113
28114
28115 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
28116 PyObject *resultobj;
28117 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28118 PyObject * obj0 = 0 ;
28119 char *kwnames[] = {
28120 (char *) "self", NULL
28121 };
28122
28123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
28124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28126 {
28127 PyThreadState* __tstate = wxPyBeginAllowThreads();
28128 (arg1)->Unselect();
28129
28130 wxPyEndAllowThreads(__tstate);
28131 if (PyErr_Occurred()) SWIG_fail;
28132 }
28133 Py_INCREF(Py_None); resultobj = Py_None;
28134 return resultobj;
28135 fail:
28136 return NULL;
28137 }
28138
28139
28140 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28141 PyObject *resultobj;
28142 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28143 wxTreeItemId *arg2 = 0 ;
28144 PyObject * obj0 = 0 ;
28145 PyObject * obj1 = 0 ;
28146 char *kwnames[] = {
28147 (char *) "self",(char *) "item", NULL
28148 };
28149
28150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
28151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28153 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28154 SWIG_POINTER_EXCEPTION | 0)) == -1)
28155 SWIG_fail;
28156 if (arg2 == NULL) {
28157 PyErr_SetString(PyExc_TypeError,"null reference");
28158 SWIG_fail;
28159 }
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
28163
28164 wxPyEndAllowThreads(__tstate);
28165 if (PyErr_Occurred()) SWIG_fail;
28166 }
28167 Py_INCREF(Py_None); resultobj = Py_None;
28168 return resultobj;
28169 fail:
28170 return NULL;
28171 }
28172
28173
28174 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
28175 PyObject *resultobj;
28176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28177 PyObject * obj0 = 0 ;
28178 char *kwnames[] = {
28179 (char *) "self", NULL
28180 };
28181
28182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
28183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28185 {
28186 PyThreadState* __tstate = wxPyBeginAllowThreads();
28187 (arg1)->UnselectAll();
28188
28189 wxPyEndAllowThreads(__tstate);
28190 if (PyErr_Occurred()) SWIG_fail;
28191 }
28192 Py_INCREF(Py_None); resultobj = Py_None;
28193 return resultobj;
28194 fail:
28195 return NULL;
28196 }
28197
28198
28199 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28200 PyObject *resultobj;
28201 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28202 wxTreeItemId *arg2 = 0 ;
28203 bool arg3 = (bool) true ;
28204 PyObject * obj0 = 0 ;
28205 PyObject * obj1 = 0 ;
28206 PyObject * obj2 = 0 ;
28207 char *kwnames[] = {
28208 (char *) "self",(char *) "item",(char *) "select", NULL
28209 };
28210
28211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
28212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28215 SWIG_POINTER_EXCEPTION | 0)) == -1)
28216 SWIG_fail;
28217 if (arg2 == NULL) {
28218 PyErr_SetString(PyExc_TypeError,"null reference");
28219 SWIG_fail;
28220 }
28221 if (obj2) {
28222 arg3 = (bool)SWIG_As_bool(obj2);
28223 if (PyErr_Occurred()) SWIG_fail;
28224 }
28225 {
28226 PyThreadState* __tstate = wxPyBeginAllowThreads();
28227 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
28228
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 Py_INCREF(Py_None); resultobj = Py_None;
28233 return resultobj;
28234 fail:
28235 return NULL;
28236 }
28237
28238
28239 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
28240 PyObject *resultobj;
28241 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28242 wxTreeItemId *arg2 = 0 ;
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 char *kwnames[] = {
28246 (char *) "self",(char *) "item", NULL
28247 };
28248
28249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
28250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28252 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28253 SWIG_POINTER_EXCEPTION | 0)) == -1)
28254 SWIG_fail;
28255 if (arg2 == NULL) {
28256 PyErr_SetString(PyExc_TypeError,"null reference");
28257 SWIG_fail;
28258 }
28259 {
28260 PyThreadState* __tstate = wxPyBeginAllowThreads();
28261 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
28262
28263 wxPyEndAllowThreads(__tstate);
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 Py_INCREF(Py_None); resultobj = Py_None;
28267 return resultobj;
28268 fail:
28269 return NULL;
28270 }
28271
28272
28273 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
28274 PyObject *resultobj;
28275 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28276 wxTreeItemId *arg2 = 0 ;
28277 PyObject * obj0 = 0 ;
28278 PyObject * obj1 = 0 ;
28279 char *kwnames[] = {
28280 (char *) "self",(char *) "item", NULL
28281 };
28282
28283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
28284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28287 SWIG_POINTER_EXCEPTION | 0)) == -1)
28288 SWIG_fail;
28289 if (arg2 == NULL) {
28290 PyErr_SetString(PyExc_TypeError,"null reference");
28291 SWIG_fail;
28292 }
28293 {
28294 PyThreadState* __tstate = wxPyBeginAllowThreads();
28295 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
28296
28297 wxPyEndAllowThreads(__tstate);
28298 if (PyErr_Occurred()) SWIG_fail;
28299 }
28300 Py_INCREF(Py_None); resultobj = Py_None;
28301 return resultobj;
28302 fail:
28303 return NULL;
28304 }
28305
28306
28307 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
28308 PyObject *resultobj;
28309 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28310 wxTreeItemId *arg2 = 0 ;
28311 PyObject * obj0 = 0 ;
28312 PyObject * obj1 = 0 ;
28313 char *kwnames[] = {
28314 (char *) "self",(char *) "item", NULL
28315 };
28316
28317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
28318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28320 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28321 SWIG_POINTER_EXCEPTION | 0)) == -1)
28322 SWIG_fail;
28323 if (arg2 == NULL) {
28324 PyErr_SetString(PyExc_TypeError,"null reference");
28325 SWIG_fail;
28326 }
28327 {
28328 PyThreadState* __tstate = wxPyBeginAllowThreads();
28329 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
28330
28331 wxPyEndAllowThreads(__tstate);
28332 if (PyErr_Occurred()) SWIG_fail;
28333 }
28334 Py_INCREF(Py_None); resultobj = Py_None;
28335 return resultobj;
28336 fail:
28337 return NULL;
28338 }
28339
28340
28341 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28342 PyObject *resultobj;
28343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28344 wxTreeItemId *arg2 = 0 ;
28345 PyObject * obj0 = 0 ;
28346 PyObject * obj1 = 0 ;
28347 char *kwnames[] = {
28348 (char *) "self",(char *) "item", NULL
28349 };
28350
28351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
28352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28354 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28355 SWIG_POINTER_EXCEPTION | 0)) == -1)
28356 SWIG_fail;
28357 if (arg2 == NULL) {
28358 PyErr_SetString(PyExc_TypeError,"null reference");
28359 SWIG_fail;
28360 }
28361 {
28362 PyThreadState* __tstate = wxPyBeginAllowThreads();
28363 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
28364
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 Py_INCREF(Py_None); resultobj = Py_None;
28369 return resultobj;
28370 fail:
28371 return NULL;
28372 }
28373
28374
28375 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
28376 PyObject *resultobj;
28377 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28378 wxTextCtrl *result;
28379 PyObject * obj0 = 0 ;
28380 char *kwnames[] = {
28381 (char *) "self", NULL
28382 };
28383
28384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
28385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28387 {
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
28390
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 {
28395 resultobj = wxPyMake_wxObject(result, 0);
28396 }
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28404 PyObject *resultobj;
28405 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28406 wxTreeItemId *arg2 = 0 ;
28407 PyObject * obj0 = 0 ;
28408 PyObject * obj1 = 0 ;
28409 char *kwnames[] = {
28410 (char *) "self",(char *) "item", NULL
28411 };
28412
28413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28416 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28417 SWIG_POINTER_EXCEPTION | 0)) == -1)
28418 SWIG_fail;
28419 if (arg2 == NULL) {
28420 PyErr_SetString(PyExc_TypeError,"null reference");
28421 SWIG_fail;
28422 }
28423 {
28424 PyThreadState* __tstate = wxPyBeginAllowThreads();
28425 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28426
28427 wxPyEndAllowThreads(__tstate);
28428 if (PyErr_Occurred()) SWIG_fail;
28429 }
28430 Py_INCREF(Py_None); resultobj = Py_None;
28431 return resultobj;
28432 fail:
28433 return NULL;
28434 }
28435
28436
28437 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28438 PyObject *resultobj;
28439 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28440 wxPoint *arg2 = 0 ;
28441 int *arg3 = 0 ;
28442 wxTreeItemId result;
28443 wxPoint temp2 ;
28444 int temp3 ;
28445 int res3 = 0 ;
28446 PyObject * obj0 = 0 ;
28447 PyObject * obj1 = 0 ;
28448 char *kwnames[] = {
28449 (char *) "self",(char *) "point", NULL
28450 };
28451
28452 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28456 {
28457 arg2 = &temp2;
28458 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28459 }
28460 {
28461 PyThreadState* __tstate = wxPyBeginAllowThreads();
28462 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28463
28464 wxPyEndAllowThreads(__tstate);
28465 if (PyErr_Occurred()) SWIG_fail;
28466 }
28467 {
28468 wxTreeItemId * resultptr;
28469 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28471 }
28472 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28473 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28474 return resultobj;
28475 fail:
28476 return NULL;
28477 }
28478
28479
28480 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28481 PyObject *resultobj;
28482 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28483 wxTreeItemId *arg2 = 0 ;
28484 bool arg3 = (bool) false ;
28485 PyObject *result;
28486 PyObject * obj0 = 0 ;
28487 PyObject * obj1 = 0 ;
28488 PyObject * obj2 = 0 ;
28489 char *kwnames[] = {
28490 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28491 };
28492
28493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28496 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28497 SWIG_POINTER_EXCEPTION | 0)) == -1)
28498 SWIG_fail;
28499 if (arg2 == NULL) {
28500 PyErr_SetString(PyExc_TypeError,"null reference");
28501 SWIG_fail;
28502 }
28503 if (obj2) {
28504 arg3 = (bool)SWIG_As_bool(obj2);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 {
28508 PyThreadState* __tstate = wxPyBeginAllowThreads();
28509 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28510
28511 wxPyEndAllowThreads(__tstate);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 resultobj = result;
28515 return resultobj;
28516 fail:
28517 return NULL;
28518 }
28519
28520
28521 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj;
28523 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28524 wxVisualAttributes result;
28525 PyObject * obj0 = 0 ;
28526 char *kwnames[] = {
28527 (char *) "variant", NULL
28528 };
28529
28530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28531 if (obj0) {
28532 arg1 = (int)SWIG_As_int(obj0);
28533 if (PyErr_Occurred()) SWIG_fail;
28534 }
28535 {
28536 if (!wxPyCheckForApp()) SWIG_fail;
28537 PyThreadState* __tstate = wxPyBeginAllowThreads();
28538 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28539
28540 wxPyEndAllowThreads(__tstate);
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 {
28544 wxVisualAttributes * resultptr;
28545 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28547 }
28548 return resultobj;
28549 fail:
28550 return NULL;
28551 }
28552
28553
28554 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28555 PyObject *obj;
28556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28557 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28558 Py_INCREF(obj);
28559 return Py_BuildValue((char *)"");
28560 }
28561 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28562 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28563 return 1;
28564 }
28565
28566
28567 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28568 PyObject *pyobj;
28569
28570 {
28571 #if wxUSE_UNICODE
28572 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28573 #else
28574 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28575 #endif
28576 }
28577 return pyobj;
28578 }
28579
28580
28581 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28582 PyObject *resultobj;
28583 wxWindow *arg1 = (wxWindow *) 0 ;
28584 int arg2 = (int) (int)-1 ;
28585 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28586 wxString *arg3 = (wxString *) &arg3_defvalue ;
28587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28589 wxSize const &arg5_defvalue = wxDefaultSize ;
28590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28591 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28592 wxString const &arg7_defvalue = wxPyEmptyString ;
28593 wxString *arg7 = (wxString *) &arg7_defvalue ;
28594 int arg8 = (int) 0 ;
28595 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28596 wxString *arg9 = (wxString *) &arg9_defvalue ;
28597 wxGenericDirCtrl *result;
28598 bool temp3 = false ;
28599 wxPoint temp4 ;
28600 wxSize temp5 ;
28601 bool temp7 = false ;
28602 bool temp9 = false ;
28603 PyObject * obj0 = 0 ;
28604 PyObject * obj1 = 0 ;
28605 PyObject * obj2 = 0 ;
28606 PyObject * obj3 = 0 ;
28607 PyObject * obj4 = 0 ;
28608 PyObject * obj5 = 0 ;
28609 PyObject * obj6 = 0 ;
28610 PyObject * obj7 = 0 ;
28611 PyObject * obj8 = 0 ;
28612 char *kwnames[] = {
28613 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28614 };
28615
28616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28619 if (obj1) {
28620 arg2 = (int)SWIG_As_int(obj1);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 if (obj2) {
28624 {
28625 arg3 = wxString_in_helper(obj2);
28626 if (arg3 == NULL) SWIG_fail;
28627 temp3 = true;
28628 }
28629 }
28630 if (obj3) {
28631 {
28632 arg4 = &temp4;
28633 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28634 }
28635 }
28636 if (obj4) {
28637 {
28638 arg5 = &temp5;
28639 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28640 }
28641 }
28642 if (obj5) {
28643 arg6 = (long)SWIG_As_long(obj5);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 if (obj6) {
28647 {
28648 arg7 = wxString_in_helper(obj6);
28649 if (arg7 == NULL) SWIG_fail;
28650 temp7 = true;
28651 }
28652 }
28653 if (obj7) {
28654 arg8 = (int)SWIG_As_int(obj7);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 if (obj8) {
28658 {
28659 arg9 = wxString_in_helper(obj8);
28660 if (arg9 == NULL) SWIG_fail;
28661 temp9 = true;
28662 }
28663 }
28664 {
28665 if (!wxPyCheckForApp()) SWIG_fail;
28666 PyThreadState* __tstate = wxPyBeginAllowThreads();
28667 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28668
28669 wxPyEndAllowThreads(__tstate);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 }
28672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28673 {
28674 if (temp3)
28675 delete arg3;
28676 }
28677 {
28678 if (temp7)
28679 delete arg7;
28680 }
28681 {
28682 if (temp9)
28683 delete arg9;
28684 }
28685 return resultobj;
28686 fail:
28687 {
28688 if (temp3)
28689 delete arg3;
28690 }
28691 {
28692 if (temp7)
28693 delete arg7;
28694 }
28695 {
28696 if (temp9)
28697 delete arg9;
28698 }
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 wxGenericDirCtrl *result;
28706 char *kwnames[] = {
28707 NULL
28708 };
28709
28710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28711 {
28712 if (!wxPyCheckForApp()) SWIG_fail;
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28715
28716 wxPyEndAllowThreads(__tstate);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28720 return resultobj;
28721 fail:
28722 return NULL;
28723 }
28724
28725
28726 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28727 PyObject *resultobj;
28728 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28729 wxWindow *arg2 = (wxWindow *) 0 ;
28730 int arg3 = (int) (int)-1 ;
28731 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28732 wxString *arg4 = (wxString *) &arg4_defvalue ;
28733 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28734 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28735 wxSize const &arg6_defvalue = wxDefaultSize ;
28736 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28737 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28738 wxString const &arg8_defvalue = wxPyEmptyString ;
28739 wxString *arg8 = (wxString *) &arg8_defvalue ;
28740 int arg9 = (int) 0 ;
28741 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28742 wxString *arg10 = (wxString *) &arg10_defvalue ;
28743 bool result;
28744 bool temp4 = false ;
28745 wxPoint temp5 ;
28746 wxSize temp6 ;
28747 bool temp8 = false ;
28748 bool temp10 = false ;
28749 PyObject * obj0 = 0 ;
28750 PyObject * obj1 = 0 ;
28751 PyObject * obj2 = 0 ;
28752 PyObject * obj3 = 0 ;
28753 PyObject * obj4 = 0 ;
28754 PyObject * obj5 = 0 ;
28755 PyObject * obj6 = 0 ;
28756 PyObject * obj7 = 0 ;
28757 PyObject * obj8 = 0 ;
28758 PyObject * obj9 = 0 ;
28759 char *kwnames[] = {
28760 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28761 };
28762
28763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28768 if (obj2) {
28769 arg3 = (int)SWIG_As_int(obj2);
28770 if (PyErr_Occurred()) SWIG_fail;
28771 }
28772 if (obj3) {
28773 {
28774 arg4 = wxString_in_helper(obj3);
28775 if (arg4 == NULL) SWIG_fail;
28776 temp4 = true;
28777 }
28778 }
28779 if (obj4) {
28780 {
28781 arg5 = &temp5;
28782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28783 }
28784 }
28785 if (obj5) {
28786 {
28787 arg6 = &temp6;
28788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28789 }
28790 }
28791 if (obj6) {
28792 arg7 = (long)SWIG_As_long(obj6);
28793 if (PyErr_Occurred()) SWIG_fail;
28794 }
28795 if (obj7) {
28796 {
28797 arg8 = wxString_in_helper(obj7);
28798 if (arg8 == NULL) SWIG_fail;
28799 temp8 = true;
28800 }
28801 }
28802 if (obj8) {
28803 arg9 = (int)SWIG_As_int(obj8);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 if (obj9) {
28807 {
28808 arg10 = wxString_in_helper(obj9);
28809 if (arg10 == NULL) SWIG_fail;
28810 temp10 = true;
28811 }
28812 }
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28816
28817 wxPyEndAllowThreads(__tstate);
28818 if (PyErr_Occurred()) SWIG_fail;
28819 }
28820 {
28821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28822 }
28823 {
28824 if (temp4)
28825 delete arg4;
28826 }
28827 {
28828 if (temp8)
28829 delete arg8;
28830 }
28831 {
28832 if (temp10)
28833 delete arg10;
28834 }
28835 return resultobj;
28836 fail:
28837 {
28838 if (temp4)
28839 delete arg4;
28840 }
28841 {
28842 if (temp8)
28843 delete arg8;
28844 }
28845 {
28846 if (temp10)
28847 delete arg10;
28848 }
28849 return NULL;
28850 }
28851
28852
28853 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28854 PyObject *resultobj;
28855 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28856 wxString *arg2 = 0 ;
28857 bool result;
28858 bool temp2 = false ;
28859 PyObject * obj0 = 0 ;
28860 PyObject * obj1 = 0 ;
28861 char *kwnames[] = {
28862 (char *) "self",(char *) "path", NULL
28863 };
28864
28865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28868 {
28869 arg2 = wxString_in_helper(obj1);
28870 if (arg2 == NULL) SWIG_fail;
28871 temp2 = true;
28872 }
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28876
28877 wxPyEndAllowThreads(__tstate);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 {
28881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28882 }
28883 {
28884 if (temp2)
28885 delete arg2;
28886 }
28887 return resultobj;
28888 fail:
28889 {
28890 if (temp2)
28891 delete arg2;
28892 }
28893 return NULL;
28894 }
28895
28896
28897 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28898 PyObject *resultobj;
28899 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28900 wxString result;
28901 PyObject * obj0 = 0 ;
28902 char *kwnames[] = {
28903 (char *) "self", NULL
28904 };
28905
28906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28912
28913 wxPyEndAllowThreads(__tstate);
28914 if (PyErr_Occurred()) SWIG_fail;
28915 }
28916 {
28917 #if wxUSE_UNICODE
28918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28919 #else
28920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28921 #endif
28922 }
28923 return resultobj;
28924 fail:
28925 return NULL;
28926 }
28927
28928
28929 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28930 PyObject *resultobj;
28931 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28932 wxString *arg2 = 0 ;
28933 bool temp2 = false ;
28934 PyObject * obj0 = 0 ;
28935 PyObject * obj1 = 0 ;
28936 char *kwnames[] = {
28937 (char *) "self",(char *) "path", NULL
28938 };
28939
28940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28943 {
28944 arg2 = wxString_in_helper(obj1);
28945 if (arg2 == NULL) SWIG_fail;
28946 temp2 = true;
28947 }
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 (arg1)->SetDefaultPath((wxString const &)*arg2);
28951
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 Py_INCREF(Py_None); resultobj = Py_None;
28956 {
28957 if (temp2)
28958 delete arg2;
28959 }
28960 return resultobj;
28961 fail:
28962 {
28963 if (temp2)
28964 delete arg2;
28965 }
28966 return NULL;
28967 }
28968
28969
28970 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj;
28972 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28973 wxString result;
28974 PyObject * obj0 = 0 ;
28975 char *kwnames[] = {
28976 (char *) "self", NULL
28977 };
28978
28979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28982 {
28983 PyThreadState* __tstate = wxPyBeginAllowThreads();
28984 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28985
28986 wxPyEndAllowThreads(__tstate);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 {
28990 #if wxUSE_UNICODE
28991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28992 #else
28993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28994 #endif
28995 }
28996 return resultobj;
28997 fail:
28998 return NULL;
28999 }
29000
29001
29002 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
29003 PyObject *resultobj;
29004 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29005 wxString result;
29006 PyObject * obj0 = 0 ;
29007 char *kwnames[] = {
29008 (char *) "self", NULL
29009 };
29010
29011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
29012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29014 {
29015 PyThreadState* __tstate = wxPyBeginAllowThreads();
29016 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
29017
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 {
29022 #if wxUSE_UNICODE
29023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29024 #else
29025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29026 #endif
29027 }
29028 return resultobj;
29029 fail:
29030 return NULL;
29031 }
29032
29033
29034 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj;
29036 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29037 wxString *arg2 = 0 ;
29038 bool temp2 = false ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 char *kwnames[] = {
29042 (char *) "self",(char *) "path", NULL
29043 };
29044
29045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
29046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29048 {
29049 arg2 = wxString_in_helper(obj1);
29050 if (arg2 == NULL) SWIG_fail;
29051 temp2 = true;
29052 }
29053 {
29054 PyThreadState* __tstate = wxPyBeginAllowThreads();
29055 (arg1)->SetPath((wxString const &)*arg2);
29056
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 Py_INCREF(Py_None); resultobj = Py_None;
29061 {
29062 if (temp2)
29063 delete arg2;
29064 }
29065 return resultobj;
29066 fail:
29067 {
29068 if (temp2)
29069 delete arg2;
29070 }
29071 return NULL;
29072 }
29073
29074
29075 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj;
29077 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29078 bool arg2 ;
29079 PyObject * obj0 = 0 ;
29080 PyObject * obj1 = 0 ;
29081 char *kwnames[] = {
29082 (char *) "self",(char *) "show", NULL
29083 };
29084
29085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
29086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29088 arg2 = (bool)SWIG_As_bool(obj1);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 {
29091 PyThreadState* __tstate = wxPyBeginAllowThreads();
29092 (arg1)->ShowHidden(arg2);
29093
29094 wxPyEndAllowThreads(__tstate);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 Py_INCREF(Py_None); resultobj = Py_None;
29098 return resultobj;
29099 fail:
29100 return NULL;
29101 }
29102
29103
29104 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29105 PyObject *resultobj;
29106 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29107 bool result;
29108 PyObject * obj0 = 0 ;
29109 char *kwnames[] = {
29110 (char *) "self", NULL
29111 };
29112
29113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
29114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (bool)(arg1)->GetShowHidden();
29119
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29125 }
29126 return resultobj;
29127 fail:
29128 return NULL;
29129 }
29130
29131
29132 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj;
29134 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29135 wxString result;
29136 PyObject * obj0 = 0 ;
29137 char *kwnames[] = {
29138 (char *) "self", NULL
29139 };
29140
29141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
29142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29144 {
29145 PyThreadState* __tstate = wxPyBeginAllowThreads();
29146 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
29147
29148 wxPyEndAllowThreads(__tstate);
29149 if (PyErr_Occurred()) SWIG_fail;
29150 }
29151 {
29152 #if wxUSE_UNICODE
29153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29154 #else
29155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29156 #endif
29157 }
29158 return resultobj;
29159 fail:
29160 return NULL;
29161 }
29162
29163
29164 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29165 PyObject *resultobj;
29166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29167 wxString *arg2 = 0 ;
29168 bool temp2 = false ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 char *kwnames[] = {
29172 (char *) "self",(char *) "filter", NULL
29173 };
29174
29175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
29176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29178 {
29179 arg2 = wxString_in_helper(obj1);
29180 if (arg2 == NULL) SWIG_fail;
29181 temp2 = true;
29182 }
29183 {
29184 PyThreadState* __tstate = wxPyBeginAllowThreads();
29185 (arg1)->SetFilter((wxString const &)*arg2);
29186
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 Py_INCREF(Py_None); resultobj = Py_None;
29191 {
29192 if (temp2)
29193 delete arg2;
29194 }
29195 return resultobj;
29196 fail:
29197 {
29198 if (temp2)
29199 delete arg2;
29200 }
29201 return NULL;
29202 }
29203
29204
29205 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29206 PyObject *resultobj;
29207 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29208 int result;
29209 PyObject * obj0 = 0 ;
29210 char *kwnames[] = {
29211 (char *) "self", NULL
29212 };
29213
29214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
29215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
29219 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
29220
29221 wxPyEndAllowThreads(__tstate);
29222 if (PyErr_Occurred()) SWIG_fail;
29223 }
29224 resultobj = SWIG_From_int((int)result);
29225 return resultobj;
29226 fail:
29227 return NULL;
29228 }
29229
29230
29231 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29232 PyObject *resultobj;
29233 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29234 int arg2 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char *kwnames[] = {
29238 (char *) "self",(char *) "n", NULL
29239 };
29240
29241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
29242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29244 arg2 = (int)SWIG_As_int(obj1);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 {
29247 PyThreadState* __tstate = wxPyBeginAllowThreads();
29248 (arg1)->SetFilterIndex(arg2);
29249
29250 wxPyEndAllowThreads(__tstate);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 }
29253 Py_INCREF(Py_None); resultobj = Py_None;
29254 return resultobj;
29255 fail:
29256 return NULL;
29257 }
29258
29259
29260 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj;
29262 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29263 wxTreeItemId result;
29264 PyObject * obj0 = 0 ;
29265 char *kwnames[] = {
29266 (char *) "self", NULL
29267 };
29268
29269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
29270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29272 {
29273 PyThreadState* __tstate = wxPyBeginAllowThreads();
29274 result = (arg1)->GetRootId();
29275
29276 wxPyEndAllowThreads(__tstate);
29277 if (PyErr_Occurred()) SWIG_fail;
29278 }
29279 {
29280 wxTreeItemId * resultptr;
29281 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29283 }
29284 return resultobj;
29285 fail:
29286 return NULL;
29287 }
29288
29289
29290 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29291 PyObject *resultobj;
29292 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29293 wxPyTreeCtrl *result;
29294 PyObject * obj0 = 0 ;
29295 char *kwnames[] = {
29296 (char *) "self", NULL
29297 };
29298
29299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29305
29306 wxPyEndAllowThreads(__tstate);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 {
29310 resultobj = wxPyMake_wxObject(result, 0);
29311 }
29312 return resultobj;
29313 fail:
29314 return NULL;
29315 }
29316
29317
29318 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29319 PyObject *resultobj;
29320 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29321 wxDirFilterListCtrl *result;
29322 PyObject * obj0 = 0 ;
29323 char *kwnames[] = {
29324 (char *) "self", NULL
29325 };
29326
29327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29333
29334 wxPyEndAllowThreads(__tstate);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29338 return resultobj;
29339 fail:
29340 return NULL;
29341 }
29342
29343
29344 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29345 PyObject *resultobj;
29346 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29347 wxTreeItemId arg2 ;
29348 wxString *arg3 = 0 ;
29349 bool *arg4 = 0 ;
29350 wxTreeItemId result;
29351 wxTreeItemId *argp2 ;
29352 bool temp3 = false ;
29353 bool temp4 ;
29354 int res4 = 0 ;
29355 PyObject * obj0 = 0 ;
29356 PyObject * obj1 = 0 ;
29357 PyObject * obj2 = 0 ;
29358 char *kwnames[] = {
29359 (char *) "self",(char *) "parentId",(char *) "path", NULL
29360 };
29361
29362 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29366 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29367 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29368 arg2 = *argp2;
29369 {
29370 arg3 = wxString_in_helper(obj2);
29371 if (arg3 == NULL) SWIG_fail;
29372 temp3 = true;
29373 }
29374 {
29375 PyThreadState* __tstate = wxPyBeginAllowThreads();
29376 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29377
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 {
29382 wxTreeItemId * resultptr;
29383 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29385 }
29386 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29387 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29388 {
29389 if (temp3)
29390 delete arg3;
29391 }
29392 return resultobj;
29393 fail:
29394 {
29395 if (temp3)
29396 delete arg3;
29397 }
29398 return NULL;
29399 }
29400
29401
29402 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj;
29404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29405 PyObject * obj0 = 0 ;
29406 char *kwnames[] = {
29407 (char *) "self", NULL
29408 };
29409
29410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 (arg1)->DoResize();
29416
29417 wxPyEndAllowThreads(__tstate);
29418 if (PyErr_Occurred()) SWIG_fail;
29419 }
29420 Py_INCREF(Py_None); resultobj = Py_None;
29421 return resultobj;
29422 fail:
29423 return NULL;
29424 }
29425
29426
29427 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29428 PyObject *resultobj;
29429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29430 PyObject * obj0 = 0 ;
29431 char *kwnames[] = {
29432 (char *) "self", NULL
29433 };
29434
29435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29438 {
29439 PyThreadState* __tstate = wxPyBeginAllowThreads();
29440 (arg1)->ReCreateTree();
29441
29442 wxPyEndAllowThreads(__tstate);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 Py_INCREF(Py_None); resultobj = Py_None;
29446 return resultobj;
29447 fail:
29448 return NULL;
29449 }
29450
29451
29452 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29453 PyObject *obj;
29454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29455 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29456 Py_INCREF(obj);
29457 return Py_BuildValue((char *)"");
29458 }
29459 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29460 PyObject *resultobj;
29461 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29462 int arg2 = (int) (int)-1 ;
29463 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29464 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29465 wxSize const &arg4_defvalue = wxDefaultSize ;
29466 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29467 long arg5 = (long) 0 ;
29468 wxDirFilterListCtrl *result;
29469 wxPoint temp3 ;
29470 wxSize temp4 ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 PyObject * obj3 = 0 ;
29475 PyObject * obj4 = 0 ;
29476 char *kwnames[] = {
29477 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29478 };
29479
29480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29483 if (obj1) {
29484 arg2 = (int)SWIG_As_int(obj1);
29485 if (PyErr_Occurred()) SWIG_fail;
29486 }
29487 if (obj2) {
29488 {
29489 arg3 = &temp3;
29490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29491 }
29492 }
29493 if (obj3) {
29494 {
29495 arg4 = &temp4;
29496 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29497 }
29498 }
29499 if (obj4) {
29500 arg5 = (long)SWIG_As_long(obj4);
29501 if (PyErr_Occurred()) SWIG_fail;
29502 }
29503 {
29504 if (!wxPyCheckForApp()) SWIG_fail;
29505 PyThreadState* __tstate = wxPyBeginAllowThreads();
29506 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29507
29508 wxPyEndAllowThreads(__tstate);
29509 if (PyErr_Occurred()) SWIG_fail;
29510 }
29511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29512 return resultobj;
29513 fail:
29514 return NULL;
29515 }
29516
29517
29518 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29519 PyObject *resultobj;
29520 wxDirFilterListCtrl *result;
29521 char *kwnames[] = {
29522 NULL
29523 };
29524
29525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29526 {
29527 if (!wxPyCheckForApp()) SWIG_fail;
29528 PyThreadState* __tstate = wxPyBeginAllowThreads();
29529 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29530
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29535 return resultobj;
29536 fail:
29537 return NULL;
29538 }
29539
29540
29541 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29542 PyObject *resultobj;
29543 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29544 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29545 int arg3 = (int) (int)-1 ;
29546 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29547 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29548 wxSize const &arg5_defvalue = wxDefaultSize ;
29549 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29550 long arg6 = (long) 0 ;
29551 bool result;
29552 wxPoint temp4 ;
29553 wxSize temp5 ;
29554 PyObject * obj0 = 0 ;
29555 PyObject * obj1 = 0 ;
29556 PyObject * obj2 = 0 ;
29557 PyObject * obj3 = 0 ;
29558 PyObject * obj4 = 0 ;
29559 PyObject * obj5 = 0 ;
29560 char *kwnames[] = {
29561 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29562 };
29563
29564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29569 if (obj2) {
29570 arg3 = (int)SWIG_As_int(obj2);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 if (obj3) {
29574 {
29575 arg4 = &temp4;
29576 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29577 }
29578 }
29579 if (obj4) {
29580 {
29581 arg5 = &temp5;
29582 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29583 }
29584 }
29585 if (obj5) {
29586 arg6 = (long)SWIG_As_long(obj5);
29587 if (PyErr_Occurred()) SWIG_fail;
29588 }
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29592
29593 wxPyEndAllowThreads(__tstate);
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 {
29597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29598 }
29599 return resultobj;
29600 fail:
29601 return NULL;
29602 }
29603
29604
29605 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29606 PyObject *resultobj;
29607 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29608 wxString *arg2 = 0 ;
29609 int arg3 ;
29610 bool temp2 = false ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 PyObject * obj2 = 0 ;
29614 char *kwnames[] = {
29615 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29616 };
29617
29618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29621 {
29622 arg2 = wxString_in_helper(obj1);
29623 if (arg2 == NULL) SWIG_fail;
29624 temp2 = true;
29625 }
29626 arg3 = (int)SWIG_As_int(obj2);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29631
29632 wxPyEndAllowThreads(__tstate);
29633 if (PyErr_Occurred()) SWIG_fail;
29634 }
29635 Py_INCREF(Py_None); resultobj = Py_None;
29636 {
29637 if (temp2)
29638 delete arg2;
29639 }
29640 return resultobj;
29641 fail:
29642 {
29643 if (temp2)
29644 delete arg2;
29645 }
29646 return NULL;
29647 }
29648
29649
29650 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29651 PyObject *obj;
29652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29653 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29654 Py_INCREF(obj);
29655 return Py_BuildValue((char *)"");
29656 }
29657 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj;
29659 wxWindow *arg1 = (wxWindow *) 0 ;
29660 int arg2 = (int) (int)-1 ;
29661 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29662 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29663 wxSize const &arg4_defvalue = wxDefaultSize ;
29664 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29665 long arg5 = (long) 0 ;
29666 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29667 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29668 wxString const &arg7_defvalue = wxPyControlNameStr ;
29669 wxString *arg7 = (wxString *) &arg7_defvalue ;
29670 wxPyControl *result;
29671 wxPoint temp3 ;
29672 wxSize temp4 ;
29673 bool temp7 = false ;
29674 PyObject * obj0 = 0 ;
29675 PyObject * obj1 = 0 ;
29676 PyObject * obj2 = 0 ;
29677 PyObject * obj3 = 0 ;
29678 PyObject * obj4 = 0 ;
29679 PyObject * obj5 = 0 ;
29680 PyObject * obj6 = 0 ;
29681 char *kwnames[] = {
29682 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29683 };
29684
29685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29688 if (obj1) {
29689 arg2 = (int)SWIG_As_int(obj1);
29690 if (PyErr_Occurred()) SWIG_fail;
29691 }
29692 if (obj2) {
29693 {
29694 arg3 = &temp3;
29695 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29696 }
29697 }
29698 if (obj3) {
29699 {
29700 arg4 = &temp4;
29701 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29702 }
29703 }
29704 if (obj4) {
29705 arg5 = (long)SWIG_As_long(obj4);
29706 if (PyErr_Occurred()) SWIG_fail;
29707 }
29708 if (obj5) {
29709 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29710 SWIG_POINTER_EXCEPTION | 0)) == -1)
29711 SWIG_fail;
29712 if (arg6 == NULL) {
29713 PyErr_SetString(PyExc_TypeError,"null reference");
29714 SWIG_fail;
29715 }
29716 }
29717 if (obj6) {
29718 {
29719 arg7 = wxString_in_helper(obj6);
29720 if (arg7 == NULL) SWIG_fail;
29721 temp7 = true;
29722 }
29723 }
29724 {
29725 if (!wxPyCheckForApp()) SWIG_fail;
29726 PyThreadState* __tstate = wxPyBeginAllowThreads();
29727 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29728
29729 wxPyEndAllowThreads(__tstate);
29730 if (PyErr_Occurred()) SWIG_fail;
29731 }
29732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29733 {
29734 if (temp7)
29735 delete arg7;
29736 }
29737 return resultobj;
29738 fail:
29739 {
29740 if (temp7)
29741 delete arg7;
29742 }
29743 return NULL;
29744 }
29745
29746
29747 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj;
29749 wxPyControl *result;
29750 char *kwnames[] = {
29751 NULL
29752 };
29753
29754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29755 {
29756 if (!wxPyCheckForApp()) SWIG_fail;
29757 PyThreadState* __tstate = wxPyBeginAllowThreads();
29758 result = (wxPyControl *)new wxPyControl();
29759
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj;
29772 wxPyControl *arg1 = (wxPyControl *) 0 ;
29773 PyObject *arg2 = (PyObject *) 0 ;
29774 PyObject *arg3 = (PyObject *) 0 ;
29775 PyObject * obj0 = 0 ;
29776 PyObject * obj1 = 0 ;
29777 PyObject * obj2 = 0 ;
29778 char *kwnames[] = {
29779 (char *) "self",(char *) "self",(char *) "_class", NULL
29780 };
29781
29782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29785 arg2 = obj1;
29786 arg3 = obj2;
29787 {
29788 PyThreadState* __tstate = wxPyBeginAllowThreads();
29789 (arg1)->_setCallbackInfo(arg2,arg3);
29790
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 Py_INCREF(Py_None); resultobj = Py_None;
29795 return resultobj;
29796 fail:
29797 return NULL;
29798 }
29799
29800
29801 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29802 PyObject *resultobj;
29803 wxPyControl *arg1 = (wxPyControl *) 0 ;
29804 wxSize *arg2 = 0 ;
29805 wxSize temp2 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 char *kwnames[] = {
29809 (char *) "self",(char *) "size", NULL
29810 };
29811
29812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29815 {
29816 arg2 = &temp2;
29817 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29818 }
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 (arg1)->SetBestSize((wxSize const &)*arg2);
29822
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 Py_INCREF(Py_None); resultobj = Py_None;
29827 return resultobj;
29828 fail:
29829 return NULL;
29830 }
29831
29832
29833 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj;
29835 wxPyControl *arg1 = (wxPyControl *) 0 ;
29836 int arg2 ;
29837 int arg3 ;
29838 int arg4 ;
29839 int arg5 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 PyObject * obj2 = 0 ;
29843 PyObject * obj3 = 0 ;
29844 PyObject * obj4 = 0 ;
29845 char *kwnames[] = {
29846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29847 };
29848
29849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29852 arg2 = (int)SWIG_As_int(obj1);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 arg3 = (int)SWIG_As_int(obj2);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 arg4 = (int)SWIG_As_int(obj3);
29857 if (PyErr_Occurred()) SWIG_fail;
29858 arg5 = (int)SWIG_As_int(obj4);
29859 if (PyErr_Occurred()) SWIG_fail;
29860 {
29861 PyThreadState* __tstate = wxPyBeginAllowThreads();
29862 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29863
29864 wxPyEndAllowThreads(__tstate);
29865 if (PyErr_Occurred()) SWIG_fail;
29866 }
29867 Py_INCREF(Py_None); resultobj = Py_None;
29868 return resultobj;
29869 fail:
29870 return NULL;
29871 }
29872
29873
29874 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29875 PyObject *resultobj;
29876 wxPyControl *arg1 = (wxPyControl *) 0 ;
29877 int arg2 ;
29878 int arg3 ;
29879 int arg4 ;
29880 int arg5 ;
29881 int arg6 = (int) wxSIZE_AUTO ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 PyObject * obj3 = 0 ;
29886 PyObject * obj4 = 0 ;
29887 PyObject * obj5 = 0 ;
29888 char *kwnames[] = {
29889 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29890 };
29891
29892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29895 arg2 = (int)SWIG_As_int(obj1);
29896 if (PyErr_Occurred()) SWIG_fail;
29897 arg3 = (int)SWIG_As_int(obj2);
29898 if (PyErr_Occurred()) SWIG_fail;
29899 arg4 = (int)SWIG_As_int(obj3);
29900 if (PyErr_Occurred()) SWIG_fail;
29901 arg5 = (int)SWIG_As_int(obj4);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 if (obj5) {
29904 arg6 = (int)SWIG_As_int(obj5);
29905 if (PyErr_Occurred()) SWIG_fail;
29906 }
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29910
29911 wxPyEndAllowThreads(__tstate);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 Py_INCREF(Py_None); resultobj = Py_None;
29915 return resultobj;
29916 fail:
29917 return NULL;
29918 }
29919
29920
29921 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj;
29923 wxPyControl *arg1 = (wxPyControl *) 0 ;
29924 int arg2 ;
29925 int arg3 ;
29926 PyObject * obj0 = 0 ;
29927 PyObject * obj1 = 0 ;
29928 PyObject * obj2 = 0 ;
29929 char *kwnames[] = {
29930 (char *) "self",(char *) "width",(char *) "height", NULL
29931 };
29932
29933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29936 arg2 = (int)SWIG_As_int(obj1);
29937 if (PyErr_Occurred()) SWIG_fail;
29938 arg3 = (int)SWIG_As_int(obj2);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 {
29941 PyThreadState* __tstate = wxPyBeginAllowThreads();
29942 (arg1)->base_DoSetClientSize(arg2,arg3);
29943
29944 wxPyEndAllowThreads(__tstate);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 Py_INCREF(Py_None); resultobj = Py_None;
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj;
29956 wxPyControl *arg1 = (wxPyControl *) 0 ;
29957 int arg2 ;
29958 int arg3 ;
29959 PyObject * obj0 = 0 ;
29960 PyObject * obj1 = 0 ;
29961 PyObject * obj2 = 0 ;
29962 char *kwnames[] = {
29963 (char *) "self",(char *) "x",(char *) "y", NULL
29964 };
29965
29966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29969 arg2 = (int)SWIG_As_int(obj1);
29970 if (PyErr_Occurred()) SWIG_fail;
29971 arg3 = (int)SWIG_As_int(obj2);
29972 if (PyErr_Occurred()) SWIG_fail;
29973 {
29974 PyThreadState* __tstate = wxPyBeginAllowThreads();
29975 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29976
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 Py_INCREF(Py_None); resultobj = Py_None;
29981 return resultobj;
29982 fail:
29983 return NULL;
29984 }
29985
29986
29987 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj;
29989 wxPyControl *arg1 = (wxPyControl *) 0 ;
29990 int *arg2 = (int *) 0 ;
29991 int *arg3 = (int *) 0 ;
29992 int temp2 ;
29993 int res2 = 0 ;
29994 int temp3 ;
29995 int res3 = 0 ;
29996 PyObject * obj0 = 0 ;
29997 char *kwnames[] = {
29998 (char *) "self", NULL
29999 };
30000
30001 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30002 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
30004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30006 {
30007 PyThreadState* __tstate = wxPyBeginAllowThreads();
30008 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
30009
30010 wxPyEndAllowThreads(__tstate);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 Py_INCREF(Py_None); resultobj = Py_None;
30014 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30015 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30016 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30017 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj;
30026 wxPyControl *arg1 = (wxPyControl *) 0 ;
30027 int *arg2 = (int *) 0 ;
30028 int *arg3 = (int *) 0 ;
30029 int temp2 ;
30030 int res2 = 0 ;
30031 int temp3 ;
30032 int res3 = 0 ;
30033 PyObject * obj0 = 0 ;
30034 char *kwnames[] = {
30035 (char *) "self", NULL
30036 };
30037
30038 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30039 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
30041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
30046
30047 wxPyEndAllowThreads(__tstate);
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 Py_INCREF(Py_None); resultobj = Py_None;
30051 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30052 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30053 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30054 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30055 return resultobj;
30056 fail:
30057 return NULL;
30058 }
30059
30060
30061 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30062 PyObject *resultobj;
30063 wxPyControl *arg1 = (wxPyControl *) 0 ;
30064 int *arg2 = (int *) 0 ;
30065 int *arg3 = (int *) 0 ;
30066 int temp2 ;
30067 int res2 = 0 ;
30068 int temp3 ;
30069 int res3 = 0 ;
30070 PyObject * obj0 = 0 ;
30071 char *kwnames[] = {
30072 (char *) "self", NULL
30073 };
30074
30075 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30076 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
30078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
30083
30084 wxPyEndAllowThreads(__tstate);
30085 if (PyErr_Occurred()) SWIG_fail;
30086 }
30087 Py_INCREF(Py_None); resultobj = Py_None;
30088 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30089 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30090 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30091 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30092 return resultobj;
30093 fail:
30094 return NULL;
30095 }
30096
30097
30098 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
30099 PyObject *resultobj;
30100 wxPyControl *arg1 = (wxPyControl *) 0 ;
30101 wxSize result;
30102 PyObject * obj0 = 0 ;
30103 char *kwnames[] = {
30104 (char *) "self", NULL
30105 };
30106
30107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
30108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30110 {
30111 PyThreadState* __tstate = wxPyBeginAllowThreads();
30112 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
30113
30114 wxPyEndAllowThreads(__tstate);
30115 if (PyErr_Occurred()) SWIG_fail;
30116 }
30117 {
30118 wxSize * resultptr;
30119 resultptr = new wxSize((wxSize &) result);
30120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30121 }
30122 return resultobj;
30123 fail:
30124 return NULL;
30125 }
30126
30127
30128 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
30129 PyObject *resultobj;
30130 wxPyControl *arg1 = (wxPyControl *) 0 ;
30131 wxSize result;
30132 PyObject * obj0 = 0 ;
30133 char *kwnames[] = {
30134 (char *) "self", NULL
30135 };
30136
30137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",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 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
30143
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 {
30148 wxSize * resultptr;
30149 resultptr = new wxSize((wxSize &) result);
30150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30151 }
30152 return resultobj;
30153 fail:
30154 return NULL;
30155 }
30156
30157
30158 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
30159 PyObject *resultobj;
30160 wxPyControl *arg1 = (wxPyControl *) 0 ;
30161 PyObject * obj0 = 0 ;
30162 char *kwnames[] = {
30163 (char *) "self", NULL
30164 };
30165
30166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
30167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30169 {
30170 PyThreadState* __tstate = wxPyBeginAllowThreads();
30171 (arg1)->base_InitDialog();
30172
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 Py_INCREF(Py_None); resultobj = Py_None;
30177 return resultobj;
30178 fail:
30179 return NULL;
30180 }
30181
30182
30183 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj;
30185 wxPyControl *arg1 = (wxPyControl *) 0 ;
30186 bool result;
30187 PyObject * obj0 = 0 ;
30188 char *kwnames[] = {
30189 (char *) "self", NULL
30190 };
30191
30192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
30193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30195 {
30196 PyThreadState* __tstate = wxPyBeginAllowThreads();
30197 result = (bool)(arg1)->base_TransferDataToWindow();
30198
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 {
30203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30204 }
30205 return resultobj;
30206 fail:
30207 return NULL;
30208 }
30209
30210
30211 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30212 PyObject *resultobj;
30213 wxPyControl *arg1 = (wxPyControl *) 0 ;
30214 bool result;
30215 PyObject * obj0 = 0 ;
30216 char *kwnames[] = {
30217 (char *) "self", NULL
30218 };
30219
30220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
30221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30223 {
30224 PyThreadState* __tstate = wxPyBeginAllowThreads();
30225 result = (bool)(arg1)->base_TransferDataFromWindow();
30226
30227 wxPyEndAllowThreads(__tstate);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 {
30231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30232 }
30233 return resultobj;
30234 fail:
30235 return NULL;
30236 }
30237
30238
30239 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj;
30241 wxPyControl *arg1 = (wxPyControl *) 0 ;
30242 bool result;
30243 PyObject * obj0 = 0 ;
30244 char *kwnames[] = {
30245 (char *) "self", NULL
30246 };
30247
30248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
30249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30251 {
30252 PyThreadState* __tstate = wxPyBeginAllowThreads();
30253 result = (bool)(arg1)->base_Validate();
30254
30255 wxPyEndAllowThreads(__tstate);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 {
30259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30260 }
30261 return resultobj;
30262 fail:
30263 return NULL;
30264 }
30265
30266
30267 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
30268 PyObject *resultobj;
30269 wxPyControl *arg1 = (wxPyControl *) 0 ;
30270 bool result;
30271 PyObject * obj0 = 0 ;
30272 char *kwnames[] = {
30273 (char *) "self", NULL
30274 };
30275
30276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
30277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30279 {
30280 PyThreadState* __tstate = wxPyBeginAllowThreads();
30281 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
30282
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 {
30287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30288 }
30289 return resultobj;
30290 fail:
30291 return NULL;
30292 }
30293
30294
30295 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
30296 PyObject *resultobj;
30297 wxPyControl *arg1 = (wxPyControl *) 0 ;
30298 bool result;
30299 PyObject * obj0 = 0 ;
30300 char *kwnames[] = {
30301 (char *) "self", NULL
30302 };
30303
30304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30310
30311 wxPyEndAllowThreads(__tstate);
30312 if (PyErr_Occurred()) SWIG_fail;
30313 }
30314 {
30315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30316 }
30317 return resultobj;
30318 fail:
30319 return NULL;
30320 }
30321
30322
30323 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30324 PyObject *resultobj;
30325 wxPyControl *arg1 = (wxPyControl *) 0 ;
30326 wxSize result;
30327 PyObject * obj0 = 0 ;
30328 char *kwnames[] = {
30329 (char *) "self", NULL
30330 };
30331
30332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30335 {
30336 PyThreadState* __tstate = wxPyBeginAllowThreads();
30337 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30338
30339 wxPyEndAllowThreads(__tstate);
30340 if (PyErr_Occurred()) SWIG_fail;
30341 }
30342 {
30343 wxSize * resultptr;
30344 resultptr = new wxSize((wxSize &) result);
30345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30346 }
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 static PyObject *_wrap_PyControl_base_AddChild(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_AddChild",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_AddChild(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_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30383 PyObject *resultobj;
30384 wxPyControl *arg1 = (wxPyControl *) 0 ;
30385 wxWindow *arg2 = (wxWindow *) 0 ;
30386 PyObject * obj0 = 0 ;
30387 PyObject * obj1 = 0 ;
30388 char *kwnames[] = {
30389 (char *) "self",(char *) "child", NULL
30390 };
30391
30392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30397 {
30398 PyThreadState* __tstate = wxPyBeginAllowThreads();
30399 (arg1)->base_RemoveChild(arg2);
30400
30401 wxPyEndAllowThreads(__tstate);
30402 if (PyErr_Occurred()) SWIG_fail;
30403 }
30404 Py_INCREF(Py_None); resultobj = Py_None;
30405 return resultobj;
30406 fail:
30407 return NULL;
30408 }
30409
30410
30411 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30412 PyObject *resultobj;
30413 wxPyControl *arg1 = (wxPyControl *) 0 ;
30414 bool result;
30415 PyObject * obj0 = 0 ;
30416 char *kwnames[] = {
30417 (char *) "self", NULL
30418 };
30419
30420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30423 {
30424 PyThreadState* __tstate = wxPyBeginAllowThreads();
30425 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30426
30427 wxPyEndAllowThreads(__tstate);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 }
30430 {
30431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30432 }
30433 return resultobj;
30434 fail:
30435 return NULL;
30436 }
30437
30438
30439 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj;
30441 wxPyControl *arg1 = (wxPyControl *) 0 ;
30442 wxColour *arg2 = 0 ;
30443 wxColour temp2 ;
30444 PyObject * obj0 = 0 ;
30445 PyObject * obj1 = 0 ;
30446 char *kwnames[] = {
30447 (char *) "self",(char *) "c", NULL
30448 };
30449
30450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30453 {
30454 arg2 = &temp2;
30455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30456 }
30457 {
30458 PyThreadState* __tstate = wxPyBeginAllowThreads();
30459 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30460
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 Py_INCREF(Py_None); resultobj = Py_None;
30465 return resultobj;
30466 fail:
30467 return NULL;
30468 }
30469
30470
30471 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30472 PyObject *resultobj;
30473 wxPyControl *arg1 = (wxPyControl *) 0 ;
30474 wxVisualAttributes result;
30475 PyObject * obj0 = 0 ;
30476 char *kwnames[] = {
30477 (char *) "self", NULL
30478 };
30479
30480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30483 {
30484 PyThreadState* __tstate = wxPyBeginAllowThreads();
30485 result = (arg1)->base_GetDefaultAttributes();
30486
30487 wxPyEndAllowThreads(__tstate);
30488 if (PyErr_Occurred()) SWIG_fail;
30489 }
30490 {
30491 wxVisualAttributes * resultptr;
30492 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30494 }
30495 return resultobj;
30496 fail:
30497 return NULL;
30498 }
30499
30500
30501 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30502 PyObject *obj;
30503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30504 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30505 Py_INCREF(obj);
30506 return Py_BuildValue((char *)"");
30507 }
30508 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj;
30510 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30511 int arg2 = (int) 0 ;
30512 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30513 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30514 wxHelpEvent *result;
30515 wxPoint temp3 ;
30516 PyObject * obj0 = 0 ;
30517 PyObject * obj1 = 0 ;
30518 PyObject * obj2 = 0 ;
30519 char *kwnames[] = {
30520 (char *) "type",(char *) "winid",(char *) "pt", NULL
30521 };
30522
30523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30524 if (obj0) {
30525 arg1 = (wxEventType)SWIG_As_int(obj0);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 if (obj1) {
30529 arg2 = (int)SWIG_As_int(obj1);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
30532 if (obj2) {
30533 {
30534 arg3 = &temp3;
30535 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30536 }
30537 }
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30541
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30546 return resultobj;
30547 fail:
30548 return NULL;
30549 }
30550
30551
30552 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30553 PyObject *resultobj;
30554 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30555 wxPoint result;
30556 PyObject * obj0 = 0 ;
30557 char *kwnames[] = {
30558 (char *) "self", NULL
30559 };
30560
30561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30564 {
30565 PyThreadState* __tstate = wxPyBeginAllowThreads();
30566 result = ((wxHelpEvent const *)arg1)->GetPosition();
30567
30568 wxPyEndAllowThreads(__tstate);
30569 if (PyErr_Occurred()) SWIG_fail;
30570 }
30571 {
30572 wxPoint * resultptr;
30573 resultptr = new wxPoint((wxPoint &) result);
30574 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30575 }
30576 return resultobj;
30577 fail:
30578 return NULL;
30579 }
30580
30581
30582 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30583 PyObject *resultobj;
30584 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30585 wxPoint *arg2 = 0 ;
30586 wxPoint temp2 ;
30587 PyObject * obj0 = 0 ;
30588 PyObject * obj1 = 0 ;
30589 char *kwnames[] = {
30590 (char *) "self",(char *) "pos", NULL
30591 };
30592
30593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30596 {
30597 arg2 = &temp2;
30598 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30599 }
30600 {
30601 PyThreadState* __tstate = wxPyBeginAllowThreads();
30602 (arg1)->SetPosition((wxPoint const &)*arg2);
30603
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 Py_INCREF(Py_None); resultobj = Py_None;
30608 return resultobj;
30609 fail:
30610 return NULL;
30611 }
30612
30613
30614 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30615 PyObject *resultobj;
30616 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30617 wxString *result;
30618 PyObject * obj0 = 0 ;
30619 char *kwnames[] = {
30620 (char *) "self", NULL
30621 };
30622
30623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30626 {
30627 PyThreadState* __tstate = wxPyBeginAllowThreads();
30628 {
30629 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30630 result = (wxString *) &_result_ref;
30631 }
30632
30633 wxPyEndAllowThreads(__tstate);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 {
30637 #if wxUSE_UNICODE
30638 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30639 #else
30640 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30641 #endif
30642 }
30643 return resultobj;
30644 fail:
30645 return NULL;
30646 }
30647
30648
30649 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30650 PyObject *resultobj;
30651 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30652 wxString *arg2 = 0 ;
30653 bool temp2 = false ;
30654 PyObject * obj0 = 0 ;
30655 PyObject * obj1 = 0 ;
30656 char *kwnames[] = {
30657 (char *) "self",(char *) "link", NULL
30658 };
30659
30660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30663 {
30664 arg2 = wxString_in_helper(obj1);
30665 if (arg2 == NULL) SWIG_fail;
30666 temp2 = true;
30667 }
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 (arg1)->SetLink((wxString const &)*arg2);
30671
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 Py_INCREF(Py_None); resultobj = Py_None;
30676 {
30677 if (temp2)
30678 delete arg2;
30679 }
30680 return resultobj;
30681 fail:
30682 {
30683 if (temp2)
30684 delete arg2;
30685 }
30686 return NULL;
30687 }
30688
30689
30690 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30691 PyObject *resultobj;
30692 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30693 wxString *result;
30694 PyObject * obj0 = 0 ;
30695 char *kwnames[] = {
30696 (char *) "self", NULL
30697 };
30698
30699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
30704 {
30705 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30706 result = (wxString *) &_result_ref;
30707 }
30708
30709 wxPyEndAllowThreads(__tstate);
30710 if (PyErr_Occurred()) SWIG_fail;
30711 }
30712 {
30713 #if wxUSE_UNICODE
30714 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30715 #else
30716 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30717 #endif
30718 }
30719 return resultobj;
30720 fail:
30721 return NULL;
30722 }
30723
30724
30725 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30726 PyObject *resultobj;
30727 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30728 wxString *arg2 = 0 ;
30729 bool temp2 = false ;
30730 PyObject * obj0 = 0 ;
30731 PyObject * obj1 = 0 ;
30732 char *kwnames[] = {
30733 (char *) "self",(char *) "target", NULL
30734 };
30735
30736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30739 {
30740 arg2 = wxString_in_helper(obj1);
30741 if (arg2 == NULL) SWIG_fail;
30742 temp2 = true;
30743 }
30744 {
30745 PyThreadState* __tstate = wxPyBeginAllowThreads();
30746 (arg1)->SetTarget((wxString const &)*arg2);
30747
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 Py_INCREF(Py_None); resultobj = Py_None;
30752 {
30753 if (temp2)
30754 delete arg2;
30755 }
30756 return resultobj;
30757 fail:
30758 {
30759 if (temp2)
30760 delete arg2;
30761 }
30762 return NULL;
30763 }
30764
30765
30766 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30767 PyObject *obj;
30768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30769 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30770 Py_INCREF(obj);
30771 return Py_BuildValue((char *)"");
30772 }
30773 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30774 PyObject *resultobj;
30775 wxWindow *arg1 = (wxWindow *) NULL ;
30776 bool arg2 = (bool) true ;
30777 wxContextHelp *result;
30778 PyObject * obj0 = 0 ;
30779 PyObject * obj1 = 0 ;
30780 char *kwnames[] = {
30781 (char *) "window",(char *) "doNow", NULL
30782 };
30783
30784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30785 if (obj0) {
30786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30788 }
30789 if (obj1) {
30790 arg2 = (bool)SWIG_As_bool(obj1);
30791 if (PyErr_Occurred()) SWIG_fail;
30792 }
30793 {
30794 if (!wxPyCheckForApp()) SWIG_fail;
30795 PyThreadState* __tstate = wxPyBeginAllowThreads();
30796 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30797
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30809 PyObject *resultobj;
30810 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30811 PyObject * obj0 = 0 ;
30812 char *kwnames[] = {
30813 (char *) "self", NULL
30814 };
30815
30816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 delete arg1;
30822
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 Py_INCREF(Py_None); resultobj = Py_None;
30827 return resultobj;
30828 fail:
30829 return NULL;
30830 }
30831
30832
30833 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30834 PyObject *resultobj;
30835 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30836 wxWindow *arg2 = (wxWindow *) NULL ;
30837 bool result;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 char *kwnames[] = {
30841 (char *) "self",(char *) "window", NULL
30842 };
30843
30844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30847 if (obj1) {
30848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30850 }
30851 {
30852 PyThreadState* __tstate = wxPyBeginAllowThreads();
30853 result = (bool)(arg1)->BeginContextHelp(arg2);
30854
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
30858 {
30859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30860 }
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj;
30869 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30870 bool result;
30871 PyObject * obj0 = 0 ;
30872 char *kwnames[] = {
30873 (char *) "self", NULL
30874 };
30875
30876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30879 {
30880 PyThreadState* __tstate = wxPyBeginAllowThreads();
30881 result = (bool)(arg1)->EndContextHelp();
30882
30883 wxPyEndAllowThreads(__tstate);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 {
30887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30888 }
30889 return resultobj;
30890 fail:
30891 return NULL;
30892 }
30893
30894
30895 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30896 PyObject *obj;
30897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30898 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30899 Py_INCREF(obj);
30900 return Py_BuildValue((char *)"");
30901 }
30902 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30903 PyObject *resultobj;
30904 wxWindow *arg1 = (wxWindow *) 0 ;
30905 int arg2 = (int) wxID_CONTEXT_HELP ;
30906 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30907 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30908 wxSize const &arg4_defvalue = wxDefaultSize ;
30909 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30910 long arg5 = (long) wxBU_AUTODRAW ;
30911 wxContextHelpButton *result;
30912 wxPoint temp3 ;
30913 wxSize temp4 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 PyObject * obj2 = 0 ;
30917 PyObject * obj3 = 0 ;
30918 PyObject * obj4 = 0 ;
30919 char *kwnames[] = {
30920 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30921 };
30922
30923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30926 if (obj1) {
30927 arg2 = (int)SWIG_As_int(obj1);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 if (obj2) {
30931 {
30932 arg3 = &temp3;
30933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30934 }
30935 }
30936 if (obj3) {
30937 {
30938 arg4 = &temp4;
30939 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30940 }
30941 }
30942 if (obj4) {
30943 arg5 = (long)SWIG_As_long(obj4);
30944 if (PyErr_Occurred()) SWIG_fail;
30945 }
30946 {
30947 if (!wxPyCheckForApp()) SWIG_fail;
30948 PyThreadState* __tstate = wxPyBeginAllowThreads();
30949 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30950
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30955 return resultobj;
30956 fail:
30957 return NULL;
30958 }
30959
30960
30961 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30962 PyObject *obj;
30963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30964 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30965 Py_INCREF(obj);
30966 return Py_BuildValue((char *)"");
30967 }
30968 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30969 PyObject *resultobj;
30970 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30971 wxHelpProvider *result;
30972 PyObject * obj0 = 0 ;
30973 char *kwnames[] = {
30974 (char *) "helpProvider", NULL
30975 };
30976
30977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30980 {
30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
30982 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30983
30984 wxPyEndAllowThreads(__tstate);
30985 if (PyErr_Occurred()) SWIG_fail;
30986 }
30987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30988 return resultobj;
30989 fail:
30990 return NULL;
30991 }
30992
30993
30994 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30995 PyObject *resultobj;
30996 wxHelpProvider *result;
30997 char *kwnames[] = {
30998 NULL
30999 };
31000
31001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 result = (wxHelpProvider *)wxHelpProvider::Get();
31005
31006 wxPyEndAllowThreads(__tstate);
31007 if (PyErr_Occurred()) SWIG_fail;
31008 }
31009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
31010 return resultobj;
31011 fail:
31012 return NULL;
31013 }
31014
31015
31016 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31017 PyObject *resultobj;
31018 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31019 wxWindow *arg2 = (wxWindow *) 0 ;
31020 wxString result;
31021 PyObject * obj0 = 0 ;
31022 PyObject * obj1 = 0 ;
31023 char *kwnames[] = {
31024 (char *) "self",(char *) "window", NULL
31025 };
31026
31027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
31028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31032 {
31033 PyThreadState* __tstate = wxPyBeginAllowThreads();
31034 result = (arg1)->GetHelp((wxWindow const *)arg2);
31035
31036 wxPyEndAllowThreads(__tstate);
31037 if (PyErr_Occurred()) SWIG_fail;
31038 }
31039 {
31040 #if wxUSE_UNICODE
31041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31042 #else
31043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31044 #endif
31045 }
31046 return resultobj;
31047 fail:
31048 return NULL;
31049 }
31050
31051
31052 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31053 PyObject *resultobj;
31054 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31055 wxWindow *arg2 = (wxWindow *) 0 ;
31056 bool result;
31057 PyObject * obj0 = 0 ;
31058 PyObject * obj1 = 0 ;
31059 char *kwnames[] = {
31060 (char *) "self",(char *) "window", NULL
31061 };
31062
31063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
31064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (bool)(arg1)->ShowHelp(arg2);
31071
31072 wxPyEndAllowThreads(__tstate);
31073 if (PyErr_Occurred()) SWIG_fail;
31074 }
31075 {
31076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31077 }
31078 return resultobj;
31079 fail:
31080 return NULL;
31081 }
31082
31083
31084 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31085 PyObject *resultobj;
31086 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31087 wxWindow *arg2 = (wxWindow *) 0 ;
31088 wxString *arg3 = 0 ;
31089 bool temp3 = false ;
31090 PyObject * obj0 = 0 ;
31091 PyObject * obj1 = 0 ;
31092 PyObject * obj2 = 0 ;
31093 char *kwnames[] = {
31094 (char *) "self",(char *) "window",(char *) "text", NULL
31095 };
31096
31097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
31098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31102 {
31103 arg3 = wxString_in_helper(obj2);
31104 if (arg3 == NULL) SWIG_fail;
31105 temp3 = true;
31106 }
31107 {
31108 PyThreadState* __tstate = wxPyBeginAllowThreads();
31109 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31110
31111 wxPyEndAllowThreads(__tstate);
31112 if (PyErr_Occurred()) SWIG_fail;
31113 }
31114 Py_INCREF(Py_None); resultobj = Py_None;
31115 {
31116 if (temp3)
31117 delete arg3;
31118 }
31119 return resultobj;
31120 fail:
31121 {
31122 if (temp3)
31123 delete arg3;
31124 }
31125 return NULL;
31126 }
31127
31128
31129 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
31130 PyObject *resultobj;
31131 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31132 int arg2 ;
31133 wxString *arg3 = 0 ;
31134 bool temp3 = false ;
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 PyObject * obj2 = 0 ;
31138 char *kwnames[] = {
31139 (char *) "self",(char *) "id",(char *) "text", NULL
31140 };
31141
31142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
31143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31145 arg2 = (int)SWIG_As_int(obj1);
31146 if (PyErr_Occurred()) SWIG_fail;
31147 {
31148 arg3 = wxString_in_helper(obj2);
31149 if (arg3 == NULL) SWIG_fail;
31150 temp3 = true;
31151 }
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31155
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 Py_INCREF(Py_None); resultobj = Py_None;
31160 {
31161 if (temp3)
31162 delete arg3;
31163 }
31164 return resultobj;
31165 fail:
31166 {
31167 if (temp3)
31168 delete arg3;
31169 }
31170 return NULL;
31171 }
31172
31173
31174 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31175 PyObject *resultobj;
31176 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31177 wxWindow *arg2 = (wxWindow *) 0 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 char *kwnames[] = {
31181 (char *) "self",(char *) "window", NULL
31182 };
31183
31184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
31185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31189 {
31190 PyThreadState* __tstate = wxPyBeginAllowThreads();
31191 (arg1)->RemoveHelp(arg2);
31192
31193 wxPyEndAllowThreads(__tstate);
31194 if (PyErr_Occurred()) SWIG_fail;
31195 }
31196 Py_INCREF(Py_None); resultobj = Py_None;
31197 return resultobj;
31198 fail:
31199 return NULL;
31200 }
31201
31202
31203 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
31204 PyObject *resultobj;
31205 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31206 PyObject * obj0 = 0 ;
31207 char *kwnames[] = {
31208 (char *) "self", NULL
31209 };
31210
31211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
31212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
31216 wxHelpProvider_Destroy(arg1);
31217
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 Py_INCREF(Py_None); resultobj = Py_None;
31222 return resultobj;
31223 fail:
31224 return NULL;
31225 }
31226
31227
31228 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
31229 PyObject *obj;
31230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31231 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
31232 Py_INCREF(obj);
31233 return Py_BuildValue((char *)"");
31234 }
31235 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
31236 PyObject *resultobj;
31237 wxSimpleHelpProvider *result;
31238 char *kwnames[] = {
31239 NULL
31240 };
31241
31242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
31243 {
31244 PyThreadState* __tstate = wxPyBeginAllowThreads();
31245 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
31246
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
31251 return resultobj;
31252 fail:
31253 return NULL;
31254 }
31255
31256
31257 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
31258 PyObject *obj;
31259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31260 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
31261 Py_INCREF(obj);
31262 return Py_BuildValue((char *)"");
31263 }
31264 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj;
31266 wxBitmap *arg1 = 0 ;
31267 wxCursor const &arg2_defvalue = wxNullCursor ;
31268 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31269 wxGenericDragImage *result;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 char *kwnames[] = {
31273 (char *) "image",(char *) "cursor", NULL
31274 };
31275
31276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
31277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
31278 SWIG_POINTER_EXCEPTION | 0)) == -1)
31279 SWIG_fail;
31280 if (arg1 == NULL) {
31281 PyErr_SetString(PyExc_TypeError,"null reference");
31282 SWIG_fail;
31283 }
31284 if (obj1) {
31285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31286 SWIG_POINTER_EXCEPTION | 0)) == -1)
31287 SWIG_fail;
31288 if (arg2 == NULL) {
31289 PyErr_SetString(PyExc_TypeError,"null reference");
31290 SWIG_fail;
31291 }
31292 }
31293 {
31294 if (!wxPyCheckForApp()) SWIG_fail;
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
31297
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31302 return resultobj;
31303 fail:
31304 return NULL;
31305 }
31306
31307
31308 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj;
31310 wxIcon *arg1 = 0 ;
31311 wxCursor const &arg2_defvalue = wxNullCursor ;
31312 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31313 wxGenericDragImage *result;
31314 PyObject * obj0 = 0 ;
31315 PyObject * obj1 = 0 ;
31316 char *kwnames[] = {
31317 (char *) "image",(char *) "cursor", NULL
31318 };
31319
31320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31322 SWIG_POINTER_EXCEPTION | 0)) == -1)
31323 SWIG_fail;
31324 if (arg1 == NULL) {
31325 PyErr_SetString(PyExc_TypeError,"null reference");
31326 SWIG_fail;
31327 }
31328 if (obj1) {
31329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31330 SWIG_POINTER_EXCEPTION | 0)) == -1)
31331 SWIG_fail;
31332 if (arg2 == NULL) {
31333 PyErr_SetString(PyExc_TypeError,"null reference");
31334 SWIG_fail;
31335 }
31336 }
31337 {
31338 if (!wxPyCheckForApp()) SWIG_fail;
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31341
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31346 return resultobj;
31347 fail:
31348 return NULL;
31349 }
31350
31351
31352 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31353 PyObject *resultobj;
31354 wxString *arg1 = 0 ;
31355 wxCursor const &arg2_defvalue = wxNullCursor ;
31356 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31357 wxGenericDragImage *result;
31358 bool temp1 = false ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 char *kwnames[] = {
31362 (char *) "str",(char *) "cursor", NULL
31363 };
31364
31365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31366 {
31367 arg1 = wxString_in_helper(obj0);
31368 if (arg1 == NULL) SWIG_fail;
31369 temp1 = true;
31370 }
31371 if (obj1) {
31372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31373 SWIG_POINTER_EXCEPTION | 0)) == -1)
31374 SWIG_fail;
31375 if (arg2 == NULL) {
31376 PyErr_SetString(PyExc_TypeError,"null reference");
31377 SWIG_fail;
31378 }
31379 }
31380 {
31381 if (!wxPyCheckForApp()) SWIG_fail;
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31384
31385 wxPyEndAllowThreads(__tstate);
31386 if (PyErr_Occurred()) SWIG_fail;
31387 }
31388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31389 {
31390 if (temp1)
31391 delete arg1;
31392 }
31393 return resultobj;
31394 fail:
31395 {
31396 if (temp1)
31397 delete arg1;
31398 }
31399 return NULL;
31400 }
31401
31402
31403 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31404 PyObject *resultobj;
31405 wxPyTreeCtrl *arg1 = 0 ;
31406 wxTreeItemId *arg2 = 0 ;
31407 wxGenericDragImage *result;
31408 PyObject * obj0 = 0 ;
31409 PyObject * obj1 = 0 ;
31410 char *kwnames[] = {
31411 (char *) "treeCtrl",(char *) "id", NULL
31412 };
31413
31414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31416 SWIG_POINTER_EXCEPTION | 0)) == -1)
31417 SWIG_fail;
31418 if (arg1 == NULL) {
31419 PyErr_SetString(PyExc_TypeError,"null reference");
31420 SWIG_fail;
31421 }
31422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31423 SWIG_POINTER_EXCEPTION | 0)) == -1)
31424 SWIG_fail;
31425 if (arg2 == NULL) {
31426 PyErr_SetString(PyExc_TypeError,"null reference");
31427 SWIG_fail;
31428 }
31429 {
31430 if (!wxPyCheckForApp()) SWIG_fail;
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31433
31434 wxPyEndAllowThreads(__tstate);
31435 if (PyErr_Occurred()) SWIG_fail;
31436 }
31437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31438 return resultobj;
31439 fail:
31440 return NULL;
31441 }
31442
31443
31444 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31445 PyObject *resultobj;
31446 wxPyListCtrl *arg1 = 0 ;
31447 long arg2 ;
31448 wxGenericDragImage *result;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 char *kwnames[] = {
31452 (char *) "listCtrl",(char *) "id", NULL
31453 };
31454
31455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31457 SWIG_POINTER_EXCEPTION | 0)) == -1)
31458 SWIG_fail;
31459 if (arg1 == NULL) {
31460 PyErr_SetString(PyExc_TypeError,"null reference");
31461 SWIG_fail;
31462 }
31463 arg2 = (long)SWIG_As_long(obj1);
31464 if (PyErr_Occurred()) SWIG_fail;
31465 {
31466 if (!wxPyCheckForApp()) SWIG_fail;
31467 PyThreadState* __tstate = wxPyBeginAllowThreads();
31468 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31469
31470 wxPyEndAllowThreads(__tstate);
31471 if (PyErr_Occurred()) SWIG_fail;
31472 }
31473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31474 return resultobj;
31475 fail:
31476 return NULL;
31477 }
31478
31479
31480 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31481 PyObject *resultobj;
31482 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31483 PyObject * obj0 = 0 ;
31484 char *kwnames[] = {
31485 (char *) "self", NULL
31486 };
31487
31488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31491 {
31492 PyThreadState* __tstate = wxPyBeginAllowThreads();
31493 delete arg1;
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_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31506 PyObject *resultobj;
31507 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31508 wxBitmap *arg2 = (wxBitmap *) 0 ;
31509 PyObject * obj0 = 0 ;
31510 PyObject * obj1 = 0 ;
31511 char *kwnames[] = {
31512 (char *) "self",(char *) "bitmap", NULL
31513 };
31514
31515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31520 {
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 (arg1)->SetBackingBitmap(arg2);
31523
31524 wxPyEndAllowThreads(__tstate);
31525 if (PyErr_Occurred()) SWIG_fail;
31526 }
31527 Py_INCREF(Py_None); resultobj = Py_None;
31528 return resultobj;
31529 fail:
31530 return NULL;
31531 }
31532
31533
31534 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31535 PyObject *resultobj;
31536 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31537 wxPoint *arg2 = 0 ;
31538 wxWindow *arg3 = (wxWindow *) 0 ;
31539 bool arg4 = (bool) false ;
31540 wxRect *arg5 = (wxRect *) NULL ;
31541 bool result;
31542 wxPoint temp2 ;
31543 PyObject * obj0 = 0 ;
31544 PyObject * obj1 = 0 ;
31545 PyObject * obj2 = 0 ;
31546 PyObject * obj3 = 0 ;
31547 PyObject * obj4 = 0 ;
31548 char *kwnames[] = {
31549 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31550 };
31551
31552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31555 {
31556 arg2 = &temp2;
31557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31558 }
31559 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31561 if (obj3) {
31562 arg4 = (bool)SWIG_As_bool(obj3);
31563 if (PyErr_Occurred()) SWIG_fail;
31564 }
31565 if (obj4) {
31566 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31568 }
31569 {
31570 PyThreadState* __tstate = wxPyBeginAllowThreads();
31571 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31572
31573 wxPyEndAllowThreads(__tstate);
31574 if (PyErr_Occurred()) SWIG_fail;
31575 }
31576 {
31577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31578 }
31579 return resultobj;
31580 fail:
31581 return NULL;
31582 }
31583
31584
31585 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31586 PyObject *resultobj;
31587 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31588 wxPoint *arg2 = 0 ;
31589 wxWindow *arg3 = (wxWindow *) 0 ;
31590 wxWindow *arg4 = (wxWindow *) 0 ;
31591 bool result;
31592 wxPoint temp2 ;
31593 PyObject * obj0 = 0 ;
31594 PyObject * obj1 = 0 ;
31595 PyObject * obj2 = 0 ;
31596 PyObject * obj3 = 0 ;
31597 char *kwnames[] = {
31598 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31599 };
31600
31601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31604 {
31605 arg2 = &temp2;
31606 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31607 }
31608 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31610 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31615
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 {
31620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31621 }
31622 return resultobj;
31623 fail:
31624 return NULL;
31625 }
31626
31627
31628 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31629 PyObject *resultobj;
31630 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31631 bool result;
31632 PyObject * obj0 = 0 ;
31633 char *kwnames[] = {
31634 (char *) "self", NULL
31635 };
31636
31637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31640 {
31641 PyThreadState* __tstate = wxPyBeginAllowThreads();
31642 result = (bool)(arg1)->EndDrag();
31643
31644 wxPyEndAllowThreads(__tstate);
31645 if (PyErr_Occurred()) SWIG_fail;
31646 }
31647 {
31648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31649 }
31650 return resultobj;
31651 fail:
31652 return NULL;
31653 }
31654
31655
31656 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31657 PyObject *resultobj;
31658 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31659 wxPoint *arg2 = 0 ;
31660 bool result;
31661 wxPoint temp2 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char *kwnames[] = {
31665 (char *) "self",(char *) "pt", NULL
31666 };
31667
31668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31671 {
31672 arg2 = &temp2;
31673 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31674 }
31675 {
31676 PyThreadState* __tstate = wxPyBeginAllowThreads();
31677 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31678
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 {
31683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31684 }
31685 return resultobj;
31686 fail:
31687 return NULL;
31688 }
31689
31690
31691 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31692 PyObject *resultobj;
31693 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31694 bool result;
31695 PyObject * obj0 = 0 ;
31696 char *kwnames[] = {
31697 (char *) "self", NULL
31698 };
31699
31700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31703 {
31704 PyThreadState* __tstate = wxPyBeginAllowThreads();
31705 result = (bool)(arg1)->Show();
31706
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 {
31711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31712 }
31713 return resultobj;
31714 fail:
31715 return NULL;
31716 }
31717
31718
31719 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31720 PyObject *resultobj;
31721 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31722 bool result;
31723 PyObject * obj0 = 0 ;
31724 char *kwnames[] = {
31725 (char *) "self", NULL
31726 };
31727
31728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = (bool)(arg1)->Hide();
31734
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 {
31739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31740 }
31741 return resultobj;
31742 fail:
31743 return NULL;
31744 }
31745
31746
31747 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31748 PyObject *resultobj;
31749 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31750 wxPoint *arg2 = 0 ;
31751 wxRect result;
31752 wxPoint temp2 ;
31753 PyObject * obj0 = 0 ;
31754 PyObject * obj1 = 0 ;
31755 char *kwnames[] = {
31756 (char *) "self",(char *) "pos", NULL
31757 };
31758
31759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31762 {
31763 arg2 = &temp2;
31764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31765 }
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31769
31770 wxPyEndAllowThreads(__tstate);
31771 if (PyErr_Occurred()) SWIG_fail;
31772 }
31773 {
31774 wxRect * resultptr;
31775 resultptr = new wxRect((wxRect &) result);
31776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31777 }
31778 return resultobj;
31779 fail:
31780 return NULL;
31781 }
31782
31783
31784 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31785 PyObject *resultobj;
31786 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31787 wxDC *arg2 = 0 ;
31788 wxPoint *arg3 = 0 ;
31789 bool result;
31790 wxPoint temp3 ;
31791 PyObject * obj0 = 0 ;
31792 PyObject * obj1 = 0 ;
31793 PyObject * obj2 = 0 ;
31794 char *kwnames[] = {
31795 (char *) "self",(char *) "dc",(char *) "pos", NULL
31796 };
31797
31798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31801 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31802 SWIG_POINTER_EXCEPTION | 0)) == -1)
31803 SWIG_fail;
31804 if (arg2 == NULL) {
31805 PyErr_SetString(PyExc_TypeError,"null reference");
31806 SWIG_fail;
31807 }
31808 {
31809 arg3 = &temp3;
31810 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31811 }
31812 {
31813 PyThreadState* __tstate = wxPyBeginAllowThreads();
31814 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31815
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 {
31820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31821 }
31822 return resultobj;
31823 fail:
31824 return NULL;
31825 }
31826
31827
31828 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31829 PyObject *resultobj;
31830 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31831 wxDC *arg2 = 0 ;
31832 wxMemoryDC *arg3 = 0 ;
31833 wxRect *arg4 = 0 ;
31834 wxRect *arg5 = 0 ;
31835 bool result;
31836 wxRect temp4 ;
31837 wxRect temp5 ;
31838 PyObject * obj0 = 0 ;
31839 PyObject * obj1 = 0 ;
31840 PyObject * obj2 = 0 ;
31841 PyObject * obj3 = 0 ;
31842 PyObject * obj4 = 0 ;
31843 char *kwnames[] = {
31844 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31845 };
31846
31847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31851 SWIG_POINTER_EXCEPTION | 0)) == -1)
31852 SWIG_fail;
31853 if (arg2 == NULL) {
31854 PyErr_SetString(PyExc_TypeError,"null reference");
31855 SWIG_fail;
31856 }
31857 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31858 SWIG_POINTER_EXCEPTION | 0)) == -1)
31859 SWIG_fail;
31860 if (arg3 == NULL) {
31861 PyErr_SetString(PyExc_TypeError,"null reference");
31862 SWIG_fail;
31863 }
31864 {
31865 arg4 = &temp4;
31866 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31867 }
31868 {
31869 arg5 = &temp5;
31870 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31871 }
31872 {
31873 PyThreadState* __tstate = wxPyBeginAllowThreads();
31874 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31875
31876 wxPyEndAllowThreads(__tstate);
31877 if (PyErr_Occurred()) SWIG_fail;
31878 }
31879 {
31880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31881 }
31882 return resultobj;
31883 fail:
31884 return NULL;
31885 }
31886
31887
31888 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31889 PyObject *resultobj;
31890 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31891 wxPoint *arg2 = 0 ;
31892 wxPoint *arg3 = 0 ;
31893 bool arg4 ;
31894 bool arg5 ;
31895 bool result;
31896 wxPoint temp2 ;
31897 wxPoint temp3 ;
31898 PyObject * obj0 = 0 ;
31899 PyObject * obj1 = 0 ;
31900 PyObject * obj2 = 0 ;
31901 PyObject * obj3 = 0 ;
31902 PyObject * obj4 = 0 ;
31903 char *kwnames[] = {
31904 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31905 };
31906
31907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31910 {
31911 arg2 = &temp2;
31912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31913 }
31914 {
31915 arg3 = &temp3;
31916 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31917 }
31918 arg4 = (bool)SWIG_As_bool(obj3);
31919 if (PyErr_Occurred()) SWIG_fail;
31920 arg5 = (bool)SWIG_As_bool(obj4);
31921 if (PyErr_Occurred()) SWIG_fail;
31922 {
31923 PyThreadState* __tstate = wxPyBeginAllowThreads();
31924 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31925
31926 wxPyEndAllowThreads(__tstate);
31927 if (PyErr_Occurred()) SWIG_fail;
31928 }
31929 {
31930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31931 }
31932 return resultobj;
31933 fail:
31934 return NULL;
31935 }
31936
31937
31938 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31939 PyObject *obj;
31940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31941 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31942 Py_INCREF(obj);
31943 return Py_BuildValue((char *)"");
31944 }
31945 static PyMethodDef SwigMethods[] = {
31946 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31953 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31968 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31980 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31988 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"ComboBox_IsEditable", (PyCFunction) _wrap_ComboBox_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"ComboBox_Undo", (PyCFunction) _wrap_ComboBox_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"ComboBox_Redo", (PyCFunction) _wrap_ComboBox_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"ComboBox_SelectAll", (PyCFunction) _wrap_ComboBox_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"ComboBox_CanCopy", (PyCFunction) _wrap_ComboBox_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"ComboBox_CanCut", (PyCFunction) _wrap_ComboBox_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"ComboBox_CanPaste", (PyCFunction) _wrap_ComboBox_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"ComboBox_CanUndo", (PyCFunction) _wrap_ComboBox_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"ComboBox_CanRedo", (PyCFunction) _wrap_ComboBox_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
32018 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32023 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32028 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
32032 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
32037 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
32044 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
32049 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
32057 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
32080 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
32089 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
32120 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
32176 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
32181 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
32193 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
32206 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
32218 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
32222 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
32240 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
32247 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32250 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
32273 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32277 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
32281 { (char *)"BookCtrlBase_GetPageCount", (PyCFunction) _wrap_BookCtrlBase_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"BookCtrlBase_GetPage", (PyCFunction) _wrap_BookCtrlBase_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"BookCtrlBase_GetCurrentPage", (PyCFunction) _wrap_BookCtrlBase_GetCurrentPage, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"BookCtrlBase_GetSelection", (PyCFunction) _wrap_BookCtrlBase_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"BookCtrlBase_SetPageText", (PyCFunction) _wrap_BookCtrlBase_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"BookCtrlBase_GetPageText", (PyCFunction) _wrap_BookCtrlBase_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"BookCtrlBase_SetImageList", (PyCFunction) _wrap_BookCtrlBase_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"BookCtrlBase_AssignImageList", (PyCFunction) _wrap_BookCtrlBase_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32289 { (char *)"BookCtrlBase_GetImageList", (PyCFunction) _wrap_BookCtrlBase_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"BookCtrlBase_GetPageImage", (PyCFunction) _wrap_BookCtrlBase_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"BookCtrlBase_SetPageImage", (PyCFunction) _wrap_BookCtrlBase_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"BookCtrlBase_SetPageSize", (PyCFunction) _wrap_BookCtrlBase_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"BookCtrlBase_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrlBase_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"BookCtrlBase_DeletePage", (PyCFunction) _wrap_BookCtrlBase_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"BookCtrlBase_RemovePage", (PyCFunction) _wrap_BookCtrlBase_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"BookCtrlBase_DeleteAllPages", (PyCFunction) _wrap_BookCtrlBase_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32297 { (char *)"BookCtrlBase_AddPage", (PyCFunction) _wrap_BookCtrlBase_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"BookCtrlBase_InsertPage", (PyCFunction) _wrap_BookCtrlBase_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"BookCtrlBase_SetSelection", (PyCFunction) _wrap_BookCtrlBase_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"BookCtrlBase_AdvanceSelection", (PyCFunction) _wrap_BookCtrlBase_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32301 { (char *)"BookCtrlBase_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrlBase_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"BookCtrlBase_swigregister", BookCtrlBase_swigregister, METH_VARARGS, NULL },
32303 { (char *)"new_BookCtrlBaseEvent", (PyCFunction) _wrap_new_BookCtrlBaseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"BookCtrlBaseEvent_GetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32305 { (char *)"BookCtrlBaseEvent_SetSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"BookCtrlBaseEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"BookCtrlBaseEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlBaseEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"BookCtrlBaseEvent_swigregister", BookCtrlBaseEvent_swigregister, METH_VARARGS, NULL },
32309 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32312 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32319 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32320 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32321 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32327 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32329 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL },
32335 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL },
32337 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32342 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32347 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32370 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32377 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32399 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32421 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32422 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32428 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32433 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32440 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32468 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32476 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32477 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32478 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32479 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32485 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32489 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32492 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32496 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32497 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32498 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32499 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32500 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32501 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32502 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32503 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32504 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32505 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32506 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32507 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32508 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32509 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32510 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32511 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32512 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32513 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32514 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32515 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32516 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32517 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32518 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32519 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32520 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32521 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32522 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32523 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32524 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32525 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32526 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32527 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32528 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32529 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32530 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32531 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32532 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32533 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32534 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32535 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32536 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32537 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32538 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32539 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32540 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32541 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32542 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32543 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32544 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32545 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32546 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32547 { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32548 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32549 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32550 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32551 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32552 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32553 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32554 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32555 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32556 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32557 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32558 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32559 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32560 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32561 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32562 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32563 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32564 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32565 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32566 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32567 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32568 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32569 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32570 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32571 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32572 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32573 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32574 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32575 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32576 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32577 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32578 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32579 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32580 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32581 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32582 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32583 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32584 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32585 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32586 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32587 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32588 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32589 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32590 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32591 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32592 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32593 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32594 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32595 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32596 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32597 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32598 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32599 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32600 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32601 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32602 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32603 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32604 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32605 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32606 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32607 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32608 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32609 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32610 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32611 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32612 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32613 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32614 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32615 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32616 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32617 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32618 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32619 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32620 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32621 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32622 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32623 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32624 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32625 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32626 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32627 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32628 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32629 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32630 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32631 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32632 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32633 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32634 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32635 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32636 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32637 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32638 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32639 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32640 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32641 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32642 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32643 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32644 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32645 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32646 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32647 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32648 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32649 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32650 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32651 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32652 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32653 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32654 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32655 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32656 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32657 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32658 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32659 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32660 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32661 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32662 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32663 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32664 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32665 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32666 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32667 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32668 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32669 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32670 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32671 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32672 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32673 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32674 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32675 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32676 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32677 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32678 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32679 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32680 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32681 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32682 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32683 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32684 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32685 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32686 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32687 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32688 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32689 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32690 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32691 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32692 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32693 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32694 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32695 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32696 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32697 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32698 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32699 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32700 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32701 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32702 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32703 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32704 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32705 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32706 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32707 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32708 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32709 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32710 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32711 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32712 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32713 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32714 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32715 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32716 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32717 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32718 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32719 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32720 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32721 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32722 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32723 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32724 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32725 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32726 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32727 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32728 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32729 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32730 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32731 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32732 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32733 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32734 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32735 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32736 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32737 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32738 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32739 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32740 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32741 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32742 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32743 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32744 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32745 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32746 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32747 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32748 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32749 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32750 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32751 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32752 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32753 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32754 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32755 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32756 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32757 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32758 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32759 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32760 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32761 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32762 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32763 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32764 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32765 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32766 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32767 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32768 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32769 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32770 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32771 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32772 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32773 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32774 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32775 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32776 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32777 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32778 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32779 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32780 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32781 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32782 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32783 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32784 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32785 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32786 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32787 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32788 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32789 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32790 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32791 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32792 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32793 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32794 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32795 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32796 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32797 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32798 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32799 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32800 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32801 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32802 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32803 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32804 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32805 { NULL, NULL, 0, NULL }
32806 };
32807
32808
32809 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32810
32811 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32812 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32813 }
32814 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32815 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32816 }
32817 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32818 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32819 }
32820 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32821 return (void *)((wxSizer *) ((wxGridSizer *) x));
32822 }
32823 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32824 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32825 }
32826 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32827 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32828 }
32829 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32830 return (void *)((wxSizer *) ((wxPySizer *) x));
32831 }
32832 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32833 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32834 }
32835 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32836 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32837 }
32838 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32839 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32840 }
32841 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32842 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32843 }
32844 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32845 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32846 }
32847 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32848 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32849 }
32850 static void *_p_wxBookCtrlBaseEventTo_p_wxEvent(void *x) {
32851 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
32852 }
32853 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32854 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32855 }
32856 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32857 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32858 }
32859 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32860 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32861 }
32862 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32863 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32864 }
32865 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32866 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32867 }
32868 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32869 return (void *)((wxEvent *) ((wxPyEvent *) x));
32870 }
32871 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32872 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32873 }
32874 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32875 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32876 }
32877 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32878 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
32879 }
32880 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32881 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
32882 }
32883 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
32884 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
32885 }
32886 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32887 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32888 }
32889 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32890 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32891 }
32892 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32893 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32894 }
32895 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32896 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32897 }
32898 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32899 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32900 }
32901 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32902 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32903 }
32904 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32905 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32906 }
32907 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32908 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32909 }
32910 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32911 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32912 }
32913 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32914 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32915 }
32916 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32917 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32918 }
32919 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32920 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32921 }
32922 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32923 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32924 }
32925 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32926 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32927 }
32928 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32929 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32930 }
32931 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32932 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32933 }
32934 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32935 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32936 }
32937 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32938 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32939 }
32940 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32941 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32942 }
32943 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32944 return (void *)((wxEvent *) ((wxShowEvent *) x));
32945 }
32946 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32947 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32948 }
32949 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32950 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32951 }
32952 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32953 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32954 }
32955 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32956 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32957 }
32958 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32959 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32960 }
32961 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32962 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32963 }
32964 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32965 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32966 }
32967 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32968 return (void *)((wxItemContainer *) ((wxComboBox *) x));
32969 }
32970 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32971 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32972 }
32973 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32974 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32975 }
32976 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32977 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32978 }
32979 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32980 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32981 }
32982 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32983 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32984 }
32985 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32986 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32987 }
32988 static void *_p_wxBookCtrlBaseTo_p_wxControl(void *x) {
32989 return (void *)((wxControl *) ((wxBookCtrlBase *) x));
32990 }
32991 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32992 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32993 }
32994 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32995 return (void *)((wxControl *) ((wxToggleButton *) x));
32996 }
32997 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32998 return (void *)((wxControl *) ((wxRadioButton *) x));
32999 }
33000 static void *_p_wxPyControlTo_p_wxControl(void *x) {
33001 return (void *)((wxControl *) ((wxPyControl *) x));
33002 }
33003 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
33004 return (void *)((wxControl *) ((wxToolBarBase *) x));
33005 }
33006 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
33007 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33008 }
33009 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
33010 return (void *)((wxControl *) ((wxPyListCtrl *) x));
33011 }
33012 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
33013 return (void *)((wxControl *) ((wxComboBox *) x));
33014 }
33015 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
33016 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
33017 }
33018 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
33019 return (void *)((wxControl *) ((wxScrollBar *) x));
33020 }
33021 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
33022 return (void *)((wxControl *) ((wxControlWithItems *) x));
33023 }
33024 static void *_p_wxGaugeTo_p_wxControl(void *x) {
33025 return (void *)((wxControl *) ((wxGauge *) x));
33026 }
33027 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
33028 return (void *)((wxControl *) ((wxStaticLine *) x));
33029 }
33030 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
33031 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxChoicebook *) x));
33032 }
33033 static void *_p_wxListbookTo_p_wxControl(void *x) {
33034 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxListbook *) x));
33035 }
33036 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
33037 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
33038 }
33039 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
33040 return (void *)((wxControl *) ((wxCheckBox *) x));
33041 }
33042 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
33043 return (void *)((wxControl *) ((wxRadioBox *) x));
33044 }
33045 static void *_p_wxChoiceTo_p_wxControl(void *x) {
33046 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
33047 }
33048 static void *_p_wxListBoxTo_p_wxControl(void *x) {
33049 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
33050 }
33051 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
33052 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33053 }
33054 static void *_p_wxListViewTo_p_wxControl(void *x) {
33055 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
33056 }
33057 static void *_p_wxNotebookTo_p_wxControl(void *x) {
33058 return (void *)((wxControl *) (wxBookCtrlBase *) ((wxNotebook *) x));
33059 }
33060 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
33061 return (void *)((wxControl *) ((wxStaticBitmap *) x));
33062 }
33063 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
33064 return (void *)((wxControl *) ((wxSpinCtrl *) x));
33065 }
33066 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
33067 return (void *)((wxControl *) ((wxStaticText *) x));
33068 }
33069 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
33070 return (void *)((wxControl *) ((wxStaticBox *) x));
33071 }
33072 static void *_p_wxSliderTo_p_wxControl(void *x) {
33073 return (void *)((wxControl *) ((wxSlider *) x));
33074 }
33075 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
33076 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33077 }
33078 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
33079 return (void *)((wxControl *) ((wxSpinButton *) x));
33080 }
33081 static void *_p_wxButtonTo_p_wxControl(void *x) {
33082 return (void *)((wxControl *) ((wxButton *) x));
33083 }
33084 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
33085 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
33086 }
33087 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
33088 return (void *)((wxControl *) ((wxTextCtrl *) x));
33089 }
33090 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
33091 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
33092 }
33093 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
33094 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
33095 }
33096 static void *_p_wxBookCtrlBaseEventTo_p_wxNotifyEvent(void *x) {
33097 return (void *)((wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33098 }
33099 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
33100 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
33101 }
33102 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
33103 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
33104 }
33105 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
33106 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
33107 }
33108 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
33109 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33110 }
33111 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
33112 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33113 }
33114 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
33115 return (void *)((wxNotifyEvent *) (wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33116 }
33117 static void *_p_wxChoicebookTo_p_wxBookCtrlBase(void *x) {
33118 return (void *)((wxBookCtrlBase *) ((wxChoicebook *) x));
33119 }
33120 static void *_p_wxListbookTo_p_wxBookCtrlBase(void *x) {
33121 return (void *)((wxBookCtrlBase *) ((wxListbook *) x));
33122 }
33123 static void *_p_wxNotebookTo_p_wxBookCtrlBase(void *x) {
33124 return (void *)((wxBookCtrlBase *) ((wxNotebook *) x));
33125 }
33126 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33127 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33128 }
33129 static void *_p_wxBookCtrlBaseTo_p_wxEvtHandler(void *x) {
33130 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33131 }
33132 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33133 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33134 }
33135 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33136 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33137 }
33138 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
33139 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33140 }
33141 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33142 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33143 }
33144 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
33145 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
33146 }
33147 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
33148 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
33149 }
33150 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33151 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33152 }
33153 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33154 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33155 }
33156 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
33157 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33158 }
33159 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
33160 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x));
33161 }
33162 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
33163 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33164 }
33165 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
33166 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33167 }
33168 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
33169 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
33170 }
33171 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33172 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33173 }
33174 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
33175 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33176 }
33177 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
33178 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
33179 }
33180 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33181 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33182 }
33183 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
33184 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
33185 }
33186 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
33187 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
33188 }
33189 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
33190 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33191 }
33192 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
33193 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33194 }
33195 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
33196 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33197 }
33198 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
33199 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
33200 }
33201 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
33202 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
33203 }
33204 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
33205 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33206 }
33207 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
33208 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33209 }
33210 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
33211 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33212 }
33213 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
33214 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33215 }
33216 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
33217 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33218 }
33219 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
33220 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33221 }
33222 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
33223 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33224 }
33225 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
33226 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
33227 }
33228 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
33229 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
33230 }
33231 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
33232 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
33233 }
33234 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
33235 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
33236 }
33237 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
33238 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
33239 }
33240 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
33241 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33242 }
33243 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
33244 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33245 }
33246 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
33247 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33248 }
33249 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
33250 return (void *)((wxListBox *) ((wxCheckListBox *) x));
33251 }
33252 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
33253 return (void *)((wxButton *) ((wxBitmapButton *) x));
33254 }
33255 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
33256 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
33257 }
33258 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
33259 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
33260 }
33261 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
33262 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
33263 }
33264 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33265 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33266 }
33267 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33268 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33269 }
33270 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33271 return (void *)((wxObject *) ((wxSizerItem *) x));
33272 }
33273 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33274 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33275 }
33276 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33277 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33278 }
33279 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
33280 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
33281 }
33282 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33283 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33284 }
33285 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33286 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33287 }
33288 static void *_p_wxSizerTo_p_wxObject(void *x) {
33289 return (void *)((wxObject *) ((wxSizer *) x));
33290 }
33291 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33292 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33293 }
33294 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
33295 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
33296 }
33297 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
33298 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33299 }
33300 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33301 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33302 }
33303 static void *_p_wxEventTo_p_wxObject(void *x) {
33304 return (void *)((wxObject *) ((wxEvent *) x));
33305 }
33306 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33307 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33308 }
33309 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33310 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33311 }
33312 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33313 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33314 }
33315 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33316 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33317 }
33318 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33319 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33320 }
33321 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33322 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33323 }
33324 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33325 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33326 }
33327 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33328 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33329 }
33330 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33331 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33332 }
33333 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33334 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33335 }
33336 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33337 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33338 }
33339 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33340 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33341 }
33342 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33343 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33344 }
33345 static void *_p_wxControlTo_p_wxObject(void *x) {
33346 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33347 }
33348 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33349 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33350 }
33351 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33352 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33353 }
33354 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33355 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33356 }
33357 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33358 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33359 }
33360 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33361 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33362 }
33363 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33364 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33365 }
33366 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33367 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33368 }
33369 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33370 return (void *)((wxObject *) ((wxFSFile *) x));
33371 }
33372 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33373 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33374 }
33375 static void *_p_wxListViewTo_p_wxObject(void *x) {
33376 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33377 }
33378 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33379 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33380 }
33381 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33382 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33383 }
33384 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33385 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33386 }
33387 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33388 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33389 }
33390 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
33391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33392 }
33393 static void *_p_wxListbookTo_p_wxObject(void *x) {
33394 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33395 }
33396 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33397 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33398 }
33399 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33400 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33401 }
33402 static void *_p_wxSliderTo_p_wxObject(void *x) {
33403 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33404 }
33405 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33406 return (void *)((wxObject *) ((wxMenuItem *) x));
33407 }
33408 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33409 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33410 }
33411 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33412 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33413 }
33414 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33415 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33416 }
33417 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33418 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33419 }
33420 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33421 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33422 }
33423 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33424 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33425 }
33426 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33427 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33428 }
33429 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33430 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33431 }
33432 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33433 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33434 }
33435 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33436 return (void *)((wxObject *) ((wxContextHelp *) x));
33437 }
33438 static void *_p_wxBookCtrlBaseTo_p_wxObject(void *x) {
33439 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrlBase *) x));
33440 }
33441 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33442 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33443 }
33444 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33445 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33446 }
33447 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33448 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33449 }
33450 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33451 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33452 }
33453 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33454 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33455 }
33456 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33457 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33458 }
33459 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33460 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33461 }
33462 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33463 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33464 }
33465 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33466 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33467 }
33468 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33469 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33470 }
33471 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33472 return (void *)((wxObject *) ((wxImageHandler *) x));
33473 }
33474 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33475 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33476 }
33477 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33478 return (void *)((wxObject *) ((wxEvtHandler *) x));
33479 }
33480 static void *_p_wxListEventTo_p_wxObject(void *x) {
33481 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33482 }
33483 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33484 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33485 }
33486 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33487 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33488 }
33489 static void *_p_wxButtonTo_p_wxObject(void *x) {
33490 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33491 }
33492 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33493 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33494 }
33495 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33496 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33497 }
33498 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33499 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33500 }
33501 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33502 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33503 }
33504 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33505 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33506 }
33507 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33508 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33509 }
33510 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33511 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x));
33512 }
33513 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33514 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33515 }
33516 static void *_p_wxListItemTo_p_wxObject(void *x) {
33517 return (void *)((wxObject *) ((wxListItem *) x));
33518 }
33519 static void *_p_wxImageTo_p_wxObject(void *x) {
33520 return (void *)((wxObject *) ((wxImage *) x));
33521 }
33522 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33523 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33524 }
33525 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33526 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33527 }
33528 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33529 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33530 }
33531 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33532 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33533 }
33534 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33535 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33536 }
33537 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33538 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33539 }
33540 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33541 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33542 }
33543 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
33544 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33545 }
33546 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33547 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33548 }
33549 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33550 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33551 }
33552 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33553 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33554 }
33555 static void *_p_wxWindowTo_p_wxObject(void *x) {
33556 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33557 }
33558 static void *_p_wxMenuTo_p_wxObject(void *x) {
33559 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33560 }
33561 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33562 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33563 }
33564 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33565 return (void *)((wxObject *) ((wxFileSystem *) x));
33566 }
33567 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33569 }
33570 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33571 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33572 }
33573 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33574 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33575 }
33576 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33577 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33578 }
33579 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33580 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33581 }
33582 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33583 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33584 }
33585 static void *_p_wxBookCtrlBaseEventTo_p_wxObject(void *x) {
33586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33587 }
33588 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33589 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33590 }
33591 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33592 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33593 }
33594 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33595 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33596 }
33597 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33598 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33599 }
33600 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33601 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33602 }
33603 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33604 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33605 }
33606 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33607 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33608 }
33609 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33610 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33611 }
33612 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33613 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33614 }
33615 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33616 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33617 }
33618 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33619 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33620 }
33621 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33622 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33623 }
33624 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33625 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33626 }
33627 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33628 return (void *)((wxWindow *) ((wxMenuBar *) x));
33629 }
33630 static void *_p_wxBookCtrlBaseTo_p_wxWindow(void *x) {
33631 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrlBase *) x));
33632 }
33633 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33634 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33635 }
33636 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33637 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33638 }
33639 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33640 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33641 }
33642 static void *_p_wxControlTo_p_wxWindow(void *x) {
33643 return (void *)((wxWindow *) ((wxControl *) x));
33644 }
33645 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33646 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33647 }
33648 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33649 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33650 }
33651 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33652 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33653 }
33654 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33655 return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x));
33656 }
33657 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33658 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33659 }
33660 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33661 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33662 }
33663 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33664 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33665 }
33666 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33667 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33668 }
33669 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33670 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33671 }
33672 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33673 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33674 }
33675 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
33676 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxChoicebook *) x));
33677 }
33678 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33679 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxListbook *) x));
33680 }
33681 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33682 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33683 }
33684 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33685 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33686 }
33687 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33688 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33689 }
33690 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33691 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33692 }
33693 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33694 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33695 }
33696 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33697 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33698 }
33699 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33700 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33701 }
33702 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33703 return (void *)((wxWindow *) (wxControl *)(wxBookCtrlBase *) ((wxNotebook *) x));
33704 }
33705 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33706 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33707 }
33708 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33709 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33710 }
33711 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33712 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33713 }
33714 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33715 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33716 }
33717 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33718 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33719 }
33720 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33721 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33722 }
33723 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33724 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33725 }
33726 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33727 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33728 }
33729 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33730 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33731 }
33732 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33733 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33734 }
33735 static void *_p_wxNotebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33736 return (void *)((wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33737 }
33738 static void *_p_wxListbookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33739 return (void *)((wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33740 }
33741 static void *_p_wxChoicebookEventTo_p_wxBookCtrlBaseEvent(void *x) {
33742 return (void *)((wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33743 }
33744 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33745 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33746 }
33747 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33748 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33749 }
33750 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33751 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33752 }
33753 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33754 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33755 }
33756 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33757 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33758 }
33759 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33760 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33761 }
33762 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
33763 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxChoicebookEvent *) x));
33764 }
33765 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33766 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxListbookEvent *) x));
33767 }
33768 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33769 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlBaseEvent *) ((wxNotebookEvent *) x));
33770 }
33771 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33772 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33773 }
33774 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33775 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33776 }
33777 static void *_p_wxBookCtrlBaseEventTo_p_wxCommandEvent(void *x) {
33778 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlBaseEvent *) x));
33779 }
33780 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33781 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33782 }
33783 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33784 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33785 }
33786 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33787 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33788 }
33789 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33790 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33791 }
33792 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33793 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33794 }
33795 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33796 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33797 }
33798 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33799 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33800 }
33801 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33802 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33803 }
33804 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33805 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33806 }
33807 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33808 return (void *)((wxValidator *) ((wxPyValidator *) x));
33809 }
33810 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}};
33811 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}};
33812 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}};
33813 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}};
33814 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}};
33815 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}};
33816 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}};
33817 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}};
33818 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}};
33819 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}};
33820 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}};
33821 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}};
33822 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}};
33823 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}};
33824 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}};
33825 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}};
33826 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}};
33827 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}};
33828 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}};
33829 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}};
33830 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}};
33831 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}};
33832 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}};
33833 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}};
33834 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}};
33835 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}};
33836 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}};
33837 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}};
33838 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}};
33839 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}};
33840 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}};
33841 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}};
33842 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}};
33843 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}};
33844 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}};
33845 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}};
33846 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}};
33847 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}};
33848 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}};
33849 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}};
33850 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}};
33851 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}};
33852 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}};
33853 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}};
33854 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}};
33855 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}};
33856 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}};
33857 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}};
33858 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}};
33859 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}};
33860 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}};
33861 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}};
33862 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}};
33863 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}};
33864 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}};
33865 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}};
33866 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}};
33867 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}};
33868 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}};
33869 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}};
33870 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}};
33871 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}};
33872 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}};
33873 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}};
33874 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}};
33875 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}};
33876 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}};
33877 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}};
33878 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}};
33879 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}};
33880 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}};
33881 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}};
33882 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}};
33883 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}};
33884 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}};
33885 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}};
33886 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}};
33887 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}};
33888 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}};
33889 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}};
33890 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}};
33891 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}};
33892 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}};
33893 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}};
33894 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}};
33895 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}};
33896 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}};
33897
33898 static swig_type_info *swig_types_initial[] = {
33899 _swigt__p_wxTextUrlEvent,
33900 _swigt__p_wxSizer,
33901 _swigt__p_wxCheckBox,
33902 _swigt__p_wxPyTreeCtrl,
33903 _swigt__p_wxEvent,
33904 _swigt__p_wxGenericDirCtrl,
33905 _swigt__p_bool,
33906 _swigt__p_wxPyTreeItemData,
33907 _swigt__p_wxItemContainer,
33908 _swigt__p_wxPyListCtrl,
33909 _swigt__p_wxDirFilterListCtrl,
33910 _swigt__p_wxStaticLine,
33911 _swigt__p_wxControl,
33912 _swigt__p_wxPyControl,
33913 _swigt__p_wxGauge,
33914 _swigt__p_wxToolBarBase,
33915 _swigt__p_wxFont,
33916 _swigt__p_wxToggleButton,
33917 _swigt__p_wxRadioButton,
33918 _swigt__p_wxChoice,
33919 _swigt__p_wxMemoryDC,
33920 _swigt__p_wxListItemAttr,
33921 _swigt__p_void,
33922 _swigt__p_int,
33923 _swigt__p_wxSize,
33924 _swigt__p_wxDC,
33925 _swigt__p_wxListView,
33926 _swigt__p_wxIcon,
33927 _swigt__p_wxVisualAttributes,
33928 _swigt__p_wxTextCtrl,
33929 _swigt__p_wxNotebook,
33930 _swigt__p_wxChoicebook,
33931 _swigt__p_wxNotifyEvent,
33932 _swigt__p_wxArrayString,
33933 _swigt__p_wxListbook,
33934 _swigt__p_wxStaticBitmap,
33935 _swigt__p_wxSlider,
33936 _swigt__p_wxStaticBox,
33937 _swigt__p_wxArrayInt,
33938 _swigt__p_wxContextHelp,
33939 _swigt__p_long,
33940 _swigt__p_wxBookCtrlBase,
33941 _swigt__p_wxEvtHandler,
33942 _swigt__p_wxListEvent,
33943 _swigt__p_wxCheckListBox,
33944 _swigt__p_wxListBox,
33945 _swigt__p_wxSpinButton,
33946 _swigt__p_wxButton,
33947 _swigt__p_wxBitmapButton,
33948 _swigt__p_wxRect,
33949 _swigt__p_wxContextHelpButton,
33950 _swigt__p_wxRadioBox,
33951 _swigt__p_wxScrollBar,
33952 _swigt__p_char,
33953 _swigt__p_wxTreeItemId,
33954 _swigt__p_wxComboBox,
33955 _swigt__p_wxHelpEvent,
33956 _swigt__p_wxListItem,
33957 _swigt__p_wxNotebookSizer,
33958 _swigt__p_wxSpinEvent,
33959 _swigt__p_wxGenericDragImage,
33960 _swigt__p_wxSpinCtrl,
33961 _swigt__p_wxImageList,
33962 _swigt__p_wxHelpProvider,
33963 _swigt__p_wxTextAttr,
33964 _swigt__p_wxSimpleHelpProvider,
33965 _swigt__p_wxPoint,
33966 _swigt__p_wxChoicebookEvent,
33967 _swigt__p_wxListbookEvent,
33968 _swigt__p_wxNotebookEvent,
33969 _swigt__p_wxObject,
33970 _swigt__p_wxCursor,
33971 _swigt__p_wxKeyEvent,
33972 _swigt__p_wxWindow,
33973 _swigt__p_wxString,
33974 _swigt__p_wxBitmap,
33975 _swigt__p_wxTreeEvent,
33976 _swigt__p_wxMouseEvent,
33977 _swigt__p_wxBookCtrlBaseEvent,
33978 _swigt__p_wxCommandEvent,
33979 _swigt__p_wxStaticText,
33980 _swigt__p_wxControlWithItems,
33981 _swigt__p_wxToolBarToolBase,
33982 _swigt__p_wxColour,
33983 _swigt__p_wxToolBar,
33984 _swigt__p_wxBookCtrlSizer,
33985 _swigt__p_wxValidator,
33986 0
33987 };
33988
33989
33990 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33991
33992 static swig_const_info swig_const_table[] = {
33993 {0, 0, 0, 0.0, 0, 0}};
33994
33995 #ifdef __cplusplus
33996 }
33997 #endif
33998
33999 #ifdef __cplusplus
34000 extern "C"
34001 #endif
34002 SWIGEXPORT(void) SWIG_init(void) {
34003 static PyObject *SWIG_globals = 0;
34004 static int typeinit = 0;
34005 PyObject *m, *d;
34006 int i;
34007 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
34008 m = Py_InitModule((char *) SWIG_name, SwigMethods);
34009 d = PyModule_GetDict(m);
34010
34011 if (!typeinit) {
34012 for (i = 0; swig_types_initial[i]; i++) {
34013 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
34014 }
34015 typeinit = 1;
34016 }
34017 SWIG_InstallConstants(d,swig_const_table);
34018
34019 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
34020 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
34021 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
34022 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
34023 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
34024 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
34025 PyDict_SetItemString(d,"BU_ALIGN_MASK", SWIG_From_int((int)wxBU_ALIGN_MASK));
34026 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
34027 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
34028 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
34029 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
34030 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
34031 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
34032 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
34033 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
34034 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
34035 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
34036 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
34037 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
34038 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
34039 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
34040 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
34041 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
34042 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
34043 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
34044 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
34045 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
34046 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
34047 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
34048 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
34049 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
34050 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
34051 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
34052 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
34053 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
34054 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
34055 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
34056 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
34057 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
34058 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
34059 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
34060 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
34061 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
34062 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
34063 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
34064 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
34065 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
34066 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
34067 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
34068 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
34069 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
34070 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
34071 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
34072 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
34073 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
34074 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
34075 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
34076 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
34077 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
34078 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
34079 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
34080 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
34081 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
34082 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
34083 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
34084 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
34085 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
34086 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
34087 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
34088 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
34089 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
34090 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
34091 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
34092 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
34093 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
34094 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
34095 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
34096 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
34097 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
34098 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
34099 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
34100 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
34101 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
34102 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
34103 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
34104 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
34105 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
34106 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
34107 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
34108 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
34109 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
34110 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
34111 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
34112 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
34113 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
34114 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
34115 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
34116 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
34117 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
34118 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
34119 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
34120 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
34121 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
34122 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
34123 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
34124 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
34125 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
34126 PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT));
34127 PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP));
34128 PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM));
34129 PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT));
34130 PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT));
34131 PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK));
34132 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
34133 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
34134 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
34135 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
34136 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
34137 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
34138 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
34139 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
34140 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
34141 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
34142 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
34143 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
34144 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
34145 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
34146 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
34147 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
34148 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
34149 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
34150 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
34151 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
34152 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
34153 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
34154 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
34155 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
34156 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
34157 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
34158 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
34159 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
34160 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
34161 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
34162 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
34163 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
34164 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
34165 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
34166 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
34167 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
34168 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
34169 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
34170 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
34171 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
34172 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
34173 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
34174 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
34175 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
34176 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
34177 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
34178 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
34179 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
34180 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
34181 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
34182 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
34183 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
34184 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
34185 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
34186 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
34187 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
34188 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
34189 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
34190 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
34191 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
34192 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
34193 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
34194 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
34195 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
34196 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
34197 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
34198 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
34199 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
34200 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
34201 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
34202 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
34203 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
34204 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
34205 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
34206 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
34207 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
34208 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
34209 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
34210 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
34211 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
34212 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
34213 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
34214 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
34215 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
34216 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
34217 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
34218 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
34219 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
34220 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
34221 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
34222 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
34223 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
34224 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
34225 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
34226 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
34227 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
34228 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
34229 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
34230 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
34231 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
34232 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
34233 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
34234 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
34235 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
34236 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
34237 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
34238 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
34239
34240 // Map renamed classes back to their common name for OOR
34241 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
34242
34243 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
34244 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
34245 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
34246 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
34247 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
34248 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
34249 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
34250 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
34251 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
34252 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
34253 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
34254 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
34255 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
34256 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
34257 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
34258 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
34259 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
34260 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
34261 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
34262 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
34263 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
34264 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
34265 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
34266 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
34267 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
34268 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
34269 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
34270 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
34271 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
34272 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
34273 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
34274 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
34275 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
34276 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
34277 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
34278 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
34279 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
34280 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
34281 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
34282 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
34283 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
34284 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
34285 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
34286 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
34287 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
34288 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
34289 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
34290 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
34291 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
34292 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
34293 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
34294 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
34295 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
34296 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
34297 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
34298 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
34299
34300 // Map renamed classes back to their common name for OOR
34301 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
34302 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
34303
34304 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
34305 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
34306 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
34307 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
34308 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
34309 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
34310 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
34311 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
34312 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
34313 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
34314
34315 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
34316
34317 }
34318