]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
91b8aa4d9e70ff2cae6709ef0d9873ce518fad89
[wxWidgets.git] / wxPython / src / msw / _controls_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypePrettyName SWIG_Python_TypePrettyName
47 #define SWIG_TypeQuery SWIG_Python_TypeQuery
48 #define SWIG_TypeClientData SWIG_Python_TypeClientData
49 #define SWIG_PackData SWIG_Python_PackData
50 #define SWIG_UnpackData SWIG_Python_UnpackData
51
52
53 /***********************************************************************
54 * common.swg for wxPython
55 *
56 * Include only the function prototypes and such from SWIG's common.swg,
57 * but not the runtime functions themselves. This helps keep the
58 * wrapper files clean of unnecessary stuff that is in the libpy.c file
59 * anyway.
60 *
61 ************************************************************************/
62
63 #include <string.h>
64
65 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
66 # if defined(_MSC_VER) || defined(__GNUC__)
67 # if defined(STATIC_LINKED)
68 # define SWIGEXPORT(a) a
69 # define SWIGIMPORT(a) extern a
70 # else
71 # define SWIGEXPORT(a) __declspec(dllexport) a
72 # define SWIGIMPORT(a) extern a
73 # endif
74 # else
75 # if defined(__BORLANDC__)
76 # define SWIGEXPORT(a) a _export
77 # define SWIGIMPORT(a) a _export
78 # else
79 # define SWIGEXPORT(a) a
80 # define SWIGIMPORT(a) a
81 # endif
82 # endif
83 #else
84 # define SWIGEXPORT(a) a
85 # define SWIGIMPORT(a) a
86 #endif
87
88 #ifdef SWIG_GLOBAL
89 # define SWIGRUNTIME(a) SWIGEXPORT(a)
90 #else
91 # define SWIGRUNTIME(a) static a
92 #endif
93
94 #ifdef __cplusplus
95 extern "C" {
96 #endif
97
98 typedef void *(*swig_converter_func)(void *);
99 typedef struct swig_type_info *(*swig_dycast_func)(void **);
100
101 typedef struct swig_type_info {
102 const char *name;
103 swig_converter_func converter;
104 const char *str;
105 void *clientdata;
106 swig_dycast_func dcast;
107 struct swig_type_info *next;
108 struct swig_type_info *prev;
109 } swig_type_info;
110
111
112 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
113 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
114 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
115 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
116 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
117 SWIGIMPORT(const char *) SWIG_TypePrettyName(const swig_type_info *);
118 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
119 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
120 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
121 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
122
123
124 #ifdef __cplusplus
125 }
126 #endif
127
128
129 /***********************************************************************
130 * pyrun.swg for wxPython
131 *
132 * Include only the function prototypes and such from SWIG's pyrun.swg,
133 * but not the runtime functions themselves. This helps keep the
134 * wrapper files clean of unnecessary stuff that is in the libpy.c file
135 * anyway.
136 *
137 ************************************************************************/
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198
199 /* Contract support */
200
201 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
202
203 #ifdef __cplusplus
204 }
205 #endif
206
207
208
209 /* -------- TYPES TABLE (BEGIN) -------- */
210
211 #define SWIGTYPE_p_wxTextUrlEvent swig_types[0]
212 #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1]
213 #define SWIGTYPE_p_wxSizer swig_types[2]
214 #define SWIGTYPE_p_wxCheckBox swig_types[3]
215 #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4]
216 #define SWIGTYPE_p_wxEvent swig_types[5]
217 #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6]
218 #define SWIGTYPE_p_bool swig_types[7]
219 #define SWIGTYPE_p_wxPyTreeItemData swig_types[8]
220 #define SWIGTYPE_p_wxItemContainer swig_types[9]
221 #define SWIGTYPE_p_wxPyListCtrl swig_types[10]
222 #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11]
223 #define SWIGTYPE_p_wxStaticLine swig_types[12]
224 #define SWIGTYPE_p_wxControl swig_types[13]
225 #define SWIGTYPE_p_wxPyControl swig_types[14]
226 #define SWIGTYPE_p_wxGauge swig_types[15]
227 #define SWIGTYPE_p_wxToolBarBase swig_types[16]
228 #define SWIGTYPE_p_wxFont swig_types[17]
229 #define SWIGTYPE_p_wxToggleButton swig_types[18]
230 #define SWIGTYPE_p_wxRadioButton swig_types[19]
231 #define SWIGTYPE_p_wxChoice swig_types[20]
232 #define SWIGTYPE_p_wxMemoryDC swig_types[21]
233 #define SWIGTYPE_p_wxListItemAttr swig_types[22]
234 #define SWIGTYPE_p_void swig_types[23]
235 #define SWIGTYPE_p_int swig_types[24]
236 #define SWIGTYPE_p_wxSize swig_types[25]
237 #define SWIGTYPE_p_wxDC swig_types[26]
238 #define SWIGTYPE_p_wxListView swig_types[27]
239 #define SWIGTYPE_p_wxIcon swig_types[28]
240 #define SWIGTYPE_p_wxVisualAttributes swig_types[29]
241 #define SWIGTYPE_p_wxTextCtrl swig_types[30]
242 #define SWIGTYPE_p_wxNotebook 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_wxEvtHandler swig_types[41]
253 #define SWIGTYPE_p_wxListEvent swig_types[42]
254 #define SWIGTYPE_p_wxCheckListBox swig_types[43]
255 #define SWIGTYPE_p_wxListBox swig_types[44]
256 #define SWIGTYPE_p_wxBookCtrl 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_wxListbookEvent swig_types[67]
279 #define SWIGTYPE_p_wxNotebookEvent swig_types[68]
280 #define SWIGTYPE_p_wxObject swig_types[69]
281 #define SWIGTYPE_p_wxCursor swig_types[70]
282 #define SWIGTYPE_p_wxKeyEvent swig_types[71]
283 #define SWIGTYPE_p_wxWindow swig_types[72]
284 #define SWIGTYPE_p_wxString swig_types[73]
285 #define SWIGTYPE_p_wxBitmap swig_types[74]
286 #define SWIGTYPE_p_wxTreeEvent swig_types[75]
287 #define SWIGTYPE_p_wxMouseEvent swig_types[76]
288 #define SWIGTYPE_p_wxCommandEvent swig_types[77]
289 #define SWIGTYPE_p_wxStaticText swig_types[78]
290 #define SWIGTYPE_p_wxControlWithItems swig_types[79]
291 #define SWIGTYPE_p_wxToolBarToolBase swig_types[80]
292 #define SWIGTYPE_p_wxColour swig_types[81]
293 #define SWIGTYPE_p_wxToolBar swig_types[82]
294 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83]
295 #define SWIGTYPE_p_wxValidator swig_types[84]
296 static swig_type_info *swig_types[86];
297
298 /* -------- TYPES TABLE (END) -------- */
299
300
301 /*-----------------------------------------------
302 @(target):= _controls_.so
303 ------------------------------------------------*/
304 #define SWIG_init init_controls_
305
306 #define SWIG_name "_controls_"
307
308 /* Auxiliar swig macros that appear in the header */
309
310 #define SWIG_OLDOBJ 1
311 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
312 #define SWIG_PYSTR SWIG_NEWOBJ + 1
313
314 #ifdef __cplusplus
315 #define SWIGSTATICINLINE(a) static inline a
316 #define SWIGSTATIC(a) static a
317 #define swig_new_array(size,Type) (new Type[(size)])
318 #define swig_delete(cptr) delete cptr
319 #define swig_delete_array(cptr) delete[] cptr
320 #define swig_const_cast(a,Type) const_cast<Type >(a)
321 #define swig_static_cast(a,Type) static_cast<Type >(a)
322 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
323 #define swig_new_copy(ptr,Type) (new Type(*ptr))
324 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
325
326 #else /* C case */
327
328 #define SWIGSTATICINLINE(a) static a
329 #define SWIGSTATIC(a) static a
330 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
331 #define swig_delete(cptr) free((char*)cptr)
332 #define swig_delete_array(cptr) free((char*)cptr)
333 #define swig_const_cast(a,Type) (Type)(a)
334 #define swig_static_cast(a,Type) (Type)(a)
335 #define swig_reinterpret_cast(a,Type) (Type)(a)
336 #define swig_numeric_cast(a,Type) (Type)(a)
337 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
338
339 #endif /* __cplusplus */
340
341
342 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
343 #define SWIG_From_signed_SS_char PyInt_FromLong
344 /*@@*/
345 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
346 #define SWIG_From_unsigned_SS_char PyInt_FromLong
347 /*@@*/
348 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
349 #define SWIG_From_short PyInt_FromLong
350 /*@@*/
351 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
352 #define SWIG_From_unsigned_SS_short PyInt_FromLong
353 /*@@*/
354 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
355 #define SWIG_From_int PyInt_FromLong
356 /*@@*/
357 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
358 #define SWIG_From_long PyInt_FromLong
359 /*@@*/
360 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
361 #define SWIG_From_float PyFloat_FromDouble
362 /*@@*/
363 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
364 #define SWIG_From_double PyFloat_FromDouble
365 /*@@*/
366
367
368 #include "wx/wxPython/wxPython.h"
369 #include "wx/wxPython/pyclasses.h"
370
371 static const wxString wxPyPanelNameStr(wxPanelNameStr);
372 static const wxString wxPyEmptyString(wxEmptyString);
373 static const wxString wxPyControlNameStr(wxControlNameStr);
374
375 const wxArrayString wxPyEmptyStringArray;
376
377 static const wxString wxPyButtonNameStr(wxButtonNameStr);
378
379 #include <limits.h>
380
381
382 SWIGSTATICINLINE(int)
383 SWIG_CheckLongInRange(long value, long min_value, long max_value,
384 const char *errmsg)
385 {
386 if (value < min_value) {
387 if (errmsg) {
388 PyErr_Format(PyExc_OverflowError,
389 "value %ld is less than '%s' minimum %ld",
390 value, errmsg, min_value);
391 }
392 return 0;
393 } else if (value > max_value) {
394 if (errmsg) {
395 PyErr_Format(PyExc_OverflowError,
396 "value %ld is greater than '%s' maximum %ld",
397 value, errmsg, max_value);
398 }
399 return 0;
400 }
401 return 1;
402 }
403
404
405 // See my_fragments.i
406 SWIGSTATICINLINE(int)
407 SWIG_AsVal_long(PyObject* obj, long* val)
408 {
409 if (PyNumber_Check(obj)) {
410 if (val) *val = PyInt_AsLong(obj);
411 return 1;
412 }
413 else {
414 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
415 obj->ob_type->tp_name);
416 PyErr_SetObject(PyExc_TypeError, errmsg);
417 Py_DECREF(errmsg);
418 }
419 return 0;
420 }
421
422
423 #if INT_MAX != LONG_MAX
424 SWIGSTATICINLINE(int)
425 SWIG_AsVal_int(PyObject *obj, int *val)
426 {
427 const char* errmsg = val ? "int" : 0;
428 long v;
429 if (SWIG_AsVal_long(obj, &v)) {
430 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
431 if (val) *val = swig_numeric_cast(v, int);
432 return 1;
433 } else {
434 return 0;
435 }
436 } else {
437 PyErr_Clear();
438 }
439 if (val) {
440 PyErr_SetString(PyExc_TypeError, "an int is expected");
441 }
442 return 0;
443 }
444 #else
445 SWIGSTATICINLINE(int)
446 SWIG_AsVal_int(PyObject *obj, int *val)
447 {
448 return SWIG_AsVal_long(obj,(long*)val);
449 }
450 #endif
451
452
453 SWIGSTATICINLINE(int)
454 SWIG_As_int(PyObject* obj)
455 {
456 int v;
457 if (!SWIG_AsVal_int(obj, &v)) {
458 /*
459 this is needed to make valgrind/purify happier. the other
460 solution is throw an exception, but since this code should work
461 with plain C ....
462 */
463 memset((void*)&v, 0, sizeof(int));
464 }
465 return v;
466 }
467
468
469 SWIGSTATICINLINE(long)
470 SWIG_As_long(PyObject* obj)
471 {
472 long v;
473 if (!SWIG_AsVal_long(obj, &v)) {
474 /*
475 this is needed to make valgrind/purify happier. the other
476 solution is throw an exception, but since this code should work
477 with plain C ....
478 */
479 memset((void*)&v, 0, sizeof(long));
480 }
481 return v;
482 }
483
484
485 SWIGSTATICINLINE(int)
486 SWIG_Check_int(PyObject* obj)
487 {
488 return SWIG_AsVal_int(obj, (int*)0);
489 }
490
491
492 SWIGSTATICINLINE(int)
493 SWIG_Check_long(PyObject* obj)
494 {
495 return SWIG_AsVal_long(obj, (long*)0);
496 }
497
498 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
499
500 SWIGSTATICINLINE(int)
501 SWIG_AsVal_bool(PyObject *obj, bool *val)
502 {
503 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
504 if (obj == Py_True) {
505 if (val) *val = true;
506 return 1;
507 }
508 if (obj == Py_False) {
509 if (val) *val = false;
510 return 1;
511 }
512 int res = 0;
513 if (SWIG_AsVal_int(obj, &res)) {
514 if (val) *val = (bool)res;
515 return 1;
516 }
517 if (val) {
518 PyErr_SetString(PyExc_TypeError, "a bool is expected");
519 }
520 return 0;
521 }
522
523
524 SWIGSTATICINLINE(bool)
525 SWIG_As_bool(PyObject* obj)
526 {
527 bool v;
528 if (!SWIG_AsVal_bool(obj, &v)) {
529 /*
530 this is needed to make valgrind/purify happier. the other
531 solution is throw an exception, but since this code should work
532 with plain C ....
533 */
534 memset((void*)&v, 0, sizeof(bool));
535 }
536 return v;
537 }
538
539
540 SWIGSTATICINLINE(int)
541 SWIG_Check_bool(PyObject* obj)
542 {
543 return SWIG_AsVal_bool(obj, (bool*)0);
544 }
545
546 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
547 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
548 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
549 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
550 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
551 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
552
553 #include <wx/checklst.h>
554
555
556 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
557 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
558 if (clientData) {
559 wxPyClientData* data = new wxPyClientData(clientData);
560 self->Insert(item, pos, data);
561 } else
562 self->Insert(item, pos);
563 }
564 PyObject *wxListBox_GetSelections(wxListBox *self){
565 wxArrayInt lst;
566 self->GetSelections(lst);
567 PyObject *tup = PyTuple_New(lst.GetCount());
568 for(size_t i=0; i<lst.GetCount(); i++) {
569 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
570 }
571 return tup;
572 }
573 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
574 #ifdef __WXMSW__
575 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
576 self->GetItem(item)->SetTextColour(c);
577 #endif
578 }
579 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
580 #ifdef __WXMSW__
581 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
582 self->GetItem(item)->SetBackgroundColour(c);
583 #endif
584 }
585 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
586 #ifdef __WXMSW__
587 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
588 self->GetItem(item)->SetFont(f);
589 #endif
590 }
591 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
592
593 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
594 PyObject* o2;
595 PyObject* o3;
596
597 if (!target) {
598 target = o;
599 } else if (target == Py_None) {
600 Py_DECREF(Py_None);
601 target = o;
602 } else {
603 o2 = target;
604 target = PyTuple_New(1);
605 PyTuple_SetItem(target, 0, o2);
606
607 o3 = PyTuple_New(1);
608 PyTuple_SetItem(o3, 0, o);
609
610 o2 = target;
611 target = PySequence_Concat(o2, o3);
612 Py_DECREF(o2);
613 Py_DECREF(o3);
614 }
615 return target;
616 }
617
618
619
620 // See my_fragments.i
621 SWIGSTATICINLINE(int)
622 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
623 {
624 long v = 0;
625 if (SWIG_AsVal_long(obj, &v) && v < 0) {
626 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
627 return 0;
628 }
629 else if (val)
630 *val = (unsigned long)v;
631 return 1;
632 }
633
634
635 SWIGSTATICINLINE(unsigned long)
636 SWIG_As_unsigned_SS_long(PyObject* obj)
637 {
638 unsigned long v;
639 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
640 /*
641 this is needed to make valgrind/purify happier. the other
642 solution is throw an exception, but since this code should work
643 with plain C ....
644 */
645 memset((void*)&v, 0, sizeof(unsigned long));
646 }
647 return v;
648 }
649
650
651 SWIGSTATICINLINE(int)
652 SWIG_Check_unsigned_SS_long(PyObject* obj)
653 {
654 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
655 }
656
657 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
658 self->AppendText(text);
659 }
660 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
661 return self->GetValue().Mid(from, to - from);
662 }
663 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
664 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
665 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
666 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
667 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
668
669 #include <wx/slider.h>
670
671
672 static const wxString wxPySliderNameStr(wxSliderNameStr);
673 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
674
675 #if !wxUSE_TOGGLEBTN
676 // implement dummy items for platforms that don't have this class
677
678 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
679
680 class wxToggleButton : public wxControl
681 {
682 public:
683 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
684 const wxPoint&, const wxSize&, long,
685 const wxValidator&, const wxString&)
686 { wxPyRaiseNotImplemented(); }
687
688 wxToggleButton()
689 { wxPyRaiseNotImplemented(); }
690 };
691 #endif
692
693 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
694
695 SWIGSTATICINLINE(PyObject* )
696 SWIG_From_unsigned_SS_long(unsigned long value)
697 {
698 return (value > LONG_MAX) ?
699 PyLong_FromUnsignedLong(value)
700 : PyInt_FromLong(swig_numeric_cast(value,long));
701 }
702
703 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
704 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
705 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
706 if (udata) {
707 Py_INCREF(udata->m_obj);
708 return udata->m_obj;
709 } else {
710 Py_INCREF(Py_None);
711 return Py_None;
712 }
713 }
714 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
715 self->SetClientData(new wxPyUserData(clientData));
716 }
717 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){
718 wxPyUserData* udata = NULL;
719 if (clientData && clientData != Py_None)
720 udata = new wxPyUserData(clientData);
721 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
722 shortHelp, longHelp, udata);
723 }
724 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){
725 wxPyUserData* udata = NULL;
726 if (clientData && clientData != Py_None)
727 udata = new wxPyUserData(clientData);
728 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
729 shortHelp, longHelp, udata);
730 }
731 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
732 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
733 if (udata) {
734 Py_INCREF(udata->m_obj);
735 return udata->m_obj;
736 } else {
737 Py_INCREF(Py_None);
738 return Py_None;
739 }
740 }
741 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
742 self->SetToolClientData(id, new wxPyUserData(clientData));
743 }
744
745 #include <wx/listctrl.h>
746
747 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
748 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
749 // Python aware sorting function for wxPyListCtrl
750 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
751 int retval = 0;
752 PyObject* func = (PyObject*)funcPtr;
753 bool blocked = wxPyBeginBlockThreads();
754
755 PyObject* args = Py_BuildValue("(ii)", item1, item2);
756 PyObject* result = PyEval_CallObject(func, args);
757 Py_DECREF(args);
758 if (result) {
759 retval = PyInt_AsLong(result);
760 Py_DECREF(result);
761 }
762
763 wxPyEndBlockThreads(blocked);
764 return retval;
765 }
766
767 // C++ Version of a Python aware class
768 class wxPyListCtrl : public wxListCtrl {
769 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
770 public:
771 wxPyListCtrl() : wxListCtrl() {}
772 wxPyListCtrl(wxWindow* parent, wxWindowID id,
773 const wxPoint& pos,
774 const wxSize& size,
775 long style,
776 const wxValidator& validator,
777 const wxString& name) :
778 wxListCtrl(parent, id, pos, size, style, validator, name) {}
779
780 bool Create(wxWindow* parent, wxWindowID id,
781 const wxPoint& pos,
782 const wxSize& size,
783 long style,
784 const wxValidator& validator,
785 const wxString& name) {
786 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
787 }
788
789 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
790 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
791 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
792
793 PYPRIVATE;
794 };
795
796 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
797
798 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
799 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
800 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
801
802 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
803 wxListItem item;
804 item.SetMask( wxLIST_MASK_STATE |
805 wxLIST_MASK_TEXT |
806 wxLIST_MASK_IMAGE |
807 wxLIST_MASK_DATA |
808 wxLIST_SET_ITEM |
809 wxLIST_MASK_WIDTH |
810 wxLIST_MASK_FORMAT
811 );
812 if (self->GetColumn(col, item))
813 return new wxListItem(item);
814 else
815 return NULL;
816 }
817 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
818 wxListItem* info = new wxListItem;
819 info->m_itemId = itemId;
820 info->m_col = col;
821 info->m_mask = 0xFFFF;
822 self->GetItem(*info);
823 return info;
824 }
825 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
826 wxPoint pos;
827 self->GetItemPosition(item, pos);
828 return pos;
829 }
830 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
831 wxRect rect;
832 self->GetItemRect(item, rect, code);
833 return rect;
834 }
835
836 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
837 if (!PyCallable_Check(func))
838 return False;
839 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
840 }
841 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
842
843 return self;
844
845
846
847 }
848
849 #include <wx/treectrl.h>
850 #include "wx/wxPython/pytree.h"
851
852 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
853 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; }
854 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; }
855 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
856 // C++ version of Python aware wxTreeCtrl
857 class wxPyTreeCtrl : public wxTreeCtrl {
858 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
859 public:
860 wxPyTreeCtrl() : wxTreeCtrl() {}
861 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
862 const wxPoint& pos,
863 const wxSize& size,
864 long style,
865 const wxValidator& validator,
866 const wxString& name) :
867 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
868
869 bool Create(wxWindow *parent, wxWindowID id,
870 const wxPoint& pos,
871 const wxSize& size,
872 long style,
873 const wxValidator& validator,
874 const wxString& name) {
875 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
876 }
877
878
879 int OnCompareItems(const wxTreeItemId& item1,
880 const wxTreeItemId& item2) {
881 int rval = 0;
882 bool found;
883 bool blocked = wxPyBeginBlockThreads();
884 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
885 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False);
886 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False);
887 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
888 Py_DECREF(o1);
889 Py_DECREF(o2);
890 }
891 wxPyEndBlockThreads(blocked);
892 if (! found)
893 rval = wxTreeCtrl::OnCompareItems(item1, item2);
894 return rval;
895 }
896 PYPRIVATE;
897 };
898
899 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
900
901
902
903 #if UINT_MAX < LONG_MAX
904 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
905 #define SWIG_From_unsigned_SS_int SWIG_From_long
906 /*@@*/
907 #else
908 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
909 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
910 /*@@*/
911 #endif
912
913
914 SWIGSTATICINLINE(int)
915 SWIG_CheckUnsignedLongInRange(unsigned long value,
916 unsigned long max_value,
917 const char *errmsg)
918 {
919 if (value > max_value) {
920 if (errmsg) {
921 PyErr_Format(PyExc_OverflowError,
922 "value %ld is greater than '%s' minimum %ld",
923 value, errmsg, max_value);
924 }
925 return 0;
926 }
927 return 1;
928 }
929
930
931 #if UINT_MAX != ULONG_MAX
932 SWIGSTATICINLINE(int)
933 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
934 {
935 const char* errmsg = val ? "unsigned int" : 0;
936 unsigned long v;
937 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
938 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
939 if (val) *val = swig_numeric_cast(v, unsigned int);
940 return 1;
941 }
942 } else {
943 PyErr_Clear();
944 }
945 if (val) {
946 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
947 }
948 return 0;
949 }
950 #else
951 SWIGSTATICINLINE(unsigned int)
952 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
953 {
954 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
955 }
956 #endif
957
958
959 SWIGSTATICINLINE(unsigned int)
960 SWIG_As_unsigned_SS_int(PyObject* obj)
961 {
962 unsigned int v;
963 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
964 /*
965 this is needed to make valgrind/purify happier. the other
966 solution is throw an exception, but since this code should work
967 with plain C ....
968 */
969 memset((void*)&v, 0, sizeof(unsigned int));
970 }
971 return v;
972 }
973
974
975 SWIGSTATICINLINE(int)
976 SWIG_Check_unsigned_SS_int(PyObject* obj)
977 {
978 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
979 }
980
981 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
982 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
983 if (data == NULL) {
984 data = new wxPyTreeItemData();
985 data->SetId(item); // set the id
986 self->SetItemData(item, data);
987 }
988 return data;
989 }
990 PyObject *wxPyTreeCtrl_GetItemPyData(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->GetData();
998 }
999 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1000 data->SetId(item); // set the id
1001 self->SetItemData(item, data);
1002 }
1003 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1004 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1005 if (data == NULL) {
1006 data = new wxPyTreeItemData(obj);
1007 data->SetId(item); // set the id
1008 self->SetItemData(item, data);
1009 } else
1010 data->SetData(obj);
1011 }
1012 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1013 bool blocked = wxPyBeginBlockThreads();
1014 PyObject* rval = PyList_New(0);
1015 wxArrayTreeItemIds array;
1016 size_t num, x;
1017 num = self->GetSelections(array);
1018 for (x=0; x < num; x++) {
1019 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1020 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True);
1021 PyList_Append(rval, item);
1022 Py_DECREF(item);
1023 }
1024 wxPyEndBlockThreads(blocked);
1025 return rval;
1026 }
1027 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1028 void* cookie = 0;
1029 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1030 bool blocked = wxPyBeginBlockThreads();
1031 PyObject* tup = PyTuple_New(2);
1032 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True));
1033 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1034 wxPyEndBlockThreads(blocked);
1035 return tup;
1036 }
1037 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1038 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(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_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1047 wxRect rect;
1048 if (self->GetBoundingRect(item, rect, textOnly)) {
1049 bool blocked = wxPyBeginBlockThreads();
1050 wxRect* r = new wxRect(rect);
1051 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True);
1052 wxPyEndBlockThreads(blocked);
1053 return val;
1054 }
1055 else
1056 RETURN_NONE();
1057 }
1058 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1059
1060 SWIGSTATICINLINE(PyObject*)
1061 SWIG_From_bool(bool value)
1062 {
1063 PyObject *obj = value ? Py_True : Py_False;
1064 Py_INCREF(obj);
1065 return obj;
1066 }
1067
1068
1069 // C++ version of Python aware wxControl
1070 class wxPyControl : public wxControl
1071 {
1072 DECLARE_DYNAMIC_CLASS(wxPyControl)
1073 public:
1074 wxPyControl() : wxControl() {}
1075 wxPyControl(wxWindow* parent, const wxWindowID id,
1076 const wxPoint& pos = wxDefaultPosition,
1077 const wxSize& size = wxDefaultSize,
1078 long style = 0,
1079 const wxValidator& validator=wxDefaultValidator,
1080 const wxString& name = wxPyControlNameStr)
1081 : wxControl(parent, id, pos, size, style, validator, name) {}
1082
1083 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1084
1085 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1086 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1087 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1088 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1089
1090 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1091 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1092 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1093
1094 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1095 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1096
1097 DEC_PYCALLBACK__(InitDialog);
1098 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1099 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1100 DEC_PYCALLBACK_BOOL_(Validate);
1101
1102 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1103 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1104 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1105
1106 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1107 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1108
1109 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1110 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1111 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1112
1113 PYPRIVATE;
1114 };
1115
1116 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1117
1118 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1119 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1120 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1121 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1122
1123 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1124 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1125 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1126
1127 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1128 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1129
1130 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1131 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1132 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1133 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1134
1135 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1136 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1137 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1138
1139 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1140 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1141
1142 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1143 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1144 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1145
1146
1147
1148 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1149
1150 #include <wx/generic/dragimgg.h>
1151
1152 #ifdef __cplusplus
1153 extern "C" {
1154 #endif
1155 static int _wrap_ButtonNameStr_set(PyObject *) {
1156 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1157 return 1;
1158 }
1159
1160
1161 static PyObject *_wrap_ButtonNameStr_get() {
1162 PyObject *pyobj;
1163
1164 {
1165 #if wxUSE_UNICODE
1166 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1167 #else
1168 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1169 #endif
1170 }
1171 return pyobj;
1172 }
1173
1174
1175 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 wxWindow *arg1 = (wxWindow *) 0 ;
1178 int arg2 = (int) -1 ;
1179 wxString const &arg3_defvalue = wxPyEmptyString ;
1180 wxString *arg3 = (wxString *) &arg3_defvalue ;
1181 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1182 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1183 wxSize const &arg5_defvalue = wxDefaultSize ;
1184 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1185 long arg6 = (long) 0 ;
1186 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1187 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1188 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1189 wxString *arg8 = (wxString *) &arg8_defvalue ;
1190 wxButton *result;
1191 bool temp3 = False ;
1192 wxPoint temp4 ;
1193 wxSize temp5 ;
1194 bool temp8 = False ;
1195 PyObject * obj0 = 0 ;
1196 PyObject * obj1 = 0 ;
1197 PyObject * obj2 = 0 ;
1198 PyObject * obj3 = 0 ;
1199 PyObject * obj4 = 0 ;
1200 PyObject * obj5 = 0 ;
1201 PyObject * obj6 = 0 ;
1202 PyObject * obj7 = 0 ;
1203 char *kwnames[] = {
1204 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1205 };
1206
1207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1210 if (obj1) {
1211 arg2 = (int)SWIG_As_int(obj1);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 if (obj2) {
1215 {
1216 arg3 = wxString_in_helper(obj2);
1217 if (arg3 == NULL) SWIG_fail;
1218 temp3 = True;
1219 }
1220 }
1221 if (obj3) {
1222 {
1223 arg4 = &temp4;
1224 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1225 }
1226 }
1227 if (obj4) {
1228 {
1229 arg5 = &temp5;
1230 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1231 }
1232 }
1233 if (obj5) {
1234 arg6 = (long)SWIG_As_long(obj5);
1235 if (PyErr_Occurred()) SWIG_fail;
1236 }
1237 if (obj6) {
1238 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1239 SWIG_POINTER_EXCEPTION | 0)) == -1)
1240 SWIG_fail;
1241 if (arg7 == NULL) {
1242 PyErr_SetString(PyExc_TypeError,"null reference");
1243 SWIG_fail;
1244 }
1245 }
1246 if (obj7) {
1247 {
1248 arg8 = wxString_in_helper(obj7);
1249 if (arg8 == NULL) SWIG_fail;
1250 temp8 = True;
1251 }
1252 }
1253 {
1254 if (!wxPyCheckForApp()) SWIG_fail;
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1262 {
1263 if (temp3)
1264 delete arg3;
1265 }
1266 {
1267 if (temp8)
1268 delete arg8;
1269 }
1270 return resultobj;
1271 fail:
1272 {
1273 if (temp3)
1274 delete arg3;
1275 }
1276 {
1277 if (temp8)
1278 delete arg8;
1279 }
1280 return NULL;
1281 }
1282
1283
1284 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1285 PyObject *resultobj;
1286 wxButton *result;
1287 char *kwnames[] = {
1288 NULL
1289 };
1290
1291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1292 {
1293 if (!wxPyCheckForApp()) SWIG_fail;
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 result = (wxButton *)new wxButton();
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1301 return resultobj;
1302 fail:
1303 return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxButton *arg1 = (wxButton *) 0 ;
1310 wxWindow *arg2 = (wxWindow *) 0 ;
1311 int arg3 = (int) -1 ;
1312 wxString const &arg4_defvalue = wxPyEmptyString ;
1313 wxString *arg4 = (wxString *) &arg4_defvalue ;
1314 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1315 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1316 wxSize const &arg6_defvalue = wxDefaultSize ;
1317 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1318 long arg7 = (long) 0 ;
1319 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1320 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1321 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1322 wxString *arg9 = (wxString *) &arg9_defvalue ;
1323 bool result;
1324 bool temp4 = False ;
1325 wxPoint temp5 ;
1326 wxSize temp6 ;
1327 bool temp9 = False ;
1328 PyObject * obj0 = 0 ;
1329 PyObject * obj1 = 0 ;
1330 PyObject * obj2 = 0 ;
1331 PyObject * obj3 = 0 ;
1332 PyObject * obj4 = 0 ;
1333 PyObject * obj5 = 0 ;
1334 PyObject * obj6 = 0 ;
1335 PyObject * obj7 = 0 ;
1336 PyObject * obj8 = 0 ;
1337 char *kwnames[] = {
1338 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1339 };
1340
1341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1346 if (obj2) {
1347 arg3 = (int)SWIG_As_int(obj2);
1348 if (PyErr_Occurred()) SWIG_fail;
1349 }
1350 if (obj3) {
1351 {
1352 arg4 = wxString_in_helper(obj3);
1353 if (arg4 == NULL) SWIG_fail;
1354 temp4 = True;
1355 }
1356 }
1357 if (obj4) {
1358 {
1359 arg5 = &temp5;
1360 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1361 }
1362 }
1363 if (obj5) {
1364 {
1365 arg6 = &temp6;
1366 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1367 }
1368 }
1369 if (obj6) {
1370 arg7 = (long)SWIG_As_long(obj6);
1371 if (PyErr_Occurred()) SWIG_fail;
1372 }
1373 if (obj7) {
1374 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1375 SWIG_POINTER_EXCEPTION | 0)) == -1)
1376 SWIG_fail;
1377 if (arg8 == NULL) {
1378 PyErr_SetString(PyExc_TypeError,"null reference");
1379 SWIG_fail;
1380 }
1381 }
1382 if (obj8) {
1383 {
1384 arg9 = wxString_in_helper(obj8);
1385 if (arg9 == NULL) SWIG_fail;
1386 temp9 = True;
1387 }
1388 }
1389 {
1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
1391 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1392
1393 wxPyEndAllowThreads(__tstate);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 }
1396 {
1397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1398 }
1399 {
1400 if (temp4)
1401 delete arg4;
1402 }
1403 {
1404 if (temp9)
1405 delete arg9;
1406 }
1407 return resultobj;
1408 fail:
1409 {
1410 if (temp4)
1411 delete arg4;
1412 }
1413 {
1414 if (temp9)
1415 delete arg9;
1416 }
1417 return NULL;
1418 }
1419
1420
1421 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1422 PyObject *resultobj;
1423 wxButton *arg1 = (wxButton *) 0 ;
1424 PyObject * obj0 = 0 ;
1425 char *kwnames[] = {
1426 (char *) "self", NULL
1427 };
1428
1429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1432 {
1433 PyThreadState* __tstate = wxPyBeginAllowThreads();
1434 (arg1)->SetDefault();
1435
1436 wxPyEndAllowThreads(__tstate);
1437 if (PyErr_Occurred()) SWIG_fail;
1438 }
1439 Py_INCREF(Py_None); resultobj = Py_None;
1440 return resultobj;
1441 fail:
1442 return NULL;
1443 }
1444
1445
1446 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1447 PyObject *resultobj;
1448 wxSize result;
1449 char *kwnames[] = {
1450 NULL
1451 };
1452
1453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1454 {
1455 PyThreadState* __tstate = wxPyBeginAllowThreads();
1456 result = wxButton::GetDefaultSize();
1457
1458 wxPyEndAllowThreads(__tstate);
1459 if (PyErr_Occurred()) SWIG_fail;
1460 }
1461 {
1462 wxSize * resultptr;
1463 resultptr = new wxSize((wxSize &) result);
1464 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1465 }
1466 return resultobj;
1467 fail:
1468 return NULL;
1469 }
1470
1471
1472 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1473 PyObject *resultobj;
1474 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1475 wxVisualAttributes result;
1476 PyObject * obj0 = 0 ;
1477 char *kwnames[] = {
1478 (char *) "variant", NULL
1479 };
1480
1481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1482 if (obj0) {
1483 arg1 = (int)SWIG_As_int(obj0);
1484 if (PyErr_Occurred()) SWIG_fail;
1485 }
1486 {
1487 if (!wxPyCheckForApp()) SWIG_fail;
1488 PyThreadState* __tstate = wxPyBeginAllowThreads();
1489 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1490
1491 wxPyEndAllowThreads(__tstate);
1492 if (PyErr_Occurred()) SWIG_fail;
1493 }
1494 {
1495 wxVisualAttributes * resultptr;
1496 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1497 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1498 }
1499 return resultobj;
1500 fail:
1501 return NULL;
1502 }
1503
1504
1505 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1506 PyObject *obj;
1507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1508 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1509 Py_INCREF(obj);
1510 return Py_BuildValue((char *)"");
1511 }
1512 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 wxWindow *arg1 = (wxWindow *) 0 ;
1515 int arg2 = (int) -1 ;
1516 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1517 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1518 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1519 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1520 wxSize const &arg5_defvalue = wxDefaultSize ;
1521 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1522 long arg6 = (long) wxBU_AUTODRAW ;
1523 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1524 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1525 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1526 wxString *arg8 = (wxString *) &arg8_defvalue ;
1527 wxBitmapButton *result;
1528 wxPoint temp4 ;
1529 wxSize temp5 ;
1530 bool temp8 = False ;
1531 PyObject * obj0 = 0 ;
1532 PyObject * obj1 = 0 ;
1533 PyObject * obj2 = 0 ;
1534 PyObject * obj3 = 0 ;
1535 PyObject * obj4 = 0 ;
1536 PyObject * obj5 = 0 ;
1537 PyObject * obj6 = 0 ;
1538 PyObject * obj7 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1546 if (obj1) {
1547 arg2 = (int)SWIG_As_int(obj1);
1548 if (PyErr_Occurred()) SWIG_fail;
1549 }
1550 if (obj2) {
1551 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1552 SWIG_POINTER_EXCEPTION | 0)) == -1)
1553 SWIG_fail;
1554 if (arg3 == NULL) {
1555 PyErr_SetString(PyExc_TypeError,"null reference");
1556 SWIG_fail;
1557 }
1558 }
1559 if (obj3) {
1560 {
1561 arg4 = &temp4;
1562 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1563 }
1564 }
1565 if (obj4) {
1566 {
1567 arg5 = &temp5;
1568 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1569 }
1570 }
1571 if (obj5) {
1572 arg6 = (long)SWIG_As_long(obj5);
1573 if (PyErr_Occurred()) SWIG_fail;
1574 }
1575 if (obj6) {
1576 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1577 SWIG_POINTER_EXCEPTION | 0)) == -1)
1578 SWIG_fail;
1579 if (arg7 == NULL) {
1580 PyErr_SetString(PyExc_TypeError,"null reference");
1581 SWIG_fail;
1582 }
1583 }
1584 if (obj7) {
1585 {
1586 arg8 = wxString_in_helper(obj7);
1587 if (arg8 == NULL) SWIG_fail;
1588 temp8 = True;
1589 }
1590 }
1591 {
1592 if (!wxPyCheckForApp()) SWIG_fail;
1593 PyThreadState* __tstate = wxPyBeginAllowThreads();
1594 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1595
1596 wxPyEndAllowThreads(__tstate);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 }
1599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1600 {
1601 if (temp8)
1602 delete arg8;
1603 }
1604 return resultobj;
1605 fail:
1606 {
1607 if (temp8)
1608 delete arg8;
1609 }
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxBitmapButton *result;
1617 char *kwnames[] = {
1618 NULL
1619 };
1620
1621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1622 {
1623 if (!wxPyCheckForApp()) SWIG_fail;
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 result = (wxBitmapButton *)new wxBitmapButton();
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 }
1630 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1640 wxWindow *arg2 = (wxWindow *) 0 ;
1641 int arg3 = (int) -1 ;
1642 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1643 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1644 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1645 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1646 wxSize const &arg6_defvalue = wxDefaultSize ;
1647 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1648 long arg7 = (long) wxBU_AUTODRAW ;
1649 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1650 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1651 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1652 wxString *arg9 = (wxString *) &arg9_defvalue ;
1653 bool result;
1654 wxPoint temp5 ;
1655 wxSize temp6 ;
1656 bool temp9 = False ;
1657 PyObject * obj0 = 0 ;
1658 PyObject * obj1 = 0 ;
1659 PyObject * obj2 = 0 ;
1660 PyObject * obj3 = 0 ;
1661 PyObject * obj4 = 0 ;
1662 PyObject * obj5 = 0 ;
1663 PyObject * obj6 = 0 ;
1664 PyObject * obj7 = 0 ;
1665 PyObject * obj8 = 0 ;
1666 char *kwnames[] = {
1667 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1668 };
1669
1670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1673 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1675 if (obj2) {
1676 arg3 = (int)SWIG_As_int(obj2);
1677 if (PyErr_Occurred()) SWIG_fail;
1678 }
1679 if (obj3) {
1680 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1681 SWIG_POINTER_EXCEPTION | 0)) == -1)
1682 SWIG_fail;
1683 if (arg4 == NULL) {
1684 PyErr_SetString(PyExc_TypeError,"null reference");
1685 SWIG_fail;
1686 }
1687 }
1688 if (obj4) {
1689 {
1690 arg5 = &temp5;
1691 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1692 }
1693 }
1694 if (obj5) {
1695 {
1696 arg6 = &temp6;
1697 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1698 }
1699 }
1700 if (obj6) {
1701 arg7 = (long)SWIG_As_long(obj6);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 if (obj7) {
1705 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1706 SWIG_POINTER_EXCEPTION | 0)) == -1)
1707 SWIG_fail;
1708 if (arg8 == NULL) {
1709 PyErr_SetString(PyExc_TypeError,"null reference");
1710 SWIG_fail;
1711 }
1712 }
1713 if (obj8) {
1714 {
1715 arg9 = wxString_in_helper(obj8);
1716 if (arg9 == NULL) SWIG_fail;
1717 temp9 = True;
1718 }
1719 }
1720 {
1721 PyThreadState* __tstate = wxPyBeginAllowThreads();
1722 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1723
1724 wxPyEndAllowThreads(__tstate);
1725 if (PyErr_Occurred()) SWIG_fail;
1726 }
1727 {
1728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1729 }
1730 {
1731 if (temp9)
1732 delete arg9;
1733 }
1734 return resultobj;
1735 fail:
1736 {
1737 if (temp9)
1738 delete arg9;
1739 }
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1747 wxBitmap result;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 result = (arg1)->GetBitmapLabel();
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 {
1764 wxBitmap * resultptr;
1765 resultptr = new wxBitmap((wxBitmap &) result);
1766 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1767 }
1768 return resultobj;
1769 fail:
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1777 wxBitmap result;
1778 PyObject * obj0 = 0 ;
1779 char *kwnames[] = {
1780 (char *) "self", NULL
1781 };
1782
1783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1786 {
1787 PyThreadState* __tstate = wxPyBeginAllowThreads();
1788 result = (arg1)->GetBitmapDisabled();
1789
1790 wxPyEndAllowThreads(__tstate);
1791 if (PyErr_Occurred()) SWIG_fail;
1792 }
1793 {
1794 wxBitmap * resultptr;
1795 resultptr = new wxBitmap((wxBitmap &) result);
1796 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1797 }
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1807 wxBitmap result;
1808 PyObject * obj0 = 0 ;
1809 char *kwnames[] = {
1810 (char *) "self", NULL
1811 };
1812
1813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1816 {
1817 PyThreadState* __tstate = wxPyBeginAllowThreads();
1818 result = (arg1)->GetBitmapFocus();
1819
1820 wxPyEndAllowThreads(__tstate);
1821 if (PyErr_Occurred()) SWIG_fail;
1822 }
1823 {
1824 wxBitmap * resultptr;
1825 resultptr = new wxBitmap((wxBitmap &) result);
1826 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1827 }
1828 return resultobj;
1829 fail:
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1837 wxBitmap result;
1838 PyObject * obj0 = 0 ;
1839 char *kwnames[] = {
1840 (char *) "self", NULL
1841 };
1842
1843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1846 {
1847 PyThreadState* __tstate = wxPyBeginAllowThreads();
1848 result = (arg1)->GetBitmapSelected();
1849
1850 wxPyEndAllowThreads(__tstate);
1851 if (PyErr_Occurred()) SWIG_fail;
1852 }
1853 {
1854 wxBitmap * resultptr;
1855 resultptr = new wxBitmap((wxBitmap &) result);
1856 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1857 }
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1865 PyObject *resultobj;
1866 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1867 wxBitmap *arg2 = 0 ;
1868 PyObject * obj0 = 0 ;
1869 PyObject * obj1 = 0 ;
1870 char *kwnames[] = {
1871 (char *) "self",(char *) "bitmap", NULL
1872 };
1873
1874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1877 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1878 SWIG_POINTER_EXCEPTION | 0)) == -1)
1879 SWIG_fail;
1880 if (arg2 == NULL) {
1881 PyErr_SetString(PyExc_TypeError,"null reference");
1882 SWIG_fail;
1883 }
1884 {
1885 PyThreadState* __tstate = wxPyBeginAllowThreads();
1886 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1887
1888 wxPyEndAllowThreads(__tstate);
1889 if (PyErr_Occurred()) SWIG_fail;
1890 }
1891 Py_INCREF(Py_None); resultobj = Py_None;
1892 return resultobj;
1893 fail:
1894 return NULL;
1895 }
1896
1897
1898 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1899 PyObject *resultobj;
1900 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1901 wxBitmap *arg2 = 0 ;
1902 PyObject * obj0 = 0 ;
1903 PyObject * obj1 = 0 ;
1904 char *kwnames[] = {
1905 (char *) "self",(char *) "bitmap", NULL
1906 };
1907
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1911 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1912 SWIG_POINTER_EXCEPTION | 0)) == -1)
1913 SWIG_fail;
1914 if (arg2 == NULL) {
1915 PyErr_SetString(PyExc_TypeError,"null reference");
1916 SWIG_fail;
1917 }
1918 {
1919 PyThreadState* __tstate = wxPyBeginAllowThreads();
1920 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1921
1922 wxPyEndAllowThreads(__tstate);
1923 if (PyErr_Occurred()) SWIG_fail;
1924 }
1925 Py_INCREF(Py_None); resultobj = Py_None;
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1933 PyObject *resultobj;
1934 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1935 wxBitmap *arg2 = 0 ;
1936 PyObject * obj0 = 0 ;
1937 PyObject * obj1 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self",(char *) "bitmap", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1946 SWIG_POINTER_EXCEPTION | 0)) == -1)
1947 SWIG_fail;
1948 if (arg2 == NULL) {
1949 PyErr_SetString(PyExc_TypeError,"null reference");
1950 SWIG_fail;
1951 }
1952 {
1953 PyThreadState* __tstate = wxPyBeginAllowThreads();
1954 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1955
1956 wxPyEndAllowThreads(__tstate);
1957 if (PyErr_Occurred()) SWIG_fail;
1958 }
1959 Py_INCREF(Py_None); resultobj = Py_None;
1960 return resultobj;
1961 fail:
1962 return NULL;
1963 }
1964
1965
1966 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1967 PyObject *resultobj;
1968 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1969 wxBitmap *arg2 = 0 ;
1970 PyObject * obj0 = 0 ;
1971 PyObject * obj1 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self",(char *) "bitmap", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1979 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1980 SWIG_POINTER_EXCEPTION | 0)) == -1)
1981 SWIG_fail;
1982 if (arg2 == NULL) {
1983 PyErr_SetString(PyExc_TypeError,"null reference");
1984 SWIG_fail;
1985 }
1986 {
1987 PyThreadState* __tstate = wxPyBeginAllowThreads();
1988 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1989
1990 wxPyEndAllowThreads(__tstate);
1991 if (PyErr_Occurred()) SWIG_fail;
1992 }
1993 Py_INCREF(Py_None); resultobj = Py_None;
1994 return resultobj;
1995 fail:
1996 return NULL;
1997 }
1998
1999
2000 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2001 PyObject *resultobj;
2002 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2003 int arg2 ;
2004 int arg3 ;
2005 PyObject * obj0 = 0 ;
2006 PyObject * obj1 = 0 ;
2007 PyObject * obj2 = 0 ;
2008 char *kwnames[] = {
2009 (char *) "self",(char *) "x",(char *) "y", NULL
2010 };
2011
2012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2015 arg2 = (int)SWIG_As_int(obj1);
2016 if (PyErr_Occurred()) SWIG_fail;
2017 arg3 = (int)SWIG_As_int(obj2);
2018 if (PyErr_Occurred()) SWIG_fail;
2019 {
2020 PyThreadState* __tstate = wxPyBeginAllowThreads();
2021 (arg1)->SetMargins(arg2,arg3);
2022
2023 wxPyEndAllowThreads(__tstate);
2024 if (PyErr_Occurred()) SWIG_fail;
2025 }
2026 Py_INCREF(Py_None); resultobj = Py_None;
2027 return resultobj;
2028 fail:
2029 return NULL;
2030 }
2031
2032
2033 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2034 PyObject *resultobj;
2035 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2036 int result;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2045 {
2046 PyThreadState* __tstate = wxPyBeginAllowThreads();
2047 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2048
2049 wxPyEndAllowThreads(__tstate);
2050 if (PyErr_Occurred()) SWIG_fail;
2051 }
2052 resultobj = SWIG_From_int((int)result);
2053 return resultobj;
2054 fail:
2055 return NULL;
2056 }
2057
2058
2059 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2060 PyObject *resultobj;
2061 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2062 int result;
2063 PyObject * obj0 = 0 ;
2064 char *kwnames[] = {
2065 (char *) "self", NULL
2066 };
2067
2068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_From_int((int)result);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2086 PyObject *obj;
2087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2088 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2089 Py_INCREF(obj);
2090 return Py_BuildValue((char *)"");
2091 }
2092 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2093 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2094 return 1;
2095 }
2096
2097
2098 static PyObject *_wrap_CheckBoxNameStr_get() {
2099 PyObject *pyobj;
2100
2101 {
2102 #if wxUSE_UNICODE
2103 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2104 #else
2105 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2106 #endif
2107 }
2108 return pyobj;
2109 }
2110
2111
2112 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2113 PyObject *resultobj;
2114 wxWindow *arg1 = (wxWindow *) 0 ;
2115 int arg2 = (int) -1 ;
2116 wxString const &arg3_defvalue = wxPyEmptyString ;
2117 wxString *arg3 = (wxString *) &arg3_defvalue ;
2118 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2119 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2120 wxSize const &arg5_defvalue = wxDefaultSize ;
2121 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2122 long arg6 = (long) 0 ;
2123 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2124 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2125 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2126 wxString *arg8 = (wxString *) &arg8_defvalue ;
2127 wxCheckBox *result;
2128 bool temp3 = False ;
2129 wxPoint temp4 ;
2130 wxSize temp5 ;
2131 bool temp8 = False ;
2132 PyObject * obj0 = 0 ;
2133 PyObject * obj1 = 0 ;
2134 PyObject * obj2 = 0 ;
2135 PyObject * obj3 = 0 ;
2136 PyObject * obj4 = 0 ;
2137 PyObject * obj5 = 0 ;
2138 PyObject * obj6 = 0 ;
2139 PyObject * obj7 = 0 ;
2140 char *kwnames[] = {
2141 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2142 };
2143
2144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2147 if (obj1) {
2148 arg2 = (int)SWIG_As_int(obj1);
2149 if (PyErr_Occurred()) SWIG_fail;
2150 }
2151 if (obj2) {
2152 {
2153 arg3 = wxString_in_helper(obj2);
2154 if (arg3 == NULL) SWIG_fail;
2155 temp3 = True;
2156 }
2157 }
2158 if (obj3) {
2159 {
2160 arg4 = &temp4;
2161 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2162 }
2163 }
2164 if (obj4) {
2165 {
2166 arg5 = &temp5;
2167 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2168 }
2169 }
2170 if (obj5) {
2171 arg6 = (long)SWIG_As_long(obj5);
2172 if (PyErr_Occurred()) SWIG_fail;
2173 }
2174 if (obj6) {
2175 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2176 SWIG_POINTER_EXCEPTION | 0)) == -1)
2177 SWIG_fail;
2178 if (arg7 == NULL) {
2179 PyErr_SetString(PyExc_TypeError,"null reference");
2180 SWIG_fail;
2181 }
2182 }
2183 if (obj7) {
2184 {
2185 arg8 = wxString_in_helper(obj7);
2186 if (arg8 == NULL) SWIG_fail;
2187 temp8 = True;
2188 }
2189 }
2190 {
2191 if (!wxPyCheckForApp()) SWIG_fail;
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2199 {
2200 if (temp3)
2201 delete arg3;
2202 }
2203 {
2204 if (temp8)
2205 delete arg8;
2206 }
2207 return resultobj;
2208 fail:
2209 {
2210 if (temp3)
2211 delete arg3;
2212 }
2213 {
2214 if (temp8)
2215 delete arg8;
2216 }
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxCheckBox *result;
2224 char *kwnames[] = {
2225 NULL
2226 };
2227
2228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2229 {
2230 if (!wxPyCheckForApp()) SWIG_fail;
2231 PyThreadState* __tstate = wxPyBeginAllowThreads();
2232 result = (wxCheckBox *)new wxCheckBox();
2233
2234 wxPyEndAllowThreads(__tstate);
2235 if (PyErr_Occurred()) SWIG_fail;
2236 }
2237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2238 return resultobj;
2239 fail:
2240 return NULL;
2241 }
2242
2243
2244 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2245 PyObject *resultobj;
2246 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2247 wxWindow *arg2 = (wxWindow *) 0 ;
2248 int arg3 = (int) -1 ;
2249 wxString const &arg4_defvalue = wxPyEmptyString ;
2250 wxString *arg4 = (wxString *) &arg4_defvalue ;
2251 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2252 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2253 wxSize const &arg6_defvalue = wxDefaultSize ;
2254 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2255 long arg7 = (long) 0 ;
2256 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2257 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2258 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2259 wxString *arg9 = (wxString *) &arg9_defvalue ;
2260 bool result;
2261 bool temp4 = False ;
2262 wxPoint temp5 ;
2263 wxSize temp6 ;
2264 bool temp9 = False ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 PyObject * obj2 = 0 ;
2268 PyObject * obj3 = 0 ;
2269 PyObject * obj4 = 0 ;
2270 PyObject * obj5 = 0 ;
2271 PyObject * obj6 = 0 ;
2272 PyObject * obj7 = 0 ;
2273 PyObject * obj8 = 0 ;
2274 char *kwnames[] = {
2275 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2276 };
2277
2278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2281 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2283 if (obj2) {
2284 arg3 = (int)SWIG_As_int(obj2);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 if (obj3) {
2288 {
2289 arg4 = wxString_in_helper(obj3);
2290 if (arg4 == NULL) SWIG_fail;
2291 temp4 = True;
2292 }
2293 }
2294 if (obj4) {
2295 {
2296 arg5 = &temp5;
2297 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2298 }
2299 }
2300 if (obj5) {
2301 {
2302 arg6 = &temp6;
2303 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2304 }
2305 }
2306 if (obj6) {
2307 arg7 = (long)SWIG_As_long(obj6);
2308 if (PyErr_Occurred()) SWIG_fail;
2309 }
2310 if (obj7) {
2311 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2312 SWIG_POINTER_EXCEPTION | 0)) == -1)
2313 SWIG_fail;
2314 if (arg8 == NULL) {
2315 PyErr_SetString(PyExc_TypeError,"null reference");
2316 SWIG_fail;
2317 }
2318 }
2319 if (obj8) {
2320 {
2321 arg9 = wxString_in_helper(obj8);
2322 if (arg9 == NULL) SWIG_fail;
2323 temp9 = True;
2324 }
2325 }
2326 {
2327 PyThreadState* __tstate = wxPyBeginAllowThreads();
2328 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2329
2330 wxPyEndAllowThreads(__tstate);
2331 if (PyErr_Occurred()) SWIG_fail;
2332 }
2333 {
2334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2335 }
2336 {
2337 if (temp4)
2338 delete arg4;
2339 }
2340 {
2341 if (temp9)
2342 delete arg9;
2343 }
2344 return resultobj;
2345 fail:
2346 {
2347 if (temp4)
2348 delete arg4;
2349 }
2350 {
2351 if (temp9)
2352 delete arg9;
2353 }
2354 return NULL;
2355 }
2356
2357
2358 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2359 PyObject *resultobj;
2360 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2361 bool result;
2362 PyObject * obj0 = 0 ;
2363 char *kwnames[] = {
2364 (char *) "self", NULL
2365 };
2366
2367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2370 {
2371 PyThreadState* __tstate = wxPyBeginAllowThreads();
2372 result = (bool)(arg1)->GetValue();
2373
2374 wxPyEndAllowThreads(__tstate);
2375 if (PyErr_Occurred()) SWIG_fail;
2376 }
2377 {
2378 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2379 }
2380 return resultobj;
2381 fail:
2382 return NULL;
2383 }
2384
2385
2386 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2387 PyObject *resultobj;
2388 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2389 bool result;
2390 PyObject * obj0 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2398 {
2399 PyThreadState* __tstate = wxPyBeginAllowThreads();
2400 result = (bool)(arg1)->IsChecked();
2401
2402 wxPyEndAllowThreads(__tstate);
2403 if (PyErr_Occurred()) SWIG_fail;
2404 }
2405 {
2406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2407 }
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2417 bool arg2 ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self",(char *) "state", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2427 arg2 = (bool)SWIG_As_bool(obj1);
2428 if (PyErr_Occurred()) SWIG_fail;
2429 {
2430 PyThreadState* __tstate = wxPyBeginAllowThreads();
2431 (arg1)->SetValue(arg2);
2432
2433 wxPyEndAllowThreads(__tstate);
2434 if (PyErr_Occurred()) SWIG_fail;
2435 }
2436 Py_INCREF(Py_None); resultobj = Py_None;
2437 return resultobj;
2438 fail:
2439 return NULL;
2440 }
2441
2442
2443 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2444 PyObject *resultobj;
2445 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2446 int result;
2447 PyObject * obj0 = 0 ;
2448 char *kwnames[] = {
2449 (char *) "self", NULL
2450 };
2451
2452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2455 {
2456 PyThreadState* __tstate = wxPyBeginAllowThreads();
2457 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2458
2459 wxPyEndAllowThreads(__tstate);
2460 if (PyErr_Occurred()) SWIG_fail;
2461 }
2462 resultobj = SWIG_From_int((int)result);
2463 return resultobj;
2464 fail:
2465 return NULL;
2466 }
2467
2468
2469 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2470 PyObject *resultobj;
2471 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2472 int arg2 ;
2473 PyObject * obj0 = 0 ;
2474 PyObject * obj1 = 0 ;
2475 char *kwnames[] = {
2476 (char *) "self",(char *) "state", NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2482 arg2 = (int)SWIG_As_int(obj1);
2483 if (PyErr_Occurred()) SWIG_fail;
2484 {
2485 PyThreadState* __tstate = wxPyBeginAllowThreads();
2486 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2487
2488 wxPyEndAllowThreads(__tstate);
2489 if (PyErr_Occurred()) SWIG_fail;
2490 }
2491 Py_INCREF(Py_None); resultobj = Py_None;
2492 return resultobj;
2493 fail:
2494 return NULL;
2495 }
2496
2497
2498 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2499 PyObject *resultobj;
2500 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2501 bool result;
2502 PyObject * obj0 = 0 ;
2503 char *kwnames[] = {
2504 (char *) "self", NULL
2505 };
2506
2507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2510 {
2511 PyThreadState* __tstate = wxPyBeginAllowThreads();
2512 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2513
2514 wxPyEndAllowThreads(__tstate);
2515 if (PyErr_Occurred()) SWIG_fail;
2516 }
2517 {
2518 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2519 }
2520 return resultobj;
2521 fail:
2522 return NULL;
2523 }
2524
2525
2526 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2527 PyObject *resultobj;
2528 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2529 bool result;
2530 PyObject * obj0 = 0 ;
2531 char *kwnames[] = {
2532 (char *) "self", NULL
2533 };
2534
2535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2537 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 {
2546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2547 }
2548 return resultobj;
2549 fail:
2550 return NULL;
2551 }
2552
2553
2554 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2555 PyObject *resultobj;
2556 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2557 wxVisualAttributes result;
2558 PyObject * obj0 = 0 ;
2559 char *kwnames[] = {
2560 (char *) "variant", NULL
2561 };
2562
2563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2564 if (obj0) {
2565 arg1 = (int)SWIG_As_int(obj0);
2566 if (PyErr_Occurred()) SWIG_fail;
2567 }
2568 {
2569 if (!wxPyCheckForApp()) SWIG_fail;
2570 PyThreadState* __tstate = wxPyBeginAllowThreads();
2571 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2572
2573 wxPyEndAllowThreads(__tstate);
2574 if (PyErr_Occurred()) SWIG_fail;
2575 }
2576 {
2577 wxVisualAttributes * resultptr;
2578 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2579 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2580 }
2581 return resultobj;
2582 fail:
2583 return NULL;
2584 }
2585
2586
2587 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2588 PyObject *obj;
2589 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2590 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2591 Py_INCREF(obj);
2592 return Py_BuildValue((char *)"");
2593 }
2594 static int _wrap_ChoiceNameStr_set(PyObject *) {
2595 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2596 return 1;
2597 }
2598
2599
2600 static PyObject *_wrap_ChoiceNameStr_get() {
2601 PyObject *pyobj;
2602
2603 {
2604 #if wxUSE_UNICODE
2605 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2606 #else
2607 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2608 #endif
2609 }
2610 return pyobj;
2611 }
2612
2613
2614 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2615 PyObject *resultobj;
2616 wxWindow *arg1 = (wxWindow *) 0 ;
2617 int arg2 = (int) -1 ;
2618 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2619 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2620 wxSize const &arg4_defvalue = wxDefaultSize ;
2621 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2622 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2623 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2624 long arg6 = (long) 0 ;
2625 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2626 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2627 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2628 wxString *arg8 = (wxString *) &arg8_defvalue ;
2629 wxChoice *result;
2630 wxPoint temp3 ;
2631 wxSize temp4 ;
2632 bool temp5 = False ;
2633 bool temp8 = False ;
2634 PyObject * obj0 = 0 ;
2635 PyObject * obj1 = 0 ;
2636 PyObject * obj2 = 0 ;
2637 PyObject * obj3 = 0 ;
2638 PyObject * obj4 = 0 ;
2639 PyObject * obj5 = 0 ;
2640 PyObject * obj6 = 0 ;
2641 PyObject * obj7 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2649 if (obj1) {
2650 arg2 = (int)SWIG_As_int(obj1);
2651 if (PyErr_Occurred()) SWIG_fail;
2652 }
2653 if (obj2) {
2654 {
2655 arg3 = &temp3;
2656 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2657 }
2658 }
2659 if (obj3) {
2660 {
2661 arg4 = &temp4;
2662 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2663 }
2664 }
2665 if (obj4) {
2666 {
2667 if (! PySequence_Check(obj4)) {
2668 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2669 SWIG_fail;
2670 }
2671 arg5 = new wxArrayString;
2672 temp5 = True;
2673 int i, len=PySequence_Length(obj4);
2674 for (i=0; i<len; i++) {
2675 PyObject* item = PySequence_GetItem(obj4, i);
2676 #if wxUSE_UNICODE
2677 PyObject* str = PyObject_Unicode(item);
2678 #else
2679 PyObject* str = PyObject_Str(item);
2680 #endif
2681 if (PyErr_Occurred()) SWIG_fail;
2682 arg5->Add(Py2wxString(str));
2683 Py_DECREF(item);
2684 Py_DECREF(str);
2685 }
2686 }
2687 }
2688 if (obj5) {
2689 arg6 = (long)SWIG_As_long(obj5);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 }
2692 if (obj6) {
2693 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2694 SWIG_POINTER_EXCEPTION | 0)) == -1)
2695 SWIG_fail;
2696 if (arg7 == NULL) {
2697 PyErr_SetString(PyExc_TypeError,"null reference");
2698 SWIG_fail;
2699 }
2700 }
2701 if (obj7) {
2702 {
2703 arg8 = wxString_in_helper(obj7);
2704 if (arg8 == NULL) SWIG_fail;
2705 temp8 = True;
2706 }
2707 }
2708 {
2709 if (!wxPyCheckForApp()) SWIG_fail;
2710 PyThreadState* __tstate = wxPyBeginAllowThreads();
2711 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2712
2713 wxPyEndAllowThreads(__tstate);
2714 if (PyErr_Occurred()) SWIG_fail;
2715 }
2716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2717 {
2718 if (temp5) delete arg5;
2719 }
2720 {
2721 if (temp8)
2722 delete arg8;
2723 }
2724 return resultobj;
2725 fail:
2726 {
2727 if (temp5) delete arg5;
2728 }
2729 {
2730 if (temp8)
2731 delete arg8;
2732 }
2733 return NULL;
2734 }
2735
2736
2737 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2738 PyObject *resultobj;
2739 wxChoice *result;
2740 char *kwnames[] = {
2741 NULL
2742 };
2743
2744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2745 {
2746 if (!wxPyCheckForApp()) SWIG_fail;
2747 PyThreadState* __tstate = wxPyBeginAllowThreads();
2748 result = (wxChoice *)new wxChoice();
2749
2750 wxPyEndAllowThreads(__tstate);
2751 if (PyErr_Occurred()) SWIG_fail;
2752 }
2753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2754 return resultobj;
2755 fail:
2756 return NULL;
2757 }
2758
2759
2760 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2761 PyObject *resultobj;
2762 wxChoice *arg1 = (wxChoice *) 0 ;
2763 wxWindow *arg2 = (wxWindow *) 0 ;
2764 int arg3 = (int) -1 ;
2765 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2766 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2767 wxSize const &arg5_defvalue = wxDefaultSize ;
2768 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2769 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2770 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2771 long arg7 = (long) 0 ;
2772 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2773 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2774 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2775 wxString *arg9 = (wxString *) &arg9_defvalue ;
2776 bool result;
2777 wxPoint temp4 ;
2778 wxSize temp5 ;
2779 bool temp6 = False ;
2780 bool temp9 = False ;
2781 PyObject * obj0 = 0 ;
2782 PyObject * obj1 = 0 ;
2783 PyObject * obj2 = 0 ;
2784 PyObject * obj3 = 0 ;
2785 PyObject * obj4 = 0 ;
2786 PyObject * obj5 = 0 ;
2787 PyObject * obj6 = 0 ;
2788 PyObject * obj7 = 0 ;
2789 PyObject * obj8 = 0 ;
2790 char *kwnames[] = {
2791 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2792 };
2793
2794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2799 if (obj2) {
2800 arg3 = (int)SWIG_As_int(obj2);
2801 if (PyErr_Occurred()) SWIG_fail;
2802 }
2803 if (obj3) {
2804 {
2805 arg4 = &temp4;
2806 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2807 }
2808 }
2809 if (obj4) {
2810 {
2811 arg5 = &temp5;
2812 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2813 }
2814 }
2815 if (obj5) {
2816 {
2817 if (! PySequence_Check(obj5)) {
2818 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2819 SWIG_fail;
2820 }
2821 arg6 = new wxArrayString;
2822 temp6 = True;
2823 int i, len=PySequence_Length(obj5);
2824 for (i=0; i<len; i++) {
2825 PyObject* item = PySequence_GetItem(obj5, i);
2826 #if wxUSE_UNICODE
2827 PyObject* str = PyObject_Unicode(item);
2828 #else
2829 PyObject* str = PyObject_Str(item);
2830 #endif
2831 if (PyErr_Occurred()) SWIG_fail;
2832 arg6->Add(Py2wxString(str));
2833 Py_DECREF(item);
2834 Py_DECREF(str);
2835 }
2836 }
2837 }
2838 if (obj6) {
2839 arg7 = (long)SWIG_As_long(obj6);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 if (obj7) {
2843 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2844 SWIG_POINTER_EXCEPTION | 0)) == -1)
2845 SWIG_fail;
2846 if (arg8 == NULL) {
2847 PyErr_SetString(PyExc_TypeError,"null reference");
2848 SWIG_fail;
2849 }
2850 }
2851 if (obj8) {
2852 {
2853 arg9 = wxString_in_helper(obj8);
2854 if (arg9 == NULL) SWIG_fail;
2855 temp9 = True;
2856 }
2857 }
2858 {
2859 PyThreadState* __tstate = wxPyBeginAllowThreads();
2860 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2861
2862 wxPyEndAllowThreads(__tstate);
2863 if (PyErr_Occurred()) SWIG_fail;
2864 }
2865 {
2866 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2867 }
2868 {
2869 if (temp6) delete arg6;
2870 }
2871 {
2872 if (temp9)
2873 delete arg9;
2874 }
2875 return resultobj;
2876 fail:
2877 {
2878 if (temp6) delete arg6;
2879 }
2880 {
2881 if (temp9)
2882 delete arg9;
2883 }
2884 return NULL;
2885 }
2886
2887
2888 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2889 PyObject *resultobj;
2890 wxChoice *arg1 = (wxChoice *) 0 ;
2891 int arg2 ;
2892 PyObject * obj0 = 0 ;
2893 PyObject * obj1 = 0 ;
2894 char *kwnames[] = {
2895 (char *) "self",(char *) "n", NULL
2896 };
2897
2898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2899 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2900 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2901 arg2 = (int)SWIG_As_int(obj1);
2902 if (PyErr_Occurred()) SWIG_fail;
2903 {
2904 PyThreadState* __tstate = wxPyBeginAllowThreads();
2905 (arg1)->SetSelection(arg2);
2906
2907 wxPyEndAllowThreads(__tstate);
2908 if (PyErr_Occurred()) SWIG_fail;
2909 }
2910 Py_INCREF(Py_None); resultobj = Py_None;
2911 return resultobj;
2912 fail:
2913 return NULL;
2914 }
2915
2916
2917 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2918 PyObject *resultobj;
2919 wxChoice *arg1 = (wxChoice *) 0 ;
2920 wxString *arg2 = 0 ;
2921 bool result;
2922 bool temp2 = False ;
2923 PyObject * obj0 = 0 ;
2924 PyObject * obj1 = 0 ;
2925 char *kwnames[] = {
2926 (char *) "self",(char *) "string", NULL
2927 };
2928
2929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2932 {
2933 arg2 = wxString_in_helper(obj1);
2934 if (arg2 == NULL) SWIG_fail;
2935 temp2 = True;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 {
2945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2946 }
2947 {
2948 if (temp2)
2949 delete arg2;
2950 }
2951 return resultobj;
2952 fail:
2953 {
2954 if (temp2)
2955 delete arg2;
2956 }
2957 return NULL;
2958 }
2959
2960
2961 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2962 PyObject *resultobj;
2963 wxChoice *arg1 = (wxChoice *) 0 ;
2964 int arg2 ;
2965 wxString *arg3 = 0 ;
2966 bool temp3 = False ;
2967 PyObject * obj0 = 0 ;
2968 PyObject * obj1 = 0 ;
2969 PyObject * obj2 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "self",(char *) "n",(char *) "string", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2977 arg2 = (int)SWIG_As_int(obj1);
2978 if (PyErr_Occurred()) SWIG_fail;
2979 {
2980 arg3 = wxString_in_helper(obj2);
2981 if (arg3 == NULL) SWIG_fail;
2982 temp3 = True;
2983 }
2984 {
2985 PyThreadState* __tstate = wxPyBeginAllowThreads();
2986 (arg1)->SetString(arg2,(wxString const &)*arg3);
2987
2988 wxPyEndAllowThreads(__tstate);
2989 if (PyErr_Occurred()) SWIG_fail;
2990 }
2991 Py_INCREF(Py_None); resultobj = Py_None;
2992 {
2993 if (temp3)
2994 delete arg3;
2995 }
2996 return resultobj;
2997 fail:
2998 {
2999 if (temp3)
3000 delete arg3;
3001 }
3002 return NULL;
3003 }
3004
3005
3006 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3007 PyObject *resultobj;
3008 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3009 wxVisualAttributes result;
3010 PyObject * obj0 = 0 ;
3011 char *kwnames[] = {
3012 (char *) "variant", NULL
3013 };
3014
3015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3016 if (obj0) {
3017 arg1 = (int)SWIG_As_int(obj0);
3018 if (PyErr_Occurred()) SWIG_fail;
3019 }
3020 {
3021 if (!wxPyCheckForApp()) SWIG_fail;
3022 PyThreadState* __tstate = wxPyBeginAllowThreads();
3023 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3024
3025 wxPyEndAllowThreads(__tstate);
3026 if (PyErr_Occurred()) SWIG_fail;
3027 }
3028 {
3029 wxVisualAttributes * resultptr;
3030 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3031 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3032 }
3033 return resultobj;
3034 fail:
3035 return NULL;
3036 }
3037
3038
3039 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3040 PyObject *obj;
3041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3042 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3043 Py_INCREF(obj);
3044 return Py_BuildValue((char *)"");
3045 }
3046 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3047 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3048 return 1;
3049 }
3050
3051
3052 static PyObject *_wrap_ComboBoxNameStr_get() {
3053 PyObject *pyobj;
3054
3055 {
3056 #if wxUSE_UNICODE
3057 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3058 #else
3059 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3060 #endif
3061 }
3062 return pyobj;
3063 }
3064
3065
3066 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3067 PyObject *resultobj;
3068 wxWindow *arg1 = (wxWindow *) 0 ;
3069 int arg2 = (int) -1 ;
3070 wxString const &arg3_defvalue = wxPyEmptyString ;
3071 wxString *arg3 = (wxString *) &arg3_defvalue ;
3072 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3073 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3074 wxSize const &arg5_defvalue = wxDefaultSize ;
3075 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3076 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3077 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3078 long arg7 = (long) 0 ;
3079 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3080 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3081 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3082 wxString *arg9 = (wxString *) &arg9_defvalue ;
3083 wxComboBox *result;
3084 bool temp3 = False ;
3085 wxPoint temp4 ;
3086 wxSize temp5 ;
3087 bool temp6 = False ;
3088 bool temp9 = False ;
3089 PyObject * obj0 = 0 ;
3090 PyObject * obj1 = 0 ;
3091 PyObject * obj2 = 0 ;
3092 PyObject * obj3 = 0 ;
3093 PyObject * obj4 = 0 ;
3094 PyObject * obj5 = 0 ;
3095 PyObject * obj6 = 0 ;
3096 PyObject * obj7 = 0 ;
3097 PyObject * obj8 = 0 ;
3098 char *kwnames[] = {
3099 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3100 };
3101
3102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3105 if (obj1) {
3106 arg2 = (int)SWIG_As_int(obj1);
3107 if (PyErr_Occurred()) SWIG_fail;
3108 }
3109 if (obj2) {
3110 {
3111 arg3 = wxString_in_helper(obj2);
3112 if (arg3 == NULL) SWIG_fail;
3113 temp3 = True;
3114 }
3115 }
3116 if (obj3) {
3117 {
3118 arg4 = &temp4;
3119 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3120 }
3121 }
3122 if (obj4) {
3123 {
3124 arg5 = &temp5;
3125 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3126 }
3127 }
3128 if (obj5) {
3129 {
3130 if (! PySequence_Check(obj5)) {
3131 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3132 SWIG_fail;
3133 }
3134 arg6 = new wxArrayString;
3135 temp6 = True;
3136 int i, len=PySequence_Length(obj5);
3137 for (i=0; i<len; i++) {
3138 PyObject* item = PySequence_GetItem(obj5, i);
3139 #if wxUSE_UNICODE
3140 PyObject* str = PyObject_Unicode(item);
3141 #else
3142 PyObject* str = PyObject_Str(item);
3143 #endif
3144 if (PyErr_Occurred()) SWIG_fail;
3145 arg6->Add(Py2wxString(str));
3146 Py_DECREF(item);
3147 Py_DECREF(str);
3148 }
3149 }
3150 }
3151 if (obj6) {
3152 arg7 = (long)SWIG_As_long(obj6);
3153 if (PyErr_Occurred()) SWIG_fail;
3154 }
3155 if (obj7) {
3156 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1)
3158 SWIG_fail;
3159 if (arg8 == NULL) {
3160 PyErr_SetString(PyExc_TypeError,"null reference");
3161 SWIG_fail;
3162 }
3163 }
3164 if (obj8) {
3165 {
3166 arg9 = wxString_in_helper(obj8);
3167 if (arg9 == NULL) SWIG_fail;
3168 temp9 = True;
3169 }
3170 }
3171 {
3172 if (!wxPyCheckForApp()) SWIG_fail;
3173 PyThreadState* __tstate = wxPyBeginAllowThreads();
3174 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);
3175
3176 wxPyEndAllowThreads(__tstate);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3180 {
3181 if (temp3)
3182 delete arg3;
3183 }
3184 {
3185 if (temp6) delete arg6;
3186 }
3187 {
3188 if (temp9)
3189 delete arg9;
3190 }
3191 return resultobj;
3192 fail:
3193 {
3194 if (temp3)
3195 delete arg3;
3196 }
3197 {
3198 if (temp6) delete arg6;
3199 }
3200 {
3201 if (temp9)
3202 delete arg9;
3203 }
3204 return NULL;
3205 }
3206
3207
3208 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3209 PyObject *resultobj;
3210 wxComboBox *result;
3211 char *kwnames[] = {
3212 NULL
3213 };
3214
3215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3216 {
3217 if (!wxPyCheckForApp()) SWIG_fail;
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = (wxComboBox *)new wxComboBox();
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3225 return resultobj;
3226 fail:
3227 return NULL;
3228 }
3229
3230
3231 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3232 PyObject *resultobj;
3233 wxComboBox *arg1 = (wxComboBox *) 0 ;
3234 wxWindow *arg2 = (wxWindow *) 0 ;
3235 int arg3 = (int) -1 ;
3236 wxString const &arg4_defvalue = wxPyEmptyString ;
3237 wxString *arg4 = (wxString *) &arg4_defvalue ;
3238 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3239 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3240 wxSize const &arg6_defvalue = wxDefaultSize ;
3241 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3242 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3243 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3244 long arg8 = (long) 0 ;
3245 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3246 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3247 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3248 wxString *arg10 = (wxString *) &arg10_defvalue ;
3249 bool result;
3250 bool temp4 = False ;
3251 wxPoint temp5 ;
3252 wxSize temp6 ;
3253 bool temp7 = False ;
3254 bool temp10 = False ;
3255 PyObject * obj0 = 0 ;
3256 PyObject * obj1 = 0 ;
3257 PyObject * obj2 = 0 ;
3258 PyObject * obj3 = 0 ;
3259 PyObject * obj4 = 0 ;
3260 PyObject * obj5 = 0 ;
3261 PyObject * obj6 = 0 ;
3262 PyObject * obj7 = 0 ;
3263 PyObject * obj8 = 0 ;
3264 PyObject * obj9 = 0 ;
3265 char *kwnames[] = {
3266 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3267 };
3268
3269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3272 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 if (obj2) {
3275 arg3 = (int)SWIG_As_int(obj2);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 if (obj3) {
3279 {
3280 arg4 = wxString_in_helper(obj3);
3281 if (arg4 == NULL) SWIG_fail;
3282 temp4 = True;
3283 }
3284 }
3285 if (obj4) {
3286 {
3287 arg5 = &temp5;
3288 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3289 }
3290 }
3291 if (obj5) {
3292 {
3293 arg6 = &temp6;
3294 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3295 }
3296 }
3297 if (obj6) {
3298 {
3299 if (! PySequence_Check(obj6)) {
3300 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3301 SWIG_fail;
3302 }
3303 arg7 = new wxArrayString;
3304 temp7 = True;
3305 int i, len=PySequence_Length(obj6);
3306 for (i=0; i<len; i++) {
3307 PyObject* item = PySequence_GetItem(obj6, i);
3308 #if wxUSE_UNICODE
3309 PyObject* str = PyObject_Unicode(item);
3310 #else
3311 PyObject* str = PyObject_Str(item);
3312 #endif
3313 if (PyErr_Occurred()) SWIG_fail;
3314 arg7->Add(Py2wxString(str));
3315 Py_DECREF(item);
3316 Py_DECREF(str);
3317 }
3318 }
3319 }
3320 if (obj7) {
3321 arg8 = (long)SWIG_As_long(obj7);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 if (obj8) {
3325 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3326 SWIG_POINTER_EXCEPTION | 0)) == -1)
3327 SWIG_fail;
3328 if (arg9 == NULL) {
3329 PyErr_SetString(PyExc_TypeError,"null reference");
3330 SWIG_fail;
3331 }
3332 }
3333 if (obj9) {
3334 {
3335 arg10 = wxString_in_helper(obj9);
3336 if (arg10 == NULL) SWIG_fail;
3337 temp10 = True;
3338 }
3339 }
3340 {
3341 PyThreadState* __tstate = wxPyBeginAllowThreads();
3342 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);
3343
3344 wxPyEndAllowThreads(__tstate);
3345 if (PyErr_Occurred()) SWIG_fail;
3346 }
3347 {
3348 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3349 }
3350 {
3351 if (temp4)
3352 delete arg4;
3353 }
3354 {
3355 if (temp7) delete arg7;
3356 }
3357 {
3358 if (temp10)
3359 delete arg10;
3360 }
3361 return resultobj;
3362 fail:
3363 {
3364 if (temp4)
3365 delete arg4;
3366 }
3367 {
3368 if (temp7) delete arg7;
3369 }
3370 {
3371 if (temp10)
3372 delete arg10;
3373 }
3374 return NULL;
3375 }
3376
3377
3378 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj;
3380 wxComboBox *arg1 = (wxComboBox *) 0 ;
3381 wxString result;
3382 PyObject * obj0 = 0 ;
3383 char *kwnames[] = {
3384 (char *) "self", NULL
3385 };
3386
3387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3390 {
3391 PyThreadState* __tstate = wxPyBeginAllowThreads();
3392 result = ((wxComboBox const *)arg1)->GetValue();
3393
3394 wxPyEndAllowThreads(__tstate);
3395 if (PyErr_Occurred()) SWIG_fail;
3396 }
3397 {
3398 #if wxUSE_UNICODE
3399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3400 #else
3401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3402 #endif
3403 }
3404 return resultobj;
3405 fail:
3406 return NULL;
3407 }
3408
3409
3410 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3411 PyObject *resultobj;
3412 wxComboBox *arg1 = (wxComboBox *) 0 ;
3413 wxString *arg2 = 0 ;
3414 bool temp2 = False ;
3415 PyObject * obj0 = 0 ;
3416 PyObject * obj1 = 0 ;
3417 char *kwnames[] = {
3418 (char *) "self",(char *) "value", NULL
3419 };
3420
3421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3424 {
3425 arg2 = wxString_in_helper(obj1);
3426 if (arg2 == NULL) SWIG_fail;
3427 temp2 = True;
3428 }
3429 {
3430 PyThreadState* __tstate = wxPyBeginAllowThreads();
3431 (arg1)->SetValue((wxString const &)*arg2);
3432
3433 wxPyEndAllowThreads(__tstate);
3434 if (PyErr_Occurred()) SWIG_fail;
3435 }
3436 Py_INCREF(Py_None); resultobj = Py_None;
3437 {
3438 if (temp2)
3439 delete arg2;
3440 }
3441 return resultobj;
3442 fail:
3443 {
3444 if (temp2)
3445 delete arg2;
3446 }
3447 return NULL;
3448 }
3449
3450
3451 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxComboBox *arg1 = (wxComboBox *) 0 ;
3454 PyObject * obj0 = 0 ;
3455 char *kwnames[] = {
3456 (char *) "self", NULL
3457 };
3458
3459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 (arg1)->Copy();
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 Py_INCREF(Py_None); resultobj = Py_None;
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxComboBox *arg1 = (wxComboBox *) 0 ;
3479 PyObject * obj0 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "self", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3487 {
3488 PyThreadState* __tstate = wxPyBeginAllowThreads();
3489 (arg1)->Cut();
3490
3491 wxPyEndAllowThreads(__tstate);
3492 if (PyErr_Occurred()) SWIG_fail;
3493 }
3494 Py_INCREF(Py_None); resultobj = Py_None;
3495 return resultobj;
3496 fail:
3497 return NULL;
3498 }
3499
3500
3501 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3502 PyObject *resultobj;
3503 wxComboBox *arg1 = (wxComboBox *) 0 ;
3504 PyObject * obj0 = 0 ;
3505 char *kwnames[] = {
3506 (char *) "self", NULL
3507 };
3508
3509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3512 {
3513 PyThreadState* __tstate = wxPyBeginAllowThreads();
3514 (arg1)->Paste();
3515
3516 wxPyEndAllowThreads(__tstate);
3517 if (PyErr_Occurred()) SWIG_fail;
3518 }
3519 Py_INCREF(Py_None); resultobj = Py_None;
3520 return resultobj;
3521 fail:
3522 return NULL;
3523 }
3524
3525
3526 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3527 PyObject *resultobj;
3528 wxComboBox *arg1 = (wxComboBox *) 0 ;
3529 long arg2 ;
3530 PyObject * obj0 = 0 ;
3531 PyObject * obj1 = 0 ;
3532 char *kwnames[] = {
3533 (char *) "self",(char *) "pos", NULL
3534 };
3535
3536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3539 arg2 = (long)SWIG_As_long(obj1);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 {
3542 PyThreadState* __tstate = wxPyBeginAllowThreads();
3543 (arg1)->SetInsertionPoint(arg2);
3544
3545 wxPyEndAllowThreads(__tstate);
3546 if (PyErr_Occurred()) SWIG_fail;
3547 }
3548 Py_INCREF(Py_None); resultobj = Py_None;
3549 return resultobj;
3550 fail:
3551 return NULL;
3552 }
3553
3554
3555 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3556 PyObject *resultobj;
3557 wxComboBox *arg1 = (wxComboBox *) 0 ;
3558 long result;
3559 PyObject * obj0 = 0 ;
3560 char *kwnames[] = {
3561 (char *) "self", NULL
3562 };
3563
3564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3567 {
3568 PyThreadState* __tstate = wxPyBeginAllowThreads();
3569 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3570
3571 wxPyEndAllowThreads(__tstate);
3572 if (PyErr_Occurred()) SWIG_fail;
3573 }
3574 resultobj = SWIG_From_long((long)result);
3575 return resultobj;
3576 fail:
3577 return NULL;
3578 }
3579
3580
3581 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3582 PyObject *resultobj;
3583 wxComboBox *arg1 = (wxComboBox *) 0 ;
3584 long result;
3585 PyObject * obj0 = 0 ;
3586 char *kwnames[] = {
3587 (char *) "self", NULL
3588 };
3589
3590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 resultobj = SWIG_From_long((long)result);
3601 return resultobj;
3602 fail:
3603 return NULL;
3604 }
3605
3606
3607 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3608 PyObject *resultobj;
3609 wxComboBox *arg1 = (wxComboBox *) 0 ;
3610 long arg2 ;
3611 long arg3 ;
3612 wxString *arg4 = 0 ;
3613 bool temp4 = False ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3625 arg2 = (long)SWIG_As_long(obj1);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 arg3 = (long)SWIG_As_long(obj2);
3628 if (PyErr_Occurred()) SWIG_fail;
3629 {
3630 arg4 = wxString_in_helper(obj3);
3631 if (arg4 == NULL) SWIG_fail;
3632 temp4 = True;
3633 }
3634 {
3635 PyThreadState* __tstate = wxPyBeginAllowThreads();
3636 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3637
3638 wxPyEndAllowThreads(__tstate);
3639 if (PyErr_Occurred()) SWIG_fail;
3640 }
3641 Py_INCREF(Py_None); resultobj = Py_None;
3642 {
3643 if (temp4)
3644 delete arg4;
3645 }
3646 return resultobj;
3647 fail:
3648 {
3649 if (temp4)
3650 delete arg4;
3651 }
3652 return NULL;
3653 }
3654
3655
3656 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj;
3658 wxComboBox *arg1 = (wxComboBox *) 0 ;
3659 int arg2 ;
3660 PyObject * obj0 = 0 ;
3661 PyObject * obj1 = 0 ;
3662 char *kwnames[] = {
3663 (char *) "self",(char *) "n", NULL
3664 };
3665
3666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3669 arg2 = (int)SWIG_As_int(obj1);
3670 if (PyErr_Occurred()) SWIG_fail;
3671 {
3672 PyThreadState* __tstate = wxPyBeginAllowThreads();
3673 (arg1)->SetSelection(arg2);
3674
3675 wxPyEndAllowThreads(__tstate);
3676 if (PyErr_Occurred()) SWIG_fail;
3677 }
3678 Py_INCREF(Py_None); resultobj = Py_None;
3679 return resultobj;
3680 fail:
3681 return NULL;
3682 }
3683
3684
3685 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3686 PyObject *resultobj;
3687 wxComboBox *arg1 = (wxComboBox *) 0 ;
3688 long arg2 ;
3689 long arg3 ;
3690 PyObject * obj0 = 0 ;
3691 PyObject * obj1 = 0 ;
3692 PyObject * obj2 = 0 ;
3693 char *kwnames[] = {
3694 (char *) "self",(char *) "from",(char *) "to", NULL
3695 };
3696
3697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3700 arg2 = (long)SWIG_As_long(obj1);
3701 if (PyErr_Occurred()) SWIG_fail;
3702 arg3 = (long)SWIG_As_long(obj2);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 {
3705 PyThreadState* __tstate = wxPyBeginAllowThreads();
3706 (arg1)->SetSelection(arg2,arg3);
3707
3708 wxPyEndAllowThreads(__tstate);
3709 if (PyErr_Occurred()) SWIG_fail;
3710 }
3711 Py_INCREF(Py_None); resultobj = Py_None;
3712 return resultobj;
3713 fail:
3714 return NULL;
3715 }
3716
3717
3718 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3719 PyObject *resultobj;
3720 wxComboBox *arg1 = (wxComboBox *) 0 ;
3721 wxString *arg2 = 0 ;
3722 bool result;
3723 bool temp2 = False ;
3724 PyObject * obj0 = 0 ;
3725 PyObject * obj1 = 0 ;
3726 char *kwnames[] = {
3727 (char *) "self",(char *) "string", NULL
3728 };
3729
3730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3733 {
3734 arg2 = wxString_in_helper(obj1);
3735 if (arg2 == NULL) SWIG_fail;
3736 temp2 = True;
3737 }
3738 {
3739 PyThreadState* __tstate = wxPyBeginAllowThreads();
3740 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3741
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 {
3746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3747 }
3748 {
3749 if (temp2)
3750 delete arg2;
3751 }
3752 return resultobj;
3753 fail:
3754 {
3755 if (temp2)
3756 delete arg2;
3757 }
3758 return NULL;
3759 }
3760
3761
3762 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3763 PyObject *resultobj;
3764 wxComboBox *arg1 = (wxComboBox *) 0 ;
3765 int arg2 ;
3766 wxString *arg3 = 0 ;
3767 bool temp3 = False ;
3768 PyObject * obj0 = 0 ;
3769 PyObject * obj1 = 0 ;
3770 PyObject * obj2 = 0 ;
3771 char *kwnames[] = {
3772 (char *) "self",(char *) "n",(char *) "string", NULL
3773 };
3774
3775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3778 arg2 = (int)SWIG_As_int(obj1);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 {
3781 arg3 = wxString_in_helper(obj2);
3782 if (arg3 == NULL) SWIG_fail;
3783 temp3 = True;
3784 }
3785 {
3786 PyThreadState* __tstate = wxPyBeginAllowThreads();
3787 (arg1)->SetString(arg2,(wxString const &)*arg3);
3788
3789 wxPyEndAllowThreads(__tstate);
3790 if (PyErr_Occurred()) SWIG_fail;
3791 }
3792 Py_INCREF(Py_None); resultobj = Py_None;
3793 {
3794 if (temp3)
3795 delete arg3;
3796 }
3797 return resultobj;
3798 fail:
3799 {
3800 if (temp3)
3801 delete arg3;
3802 }
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxComboBox *arg1 = (wxComboBox *) 0 ;
3810 bool arg2 ;
3811 PyObject * obj0 = 0 ;
3812 PyObject * obj1 = 0 ;
3813 char *kwnames[] = {
3814 (char *) "self",(char *) "editable", NULL
3815 };
3816
3817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3820 arg2 = (bool)SWIG_As_bool(obj1);
3821 if (PyErr_Occurred()) SWIG_fail;
3822 {
3823 PyThreadState* __tstate = wxPyBeginAllowThreads();
3824 (arg1)->SetEditable(arg2);
3825
3826 wxPyEndAllowThreads(__tstate);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 }
3829 Py_INCREF(Py_None); resultobj = Py_None;
3830 return resultobj;
3831 fail:
3832 return NULL;
3833 }
3834
3835
3836 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3837 PyObject *resultobj;
3838 wxComboBox *arg1 = (wxComboBox *) 0 ;
3839 PyObject * obj0 = 0 ;
3840 char *kwnames[] = {
3841 (char *) "self", NULL
3842 };
3843
3844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3847 {
3848 PyThreadState* __tstate = wxPyBeginAllowThreads();
3849 (arg1)->SetInsertionPointEnd();
3850
3851 wxPyEndAllowThreads(__tstate);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 }
3854 Py_INCREF(Py_None); resultobj = Py_None;
3855 return resultobj;
3856 fail:
3857 return NULL;
3858 }
3859
3860
3861 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3862 PyObject *resultobj;
3863 wxComboBox *arg1 = (wxComboBox *) 0 ;
3864 long arg2 ;
3865 long arg3 ;
3866 PyObject * obj0 = 0 ;
3867 PyObject * obj1 = 0 ;
3868 PyObject * obj2 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "self",(char *) "from",(char *) "to", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3876 arg2 = (long)SWIG_As_long(obj1);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 arg3 = (long)SWIG_As_long(obj2);
3879 if (PyErr_Occurred()) SWIG_fail;
3880 {
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 (arg1)->Remove(arg2,arg3);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 Py_INCREF(Py_None); resultobj = Py_None;
3888 return resultobj;
3889 fail:
3890 return NULL;
3891 }
3892
3893
3894 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3895 PyObject *resultobj;
3896 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3897 wxVisualAttributes result;
3898 PyObject * obj0 = 0 ;
3899 char *kwnames[] = {
3900 (char *) "variant", NULL
3901 };
3902
3903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3904 if (obj0) {
3905 arg1 = (int)SWIG_As_int(obj0);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 {
3909 if (!wxPyCheckForApp()) SWIG_fail;
3910 PyThreadState* __tstate = wxPyBeginAllowThreads();
3911 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3912
3913 wxPyEndAllowThreads(__tstate);
3914 if (PyErr_Occurred()) SWIG_fail;
3915 }
3916 {
3917 wxVisualAttributes * resultptr;
3918 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3919 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3920 }
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3928 PyObject *obj;
3929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3930 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3931 Py_INCREF(obj);
3932 return Py_BuildValue((char *)"");
3933 }
3934 static int _wrap_GaugeNameStr_set(PyObject *) {
3935 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3936 return 1;
3937 }
3938
3939
3940 static PyObject *_wrap_GaugeNameStr_get() {
3941 PyObject *pyobj;
3942
3943 {
3944 #if wxUSE_UNICODE
3945 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3946 #else
3947 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3948 #endif
3949 }
3950 return pyobj;
3951 }
3952
3953
3954 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxWindow *arg1 = (wxWindow *) 0 ;
3957 int arg2 = (int) -1 ;
3958 int arg3 = (int) 100 ;
3959 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3960 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3961 wxSize const &arg5_defvalue = wxDefaultSize ;
3962 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3963 long arg6 = (long) wxGA_HORIZONTAL ;
3964 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3965 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3966 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3967 wxString *arg8 = (wxString *) &arg8_defvalue ;
3968 wxGauge *result;
3969 wxPoint temp4 ;
3970 wxSize temp5 ;
3971 bool temp8 = False ;
3972 PyObject * obj0 = 0 ;
3973 PyObject * obj1 = 0 ;
3974 PyObject * obj2 = 0 ;
3975 PyObject * obj3 = 0 ;
3976 PyObject * obj4 = 0 ;
3977 PyObject * obj5 = 0 ;
3978 PyObject * obj6 = 0 ;
3979 PyObject * obj7 = 0 ;
3980 char *kwnames[] = {
3981 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3982 };
3983
3984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3987 if (obj1) {
3988 arg2 = (int)SWIG_As_int(obj1);
3989 if (PyErr_Occurred()) SWIG_fail;
3990 }
3991 if (obj2) {
3992 arg3 = (int)SWIG_As_int(obj2);
3993 if (PyErr_Occurred()) SWIG_fail;
3994 }
3995 if (obj3) {
3996 {
3997 arg4 = &temp4;
3998 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3999 }
4000 }
4001 if (obj4) {
4002 {
4003 arg5 = &temp5;
4004 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4005 }
4006 }
4007 if (obj5) {
4008 arg6 = (long)SWIG_As_long(obj5);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 if (obj6) {
4012 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4013 SWIG_POINTER_EXCEPTION | 0)) == -1)
4014 SWIG_fail;
4015 if (arg7 == NULL) {
4016 PyErr_SetString(PyExc_TypeError,"null reference");
4017 SWIG_fail;
4018 }
4019 }
4020 if (obj7) {
4021 {
4022 arg8 = wxString_in_helper(obj7);
4023 if (arg8 == NULL) SWIG_fail;
4024 temp8 = True;
4025 }
4026 }
4027 {
4028 if (!wxPyCheckForApp()) SWIG_fail;
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4036 {
4037 if (temp8)
4038 delete arg8;
4039 }
4040 return resultobj;
4041 fail:
4042 {
4043 if (temp8)
4044 delete arg8;
4045 }
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxGauge *result;
4053 char *kwnames[] = {
4054 NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4058 {
4059 if (!wxPyCheckForApp()) SWIG_fail;
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (wxGauge *)new wxGauge();
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 wxGauge *arg1 = (wxGauge *) 0 ;
4076 wxWindow *arg2 = (wxWindow *) 0 ;
4077 int arg3 = (int) -1 ;
4078 int arg4 = (int) 100 ;
4079 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4080 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4081 wxSize const &arg6_defvalue = wxDefaultSize ;
4082 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4083 long arg7 = (long) wxGA_HORIZONTAL ;
4084 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4085 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4086 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4087 wxString *arg9 = (wxString *) &arg9_defvalue ;
4088 bool result;
4089 wxPoint temp5 ;
4090 wxSize temp6 ;
4091 bool temp9 = False ;
4092 PyObject * obj0 = 0 ;
4093 PyObject * obj1 = 0 ;
4094 PyObject * obj2 = 0 ;
4095 PyObject * obj3 = 0 ;
4096 PyObject * obj4 = 0 ;
4097 PyObject * obj5 = 0 ;
4098 PyObject * obj6 = 0 ;
4099 PyObject * obj7 = 0 ;
4100 PyObject * obj8 = 0 ;
4101 char *kwnames[] = {
4102 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4103 };
4104
4105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4110 if (obj2) {
4111 arg3 = (int)SWIG_As_int(obj2);
4112 if (PyErr_Occurred()) SWIG_fail;
4113 }
4114 if (obj3) {
4115 arg4 = (int)SWIG_As_int(obj3);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 if (obj4) {
4119 {
4120 arg5 = &temp5;
4121 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4122 }
4123 }
4124 if (obj5) {
4125 {
4126 arg6 = &temp6;
4127 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4128 }
4129 }
4130 if (obj6) {
4131 arg7 = (long)SWIG_As_long(obj6);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 if (obj7) {
4135 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4136 SWIG_POINTER_EXCEPTION | 0)) == -1)
4137 SWIG_fail;
4138 if (arg8 == NULL) {
4139 PyErr_SetString(PyExc_TypeError,"null reference");
4140 SWIG_fail;
4141 }
4142 }
4143 if (obj8) {
4144 {
4145 arg9 = wxString_in_helper(obj8);
4146 if (arg9 == NULL) SWIG_fail;
4147 temp9 = True;
4148 }
4149 }
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4153
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4159 }
4160 {
4161 if (temp9)
4162 delete arg9;
4163 }
4164 return resultobj;
4165 fail:
4166 {
4167 if (temp9)
4168 delete arg9;
4169 }
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxGauge *arg1 = (wxGauge *) 0 ;
4177 int arg2 ;
4178 PyObject * obj0 = 0 ;
4179 PyObject * obj1 = 0 ;
4180 char *kwnames[] = {
4181 (char *) "self",(char *) "range", NULL
4182 };
4183
4184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4187 arg2 = (int)SWIG_As_int(obj1);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->SetRange(arg2);
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 Py_INCREF(Py_None); resultobj = Py_None;
4197 return resultobj;
4198 fail:
4199 return NULL;
4200 }
4201
4202
4203 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxGauge *arg1 = (wxGauge *) 0 ;
4206 int result;
4207 PyObject * obj0 = 0 ;
4208 char *kwnames[] = {
4209 (char *) "self", NULL
4210 };
4211
4212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4215 {
4216 PyThreadState* __tstate = wxPyBeginAllowThreads();
4217 result = (int)((wxGauge const *)arg1)->GetRange();
4218
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_From_int((int)result);
4223 return resultobj;
4224 fail:
4225 return NULL;
4226 }
4227
4228
4229 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj;
4231 wxGauge *arg1 = (wxGauge *) 0 ;
4232 int arg2 ;
4233 PyObject * obj0 = 0 ;
4234 PyObject * obj1 = 0 ;
4235 char *kwnames[] = {
4236 (char *) "self",(char *) "pos", NULL
4237 };
4238
4239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4242 arg2 = (int)SWIG_As_int(obj1);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 {
4245 PyThreadState* __tstate = wxPyBeginAllowThreads();
4246 (arg1)->SetValue(arg2);
4247
4248 wxPyEndAllowThreads(__tstate);
4249 if (PyErr_Occurred()) SWIG_fail;
4250 }
4251 Py_INCREF(Py_None); resultobj = Py_None;
4252 return resultobj;
4253 fail:
4254 return NULL;
4255 }
4256
4257
4258 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4259 PyObject *resultobj;
4260 wxGauge *arg1 = (wxGauge *) 0 ;
4261 int result;
4262 PyObject * obj0 = 0 ;
4263 char *kwnames[] = {
4264 (char *) "self", NULL
4265 };
4266
4267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4270 {
4271 PyThreadState* __tstate = wxPyBeginAllowThreads();
4272 result = (int)((wxGauge const *)arg1)->GetValue();
4273
4274 wxPyEndAllowThreads(__tstate);
4275 if (PyErr_Occurred()) SWIG_fail;
4276 }
4277 resultobj = SWIG_From_int((int)result);
4278 return resultobj;
4279 fail:
4280 return NULL;
4281 }
4282
4283
4284 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4285 PyObject *resultobj;
4286 wxGauge *arg1 = (wxGauge *) 0 ;
4287 bool result;
4288 PyObject * obj0 = 0 ;
4289 char *kwnames[] = {
4290 (char *) "self", NULL
4291 };
4292
4293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4296 {
4297 PyThreadState* __tstate = wxPyBeginAllowThreads();
4298 result = (bool)((wxGauge const *)arg1)->IsVertical();
4299
4300 wxPyEndAllowThreads(__tstate);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 {
4304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4305 }
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxGauge *arg1 = (wxGauge *) 0 ;
4315 int arg2 ;
4316 PyObject * obj0 = 0 ;
4317 PyObject * obj1 = 0 ;
4318 char *kwnames[] = {
4319 (char *) "self",(char *) "w", NULL
4320 };
4321
4322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4325 arg2 = (int)SWIG_As_int(obj1);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 {
4328 PyThreadState* __tstate = wxPyBeginAllowThreads();
4329 (arg1)->SetShadowWidth(arg2);
4330
4331 wxPyEndAllowThreads(__tstate);
4332 if (PyErr_Occurred()) SWIG_fail;
4333 }
4334 Py_INCREF(Py_None); resultobj = Py_None;
4335 return resultobj;
4336 fail:
4337 return NULL;
4338 }
4339
4340
4341 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4342 PyObject *resultobj;
4343 wxGauge *arg1 = (wxGauge *) 0 ;
4344 int result;
4345 PyObject * obj0 = 0 ;
4346 char *kwnames[] = {
4347 (char *) "self", NULL
4348 };
4349
4350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4353 {
4354 PyThreadState* __tstate = wxPyBeginAllowThreads();
4355 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4356
4357 wxPyEndAllowThreads(__tstate);
4358 if (PyErr_Occurred()) SWIG_fail;
4359 }
4360 resultobj = SWIG_From_int((int)result);
4361 return resultobj;
4362 fail:
4363 return NULL;
4364 }
4365
4366
4367 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4368 PyObject *resultobj;
4369 wxGauge *arg1 = (wxGauge *) 0 ;
4370 int arg2 ;
4371 PyObject * obj0 = 0 ;
4372 PyObject * obj1 = 0 ;
4373 char *kwnames[] = {
4374 (char *) "self",(char *) "w", NULL
4375 };
4376
4377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4380 arg2 = (int)SWIG_As_int(obj1);
4381 if (PyErr_Occurred()) SWIG_fail;
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 (arg1)->SetBezelFace(arg2);
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 Py_INCREF(Py_None); resultobj = Py_None;
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4397 PyObject *resultobj;
4398 wxGauge *arg1 = (wxGauge *) 0 ;
4399 int result;
4400 PyObject * obj0 = 0 ;
4401 char *kwnames[] = {
4402 (char *) "self", NULL
4403 };
4404
4405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4411
4412 wxPyEndAllowThreads(__tstate);
4413 if (PyErr_Occurred()) SWIG_fail;
4414 }
4415 resultobj = SWIG_From_int((int)result);
4416 return resultobj;
4417 fail:
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4425 wxVisualAttributes result;
4426 PyObject * obj0 = 0 ;
4427 char *kwnames[] = {
4428 (char *) "variant", NULL
4429 };
4430
4431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4432 if (obj0) {
4433 arg1 = (int)SWIG_As_int(obj0);
4434 if (PyErr_Occurred()) SWIG_fail;
4435 }
4436 {
4437 if (!wxPyCheckForApp()) SWIG_fail;
4438 PyThreadState* __tstate = wxPyBeginAllowThreads();
4439 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4440
4441 wxPyEndAllowThreads(__tstate);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 }
4444 {
4445 wxVisualAttributes * resultptr;
4446 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4447 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4448 }
4449 return resultobj;
4450 fail:
4451 return NULL;
4452 }
4453
4454
4455 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4456 PyObject *obj;
4457 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4458 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4459 Py_INCREF(obj);
4460 return Py_BuildValue((char *)"");
4461 }
4462 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4463 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4464 return 1;
4465 }
4466
4467
4468 static PyObject *_wrap_StaticBitmapNameStr_get() {
4469 PyObject *pyobj;
4470
4471 {
4472 #if wxUSE_UNICODE
4473 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4474 #else
4475 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4476 #endif
4477 }
4478 return pyobj;
4479 }
4480
4481
4482 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4483 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4484 return 1;
4485 }
4486
4487
4488 static PyObject *_wrap_StaticBoxNameStr_get() {
4489 PyObject *pyobj;
4490
4491 {
4492 #if wxUSE_UNICODE
4493 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4494 #else
4495 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4496 #endif
4497 }
4498 return pyobj;
4499 }
4500
4501
4502 static int _wrap_StaticTextNameStr_set(PyObject *) {
4503 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4504 return 1;
4505 }
4506
4507
4508 static PyObject *_wrap_StaticTextNameStr_get() {
4509 PyObject *pyobj;
4510
4511 {
4512 #if wxUSE_UNICODE
4513 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4514 #else
4515 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4516 #endif
4517 }
4518 return pyobj;
4519 }
4520
4521
4522 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4523 PyObject *resultobj;
4524 wxWindow *arg1 = (wxWindow *) 0 ;
4525 int arg2 = (int) -1 ;
4526 wxString const &arg3_defvalue = wxPyEmptyString ;
4527 wxString *arg3 = (wxString *) &arg3_defvalue ;
4528 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4529 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4530 wxSize const &arg5_defvalue = wxDefaultSize ;
4531 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4532 long arg6 = (long) 0 ;
4533 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4534 wxString *arg7 = (wxString *) &arg7_defvalue ;
4535 wxStaticBox *result;
4536 bool temp3 = False ;
4537 wxPoint temp4 ;
4538 wxSize temp5 ;
4539 bool temp7 = False ;
4540 PyObject * obj0 = 0 ;
4541 PyObject * obj1 = 0 ;
4542 PyObject * obj2 = 0 ;
4543 PyObject * obj3 = 0 ;
4544 PyObject * obj4 = 0 ;
4545 PyObject * obj5 = 0 ;
4546 PyObject * obj6 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4554 if (obj1) {
4555 arg2 = (int)SWIG_As_int(obj1);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 if (obj2) {
4559 {
4560 arg3 = wxString_in_helper(obj2);
4561 if (arg3 == NULL) SWIG_fail;
4562 temp3 = True;
4563 }
4564 }
4565 if (obj3) {
4566 {
4567 arg4 = &temp4;
4568 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4569 }
4570 }
4571 if (obj4) {
4572 {
4573 arg5 = &temp5;
4574 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4575 }
4576 }
4577 if (obj5) {
4578 arg6 = (long)SWIG_As_long(obj5);
4579 if (PyErr_Occurred()) SWIG_fail;
4580 }
4581 if (obj6) {
4582 {
4583 arg7 = wxString_in_helper(obj6);
4584 if (arg7 == NULL) SWIG_fail;
4585 temp7 = True;
4586 }
4587 }
4588 {
4589 if (!wxPyCheckForApp()) SWIG_fail;
4590 PyThreadState* __tstate = wxPyBeginAllowThreads();
4591 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4592
4593 wxPyEndAllowThreads(__tstate);
4594 if (PyErr_Occurred()) SWIG_fail;
4595 }
4596 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4597 {
4598 if (temp3)
4599 delete arg3;
4600 }
4601 {
4602 if (temp7)
4603 delete arg7;
4604 }
4605 return resultobj;
4606 fail:
4607 {
4608 if (temp3)
4609 delete arg3;
4610 }
4611 {
4612 if (temp7)
4613 delete arg7;
4614 }
4615 return NULL;
4616 }
4617
4618
4619 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4620 PyObject *resultobj;
4621 wxStaticBox *result;
4622 char *kwnames[] = {
4623 NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4627 {
4628 if (!wxPyCheckForApp()) SWIG_fail;
4629 PyThreadState* __tstate = wxPyBeginAllowThreads();
4630 result = (wxStaticBox *)new wxStaticBox();
4631
4632 wxPyEndAllowThreads(__tstate);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4636 return resultobj;
4637 fail:
4638 return NULL;
4639 }
4640
4641
4642 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4643 PyObject *resultobj;
4644 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4645 wxWindow *arg2 = (wxWindow *) 0 ;
4646 int arg3 = (int) -1 ;
4647 wxString const &arg4_defvalue = wxPyEmptyString ;
4648 wxString *arg4 = (wxString *) &arg4_defvalue ;
4649 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4650 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4651 wxSize const &arg6_defvalue = wxDefaultSize ;
4652 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4653 long arg7 = (long) 0 ;
4654 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4655 wxString *arg8 = (wxString *) &arg8_defvalue ;
4656 bool result;
4657 bool temp4 = False ;
4658 wxPoint temp5 ;
4659 wxSize temp6 ;
4660 bool temp8 = False ;
4661 PyObject * obj0 = 0 ;
4662 PyObject * obj1 = 0 ;
4663 PyObject * obj2 = 0 ;
4664 PyObject * obj3 = 0 ;
4665 PyObject * obj4 = 0 ;
4666 PyObject * obj5 = 0 ;
4667 PyObject * obj6 = 0 ;
4668 PyObject * obj7 = 0 ;
4669 char *kwnames[] = {
4670 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4671 };
4672
4673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4678 if (obj2) {
4679 arg3 = (int)SWIG_As_int(obj2);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 if (obj3) {
4683 {
4684 arg4 = wxString_in_helper(obj3);
4685 if (arg4 == NULL) SWIG_fail;
4686 temp4 = True;
4687 }
4688 }
4689 if (obj4) {
4690 {
4691 arg5 = &temp5;
4692 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4693 }
4694 }
4695 if (obj5) {
4696 {
4697 arg6 = &temp6;
4698 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4699 }
4700 }
4701 if (obj6) {
4702 arg7 = (long)SWIG_As_long(obj6);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 if (obj7) {
4706 {
4707 arg8 = wxString_in_helper(obj7);
4708 if (arg8 == NULL) SWIG_fail;
4709 temp8 = True;
4710 }
4711 }
4712 {
4713 PyThreadState* __tstate = wxPyBeginAllowThreads();
4714 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4715
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 {
4720 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4721 }
4722 {
4723 if (temp4)
4724 delete arg4;
4725 }
4726 {
4727 if (temp8)
4728 delete arg8;
4729 }
4730 return resultobj;
4731 fail:
4732 {
4733 if (temp4)
4734 delete arg4;
4735 }
4736 {
4737 if (temp8)
4738 delete arg8;
4739 }
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4747 wxVisualAttributes result;
4748 PyObject * obj0 = 0 ;
4749 char *kwnames[] = {
4750 (char *) "variant", NULL
4751 };
4752
4753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4754 if (obj0) {
4755 arg1 = (int)SWIG_As_int(obj0);
4756 if (PyErr_Occurred()) SWIG_fail;
4757 }
4758 {
4759 if (!wxPyCheckForApp()) SWIG_fail;
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4762
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 {
4767 wxVisualAttributes * resultptr;
4768 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4770 }
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4778 PyObject *obj;
4779 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4780 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4781 Py_INCREF(obj);
4782 return Py_BuildValue((char *)"");
4783 }
4784 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 wxWindow *arg1 = (wxWindow *) 0 ;
4787 int arg2 = (int) -1 ;
4788 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4789 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4790 wxSize const &arg4_defvalue = wxDefaultSize ;
4791 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4792 long arg5 = (long) wxLI_HORIZONTAL ;
4793 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4794 wxString *arg6 = (wxString *) &arg6_defvalue ;
4795 wxStaticLine *result;
4796 wxPoint temp3 ;
4797 wxSize temp4 ;
4798 bool temp6 = False ;
4799 PyObject * obj0 = 0 ;
4800 PyObject * obj1 = 0 ;
4801 PyObject * obj2 = 0 ;
4802 PyObject * obj3 = 0 ;
4803 PyObject * obj4 = 0 ;
4804 PyObject * obj5 = 0 ;
4805 char *kwnames[] = {
4806 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4807 };
4808
4809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4812 if (obj1) {
4813 arg2 = (int)SWIG_As_int(obj1);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 if (obj2) {
4817 {
4818 arg3 = &temp3;
4819 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4820 }
4821 }
4822 if (obj3) {
4823 {
4824 arg4 = &temp4;
4825 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4826 }
4827 }
4828 if (obj4) {
4829 arg5 = (long)SWIG_As_long(obj4);
4830 if (PyErr_Occurred()) SWIG_fail;
4831 }
4832 if (obj5) {
4833 {
4834 arg6 = wxString_in_helper(obj5);
4835 if (arg6 == NULL) SWIG_fail;
4836 temp6 = True;
4837 }
4838 }
4839 {
4840 if (!wxPyCheckForApp()) SWIG_fail;
4841 PyThreadState* __tstate = wxPyBeginAllowThreads();
4842 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4843
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4848 {
4849 if (temp6)
4850 delete arg6;
4851 }
4852 return resultobj;
4853 fail:
4854 {
4855 if (temp6)
4856 delete arg6;
4857 }
4858 return NULL;
4859 }
4860
4861
4862 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4863 PyObject *resultobj;
4864 wxStaticLine *result;
4865 char *kwnames[] = {
4866 NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4870 {
4871 if (!wxPyCheckForApp()) SWIG_fail;
4872 PyThreadState* __tstate = wxPyBeginAllowThreads();
4873 result = (wxStaticLine *)new wxStaticLine();
4874
4875 wxPyEndAllowThreads(__tstate);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 }
4878 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4879 return resultobj;
4880 fail:
4881 return NULL;
4882 }
4883
4884
4885 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4886 PyObject *resultobj;
4887 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4888 wxWindow *arg2 = (wxWindow *) 0 ;
4889 int arg3 = (int) -1 ;
4890 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4891 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4892 wxSize const &arg5_defvalue = wxDefaultSize ;
4893 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4894 long arg6 = (long) wxLI_HORIZONTAL ;
4895 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4896 wxString *arg7 = (wxString *) &arg7_defvalue ;
4897 bool result;
4898 wxPoint temp4 ;
4899 wxSize temp5 ;
4900 bool temp7 = False ;
4901 PyObject * obj0 = 0 ;
4902 PyObject * obj1 = 0 ;
4903 PyObject * obj2 = 0 ;
4904 PyObject * obj3 = 0 ;
4905 PyObject * obj4 = 0 ;
4906 PyObject * obj5 = 0 ;
4907 PyObject * obj6 = 0 ;
4908 char *kwnames[] = {
4909 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4910 };
4911
4912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4917 if (obj2) {
4918 arg3 = (int)SWIG_As_int(obj2);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 if (obj3) {
4922 {
4923 arg4 = &temp4;
4924 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4925 }
4926 }
4927 if (obj4) {
4928 {
4929 arg5 = &temp5;
4930 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4931 }
4932 }
4933 if (obj5) {
4934 arg6 = (long)SWIG_As_long(obj5);
4935 if (PyErr_Occurred()) SWIG_fail;
4936 }
4937 if (obj6) {
4938 {
4939 arg7 = wxString_in_helper(obj6);
4940 if (arg7 == NULL) SWIG_fail;
4941 temp7 = True;
4942 }
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4953 }
4954 {
4955 if (temp7)
4956 delete arg7;
4957 }
4958 return resultobj;
4959 fail:
4960 {
4961 if (temp7)
4962 delete arg7;
4963 }
4964 return NULL;
4965 }
4966
4967
4968 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4969 PyObject *resultobj;
4970 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4971 bool result;
4972 PyObject * obj0 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self", NULL
4975 };
4976
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 int result;
4999 char *kwnames[] = {
5000 NULL
5001 };
5002
5003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5004 {
5005 PyThreadState* __tstate = wxPyBeginAllowThreads();
5006 result = (int)wxStaticLine::GetDefaultSize();
5007
5008 wxPyEndAllowThreads(__tstate);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 }
5011 resultobj = SWIG_From_int((int)result);
5012 return resultobj;
5013 fail:
5014 return NULL;
5015 }
5016
5017
5018 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5019 PyObject *resultobj;
5020 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5021 wxVisualAttributes result;
5022 PyObject * obj0 = 0 ;
5023 char *kwnames[] = {
5024 (char *) "variant", NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5028 if (obj0) {
5029 arg1 = (int)SWIG_As_int(obj0);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 if (!wxPyCheckForApp()) SWIG_fail;
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5036
5037 wxPyEndAllowThreads(__tstate);
5038 if (PyErr_Occurred()) SWIG_fail;
5039 }
5040 {
5041 wxVisualAttributes * resultptr;
5042 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5043 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5044 }
5045 return resultobj;
5046 fail:
5047 return NULL;
5048 }
5049
5050
5051 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5052 PyObject *obj;
5053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5054 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5055 Py_INCREF(obj);
5056 return Py_BuildValue((char *)"");
5057 }
5058 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5059 PyObject *resultobj;
5060 wxWindow *arg1 = (wxWindow *) 0 ;
5061 int arg2 = (int) -1 ;
5062 wxString const &arg3_defvalue = wxPyEmptyString ;
5063 wxString *arg3 = (wxString *) &arg3_defvalue ;
5064 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5065 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5066 wxSize const &arg5_defvalue = wxDefaultSize ;
5067 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5068 long arg6 = (long) 0 ;
5069 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5070 wxString *arg7 = (wxString *) &arg7_defvalue ;
5071 wxStaticText *result;
5072 bool temp3 = False ;
5073 wxPoint temp4 ;
5074 wxSize temp5 ;
5075 bool temp7 = False ;
5076 PyObject * obj0 = 0 ;
5077 PyObject * obj1 = 0 ;
5078 PyObject * obj2 = 0 ;
5079 PyObject * obj3 = 0 ;
5080 PyObject * obj4 = 0 ;
5081 PyObject * obj5 = 0 ;
5082 PyObject * obj6 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 if (obj1) {
5091 arg2 = (int)SWIG_As_int(obj1);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 if (obj2) {
5095 {
5096 arg3 = wxString_in_helper(obj2);
5097 if (arg3 == NULL) SWIG_fail;
5098 temp3 = True;
5099 }
5100 }
5101 if (obj3) {
5102 {
5103 arg4 = &temp4;
5104 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5105 }
5106 }
5107 if (obj4) {
5108 {
5109 arg5 = &temp5;
5110 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5111 }
5112 }
5113 if (obj5) {
5114 arg6 = (long)SWIG_As_long(obj5);
5115 if (PyErr_Occurred()) SWIG_fail;
5116 }
5117 if (obj6) {
5118 {
5119 arg7 = wxString_in_helper(obj6);
5120 if (arg7 == NULL) SWIG_fail;
5121 temp7 = True;
5122 }
5123 }
5124 {
5125 if (!wxPyCheckForApp()) SWIG_fail;
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5128
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5133 {
5134 if (temp3)
5135 delete arg3;
5136 }
5137 {
5138 if (temp7)
5139 delete arg7;
5140 }
5141 return resultobj;
5142 fail:
5143 {
5144 if (temp3)
5145 delete arg3;
5146 }
5147 {
5148 if (temp7)
5149 delete arg7;
5150 }
5151 return NULL;
5152 }
5153
5154
5155 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5156 PyObject *resultobj;
5157 wxStaticText *result;
5158 char *kwnames[] = {
5159 NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5163 {
5164 if (!wxPyCheckForApp()) SWIG_fail;
5165 PyThreadState* __tstate = wxPyBeginAllowThreads();
5166 result = (wxStaticText *)new wxStaticText();
5167
5168 wxPyEndAllowThreads(__tstate);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 }
5171 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5172 return resultobj;
5173 fail:
5174 return NULL;
5175 }
5176
5177
5178 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5179 PyObject *resultobj;
5180 wxStaticText *arg1 = (wxStaticText *) 0 ;
5181 wxWindow *arg2 = (wxWindow *) 0 ;
5182 int arg3 = (int) -1 ;
5183 wxString const &arg4_defvalue = wxPyEmptyString ;
5184 wxString *arg4 = (wxString *) &arg4_defvalue ;
5185 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5186 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5187 wxSize const &arg6_defvalue = wxDefaultSize ;
5188 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5189 long arg7 = (long) 0 ;
5190 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5191 wxString *arg8 = (wxString *) &arg8_defvalue ;
5192 bool result;
5193 bool temp4 = False ;
5194 wxPoint temp5 ;
5195 wxSize temp6 ;
5196 bool temp8 = False ;
5197 PyObject * obj0 = 0 ;
5198 PyObject * obj1 = 0 ;
5199 PyObject * obj2 = 0 ;
5200 PyObject * obj3 = 0 ;
5201 PyObject * obj4 = 0 ;
5202 PyObject * obj5 = 0 ;
5203 PyObject * obj6 = 0 ;
5204 PyObject * obj7 = 0 ;
5205 char *kwnames[] = {
5206 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5207 };
5208
5209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5214 if (obj2) {
5215 arg3 = (int)SWIG_As_int(obj2);
5216 if (PyErr_Occurred()) SWIG_fail;
5217 }
5218 if (obj3) {
5219 {
5220 arg4 = wxString_in_helper(obj3);
5221 if (arg4 == NULL) SWIG_fail;
5222 temp4 = True;
5223 }
5224 }
5225 if (obj4) {
5226 {
5227 arg5 = &temp5;
5228 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5229 }
5230 }
5231 if (obj5) {
5232 {
5233 arg6 = &temp6;
5234 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5235 }
5236 }
5237 if (obj6) {
5238 arg7 = (long)SWIG_As_long(obj6);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 if (obj7) {
5242 {
5243 arg8 = wxString_in_helper(obj7);
5244 if (arg8 == NULL) SWIG_fail;
5245 temp8 = True;
5246 }
5247 }
5248 {
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 {
5256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5257 }
5258 {
5259 if (temp4)
5260 delete arg4;
5261 }
5262 {
5263 if (temp8)
5264 delete arg8;
5265 }
5266 return resultobj;
5267 fail:
5268 {
5269 if (temp4)
5270 delete arg4;
5271 }
5272 {
5273 if (temp8)
5274 delete arg8;
5275 }
5276 return NULL;
5277 }
5278
5279
5280 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5281 PyObject *resultobj;
5282 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5283 wxVisualAttributes result;
5284 PyObject * obj0 = 0 ;
5285 char *kwnames[] = {
5286 (char *) "variant", NULL
5287 };
5288
5289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5290 if (obj0) {
5291 arg1 = (int)SWIG_As_int(obj0);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 if (!wxPyCheckForApp()) SWIG_fail;
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 {
5303 wxVisualAttributes * resultptr;
5304 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5305 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5306 }
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5314 PyObject *obj;
5315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5316 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5317 Py_INCREF(obj);
5318 return Py_BuildValue((char *)"");
5319 }
5320 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxWindow *arg1 = (wxWindow *) 0 ;
5323 int arg2 = (int) -1 ;
5324 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5325 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5326 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5327 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5328 wxSize const &arg5_defvalue = wxDefaultSize ;
5329 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5330 long arg6 = (long) 0 ;
5331 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5332 wxString *arg7 = (wxString *) &arg7_defvalue ;
5333 wxStaticBitmap *result;
5334 wxPoint temp4 ;
5335 wxSize temp5 ;
5336 bool temp7 = False ;
5337 PyObject * obj0 = 0 ;
5338 PyObject * obj1 = 0 ;
5339 PyObject * obj2 = 0 ;
5340 PyObject * obj3 = 0 ;
5341 PyObject * obj4 = 0 ;
5342 PyObject * obj5 = 0 ;
5343 PyObject * obj6 = 0 ;
5344 char *kwnames[] = {
5345 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5346 };
5347
5348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5351 if (obj1) {
5352 arg2 = (int)SWIG_As_int(obj1);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 if (obj2) {
5356 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5357 SWIG_POINTER_EXCEPTION | 0)) == -1)
5358 SWIG_fail;
5359 if (arg3 == NULL) {
5360 PyErr_SetString(PyExc_TypeError,"null reference");
5361 SWIG_fail;
5362 }
5363 }
5364 if (obj3) {
5365 {
5366 arg4 = &temp4;
5367 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5368 }
5369 }
5370 if (obj4) {
5371 {
5372 arg5 = &temp5;
5373 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5374 }
5375 }
5376 if (obj5) {
5377 arg6 = (long)SWIG_As_long(obj5);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 if (obj6) {
5381 {
5382 arg7 = wxString_in_helper(obj6);
5383 if (arg7 == NULL) SWIG_fail;
5384 temp7 = True;
5385 }
5386 }
5387 {
5388 if (!wxPyCheckForApp()) SWIG_fail;
5389 PyThreadState* __tstate = wxPyBeginAllowThreads();
5390 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5391
5392 wxPyEndAllowThreads(__tstate);
5393 if (PyErr_Occurred()) SWIG_fail;
5394 }
5395 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5396 {
5397 if (temp7)
5398 delete arg7;
5399 }
5400 return resultobj;
5401 fail:
5402 {
5403 if (temp7)
5404 delete arg7;
5405 }
5406 return NULL;
5407 }
5408
5409
5410 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj;
5412 wxStaticBitmap *result;
5413 char *kwnames[] = {
5414 NULL
5415 };
5416
5417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5418 {
5419 if (!wxPyCheckForApp()) SWIG_fail;
5420 PyThreadState* __tstate = wxPyBeginAllowThreads();
5421 result = (wxStaticBitmap *)new wxStaticBitmap();
5422
5423 wxPyEndAllowThreads(__tstate);
5424 if (PyErr_Occurred()) SWIG_fail;
5425 }
5426 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj;
5435 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5436 wxWindow *arg2 = (wxWindow *) 0 ;
5437 int arg3 = (int) -1 ;
5438 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5439 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5440 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5441 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5442 wxSize const &arg6_defvalue = wxDefaultSize ;
5443 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5444 long arg7 = (long) 0 ;
5445 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5446 wxString *arg8 = (wxString *) &arg8_defvalue ;
5447 bool result;
5448 wxPoint temp5 ;
5449 wxSize temp6 ;
5450 bool temp8 = False ;
5451 PyObject * obj0 = 0 ;
5452 PyObject * obj1 = 0 ;
5453 PyObject * obj2 = 0 ;
5454 PyObject * obj3 = 0 ;
5455 PyObject * obj4 = 0 ;
5456 PyObject * obj5 = 0 ;
5457 PyObject * obj6 = 0 ;
5458 PyObject * obj7 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5468 if (obj2) {
5469 arg3 = (int)SWIG_As_int(obj2);
5470 if (PyErr_Occurred()) SWIG_fail;
5471 }
5472 if (obj3) {
5473 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5474 SWIG_POINTER_EXCEPTION | 0)) == -1)
5475 SWIG_fail;
5476 if (arg4 == NULL) {
5477 PyErr_SetString(PyExc_TypeError,"null reference");
5478 SWIG_fail;
5479 }
5480 }
5481 if (obj4) {
5482 {
5483 arg5 = &temp5;
5484 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5485 }
5486 }
5487 if (obj5) {
5488 {
5489 arg6 = &temp6;
5490 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5491 }
5492 }
5493 if (obj6) {
5494 arg7 = (long)SWIG_As_long(obj6);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 if (obj7) {
5498 {
5499 arg8 = wxString_in_helper(obj7);
5500 if (arg8 == NULL) SWIG_fail;
5501 temp8 = True;
5502 }
5503 }
5504 {
5505 PyThreadState* __tstate = wxPyBeginAllowThreads();
5506 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5507
5508 wxPyEndAllowThreads(__tstate);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5513 }
5514 {
5515 if (temp8)
5516 delete arg8;
5517 }
5518 return resultobj;
5519 fail:
5520 {
5521 if (temp8)
5522 delete arg8;
5523 }
5524 return NULL;
5525 }
5526
5527
5528 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5529 PyObject *resultobj;
5530 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5531 wxBitmap result;
5532 PyObject * obj0 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 {
5541 PyThreadState* __tstate = wxPyBeginAllowThreads();
5542 result = (arg1)->GetBitmap();
5543
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 {
5548 wxBitmap * resultptr;
5549 resultptr = new wxBitmap((wxBitmap &) result);
5550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5551 }
5552 return resultobj;
5553 fail:
5554 return NULL;
5555 }
5556
5557
5558 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5559 PyObject *resultobj;
5560 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5561 wxBitmap *arg2 = 0 ;
5562 PyObject * obj0 = 0 ;
5563 PyObject * obj1 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self",(char *) "bitmap", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5571 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5572 SWIG_POINTER_EXCEPTION | 0)) == -1)
5573 SWIG_fail;
5574 if (arg2 == NULL) {
5575 PyErr_SetString(PyExc_TypeError,"null reference");
5576 SWIG_fail;
5577 }
5578 {
5579 PyThreadState* __tstate = wxPyBeginAllowThreads();
5580 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5581
5582 wxPyEndAllowThreads(__tstate);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 }
5585 Py_INCREF(Py_None); resultobj = Py_None;
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5595 wxIcon *arg2 = 0 ;
5596 PyObject * obj0 = 0 ;
5597 PyObject * obj1 = 0 ;
5598 char *kwnames[] = {
5599 (char *) "self",(char *) "icon", NULL
5600 };
5601
5602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5606 SWIG_POINTER_EXCEPTION | 0)) == -1)
5607 SWIG_fail;
5608 if (arg2 == NULL) {
5609 PyErr_SetString(PyExc_TypeError,"null reference");
5610 SWIG_fail;
5611 }
5612 {
5613 PyThreadState* __tstate = wxPyBeginAllowThreads();
5614 (arg1)->SetIcon((wxIcon const &)*arg2);
5615
5616 wxPyEndAllowThreads(__tstate);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 }
5619 Py_INCREF(Py_None); resultobj = Py_None;
5620 return resultobj;
5621 fail:
5622 return NULL;
5623 }
5624
5625
5626 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5627 PyObject *resultobj;
5628 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5629 wxVisualAttributes result;
5630 PyObject * obj0 = 0 ;
5631 char *kwnames[] = {
5632 (char *) "variant", NULL
5633 };
5634
5635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5636 if (obj0) {
5637 arg1 = (int)SWIG_As_int(obj0);
5638 if (PyErr_Occurred()) SWIG_fail;
5639 }
5640 {
5641 if (!wxPyCheckForApp()) SWIG_fail;
5642 PyThreadState* __tstate = wxPyBeginAllowThreads();
5643 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5644
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 {
5649 wxVisualAttributes * resultptr;
5650 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5651 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5652 }
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5660 PyObject *obj;
5661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5662 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5663 Py_INCREF(obj);
5664 return Py_BuildValue((char *)"");
5665 }
5666 static int _wrap_ListBoxNameStr_set(PyObject *) {
5667 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5668 return 1;
5669 }
5670
5671
5672 static PyObject *_wrap_ListBoxNameStr_get() {
5673 PyObject *pyobj;
5674
5675 {
5676 #if wxUSE_UNICODE
5677 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5678 #else
5679 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5680 #endif
5681 }
5682 return pyobj;
5683 }
5684
5685
5686 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5687 PyObject *resultobj;
5688 wxWindow *arg1 = (wxWindow *) 0 ;
5689 int arg2 = (int) -1 ;
5690 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5691 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5692 wxSize const &arg4_defvalue = wxDefaultSize ;
5693 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5694 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5695 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5696 long arg6 = (long) 0 ;
5697 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5698 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5699 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5700 wxString *arg8 = (wxString *) &arg8_defvalue ;
5701 wxListBox *result;
5702 wxPoint temp3 ;
5703 wxSize temp4 ;
5704 bool temp5 = False ;
5705 bool temp8 = False ;
5706 PyObject * obj0 = 0 ;
5707 PyObject * obj1 = 0 ;
5708 PyObject * obj2 = 0 ;
5709 PyObject * obj3 = 0 ;
5710 PyObject * obj4 = 0 ;
5711 PyObject * obj5 = 0 ;
5712 PyObject * obj6 = 0 ;
5713 PyObject * obj7 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5721 if (obj1) {
5722 arg2 = (int)SWIG_As_int(obj1);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 if (obj2) {
5726 {
5727 arg3 = &temp3;
5728 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5729 }
5730 }
5731 if (obj3) {
5732 {
5733 arg4 = &temp4;
5734 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5735 }
5736 }
5737 if (obj4) {
5738 {
5739 if (! PySequence_Check(obj4)) {
5740 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5741 SWIG_fail;
5742 }
5743 arg5 = new wxArrayString;
5744 temp5 = True;
5745 int i, len=PySequence_Length(obj4);
5746 for (i=0; i<len; i++) {
5747 PyObject* item = PySequence_GetItem(obj4, i);
5748 #if wxUSE_UNICODE
5749 PyObject* str = PyObject_Unicode(item);
5750 #else
5751 PyObject* str = PyObject_Str(item);
5752 #endif
5753 if (PyErr_Occurred()) SWIG_fail;
5754 arg5->Add(Py2wxString(str));
5755 Py_DECREF(item);
5756 Py_DECREF(str);
5757 }
5758 }
5759 }
5760 if (obj5) {
5761 arg6 = (long)SWIG_As_long(obj5);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 if (obj6) {
5765 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5766 SWIG_POINTER_EXCEPTION | 0)) == -1)
5767 SWIG_fail;
5768 if (arg7 == NULL) {
5769 PyErr_SetString(PyExc_TypeError,"null reference");
5770 SWIG_fail;
5771 }
5772 }
5773 if (obj7) {
5774 {
5775 arg8 = wxString_in_helper(obj7);
5776 if (arg8 == NULL) SWIG_fail;
5777 temp8 = True;
5778 }
5779 }
5780 {
5781 if (!wxPyCheckForApp()) SWIG_fail;
5782 PyThreadState* __tstate = wxPyBeginAllowThreads();
5783 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5784
5785 wxPyEndAllowThreads(__tstate);
5786 if (PyErr_Occurred()) SWIG_fail;
5787 }
5788 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5789 {
5790 if (temp5) delete arg5;
5791 }
5792 {
5793 if (temp8)
5794 delete arg8;
5795 }
5796 return resultobj;
5797 fail:
5798 {
5799 if (temp5) delete arg5;
5800 }
5801 {
5802 if (temp8)
5803 delete arg8;
5804 }
5805 return NULL;
5806 }
5807
5808
5809 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5810 PyObject *resultobj;
5811 wxListBox *result;
5812 char *kwnames[] = {
5813 NULL
5814 };
5815
5816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5817 {
5818 if (!wxPyCheckForApp()) SWIG_fail;
5819 PyThreadState* __tstate = wxPyBeginAllowThreads();
5820 result = (wxListBox *)new wxListBox();
5821
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj;
5834 wxListBox *arg1 = (wxListBox *) 0 ;
5835 wxWindow *arg2 = (wxWindow *) 0 ;
5836 int arg3 = (int) -1 ;
5837 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5838 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5839 wxSize const &arg5_defvalue = wxDefaultSize ;
5840 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5841 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5842 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5843 long arg7 = (long) 0 ;
5844 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5845 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5846 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5847 wxString *arg9 = (wxString *) &arg9_defvalue ;
5848 bool result;
5849 wxPoint temp4 ;
5850 wxSize temp5 ;
5851 bool temp6 = False ;
5852 bool temp9 = False ;
5853 PyObject * obj0 = 0 ;
5854 PyObject * obj1 = 0 ;
5855 PyObject * obj2 = 0 ;
5856 PyObject * obj3 = 0 ;
5857 PyObject * obj4 = 0 ;
5858 PyObject * obj5 = 0 ;
5859 PyObject * obj6 = 0 ;
5860 PyObject * obj7 = 0 ;
5861 PyObject * obj8 = 0 ;
5862 char *kwnames[] = {
5863 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5864 };
5865
5866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5870 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5871 if (obj2) {
5872 arg3 = (int)SWIG_As_int(obj2);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 }
5875 if (obj3) {
5876 {
5877 arg4 = &temp4;
5878 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5879 }
5880 }
5881 if (obj4) {
5882 {
5883 arg5 = &temp5;
5884 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5885 }
5886 }
5887 if (obj5) {
5888 {
5889 if (! PySequence_Check(obj5)) {
5890 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5891 SWIG_fail;
5892 }
5893 arg6 = new wxArrayString;
5894 temp6 = True;
5895 int i, len=PySequence_Length(obj5);
5896 for (i=0; i<len; i++) {
5897 PyObject* item = PySequence_GetItem(obj5, i);
5898 #if wxUSE_UNICODE
5899 PyObject* str = PyObject_Unicode(item);
5900 #else
5901 PyObject* str = PyObject_Str(item);
5902 #endif
5903 if (PyErr_Occurred()) SWIG_fail;
5904 arg6->Add(Py2wxString(str));
5905 Py_DECREF(item);
5906 Py_DECREF(str);
5907 }
5908 }
5909 }
5910 if (obj6) {
5911 arg7 = (long)SWIG_As_long(obj6);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 if (obj7) {
5915 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1)
5917 SWIG_fail;
5918 if (arg8 == NULL) {
5919 PyErr_SetString(PyExc_TypeError,"null reference");
5920 SWIG_fail;
5921 }
5922 }
5923 if (obj8) {
5924 {
5925 arg9 = wxString_in_helper(obj8);
5926 if (arg9 == NULL) SWIG_fail;
5927 temp9 = True;
5928 }
5929 }
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 {
5941 if (temp6) delete arg6;
5942 }
5943 {
5944 if (temp9)
5945 delete arg9;
5946 }
5947 return resultobj;
5948 fail:
5949 {
5950 if (temp6) delete arg6;
5951 }
5952 {
5953 if (temp9)
5954 delete arg9;
5955 }
5956 return NULL;
5957 }
5958
5959
5960 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj;
5962 wxListBox *arg1 = (wxListBox *) 0 ;
5963 wxString *arg2 = 0 ;
5964 int arg3 ;
5965 PyObject *arg4 = (PyObject *) NULL ;
5966 bool temp2 = False ;
5967 PyObject * obj0 = 0 ;
5968 PyObject * obj1 = 0 ;
5969 PyObject * obj2 = 0 ;
5970 PyObject * obj3 = 0 ;
5971 char *kwnames[] = {
5972 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5973 };
5974
5975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5978 {
5979 arg2 = wxString_in_helper(obj1);
5980 if (arg2 == NULL) SWIG_fail;
5981 temp2 = True;
5982 }
5983 arg3 = (int)SWIG_As_int(obj2);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 if (obj3) {
5986 arg4 = obj3;
5987 }
5988 {
5989 PyThreadState* __tstate = wxPyBeginAllowThreads();
5990 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5991
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 Py_INCREF(Py_None); resultobj = Py_None;
5996 {
5997 if (temp2)
5998 delete arg2;
5999 }
6000 return resultobj;
6001 fail:
6002 {
6003 if (temp2)
6004 delete arg2;
6005 }
6006 return NULL;
6007 }
6008
6009
6010 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6011 PyObject *resultobj;
6012 wxListBox *arg1 = (wxListBox *) 0 ;
6013 wxArrayString *arg2 = 0 ;
6014 int arg3 ;
6015 bool temp2 = False ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 PyObject * obj2 = 0 ;
6019 char *kwnames[] = {
6020 (char *) "self",(char *) "items",(char *) "pos", NULL
6021 };
6022
6023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6026 {
6027 if (! PySequence_Check(obj1)) {
6028 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6029 SWIG_fail;
6030 }
6031 arg2 = new wxArrayString;
6032 temp2 = True;
6033 int i, len=PySequence_Length(obj1);
6034 for (i=0; i<len; i++) {
6035 PyObject* item = PySequence_GetItem(obj1, i);
6036 #if wxUSE_UNICODE
6037 PyObject* str = PyObject_Unicode(item);
6038 #else
6039 PyObject* str = PyObject_Str(item);
6040 #endif
6041 if (PyErr_Occurred()) SWIG_fail;
6042 arg2->Add(Py2wxString(str));
6043 Py_DECREF(item);
6044 Py_DECREF(str);
6045 }
6046 }
6047 arg3 = (int)SWIG_As_int(obj2);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 {
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6052
6053 wxPyEndAllowThreads(__tstate);
6054 if (PyErr_Occurred()) SWIG_fail;
6055 }
6056 Py_INCREF(Py_None); resultobj = Py_None;
6057 {
6058 if (temp2) delete arg2;
6059 }
6060 return resultobj;
6061 fail:
6062 {
6063 if (temp2) delete arg2;
6064 }
6065 return NULL;
6066 }
6067
6068
6069 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6070 PyObject *resultobj;
6071 wxListBox *arg1 = (wxListBox *) 0 ;
6072 wxArrayString *arg2 = 0 ;
6073 bool temp2 = False ;
6074 PyObject * obj0 = 0 ;
6075 PyObject * obj1 = 0 ;
6076 char *kwnames[] = {
6077 (char *) "self",(char *) "items", NULL
6078 };
6079
6080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6083 {
6084 if (! PySequence_Check(obj1)) {
6085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6086 SWIG_fail;
6087 }
6088 arg2 = new wxArrayString;
6089 temp2 = True;
6090 int i, len=PySequence_Length(obj1);
6091 for (i=0; i<len; i++) {
6092 PyObject* item = PySequence_GetItem(obj1, i);
6093 #if wxUSE_UNICODE
6094 PyObject* str = PyObject_Unicode(item);
6095 #else
6096 PyObject* str = PyObject_Str(item);
6097 #endif
6098 if (PyErr_Occurred()) SWIG_fail;
6099 arg2->Add(Py2wxString(str));
6100 Py_DECREF(item);
6101 Py_DECREF(str);
6102 }
6103 }
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 (arg1)->Set((wxArrayString const &)*arg2);
6107
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 Py_INCREF(Py_None); resultobj = Py_None;
6112 {
6113 if (temp2) delete arg2;
6114 }
6115 return resultobj;
6116 fail:
6117 {
6118 if (temp2) delete arg2;
6119 }
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxListBox *arg1 = (wxListBox *) 0 ;
6127 int arg2 ;
6128 bool result;
6129 PyObject * obj0 = 0 ;
6130 PyObject * obj1 = 0 ;
6131 char *kwnames[] = {
6132 (char *) "self",(char *) "n", NULL
6133 };
6134
6135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6138 arg2 = (int)SWIG_As_int(obj1);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 {
6148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6149 }
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj;
6158 wxListBox *arg1 = (wxListBox *) 0 ;
6159 int arg2 ;
6160 bool arg3 = (bool) True ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 PyObject * obj2 = 0 ;
6164 char *kwnames[] = {
6165 (char *) "self",(char *) "n",(char *) "select", NULL
6166 };
6167
6168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6171 arg2 = (int)SWIG_As_int(obj1);
6172 if (PyErr_Occurred()) SWIG_fail;
6173 if (obj2) {
6174 arg3 = (bool)SWIG_As_bool(obj2);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 }
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 (arg1)->SetSelection(arg2,arg3);
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 Py_INCREF(Py_None); resultobj = Py_None;
6185 return resultobj;
6186 fail:
6187 return NULL;
6188 }
6189
6190
6191 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6192 PyObject *resultobj;
6193 wxListBox *arg1 = (wxListBox *) 0 ;
6194 int arg2 ;
6195 PyObject * obj0 = 0 ;
6196 PyObject * obj1 = 0 ;
6197 char *kwnames[] = {
6198 (char *) "self",(char *) "n", NULL
6199 };
6200
6201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6204 arg2 = (int)SWIG_As_int(obj1);
6205 if (PyErr_Occurred()) SWIG_fail;
6206 {
6207 PyThreadState* __tstate = wxPyBeginAllowThreads();
6208 (arg1)->Select(arg2);
6209
6210 wxPyEndAllowThreads(__tstate);
6211 if (PyErr_Occurred()) SWIG_fail;
6212 }
6213 Py_INCREF(Py_None); resultobj = Py_None;
6214 return resultobj;
6215 fail:
6216 return NULL;
6217 }
6218
6219
6220 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6221 PyObject *resultobj;
6222 wxListBox *arg1 = (wxListBox *) 0 ;
6223 int arg2 ;
6224 PyObject * obj0 = 0 ;
6225 PyObject * obj1 = 0 ;
6226 char *kwnames[] = {
6227 (char *) "self",(char *) "n", NULL
6228 };
6229
6230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6233 arg2 = (int)SWIG_As_int(obj1);
6234 if (PyErr_Occurred()) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 (arg1)->Deselect(arg2);
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 Py_INCREF(Py_None); resultobj = Py_None;
6243 return resultobj;
6244 fail:
6245 return NULL;
6246 }
6247
6248
6249 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj;
6251 wxListBox *arg1 = (wxListBox *) 0 ;
6252 int arg2 = (int) -1 ;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj1 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "itemToLeaveSelected", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6262 if (obj1) {
6263 arg2 = (int)SWIG_As_int(obj1);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 {
6267 PyThreadState* __tstate = wxPyBeginAllowThreads();
6268 (arg1)->DeselectAll(arg2);
6269
6270 wxPyEndAllowThreads(__tstate);
6271 if (PyErr_Occurred()) SWIG_fail;
6272 }
6273 Py_INCREF(Py_None); resultobj = Py_None;
6274 return resultobj;
6275 fail:
6276 return NULL;
6277 }
6278
6279
6280 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6281 PyObject *resultobj;
6282 wxListBox *arg1 = (wxListBox *) 0 ;
6283 wxString *arg2 = 0 ;
6284 bool arg3 = (bool) True ;
6285 bool result;
6286 bool temp2 = False ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 PyObject * obj2 = 0 ;
6290 char *kwnames[] = {
6291 (char *) "self",(char *) "s",(char *) "select", NULL
6292 };
6293
6294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6297 {
6298 arg2 = wxString_in_helper(obj1);
6299 if (arg2 == NULL) SWIG_fail;
6300 temp2 = True;
6301 }
6302 if (obj2) {
6303 arg3 = (bool)SWIG_As_bool(obj2);
6304 if (PyErr_Occurred()) SWIG_fail;
6305 }
6306 {
6307 PyThreadState* __tstate = wxPyBeginAllowThreads();
6308 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6309
6310 wxPyEndAllowThreads(__tstate);
6311 if (PyErr_Occurred()) SWIG_fail;
6312 }
6313 {
6314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6315 }
6316 {
6317 if (temp2)
6318 delete arg2;
6319 }
6320 return resultobj;
6321 fail:
6322 {
6323 if (temp2)
6324 delete arg2;
6325 }
6326 return NULL;
6327 }
6328
6329
6330 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6331 PyObject *resultobj;
6332 wxListBox *arg1 = (wxListBox *) 0 ;
6333 PyObject *result;
6334 PyObject * obj0 = 0 ;
6335 char *kwnames[] = {
6336 (char *) "self", NULL
6337 };
6338
6339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 result = (PyObject *)wxListBox_GetSelections(arg1);
6345
6346 wxPyEndAllowThreads(__tstate);
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = result;
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6357 PyObject *resultobj;
6358 wxListBox *arg1 = (wxListBox *) 0 ;
6359 int arg2 ;
6360 PyObject * obj0 = 0 ;
6361 PyObject * obj1 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self",(char *) "n", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 arg2 = (int)SWIG_As_int(obj1);
6370 if (PyErr_Occurred()) SWIG_fail;
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->SetFirstItem(arg2);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxListBox *arg1 = (wxListBox *) 0 ;
6388 wxString *arg2 = 0 ;
6389 bool temp2 = False ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self",(char *) "s", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 arg2 = wxString_in_helper(obj1);
6401 if (arg2 == NULL) SWIG_fail;
6402 temp2 = True;
6403 }
6404 {
6405 PyThreadState* __tstate = wxPyBeginAllowThreads();
6406 (arg1)->SetFirstItem((wxString const &)*arg2);
6407
6408 wxPyEndAllowThreads(__tstate);
6409 if (PyErr_Occurred()) SWIG_fail;
6410 }
6411 Py_INCREF(Py_None); resultobj = Py_None;
6412 {
6413 if (temp2)
6414 delete arg2;
6415 }
6416 return resultobj;
6417 fail:
6418 {
6419 if (temp2)
6420 delete arg2;
6421 }
6422 return NULL;
6423 }
6424
6425
6426 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj;
6428 wxListBox *arg1 = (wxListBox *) 0 ;
6429 int arg2 ;
6430 PyObject * obj0 = 0 ;
6431 PyObject * obj1 = 0 ;
6432 char *kwnames[] = {
6433 (char *) "self",(char *) "n", NULL
6434 };
6435
6436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6439 arg2 = (int)SWIG_As_int(obj1);
6440 if (PyErr_Occurred()) SWIG_fail;
6441 {
6442 PyThreadState* __tstate = wxPyBeginAllowThreads();
6443 (arg1)->EnsureVisible(arg2);
6444
6445 wxPyEndAllowThreads(__tstate);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 Py_INCREF(Py_None); resultobj = Py_None;
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj;
6457 wxListBox *arg1 = (wxListBox *) 0 ;
6458 wxString *arg2 = 0 ;
6459 bool temp2 = False ;
6460 PyObject * obj0 = 0 ;
6461 PyObject * obj1 = 0 ;
6462 char *kwnames[] = {
6463 (char *) "self",(char *) "s", NULL
6464 };
6465
6466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6469 {
6470 arg2 = wxString_in_helper(obj1);
6471 if (arg2 == NULL) SWIG_fail;
6472 temp2 = True;
6473 }
6474 {
6475 PyThreadState* __tstate = wxPyBeginAllowThreads();
6476 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6477
6478 wxPyEndAllowThreads(__tstate);
6479 if (PyErr_Occurred()) SWIG_fail;
6480 }
6481 Py_INCREF(Py_None); resultobj = Py_None;
6482 {
6483 if (temp2)
6484 delete arg2;
6485 }
6486 return resultobj;
6487 fail:
6488 {
6489 if (temp2)
6490 delete arg2;
6491 }
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxListBox *arg1 = (wxListBox *) 0 ;
6499 bool result;
6500 PyObject * obj0 = 0 ;
6501 char *kwnames[] = {
6502 (char *) "self", NULL
6503 };
6504
6505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (bool)((wxListBox const *)arg1)->IsSorted();
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 {
6516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6517 }
6518 return resultobj;
6519 fail:
6520 return NULL;
6521 }
6522
6523
6524 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6525 PyObject *resultobj;
6526 wxListBox *arg1 = (wxListBox *) 0 ;
6527 int arg2 ;
6528 wxColour *arg3 = 0 ;
6529 wxColour temp3 ;
6530 PyObject * obj0 = 0 ;
6531 PyObject * obj1 = 0 ;
6532 PyObject * obj2 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "item",(char *) "c", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6540 arg2 = (int)SWIG_As_int(obj1);
6541 if (PyErr_Occurred()) SWIG_fail;
6542 {
6543 arg3 = &temp3;
6544 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6545 }
6546 {
6547 PyThreadState* __tstate = wxPyBeginAllowThreads();
6548 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6549
6550 wxPyEndAllowThreads(__tstate);
6551 if (PyErr_Occurred()) SWIG_fail;
6552 }
6553 Py_INCREF(Py_None); resultobj = Py_None;
6554 return resultobj;
6555 fail:
6556 return NULL;
6557 }
6558
6559
6560 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6561 PyObject *resultobj;
6562 wxListBox *arg1 = (wxListBox *) 0 ;
6563 int arg2 ;
6564 wxColour *arg3 = 0 ;
6565 wxColour temp3 ;
6566 PyObject * obj0 = 0 ;
6567 PyObject * obj1 = 0 ;
6568 PyObject * obj2 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "self",(char *) "item",(char *) "c", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6576 arg2 = (int)SWIG_As_int(obj1);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 {
6579 arg3 = &temp3;
6580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6581 }
6582 {
6583 PyThreadState* __tstate = wxPyBeginAllowThreads();
6584 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6585
6586 wxPyEndAllowThreads(__tstate);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 Py_INCREF(Py_None); resultobj = Py_None;
6590 return resultobj;
6591 fail:
6592 return NULL;
6593 }
6594
6595
6596 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6597 PyObject *resultobj;
6598 wxListBox *arg1 = (wxListBox *) 0 ;
6599 int arg2 ;
6600 wxFont *arg3 = 0 ;
6601 PyObject * obj0 = 0 ;
6602 PyObject * obj1 = 0 ;
6603 PyObject * obj2 = 0 ;
6604 char *kwnames[] = {
6605 (char *) "self",(char *) "item",(char *) "f", NULL
6606 };
6607
6608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6611 arg2 = (int)SWIG_As_int(obj1);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6614 SWIG_POINTER_EXCEPTION | 0)) == -1)
6615 SWIG_fail;
6616 if (arg3 == NULL) {
6617 PyErr_SetString(PyExc_TypeError,"null reference");
6618 SWIG_fail;
6619 }
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 Py_INCREF(Py_None); resultobj = Py_None;
6628 return resultobj;
6629 fail:
6630 return NULL;
6631 }
6632
6633
6634 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6637 wxVisualAttributes result;
6638 PyObject * obj0 = 0 ;
6639 char *kwnames[] = {
6640 (char *) "variant", NULL
6641 };
6642
6643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6644 if (obj0) {
6645 arg1 = (int)SWIG_As_int(obj0);
6646 if (PyErr_Occurred()) SWIG_fail;
6647 }
6648 {
6649 if (!wxPyCheckForApp()) SWIG_fail;
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6652
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 {
6657 wxVisualAttributes * resultptr;
6658 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6659 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6660 }
6661 return resultobj;
6662 fail:
6663 return NULL;
6664 }
6665
6666
6667 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6668 PyObject *obj;
6669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6670 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6671 Py_INCREF(obj);
6672 return Py_BuildValue((char *)"");
6673 }
6674 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6675 PyObject *resultobj;
6676 wxWindow *arg1 = (wxWindow *) 0 ;
6677 int arg2 = (int) -1 ;
6678 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6679 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6680 wxSize const &arg4_defvalue = wxDefaultSize ;
6681 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6682 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6683 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6684 long arg6 = (long) 0 ;
6685 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6686 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6687 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6688 wxString *arg8 = (wxString *) &arg8_defvalue ;
6689 wxCheckListBox *result;
6690 wxPoint temp3 ;
6691 wxSize temp4 ;
6692 bool temp5 = False ;
6693 bool temp8 = False ;
6694 PyObject * obj0 = 0 ;
6695 PyObject * obj1 = 0 ;
6696 PyObject * obj2 = 0 ;
6697 PyObject * obj3 = 0 ;
6698 PyObject * obj4 = 0 ;
6699 PyObject * obj5 = 0 ;
6700 PyObject * obj6 = 0 ;
6701 PyObject * obj7 = 0 ;
6702 char *kwnames[] = {
6703 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6704 };
6705
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6709 if (obj1) {
6710 arg2 = (int)SWIG_As_int(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 }
6713 if (obj2) {
6714 {
6715 arg3 = &temp3;
6716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6717 }
6718 }
6719 if (obj3) {
6720 {
6721 arg4 = &temp4;
6722 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6723 }
6724 }
6725 if (obj4) {
6726 {
6727 if (! PySequence_Check(obj4)) {
6728 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6729 SWIG_fail;
6730 }
6731 arg5 = new wxArrayString;
6732 temp5 = True;
6733 int i, len=PySequence_Length(obj4);
6734 for (i=0; i<len; i++) {
6735 PyObject* item = PySequence_GetItem(obj4, i);
6736 #if wxUSE_UNICODE
6737 PyObject* str = PyObject_Unicode(item);
6738 #else
6739 PyObject* str = PyObject_Str(item);
6740 #endif
6741 if (PyErr_Occurred()) SWIG_fail;
6742 arg5->Add(Py2wxString(str));
6743 Py_DECREF(item);
6744 Py_DECREF(str);
6745 }
6746 }
6747 }
6748 if (obj5) {
6749 arg6 = (long)SWIG_As_long(obj5);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 if (obj6) {
6753 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6754 SWIG_POINTER_EXCEPTION | 0)) == -1)
6755 SWIG_fail;
6756 if (arg7 == NULL) {
6757 PyErr_SetString(PyExc_TypeError,"null reference");
6758 SWIG_fail;
6759 }
6760 }
6761 if (obj7) {
6762 {
6763 arg8 = wxString_in_helper(obj7);
6764 if (arg8 == NULL) SWIG_fail;
6765 temp8 = True;
6766 }
6767 }
6768 {
6769 if (!wxPyCheckForApp()) SWIG_fail;
6770 PyThreadState* __tstate = wxPyBeginAllowThreads();
6771 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6772
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6777 {
6778 if (temp5) delete arg5;
6779 }
6780 {
6781 if (temp8)
6782 delete arg8;
6783 }
6784 return resultobj;
6785 fail:
6786 {
6787 if (temp5) delete arg5;
6788 }
6789 {
6790 if (temp8)
6791 delete arg8;
6792 }
6793 return NULL;
6794 }
6795
6796
6797 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6798 PyObject *resultobj;
6799 wxCheckListBox *result;
6800 char *kwnames[] = {
6801 NULL
6802 };
6803
6804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6805 {
6806 if (!wxPyCheckForApp()) SWIG_fail;
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (wxCheckListBox *)new wxCheckListBox();
6809
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6814 return resultobj;
6815 fail:
6816 return NULL;
6817 }
6818
6819
6820 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj;
6822 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6823 wxWindow *arg2 = (wxWindow *) 0 ;
6824 int arg3 = (int) -1 ;
6825 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6826 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6827 wxSize const &arg5_defvalue = wxDefaultSize ;
6828 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6829 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6830 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6831 long arg7 = (long) 0 ;
6832 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6833 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6834 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6835 wxString *arg9 = (wxString *) &arg9_defvalue ;
6836 bool result;
6837 wxPoint temp4 ;
6838 wxSize temp5 ;
6839 bool temp6 = False ;
6840 bool temp9 = False ;
6841 PyObject * obj0 = 0 ;
6842 PyObject * obj1 = 0 ;
6843 PyObject * obj2 = 0 ;
6844 PyObject * obj3 = 0 ;
6845 PyObject * obj4 = 0 ;
6846 PyObject * obj5 = 0 ;
6847 PyObject * obj6 = 0 ;
6848 PyObject * obj7 = 0 ;
6849 PyObject * obj8 = 0 ;
6850 char *kwnames[] = {
6851 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6852 };
6853
6854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6857 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6859 if (obj2) {
6860 arg3 = (int)SWIG_As_int(obj2);
6861 if (PyErr_Occurred()) SWIG_fail;
6862 }
6863 if (obj3) {
6864 {
6865 arg4 = &temp4;
6866 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6867 }
6868 }
6869 if (obj4) {
6870 {
6871 arg5 = &temp5;
6872 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6873 }
6874 }
6875 if (obj5) {
6876 {
6877 if (! PySequence_Check(obj5)) {
6878 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6879 SWIG_fail;
6880 }
6881 arg6 = new wxArrayString;
6882 temp6 = True;
6883 int i, len=PySequence_Length(obj5);
6884 for (i=0; i<len; i++) {
6885 PyObject* item = PySequence_GetItem(obj5, i);
6886 #if wxUSE_UNICODE
6887 PyObject* str = PyObject_Unicode(item);
6888 #else
6889 PyObject* str = PyObject_Str(item);
6890 #endif
6891 if (PyErr_Occurred()) SWIG_fail;
6892 arg6->Add(Py2wxString(str));
6893 Py_DECREF(item);
6894 Py_DECREF(str);
6895 }
6896 }
6897 }
6898 if (obj6) {
6899 arg7 = (long)SWIG_As_long(obj6);
6900 if (PyErr_Occurred()) SWIG_fail;
6901 }
6902 if (obj7) {
6903 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6904 SWIG_POINTER_EXCEPTION | 0)) == -1)
6905 SWIG_fail;
6906 if (arg8 == NULL) {
6907 PyErr_SetString(PyExc_TypeError,"null reference");
6908 SWIG_fail;
6909 }
6910 }
6911 if (obj8) {
6912 {
6913 arg9 = wxString_in_helper(obj8);
6914 if (arg9 == NULL) SWIG_fail;
6915 temp9 = True;
6916 }
6917 }
6918 {
6919 PyThreadState* __tstate = wxPyBeginAllowThreads();
6920 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6921
6922 wxPyEndAllowThreads(__tstate);
6923 if (PyErr_Occurred()) SWIG_fail;
6924 }
6925 {
6926 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6927 }
6928 {
6929 if (temp6) delete arg6;
6930 }
6931 {
6932 if (temp9)
6933 delete arg9;
6934 }
6935 return resultobj;
6936 fail:
6937 {
6938 if (temp6) delete arg6;
6939 }
6940 {
6941 if (temp9)
6942 delete arg9;
6943 }
6944 return NULL;
6945 }
6946
6947
6948 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6949 PyObject *resultobj;
6950 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6951 int arg2 ;
6952 bool result;
6953 PyObject * obj0 = 0 ;
6954 PyObject * obj1 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "self",(char *) "index", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 arg2 = (int)SWIG_As_int(obj1);
6963 if (PyErr_Occurred()) SWIG_fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 result = (bool)(arg1)->IsChecked(arg2);
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6981 PyObject *resultobj;
6982 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6983 int arg2 ;
6984 int arg3 = (int) True ;
6985 PyObject * obj0 = 0 ;
6986 PyObject * obj1 = 0 ;
6987 PyObject * obj2 = 0 ;
6988 char *kwnames[] = {
6989 (char *) "self",(char *) "index",(char *) "check", NULL
6990 };
6991
6992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6995 arg2 = (int)SWIG_As_int(obj1);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 if (obj2) {
6998 arg3 = (int)SWIG_As_int(obj2);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 }
7001 {
7002 PyThreadState* __tstate = wxPyBeginAllowThreads();
7003 (arg1)->Check(arg2,arg3);
7004
7005 wxPyEndAllowThreads(__tstate);
7006 if (PyErr_Occurred()) SWIG_fail;
7007 }
7008 Py_INCREF(Py_None); resultobj = Py_None;
7009 return resultobj;
7010 fail:
7011 return NULL;
7012 }
7013
7014
7015 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7016 PyObject *resultobj;
7017 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7018 int result;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 result = (int)(arg1)->GetItemHeight();
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_From_int((int)result);
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7044 wxPoint *arg2 = 0 ;
7045 int result;
7046 wxPoint temp2 ;
7047 PyObject * obj0 = 0 ;
7048 PyObject * obj1 = 0 ;
7049 char *kwnames[] = {
7050 (char *) "self",(char *) "pt", NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7056 {
7057 arg2 = &temp2;
7058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7059 }
7060 {
7061 PyThreadState* __tstate = wxPyBeginAllowThreads();
7062 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7063
7064 wxPyEndAllowThreads(__tstate);
7065 if (PyErr_Occurred()) SWIG_fail;
7066 }
7067 resultobj = SWIG_From_int((int)result);
7068 return resultobj;
7069 fail:
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7077 int arg2 ;
7078 int arg3 ;
7079 int result;
7080 PyObject * obj0 = 0 ;
7081 PyObject * obj1 = 0 ;
7082 PyObject * obj2 = 0 ;
7083 char *kwnames[] = {
7084 (char *) "self",(char *) "x",(char *) "y", NULL
7085 };
7086
7087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7090 arg2 = (int)SWIG_As_int(obj1);
7091 if (PyErr_Occurred()) SWIG_fail;
7092 arg3 = (int)SWIG_As_int(obj2);
7093 if (PyErr_Occurred()) SWIG_fail;
7094 {
7095 PyThreadState* __tstate = wxPyBeginAllowThreads();
7096 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7097
7098 wxPyEndAllowThreads(__tstate);
7099 if (PyErr_Occurred()) SWIG_fail;
7100 }
7101 resultobj = SWIG_From_int((int)result);
7102 return resultobj;
7103 fail:
7104 return NULL;
7105 }
7106
7107
7108 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7109 PyObject *obj;
7110 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7111 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7112 Py_INCREF(obj);
7113 return Py_BuildValue((char *)"");
7114 }
7115 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7116 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7117 return 1;
7118 }
7119
7120
7121 static PyObject *_wrap_TextCtrlNameStr_get() {
7122 PyObject *pyobj;
7123
7124 {
7125 #if wxUSE_UNICODE
7126 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7127 #else
7128 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7129 #endif
7130 }
7131 return pyobj;
7132 }
7133
7134
7135 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 wxColour const &arg1_defvalue = wxNullColour ;
7138 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7139 wxColour const &arg2_defvalue = wxNullColour ;
7140 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7141 wxFont const &arg3_defvalue = wxNullFont ;
7142 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7143 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7144 wxTextAttr *result;
7145 wxColour temp1 ;
7146 wxColour temp2 ;
7147 PyObject * obj0 = 0 ;
7148 PyObject * obj1 = 0 ;
7149 PyObject * obj2 = 0 ;
7150 PyObject * obj3 = 0 ;
7151 char *kwnames[] = {
7152 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7153 };
7154
7155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7156 if (obj0) {
7157 {
7158 arg1 = &temp1;
7159 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7160 }
7161 }
7162 if (obj1) {
7163 {
7164 arg2 = &temp2;
7165 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7166 }
7167 }
7168 if (obj2) {
7169 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7170 SWIG_POINTER_EXCEPTION | 0)) == -1)
7171 SWIG_fail;
7172 if (arg3 == NULL) {
7173 PyErr_SetString(PyExc_TypeError,"null reference");
7174 SWIG_fail;
7175 }
7176 }
7177 if (obj3) {
7178 arg4 = (int)SWIG_As_int(obj3);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 {
7182 PyThreadState* __tstate = wxPyBeginAllowThreads();
7183 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7184
7185 wxPyEndAllowThreads(__tstate);
7186 if (PyErr_Occurred()) SWIG_fail;
7187 }
7188 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7189 return resultobj;
7190 fail:
7191 return NULL;
7192 }
7193
7194
7195 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7196 PyObject *resultobj;
7197 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7198 PyObject * obj0 = 0 ;
7199 char *kwnames[] = {
7200 (char *) "self", NULL
7201 };
7202
7203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7206 {
7207 PyThreadState* __tstate = wxPyBeginAllowThreads();
7208 delete arg1;
7209
7210 wxPyEndAllowThreads(__tstate);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 Py_INCREF(Py_None); resultobj = Py_None;
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7221 PyObject *resultobj;
7222 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7223 PyObject * obj0 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "self", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 (arg1)->Init();
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 Py_INCREF(Py_None); resultobj = Py_None;
7239 return resultobj;
7240 fail:
7241 return NULL;
7242 }
7243
7244
7245 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7246 PyObject *resultobj;
7247 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7248 wxColour *arg2 = 0 ;
7249 wxColour temp2 ;
7250 PyObject * obj0 = 0 ;
7251 PyObject * obj1 = 0 ;
7252 char *kwnames[] = {
7253 (char *) "self",(char *) "colText", NULL
7254 };
7255
7256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7259 {
7260 arg2 = &temp2;
7261 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7262 }
7263 {
7264 PyThreadState* __tstate = wxPyBeginAllowThreads();
7265 (arg1)->SetTextColour((wxColour const &)*arg2);
7266
7267 wxPyEndAllowThreads(__tstate);
7268 if (PyErr_Occurred()) SWIG_fail;
7269 }
7270 Py_INCREF(Py_None); resultobj = Py_None;
7271 return resultobj;
7272 fail:
7273 return NULL;
7274 }
7275
7276
7277 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7278 PyObject *resultobj;
7279 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7280 wxColour *arg2 = 0 ;
7281 wxColour temp2 ;
7282 PyObject * obj0 = 0 ;
7283 PyObject * obj1 = 0 ;
7284 char *kwnames[] = {
7285 (char *) "self",(char *) "colBack", NULL
7286 };
7287
7288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7291 {
7292 arg2 = &temp2;
7293 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7294 }
7295 {
7296 PyThreadState* __tstate = wxPyBeginAllowThreads();
7297 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7298
7299 wxPyEndAllowThreads(__tstate);
7300 if (PyErr_Occurred()) SWIG_fail;
7301 }
7302 Py_INCREF(Py_None); resultobj = Py_None;
7303 return resultobj;
7304 fail:
7305 return NULL;
7306 }
7307
7308
7309 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7310 PyObject *resultobj;
7311 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7312 wxFont *arg2 = 0 ;
7313 long arg3 = (long) wxTEXT_ATTR_FONT ;
7314 PyObject * obj0 = 0 ;
7315 PyObject * obj1 = 0 ;
7316 PyObject * obj2 = 0 ;
7317 char *kwnames[] = {
7318 (char *) "self",(char *) "font",(char *) "flags", NULL
7319 };
7320
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7324 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7325 SWIG_POINTER_EXCEPTION | 0)) == -1)
7326 SWIG_fail;
7327 if (arg2 == NULL) {
7328 PyErr_SetString(PyExc_TypeError,"null reference");
7329 SWIG_fail;
7330 }
7331 if (obj2) {
7332 arg3 = (long)SWIG_As_long(obj2);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 return resultobj;
7344 fail:
7345 return NULL;
7346 }
7347
7348
7349 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7352 int arg2 ;
7353 PyObject * obj0 = 0 ;
7354 PyObject * obj1 = 0 ;
7355 char *kwnames[] = {
7356 (char *) "self",(char *) "alignment", NULL
7357 };
7358
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7362 arg2 = (int)SWIG_As_int(obj1);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 {
7365 PyThreadState* __tstate = wxPyBeginAllowThreads();
7366 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7367
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 Py_INCREF(Py_None); resultobj = Py_None;
7372 return resultobj;
7373 fail:
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7381 wxArrayInt *arg2 = 0 ;
7382 bool temp2 = False ;
7383 PyObject * obj0 = 0 ;
7384 PyObject * obj1 = 0 ;
7385 char *kwnames[] = {
7386 (char *) "self",(char *) "tabs", NULL
7387 };
7388
7389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7392 {
7393 if (! PySequence_Check(obj1)) {
7394 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7395 SWIG_fail;
7396 }
7397 arg2 = new wxArrayInt;
7398 temp2 = True;
7399 int i, len=PySequence_Length(obj1);
7400 for (i=0; i<len; i++) {
7401 PyObject* item = PySequence_GetItem(obj1, i);
7402 PyObject* number = PyNumber_Int(item);
7403 arg2->Add(PyInt_AS_LONG(number));
7404 Py_DECREF(item);
7405 Py_DECREF(number);
7406 }
7407 }
7408 {
7409 PyThreadState* __tstate = wxPyBeginAllowThreads();
7410 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7411
7412 wxPyEndAllowThreads(__tstate);
7413 if (PyErr_Occurred()) SWIG_fail;
7414 }
7415 Py_INCREF(Py_None); resultobj = Py_None;
7416 {
7417 if (temp2) delete arg2;
7418 }
7419 return resultobj;
7420 fail:
7421 {
7422 if (temp2) delete arg2;
7423 }
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7431 int arg2 ;
7432 int arg3 = (int) 0 ;
7433 PyObject * obj0 = 0 ;
7434 PyObject * obj1 = 0 ;
7435 PyObject * obj2 = 0 ;
7436 char *kwnames[] = {
7437 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7438 };
7439
7440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7443 arg2 = (int)SWIG_As_int(obj1);
7444 if (PyErr_Occurred()) SWIG_fail;
7445 if (obj2) {
7446 arg3 = (int)SWIG_As_int(obj2);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 }
7449 {
7450 PyThreadState* __tstate = wxPyBeginAllowThreads();
7451 (arg1)->SetLeftIndent(arg2,arg3);
7452
7453 wxPyEndAllowThreads(__tstate);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 Py_INCREF(Py_None); resultobj = Py_None;
7457 return resultobj;
7458 fail:
7459 return NULL;
7460 }
7461
7462
7463 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7464 PyObject *resultobj;
7465 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7466 int arg2 ;
7467 PyObject * obj0 = 0 ;
7468 PyObject * obj1 = 0 ;
7469 char *kwnames[] = {
7470 (char *) "self",(char *) "indent", NULL
7471 };
7472
7473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7476 arg2 = (int)SWIG_As_int(obj1);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 {
7479 PyThreadState* __tstate = wxPyBeginAllowThreads();
7480 (arg1)->SetRightIndent(arg2);
7481
7482 wxPyEndAllowThreads(__tstate);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 Py_INCREF(Py_None); resultobj = Py_None;
7486 return resultobj;
7487 fail:
7488 return NULL;
7489 }
7490
7491
7492 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7495 long arg2 ;
7496 PyObject * obj0 = 0 ;
7497 PyObject * obj1 = 0 ;
7498 char *kwnames[] = {
7499 (char *) "self",(char *) "flags", NULL
7500 };
7501
7502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7505 arg2 = (long)SWIG_As_long(obj1);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 {
7508 PyThreadState* __tstate = wxPyBeginAllowThreads();
7509 (arg1)->SetFlags(arg2);
7510
7511 wxPyEndAllowThreads(__tstate);
7512 if (PyErr_Occurred()) SWIG_fail;
7513 }
7514 Py_INCREF(Py_None); resultobj = Py_None;
7515 return resultobj;
7516 fail:
7517 return NULL;
7518 }
7519
7520
7521 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7522 PyObject *resultobj;
7523 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7524 bool result;
7525 PyObject * obj0 = 0 ;
7526 char *kwnames[] = {
7527 (char *) "self", NULL
7528 };
7529
7530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7533 {
7534 PyThreadState* __tstate = wxPyBeginAllowThreads();
7535 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7536
7537 wxPyEndAllowThreads(__tstate);
7538 if (PyErr_Occurred()) SWIG_fail;
7539 }
7540 {
7541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7542 }
7543 return resultobj;
7544 fail:
7545 return NULL;
7546 }
7547
7548
7549 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7550 PyObject *resultobj;
7551 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7552 bool result;
7553 PyObject * obj0 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "self", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 {
7569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7570 }
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7580 bool result;
7581 PyObject * obj0 = 0 ;
7582 char *kwnames[] = {
7583 (char *) "self", NULL
7584 };
7585
7586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7589 {
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7592
7593 wxPyEndAllowThreads(__tstate);
7594 if (PyErr_Occurred()) SWIG_fail;
7595 }
7596 {
7597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7598 }
7599 return resultobj;
7600 fail:
7601 return NULL;
7602 }
7603
7604
7605 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7606 PyObject *resultobj;
7607 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7608 bool result;
7609 PyObject * obj0 = 0 ;
7610 char *kwnames[] = {
7611 (char *) "self", NULL
7612 };
7613
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7617 {
7618 PyThreadState* __tstate = wxPyBeginAllowThreads();
7619 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7620
7621 wxPyEndAllowThreads(__tstate);
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 {
7625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7626 }
7627 return resultobj;
7628 fail:
7629 return NULL;
7630 }
7631
7632
7633 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7634 PyObject *resultobj;
7635 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7636 bool result;
7637 PyObject * obj0 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "self", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7645 {
7646 PyThreadState* __tstate = wxPyBeginAllowThreads();
7647 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7648
7649 wxPyEndAllowThreads(__tstate);
7650 if (PyErr_Occurred()) SWIG_fail;
7651 }
7652 {
7653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7654 }
7655 return resultobj;
7656 fail:
7657 return NULL;
7658 }
7659
7660
7661 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7662 PyObject *resultobj;
7663 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7664 bool result;
7665 PyObject * obj0 = 0 ;
7666 char *kwnames[] = {
7667 (char *) "self", NULL
7668 };
7669
7670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7673 {
7674 PyThreadState* __tstate = wxPyBeginAllowThreads();
7675 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7676
7677 wxPyEndAllowThreads(__tstate);
7678 if (PyErr_Occurred()) SWIG_fail;
7679 }
7680 {
7681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7682 }
7683 return resultobj;
7684 fail:
7685 return NULL;
7686 }
7687
7688
7689 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7690 PyObject *resultobj;
7691 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7692 bool result;
7693 PyObject * obj0 = 0 ;
7694 char *kwnames[] = {
7695 (char *) "self", NULL
7696 };
7697
7698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7701 {
7702 PyThreadState* __tstate = wxPyBeginAllowThreads();
7703 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7704
7705 wxPyEndAllowThreads(__tstate);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 {
7709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7710 }
7711 return resultobj;
7712 fail:
7713 return NULL;
7714 }
7715
7716
7717 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7718 PyObject *resultobj;
7719 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7720 long arg2 ;
7721 bool result;
7722 PyObject * obj0 = 0 ;
7723 PyObject * obj1 = 0 ;
7724 char *kwnames[] = {
7725 (char *) "self",(char *) "flag", NULL
7726 };
7727
7728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7731 arg2 = (long)SWIG_As_long(obj1);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 {
7734 PyThreadState* __tstate = wxPyBeginAllowThreads();
7735 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7736
7737 wxPyEndAllowThreads(__tstate);
7738 if (PyErr_Occurred()) SWIG_fail;
7739 }
7740 {
7741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7742 }
7743 return resultobj;
7744 fail:
7745 return NULL;
7746 }
7747
7748
7749 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7750 PyObject *resultobj;
7751 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7752 wxColour *result;
7753 PyObject * obj0 = 0 ;
7754 char *kwnames[] = {
7755 (char *) "self", NULL
7756 };
7757
7758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 {
7764 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7765 result = (wxColour *) &_result_ref;
7766 }
7767
7768 wxPyEndAllowThreads(__tstate);
7769 if (PyErr_Occurred()) SWIG_fail;
7770 }
7771 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7781 wxColour *result;
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
7784 (char *) "self", NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 {
7793 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7794 result = (wxColour *) &_result_ref;
7795 }
7796
7797 wxPyEndAllowThreads(__tstate);
7798 if (PyErr_Occurred()) SWIG_fail;
7799 }
7800 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7801 return resultobj;
7802 fail:
7803 return NULL;
7804 }
7805
7806
7807 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7808 PyObject *resultobj;
7809 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7810 wxFont *result;
7811 PyObject * obj0 = 0 ;
7812 char *kwnames[] = {
7813 (char *) "self", NULL
7814 };
7815
7816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7819 {
7820 PyThreadState* __tstate = wxPyBeginAllowThreads();
7821 {
7822 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7823 result = (wxFont *) &_result_ref;
7824 }
7825
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 wxFont* resultptr = new wxFont(*result);
7831 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7832 }
7833 return resultobj;
7834 fail:
7835 return NULL;
7836 }
7837
7838
7839 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7840 PyObject *resultobj;
7841 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7842 int result;
7843 PyObject * obj0 = 0 ;
7844 char *kwnames[] = {
7845 (char *) "self", NULL
7846 };
7847
7848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7851 {
7852 PyThreadState* __tstate = wxPyBeginAllowThreads();
7853 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7854
7855 wxPyEndAllowThreads(__tstate);
7856 if (PyErr_Occurred()) SWIG_fail;
7857 }
7858 resultobj = SWIG_From_int((int)result);
7859 return resultobj;
7860 fail:
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7868 wxArrayInt *result;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7877 {
7878 PyThreadState* __tstate = wxPyBeginAllowThreads();
7879 {
7880 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7881 result = (wxArrayInt *) &_result_ref;
7882 }
7883
7884 wxPyEndAllowThreads(__tstate);
7885 if (PyErr_Occurred()) SWIG_fail;
7886 }
7887 {
7888 resultobj = PyList_New(0);
7889 size_t idx;
7890 for (idx = 0; idx < result->GetCount(); idx += 1) {
7891 PyObject* val = PyInt_FromLong( result->Item(idx) );
7892 PyList_Append(resultobj, val);
7893 Py_DECREF(val);
7894 }
7895 }
7896 return resultobj;
7897 fail:
7898 return NULL;
7899 }
7900
7901
7902 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7903 PyObject *resultobj;
7904 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7905 long result;
7906 PyObject * obj0 = 0 ;
7907 char *kwnames[] = {
7908 (char *) "self", NULL
7909 };
7910
7911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7914 {
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7917
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = SWIG_From_long((long)result);
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj;
7930 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7931 long result;
7932 PyObject * obj0 = 0 ;
7933 char *kwnames[] = {
7934 (char *) "self", NULL
7935 };
7936
7937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7940 {
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7943
7944 wxPyEndAllowThreads(__tstate);
7945 if (PyErr_Occurred()) SWIG_fail;
7946 }
7947 resultobj = SWIG_From_long((long)result);
7948 return resultobj;
7949 fail:
7950 return NULL;
7951 }
7952
7953
7954 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7955 PyObject *resultobj;
7956 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7957 long result;
7958 PyObject * obj0 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7966 {
7967 PyThreadState* __tstate = wxPyBeginAllowThreads();
7968 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7969
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_From_long((long)result);
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj;
7982 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7983 long result;
7984 PyObject * obj0 = 0 ;
7985 char *kwnames[] = {
7986 (char *) "self", NULL
7987 };
7988
7989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7992 {
7993 PyThreadState* __tstate = wxPyBeginAllowThreads();
7994 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7995
7996 wxPyEndAllowThreads(__tstate);
7997 if (PyErr_Occurred()) SWIG_fail;
7998 }
7999 resultobj = SWIG_From_long((long)result);
8000 return resultobj;
8001 fail:
8002 return NULL;
8003 }
8004
8005
8006 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8007 PyObject *resultobj;
8008 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8009 bool result;
8010 PyObject * obj0 = 0 ;
8011 char *kwnames[] = {
8012 (char *) "self", NULL
8013 };
8014
8015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8021
8022 wxPyEndAllowThreads(__tstate);
8023 if (PyErr_Occurred()) SWIG_fail;
8024 }
8025 {
8026 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8027 }
8028 return resultobj;
8029 fail:
8030 return NULL;
8031 }
8032
8033
8034 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8035 PyObject *resultobj;
8036 wxTextAttr *arg1 = 0 ;
8037 wxTextAttr *arg2 = 0 ;
8038 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8039 wxTextAttr result;
8040 PyObject * obj0 = 0 ;
8041 PyObject * obj1 = 0 ;
8042 PyObject * obj2 = 0 ;
8043 char *kwnames[] = {
8044 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8045 };
8046
8047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8049 SWIG_POINTER_EXCEPTION | 0)) == -1)
8050 SWIG_fail;
8051 if (arg1 == NULL) {
8052 PyErr_SetString(PyExc_TypeError,"null reference");
8053 SWIG_fail;
8054 }
8055 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8056 SWIG_POINTER_EXCEPTION | 0)) == -1)
8057 SWIG_fail;
8058 if (arg2 == NULL) {
8059 PyErr_SetString(PyExc_TypeError,"null reference");
8060 SWIG_fail;
8061 }
8062 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8067
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 {
8072 wxTextAttr * resultptr;
8073 resultptr = new wxTextAttr((wxTextAttr &) result);
8074 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8075 }
8076 return resultobj;
8077 fail:
8078 return NULL;
8079 }
8080
8081
8082 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8083 PyObject *obj;
8084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8085 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8086 Py_INCREF(obj);
8087 return Py_BuildValue((char *)"");
8088 }
8089 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj;
8091 wxWindow *arg1 = (wxWindow *) 0 ;
8092 int arg2 = (int) -1 ;
8093 wxString const &arg3_defvalue = wxPyEmptyString ;
8094 wxString *arg3 = (wxString *) &arg3_defvalue ;
8095 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8096 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8097 wxSize const &arg5_defvalue = wxDefaultSize ;
8098 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8099 long arg6 = (long) 0 ;
8100 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8101 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8102 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8103 wxString *arg8 = (wxString *) &arg8_defvalue ;
8104 wxTextCtrl *result;
8105 bool temp3 = False ;
8106 wxPoint temp4 ;
8107 wxSize temp5 ;
8108 bool temp8 = False ;
8109 PyObject * obj0 = 0 ;
8110 PyObject * obj1 = 0 ;
8111 PyObject * obj2 = 0 ;
8112 PyObject * obj3 = 0 ;
8113 PyObject * obj4 = 0 ;
8114 PyObject * obj5 = 0 ;
8115 PyObject * obj6 = 0 ;
8116 PyObject * obj7 = 0 ;
8117 char *kwnames[] = {
8118 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8119 };
8120
8121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8124 if (obj1) {
8125 arg2 = (int)SWIG_As_int(obj1);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 }
8128 if (obj2) {
8129 {
8130 arg3 = wxString_in_helper(obj2);
8131 if (arg3 == NULL) SWIG_fail;
8132 temp3 = True;
8133 }
8134 }
8135 if (obj3) {
8136 {
8137 arg4 = &temp4;
8138 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8139 }
8140 }
8141 if (obj4) {
8142 {
8143 arg5 = &temp5;
8144 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8145 }
8146 }
8147 if (obj5) {
8148 arg6 = (long)SWIG_As_long(obj5);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 if (obj6) {
8152 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1)
8154 SWIG_fail;
8155 if (arg7 == NULL) {
8156 PyErr_SetString(PyExc_TypeError,"null reference");
8157 SWIG_fail;
8158 }
8159 }
8160 if (obj7) {
8161 {
8162 arg8 = wxString_in_helper(obj7);
8163 if (arg8 == NULL) SWIG_fail;
8164 temp8 = True;
8165 }
8166 }
8167 {
8168 if (!wxPyCheckForApp()) SWIG_fail;
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8176 {
8177 if (temp3)
8178 delete arg3;
8179 }
8180 {
8181 if (temp8)
8182 delete arg8;
8183 }
8184 return resultobj;
8185 fail:
8186 {
8187 if (temp3)
8188 delete arg3;
8189 }
8190 {
8191 if (temp8)
8192 delete arg8;
8193 }
8194 return NULL;
8195 }
8196
8197
8198 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxTextCtrl *result;
8201 char *kwnames[] = {
8202 NULL
8203 };
8204
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8206 {
8207 if (!wxPyCheckForApp()) SWIG_fail;
8208 PyThreadState* __tstate = wxPyBeginAllowThreads();
8209 result = (wxTextCtrl *)new wxTextCtrl();
8210
8211 wxPyEndAllowThreads(__tstate);
8212 if (PyErr_Occurred()) SWIG_fail;
8213 }
8214 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8215 return resultobj;
8216 fail:
8217 return NULL;
8218 }
8219
8220
8221 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8222 PyObject *resultobj;
8223 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8224 wxWindow *arg2 = (wxWindow *) 0 ;
8225 int arg3 = (int) -1 ;
8226 wxString const &arg4_defvalue = wxPyEmptyString ;
8227 wxString *arg4 = (wxString *) &arg4_defvalue ;
8228 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8229 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8230 wxSize const &arg6_defvalue = wxDefaultSize ;
8231 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8232 long arg7 = (long) 0 ;
8233 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8234 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8235 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8236 wxString *arg9 = (wxString *) &arg9_defvalue ;
8237 bool result;
8238 bool temp4 = False ;
8239 wxPoint temp5 ;
8240 wxSize temp6 ;
8241 bool temp9 = False ;
8242 PyObject * obj0 = 0 ;
8243 PyObject * obj1 = 0 ;
8244 PyObject * obj2 = 0 ;
8245 PyObject * obj3 = 0 ;
8246 PyObject * obj4 = 0 ;
8247 PyObject * obj5 = 0 ;
8248 PyObject * obj6 = 0 ;
8249 PyObject * obj7 = 0 ;
8250 PyObject * obj8 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8260 if (obj2) {
8261 arg3 = (int)SWIG_As_int(obj2);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 if (obj3) {
8265 {
8266 arg4 = wxString_in_helper(obj3);
8267 if (arg4 == NULL) SWIG_fail;
8268 temp4 = True;
8269 }
8270 }
8271 if (obj4) {
8272 {
8273 arg5 = &temp5;
8274 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8275 }
8276 }
8277 if (obj5) {
8278 {
8279 arg6 = &temp6;
8280 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8281 }
8282 }
8283 if (obj6) {
8284 arg7 = (long)SWIG_As_long(obj6);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 if (obj7) {
8288 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8289 SWIG_POINTER_EXCEPTION | 0)) == -1)
8290 SWIG_fail;
8291 if (arg8 == NULL) {
8292 PyErr_SetString(PyExc_TypeError,"null reference");
8293 SWIG_fail;
8294 }
8295 }
8296 if (obj8) {
8297 {
8298 arg9 = wxString_in_helper(obj8);
8299 if (arg9 == NULL) SWIG_fail;
8300 temp9 = True;
8301 }
8302 }
8303 {
8304 PyThreadState* __tstate = wxPyBeginAllowThreads();
8305 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8306
8307 wxPyEndAllowThreads(__tstate);
8308 if (PyErr_Occurred()) SWIG_fail;
8309 }
8310 {
8311 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8312 }
8313 {
8314 if (temp4)
8315 delete arg4;
8316 }
8317 {
8318 if (temp9)
8319 delete arg9;
8320 }
8321 return resultobj;
8322 fail:
8323 {
8324 if (temp4)
8325 delete arg4;
8326 }
8327 {
8328 if (temp9)
8329 delete arg9;
8330 }
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8338 wxString result;
8339 PyObject * obj0 = 0 ;
8340 char *kwnames[] = {
8341 (char *) "self", NULL
8342 };
8343
8344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 result = ((wxTextCtrl const *)arg1)->GetValue();
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 {
8355 #if wxUSE_UNICODE
8356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8357 #else
8358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8359 #endif
8360 }
8361 return resultobj;
8362 fail:
8363 return NULL;
8364 }
8365
8366
8367 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8368 PyObject *resultobj;
8369 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8370 wxString *arg2 = 0 ;
8371 bool temp2 = False ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self",(char *) "value", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8381 {
8382 arg2 = wxString_in_helper(obj1);
8383 if (arg2 == NULL) SWIG_fail;
8384 temp2 = True;
8385 }
8386 {
8387 PyThreadState* __tstate = wxPyBeginAllowThreads();
8388 (arg1)->SetValue((wxString const &)*arg2);
8389
8390 wxPyEndAllowThreads(__tstate);
8391 if (PyErr_Occurred()) SWIG_fail;
8392 }
8393 Py_INCREF(Py_None); resultobj = Py_None;
8394 {
8395 if (temp2)
8396 delete arg2;
8397 }
8398 return resultobj;
8399 fail:
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return NULL;
8405 }
8406
8407
8408 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8409 PyObject *resultobj;
8410 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8411 long arg2 ;
8412 long arg3 ;
8413 wxString result;
8414 PyObject * obj0 = 0 ;
8415 PyObject * obj1 = 0 ;
8416 PyObject * obj2 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self",(char *) "from",(char *) "to", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 arg2 = (long)SWIG_As_long(obj1);
8425 if (PyErr_Occurred()) SWIG_fail;
8426 arg3 = (long)SWIG_As_long(obj2);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 {
8429 PyThreadState* __tstate = wxPyBeginAllowThreads();
8430 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8431
8432 wxPyEndAllowThreads(__tstate);
8433 if (PyErr_Occurred()) SWIG_fail;
8434 }
8435 {
8436 #if wxUSE_UNICODE
8437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8438 #else
8439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8440 #endif
8441 }
8442 return resultobj;
8443 fail:
8444 return NULL;
8445 }
8446
8447
8448 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8449 PyObject *resultobj;
8450 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8451 long arg2 ;
8452 int result;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self",(char *) "lineNo", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8462 arg2 = (long)SWIG_As_long(obj1);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8467
8468 wxPyEndAllowThreads(__tstate);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 resultobj = SWIG_From_int((int)result);
8472 return resultobj;
8473 fail:
8474 return NULL;
8475 }
8476
8477
8478 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8479 PyObject *resultobj;
8480 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8481 long arg2 ;
8482 wxString result;
8483 PyObject * obj0 = 0 ;
8484 PyObject * obj1 = 0 ;
8485 char *kwnames[] = {
8486 (char *) "self",(char *) "lineNo", NULL
8487 };
8488
8489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8492 arg2 = (long)SWIG_As_long(obj1);
8493 if (PyErr_Occurred()) SWIG_fail;
8494 {
8495 PyThreadState* __tstate = wxPyBeginAllowThreads();
8496 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8497
8498 wxPyEndAllowThreads(__tstate);
8499 if (PyErr_Occurred()) SWIG_fail;
8500 }
8501 {
8502 #if wxUSE_UNICODE
8503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8504 #else
8505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8506 #endif
8507 }
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj;
8516 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8517 int result;
8518 PyObject * obj0 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 resultobj = SWIG_From_int((int)result);
8534 return resultobj;
8535 fail:
8536 return NULL;
8537 }
8538
8539
8540 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8541 PyObject *resultobj;
8542 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8543 bool result;
8544 PyObject * obj0 = 0 ;
8545 char *kwnames[] = {
8546 (char *) "self", NULL
8547 };
8548
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8552 {
8553 PyThreadState* __tstate = wxPyBeginAllowThreads();
8554 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8555
8556 wxPyEndAllowThreads(__tstate);
8557 if (PyErr_Occurred()) SWIG_fail;
8558 }
8559 {
8560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8561 }
8562 return resultobj;
8563 fail:
8564 return NULL;
8565 }
8566
8567
8568 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8569 PyObject *resultobj;
8570 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8571 bool result;
8572 PyObject * obj0 = 0 ;
8573 char *kwnames[] = {
8574 (char *) "self", NULL
8575 };
8576
8577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8580 {
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8583
8584 wxPyEndAllowThreads(__tstate);
8585 if (PyErr_Occurred()) SWIG_fail;
8586 }
8587 {
8588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8589 }
8590 return resultobj;
8591 fail:
8592 return NULL;
8593 }
8594
8595
8596 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj;
8598 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8599 bool result;
8600 PyObject * obj0 = 0 ;
8601 char *kwnames[] = {
8602 (char *) "self", NULL
8603 };
8604
8605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8608 {
8609 PyThreadState* __tstate = wxPyBeginAllowThreads();
8610 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8611
8612 wxPyEndAllowThreads(__tstate);
8613 if (PyErr_Occurred()) SWIG_fail;
8614 }
8615 {
8616 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8617 }
8618 return resultobj;
8619 fail:
8620 return NULL;
8621 }
8622
8623
8624 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8625 PyObject *resultobj;
8626 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8627 bool result;
8628 PyObject * obj0 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8636 {
8637 PyThreadState* __tstate = wxPyBeginAllowThreads();
8638 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8639
8640 wxPyEndAllowThreads(__tstate);
8641 if (PyErr_Occurred()) SWIG_fail;
8642 }
8643 {
8644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8645 }
8646 return resultobj;
8647 fail:
8648 return NULL;
8649 }
8650
8651
8652 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8653 PyObject *resultobj;
8654 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8655 long *arg2 = (long *) 0 ;
8656 long *arg3 = (long *) 0 ;
8657 long temp2 ;
8658 int res2 = 0 ;
8659 long temp3 ;
8660 int res3 = 0 ;
8661 PyObject * obj0 = 0 ;
8662 char *kwnames[] = {
8663 (char *) "self", NULL
8664 };
8665
8666 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8667 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8671 {
8672 PyThreadState* __tstate = wxPyBeginAllowThreads();
8673 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8674
8675 wxPyEndAllowThreads(__tstate);
8676 if (PyErr_Occurred()) SWIG_fail;
8677 }
8678 Py_INCREF(Py_None); resultobj = Py_None;
8679 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8680 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8681 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8682 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8683 return resultobj;
8684 fail:
8685 return NULL;
8686 }
8687
8688
8689 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8690 PyObject *resultobj;
8691 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8692 wxString result;
8693 PyObject * obj0 = 0 ;
8694 char *kwnames[] = {
8695 (char *) "self", NULL
8696 };
8697
8698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8701 {
8702 PyThreadState* __tstate = wxPyBeginAllowThreads();
8703 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8704
8705 wxPyEndAllowThreads(__tstate);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 {
8709 #if wxUSE_UNICODE
8710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8711 #else
8712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8713 #endif
8714 }
8715 return resultobj;
8716 fail:
8717 return NULL;
8718 }
8719
8720
8721 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8722 PyObject *resultobj;
8723 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8724 PyObject * obj0 = 0 ;
8725 char *kwnames[] = {
8726 (char *) "self", NULL
8727 };
8728
8729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 (arg1)->Clear();
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 Py_INCREF(Py_None); resultobj = Py_None;
8740 return resultobj;
8741 fail:
8742 return NULL;
8743 }
8744
8745
8746 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8747 PyObject *resultobj;
8748 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8749 long arg2 ;
8750 long arg3 ;
8751 wxString *arg4 = 0 ;
8752 bool temp4 = False ;
8753 PyObject * obj0 = 0 ;
8754 PyObject * obj1 = 0 ;
8755 PyObject * obj2 = 0 ;
8756 PyObject * obj3 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 arg2 = (long)SWIG_As_long(obj1);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 arg3 = (long)SWIG_As_long(obj2);
8767 if (PyErr_Occurred()) SWIG_fail;
8768 {
8769 arg4 = wxString_in_helper(obj3);
8770 if (arg4 == NULL) SWIG_fail;
8771 temp4 = True;
8772 }
8773 {
8774 PyThreadState* __tstate = wxPyBeginAllowThreads();
8775 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8776
8777 wxPyEndAllowThreads(__tstate);
8778 if (PyErr_Occurred()) SWIG_fail;
8779 }
8780 Py_INCREF(Py_None); resultobj = Py_None;
8781 {
8782 if (temp4)
8783 delete arg4;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (temp4)
8789 delete arg4;
8790 }
8791 return NULL;
8792 }
8793
8794
8795 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj;
8797 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8798 long arg2 ;
8799 long arg3 ;
8800 PyObject * obj0 = 0 ;
8801 PyObject * obj1 = 0 ;
8802 PyObject * obj2 = 0 ;
8803 char *kwnames[] = {
8804 (char *) "self",(char *) "from",(char *) "to", NULL
8805 };
8806
8807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8810 arg2 = (long)SWIG_As_long(obj1);
8811 if (PyErr_Occurred()) SWIG_fail;
8812 arg3 = (long)SWIG_As_long(obj2);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 {
8815 PyThreadState* __tstate = wxPyBeginAllowThreads();
8816 (arg1)->Remove(arg2,arg3);
8817
8818 wxPyEndAllowThreads(__tstate);
8819 if (PyErr_Occurred()) SWIG_fail;
8820 }
8821 Py_INCREF(Py_None); resultobj = Py_None;
8822 return resultobj;
8823 fail:
8824 return NULL;
8825 }
8826
8827
8828 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8829 PyObject *resultobj;
8830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8831 wxString *arg2 = 0 ;
8832 bool result;
8833 bool temp2 = False ;
8834 PyObject * obj0 = 0 ;
8835 PyObject * obj1 = 0 ;
8836 char *kwnames[] = {
8837 (char *) "self",(char *) "file", NULL
8838 };
8839
8840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8843 {
8844 arg2 = wxString_in_helper(obj1);
8845 if (arg2 == NULL) SWIG_fail;
8846 temp2 = True;
8847 }
8848 {
8849 PyThreadState* __tstate = wxPyBeginAllowThreads();
8850 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8851
8852 wxPyEndAllowThreads(__tstate);
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 {
8856 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8857 }
8858 {
8859 if (temp2)
8860 delete arg2;
8861 }
8862 return resultobj;
8863 fail:
8864 {
8865 if (temp2)
8866 delete arg2;
8867 }
8868 return NULL;
8869 }
8870
8871
8872 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8873 PyObject *resultobj;
8874 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8875 wxString const &arg2_defvalue = wxPyEmptyString ;
8876 wxString *arg2 = (wxString *) &arg2_defvalue ;
8877 bool result;
8878 bool temp2 = False ;
8879 PyObject * obj0 = 0 ;
8880 PyObject * obj1 = 0 ;
8881 char *kwnames[] = {
8882 (char *) "self",(char *) "file", NULL
8883 };
8884
8885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8888 if (obj1) {
8889 {
8890 arg2 = wxString_in_helper(obj1);
8891 if (arg2 == NULL) SWIG_fail;
8892 temp2 = True;
8893 }
8894 }
8895 {
8896 PyThreadState* __tstate = wxPyBeginAllowThreads();
8897 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8898
8899 wxPyEndAllowThreads(__tstate);
8900 if (PyErr_Occurred()) SWIG_fail;
8901 }
8902 {
8903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8904 }
8905 {
8906 if (temp2)
8907 delete arg2;
8908 }
8909 return resultobj;
8910 fail:
8911 {
8912 if (temp2)
8913 delete arg2;
8914 }
8915 return NULL;
8916 }
8917
8918
8919 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj;
8921 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8922 PyObject * obj0 = 0 ;
8923 char *kwnames[] = {
8924 (char *) "self", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8930 {
8931 PyThreadState* __tstate = wxPyBeginAllowThreads();
8932 (arg1)->MarkDirty();
8933
8934 wxPyEndAllowThreads(__tstate);
8935 if (PyErr_Occurred()) SWIG_fail;
8936 }
8937 Py_INCREF(Py_None); resultobj = Py_None;
8938 return resultobj;
8939 fail:
8940 return NULL;
8941 }
8942
8943
8944 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8945 PyObject *resultobj;
8946 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8947 PyObject * obj0 = 0 ;
8948 char *kwnames[] = {
8949 (char *) "self", NULL
8950 };
8951
8952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8955 {
8956 PyThreadState* __tstate = wxPyBeginAllowThreads();
8957 (arg1)->DiscardEdits();
8958
8959 wxPyEndAllowThreads(__tstate);
8960 if (PyErr_Occurred()) SWIG_fail;
8961 }
8962 Py_INCREF(Py_None); resultobj = Py_None;
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8972 unsigned long arg2 ;
8973 PyObject * obj0 = 0 ;
8974 PyObject * obj1 = 0 ;
8975 char *kwnames[] = {
8976 (char *) "self",(char *) "len", NULL
8977 };
8978
8979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8982 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 (arg1)->SetMaxLength(arg2);
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_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9001 wxString *arg2 = 0 ;
9002 bool temp2 = False ;
9003 PyObject * obj0 = 0 ;
9004 PyObject * obj1 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "self",(char *) "text", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9012 {
9013 arg2 = wxString_in_helper(obj1);
9014 if (arg2 == NULL) SWIG_fail;
9015 temp2 = True;
9016 }
9017 {
9018 PyThreadState* __tstate = wxPyBeginAllowThreads();
9019 (arg1)->WriteText((wxString const &)*arg2);
9020
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 Py_INCREF(Py_None); resultobj = Py_None;
9025 {
9026 if (temp2)
9027 delete arg2;
9028 }
9029 return resultobj;
9030 fail:
9031 {
9032 if (temp2)
9033 delete arg2;
9034 }
9035 return NULL;
9036 }
9037
9038
9039 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9040 PyObject *resultobj;
9041 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9042 wxString *arg2 = 0 ;
9043 bool temp2 = False ;
9044 PyObject * obj0 = 0 ;
9045 PyObject * obj1 = 0 ;
9046 char *kwnames[] = {
9047 (char *) "self",(char *) "text", NULL
9048 };
9049
9050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9053 {
9054 arg2 = wxString_in_helper(obj1);
9055 if (arg2 == NULL) SWIG_fail;
9056 temp2 = True;
9057 }
9058 {
9059 PyThreadState* __tstate = wxPyBeginAllowThreads();
9060 (arg1)->AppendText((wxString const &)*arg2);
9061
9062 wxPyEndAllowThreads(__tstate);
9063 if (PyErr_Occurred()) SWIG_fail;
9064 }
9065 Py_INCREF(Py_None); resultobj = Py_None;
9066 {
9067 if (temp2)
9068 delete arg2;
9069 }
9070 return resultobj;
9071 fail:
9072 {
9073 if (temp2)
9074 delete arg2;
9075 }
9076 return NULL;
9077 }
9078
9079
9080 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj;
9082 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9083 wxKeyEvent *arg2 = 0 ;
9084 bool result;
9085 PyObject * obj0 = 0 ;
9086 PyObject * obj1 = 0 ;
9087 char *kwnames[] = {
9088 (char *) "self",(char *) "event", NULL
9089 };
9090
9091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9095 SWIG_POINTER_EXCEPTION | 0)) == -1)
9096 SWIG_fail;
9097 if (arg2 == NULL) {
9098 PyErr_SetString(PyExc_TypeError,"null reference");
9099 SWIG_fail;
9100 }
9101 {
9102 PyThreadState* __tstate = wxPyBeginAllowThreads();
9103 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9104
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 {
9109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9110 }
9111 return resultobj;
9112 fail:
9113 return NULL;
9114 }
9115
9116
9117 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9118 PyObject *resultobj;
9119 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9120 long arg2 ;
9121 long arg3 ;
9122 wxTextAttr *arg4 = 0 ;
9123 bool result;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 PyObject * obj2 = 0 ;
9127 PyObject * obj3 = 0 ;
9128 char *kwnames[] = {
9129 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9130 };
9131
9132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9135 arg2 = (long)SWIG_As_long(obj1);
9136 if (PyErr_Occurred()) SWIG_fail;
9137 arg3 = (long)SWIG_As_long(obj2);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9140 SWIG_POINTER_EXCEPTION | 0)) == -1)
9141 SWIG_fail;
9142 if (arg4 == NULL) {
9143 PyErr_SetString(PyExc_TypeError,"null reference");
9144 SWIG_fail;
9145 }
9146 {
9147 PyThreadState* __tstate = wxPyBeginAllowThreads();
9148 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9149
9150 wxPyEndAllowThreads(__tstate);
9151 if (PyErr_Occurred()) SWIG_fail;
9152 }
9153 {
9154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9155 }
9156 return resultobj;
9157 fail:
9158 return NULL;
9159 }
9160
9161
9162 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9163 PyObject *resultobj;
9164 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9165 long arg2 ;
9166 wxTextAttr *arg3 = 0 ;
9167 bool result;
9168 PyObject * obj0 = 0 ;
9169 PyObject * obj1 = 0 ;
9170 PyObject * obj2 = 0 ;
9171 char *kwnames[] = {
9172 (char *) "self",(char *) "position",(char *) "style", NULL
9173 };
9174
9175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9178 arg2 = (long)SWIG_As_long(obj1);
9179 if (PyErr_Occurred()) SWIG_fail;
9180 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9181 SWIG_POINTER_EXCEPTION | 0)) == -1)
9182 SWIG_fail;
9183 if (arg3 == NULL) {
9184 PyErr_SetString(PyExc_TypeError,"null reference");
9185 SWIG_fail;
9186 }
9187 {
9188 PyThreadState* __tstate = wxPyBeginAllowThreads();
9189 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9190
9191 wxPyEndAllowThreads(__tstate);
9192 if (PyErr_Occurred()) SWIG_fail;
9193 }
9194 {
9195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9196 }
9197 return resultobj;
9198 fail:
9199 return NULL;
9200 }
9201
9202
9203 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9204 PyObject *resultobj;
9205 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9206 wxTextAttr *arg2 = 0 ;
9207 bool result;
9208 PyObject * obj0 = 0 ;
9209 PyObject * obj1 = 0 ;
9210 char *kwnames[] = {
9211 (char *) "self",(char *) "style", NULL
9212 };
9213
9214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9217 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9218 SWIG_POINTER_EXCEPTION | 0)) == -1)
9219 SWIG_fail;
9220 if (arg2 == NULL) {
9221 PyErr_SetString(PyExc_TypeError,"null reference");
9222 SWIG_fail;
9223 }
9224 {
9225 PyThreadState* __tstate = wxPyBeginAllowThreads();
9226 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9227
9228 wxPyEndAllowThreads(__tstate);
9229 if (PyErr_Occurred()) SWIG_fail;
9230 }
9231 {
9232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9233 }
9234 return resultobj;
9235 fail:
9236 return NULL;
9237 }
9238
9239
9240 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9241 PyObject *resultobj;
9242 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9243 wxTextAttr *result;
9244 PyObject * obj0 = 0 ;
9245 char *kwnames[] = {
9246 (char *) "self", NULL
9247 };
9248
9249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9252 {
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 {
9255 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9256 result = (wxTextAttr *) &_result_ref;
9257 }
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9272 long arg2 ;
9273 long arg3 ;
9274 long result;
9275 PyObject * obj0 = 0 ;
9276 PyObject * obj1 = 0 ;
9277 PyObject * obj2 = 0 ;
9278 char *kwnames[] = {
9279 (char *) "self",(char *) "x",(char *) "y", NULL
9280 };
9281
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9285 arg2 = (long)SWIG_As_long(obj1);
9286 if (PyErr_Occurred()) SWIG_fail;
9287 arg3 = (long)SWIG_As_long(obj2);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9292
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 resultobj = SWIG_From_long((long)result);
9297 return resultobj;
9298 fail:
9299 return NULL;
9300 }
9301
9302
9303 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9304 PyObject *resultobj;
9305 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9306 long arg2 ;
9307 long *arg3 = (long *) 0 ;
9308 long *arg4 = (long *) 0 ;
9309 long temp3 ;
9310 int res3 = 0 ;
9311 long temp4 ;
9312 int res4 = 0 ;
9313 PyObject * obj0 = 0 ;
9314 PyObject * obj1 = 0 ;
9315 char *kwnames[] = {
9316 (char *) "self",(char *) "pos", NULL
9317 };
9318
9319 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9320 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9324 arg2 = (long)SWIG_As_long(obj1);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 {
9327 PyThreadState* __tstate = wxPyBeginAllowThreads();
9328 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 Py_INCREF(Py_None); resultobj = Py_None;
9334 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9335 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9336 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9337 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9338 return resultobj;
9339 fail:
9340 return NULL;
9341 }
9342
9343
9344 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9345 PyObject *resultobj;
9346 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9347 long arg2 ;
9348 PyObject * obj0 = 0 ;
9349 PyObject * obj1 = 0 ;
9350 char *kwnames[] = {
9351 (char *) "self",(char *) "pos", NULL
9352 };
9353
9354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9357 arg2 = (long)SWIG_As_long(obj1);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 (arg1)->ShowPosition(arg2);
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 Py_INCREF(Py_None); resultobj = Py_None;
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj;
9375 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9376 wxPoint *arg2 = 0 ;
9377 long *arg3 = (long *) 0 ;
9378 long *arg4 = (long *) 0 ;
9379 int result;
9380 wxPoint temp2 ;
9381 long temp3 ;
9382 int res3 = 0 ;
9383 long temp4 ;
9384 int res4 = 0 ;
9385 PyObject * obj0 = 0 ;
9386 PyObject * obj1 = 0 ;
9387 char *kwnames[] = {
9388 (char *) "self",(char *) "pt", NULL
9389 };
9390
9391 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9392 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9396 {
9397 arg2 = &temp2;
9398 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9399 }
9400 {
9401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9402 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9403
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 resultobj = SWIG_From_int((int)result);
9408 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9409 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9410 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9411 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj;
9420 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9421 wxPoint *arg2 = 0 ;
9422 long *arg3 = (long *) 0 ;
9423 int result;
9424 wxPoint temp2 ;
9425 long temp3 ;
9426 int res3 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char *kwnames[] = {
9430 (char *) "self",(char *) "pt", NULL
9431 };
9432
9433 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9437 {
9438 arg2 = &temp2;
9439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9440 }
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9444
9445 wxPyEndAllowThreads(__tstate);
9446 if (PyErr_Occurred()) SWIG_fail;
9447 }
9448 resultobj = SWIG_From_int((int)result);
9449 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9450 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9458 PyObject *resultobj;
9459 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9460 PyObject * obj0 = 0 ;
9461 char *kwnames[] = {
9462 (char *) "self", NULL
9463 };
9464
9465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9468 {
9469 PyThreadState* __tstate = wxPyBeginAllowThreads();
9470 (arg1)->Copy();
9471
9472 wxPyEndAllowThreads(__tstate);
9473 if (PyErr_Occurred()) SWIG_fail;
9474 }
9475 Py_INCREF(Py_None); resultobj = Py_None;
9476 return resultobj;
9477 fail:
9478 return NULL;
9479 }
9480
9481
9482 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9483 PyObject *resultobj;
9484 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9485 PyObject * obj0 = 0 ;
9486 char *kwnames[] = {
9487 (char *) "self", NULL
9488 };
9489
9490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9493 {
9494 PyThreadState* __tstate = wxPyBeginAllowThreads();
9495 (arg1)->Cut();
9496
9497 wxPyEndAllowThreads(__tstate);
9498 if (PyErr_Occurred()) SWIG_fail;
9499 }
9500 Py_INCREF(Py_None); resultobj = Py_None;
9501 return resultobj;
9502 fail:
9503 return NULL;
9504 }
9505
9506
9507 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9508 PyObject *resultobj;
9509 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9510 PyObject * obj0 = 0 ;
9511 char *kwnames[] = {
9512 (char *) "self", NULL
9513 };
9514
9515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 (arg1)->Paste();
9521
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 Py_INCREF(Py_None); resultobj = Py_None;
9526 return resultobj;
9527 fail:
9528 return NULL;
9529 }
9530
9531
9532 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9533 PyObject *resultobj;
9534 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9535 bool result;
9536 PyObject * obj0 = 0 ;
9537 char *kwnames[] = {
9538 (char *) "self", NULL
9539 };
9540
9541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9547
9548 wxPyEndAllowThreads(__tstate);
9549 if (PyErr_Occurred()) SWIG_fail;
9550 }
9551 {
9552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9553 }
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9561 PyObject *resultobj;
9562 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9563 bool result;
9564 PyObject * obj0 = 0 ;
9565 char *kwnames[] = {
9566 (char *) "self", NULL
9567 };
9568
9569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 {
9580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9581 }
9582 return resultobj;
9583 fail:
9584 return NULL;
9585 }
9586
9587
9588 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9589 PyObject *resultobj;
9590 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9591 bool result;
9592 PyObject * obj0 = 0 ;
9593 char *kwnames[] = {
9594 (char *) "self", NULL
9595 };
9596
9597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9600 {
9601 PyThreadState* __tstate = wxPyBeginAllowThreads();
9602 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9603
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 {
9608 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9609 }
9610 return resultobj;
9611 fail:
9612 return NULL;
9613 }
9614
9615
9616 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9617 PyObject *resultobj;
9618 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9619 PyObject * obj0 = 0 ;
9620 char *kwnames[] = {
9621 (char *) "self", NULL
9622 };
9623
9624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9627 {
9628 PyThreadState* __tstate = wxPyBeginAllowThreads();
9629 (arg1)->Undo();
9630
9631 wxPyEndAllowThreads(__tstate);
9632 if (PyErr_Occurred()) SWIG_fail;
9633 }
9634 Py_INCREF(Py_None); resultobj = Py_None;
9635 return resultobj;
9636 fail:
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9644 PyObject * obj0 = 0 ;
9645 char *kwnames[] = {
9646 (char *) "self", NULL
9647 };
9648
9649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9652 {
9653 PyThreadState* __tstate = wxPyBeginAllowThreads();
9654 (arg1)->Redo();
9655
9656 wxPyEndAllowThreads(__tstate);
9657 if (PyErr_Occurred()) SWIG_fail;
9658 }
9659 Py_INCREF(Py_None); resultobj = Py_None;
9660 return resultobj;
9661 fail:
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9669 bool result;
9670 PyObject * obj0 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9681
9682 wxPyEndAllowThreads(__tstate);
9683 if (PyErr_Occurred()) SWIG_fail;
9684 }
9685 {
9686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9687 }
9688 return resultobj;
9689 fail:
9690 return NULL;
9691 }
9692
9693
9694 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9695 PyObject *resultobj;
9696 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9697 bool result;
9698 PyObject * obj0 = 0 ;
9699 char *kwnames[] = {
9700 (char *) "self", NULL
9701 };
9702
9703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9709
9710 wxPyEndAllowThreads(__tstate);
9711 if (PyErr_Occurred()) SWIG_fail;
9712 }
9713 {
9714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9715 }
9716 return resultobj;
9717 fail:
9718 return NULL;
9719 }
9720
9721
9722 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9723 PyObject *resultobj;
9724 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9725 long arg2 ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 char *kwnames[] = {
9729 (char *) "self",(char *) "pos", NULL
9730 };
9731
9732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9735 arg2 = (long)SWIG_As_long(obj1);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 {
9738 PyThreadState* __tstate = wxPyBeginAllowThreads();
9739 (arg1)->SetInsertionPoint(arg2);
9740
9741 wxPyEndAllowThreads(__tstate);
9742 if (PyErr_Occurred()) SWIG_fail;
9743 }
9744 Py_INCREF(Py_None); resultobj = Py_None;
9745 return resultobj;
9746 fail:
9747 return NULL;
9748 }
9749
9750
9751 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9752 PyObject *resultobj;
9753 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9754 PyObject * obj0 = 0 ;
9755 char *kwnames[] = {
9756 (char *) "self", NULL
9757 };
9758
9759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 (arg1)->SetInsertionPointEnd();
9765
9766 wxPyEndAllowThreads(__tstate);
9767 if (PyErr_Occurred()) SWIG_fail;
9768 }
9769 Py_INCREF(Py_None); resultobj = Py_None;
9770 return resultobj;
9771 fail:
9772 return NULL;
9773 }
9774
9775
9776 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9777 PyObject *resultobj;
9778 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9779 long result;
9780 PyObject * obj0 = 0 ;
9781 char *kwnames[] = {
9782 (char *) "self", NULL
9783 };
9784
9785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9788 {
9789 PyThreadState* __tstate = wxPyBeginAllowThreads();
9790 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9791
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_From_long((long)result);
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9803 PyObject *resultobj;
9804 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9805 long result;
9806 PyObject * obj0 = 0 ;
9807 char *kwnames[] = {
9808 (char *) "self", NULL
9809 };
9810
9811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9814 {
9815 PyThreadState* __tstate = wxPyBeginAllowThreads();
9816 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9817
9818 wxPyEndAllowThreads(__tstate);
9819 if (PyErr_Occurred()) SWIG_fail;
9820 }
9821 resultobj = SWIG_From_long((long)result);
9822 return resultobj;
9823 fail:
9824 return NULL;
9825 }
9826
9827
9828 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9831 long arg2 ;
9832 long arg3 ;
9833 PyObject * obj0 = 0 ;
9834 PyObject * obj1 = 0 ;
9835 PyObject * obj2 = 0 ;
9836 char *kwnames[] = {
9837 (char *) "self",(char *) "from",(char *) "to", NULL
9838 };
9839
9840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9843 arg2 = (long)SWIG_As_long(obj1);
9844 if (PyErr_Occurred()) SWIG_fail;
9845 arg3 = (long)SWIG_As_long(obj2);
9846 if (PyErr_Occurred()) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 (arg1)->SetSelection(arg2,arg3);
9850
9851 wxPyEndAllowThreads(__tstate);
9852 if (PyErr_Occurred()) SWIG_fail;
9853 }
9854 Py_INCREF(Py_None); resultobj = Py_None;
9855 return resultobj;
9856 fail:
9857 return NULL;
9858 }
9859
9860
9861 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9862 PyObject *resultobj;
9863 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9864 PyObject * obj0 = 0 ;
9865 char *kwnames[] = {
9866 (char *) "self", NULL
9867 };
9868
9869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9872 {
9873 PyThreadState* __tstate = wxPyBeginAllowThreads();
9874 (arg1)->SelectAll();
9875
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 Py_INCREF(Py_None); resultobj = Py_None;
9880 return resultobj;
9881 fail:
9882 return NULL;
9883 }
9884
9885
9886 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9887 PyObject *resultobj;
9888 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9889 bool arg2 ;
9890 PyObject * obj0 = 0 ;
9891 PyObject * obj1 = 0 ;
9892 char *kwnames[] = {
9893 (char *) "self",(char *) "editable", NULL
9894 };
9895
9896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9899 arg2 = (bool)SWIG_As_bool(obj1);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 {
9902 PyThreadState* __tstate = wxPyBeginAllowThreads();
9903 (arg1)->SetEditable(arg2);
9904
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 Py_INCREF(Py_None); resultobj = Py_None;
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9916 PyObject *resultobj;
9917 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9918 bool arg2 = (bool) True ;
9919 bool result;
9920 PyObject * obj0 = 0 ;
9921 PyObject * obj1 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self",(char *) "show", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9929 if (obj1) {
9930 arg2 = (bool)SWIG_As_bool(obj1);
9931 if (PyErr_Occurred()) SWIG_fail;
9932 }
9933 {
9934 PyThreadState* __tstate = wxPyBeginAllowThreads();
9935 result = (bool)(arg1)->ShowNativeCaret(arg2);
9936
9937 wxPyEndAllowThreads(__tstate);
9938 if (PyErr_Occurred()) SWIG_fail;
9939 }
9940 {
9941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9942 }
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9950 PyObject *resultobj;
9951 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9952 bool result;
9953 PyObject * obj0 = 0 ;
9954 char *kwnames[] = {
9955 (char *) "self", NULL
9956 };
9957
9958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9961 {
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (bool)(arg1)->HideNativeCaret();
9964
9965 wxPyEndAllowThreads(__tstate);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 {
9969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9970 }
9971 return resultobj;
9972 fail:
9973 return NULL;
9974 }
9975
9976
9977 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj;
9979 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9980 wxString *arg2 = 0 ;
9981 bool temp2 = False ;
9982 PyObject * obj0 = 0 ;
9983 PyObject * obj1 = 0 ;
9984 char *kwnames[] = {
9985 (char *) "self",(char *) "text", NULL
9986 };
9987
9988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9991 {
9992 arg2 = wxString_in_helper(obj1);
9993 if (arg2 == NULL) SWIG_fail;
9994 temp2 = True;
9995 }
9996 {
9997 PyThreadState* __tstate = wxPyBeginAllowThreads();
9998 wxTextCtrl_write(arg1,(wxString const &)*arg2);
9999
10000 wxPyEndAllowThreads(__tstate);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 }
10003 Py_INCREF(Py_None); resultobj = Py_None;
10004 {
10005 if (temp2)
10006 delete arg2;
10007 }
10008 return resultobj;
10009 fail:
10010 {
10011 if (temp2)
10012 delete arg2;
10013 }
10014 return NULL;
10015 }
10016
10017
10018 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10019 PyObject *resultobj;
10020 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10021 long arg2 ;
10022 long arg3 ;
10023 wxString result;
10024 PyObject * obj0 = 0 ;
10025 PyObject * obj1 = 0 ;
10026 PyObject * obj2 = 0 ;
10027 char *kwnames[] = {
10028 (char *) "self",(char *) "from",(char *) "to", NULL
10029 };
10030
10031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10034 arg2 = (long)SWIG_As_long(obj1);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 arg3 = (long)SWIG_As_long(obj2);
10037 if (PyErr_Occurred()) SWIG_fail;
10038 {
10039 PyThreadState* __tstate = wxPyBeginAllowThreads();
10040 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10041
10042 wxPyEndAllowThreads(__tstate);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 #if wxUSE_UNICODE
10047 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10048 #else
10049 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10050 #endif
10051 }
10052 return resultobj;
10053 fail:
10054 return NULL;
10055 }
10056
10057
10058 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10059 PyObject *resultobj;
10060 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10061 wxVisualAttributes result;
10062 PyObject * obj0 = 0 ;
10063 char *kwnames[] = {
10064 (char *) "variant", NULL
10065 };
10066
10067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10068 if (obj0) {
10069 arg1 = (int)SWIG_As_int(obj0);
10070 if (PyErr_Occurred()) SWIG_fail;
10071 }
10072 {
10073 if (!wxPyCheckForApp()) SWIG_fail;
10074 PyThreadState* __tstate = wxPyBeginAllowThreads();
10075 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10076
10077 wxPyEndAllowThreads(__tstate);
10078 if (PyErr_Occurred()) SWIG_fail;
10079 }
10080 {
10081 wxVisualAttributes * resultptr;
10082 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10084 }
10085 return resultobj;
10086 fail:
10087 return NULL;
10088 }
10089
10090
10091 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10092 PyObject *obj;
10093 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10094 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10095 Py_INCREF(obj);
10096 return Py_BuildValue((char *)"");
10097 }
10098 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10099 PyObject *resultobj;
10100 int arg1 ;
10101 wxMouseEvent *arg2 = 0 ;
10102 long arg3 ;
10103 long arg4 ;
10104 wxTextUrlEvent *result;
10105 PyObject * obj0 = 0 ;
10106 PyObject * obj1 = 0 ;
10107 PyObject * obj2 = 0 ;
10108 PyObject * obj3 = 0 ;
10109 char *kwnames[] = {
10110 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10111 };
10112
10113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10114 arg1 = (int)SWIG_As_int(obj0);
10115 if (PyErr_Occurred()) SWIG_fail;
10116 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1)
10118 SWIG_fail;
10119 if (arg2 == NULL) {
10120 PyErr_SetString(PyExc_TypeError,"null reference");
10121 SWIG_fail;
10122 }
10123 arg3 = (long)SWIG_As_long(obj2);
10124 if (PyErr_Occurred()) SWIG_fail;
10125 arg4 = (long)SWIG_As_long(obj3);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10130
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10135 return resultobj;
10136 fail:
10137 return NULL;
10138 }
10139
10140
10141 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10142 PyObject *resultobj;
10143 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10144 wxMouseEvent *result;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 {
10156 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10157 result = (wxMouseEvent *) &_result_ref;
10158 }
10159
10160 wxPyEndAllowThreads(__tstate);
10161 if (PyErr_Occurred()) SWIG_fail;
10162 }
10163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10164 return resultobj;
10165 fail:
10166 return NULL;
10167 }
10168
10169
10170 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10171 PyObject *resultobj;
10172 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10173 long result;
10174 PyObject * obj0 = 0 ;
10175 char *kwnames[] = {
10176 (char *) "self", NULL
10177 };
10178
10179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10182 {
10183 PyThreadState* __tstate = wxPyBeginAllowThreads();
10184 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10185
10186 wxPyEndAllowThreads(__tstate);
10187 if (PyErr_Occurred()) SWIG_fail;
10188 }
10189 resultobj = SWIG_From_long((long)result);
10190 return resultobj;
10191 fail:
10192 return NULL;
10193 }
10194
10195
10196 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10197 PyObject *resultobj;
10198 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10199 long result;
10200 PyObject * obj0 = 0 ;
10201 char *kwnames[] = {
10202 (char *) "self", NULL
10203 };
10204
10205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10208 {
10209 PyThreadState* __tstate = wxPyBeginAllowThreads();
10210 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10211
10212 wxPyEndAllowThreads(__tstate);
10213 if (PyErr_Occurred()) SWIG_fail;
10214 }
10215 resultobj = SWIG_From_long((long)result);
10216 return resultobj;
10217 fail:
10218 return NULL;
10219 }
10220
10221
10222 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10223 PyObject *obj;
10224 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10225 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10226 Py_INCREF(obj);
10227 return Py_BuildValue((char *)"");
10228 }
10229 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10230 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10231 return 1;
10232 }
10233
10234
10235 static PyObject *_wrap_ScrollBarNameStr_get() {
10236 PyObject *pyobj;
10237
10238 {
10239 #if wxUSE_UNICODE
10240 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10241 #else
10242 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10243 #endif
10244 }
10245 return pyobj;
10246 }
10247
10248
10249 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10250 PyObject *resultobj;
10251 wxWindow *arg1 = (wxWindow *) 0 ;
10252 int arg2 = (int) -1 ;
10253 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10254 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10255 wxSize const &arg4_defvalue = wxDefaultSize ;
10256 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10257 long arg5 = (long) wxSB_HORIZONTAL ;
10258 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10259 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10260 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10261 wxString *arg7 = (wxString *) &arg7_defvalue ;
10262 wxScrollBar *result;
10263 wxPoint temp3 ;
10264 wxSize temp4 ;
10265 bool temp7 = False ;
10266 PyObject * obj0 = 0 ;
10267 PyObject * obj1 = 0 ;
10268 PyObject * obj2 = 0 ;
10269 PyObject * obj3 = 0 ;
10270 PyObject * obj4 = 0 ;
10271 PyObject * obj5 = 0 ;
10272 PyObject * obj6 = 0 ;
10273 char *kwnames[] = {
10274 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10275 };
10276
10277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10280 if (obj1) {
10281 arg2 = (int)SWIG_As_int(obj1);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 if (obj2) {
10285 {
10286 arg3 = &temp3;
10287 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10288 }
10289 }
10290 if (obj3) {
10291 {
10292 arg4 = &temp4;
10293 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10294 }
10295 }
10296 if (obj4) {
10297 arg5 = (long)SWIG_As_long(obj4);
10298 if (PyErr_Occurred()) SWIG_fail;
10299 }
10300 if (obj5) {
10301 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10302 SWIG_POINTER_EXCEPTION | 0)) == -1)
10303 SWIG_fail;
10304 if (arg6 == NULL) {
10305 PyErr_SetString(PyExc_TypeError,"null reference");
10306 SWIG_fail;
10307 }
10308 }
10309 if (obj6) {
10310 {
10311 arg7 = wxString_in_helper(obj6);
10312 if (arg7 == NULL) SWIG_fail;
10313 temp7 = True;
10314 }
10315 }
10316 {
10317 if (!wxPyCheckForApp()) SWIG_fail;
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10320
10321 wxPyEndAllowThreads(__tstate);
10322 if (PyErr_Occurred()) SWIG_fail;
10323 }
10324 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10325 {
10326 if (temp7)
10327 delete arg7;
10328 }
10329 return resultobj;
10330 fail:
10331 {
10332 if (temp7)
10333 delete arg7;
10334 }
10335 return NULL;
10336 }
10337
10338
10339 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxScrollBar *result;
10342 char *kwnames[] = {
10343 NULL
10344 };
10345
10346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10347 {
10348 if (!wxPyCheckForApp()) SWIG_fail;
10349 PyThreadState* __tstate = wxPyBeginAllowThreads();
10350 result = (wxScrollBar *)new wxScrollBar();
10351
10352 wxPyEndAllowThreads(__tstate);
10353 if (PyErr_Occurred()) SWIG_fail;
10354 }
10355 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10356 return resultobj;
10357 fail:
10358 return NULL;
10359 }
10360
10361
10362 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10363 PyObject *resultobj;
10364 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10365 wxWindow *arg2 = (wxWindow *) 0 ;
10366 int arg3 = (int) -1 ;
10367 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10368 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10369 wxSize const &arg5_defvalue = wxDefaultSize ;
10370 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10371 long arg6 = (long) wxSB_HORIZONTAL ;
10372 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10373 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10374 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10375 wxString *arg8 = (wxString *) &arg8_defvalue ;
10376 bool result;
10377 wxPoint temp4 ;
10378 wxSize temp5 ;
10379 bool temp8 = False ;
10380 PyObject * obj0 = 0 ;
10381 PyObject * obj1 = 0 ;
10382 PyObject * obj2 = 0 ;
10383 PyObject * obj3 = 0 ;
10384 PyObject * obj4 = 0 ;
10385 PyObject * obj5 = 0 ;
10386 PyObject * obj6 = 0 ;
10387 PyObject * obj7 = 0 ;
10388 char *kwnames[] = {
10389 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10390 };
10391
10392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10397 if (obj2) {
10398 arg3 = (int)SWIG_As_int(obj2);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 if (obj3) {
10402 {
10403 arg4 = &temp4;
10404 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10405 }
10406 }
10407 if (obj4) {
10408 {
10409 arg5 = &temp5;
10410 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10411 }
10412 }
10413 if (obj5) {
10414 arg6 = (long)SWIG_As_long(obj5);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 if (obj6) {
10418 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10419 SWIG_POINTER_EXCEPTION | 0)) == -1)
10420 SWIG_fail;
10421 if (arg7 == NULL) {
10422 PyErr_SetString(PyExc_TypeError,"null reference");
10423 SWIG_fail;
10424 }
10425 }
10426 if (obj7) {
10427 {
10428 arg8 = wxString_in_helper(obj7);
10429 if (arg8 == NULL) SWIG_fail;
10430 temp8 = True;
10431 }
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10436
10437 wxPyEndAllowThreads(__tstate);
10438 if (PyErr_Occurred()) SWIG_fail;
10439 }
10440 {
10441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10442 }
10443 {
10444 if (temp8)
10445 delete arg8;
10446 }
10447 return resultobj;
10448 fail:
10449 {
10450 if (temp8)
10451 delete arg8;
10452 }
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10460 int result;
10461 PyObject * obj0 = 0 ;
10462 char *kwnames[] = {
10463 (char *) "self", NULL
10464 };
10465
10466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10469 {
10470 PyThreadState* __tstate = wxPyBeginAllowThreads();
10471 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10472
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_From_int((int)result);
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj;
10485 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10486 int result;
10487 PyObject * obj0 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10498
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_From_int((int)result);
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj;
10511 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10512 int result;
10513 PyObject * obj0 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10521 {
10522 PyThreadState* __tstate = wxPyBeginAllowThreads();
10523 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10524
10525 wxPyEndAllowThreads(__tstate);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 }
10528 resultobj = SWIG_From_int((int)result);
10529 return resultobj;
10530 fail:
10531 return NULL;
10532 }
10533
10534
10535 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10536 PyObject *resultobj;
10537 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10538 int result;
10539 PyObject * obj0 = 0 ;
10540 char *kwnames[] = {
10541 (char *) "self", NULL
10542 };
10543
10544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10547 {
10548 PyThreadState* __tstate = wxPyBeginAllowThreads();
10549 result = (int)((wxScrollBar const *)arg1)->GetRange();
10550
10551 wxPyEndAllowThreads(__tstate);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 }
10554 resultobj = SWIG_From_int((int)result);
10555 return resultobj;
10556 fail:
10557 return NULL;
10558 }
10559
10560
10561 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10562 PyObject *resultobj;
10563 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10564 bool result;
10565 PyObject * obj0 = 0 ;
10566 char *kwnames[] = {
10567 (char *) "self", NULL
10568 };
10569
10570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10576
10577 wxPyEndAllowThreads(__tstate);
10578 if (PyErr_Occurred()) SWIG_fail;
10579 }
10580 {
10581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10582 }
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10590 PyObject *resultobj;
10591 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10592 int arg2 ;
10593 PyObject * obj0 = 0 ;
10594 PyObject * obj1 = 0 ;
10595 char *kwnames[] = {
10596 (char *) "self",(char *) "viewStart", NULL
10597 };
10598
10599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10602 arg2 = (int)SWIG_As_int(obj1);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 {
10605 PyThreadState* __tstate = wxPyBeginAllowThreads();
10606 (arg1)->SetThumbPosition(arg2);
10607
10608 wxPyEndAllowThreads(__tstate);
10609 if (PyErr_Occurred()) SWIG_fail;
10610 }
10611 Py_INCREF(Py_None); resultobj = Py_None;
10612 return resultobj;
10613 fail:
10614 return NULL;
10615 }
10616
10617
10618 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10619 PyObject *resultobj;
10620 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10621 int arg2 ;
10622 int arg3 ;
10623 int arg4 ;
10624 int arg5 ;
10625 bool arg6 = (bool) True ;
10626 PyObject * obj0 = 0 ;
10627 PyObject * obj1 = 0 ;
10628 PyObject * obj2 = 0 ;
10629 PyObject * obj3 = 0 ;
10630 PyObject * obj4 = 0 ;
10631 PyObject * obj5 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10634 };
10635
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10639 arg2 = (int)SWIG_As_int(obj1);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 arg3 = (int)SWIG_As_int(obj2);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 arg4 = (int)SWIG_As_int(obj3);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 arg5 = (int)SWIG_As_int(obj4);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 if (obj5) {
10648 arg6 = (bool)SWIG_As_bool(obj5);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 PyThreadState* __tstate = wxPyBeginAllowThreads();
10653 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10654
10655 wxPyEndAllowThreads(__tstate);
10656 if (PyErr_Occurred()) SWIG_fail;
10657 }
10658 Py_INCREF(Py_None); resultobj = Py_None;
10659 return resultobj;
10660 fail:
10661 return NULL;
10662 }
10663
10664
10665 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10666 PyObject *resultobj;
10667 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10668 wxVisualAttributes result;
10669 PyObject * obj0 = 0 ;
10670 char *kwnames[] = {
10671 (char *) "variant", NULL
10672 };
10673
10674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10675 if (obj0) {
10676 arg1 = (int)SWIG_As_int(obj0);
10677 if (PyErr_Occurred()) SWIG_fail;
10678 }
10679 {
10680 if (!wxPyCheckForApp()) SWIG_fail;
10681 PyThreadState* __tstate = wxPyBeginAllowThreads();
10682 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10683
10684 wxPyEndAllowThreads(__tstate);
10685 if (PyErr_Occurred()) SWIG_fail;
10686 }
10687 {
10688 wxVisualAttributes * resultptr;
10689 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10690 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10691 }
10692 return resultobj;
10693 fail:
10694 return NULL;
10695 }
10696
10697
10698 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10699 PyObject *obj;
10700 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10701 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10702 Py_INCREF(obj);
10703 return Py_BuildValue((char *)"");
10704 }
10705 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10706 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10707 return 1;
10708 }
10709
10710
10711 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10712 PyObject *pyobj;
10713
10714 {
10715 #if wxUSE_UNICODE
10716 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10717 #else
10718 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10719 #endif
10720 }
10721 return pyobj;
10722 }
10723
10724
10725 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10726 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10727 return 1;
10728 }
10729
10730
10731 static PyObject *_wrap_SpinCtrlNameStr_get() {
10732 PyObject *pyobj;
10733
10734 {
10735 #if wxUSE_UNICODE
10736 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10737 #else
10738 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10739 #endif
10740 }
10741 return pyobj;
10742 }
10743
10744
10745 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 wxWindow *arg1 = (wxWindow *) 0 ;
10748 int arg2 = (int) -1 ;
10749 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10750 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10751 wxSize const &arg4_defvalue = wxDefaultSize ;
10752 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10753 long arg5 = (long) wxSP_HORIZONTAL ;
10754 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10755 wxString *arg6 = (wxString *) &arg6_defvalue ;
10756 wxSpinButton *result;
10757 wxPoint temp3 ;
10758 wxSize temp4 ;
10759 bool temp6 = False ;
10760 PyObject * obj0 = 0 ;
10761 PyObject * obj1 = 0 ;
10762 PyObject * obj2 = 0 ;
10763 PyObject * obj3 = 0 ;
10764 PyObject * obj4 = 0 ;
10765 PyObject * obj5 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10773 if (obj1) {
10774 arg2 = (int)SWIG_As_int(obj1);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 if (obj2) {
10778 {
10779 arg3 = &temp3;
10780 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10781 }
10782 }
10783 if (obj3) {
10784 {
10785 arg4 = &temp4;
10786 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10787 }
10788 }
10789 if (obj4) {
10790 arg5 = (long)SWIG_As_long(obj4);
10791 if (PyErr_Occurred()) SWIG_fail;
10792 }
10793 if (obj5) {
10794 {
10795 arg6 = wxString_in_helper(obj5);
10796 if (arg6 == NULL) SWIG_fail;
10797 temp6 = True;
10798 }
10799 }
10800 {
10801 if (!wxPyCheckForApp()) SWIG_fail;
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10804
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10809 {
10810 if (temp6)
10811 delete arg6;
10812 }
10813 return resultobj;
10814 fail:
10815 {
10816 if (temp6)
10817 delete arg6;
10818 }
10819 return NULL;
10820 }
10821
10822
10823 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10824 PyObject *resultobj;
10825 wxSpinButton *result;
10826 char *kwnames[] = {
10827 NULL
10828 };
10829
10830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10831 {
10832 if (!wxPyCheckForApp()) SWIG_fail;
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 result = (wxSpinButton *)new wxSpinButton();
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj;
10848 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10849 wxWindow *arg2 = (wxWindow *) 0 ;
10850 int arg3 = (int) -1 ;
10851 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10852 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10853 wxSize const &arg5_defvalue = wxDefaultSize ;
10854 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10855 long arg6 = (long) wxSP_HORIZONTAL ;
10856 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10857 wxString *arg7 = (wxString *) &arg7_defvalue ;
10858 bool result;
10859 wxPoint temp4 ;
10860 wxSize temp5 ;
10861 bool temp7 = False ;
10862 PyObject * obj0 = 0 ;
10863 PyObject * obj1 = 0 ;
10864 PyObject * obj2 = 0 ;
10865 PyObject * obj3 = 0 ;
10866 PyObject * obj4 = 0 ;
10867 PyObject * obj5 = 0 ;
10868 PyObject * obj6 = 0 ;
10869 char *kwnames[] = {
10870 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10871 };
10872
10873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10876 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10878 if (obj2) {
10879 arg3 = (int)SWIG_As_int(obj2);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 if (obj3) {
10883 {
10884 arg4 = &temp4;
10885 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10886 }
10887 }
10888 if (obj4) {
10889 {
10890 arg5 = &temp5;
10891 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10892 }
10893 }
10894 if (obj5) {
10895 arg6 = (long)SWIG_As_long(obj5);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 if (obj6) {
10899 {
10900 arg7 = wxString_in_helper(obj6);
10901 if (arg7 == NULL) SWIG_fail;
10902 temp7 = True;
10903 }
10904 }
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10914 }
10915 {
10916 if (temp7)
10917 delete arg7;
10918 }
10919 return resultobj;
10920 fail:
10921 {
10922 if (temp7)
10923 delete arg7;
10924 }
10925 return NULL;
10926 }
10927
10928
10929 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10930 PyObject *resultobj;
10931 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10932 int result;
10933 PyObject * obj0 = 0 ;
10934 char *kwnames[] = {
10935 (char *) "self", NULL
10936 };
10937
10938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10941 {
10942 PyThreadState* __tstate = wxPyBeginAllowThreads();
10943 result = (int)((wxSpinButton const *)arg1)->GetValue();
10944
10945 wxPyEndAllowThreads(__tstate);
10946 if (PyErr_Occurred()) SWIG_fail;
10947 }
10948 resultobj = SWIG_From_int((int)result);
10949 return resultobj;
10950 fail:
10951 return NULL;
10952 }
10953
10954
10955 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10956 PyObject *resultobj;
10957 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10958 int result;
10959 PyObject * obj0 = 0 ;
10960 char *kwnames[] = {
10961 (char *) "self", NULL
10962 };
10963
10964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (int)((wxSpinButton const *)arg1)->GetMin();
10970
10971 wxPyEndAllowThreads(__tstate);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 }
10974 resultobj = SWIG_From_int((int)result);
10975 return resultobj;
10976 fail:
10977 return NULL;
10978 }
10979
10980
10981 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10982 PyObject *resultobj;
10983 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10984 int result;
10985 PyObject * obj0 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self", NULL
10988 };
10989
10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (int)((wxSpinButton const *)arg1)->GetMax();
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_From_int((int)result);
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj;
11009 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11010 int arg2 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 char *kwnames[] = {
11014 (char *) "self",(char *) "val", NULL
11015 };
11016
11017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11020 arg2 = (int)SWIG_As_int(obj1);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 (arg1)->SetValue(arg2);
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 Py_INCREF(Py_None); resultobj = Py_None;
11030 return resultobj;
11031 fail:
11032 return NULL;
11033 }
11034
11035
11036 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11037 PyObject *resultobj;
11038 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11039 int arg2 ;
11040 PyObject * obj0 = 0 ;
11041 PyObject * obj1 = 0 ;
11042 char *kwnames[] = {
11043 (char *) "self",(char *) "minVal", NULL
11044 };
11045
11046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11049 arg2 = (int)SWIG_As_int(obj1);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 (arg1)->SetMin(arg2);
11054
11055 wxPyEndAllowThreads(__tstate);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 Py_INCREF(Py_None); resultobj = Py_None;
11059 return resultobj;
11060 fail:
11061 return NULL;
11062 }
11063
11064
11065 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11066 PyObject *resultobj;
11067 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11068 int arg2 ;
11069 PyObject * obj0 = 0 ;
11070 PyObject * obj1 = 0 ;
11071 char *kwnames[] = {
11072 (char *) "self",(char *) "maxVal", NULL
11073 };
11074
11075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11078 arg2 = (int)SWIG_As_int(obj1);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 {
11081 PyThreadState* __tstate = wxPyBeginAllowThreads();
11082 (arg1)->SetMax(arg2);
11083
11084 wxPyEndAllowThreads(__tstate);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 }
11087 Py_INCREF(Py_None); resultobj = Py_None;
11088 return resultobj;
11089 fail:
11090 return NULL;
11091 }
11092
11093
11094 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11095 PyObject *resultobj;
11096 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11097 int arg2 ;
11098 int arg3 ;
11099 PyObject * obj0 = 0 ;
11100 PyObject * obj1 = 0 ;
11101 PyObject * obj2 = 0 ;
11102 char *kwnames[] = {
11103 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11104 };
11105
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11109 arg2 = (int)SWIG_As_int(obj1);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 arg3 = (int)SWIG_As_int(obj2);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->SetRange(arg2,arg3);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11130 bool result;
11131 PyObject * obj0 = 0 ;
11132 char *kwnames[] = {
11133 (char *) "self", NULL
11134 };
11135
11136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11142
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11156 PyObject *resultobj;
11157 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11158 wxVisualAttributes result;
11159 PyObject * obj0 = 0 ;
11160 char *kwnames[] = {
11161 (char *) "variant", NULL
11162 };
11163
11164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11165 if (obj0) {
11166 arg1 = (int)SWIG_As_int(obj0);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 if (!wxPyCheckForApp()) SWIG_fail;
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11173
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 {
11178 wxVisualAttributes * resultptr;
11179 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11180 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11181 }
11182 return resultobj;
11183 fail:
11184 return NULL;
11185 }
11186
11187
11188 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11189 PyObject *obj;
11190 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11191 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11192 Py_INCREF(obj);
11193 return Py_BuildValue((char *)"");
11194 }
11195 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11196 PyObject *resultobj;
11197 wxWindow *arg1 = (wxWindow *) 0 ;
11198 int arg2 = (int) -1 ;
11199 wxString const &arg3_defvalue = wxPyEmptyString ;
11200 wxString *arg3 = (wxString *) &arg3_defvalue ;
11201 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11202 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11203 wxSize const &arg5_defvalue = wxDefaultSize ;
11204 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11205 long arg6 = (long) wxSP_ARROW_KEYS ;
11206 int arg7 = (int) 0 ;
11207 int arg8 = (int) 100 ;
11208 int arg9 = (int) 0 ;
11209 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11210 wxString *arg10 = (wxString *) &arg10_defvalue ;
11211 wxSpinCtrl *result;
11212 bool temp3 = False ;
11213 wxPoint temp4 ;
11214 wxSize temp5 ;
11215 bool temp10 = False ;
11216 PyObject * obj0 = 0 ;
11217 PyObject * obj1 = 0 ;
11218 PyObject * obj2 = 0 ;
11219 PyObject * obj3 = 0 ;
11220 PyObject * obj4 = 0 ;
11221 PyObject * obj5 = 0 ;
11222 PyObject * obj6 = 0 ;
11223 PyObject * obj7 = 0 ;
11224 PyObject * obj8 = 0 ;
11225 PyObject * obj9 = 0 ;
11226 char *kwnames[] = {
11227 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11228 };
11229
11230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11233 if (obj1) {
11234 arg2 = (int)SWIG_As_int(obj1);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 }
11237 if (obj2) {
11238 {
11239 arg3 = wxString_in_helper(obj2);
11240 if (arg3 == NULL) SWIG_fail;
11241 temp3 = True;
11242 }
11243 }
11244 if (obj3) {
11245 {
11246 arg4 = &temp4;
11247 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11248 }
11249 }
11250 if (obj4) {
11251 {
11252 arg5 = &temp5;
11253 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11254 }
11255 }
11256 if (obj5) {
11257 arg6 = (long)SWIG_As_long(obj5);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 }
11260 if (obj6) {
11261 arg7 = (int)SWIG_As_int(obj6);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 if (obj7) {
11265 arg8 = (int)SWIG_As_int(obj7);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 if (obj8) {
11269 arg9 = (int)SWIG_As_int(obj8);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 }
11272 if (obj9) {
11273 {
11274 arg10 = wxString_in_helper(obj9);
11275 if (arg10 == NULL) SWIG_fail;
11276 temp10 = True;
11277 }
11278 }
11279 {
11280 if (!wxPyCheckForApp()) SWIG_fail;
11281 PyThreadState* __tstate = wxPyBeginAllowThreads();
11282 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11283
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11288 {
11289 if (temp3)
11290 delete arg3;
11291 }
11292 {
11293 if (temp10)
11294 delete arg10;
11295 }
11296 return resultobj;
11297 fail:
11298 {
11299 if (temp3)
11300 delete arg3;
11301 }
11302 {
11303 if (temp10)
11304 delete arg10;
11305 }
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11311 PyObject *resultobj;
11312 wxSpinCtrl *result;
11313 char *kwnames[] = {
11314 NULL
11315 };
11316
11317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11318 {
11319 if (!wxPyCheckForApp()) SWIG_fail;
11320 PyThreadState* __tstate = wxPyBeginAllowThreads();
11321 result = (wxSpinCtrl *)new wxSpinCtrl();
11322
11323 wxPyEndAllowThreads(__tstate);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 }
11326 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11327 return resultobj;
11328 fail:
11329 return NULL;
11330 }
11331
11332
11333 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11334 PyObject *resultobj;
11335 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11336 wxWindow *arg2 = (wxWindow *) 0 ;
11337 int arg3 = (int) -1 ;
11338 wxString const &arg4_defvalue = wxPyEmptyString ;
11339 wxString *arg4 = (wxString *) &arg4_defvalue ;
11340 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11341 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11342 wxSize const &arg6_defvalue = wxDefaultSize ;
11343 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11344 long arg7 = (long) wxSP_ARROW_KEYS ;
11345 int arg8 = (int) 0 ;
11346 int arg9 = (int) 100 ;
11347 int arg10 = (int) 0 ;
11348 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11349 wxString *arg11 = (wxString *) &arg11_defvalue ;
11350 bool result;
11351 bool temp4 = False ;
11352 wxPoint temp5 ;
11353 wxSize temp6 ;
11354 bool temp11 = False ;
11355 PyObject * obj0 = 0 ;
11356 PyObject * obj1 = 0 ;
11357 PyObject * obj2 = 0 ;
11358 PyObject * obj3 = 0 ;
11359 PyObject * obj4 = 0 ;
11360 PyObject * obj5 = 0 ;
11361 PyObject * obj6 = 0 ;
11362 PyObject * obj7 = 0 ;
11363 PyObject * obj8 = 0 ;
11364 PyObject * obj9 = 0 ;
11365 PyObject * obj10 = 0 ;
11366 char *kwnames[] = {
11367 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11368 };
11369
11370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11373 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11375 if (obj2) {
11376 arg3 = (int)SWIG_As_int(obj2);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 if (obj3) {
11380 {
11381 arg4 = wxString_in_helper(obj3);
11382 if (arg4 == NULL) SWIG_fail;
11383 temp4 = True;
11384 }
11385 }
11386 if (obj4) {
11387 {
11388 arg5 = &temp5;
11389 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11390 }
11391 }
11392 if (obj5) {
11393 {
11394 arg6 = &temp6;
11395 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11396 }
11397 }
11398 if (obj6) {
11399 arg7 = (long)SWIG_As_long(obj6);
11400 if (PyErr_Occurred()) SWIG_fail;
11401 }
11402 if (obj7) {
11403 arg8 = (int)SWIG_As_int(obj7);
11404 if (PyErr_Occurred()) SWIG_fail;
11405 }
11406 if (obj8) {
11407 arg9 = (int)SWIG_As_int(obj8);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 if (obj9) {
11411 arg10 = (int)SWIG_As_int(obj9);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 if (obj10) {
11415 {
11416 arg11 = wxString_in_helper(obj10);
11417 if (arg11 == NULL) SWIG_fail;
11418 temp11 = True;
11419 }
11420 }
11421 {
11422 PyThreadState* __tstate = wxPyBeginAllowThreads();
11423 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11424
11425 wxPyEndAllowThreads(__tstate);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 {
11429 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11430 }
11431 {
11432 if (temp4)
11433 delete arg4;
11434 }
11435 {
11436 if (temp11)
11437 delete arg11;
11438 }
11439 return resultobj;
11440 fail:
11441 {
11442 if (temp4)
11443 delete arg4;
11444 }
11445 {
11446 if (temp11)
11447 delete arg11;
11448 }
11449 return NULL;
11450 }
11451
11452
11453 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11454 PyObject *resultobj;
11455 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11456 int result;
11457 PyObject * obj0 = 0 ;
11458 char *kwnames[] = {
11459 (char *) "self", NULL
11460 };
11461
11462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11468
11469 wxPyEndAllowThreads(__tstate);
11470 if (PyErr_Occurred()) SWIG_fail;
11471 }
11472 resultobj = SWIG_From_int((int)result);
11473 return resultobj;
11474 fail:
11475 return NULL;
11476 }
11477
11478
11479 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11480 PyObject *resultobj;
11481 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11482 int arg2 ;
11483 PyObject * obj0 = 0 ;
11484 PyObject * obj1 = 0 ;
11485 char *kwnames[] = {
11486 (char *) "self",(char *) "value", NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11492 arg2 = (int)SWIG_As_int(obj1);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
11496 (arg1)->SetValue(arg2);
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 Py_INCREF(Py_None); resultobj = Py_None;
11502 return resultobj;
11503 fail:
11504 return NULL;
11505 }
11506
11507
11508 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11509 PyObject *resultobj;
11510 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11511 wxString *arg2 = 0 ;
11512 bool temp2 = False ;
11513 PyObject * obj0 = 0 ;
11514 PyObject * obj1 = 0 ;
11515 char *kwnames[] = {
11516 (char *) "self",(char *) "text", NULL
11517 };
11518
11519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11522 {
11523 arg2 = wxString_in_helper(obj1);
11524 if (arg2 == NULL) SWIG_fail;
11525 temp2 = True;
11526 }
11527 {
11528 PyThreadState* __tstate = wxPyBeginAllowThreads();
11529 (arg1)->SetValue((wxString const &)*arg2);
11530
11531 wxPyEndAllowThreads(__tstate);
11532 if (PyErr_Occurred()) SWIG_fail;
11533 }
11534 Py_INCREF(Py_None); resultobj = Py_None;
11535 {
11536 if (temp2)
11537 delete arg2;
11538 }
11539 return resultobj;
11540 fail:
11541 {
11542 if (temp2)
11543 delete arg2;
11544 }
11545 return NULL;
11546 }
11547
11548
11549 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11550 PyObject *resultobj;
11551 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11552 int arg2 ;
11553 int arg3 ;
11554 PyObject * obj0 = 0 ;
11555 PyObject * obj1 = 0 ;
11556 PyObject * obj2 = 0 ;
11557 char *kwnames[] = {
11558 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11559 };
11560
11561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11564 arg2 = (int)SWIG_As_int(obj1);
11565 if (PyErr_Occurred()) SWIG_fail;
11566 arg3 = (int)SWIG_As_int(obj2);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 {
11569 PyThreadState* __tstate = wxPyBeginAllowThreads();
11570 (arg1)->SetRange(arg2,arg3);
11571
11572 wxPyEndAllowThreads(__tstate);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 }
11575 Py_INCREF(Py_None); resultobj = Py_None;
11576 return resultobj;
11577 fail:
11578 return NULL;
11579 }
11580
11581
11582 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11583 PyObject *resultobj;
11584 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11585 int result;
11586 PyObject * obj0 = 0 ;
11587 char *kwnames[] = {
11588 (char *) "self", NULL
11589 };
11590
11591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11594 {
11595 PyThreadState* __tstate = wxPyBeginAllowThreads();
11596 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11597
11598 wxPyEndAllowThreads(__tstate);
11599 if (PyErr_Occurred()) SWIG_fail;
11600 }
11601 resultobj = SWIG_From_int((int)result);
11602 return resultobj;
11603 fail:
11604 return NULL;
11605 }
11606
11607
11608 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11609 PyObject *resultobj;
11610 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11611 int result;
11612 PyObject * obj0 = 0 ;
11613 char *kwnames[] = {
11614 (char *) "self", NULL
11615 };
11616
11617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11620 {
11621 PyThreadState* __tstate = wxPyBeginAllowThreads();
11622 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11623
11624 wxPyEndAllowThreads(__tstate);
11625 if (PyErr_Occurred()) SWIG_fail;
11626 }
11627 resultobj = SWIG_From_int((int)result);
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj;
11636 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11637 long arg2 ;
11638 long arg3 ;
11639 PyObject * obj0 = 0 ;
11640 PyObject * obj1 = 0 ;
11641 PyObject * obj2 = 0 ;
11642 char *kwnames[] = {
11643 (char *) "self",(char *) "from",(char *) "to", NULL
11644 };
11645
11646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11649 arg2 = (long)SWIG_As_long(obj1);
11650 if (PyErr_Occurred()) SWIG_fail;
11651 arg3 = (long)SWIG_As_long(obj2);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 {
11654 PyThreadState* __tstate = wxPyBeginAllowThreads();
11655 (arg1)->SetSelection(arg2,arg3);
11656
11657 wxPyEndAllowThreads(__tstate);
11658 if (PyErr_Occurred()) SWIG_fail;
11659 }
11660 Py_INCREF(Py_None); resultobj = Py_None;
11661 return resultobj;
11662 fail:
11663 return NULL;
11664 }
11665
11666
11667 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11668 PyObject *resultobj;
11669 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11670 wxVisualAttributes result;
11671 PyObject * obj0 = 0 ;
11672 char *kwnames[] = {
11673 (char *) "variant", NULL
11674 };
11675
11676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11677 if (obj0) {
11678 arg1 = (int)SWIG_As_int(obj0);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 {
11682 if (!wxPyCheckForApp()) SWIG_fail;
11683 PyThreadState* __tstate = wxPyBeginAllowThreads();
11684 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11685
11686 wxPyEndAllowThreads(__tstate);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 }
11689 {
11690 wxVisualAttributes * resultptr;
11691 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11692 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11693 }
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11701 PyObject *obj;
11702 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11703 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11704 Py_INCREF(obj);
11705 return Py_BuildValue((char *)"");
11706 }
11707 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11708 PyObject *resultobj;
11709 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11710 int arg2 = (int) 0 ;
11711 wxSpinEvent *result;
11712 PyObject * obj0 = 0 ;
11713 PyObject * obj1 = 0 ;
11714 char *kwnames[] = {
11715 (char *) "commandType",(char *) "winid", NULL
11716 };
11717
11718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11719 if (obj0) {
11720 arg1 = (wxEventType)SWIG_As_int(obj0);
11721 if (PyErr_Occurred()) SWIG_fail;
11722 }
11723 if (obj1) {
11724 arg2 = (int)SWIG_As_int(obj1);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 {
11728 PyThreadState* __tstate = wxPyBeginAllowThreads();
11729 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11730
11731 wxPyEndAllowThreads(__tstate);
11732 if (PyErr_Occurred()) SWIG_fail;
11733 }
11734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj;
11743 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11744 int result;
11745 PyObject * obj0 = 0 ;
11746 char *kwnames[] = {
11747 (char *) "self", NULL
11748 };
11749
11750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11753 {
11754 PyThreadState* __tstate = wxPyBeginAllowThreads();
11755 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11756
11757 wxPyEndAllowThreads(__tstate);
11758 if (PyErr_Occurred()) SWIG_fail;
11759 }
11760 resultobj = SWIG_From_int((int)result);
11761 return resultobj;
11762 fail:
11763 return NULL;
11764 }
11765
11766
11767 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11768 PyObject *resultobj;
11769 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11770 int arg2 ;
11771 PyObject * obj0 = 0 ;
11772 PyObject * obj1 = 0 ;
11773 char *kwnames[] = {
11774 (char *) "self",(char *) "pos", NULL
11775 };
11776
11777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11780 arg2 = (int)SWIG_As_int(obj1);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 {
11783 PyThreadState* __tstate = wxPyBeginAllowThreads();
11784 (arg1)->SetPosition(arg2);
11785
11786 wxPyEndAllowThreads(__tstate);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 }
11789 Py_INCREF(Py_None); resultobj = Py_None;
11790 return resultobj;
11791 fail:
11792 return NULL;
11793 }
11794
11795
11796 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11797 PyObject *obj;
11798 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11799 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11800 Py_INCREF(obj);
11801 return Py_BuildValue((char *)"");
11802 }
11803 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11804 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11805 return 1;
11806 }
11807
11808
11809 static PyObject *_wrap_RadioBoxNameStr_get() {
11810 PyObject *pyobj;
11811
11812 {
11813 #if wxUSE_UNICODE
11814 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11815 #else
11816 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11817 #endif
11818 }
11819 return pyobj;
11820 }
11821
11822
11823 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11824 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11825 return 1;
11826 }
11827
11828
11829 static PyObject *_wrap_RadioButtonNameStr_get() {
11830 PyObject *pyobj;
11831
11832 {
11833 #if wxUSE_UNICODE
11834 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11835 #else
11836 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11837 #endif
11838 }
11839 return pyobj;
11840 }
11841
11842
11843 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11844 PyObject *resultobj;
11845 wxWindow *arg1 = (wxWindow *) 0 ;
11846 int arg2 = (int) -1 ;
11847 wxString const &arg3_defvalue = wxPyEmptyString ;
11848 wxString *arg3 = (wxString *) &arg3_defvalue ;
11849 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11850 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11851 wxSize const &arg5_defvalue = wxDefaultSize ;
11852 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11853 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11854 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11855 int arg7 = (int) 0 ;
11856 long arg8 = (long) wxRA_HORIZONTAL ;
11857 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11858 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11859 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11860 wxString *arg10 = (wxString *) &arg10_defvalue ;
11861 wxRadioBox *result;
11862 bool temp3 = False ;
11863 wxPoint temp4 ;
11864 wxSize temp5 ;
11865 bool temp6 = False ;
11866 bool temp10 = False ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 PyObject * obj2 = 0 ;
11870 PyObject * obj3 = 0 ;
11871 PyObject * obj4 = 0 ;
11872 PyObject * obj5 = 0 ;
11873 PyObject * obj6 = 0 ;
11874 PyObject * obj7 = 0 ;
11875 PyObject * obj8 = 0 ;
11876 PyObject * obj9 = 0 ;
11877 char *kwnames[] = {
11878 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11879 };
11880
11881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11884 if (obj1) {
11885 arg2 = (int)SWIG_As_int(obj1);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 if (obj2) {
11889 {
11890 arg3 = wxString_in_helper(obj2);
11891 if (arg3 == NULL) SWIG_fail;
11892 temp3 = True;
11893 }
11894 }
11895 if (obj3) {
11896 {
11897 arg4 = &temp4;
11898 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11899 }
11900 }
11901 if (obj4) {
11902 {
11903 arg5 = &temp5;
11904 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11905 }
11906 }
11907 if (obj5) {
11908 {
11909 if (! PySequence_Check(obj5)) {
11910 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11911 SWIG_fail;
11912 }
11913 arg6 = new wxArrayString;
11914 temp6 = True;
11915 int i, len=PySequence_Length(obj5);
11916 for (i=0; i<len; i++) {
11917 PyObject* item = PySequence_GetItem(obj5, i);
11918 #if wxUSE_UNICODE
11919 PyObject* str = PyObject_Unicode(item);
11920 #else
11921 PyObject* str = PyObject_Str(item);
11922 #endif
11923 if (PyErr_Occurred()) SWIG_fail;
11924 arg6->Add(Py2wxString(str));
11925 Py_DECREF(item);
11926 Py_DECREF(str);
11927 }
11928 }
11929 }
11930 if (obj6) {
11931 arg7 = (int)SWIG_As_int(obj6);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 if (obj7) {
11935 arg8 = (long)SWIG_As_long(obj7);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 if (obj8) {
11939 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11940 SWIG_POINTER_EXCEPTION | 0)) == -1)
11941 SWIG_fail;
11942 if (arg9 == NULL) {
11943 PyErr_SetString(PyExc_TypeError,"null reference");
11944 SWIG_fail;
11945 }
11946 }
11947 if (obj9) {
11948 {
11949 arg10 = wxString_in_helper(obj9);
11950 if (arg10 == NULL) SWIG_fail;
11951 temp10 = True;
11952 }
11953 }
11954 {
11955 if (!wxPyCheckForApp()) SWIG_fail;
11956 PyThreadState* __tstate = wxPyBeginAllowThreads();
11957 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);
11958
11959 wxPyEndAllowThreads(__tstate);
11960 if (PyErr_Occurred()) SWIG_fail;
11961 }
11962 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11963 {
11964 if (temp3)
11965 delete arg3;
11966 }
11967 {
11968 if (temp6) delete arg6;
11969 }
11970 {
11971 if (temp10)
11972 delete arg10;
11973 }
11974 return resultobj;
11975 fail:
11976 {
11977 if (temp3)
11978 delete arg3;
11979 }
11980 {
11981 if (temp6) delete arg6;
11982 }
11983 {
11984 if (temp10)
11985 delete arg10;
11986 }
11987 return NULL;
11988 }
11989
11990
11991 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11992 PyObject *resultobj;
11993 wxRadioBox *result;
11994 char *kwnames[] = {
11995 NULL
11996 };
11997
11998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
11999 {
12000 if (!wxPyCheckForApp()) SWIG_fail;
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 result = (wxRadioBox *)new wxRadioBox();
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12017 wxWindow *arg2 = (wxWindow *) 0 ;
12018 int arg3 = (int) -1 ;
12019 wxString const &arg4_defvalue = wxPyEmptyString ;
12020 wxString *arg4 = (wxString *) &arg4_defvalue ;
12021 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12022 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12023 wxSize const &arg6_defvalue = wxDefaultSize ;
12024 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12025 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12026 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12027 int arg8 = (int) 0 ;
12028 long arg9 = (long) wxRA_HORIZONTAL ;
12029 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12030 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12031 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12032 wxString *arg11 = (wxString *) &arg11_defvalue ;
12033 bool result;
12034 bool temp4 = False ;
12035 wxPoint temp5 ;
12036 wxSize temp6 ;
12037 bool temp7 = False ;
12038 bool temp11 = False ;
12039 PyObject * obj0 = 0 ;
12040 PyObject * obj1 = 0 ;
12041 PyObject * obj2 = 0 ;
12042 PyObject * obj3 = 0 ;
12043 PyObject * obj4 = 0 ;
12044 PyObject * obj5 = 0 ;
12045 PyObject * obj6 = 0 ;
12046 PyObject * obj7 = 0 ;
12047 PyObject * obj8 = 0 ;
12048 PyObject * obj9 = 0 ;
12049 PyObject * obj10 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12057 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12059 if (obj2) {
12060 arg3 = (int)SWIG_As_int(obj2);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 }
12063 if (obj3) {
12064 {
12065 arg4 = wxString_in_helper(obj3);
12066 if (arg4 == NULL) SWIG_fail;
12067 temp4 = True;
12068 }
12069 }
12070 if (obj4) {
12071 {
12072 arg5 = &temp5;
12073 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12074 }
12075 }
12076 if (obj5) {
12077 {
12078 arg6 = &temp6;
12079 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12080 }
12081 }
12082 if (obj6) {
12083 {
12084 if (! PySequence_Check(obj6)) {
12085 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12086 SWIG_fail;
12087 }
12088 arg7 = new wxArrayString;
12089 temp7 = True;
12090 int i, len=PySequence_Length(obj6);
12091 for (i=0; i<len; i++) {
12092 PyObject* item = PySequence_GetItem(obj6, i);
12093 #if wxUSE_UNICODE
12094 PyObject* str = PyObject_Unicode(item);
12095 #else
12096 PyObject* str = PyObject_Str(item);
12097 #endif
12098 if (PyErr_Occurred()) SWIG_fail;
12099 arg7->Add(Py2wxString(str));
12100 Py_DECREF(item);
12101 Py_DECREF(str);
12102 }
12103 }
12104 }
12105 if (obj7) {
12106 arg8 = (int)SWIG_As_int(obj7);
12107 if (PyErr_Occurred()) SWIG_fail;
12108 }
12109 if (obj8) {
12110 arg9 = (long)SWIG_As_long(obj8);
12111 if (PyErr_Occurred()) SWIG_fail;
12112 }
12113 if (obj9) {
12114 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12115 SWIG_POINTER_EXCEPTION | 0)) == -1)
12116 SWIG_fail;
12117 if (arg10 == NULL) {
12118 PyErr_SetString(PyExc_TypeError,"null reference");
12119 SWIG_fail;
12120 }
12121 }
12122 if (obj10) {
12123 {
12124 arg11 = wxString_in_helper(obj10);
12125 if (arg11 == NULL) SWIG_fail;
12126 temp11 = True;
12127 }
12128 }
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 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);
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12138 }
12139 {
12140 if (temp4)
12141 delete arg4;
12142 }
12143 {
12144 if (temp7) delete arg7;
12145 }
12146 {
12147 if (temp11)
12148 delete arg11;
12149 }
12150 return resultobj;
12151 fail:
12152 {
12153 if (temp4)
12154 delete arg4;
12155 }
12156 {
12157 if (temp7) delete arg7;
12158 }
12159 {
12160 if (temp11)
12161 delete arg11;
12162 }
12163 return NULL;
12164 }
12165
12166
12167 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12170 int arg2 ;
12171 PyObject * obj0 = 0 ;
12172 PyObject * obj1 = 0 ;
12173 char *kwnames[] = {
12174 (char *) "self",(char *) "n", NULL
12175 };
12176
12177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12180 arg2 = (int)SWIG_As_int(obj1);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 (arg1)->SetSelection(arg2);
12185
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 Py_INCREF(Py_None); resultobj = Py_None;
12190 return resultobj;
12191 fail:
12192 return NULL;
12193 }
12194
12195
12196 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12197 PyObject *resultobj;
12198 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12199 int result;
12200 PyObject * obj0 = 0 ;
12201 char *kwnames[] = {
12202 (char *) "self", NULL
12203 };
12204
12205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12208 {
12209 PyThreadState* __tstate = wxPyBeginAllowThreads();
12210 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12211
12212 wxPyEndAllowThreads(__tstate);
12213 if (PyErr_Occurred()) SWIG_fail;
12214 }
12215 resultobj = SWIG_From_int((int)result);
12216 return resultobj;
12217 fail:
12218 return NULL;
12219 }
12220
12221
12222 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12223 PyObject *resultobj;
12224 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12225 wxString result;
12226 PyObject * obj0 = 0 ;
12227 char *kwnames[] = {
12228 (char *) "self", NULL
12229 };
12230
12231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12234 {
12235 PyThreadState* __tstate = wxPyBeginAllowThreads();
12236 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12237
12238 wxPyEndAllowThreads(__tstate);
12239 if (PyErr_Occurred()) SWIG_fail;
12240 }
12241 {
12242 #if wxUSE_UNICODE
12243 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12244 #else
12245 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12246 #endif
12247 }
12248 return resultobj;
12249 fail:
12250 return NULL;
12251 }
12252
12253
12254 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12255 PyObject *resultobj;
12256 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12257 wxString *arg2 = 0 ;
12258 bool result;
12259 bool temp2 = False ;
12260 PyObject * obj0 = 0 ;
12261 PyObject * obj1 = 0 ;
12262 char *kwnames[] = {
12263 (char *) "self",(char *) "s", NULL
12264 };
12265
12266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12269 {
12270 arg2 = wxString_in_helper(obj1);
12271 if (arg2 == NULL) SWIG_fail;
12272 temp2 = True;
12273 }
12274 {
12275 PyThreadState* __tstate = wxPyBeginAllowThreads();
12276 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12277
12278 wxPyEndAllowThreads(__tstate);
12279 if (PyErr_Occurred()) SWIG_fail;
12280 }
12281 {
12282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12283 }
12284 {
12285 if (temp2)
12286 delete arg2;
12287 }
12288 return resultobj;
12289 fail:
12290 {
12291 if (temp2)
12292 delete arg2;
12293 }
12294 return NULL;
12295 }
12296
12297
12298 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12299 PyObject *resultobj;
12300 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12301 int result;
12302 PyObject * obj0 = 0 ;
12303 char *kwnames[] = {
12304 (char *) "self", NULL
12305 };
12306
12307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12310 {
12311 PyThreadState* __tstate = wxPyBeginAllowThreads();
12312 result = (int)((wxRadioBox const *)arg1)->GetCount();
12313
12314 wxPyEndAllowThreads(__tstate);
12315 if (PyErr_Occurred()) SWIG_fail;
12316 }
12317 resultobj = SWIG_From_int((int)result);
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12325 PyObject *resultobj;
12326 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12327 wxString *arg2 = 0 ;
12328 int result;
12329 bool temp2 = False ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 char *kwnames[] = {
12333 (char *) "self",(char *) "s", NULL
12334 };
12335
12336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12339 {
12340 arg2 = wxString_in_helper(obj1);
12341 if (arg2 == NULL) SWIG_fail;
12342 temp2 = True;
12343 }
12344 {
12345 PyThreadState* __tstate = wxPyBeginAllowThreads();
12346 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12347
12348 wxPyEndAllowThreads(__tstate);
12349 if (PyErr_Occurred()) SWIG_fail;
12350 }
12351 resultobj = SWIG_From_int((int)result);
12352 {
12353 if (temp2)
12354 delete arg2;
12355 }
12356 return resultobj;
12357 fail:
12358 {
12359 if (temp2)
12360 delete arg2;
12361 }
12362 return NULL;
12363 }
12364
12365
12366 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj;
12368 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12369 int arg2 ;
12370 wxString result;
12371 PyObject * obj0 = 0 ;
12372 PyObject * obj1 = 0 ;
12373 char *kwnames[] = {
12374 (char *) "self",(char *) "n", NULL
12375 };
12376
12377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12380 arg2 = (int)SWIG_As_int(obj1);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 {
12383 PyThreadState* __tstate = wxPyBeginAllowThreads();
12384 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12385
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 {
12390 #if wxUSE_UNICODE
12391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12392 #else
12393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12394 #endif
12395 }
12396 return resultobj;
12397 fail:
12398 return NULL;
12399 }
12400
12401
12402 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12403 PyObject *resultobj;
12404 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12405 int arg2 ;
12406 wxString *arg3 = 0 ;
12407 bool temp3 = False ;
12408 PyObject * obj0 = 0 ;
12409 PyObject * obj1 = 0 ;
12410 PyObject * obj2 = 0 ;
12411 char *kwnames[] = {
12412 (char *) "self",(char *) "n",(char *) "label", NULL
12413 };
12414
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12418 arg2 = (int)SWIG_As_int(obj1);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 {
12421 arg3 = wxString_in_helper(obj2);
12422 if (arg3 == NULL) SWIG_fail;
12423 temp3 = True;
12424 }
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 (arg1)->SetString(arg2,(wxString const &)*arg3);
12428
12429 wxPyEndAllowThreads(__tstate);
12430 if (PyErr_Occurred()) SWIG_fail;
12431 }
12432 Py_INCREF(Py_None); resultobj = Py_None;
12433 {
12434 if (temp3)
12435 delete arg3;
12436 }
12437 return resultobj;
12438 fail:
12439 {
12440 if (temp3)
12441 delete arg3;
12442 }
12443 return NULL;
12444 }
12445
12446
12447 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12450 int arg2 ;
12451 bool arg3 = (bool) True ;
12452 PyObject * obj0 = 0 ;
12453 PyObject * obj1 = 0 ;
12454 PyObject * obj2 = 0 ;
12455 char *kwnames[] = {
12456 (char *) "self",(char *) "n",(char *) "enable", NULL
12457 };
12458
12459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12462 arg2 = (int)SWIG_As_int(obj1);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 if (obj2) {
12465 arg3 = (bool)SWIG_As_bool(obj2);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 {
12469 PyThreadState* __tstate = wxPyBeginAllowThreads();
12470 (arg1)->Enable(arg2,arg3);
12471
12472 wxPyEndAllowThreads(__tstate);
12473 if (PyErr_Occurred()) SWIG_fail;
12474 }
12475 Py_INCREF(Py_None); resultobj = Py_None;
12476 return resultobj;
12477 fail:
12478 return NULL;
12479 }
12480
12481
12482 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12483 PyObject *resultobj;
12484 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12485 int arg2 ;
12486 bool arg3 = (bool) True ;
12487 PyObject * obj0 = 0 ;
12488 PyObject * obj1 = 0 ;
12489 PyObject * obj2 = 0 ;
12490 char *kwnames[] = {
12491 (char *) "self",(char *) "n",(char *) "show", NULL
12492 };
12493
12494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12497 arg2 = (int)SWIG_As_int(obj1);
12498 if (PyErr_Occurred()) SWIG_fail;
12499 if (obj2) {
12500 arg3 = (bool)SWIG_As_bool(obj2);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 {
12504 PyThreadState* __tstate = wxPyBeginAllowThreads();
12505 (arg1)->Show(arg2,arg3);
12506
12507 wxPyEndAllowThreads(__tstate);
12508 if (PyErr_Occurred()) SWIG_fail;
12509 }
12510 Py_INCREF(Py_None); resultobj = Py_None;
12511 return resultobj;
12512 fail:
12513 return NULL;
12514 }
12515
12516
12517 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12518 PyObject *resultobj;
12519 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12520 int result;
12521 PyObject * obj0 = 0 ;
12522 char *kwnames[] = {
12523 (char *) "self", NULL
12524 };
12525
12526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 resultobj = SWIG_From_int((int)result);
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12546 int result;
12547 PyObject * obj0 = 0 ;
12548 char *kwnames[] = {
12549 (char *) "self", NULL
12550 };
12551
12552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 resultobj = SWIG_From_int((int)result);
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12572 int arg2 ;
12573 int arg3 ;
12574 long arg4 ;
12575 int result;
12576 PyObject * obj0 = 0 ;
12577 PyObject * obj1 = 0 ;
12578 PyObject * obj2 = 0 ;
12579 PyObject * obj3 = 0 ;
12580 char *kwnames[] = {
12581 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12582 };
12583
12584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12587 arg2 = (int)SWIG_As_int(obj1);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 arg3 = (int)SWIG_As_int(obj2);
12590 if (PyErr_Occurred()) SWIG_fail;
12591 arg4 = (long)SWIG_As_long(obj3);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 {
12594 PyThreadState* __tstate = wxPyBeginAllowThreads();
12595 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12596
12597 wxPyEndAllowThreads(__tstate);
12598 if (PyErr_Occurred()) SWIG_fail;
12599 }
12600 resultobj = SWIG_From_int((int)result);
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12608 PyObject *resultobj;
12609 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12610 wxVisualAttributes result;
12611 PyObject * obj0 = 0 ;
12612 char *kwnames[] = {
12613 (char *) "variant", NULL
12614 };
12615
12616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12617 if (obj0) {
12618 arg1 = (int)SWIG_As_int(obj0);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 {
12622 if (!wxPyCheckForApp()) SWIG_fail;
12623 PyThreadState* __tstate = wxPyBeginAllowThreads();
12624 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12625
12626 wxPyEndAllowThreads(__tstate);
12627 if (PyErr_Occurred()) SWIG_fail;
12628 }
12629 {
12630 wxVisualAttributes * resultptr;
12631 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12632 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12633 }
12634 return resultobj;
12635 fail:
12636 return NULL;
12637 }
12638
12639
12640 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12641 PyObject *obj;
12642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12643 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12644 Py_INCREF(obj);
12645 return Py_BuildValue((char *)"");
12646 }
12647 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj;
12649 wxWindow *arg1 = (wxWindow *) 0 ;
12650 int arg2 = (int) -1 ;
12651 wxString const &arg3_defvalue = wxPyEmptyString ;
12652 wxString *arg3 = (wxString *) &arg3_defvalue ;
12653 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12654 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12655 wxSize const &arg5_defvalue = wxDefaultSize ;
12656 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12657 long arg6 = (long) 0 ;
12658 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12659 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12660 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12661 wxString *arg8 = (wxString *) &arg8_defvalue ;
12662 wxRadioButton *result;
12663 bool temp3 = False ;
12664 wxPoint temp4 ;
12665 wxSize temp5 ;
12666 bool temp8 = False ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 PyObject * obj2 = 0 ;
12670 PyObject * obj3 = 0 ;
12671 PyObject * obj4 = 0 ;
12672 PyObject * obj5 = 0 ;
12673 PyObject * obj6 = 0 ;
12674 PyObject * obj7 = 0 ;
12675 char *kwnames[] = {
12676 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12677 };
12678
12679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12682 if (obj1) {
12683 arg2 = (int)SWIG_As_int(obj1);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 if (obj2) {
12687 {
12688 arg3 = wxString_in_helper(obj2);
12689 if (arg3 == NULL) SWIG_fail;
12690 temp3 = True;
12691 }
12692 }
12693 if (obj3) {
12694 {
12695 arg4 = &temp4;
12696 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12697 }
12698 }
12699 if (obj4) {
12700 {
12701 arg5 = &temp5;
12702 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12703 }
12704 }
12705 if (obj5) {
12706 arg6 = (long)SWIG_As_long(obj5);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 if (obj6) {
12710 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12711 SWIG_POINTER_EXCEPTION | 0)) == -1)
12712 SWIG_fail;
12713 if (arg7 == NULL) {
12714 PyErr_SetString(PyExc_TypeError,"null reference");
12715 SWIG_fail;
12716 }
12717 }
12718 if (obj7) {
12719 {
12720 arg8 = wxString_in_helper(obj7);
12721 if (arg8 == NULL) SWIG_fail;
12722 temp8 = True;
12723 }
12724 }
12725 {
12726 if (!wxPyCheckForApp()) SWIG_fail;
12727 PyThreadState* __tstate = wxPyBeginAllowThreads();
12728 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12729
12730 wxPyEndAllowThreads(__tstate);
12731 if (PyErr_Occurred()) SWIG_fail;
12732 }
12733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12734 {
12735 if (temp3)
12736 delete arg3;
12737 }
12738 {
12739 if (temp8)
12740 delete arg8;
12741 }
12742 return resultobj;
12743 fail:
12744 {
12745 if (temp3)
12746 delete arg3;
12747 }
12748 {
12749 if (temp8)
12750 delete arg8;
12751 }
12752 return NULL;
12753 }
12754
12755
12756 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj;
12758 wxRadioButton *result;
12759 char *kwnames[] = {
12760 NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12764 {
12765 if (!wxPyCheckForApp()) SWIG_fail;
12766 PyThreadState* __tstate = wxPyBeginAllowThreads();
12767 result = (wxRadioButton *)new wxRadioButton();
12768
12769 wxPyEndAllowThreads(__tstate);
12770 if (PyErr_Occurred()) SWIG_fail;
12771 }
12772 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12773 return resultobj;
12774 fail:
12775 return NULL;
12776 }
12777
12778
12779 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12780 PyObject *resultobj;
12781 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12782 wxWindow *arg2 = (wxWindow *) 0 ;
12783 int arg3 = (int) -1 ;
12784 wxString const &arg4_defvalue = wxPyEmptyString ;
12785 wxString *arg4 = (wxString *) &arg4_defvalue ;
12786 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12787 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12788 wxSize const &arg6_defvalue = wxDefaultSize ;
12789 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12790 long arg7 = (long) 0 ;
12791 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12792 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12793 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12794 wxString *arg9 = (wxString *) &arg9_defvalue ;
12795 bool result;
12796 bool temp4 = False ;
12797 wxPoint temp5 ;
12798 wxSize temp6 ;
12799 bool temp9 = False ;
12800 PyObject * obj0 = 0 ;
12801 PyObject * obj1 = 0 ;
12802 PyObject * obj2 = 0 ;
12803 PyObject * obj3 = 0 ;
12804 PyObject * obj4 = 0 ;
12805 PyObject * obj5 = 0 ;
12806 PyObject * obj6 = 0 ;
12807 PyObject * obj7 = 0 ;
12808 PyObject * obj8 = 0 ;
12809 char *kwnames[] = {
12810 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12811 };
12812
12813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12816 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12818 if (obj2) {
12819 arg3 = (int)SWIG_As_int(obj2);
12820 if (PyErr_Occurred()) SWIG_fail;
12821 }
12822 if (obj3) {
12823 {
12824 arg4 = wxString_in_helper(obj3);
12825 if (arg4 == NULL) SWIG_fail;
12826 temp4 = True;
12827 }
12828 }
12829 if (obj4) {
12830 {
12831 arg5 = &temp5;
12832 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12833 }
12834 }
12835 if (obj5) {
12836 {
12837 arg6 = &temp6;
12838 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12839 }
12840 }
12841 if (obj6) {
12842 arg7 = (long)SWIG_As_long(obj6);
12843 if (PyErr_Occurred()) SWIG_fail;
12844 }
12845 if (obj7) {
12846 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12847 SWIG_POINTER_EXCEPTION | 0)) == -1)
12848 SWIG_fail;
12849 if (arg8 == NULL) {
12850 PyErr_SetString(PyExc_TypeError,"null reference");
12851 SWIG_fail;
12852 }
12853 }
12854 if (obj8) {
12855 {
12856 arg9 = wxString_in_helper(obj8);
12857 if (arg9 == NULL) SWIG_fail;
12858 temp9 = True;
12859 }
12860 }
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 {
12869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12870 }
12871 {
12872 if (temp4)
12873 delete arg4;
12874 }
12875 {
12876 if (temp9)
12877 delete arg9;
12878 }
12879 return resultobj;
12880 fail:
12881 {
12882 if (temp4)
12883 delete arg4;
12884 }
12885 {
12886 if (temp9)
12887 delete arg9;
12888 }
12889 return NULL;
12890 }
12891
12892
12893 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj;
12895 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12896 bool result;
12897 PyObject * obj0 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12905 {
12906 PyThreadState* __tstate = wxPyBeginAllowThreads();
12907 result = (bool)(arg1)->GetValue();
12908
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 {
12913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12914 }
12915 return resultobj;
12916 fail:
12917 return NULL;
12918 }
12919
12920
12921 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12922 PyObject *resultobj;
12923 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12924 bool arg2 ;
12925 PyObject * obj0 = 0 ;
12926 PyObject * obj1 = 0 ;
12927 char *kwnames[] = {
12928 (char *) "self",(char *) "value", NULL
12929 };
12930
12931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12934 arg2 = (bool)SWIG_As_bool(obj1);
12935 if (PyErr_Occurred()) SWIG_fail;
12936 {
12937 PyThreadState* __tstate = wxPyBeginAllowThreads();
12938 (arg1)->SetValue(arg2);
12939
12940 wxPyEndAllowThreads(__tstate);
12941 if (PyErr_Occurred()) SWIG_fail;
12942 }
12943 Py_INCREF(Py_None); resultobj = Py_None;
12944 return resultobj;
12945 fail:
12946 return NULL;
12947 }
12948
12949
12950 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12951 PyObject *resultobj;
12952 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12953 wxVisualAttributes result;
12954 PyObject * obj0 = 0 ;
12955 char *kwnames[] = {
12956 (char *) "variant", NULL
12957 };
12958
12959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12960 if (obj0) {
12961 arg1 = (int)SWIG_As_int(obj0);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 {
12965 if (!wxPyCheckForApp()) SWIG_fail;
12966 PyThreadState* __tstate = wxPyBeginAllowThreads();
12967 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12968
12969 wxPyEndAllowThreads(__tstate);
12970 if (PyErr_Occurred()) SWIG_fail;
12971 }
12972 {
12973 wxVisualAttributes * resultptr;
12974 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12975 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12976 }
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12984 PyObject *obj;
12985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12986 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12987 Py_INCREF(obj);
12988 return Py_BuildValue((char *)"");
12989 }
12990 static int _wrap_SliderNameStr_set(PyObject *) {
12991 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12992 return 1;
12993 }
12994
12995
12996 static PyObject *_wrap_SliderNameStr_get() {
12997 PyObject *pyobj;
12998
12999 {
13000 #if wxUSE_UNICODE
13001 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13002 #else
13003 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13004 #endif
13005 }
13006 return pyobj;
13007 }
13008
13009
13010 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13011 PyObject *resultobj;
13012 wxWindow *arg1 = (wxWindow *) 0 ;
13013 int arg2 = (int) -1 ;
13014 int arg3 = (int) 0 ;
13015 int arg4 = (int) 0 ;
13016 int arg5 = (int) 100 ;
13017 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13018 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13019 wxSize const &arg7_defvalue = wxDefaultSize ;
13020 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13021 long arg8 = (long) wxSL_HORIZONTAL ;
13022 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13023 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13024 wxString const &arg10_defvalue = wxPySliderNameStr ;
13025 wxString *arg10 = (wxString *) &arg10_defvalue ;
13026 wxSlider *result;
13027 wxPoint temp6 ;
13028 wxSize temp7 ;
13029 bool temp10 = False ;
13030 PyObject * obj0 = 0 ;
13031 PyObject * obj1 = 0 ;
13032 PyObject * obj2 = 0 ;
13033 PyObject * obj3 = 0 ;
13034 PyObject * obj4 = 0 ;
13035 PyObject * obj5 = 0 ;
13036 PyObject * obj6 = 0 ;
13037 PyObject * obj7 = 0 ;
13038 PyObject * obj8 = 0 ;
13039 PyObject * obj9 = 0 ;
13040 char *kwnames[] = {
13041 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13042 };
13043
13044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13047 if (obj1) {
13048 arg2 = (int)SWIG_As_int(obj1);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 if (obj2) {
13052 arg3 = (int)SWIG_As_int(obj2);
13053 if (PyErr_Occurred()) SWIG_fail;
13054 }
13055 if (obj3) {
13056 arg4 = (int)SWIG_As_int(obj3);
13057 if (PyErr_Occurred()) SWIG_fail;
13058 }
13059 if (obj4) {
13060 arg5 = (int)SWIG_As_int(obj4);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 if (obj5) {
13064 {
13065 arg6 = &temp6;
13066 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13067 }
13068 }
13069 if (obj6) {
13070 {
13071 arg7 = &temp7;
13072 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13073 }
13074 }
13075 if (obj7) {
13076 arg8 = (long)SWIG_As_long(obj7);
13077 if (PyErr_Occurred()) SWIG_fail;
13078 }
13079 if (obj8) {
13080 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13081 SWIG_POINTER_EXCEPTION | 0)) == -1)
13082 SWIG_fail;
13083 if (arg9 == NULL) {
13084 PyErr_SetString(PyExc_TypeError,"null reference");
13085 SWIG_fail;
13086 }
13087 }
13088 if (obj9) {
13089 {
13090 arg10 = wxString_in_helper(obj9);
13091 if (arg10 == NULL) SWIG_fail;
13092 temp10 = True;
13093 }
13094 }
13095 {
13096 if (!wxPyCheckForApp()) SWIG_fail;
13097 PyThreadState* __tstate = wxPyBeginAllowThreads();
13098 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13099
13100 wxPyEndAllowThreads(__tstate);
13101 if (PyErr_Occurred()) SWIG_fail;
13102 }
13103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13104 {
13105 if (temp10)
13106 delete arg10;
13107 }
13108 return resultobj;
13109 fail:
13110 {
13111 if (temp10)
13112 delete arg10;
13113 }
13114 return NULL;
13115 }
13116
13117
13118 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13119 PyObject *resultobj;
13120 wxSlider *result;
13121 char *kwnames[] = {
13122 NULL
13123 };
13124
13125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13126 {
13127 if (!wxPyCheckForApp()) SWIG_fail;
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = (wxSlider *)new wxSlider();
13130
13131 wxPyEndAllowThreads(__tstate);
13132 if (PyErr_Occurred()) SWIG_fail;
13133 }
13134 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxSlider *arg1 = (wxSlider *) 0 ;
13144 wxWindow *arg2 = (wxWindow *) 0 ;
13145 int arg3 = (int) -1 ;
13146 int arg4 = (int) 0 ;
13147 int arg5 = (int) 0 ;
13148 int arg6 = (int) 100 ;
13149 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13150 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13151 wxSize const &arg8_defvalue = wxDefaultSize ;
13152 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13153 long arg9 = (long) wxSL_HORIZONTAL ;
13154 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13155 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13156 wxString const &arg11_defvalue = wxPySliderNameStr ;
13157 wxString *arg11 = (wxString *) &arg11_defvalue ;
13158 bool result;
13159 wxPoint temp7 ;
13160 wxSize temp8 ;
13161 bool temp11 = False ;
13162 PyObject * obj0 = 0 ;
13163 PyObject * obj1 = 0 ;
13164 PyObject * obj2 = 0 ;
13165 PyObject * obj3 = 0 ;
13166 PyObject * obj4 = 0 ;
13167 PyObject * obj5 = 0 ;
13168 PyObject * obj6 = 0 ;
13169 PyObject * obj7 = 0 ;
13170 PyObject * obj8 = 0 ;
13171 PyObject * obj9 = 0 ;
13172 PyObject * obj10 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13175 };
13176
13177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13180 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13182 if (obj2) {
13183 arg3 = (int)SWIG_As_int(obj2);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 if (obj3) {
13187 arg4 = (int)SWIG_As_int(obj3);
13188 if (PyErr_Occurred()) SWIG_fail;
13189 }
13190 if (obj4) {
13191 arg5 = (int)SWIG_As_int(obj4);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 if (obj5) {
13195 arg6 = (int)SWIG_As_int(obj5);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 if (obj6) {
13199 {
13200 arg7 = &temp7;
13201 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13202 }
13203 }
13204 if (obj7) {
13205 {
13206 arg8 = &temp8;
13207 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13208 }
13209 }
13210 if (obj8) {
13211 arg9 = (long)SWIG_As_long(obj8);
13212 if (PyErr_Occurred()) SWIG_fail;
13213 }
13214 if (obj9) {
13215 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13216 SWIG_POINTER_EXCEPTION | 0)) == -1)
13217 SWIG_fail;
13218 if (arg10 == NULL) {
13219 PyErr_SetString(PyExc_TypeError,"null reference");
13220 SWIG_fail;
13221 }
13222 }
13223 if (obj10) {
13224 {
13225 arg11 = wxString_in_helper(obj10);
13226 if (arg11 == NULL) SWIG_fail;
13227 temp11 = True;
13228 }
13229 }
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13233
13234 wxPyEndAllowThreads(__tstate);
13235 if (PyErr_Occurred()) SWIG_fail;
13236 }
13237 {
13238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13239 }
13240 {
13241 if (temp11)
13242 delete arg11;
13243 }
13244 return resultobj;
13245 fail:
13246 {
13247 if (temp11)
13248 delete arg11;
13249 }
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxSlider *arg1 = (wxSlider *) 0 ;
13257 int result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = (int)((wxSlider const *)arg1)->GetValue();
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 resultobj = SWIG_From_int((int)result);
13274 return resultobj;
13275 fail:
13276 return NULL;
13277 }
13278
13279
13280 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxSlider *arg1 = (wxSlider *) 0 ;
13283 int arg2 ;
13284 PyObject * obj0 = 0 ;
13285 PyObject * obj1 = 0 ;
13286 char *kwnames[] = {
13287 (char *) "self",(char *) "value", NULL
13288 };
13289
13290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13293 arg2 = (int)SWIG_As_int(obj1);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 {
13296 PyThreadState* __tstate = wxPyBeginAllowThreads();
13297 (arg1)->SetValue(arg2);
13298
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 Py_INCREF(Py_None); resultobj = Py_None;
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxSlider *arg1 = (wxSlider *) 0 ;
13312 int arg2 ;
13313 int arg3 ;
13314 PyObject * obj0 = 0 ;
13315 PyObject * obj1 = 0 ;
13316 PyObject * obj2 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13324 arg2 = (int)SWIG_As_int(obj1);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 arg3 = (int)SWIG_As_int(obj2);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 (arg1)->SetRange(arg2,arg3);
13331
13332 wxPyEndAllowThreads(__tstate);
13333 if (PyErr_Occurred()) SWIG_fail;
13334 }
13335 Py_INCREF(Py_None); resultobj = Py_None;
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13343 PyObject *resultobj;
13344 wxSlider *arg1 = (wxSlider *) 0 ;
13345 int result;
13346 PyObject * obj0 = 0 ;
13347 char *kwnames[] = {
13348 (char *) "self", NULL
13349 };
13350
13351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 result = (int)((wxSlider const *)arg1)->GetMin();
13357
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 resultobj = SWIG_From_int((int)result);
13362 return resultobj;
13363 fail:
13364 return NULL;
13365 }
13366
13367
13368 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13369 PyObject *resultobj;
13370 wxSlider *arg1 = (wxSlider *) 0 ;
13371 int result;
13372 PyObject * obj0 = 0 ;
13373 char *kwnames[] = {
13374 (char *) "self", NULL
13375 };
13376
13377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13380 {
13381 PyThreadState* __tstate = wxPyBeginAllowThreads();
13382 result = (int)((wxSlider const *)arg1)->GetMax();
13383
13384 wxPyEndAllowThreads(__tstate);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 }
13387 resultobj = SWIG_From_int((int)result);
13388 return resultobj;
13389 fail:
13390 return NULL;
13391 }
13392
13393
13394 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13395 PyObject *resultobj;
13396 wxSlider *arg1 = (wxSlider *) 0 ;
13397 int arg2 ;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 char *kwnames[] = {
13401 (char *) "self",(char *) "minValue", NULL
13402 };
13403
13404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13407 arg2 = (int)SWIG_As_int(obj1);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 (arg1)->SetMin(arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 Py_INCREF(Py_None); resultobj = Py_None;
13417 return resultobj;
13418 fail:
13419 return NULL;
13420 }
13421
13422
13423 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13424 PyObject *resultobj;
13425 wxSlider *arg1 = (wxSlider *) 0 ;
13426 int arg2 ;
13427 PyObject * obj0 = 0 ;
13428 PyObject * obj1 = 0 ;
13429 char *kwnames[] = {
13430 (char *) "self",(char *) "maxValue", NULL
13431 };
13432
13433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13436 arg2 = (int)SWIG_As_int(obj1);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 {
13439 PyThreadState* __tstate = wxPyBeginAllowThreads();
13440 (arg1)->SetMax(arg2);
13441
13442 wxPyEndAllowThreads(__tstate);
13443 if (PyErr_Occurred()) SWIG_fail;
13444 }
13445 Py_INCREF(Py_None); resultobj = Py_None;
13446 return resultobj;
13447 fail:
13448 return NULL;
13449 }
13450
13451
13452 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj;
13454 wxSlider *arg1 = (wxSlider *) 0 ;
13455 int arg2 ;
13456 PyObject * obj0 = 0 ;
13457 PyObject * obj1 = 0 ;
13458 char *kwnames[] = {
13459 (char *) "self",(char *) "lineSize", NULL
13460 };
13461
13462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13465 arg2 = (int)SWIG_As_int(obj1);
13466 if (PyErr_Occurred()) SWIG_fail;
13467 {
13468 PyThreadState* __tstate = wxPyBeginAllowThreads();
13469 (arg1)->SetLineSize(arg2);
13470
13471 wxPyEndAllowThreads(__tstate);
13472 if (PyErr_Occurred()) SWIG_fail;
13473 }
13474 Py_INCREF(Py_None); resultobj = Py_None;
13475 return resultobj;
13476 fail:
13477 return NULL;
13478 }
13479
13480
13481 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13482 PyObject *resultobj;
13483 wxSlider *arg1 = (wxSlider *) 0 ;
13484 int arg2 ;
13485 PyObject * obj0 = 0 ;
13486 PyObject * obj1 = 0 ;
13487 char *kwnames[] = {
13488 (char *) "self",(char *) "pageSize", NULL
13489 };
13490
13491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13494 arg2 = (int)SWIG_As_int(obj1);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 {
13497 PyThreadState* __tstate = wxPyBeginAllowThreads();
13498 (arg1)->SetPageSize(arg2);
13499
13500 wxPyEndAllowThreads(__tstate);
13501 if (PyErr_Occurred()) SWIG_fail;
13502 }
13503 Py_INCREF(Py_None); resultobj = Py_None;
13504 return resultobj;
13505 fail:
13506 return NULL;
13507 }
13508
13509
13510 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13511 PyObject *resultobj;
13512 wxSlider *arg1 = (wxSlider *) 0 ;
13513 int result;
13514 PyObject * obj0 = 0 ;
13515 char *kwnames[] = {
13516 (char *) "self", NULL
13517 };
13518
13519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 result = (int)((wxSlider const *)arg1)->GetLineSize();
13525
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 resultobj = SWIG_From_int((int)result);
13530 return resultobj;
13531 fail:
13532 return NULL;
13533 }
13534
13535
13536 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj;
13538 wxSlider *arg1 = (wxSlider *) 0 ;
13539 int result;
13540 PyObject * obj0 = 0 ;
13541 char *kwnames[] = {
13542 (char *) "self", NULL
13543 };
13544
13545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (int)((wxSlider const *)arg1)->GetPageSize();
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_From_int((int)result);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxSlider *arg1 = (wxSlider *) 0 ;
13565 int arg2 ;
13566 PyObject * obj0 = 0 ;
13567 PyObject * obj1 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "self",(char *) "lenPixels", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13575 arg2 = (int)SWIG_As_int(obj1);
13576 if (PyErr_Occurred()) SWIG_fail;
13577 {
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 (arg1)->SetThumbLength(arg2);
13580
13581 wxPyEndAllowThreads(__tstate);
13582 if (PyErr_Occurred()) SWIG_fail;
13583 }
13584 Py_INCREF(Py_None); resultobj = Py_None;
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj;
13593 wxSlider *arg1 = (wxSlider *) 0 ;
13594 int result;
13595 PyObject * obj0 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13606
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = SWIG_From_int((int)result);
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13618 PyObject *resultobj;
13619 wxSlider *arg1 = (wxSlider *) 0 ;
13620 int arg2 ;
13621 int arg3 = (int) 1 ;
13622 PyObject * obj0 = 0 ;
13623 PyObject * obj1 = 0 ;
13624 PyObject * obj2 = 0 ;
13625 char *kwnames[] = {
13626 (char *) "self",(char *) "n",(char *) "pos", NULL
13627 };
13628
13629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13632 arg2 = (int)SWIG_As_int(obj1);
13633 if (PyErr_Occurred()) SWIG_fail;
13634 if (obj2) {
13635 arg3 = (int)SWIG_As_int(obj2);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 {
13639 PyThreadState* __tstate = wxPyBeginAllowThreads();
13640 (arg1)->SetTickFreq(arg2,arg3);
13641
13642 wxPyEndAllowThreads(__tstate);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 Py_INCREF(Py_None); resultobj = Py_None;
13646 return resultobj;
13647 fail:
13648 return NULL;
13649 }
13650
13651
13652 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13653 PyObject *resultobj;
13654 wxSlider *arg1 = (wxSlider *) 0 ;
13655 int result;
13656 PyObject * obj0 = 0 ;
13657 char *kwnames[] = {
13658 (char *) "self", NULL
13659 };
13660
13661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 resultobj = SWIG_From_int((int)result);
13672 return resultobj;
13673 fail:
13674 return NULL;
13675 }
13676
13677
13678 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13679 PyObject *resultobj;
13680 wxSlider *arg1 = (wxSlider *) 0 ;
13681 PyObject * obj0 = 0 ;
13682 char *kwnames[] = {
13683 (char *) "self", NULL
13684 };
13685
13686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13689 {
13690 PyThreadState* __tstate = wxPyBeginAllowThreads();
13691 (arg1)->ClearTicks();
13692
13693 wxPyEndAllowThreads(__tstate);
13694 if (PyErr_Occurred()) SWIG_fail;
13695 }
13696 Py_INCREF(Py_None); resultobj = Py_None;
13697 return resultobj;
13698 fail:
13699 return NULL;
13700 }
13701
13702
13703 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj;
13705 wxSlider *arg1 = (wxSlider *) 0 ;
13706 int arg2 ;
13707 PyObject * obj0 = 0 ;
13708 PyObject * obj1 = 0 ;
13709 char *kwnames[] = {
13710 (char *) "self",(char *) "tickPos", NULL
13711 };
13712
13713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13716 arg2 = (int)SWIG_As_int(obj1);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 {
13719 PyThreadState* __tstate = wxPyBeginAllowThreads();
13720 (arg1)->SetTick(arg2);
13721
13722 wxPyEndAllowThreads(__tstate);
13723 if (PyErr_Occurred()) SWIG_fail;
13724 }
13725 Py_INCREF(Py_None); resultobj = Py_None;
13726 return resultobj;
13727 fail:
13728 return NULL;
13729 }
13730
13731
13732 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13733 PyObject *resultobj;
13734 wxSlider *arg1 = (wxSlider *) 0 ;
13735 PyObject * obj0 = 0 ;
13736 char *kwnames[] = {
13737 (char *) "self", NULL
13738 };
13739
13740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13743 {
13744 PyThreadState* __tstate = wxPyBeginAllowThreads();
13745 (arg1)->ClearSel();
13746
13747 wxPyEndAllowThreads(__tstate);
13748 if (PyErr_Occurred()) SWIG_fail;
13749 }
13750 Py_INCREF(Py_None); resultobj = Py_None;
13751 return resultobj;
13752 fail:
13753 return NULL;
13754 }
13755
13756
13757 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13758 PyObject *resultobj;
13759 wxSlider *arg1 = (wxSlider *) 0 ;
13760 int result;
13761 PyObject * obj0 = 0 ;
13762 char *kwnames[] = {
13763 (char *) "self", NULL
13764 };
13765
13766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13769 {
13770 PyThreadState* __tstate = wxPyBeginAllowThreads();
13771 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13772
13773 wxPyEndAllowThreads(__tstate);
13774 if (PyErr_Occurred()) SWIG_fail;
13775 }
13776 resultobj = SWIG_From_int((int)result);
13777 return resultobj;
13778 fail:
13779 return NULL;
13780 }
13781
13782
13783 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj;
13785 wxSlider *arg1 = (wxSlider *) 0 ;
13786 int result;
13787 PyObject * obj0 = 0 ;
13788 char *kwnames[] = {
13789 (char *) "self", NULL
13790 };
13791
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13795 {
13796 PyThreadState* __tstate = wxPyBeginAllowThreads();
13797 result = (int)((wxSlider const *)arg1)->GetSelStart();
13798
13799 wxPyEndAllowThreads(__tstate);
13800 if (PyErr_Occurred()) SWIG_fail;
13801 }
13802 resultobj = SWIG_From_int((int)result);
13803 return resultobj;
13804 fail:
13805 return NULL;
13806 }
13807
13808
13809 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13810 PyObject *resultobj;
13811 wxSlider *arg1 = (wxSlider *) 0 ;
13812 int arg2 ;
13813 int arg3 ;
13814 PyObject * obj0 = 0 ;
13815 PyObject * obj1 = 0 ;
13816 PyObject * obj2 = 0 ;
13817 char *kwnames[] = {
13818 (char *) "self",(char *) "min",(char *) "max", NULL
13819 };
13820
13821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13824 arg2 = (int)SWIG_As_int(obj1);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 arg3 = (int)SWIG_As_int(obj2);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 {
13829 PyThreadState* __tstate = wxPyBeginAllowThreads();
13830 (arg1)->SetSelection(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_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj;
13844 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13845 wxVisualAttributes result;
13846 PyObject * obj0 = 0 ;
13847 char *kwnames[] = {
13848 (char *) "variant", NULL
13849 };
13850
13851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13852 if (obj0) {
13853 arg1 = (int)SWIG_As_int(obj0);
13854 if (PyErr_Occurred()) SWIG_fail;
13855 }
13856 {
13857 if (!wxPyCheckForApp()) SWIG_fail;
13858 PyThreadState* __tstate = wxPyBeginAllowThreads();
13859 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13860
13861 wxPyEndAllowThreads(__tstate);
13862 if (PyErr_Occurred()) SWIG_fail;
13863 }
13864 {
13865 wxVisualAttributes * resultptr;
13866 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13868 }
13869 return resultobj;
13870 fail:
13871 return NULL;
13872 }
13873
13874
13875 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13876 PyObject *obj;
13877 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13878 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13879 Py_INCREF(obj);
13880 return Py_BuildValue((char *)"");
13881 }
13882 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13883 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13884 return 1;
13885 }
13886
13887
13888 static PyObject *_wrap_ToggleButtonNameStr_get() {
13889 PyObject *pyobj;
13890
13891 {
13892 #if wxUSE_UNICODE
13893 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13894 #else
13895 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13896 #endif
13897 }
13898 return pyobj;
13899 }
13900
13901
13902 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13903 PyObject *resultobj;
13904 wxWindow *arg1 = (wxWindow *) 0 ;
13905 int arg2 = (int) -1 ;
13906 wxString const &arg3_defvalue = wxPyEmptyString ;
13907 wxString *arg3 = (wxString *) &arg3_defvalue ;
13908 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13909 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13910 wxSize const &arg5_defvalue = wxDefaultSize ;
13911 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13912 long arg6 = (long) 0 ;
13913 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13914 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13915 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13916 wxString *arg8 = (wxString *) &arg8_defvalue ;
13917 wxToggleButton *result;
13918 bool temp3 = False ;
13919 wxPoint temp4 ;
13920 wxSize temp5 ;
13921 bool temp8 = False ;
13922 PyObject * obj0 = 0 ;
13923 PyObject * obj1 = 0 ;
13924 PyObject * obj2 = 0 ;
13925 PyObject * obj3 = 0 ;
13926 PyObject * obj4 = 0 ;
13927 PyObject * obj5 = 0 ;
13928 PyObject * obj6 = 0 ;
13929 PyObject * obj7 = 0 ;
13930 char *kwnames[] = {
13931 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13932 };
13933
13934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13937 if (obj1) {
13938 arg2 = (int)SWIG_As_int(obj1);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 if (obj2) {
13942 {
13943 arg3 = wxString_in_helper(obj2);
13944 if (arg3 == NULL) SWIG_fail;
13945 temp3 = True;
13946 }
13947 }
13948 if (obj3) {
13949 {
13950 arg4 = &temp4;
13951 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13952 }
13953 }
13954 if (obj4) {
13955 {
13956 arg5 = &temp5;
13957 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13958 }
13959 }
13960 if (obj5) {
13961 arg6 = (long)SWIG_As_long(obj5);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 if (obj6) {
13965 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13966 SWIG_POINTER_EXCEPTION | 0)) == -1)
13967 SWIG_fail;
13968 if (arg7 == NULL) {
13969 PyErr_SetString(PyExc_TypeError,"null reference");
13970 SWIG_fail;
13971 }
13972 }
13973 if (obj7) {
13974 {
13975 arg8 = wxString_in_helper(obj7);
13976 if (arg8 == NULL) SWIG_fail;
13977 temp8 = True;
13978 }
13979 }
13980 {
13981 if (!wxPyCheckForApp()) SWIG_fail;
13982 PyThreadState* __tstate = wxPyBeginAllowThreads();
13983 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13984
13985 wxPyEndAllowThreads(__tstate);
13986 if (PyErr_Occurred()) SWIG_fail;
13987 }
13988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13989 {
13990 if (temp3)
13991 delete arg3;
13992 }
13993 {
13994 if (temp8)
13995 delete arg8;
13996 }
13997 return resultobj;
13998 fail:
13999 {
14000 if (temp3)
14001 delete arg3;
14002 }
14003 {
14004 if (temp8)
14005 delete arg8;
14006 }
14007 return NULL;
14008 }
14009
14010
14011 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14012 PyObject *resultobj;
14013 wxToggleButton *result;
14014 char *kwnames[] = {
14015 NULL
14016 };
14017
14018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14019 {
14020 if (!wxPyCheckForApp()) SWIG_fail;
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (wxToggleButton *)new wxToggleButton();
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14037 wxWindow *arg2 = (wxWindow *) 0 ;
14038 int arg3 = (int) -1 ;
14039 wxString const &arg4_defvalue = wxPyEmptyString ;
14040 wxString *arg4 = (wxString *) &arg4_defvalue ;
14041 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14042 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14043 wxSize const &arg6_defvalue = wxDefaultSize ;
14044 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14045 long arg7 = (long) 0 ;
14046 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14047 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14048 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14049 wxString *arg9 = (wxString *) &arg9_defvalue ;
14050 bool result;
14051 bool temp4 = False ;
14052 wxPoint temp5 ;
14053 wxSize temp6 ;
14054 bool temp9 = False ;
14055 PyObject * obj0 = 0 ;
14056 PyObject * obj1 = 0 ;
14057 PyObject * obj2 = 0 ;
14058 PyObject * obj3 = 0 ;
14059 PyObject * obj4 = 0 ;
14060 PyObject * obj5 = 0 ;
14061 PyObject * obj6 = 0 ;
14062 PyObject * obj7 = 0 ;
14063 PyObject * obj8 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14066 };
14067
14068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14073 if (obj2) {
14074 arg3 = (int)SWIG_As_int(obj2);
14075 if (PyErr_Occurred()) SWIG_fail;
14076 }
14077 if (obj3) {
14078 {
14079 arg4 = wxString_in_helper(obj3);
14080 if (arg4 == NULL) SWIG_fail;
14081 temp4 = True;
14082 }
14083 }
14084 if (obj4) {
14085 {
14086 arg5 = &temp5;
14087 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14088 }
14089 }
14090 if (obj5) {
14091 {
14092 arg6 = &temp6;
14093 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14094 }
14095 }
14096 if (obj6) {
14097 arg7 = (long)SWIG_As_long(obj6);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 if (obj7) {
14101 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14102 SWIG_POINTER_EXCEPTION | 0)) == -1)
14103 SWIG_fail;
14104 if (arg8 == NULL) {
14105 PyErr_SetString(PyExc_TypeError,"null reference");
14106 SWIG_fail;
14107 }
14108 }
14109 if (obj8) {
14110 {
14111 arg9 = wxString_in_helper(obj8);
14112 if (arg9 == NULL) SWIG_fail;
14113 temp9 = True;
14114 }
14115 }
14116 {
14117 PyThreadState* __tstate = wxPyBeginAllowThreads();
14118 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14119
14120 wxPyEndAllowThreads(__tstate);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 {
14124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14125 }
14126 {
14127 if (temp4)
14128 delete arg4;
14129 }
14130 {
14131 if (temp9)
14132 delete arg9;
14133 }
14134 return resultobj;
14135 fail:
14136 {
14137 if (temp4)
14138 delete arg4;
14139 }
14140 {
14141 if (temp9)
14142 delete arg9;
14143 }
14144 return NULL;
14145 }
14146
14147
14148 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14149 PyObject *resultobj;
14150 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14151 bool arg2 ;
14152 PyObject * obj0 = 0 ;
14153 PyObject * obj1 = 0 ;
14154 char *kwnames[] = {
14155 (char *) "self",(char *) "value", NULL
14156 };
14157
14158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14161 arg2 = (bool)SWIG_As_bool(obj1);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 {
14164 PyThreadState* __tstate = wxPyBeginAllowThreads();
14165 (arg1)->SetValue(arg2);
14166
14167 wxPyEndAllowThreads(__tstate);
14168 if (PyErr_Occurred()) SWIG_fail;
14169 }
14170 Py_INCREF(Py_None); resultobj = Py_None;
14171 return resultobj;
14172 fail:
14173 return NULL;
14174 }
14175
14176
14177 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14178 PyObject *resultobj;
14179 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14180 bool result;
14181 PyObject * obj0 = 0 ;
14182 char *kwnames[] = {
14183 (char *) "self", NULL
14184 };
14185
14186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14192
14193 wxPyEndAllowThreads(__tstate);
14194 if (PyErr_Occurred()) SWIG_fail;
14195 }
14196 {
14197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14198 }
14199 return resultobj;
14200 fail:
14201 return NULL;
14202 }
14203
14204
14205 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14206 PyObject *resultobj;
14207 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14208 wxString *arg2 = 0 ;
14209 bool temp2 = False ;
14210 PyObject * obj0 = 0 ;
14211 PyObject * obj1 = 0 ;
14212 char *kwnames[] = {
14213 (char *) "self",(char *) "label", NULL
14214 };
14215
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14219 {
14220 arg2 = wxString_in_helper(obj1);
14221 if (arg2 == NULL) SWIG_fail;
14222 temp2 = True;
14223 }
14224 {
14225 PyThreadState* __tstate = wxPyBeginAllowThreads();
14226 (arg1)->SetLabel((wxString const &)*arg2);
14227
14228 wxPyEndAllowThreads(__tstate);
14229 if (PyErr_Occurred()) SWIG_fail;
14230 }
14231 Py_INCREF(Py_None); resultobj = Py_None;
14232 {
14233 if (temp2)
14234 delete arg2;
14235 }
14236 return resultobj;
14237 fail:
14238 {
14239 if (temp2)
14240 delete arg2;
14241 }
14242 return NULL;
14243 }
14244
14245
14246 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14247 PyObject *resultobj;
14248 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14249 wxVisualAttributes result;
14250 PyObject * obj0 = 0 ;
14251 char *kwnames[] = {
14252 (char *) "variant", NULL
14253 };
14254
14255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14256 if (obj0) {
14257 arg1 = (int)SWIG_As_int(obj0);
14258 if (PyErr_Occurred()) SWIG_fail;
14259 }
14260 {
14261 if (!wxPyCheckForApp()) SWIG_fail;
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14264
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 {
14269 wxVisualAttributes * resultptr;
14270 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14271 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14272 }
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14280 PyObject *obj;
14281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14282 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14283 Py_INCREF(obj);
14284 return Py_BuildValue((char *)"");
14285 }
14286 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14287 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14288 return 1;
14289 }
14290
14291
14292 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14293 PyObject *pyobj;
14294
14295 {
14296 #if wxUSE_UNICODE
14297 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14298 #else
14299 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14300 #endif
14301 }
14302 return pyobj;
14303 }
14304
14305
14306 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14307 PyObject *resultobj;
14308 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14309 size_t result;
14310 PyObject * obj0 = 0 ;
14311 char *kwnames[] = {
14312 (char *) "self", NULL
14313 };
14314
14315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14318 {
14319 PyThreadState* __tstate = wxPyBeginAllowThreads();
14320 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14321
14322 wxPyEndAllowThreads(__tstate);
14323 if (PyErr_Occurred()) SWIG_fail;
14324 }
14325 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14326 return resultobj;
14327 fail:
14328 return NULL;
14329 }
14330
14331
14332 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14333 PyObject *resultobj;
14334 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14335 size_t arg2 ;
14336 wxWindow *result;
14337 PyObject * obj0 = 0 ;
14338 PyObject * obj1 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "n", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (wxWindow *)(arg1)->GetPage(arg2);
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 {
14356 resultobj = wxPyMake_wxObject(result, 0);
14357 }
14358 return resultobj;
14359 fail:
14360 return NULL;
14361 }
14362
14363
14364 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14367 int result;
14368 PyObject * obj0 = 0 ;
14369 char *kwnames[] = {
14370 (char *) "self", NULL
14371 };
14372
14373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14379
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 resultobj = SWIG_From_int((int)result);
14384 return resultobj;
14385 fail:
14386 return NULL;
14387 }
14388
14389
14390 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14391 PyObject *resultobj;
14392 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14393 size_t arg2 ;
14394 wxString *arg3 = 0 ;
14395 bool result;
14396 bool temp3 = False ;
14397 PyObject * obj0 = 0 ;
14398 PyObject * obj1 = 0 ;
14399 PyObject * obj2 = 0 ;
14400 char *kwnames[] = {
14401 (char *) "self",(char *) "n",(char *) "strText", NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14407 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 {
14410 arg3 = wxString_in_helper(obj2);
14411 if (arg3 == NULL) SWIG_fail;
14412 temp3 = True;
14413 }
14414 {
14415 PyThreadState* __tstate = wxPyBeginAllowThreads();
14416 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14417
14418 wxPyEndAllowThreads(__tstate);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 }
14421 {
14422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14423 }
14424 {
14425 if (temp3)
14426 delete arg3;
14427 }
14428 return resultobj;
14429 fail:
14430 {
14431 if (temp3)
14432 delete arg3;
14433 }
14434 return NULL;
14435 }
14436
14437
14438 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14439 PyObject *resultobj;
14440 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14441 size_t arg2 ;
14442 wxString result;
14443 PyObject * obj0 = 0 ;
14444 PyObject * obj1 = 0 ;
14445 char *kwnames[] = {
14446 (char *) "self",(char *) "n", NULL
14447 };
14448
14449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14452 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 {
14455 PyThreadState* __tstate = wxPyBeginAllowThreads();
14456 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14457
14458 wxPyEndAllowThreads(__tstate);
14459 if (PyErr_Occurred()) SWIG_fail;
14460 }
14461 {
14462 #if wxUSE_UNICODE
14463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14464 #else
14465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14466 #endif
14467 }
14468 return resultobj;
14469 fail:
14470 return NULL;
14471 }
14472
14473
14474 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14475 PyObject *resultobj;
14476 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14477 wxImageList *arg2 = (wxImageList *) 0 ;
14478 PyObject * obj0 = 0 ;
14479 PyObject * obj1 = 0 ;
14480 char *kwnames[] = {
14481 (char *) "self",(char *) "imageList", NULL
14482 };
14483
14484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14489 {
14490 PyThreadState* __tstate = wxPyBeginAllowThreads();
14491 (arg1)->SetImageList(arg2);
14492
14493 wxPyEndAllowThreads(__tstate);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 }
14496 Py_INCREF(Py_None); resultobj = Py_None;
14497 return resultobj;
14498 fail:
14499 return NULL;
14500 }
14501
14502
14503 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14504 PyObject *resultobj;
14505 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14506 wxImageList *arg2 = (wxImageList *) 0 ;
14507 PyObject * obj0 = 0 ;
14508 PyObject * obj1 = 0 ;
14509 char *kwnames[] = {
14510 (char *) "self",(char *) "imageList", NULL
14511 };
14512
14513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14517 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14518 {
14519 PyThreadState* __tstate = wxPyBeginAllowThreads();
14520 (arg1)->AssignImageList(arg2);
14521
14522 wxPyEndAllowThreads(__tstate);
14523 if (PyErr_Occurred()) SWIG_fail;
14524 }
14525 Py_INCREF(Py_None); resultobj = Py_None;
14526 return resultobj;
14527 fail:
14528 return NULL;
14529 }
14530
14531
14532 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14533 PyObject *resultobj;
14534 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14535 wxImageList *result;
14536 PyObject * obj0 = 0 ;
14537 char *kwnames[] = {
14538 (char *) "self", NULL
14539 };
14540
14541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14547
14548 wxPyEndAllowThreads(__tstate);
14549 if (PyErr_Occurred()) SWIG_fail;
14550 }
14551 {
14552 resultobj = wxPyMake_wxObject(result, 0);
14553 }
14554 return resultobj;
14555 fail:
14556 return NULL;
14557 }
14558
14559
14560 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14561 PyObject *resultobj;
14562 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14563 size_t arg2 ;
14564 int result;
14565 PyObject * obj0 = 0 ;
14566 PyObject * obj1 = 0 ;
14567 char *kwnames[] = {
14568 (char *) "self",(char *) "n", NULL
14569 };
14570
14571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14574 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14575 if (PyErr_Occurred()) SWIG_fail;
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_From_int((int)result);
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14593 size_t arg2 ;
14594 int arg3 ;
14595 bool result;
14596 PyObject * obj0 = 0 ;
14597 PyObject * obj1 = 0 ;
14598 PyObject * obj2 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self",(char *) "n",(char *) "imageId", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14606 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 arg3 = (int)SWIG_As_int(obj2);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 {
14618 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14619 }
14620 return resultobj;
14621 fail:
14622 return NULL;
14623 }
14624
14625
14626 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14627 PyObject *resultobj;
14628 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14629 wxSize *arg2 = 0 ;
14630 wxSize temp2 ;
14631 PyObject * obj0 = 0 ;
14632 PyObject * obj1 = 0 ;
14633 char *kwnames[] = {
14634 (char *) "self",(char *) "size", NULL
14635 };
14636
14637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14640 {
14641 arg2 = &temp2;
14642 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14643 }
14644 {
14645 PyThreadState* __tstate = wxPyBeginAllowThreads();
14646 (arg1)->SetPageSize((wxSize const &)*arg2);
14647
14648 wxPyEndAllowThreads(__tstate);
14649 if (PyErr_Occurred()) SWIG_fail;
14650 }
14651 Py_INCREF(Py_None); resultobj = Py_None;
14652 return resultobj;
14653 fail:
14654 return NULL;
14655 }
14656
14657
14658 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14659 PyObject *resultobj;
14660 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14661 wxSize *arg2 = 0 ;
14662 wxSize result;
14663 wxSize temp2 ;
14664 PyObject * obj0 = 0 ;
14665 PyObject * obj1 = 0 ;
14666 char *kwnames[] = {
14667 (char *) "self",(char *) "sizePage", NULL
14668 };
14669
14670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14673 {
14674 arg2 = &temp2;
14675 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14676 }
14677 {
14678 PyThreadState* __tstate = wxPyBeginAllowThreads();
14679 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14680
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 {
14685 wxSize * resultptr;
14686 resultptr = new wxSize((wxSize &) result);
14687 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14688 }
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14698 size_t arg2 ;
14699 bool result;
14700 PyObject * obj0 = 0 ;
14701 PyObject * obj1 = 0 ;
14702 char *kwnames[] = {
14703 (char *) "self",(char *) "n", NULL
14704 };
14705
14706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14709 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (bool)(arg1)->DeletePage(arg2);
14714
14715 wxPyEndAllowThreads(__tstate);
14716 if (PyErr_Occurred()) SWIG_fail;
14717 }
14718 {
14719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14720 }
14721 return resultobj;
14722 fail:
14723 return NULL;
14724 }
14725
14726
14727 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14728 PyObject *resultobj;
14729 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14730 size_t arg2 ;
14731 bool result;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self",(char *) "n", NULL
14736 };
14737
14738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14741 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 {
14744 PyThreadState* __tstate = wxPyBeginAllowThreads();
14745 result = (bool)(arg1)->RemovePage(arg2);
14746
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 {
14751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14752 }
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14762 bool result;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (bool)(arg1)->DeleteAllPages();
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 {
14779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14780 }
14781 return resultobj;
14782 fail:
14783 return NULL;
14784 }
14785
14786
14787 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14790 wxWindow *arg2 = (wxWindow *) 0 ;
14791 wxString *arg3 = 0 ;
14792 bool arg4 = (bool) False ;
14793 int arg5 = (int) -1 ;
14794 bool result;
14795 bool temp3 = False ;
14796 PyObject * obj0 = 0 ;
14797 PyObject * obj1 = 0 ;
14798 PyObject * obj2 = 0 ;
14799 PyObject * obj3 = 0 ;
14800 PyObject * obj4 = 0 ;
14801 char *kwnames[] = {
14802 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14803 };
14804
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14808 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14810 {
14811 arg3 = wxString_in_helper(obj2);
14812 if (arg3 == NULL) SWIG_fail;
14813 temp3 = True;
14814 }
14815 if (obj3) {
14816 arg4 = (bool)SWIG_As_bool(obj3);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 if (obj4) {
14820 arg5 = (int)SWIG_As_int(obj4);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14826
14827 wxPyEndAllowThreads(__tstate);
14828 if (PyErr_Occurred()) SWIG_fail;
14829 }
14830 {
14831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14832 }
14833 {
14834 if (temp3)
14835 delete arg3;
14836 }
14837 return resultobj;
14838 fail:
14839 {
14840 if (temp3)
14841 delete arg3;
14842 }
14843 return NULL;
14844 }
14845
14846
14847 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14848 PyObject *resultobj;
14849 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14850 size_t arg2 ;
14851 wxWindow *arg3 = (wxWindow *) 0 ;
14852 wxString *arg4 = 0 ;
14853 bool arg5 = (bool) False ;
14854 int arg6 = (int) -1 ;
14855 bool result;
14856 bool temp4 = False ;
14857 PyObject * obj0 = 0 ;
14858 PyObject * obj1 = 0 ;
14859 PyObject * obj2 = 0 ;
14860 PyObject * obj3 = 0 ;
14861 PyObject * obj4 = 0 ;
14862 PyObject * obj5 = 0 ;
14863 char *kwnames[] = {
14864 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14865 };
14866
14867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14870 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14874 {
14875 arg4 = wxString_in_helper(obj3);
14876 if (arg4 == NULL) SWIG_fail;
14877 temp4 = True;
14878 }
14879 if (obj4) {
14880 arg5 = (bool)SWIG_As_bool(obj4);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 if (obj5) {
14884 arg6 = (int)SWIG_As_int(obj5);
14885 if (PyErr_Occurred()) SWIG_fail;
14886 }
14887 {
14888 PyThreadState* __tstate = wxPyBeginAllowThreads();
14889 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14890
14891 wxPyEndAllowThreads(__tstate);
14892 if (PyErr_Occurred()) SWIG_fail;
14893 }
14894 {
14895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14896 }
14897 {
14898 if (temp4)
14899 delete arg4;
14900 }
14901 return resultobj;
14902 fail:
14903 {
14904 if (temp4)
14905 delete arg4;
14906 }
14907 return NULL;
14908 }
14909
14910
14911 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj;
14913 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14914 size_t arg2 ;
14915 int result;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "self",(char *) "n", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14925 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 {
14928 PyThreadState* __tstate = wxPyBeginAllowThreads();
14929 result = (int)(arg1)->SetSelection(arg2);
14930
14931 wxPyEndAllowThreads(__tstate);
14932 if (PyErr_Occurred()) SWIG_fail;
14933 }
14934 resultobj = SWIG_From_int((int)result);
14935 return resultobj;
14936 fail:
14937 return NULL;
14938 }
14939
14940
14941 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14942 PyObject *resultobj;
14943 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14944 bool arg2 = (bool) True ;
14945 PyObject * obj0 = 0 ;
14946 PyObject * obj1 = 0 ;
14947 char *kwnames[] = {
14948 (char *) "self",(char *) "forward", NULL
14949 };
14950
14951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14954 if (obj1) {
14955 arg2 = (bool)SWIG_As_bool(obj1);
14956 if (PyErr_Occurred()) SWIG_fail;
14957 }
14958 {
14959 PyThreadState* __tstate = wxPyBeginAllowThreads();
14960 (arg1)->AdvanceSelection(arg2);
14961
14962 wxPyEndAllowThreads(__tstate);
14963 if (PyErr_Occurred()) SWIG_fail;
14964 }
14965 Py_INCREF(Py_None); resultobj = Py_None;
14966 return resultobj;
14967 fail:
14968 return NULL;
14969 }
14970
14971
14972 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14973 PyObject *resultobj;
14974 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14975 wxVisualAttributes result;
14976 PyObject * obj0 = 0 ;
14977 char *kwnames[] = {
14978 (char *) "variant", NULL
14979 };
14980
14981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14982 if (obj0) {
14983 arg1 = (int)SWIG_As_int(obj0);
14984 if (PyErr_Occurred()) SWIG_fail;
14985 }
14986 {
14987 if (!wxPyCheckForApp()) SWIG_fail;
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 wxVisualAttributes * resultptr;
14996 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14997 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14998 }
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
15006 PyObject *obj;
15007 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15008 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
15009 Py_INCREF(obj);
15010 return Py_BuildValue((char *)"");
15011 }
15012 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj;
15014 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15015 int arg2 = (int) 0 ;
15016 int arg3 = (int) -1 ;
15017 int arg4 = (int) -1 ;
15018 wxBookCtrlEvent *result;
15019 PyObject * obj0 = 0 ;
15020 PyObject * obj1 = 0 ;
15021 PyObject * obj2 = 0 ;
15022 PyObject * obj3 = 0 ;
15023 char *kwnames[] = {
15024 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15025 };
15026
15027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15028 if (obj0) {
15029 arg1 = (wxEventType)SWIG_As_int(obj0);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
15032 if (obj1) {
15033 arg2 = (int)SWIG_As_int(obj1);
15034 if (PyErr_Occurred()) SWIG_fail;
15035 }
15036 if (obj2) {
15037 arg3 = (int)SWIG_As_int(obj2);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 if (obj3) {
15041 arg4 = (int)SWIG_As_int(obj3);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 {
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
15047
15048 wxPyEndAllowThreads(__tstate);
15049 if (PyErr_Occurred()) SWIG_fail;
15050 }
15051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj;
15060 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15061 int result;
15062 PyObject * obj0 = 0 ;
15063 char *kwnames[] = {
15064 (char *) "self", NULL
15065 };
15066
15067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
15068 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15069 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15070 {
15071 PyThreadState* __tstate = wxPyBeginAllowThreads();
15072 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
15073
15074 wxPyEndAllowThreads(__tstate);
15075 if (PyErr_Occurred()) SWIG_fail;
15076 }
15077 resultobj = SWIG_From_int((int)result);
15078 return resultobj;
15079 fail:
15080 return NULL;
15081 }
15082
15083
15084 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15085 PyObject *resultobj;
15086 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15087 int arg2 ;
15088 PyObject * obj0 = 0 ;
15089 PyObject * obj1 = 0 ;
15090 char *kwnames[] = {
15091 (char *) "self",(char *) "nSel", NULL
15092 };
15093
15094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15097 arg2 = (int)SWIG_As_int(obj1);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 {
15100 PyThreadState* __tstate = wxPyBeginAllowThreads();
15101 (arg1)->SetSelection(arg2);
15102
15103 wxPyEndAllowThreads(__tstate);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 }
15106 Py_INCREF(Py_None); resultobj = Py_None;
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj;
15115 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15116 int result;
15117 PyObject * obj0 = 0 ;
15118 char *kwnames[] = {
15119 (char *) "self", NULL
15120 };
15121
15122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15125 {
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15128
15129 wxPyEndAllowThreads(__tstate);
15130 if (PyErr_Occurred()) SWIG_fail;
15131 }
15132 resultobj = SWIG_From_int((int)result);
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15140 PyObject *resultobj;
15141 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15142 int arg2 ;
15143 PyObject * obj0 = 0 ;
15144 PyObject * obj1 = 0 ;
15145 char *kwnames[] = {
15146 (char *) "self",(char *) "nOldSel", NULL
15147 };
15148
15149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15152 arg2 = (int)SWIG_As_int(obj1);
15153 if (PyErr_Occurred()) SWIG_fail;
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 (arg1)->SetOldSelection(arg2);
15157
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 Py_INCREF(Py_None); resultobj = Py_None;
15162 return resultobj;
15163 fail:
15164 return NULL;
15165 }
15166
15167
15168 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15169 PyObject *obj;
15170 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15171 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15172 Py_INCREF(obj);
15173 return Py_BuildValue((char *)"");
15174 }
15175 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15176 PyObject *resultobj;
15177 wxWindow *arg1 = (wxWindow *) 0 ;
15178 int arg2 = (int) -1 ;
15179 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15180 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15181 wxSize const &arg4_defvalue = wxDefaultSize ;
15182 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15183 long arg5 = (long) 0 ;
15184 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15185 wxString *arg6 = (wxString *) &arg6_defvalue ;
15186 wxNotebook *result;
15187 wxPoint temp3 ;
15188 wxSize temp4 ;
15189 bool temp6 = False ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 PyObject * obj2 = 0 ;
15193 PyObject * obj3 = 0 ;
15194 PyObject * obj4 = 0 ;
15195 PyObject * obj5 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15203 if (obj1) {
15204 arg2 = (int)SWIG_As_int(obj1);
15205 if (PyErr_Occurred()) SWIG_fail;
15206 }
15207 if (obj2) {
15208 {
15209 arg3 = &temp3;
15210 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15211 }
15212 }
15213 if (obj3) {
15214 {
15215 arg4 = &temp4;
15216 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15217 }
15218 }
15219 if (obj4) {
15220 arg5 = (long)SWIG_As_long(obj4);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 if (obj5) {
15224 {
15225 arg6 = wxString_in_helper(obj5);
15226 if (arg6 == NULL) SWIG_fail;
15227 temp6 = True;
15228 }
15229 }
15230 {
15231 if (!wxPyCheckForApp()) SWIG_fail;
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15234
15235 wxPyEndAllowThreads(__tstate);
15236 if (PyErr_Occurred()) SWIG_fail;
15237 }
15238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15239 {
15240 if (temp6)
15241 delete arg6;
15242 }
15243 return resultobj;
15244 fail:
15245 {
15246 if (temp6)
15247 delete arg6;
15248 }
15249 return NULL;
15250 }
15251
15252
15253 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15254 PyObject *resultobj;
15255 wxNotebook *result;
15256 char *kwnames[] = {
15257 NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15261 {
15262 if (!wxPyCheckForApp()) SWIG_fail;
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 result = (wxNotebook *)new wxNotebook();
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15270 return resultobj;
15271 fail:
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxNotebook *arg1 = (wxNotebook *) 0 ;
15279 wxWindow *arg2 = (wxWindow *) 0 ;
15280 int arg3 = (int) -1 ;
15281 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15282 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15283 wxSize const &arg5_defvalue = wxDefaultSize ;
15284 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15285 long arg6 = (long) 0 ;
15286 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15287 wxString *arg7 = (wxString *) &arg7_defvalue ;
15288 bool result;
15289 wxPoint temp4 ;
15290 wxSize temp5 ;
15291 bool temp7 = False ;
15292 PyObject * obj0 = 0 ;
15293 PyObject * obj1 = 0 ;
15294 PyObject * obj2 = 0 ;
15295 PyObject * obj3 = 0 ;
15296 PyObject * obj4 = 0 ;
15297 PyObject * obj5 = 0 ;
15298 PyObject * obj6 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15308 if (obj2) {
15309 arg3 = (int)SWIG_As_int(obj2);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 if (obj3) {
15313 {
15314 arg4 = &temp4;
15315 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15316 }
15317 }
15318 if (obj4) {
15319 {
15320 arg5 = &temp5;
15321 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15322 }
15323 }
15324 if (obj5) {
15325 arg6 = (long)SWIG_As_long(obj5);
15326 if (PyErr_Occurred()) SWIG_fail;
15327 }
15328 if (obj6) {
15329 {
15330 arg7 = wxString_in_helper(obj6);
15331 if (arg7 == NULL) SWIG_fail;
15332 temp7 = True;
15333 }
15334 }
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15338
15339 wxPyEndAllowThreads(__tstate);
15340 if (PyErr_Occurred()) SWIG_fail;
15341 }
15342 {
15343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15344 }
15345 {
15346 if (temp7)
15347 delete arg7;
15348 }
15349 return resultobj;
15350 fail:
15351 {
15352 if (temp7)
15353 delete arg7;
15354 }
15355 return NULL;
15356 }
15357
15358
15359 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj;
15361 wxNotebook *arg1 = (wxNotebook *) 0 ;
15362 int result;
15363 PyObject * obj0 = 0 ;
15364 char *kwnames[] = {
15365 (char *) "self", NULL
15366 };
15367
15368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_From_int((int)result);
15379 return resultobj;
15380 fail:
15381 return NULL;
15382 }
15383
15384
15385 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj;
15387 wxNotebook *arg1 = (wxNotebook *) 0 ;
15388 wxSize *arg2 = 0 ;
15389 wxSize temp2 ;
15390 PyObject * obj0 = 0 ;
15391 PyObject * obj1 = 0 ;
15392 char *kwnames[] = {
15393 (char *) "self",(char *) "padding", NULL
15394 };
15395
15396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15399 {
15400 arg2 = &temp2;
15401 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15402 }
15403 {
15404 PyThreadState* __tstate = wxPyBeginAllowThreads();
15405 (arg1)->SetPadding((wxSize const &)*arg2);
15406
15407 wxPyEndAllowThreads(__tstate);
15408 if (PyErr_Occurred()) SWIG_fail;
15409 }
15410 Py_INCREF(Py_None); resultobj = Py_None;
15411 return resultobj;
15412 fail:
15413 return NULL;
15414 }
15415
15416
15417 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15418 PyObject *resultobj;
15419 wxNotebook *arg1 = (wxNotebook *) 0 ;
15420 wxSize *arg2 = 0 ;
15421 wxSize temp2 ;
15422 PyObject * obj0 = 0 ;
15423 PyObject * obj1 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "self",(char *) "sz", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 arg2 = &temp2;
15433 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15434 }
15435 {
15436 PyThreadState* __tstate = wxPyBeginAllowThreads();
15437 (arg1)->SetTabSize((wxSize const &)*arg2);
15438
15439 wxPyEndAllowThreads(__tstate);
15440 if (PyErr_Occurred()) SWIG_fail;
15441 }
15442 Py_INCREF(Py_None); resultobj = Py_None;
15443 return resultobj;
15444 fail:
15445 return NULL;
15446 }
15447
15448
15449 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15450 PyObject *resultobj;
15451 wxNotebook *arg1 = (wxNotebook *) 0 ;
15452 wxPoint *arg2 = 0 ;
15453 long *arg3 = (long *) 0 ;
15454 int result;
15455 wxPoint temp2 ;
15456 long temp3 ;
15457 int res3 = 0 ;
15458 PyObject * obj0 = 0 ;
15459 PyObject * obj1 = 0 ;
15460 char *kwnames[] = {
15461 (char *) "self",(char *) "pt", NULL
15462 };
15463
15464 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15468 {
15469 arg2 = &temp2;
15470 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15471 }
15472 {
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15475
15476 wxPyEndAllowThreads(__tstate);
15477 if (PyErr_Occurred()) SWIG_fail;
15478 }
15479 resultobj = SWIG_From_int((int)result);
15480 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15481 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15482 return resultobj;
15483 fail:
15484 return NULL;
15485 }
15486
15487
15488 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15489 PyObject *resultobj;
15490 wxNotebook *arg1 = (wxNotebook *) 0 ;
15491 wxSize *arg2 = 0 ;
15492 wxSize result;
15493 wxSize temp2 ;
15494 PyObject * obj0 = 0 ;
15495 PyObject * obj1 = 0 ;
15496 char *kwnames[] = {
15497 (char *) "self",(char *) "sizePage", NULL
15498 };
15499
15500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15503 {
15504 arg2 = &temp2;
15505 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15506 }
15507 {
15508 PyThreadState* __tstate = wxPyBeginAllowThreads();
15509 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15510
15511 wxPyEndAllowThreads(__tstate);
15512 if (PyErr_Occurred()) SWIG_fail;
15513 }
15514 {
15515 wxSize * resultptr;
15516 resultptr = new wxSize((wxSize &) result);
15517 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15518 }
15519 return resultobj;
15520 fail:
15521 return NULL;
15522 }
15523
15524
15525 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15526 PyObject *resultobj;
15527 wxNotebook *arg1 = (wxNotebook *) 0 ;
15528 wxWindow *arg2 = (wxWindow *) 0 ;
15529 wxColour *arg3 = 0 ;
15530 wxColour temp3 ;
15531 PyObject * obj0 = 0 ;
15532 PyObject * obj1 = 0 ;
15533 PyObject * obj2 = 0 ;
15534 char *kwnames[] = {
15535 (char *) "self",(char *) "window",(char *) "colour", NULL
15536 };
15537
15538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15543 {
15544 arg3 = &temp3;
15545 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15546 }
15547 {
15548 PyThreadState* __tstate = wxPyBeginAllowThreads();
15549 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15550
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 Py_INCREF(Py_None); resultobj = Py_None;
15555 return resultobj;
15556 fail:
15557 return NULL;
15558 }
15559
15560
15561 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15562 PyObject *resultobj;
15563 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15564 wxVisualAttributes result;
15565 PyObject * obj0 = 0 ;
15566 char *kwnames[] = {
15567 (char *) "variant", NULL
15568 };
15569
15570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15571 if (obj0) {
15572 arg1 = (int)SWIG_As_int(obj0);
15573 if (PyErr_Occurred()) SWIG_fail;
15574 }
15575 {
15576 if (!wxPyCheckForApp()) SWIG_fail;
15577 PyThreadState* __tstate = wxPyBeginAllowThreads();
15578 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15579
15580 wxPyEndAllowThreads(__tstate);
15581 if (PyErr_Occurred()) SWIG_fail;
15582 }
15583 {
15584 wxVisualAttributes * resultptr;
15585 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15586 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15587 }
15588 return resultobj;
15589 fail:
15590 return NULL;
15591 }
15592
15593
15594 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15595 PyObject *obj;
15596 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15597 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15598 Py_INCREF(obj);
15599 return Py_BuildValue((char *)"");
15600 }
15601 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15602 PyObject *resultobj;
15603 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15604 int arg2 = (int) 0 ;
15605 int arg3 = (int) -1 ;
15606 int arg4 = (int) -1 ;
15607 wxNotebookEvent *result;
15608 PyObject * obj0 = 0 ;
15609 PyObject * obj1 = 0 ;
15610 PyObject * obj2 = 0 ;
15611 PyObject * obj3 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15617 if (obj0) {
15618 arg1 = (wxEventType)SWIG_As_int(obj0);
15619 if (PyErr_Occurred()) SWIG_fail;
15620 }
15621 if (obj1) {
15622 arg2 = (int)SWIG_As_int(obj1);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 if (obj2) {
15626 arg3 = (int)SWIG_As_int(obj2);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 }
15629 if (obj3) {
15630 arg4 = (int)SWIG_As_int(obj3);
15631 if (PyErr_Occurred()) SWIG_fail;
15632 }
15633 {
15634 PyThreadState* __tstate = wxPyBeginAllowThreads();
15635 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15636
15637 wxPyEndAllowThreads(__tstate);
15638 if (PyErr_Occurred()) SWIG_fail;
15639 }
15640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15641 return resultobj;
15642 fail:
15643 return NULL;
15644 }
15645
15646
15647 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15648 PyObject *obj;
15649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15650 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15651 Py_INCREF(obj);
15652 return Py_BuildValue((char *)"");
15653 }
15654 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15655 PyObject *resultobj;
15656 wxWindow *arg1 = (wxWindow *) 0 ;
15657 int arg2 = (int) -1 ;
15658 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15659 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15660 wxSize const &arg4_defvalue = wxDefaultSize ;
15661 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15662 long arg5 = (long) 0 ;
15663 wxString const &arg6_defvalue = wxPyEmptyString ;
15664 wxString *arg6 = (wxString *) &arg6_defvalue ;
15665 wxListbook *result;
15666 wxPoint temp3 ;
15667 wxSize temp4 ;
15668 bool temp6 = False ;
15669 PyObject * obj0 = 0 ;
15670 PyObject * obj1 = 0 ;
15671 PyObject * obj2 = 0 ;
15672 PyObject * obj3 = 0 ;
15673 PyObject * obj4 = 0 ;
15674 PyObject * obj5 = 0 ;
15675 char *kwnames[] = {
15676 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15677 };
15678
15679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15682 if (obj1) {
15683 arg2 = (int)SWIG_As_int(obj1);
15684 if (PyErr_Occurred()) SWIG_fail;
15685 }
15686 if (obj2) {
15687 {
15688 arg3 = &temp3;
15689 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15690 }
15691 }
15692 if (obj3) {
15693 {
15694 arg4 = &temp4;
15695 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15696 }
15697 }
15698 if (obj4) {
15699 arg5 = (long)SWIG_As_long(obj4);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 if (obj5) {
15703 {
15704 arg6 = wxString_in_helper(obj5);
15705 if (arg6 == NULL) SWIG_fail;
15706 temp6 = True;
15707 }
15708 }
15709 {
15710 if (!wxPyCheckForApp()) SWIG_fail;
15711 PyThreadState* __tstate = wxPyBeginAllowThreads();
15712 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15713
15714 wxPyEndAllowThreads(__tstate);
15715 if (PyErr_Occurred()) SWIG_fail;
15716 }
15717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15718 {
15719 if (temp6)
15720 delete arg6;
15721 }
15722 return resultobj;
15723 fail:
15724 {
15725 if (temp6)
15726 delete arg6;
15727 }
15728 return NULL;
15729 }
15730
15731
15732 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15733 PyObject *resultobj;
15734 wxListbook *result;
15735 char *kwnames[] = {
15736 NULL
15737 };
15738
15739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15740 {
15741 if (!wxPyCheckForApp()) SWIG_fail;
15742 PyThreadState* __tstate = wxPyBeginAllowThreads();
15743 result = (wxListbook *)new wxListbook();
15744
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15749 return resultobj;
15750 fail:
15751 return NULL;
15752 }
15753
15754
15755 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj;
15757 wxListbook *arg1 = (wxListbook *) 0 ;
15758 wxWindow *arg2 = (wxWindow *) 0 ;
15759 int arg3 = (int) -1 ;
15760 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15761 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15762 wxSize const &arg5_defvalue = wxDefaultSize ;
15763 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15764 long arg6 = (long) 0 ;
15765 wxString const &arg7_defvalue = wxPyEmptyString ;
15766 wxString *arg7 = (wxString *) &arg7_defvalue ;
15767 bool result;
15768 wxPoint temp4 ;
15769 wxSize temp5 ;
15770 bool temp7 = False ;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 PyObject * obj2 = 0 ;
15774 PyObject * obj3 = 0 ;
15775 PyObject * obj4 = 0 ;
15776 PyObject * obj5 = 0 ;
15777 PyObject * obj6 = 0 ;
15778 char *kwnames[] = {
15779 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15780 };
15781
15782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15785 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15787 if (obj2) {
15788 arg3 = (int)SWIG_As_int(obj2);
15789 if (PyErr_Occurred()) SWIG_fail;
15790 }
15791 if (obj3) {
15792 {
15793 arg4 = &temp4;
15794 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15795 }
15796 }
15797 if (obj4) {
15798 {
15799 arg5 = &temp5;
15800 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15801 }
15802 }
15803 if (obj5) {
15804 arg6 = (long)SWIG_As_long(obj5);
15805 if (PyErr_Occurred()) SWIG_fail;
15806 }
15807 if (obj6) {
15808 {
15809 arg7 = wxString_in_helper(obj6);
15810 if (arg7 == NULL) SWIG_fail;
15811 temp7 = True;
15812 }
15813 }
15814 {
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15817
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 {
15822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15823 }
15824 {
15825 if (temp7)
15826 delete arg7;
15827 }
15828 return resultobj;
15829 fail:
15830 {
15831 if (temp7)
15832 delete arg7;
15833 }
15834 return NULL;
15835 }
15836
15837
15838 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15839 PyObject *resultobj;
15840 wxListbook *arg1 = (wxListbook *) 0 ;
15841 bool result;
15842 PyObject * obj0 = 0 ;
15843 char *kwnames[] = {
15844 (char *) "self", NULL
15845 };
15846
15847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15850 {
15851 PyThreadState* __tstate = wxPyBeginAllowThreads();
15852 result = (bool)((wxListbook const *)arg1)->IsVertical();
15853
15854 wxPyEndAllowThreads(__tstate);
15855 if (PyErr_Occurred()) SWIG_fail;
15856 }
15857 {
15858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15859 }
15860 return resultobj;
15861 fail:
15862 return NULL;
15863 }
15864
15865
15866 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15867 PyObject *resultobj;
15868 wxListbook *arg1 = (wxListbook *) 0 ;
15869 wxListView *result;
15870 PyObject * obj0 = 0 ;
15871 char *kwnames[] = {
15872 (char *) "self", NULL
15873 };
15874
15875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 result = (wxListView *)(arg1)->GetListView();
15881
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15886 return resultobj;
15887 fail:
15888 return NULL;
15889 }
15890
15891
15892 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15893 PyObject *obj;
15894 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15895 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15896 Py_INCREF(obj);
15897 return Py_BuildValue((char *)"");
15898 }
15899 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15900 PyObject *resultobj;
15901 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15902 int arg2 = (int) 0 ;
15903 int arg3 = (int) -1 ;
15904 int arg4 = (int) -1 ;
15905 wxListbookEvent *result;
15906 PyObject * obj0 = 0 ;
15907 PyObject * obj1 = 0 ;
15908 PyObject * obj2 = 0 ;
15909 PyObject * obj3 = 0 ;
15910 char *kwnames[] = {
15911 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15912 };
15913
15914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15915 if (obj0) {
15916 arg1 = (wxEventType)SWIG_As_int(obj0);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 if (obj1) {
15920 arg2 = (int)SWIG_As_int(obj1);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 if (obj2) {
15924 arg3 = (int)SWIG_As_int(obj2);
15925 if (PyErr_Occurred()) SWIG_fail;
15926 }
15927 if (obj3) {
15928 arg4 = (int)SWIG_As_int(obj3);
15929 if (PyErr_Occurred()) SWIG_fail;
15930 }
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15934
15935 wxPyEndAllowThreads(__tstate);
15936 if (PyErr_Occurred()) SWIG_fail;
15937 }
15938 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15939 return resultobj;
15940 fail:
15941 return NULL;
15942 }
15943
15944
15945 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15946 PyObject *obj;
15947 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15948 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15949 Py_INCREF(obj);
15950 return Py_BuildValue((char *)"");
15951 }
15952 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
15953 PyObject *resultobj;
15954 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
15955 wxBookCtrlSizer *result;
15956 PyObject * obj0 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "nb", NULL
15959 };
15960
15961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
15962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
15963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
15967
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
15972 return resultobj;
15973 fail:
15974 return NULL;
15975 }
15976
15977
15978 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
15979 PyObject *resultobj;
15980 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
15981 PyObject * obj0 = 0 ;
15982 char *kwnames[] = {
15983 (char *) "self", NULL
15984 };
15985
15986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
15987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
15988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15989 {
15990 PyThreadState* __tstate = wxPyBeginAllowThreads();
15991 (arg1)->RecalcSizes();
15992
15993 wxPyEndAllowThreads(__tstate);
15994 if (PyErr_Occurred()) SWIG_fail;
15995 }
15996 Py_INCREF(Py_None); resultobj = Py_None;
15997 return resultobj;
15998 fail:
15999 return NULL;
16000 }
16001
16002
16003 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16004 PyObject *resultobj;
16005 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16006 wxSize result;
16007 PyObject * obj0 = 0 ;
16008 char *kwnames[] = {
16009 (char *) "self", NULL
16010 };
16011
16012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16015 {
16016 PyThreadState* __tstate = wxPyBeginAllowThreads();
16017 result = (arg1)->CalcMin();
16018
16019 wxPyEndAllowThreads(__tstate);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 wxSize * resultptr;
16024 resultptr = new wxSize((wxSize &) result);
16025 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16026 }
16027 return resultobj;
16028 fail:
16029 return NULL;
16030 }
16031
16032
16033 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16034 PyObject *resultobj;
16035 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16036 wxBookCtrl *result;
16037 PyObject * obj0 = 0 ;
16038 char *kwnames[] = {
16039 (char *) "self", NULL
16040 };
16041
16042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16045 {
16046 PyThreadState* __tstate = wxPyBeginAllowThreads();
16047 result = (wxBookCtrl *)(arg1)->GetControl();
16048
16049 wxPyEndAllowThreads(__tstate);
16050 if (PyErr_Occurred()) SWIG_fail;
16051 }
16052 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
16053 return resultobj;
16054 fail:
16055 return NULL;
16056 }
16057
16058
16059 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16060 PyObject *obj;
16061 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16062 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16063 Py_INCREF(obj);
16064 return Py_BuildValue((char *)"");
16065 }
16066 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16067 PyObject *resultobj;
16068 wxNotebook *arg1 = (wxNotebook *) 0 ;
16069 wxNotebookSizer *result;
16070 PyObject * obj0 = 0 ;
16071 char *kwnames[] = {
16072 (char *) "nb", NULL
16073 };
16074
16075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16078 {
16079 PyThreadState* __tstate = wxPyBeginAllowThreads();
16080 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16081
16082 wxPyEndAllowThreads(__tstate);
16083 if (PyErr_Occurred()) SWIG_fail;
16084 }
16085 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16086 return resultobj;
16087 fail:
16088 return NULL;
16089 }
16090
16091
16092 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16093 PyObject *resultobj;
16094 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16095 PyObject * obj0 = 0 ;
16096 char *kwnames[] = {
16097 (char *) "self", NULL
16098 };
16099
16100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16103 {
16104 PyThreadState* __tstate = wxPyBeginAllowThreads();
16105 (arg1)->RecalcSizes();
16106
16107 wxPyEndAllowThreads(__tstate);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 Py_INCREF(Py_None); resultobj = Py_None;
16111 return resultobj;
16112 fail:
16113 return NULL;
16114 }
16115
16116
16117 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16118 PyObject *resultobj;
16119 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16120 wxSize result;
16121 PyObject * obj0 = 0 ;
16122 char *kwnames[] = {
16123 (char *) "self", NULL
16124 };
16125
16126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16129 {
16130 PyThreadState* __tstate = wxPyBeginAllowThreads();
16131 result = (arg1)->CalcMin();
16132
16133 wxPyEndAllowThreads(__tstate);
16134 if (PyErr_Occurred()) SWIG_fail;
16135 }
16136 {
16137 wxSize * resultptr;
16138 resultptr = new wxSize((wxSize &) result);
16139 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16140 }
16141 return resultobj;
16142 fail:
16143 return NULL;
16144 }
16145
16146
16147 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj;
16149 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16150 wxNotebook *result;
16151 PyObject * obj0 = 0 ;
16152 char *kwnames[] = {
16153 (char *) "self", NULL
16154 };
16155
16156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16159 {
16160 PyThreadState* __tstate = wxPyBeginAllowThreads();
16161 result = (wxNotebook *)(arg1)->GetNotebook();
16162
16163 wxPyEndAllowThreads(__tstate);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 }
16166 {
16167 resultobj = wxPyMake_wxObject(result, 0);
16168 }
16169 return resultobj;
16170 fail:
16171 return NULL;
16172 }
16173
16174
16175 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16176 PyObject *obj;
16177 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16178 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16179 Py_INCREF(obj);
16180 return Py_BuildValue((char *)"");
16181 }
16182 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16183 PyObject *resultobj;
16184 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16185 int result;
16186 PyObject * obj0 = 0 ;
16187 char *kwnames[] = {
16188 (char *) "self", NULL
16189 };
16190
16191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16194 {
16195 PyThreadState* __tstate = wxPyBeginAllowThreads();
16196 result = (int)(arg1)->GetId();
16197
16198 wxPyEndAllowThreads(__tstate);
16199 if (PyErr_Occurred()) SWIG_fail;
16200 }
16201 resultobj = SWIG_From_int((int)result);
16202 return resultobj;
16203 fail:
16204 return NULL;
16205 }
16206
16207
16208 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16209 PyObject *resultobj;
16210 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16211 wxControl *result;
16212 PyObject * obj0 = 0 ;
16213 char *kwnames[] = {
16214 (char *) "self", NULL
16215 };
16216
16217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 result = (wxControl *)(arg1)->GetControl();
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 {
16228 resultobj = wxPyMake_wxObject(result, 0);
16229 }
16230 return resultobj;
16231 fail:
16232 return NULL;
16233 }
16234
16235
16236 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16237 PyObject *resultobj;
16238 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16239 wxToolBarBase *result;
16240 PyObject * obj0 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (wxToolBarBase *)(arg1)->GetToolBar();
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 {
16256 resultobj = wxPyMake_wxObject(result, 0);
16257 }
16258 return resultobj;
16259 fail:
16260 return NULL;
16261 }
16262
16263
16264 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj;
16266 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16267 int result;
16268 PyObject * obj0 = 0 ;
16269 char *kwnames[] = {
16270 (char *) "self", NULL
16271 };
16272
16273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16276 {
16277 PyThreadState* __tstate = wxPyBeginAllowThreads();
16278 result = (int)(arg1)->IsButton();
16279
16280 wxPyEndAllowThreads(__tstate);
16281 if (PyErr_Occurred()) SWIG_fail;
16282 }
16283 resultobj = SWIG_From_int((int)result);
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16293 int result;
16294 PyObject * obj0 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (int)(arg1)->IsControl();
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = SWIG_From_int((int)result);
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16319 int result;
16320 PyObject * obj0 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)(arg1)->IsSeparator();
16331
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 resultobj = SWIG_From_int((int)result);
16336 return resultobj;
16337 fail:
16338 return NULL;
16339 }
16340
16341
16342 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16343 PyObject *resultobj;
16344 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16345 int result;
16346 PyObject * obj0 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 result = (int)(arg1)->GetStyle();
16357
16358 wxPyEndAllowThreads(__tstate);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 resultobj = SWIG_From_int((int)result);
16362 return resultobj;
16363 fail:
16364 return NULL;
16365 }
16366
16367
16368 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16369 PyObject *resultobj;
16370 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16371 int result;
16372 PyObject * obj0 = 0 ;
16373 char *kwnames[] = {
16374 (char *) "self", NULL
16375 };
16376
16377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16380 {
16381 PyThreadState* __tstate = wxPyBeginAllowThreads();
16382 result = (int)(arg1)->GetKind();
16383
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 resultobj = SWIG_From_int((int)result);
16388 return resultobj;
16389 fail:
16390 return NULL;
16391 }
16392
16393
16394 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16395 PyObject *resultobj;
16396 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16397 bool result;
16398 PyObject * obj0 = 0 ;
16399 char *kwnames[] = {
16400 (char *) "self", NULL
16401 };
16402
16403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16406 {
16407 PyThreadState* __tstate = wxPyBeginAllowThreads();
16408 result = (bool)(arg1)->IsEnabled();
16409
16410 wxPyEndAllowThreads(__tstate);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 {
16414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16415 }
16416 return resultobj;
16417 fail:
16418 return NULL;
16419 }
16420
16421
16422 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16423 PyObject *resultobj;
16424 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16425 bool result;
16426 PyObject * obj0 = 0 ;
16427 char *kwnames[] = {
16428 (char *) "self", NULL
16429 };
16430
16431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16434 {
16435 PyThreadState* __tstate = wxPyBeginAllowThreads();
16436 result = (bool)(arg1)->IsToggled();
16437
16438 wxPyEndAllowThreads(__tstate);
16439 if (PyErr_Occurred()) SWIG_fail;
16440 }
16441 {
16442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16443 }
16444 return resultobj;
16445 fail:
16446 return NULL;
16447 }
16448
16449
16450 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16451 PyObject *resultobj;
16452 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16453 bool result;
16454 PyObject * obj0 = 0 ;
16455 char *kwnames[] = {
16456 (char *) "self", NULL
16457 };
16458
16459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16462 {
16463 PyThreadState* __tstate = wxPyBeginAllowThreads();
16464 result = (bool)(arg1)->CanBeToggled();
16465
16466 wxPyEndAllowThreads(__tstate);
16467 if (PyErr_Occurred()) SWIG_fail;
16468 }
16469 {
16470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16471 }
16472 return resultobj;
16473 fail:
16474 return NULL;
16475 }
16476
16477
16478 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16479 PyObject *resultobj;
16480 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16481 wxBitmap *result;
16482 PyObject * obj0 = 0 ;
16483 char *kwnames[] = {
16484 (char *) "self", NULL
16485 };
16486
16487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 {
16493 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16494 result = (wxBitmap *) &_result_ref;
16495 }
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 wxBitmap* resultptr = new wxBitmap(*result);
16502 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16503 }
16504 return resultobj;
16505 fail:
16506 return NULL;
16507 }
16508
16509
16510 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16511 PyObject *resultobj;
16512 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16513 wxBitmap *result;
16514 PyObject * obj0 = 0 ;
16515 char *kwnames[] = {
16516 (char *) "self", NULL
16517 };
16518
16519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16522 {
16523 PyThreadState* __tstate = wxPyBeginAllowThreads();
16524 {
16525 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16526 result = (wxBitmap *) &_result_ref;
16527 }
16528
16529 wxPyEndAllowThreads(__tstate);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 }
16532 {
16533 wxBitmap* resultptr = new wxBitmap(*result);
16534 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16535 }
16536 return resultobj;
16537 fail:
16538 return NULL;
16539 }
16540
16541
16542 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16543 PyObject *resultobj;
16544 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16545 wxBitmap result;
16546 PyObject * obj0 = 0 ;
16547 char *kwnames[] = {
16548 (char *) "self", NULL
16549 };
16550
16551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16554 {
16555 PyThreadState* __tstate = wxPyBeginAllowThreads();
16556 result = (arg1)->GetBitmap();
16557
16558 wxPyEndAllowThreads(__tstate);
16559 if (PyErr_Occurred()) SWIG_fail;
16560 }
16561 {
16562 wxBitmap * resultptr;
16563 resultptr = new wxBitmap((wxBitmap &) result);
16564 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16565 }
16566 return resultobj;
16567 fail:
16568 return NULL;
16569 }
16570
16571
16572 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16573 PyObject *resultobj;
16574 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16575 wxString result;
16576 PyObject * obj0 = 0 ;
16577 char *kwnames[] = {
16578 (char *) "self", NULL
16579 };
16580
16581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16584 {
16585 PyThreadState* __tstate = wxPyBeginAllowThreads();
16586 result = (arg1)->GetLabel();
16587
16588 wxPyEndAllowThreads(__tstate);
16589 if (PyErr_Occurred()) SWIG_fail;
16590 }
16591 {
16592 #if wxUSE_UNICODE
16593 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16594 #else
16595 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16596 #endif
16597 }
16598 return resultobj;
16599 fail:
16600 return NULL;
16601 }
16602
16603
16604 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16605 PyObject *resultobj;
16606 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16607 wxString result;
16608 PyObject * obj0 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (arg1)->GetShortHelp();
16619
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 {
16624 #if wxUSE_UNICODE
16625 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16626 #else
16627 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16628 #endif
16629 }
16630 return resultobj;
16631 fail:
16632 return NULL;
16633 }
16634
16635
16636 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16639 wxString result;
16640 PyObject * obj0 = 0 ;
16641 char *kwnames[] = {
16642 (char *) "self", NULL
16643 };
16644
16645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16648 {
16649 PyThreadState* __tstate = wxPyBeginAllowThreads();
16650 result = (arg1)->GetLongHelp();
16651
16652 wxPyEndAllowThreads(__tstate);
16653 if (PyErr_Occurred()) SWIG_fail;
16654 }
16655 {
16656 #if wxUSE_UNICODE
16657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16658 #else
16659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16660 #endif
16661 }
16662 return resultobj;
16663 fail:
16664 return NULL;
16665 }
16666
16667
16668 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16669 PyObject *resultobj;
16670 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16671 bool arg2 ;
16672 bool result;
16673 PyObject * obj0 = 0 ;
16674 PyObject * obj1 = 0 ;
16675 char *kwnames[] = {
16676 (char *) "self",(char *) "enable", NULL
16677 };
16678
16679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16682 arg2 = (bool)SWIG_As_bool(obj1);
16683 if (PyErr_Occurred()) SWIG_fail;
16684 {
16685 PyThreadState* __tstate = wxPyBeginAllowThreads();
16686 result = (bool)(arg1)->Enable(arg2);
16687
16688 wxPyEndAllowThreads(__tstate);
16689 if (PyErr_Occurred()) SWIG_fail;
16690 }
16691 {
16692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16693 }
16694 return resultobj;
16695 fail:
16696 return NULL;
16697 }
16698
16699
16700 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
16701 PyObject *resultobj;
16702 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16703 PyObject * obj0 = 0 ;
16704 char *kwnames[] = {
16705 (char *) "self", NULL
16706 };
16707
16708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
16709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16711 {
16712 PyThreadState* __tstate = wxPyBeginAllowThreads();
16713 (arg1)->Toggle();
16714
16715 wxPyEndAllowThreads(__tstate);
16716 if (PyErr_Occurred()) SWIG_fail;
16717 }
16718 Py_INCREF(Py_None); resultobj = Py_None;
16719 return resultobj;
16720 fail:
16721 return NULL;
16722 }
16723
16724
16725 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
16726 PyObject *resultobj;
16727 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16728 bool arg2 ;
16729 bool result;
16730 PyObject * obj0 = 0 ;
16731 PyObject * obj1 = 0 ;
16732 char *kwnames[] = {
16733 (char *) "self",(char *) "toggle", NULL
16734 };
16735
16736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
16737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16739 arg2 = (bool)SWIG_As_bool(obj1);
16740 if (PyErr_Occurred()) SWIG_fail;
16741 {
16742 PyThreadState* __tstate = wxPyBeginAllowThreads();
16743 result = (bool)(arg1)->SetToggle(arg2);
16744
16745 wxPyEndAllowThreads(__tstate);
16746 if (PyErr_Occurred()) SWIG_fail;
16747 }
16748 {
16749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16750 }
16751 return resultobj;
16752 fail:
16753 return NULL;
16754 }
16755
16756
16757 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16758 PyObject *resultobj;
16759 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16760 wxString *arg2 = 0 ;
16761 bool result;
16762 bool temp2 = False ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 char *kwnames[] = {
16766 (char *) "self",(char *) "help", NULL
16767 };
16768
16769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
16770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16772 {
16773 arg2 = wxString_in_helper(obj1);
16774 if (arg2 == NULL) SWIG_fail;
16775 temp2 = True;
16776 }
16777 {
16778 PyThreadState* __tstate = wxPyBeginAllowThreads();
16779 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
16780
16781 wxPyEndAllowThreads(__tstate);
16782 if (PyErr_Occurred()) SWIG_fail;
16783 }
16784 {
16785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16786 }
16787 {
16788 if (temp2)
16789 delete arg2;
16790 }
16791 return resultobj;
16792 fail:
16793 {
16794 if (temp2)
16795 delete arg2;
16796 }
16797 return NULL;
16798 }
16799
16800
16801 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16802 PyObject *resultobj;
16803 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16804 wxString *arg2 = 0 ;
16805 bool result;
16806 bool temp2 = False ;
16807 PyObject * obj0 = 0 ;
16808 PyObject * obj1 = 0 ;
16809 char *kwnames[] = {
16810 (char *) "self",(char *) "help", NULL
16811 };
16812
16813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
16814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16816 {
16817 arg2 = wxString_in_helper(obj1);
16818 if (arg2 == NULL) SWIG_fail;
16819 temp2 = True;
16820 }
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
16824
16825 wxPyEndAllowThreads(__tstate);
16826 if (PyErr_Occurred()) SWIG_fail;
16827 }
16828 {
16829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16830 }
16831 {
16832 if (temp2)
16833 delete arg2;
16834 }
16835 return resultobj;
16836 fail:
16837 {
16838 if (temp2)
16839 delete arg2;
16840 }
16841 return NULL;
16842 }
16843
16844
16845 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16846 PyObject *resultobj;
16847 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16848 wxBitmap *arg2 = 0 ;
16849 PyObject * obj0 = 0 ;
16850 PyObject * obj1 = 0 ;
16851 char *kwnames[] = {
16852 (char *) "self",(char *) "bmp", NULL
16853 };
16854
16855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
16856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16859 SWIG_POINTER_EXCEPTION | 0)) == -1)
16860 SWIG_fail;
16861 if (arg2 == NULL) {
16862 PyErr_SetString(PyExc_TypeError,"null reference");
16863 SWIG_fail;
16864 }
16865 {
16866 PyThreadState* __tstate = wxPyBeginAllowThreads();
16867 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
16868
16869 wxPyEndAllowThreads(__tstate);
16870 if (PyErr_Occurred()) SWIG_fail;
16871 }
16872 Py_INCREF(Py_None); resultobj = Py_None;
16873 return resultobj;
16874 fail:
16875 return NULL;
16876 }
16877
16878
16879 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16880 PyObject *resultobj;
16881 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16882 wxBitmap *arg2 = 0 ;
16883 PyObject * obj0 = 0 ;
16884 PyObject * obj1 = 0 ;
16885 char *kwnames[] = {
16886 (char *) "self",(char *) "bmp", NULL
16887 };
16888
16889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
16890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16892 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16893 SWIG_POINTER_EXCEPTION | 0)) == -1)
16894 SWIG_fail;
16895 if (arg2 == NULL) {
16896 PyErr_SetString(PyExc_TypeError,"null reference");
16897 SWIG_fail;
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
16902
16903 wxPyEndAllowThreads(__tstate);
16904 if (PyErr_Occurred()) SWIG_fail;
16905 }
16906 Py_INCREF(Py_None); resultobj = Py_None;
16907 return resultobj;
16908 fail:
16909 return NULL;
16910 }
16911
16912
16913 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16914 PyObject *resultobj;
16915 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16916 wxString *arg2 = 0 ;
16917 bool temp2 = False ;
16918 PyObject * obj0 = 0 ;
16919 PyObject * obj1 = 0 ;
16920 char *kwnames[] = {
16921 (char *) "self",(char *) "label", NULL
16922 };
16923
16924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
16925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16927 {
16928 arg2 = wxString_in_helper(obj1);
16929 if (arg2 == NULL) SWIG_fail;
16930 temp2 = True;
16931 }
16932 {
16933 PyThreadState* __tstate = wxPyBeginAllowThreads();
16934 (arg1)->SetLabel((wxString const &)*arg2);
16935
16936 wxPyEndAllowThreads(__tstate);
16937 if (PyErr_Occurred()) SWIG_fail;
16938 }
16939 Py_INCREF(Py_None); resultobj = Py_None;
16940 {
16941 if (temp2)
16942 delete arg2;
16943 }
16944 return resultobj;
16945 fail:
16946 {
16947 if (temp2)
16948 delete arg2;
16949 }
16950 return NULL;
16951 }
16952
16953
16954 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj;
16956 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16957 PyObject * obj0 = 0 ;
16958 char *kwnames[] = {
16959 (char *) "self", NULL
16960 };
16961
16962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
16963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16965 {
16966 PyThreadState* __tstate = wxPyBeginAllowThreads();
16967 (arg1)->Detach();
16968
16969 wxPyEndAllowThreads(__tstate);
16970 if (PyErr_Occurred()) SWIG_fail;
16971 }
16972 Py_INCREF(Py_None); resultobj = Py_None;
16973 return resultobj;
16974 fail:
16975 return NULL;
16976 }
16977
16978
16979 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
16980 PyObject *resultobj;
16981 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16982 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
16983 PyObject * obj0 = 0 ;
16984 PyObject * obj1 = 0 ;
16985 char *kwnames[] = {
16986 (char *) "self",(char *) "tbar", NULL
16987 };
16988
16989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
16990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16992 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
16993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16994 {
16995 PyThreadState* __tstate = wxPyBeginAllowThreads();
16996 (arg1)->Attach(arg2);
16997
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 Py_INCREF(Py_None); resultobj = Py_None;
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj;
17010 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17011 PyObject *result;
17012 PyObject * obj0 = 0 ;
17013 char *kwnames[] = {
17014 (char *) "self", NULL
17015 };
17016
17017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17020 {
17021 PyThreadState* __tstate = wxPyBeginAllowThreads();
17022 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17023
17024 wxPyEndAllowThreads(__tstate);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 }
17027 resultobj = result;
17028 return resultobj;
17029 fail:
17030 return NULL;
17031 }
17032
17033
17034 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17035 PyObject *resultobj;
17036 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17037 PyObject *arg2 = (PyObject *) 0 ;
17038 PyObject * obj0 = 0 ;
17039 PyObject * obj1 = 0 ;
17040 char *kwnames[] = {
17041 (char *) "self",(char *) "clientData", NULL
17042 };
17043
17044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17047 arg2 = obj1;
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 wxToolBarToolBase_SetClientData(arg1,arg2);
17051
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 Py_INCREF(Py_None); resultobj = Py_None;
17056 return resultobj;
17057 fail:
17058 return NULL;
17059 }
17060
17061
17062 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17063 PyObject *obj;
17064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17065 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17066 Py_INCREF(obj);
17067 return Py_BuildValue((char *)"");
17068 }
17069 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17070 PyObject *resultobj;
17071 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17072 int arg2 ;
17073 wxString *arg3 = 0 ;
17074 wxBitmap *arg4 = 0 ;
17075 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17076 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17077 int arg6 = (int) wxITEM_NORMAL ;
17078 wxString const &arg7_defvalue = wxPyEmptyString ;
17079 wxString *arg7 = (wxString *) &arg7_defvalue ;
17080 wxString const &arg8_defvalue = wxPyEmptyString ;
17081 wxString *arg8 = (wxString *) &arg8_defvalue ;
17082 PyObject *arg9 = (PyObject *) NULL ;
17083 wxToolBarToolBase *result;
17084 bool temp3 = False ;
17085 bool temp7 = False ;
17086 bool temp8 = False ;
17087 PyObject * obj0 = 0 ;
17088 PyObject * obj1 = 0 ;
17089 PyObject * obj2 = 0 ;
17090 PyObject * obj3 = 0 ;
17091 PyObject * obj4 = 0 ;
17092 PyObject * obj5 = 0 ;
17093 PyObject * obj6 = 0 ;
17094 PyObject * obj7 = 0 ;
17095 PyObject * obj8 = 0 ;
17096 char *kwnames[] = {
17097 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17098 };
17099
17100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17103 arg2 = (int)SWIG_As_int(obj1);
17104 if (PyErr_Occurred()) SWIG_fail;
17105 {
17106 arg3 = wxString_in_helper(obj2);
17107 if (arg3 == NULL) SWIG_fail;
17108 temp3 = True;
17109 }
17110 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17111 SWIG_POINTER_EXCEPTION | 0)) == -1)
17112 SWIG_fail;
17113 if (arg4 == NULL) {
17114 PyErr_SetString(PyExc_TypeError,"null reference");
17115 SWIG_fail;
17116 }
17117 if (obj4) {
17118 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17119 SWIG_POINTER_EXCEPTION | 0)) == -1)
17120 SWIG_fail;
17121 if (arg5 == NULL) {
17122 PyErr_SetString(PyExc_TypeError,"null reference");
17123 SWIG_fail;
17124 }
17125 }
17126 if (obj5) {
17127 arg6 = (int)SWIG_As_int(obj5);
17128 if (PyErr_Occurred()) SWIG_fail;
17129 }
17130 if (obj6) {
17131 {
17132 arg7 = wxString_in_helper(obj6);
17133 if (arg7 == NULL) SWIG_fail;
17134 temp7 = True;
17135 }
17136 }
17137 if (obj7) {
17138 {
17139 arg8 = wxString_in_helper(obj7);
17140 if (arg8 == NULL) SWIG_fail;
17141 temp8 = True;
17142 }
17143 }
17144 if (obj8) {
17145 arg9 = obj8;
17146 }
17147 {
17148 PyThreadState* __tstate = wxPyBeginAllowThreads();
17149 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17150
17151 wxPyEndAllowThreads(__tstate);
17152 if (PyErr_Occurred()) SWIG_fail;
17153 }
17154 {
17155 resultobj = wxPyMake_wxObject(result, 0);
17156 }
17157 {
17158 if (temp3)
17159 delete arg3;
17160 }
17161 {
17162 if (temp7)
17163 delete arg7;
17164 }
17165 {
17166 if (temp8)
17167 delete arg8;
17168 }
17169 return resultobj;
17170 fail:
17171 {
17172 if (temp3)
17173 delete arg3;
17174 }
17175 {
17176 if (temp7)
17177 delete arg7;
17178 }
17179 {
17180 if (temp8)
17181 delete arg8;
17182 }
17183 return NULL;
17184 }
17185
17186
17187 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17188 PyObject *resultobj;
17189 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17190 size_t arg2 ;
17191 int arg3 ;
17192 wxString *arg4 = 0 ;
17193 wxBitmap *arg5 = 0 ;
17194 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17195 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17196 int arg7 = (int) wxITEM_NORMAL ;
17197 wxString const &arg8_defvalue = wxPyEmptyString ;
17198 wxString *arg8 = (wxString *) &arg8_defvalue ;
17199 wxString const &arg9_defvalue = wxPyEmptyString ;
17200 wxString *arg9 = (wxString *) &arg9_defvalue ;
17201 PyObject *arg10 = (PyObject *) NULL ;
17202 wxToolBarToolBase *result;
17203 bool temp4 = False ;
17204 bool temp8 = False ;
17205 bool temp9 = False ;
17206 PyObject * obj0 = 0 ;
17207 PyObject * obj1 = 0 ;
17208 PyObject * obj2 = 0 ;
17209 PyObject * obj3 = 0 ;
17210 PyObject * obj4 = 0 ;
17211 PyObject * obj5 = 0 ;
17212 PyObject * obj6 = 0 ;
17213 PyObject * obj7 = 0 ;
17214 PyObject * obj8 = 0 ;
17215 PyObject * obj9 = 0 ;
17216 char *kwnames[] = {
17217 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17218 };
17219
17220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17223 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 arg3 = (int)SWIG_As_int(obj2);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 {
17228 arg4 = wxString_in_helper(obj3);
17229 if (arg4 == NULL) SWIG_fail;
17230 temp4 = True;
17231 }
17232 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17233 SWIG_POINTER_EXCEPTION | 0)) == -1)
17234 SWIG_fail;
17235 if (arg5 == NULL) {
17236 PyErr_SetString(PyExc_TypeError,"null reference");
17237 SWIG_fail;
17238 }
17239 if (obj5) {
17240 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17241 SWIG_POINTER_EXCEPTION | 0)) == -1)
17242 SWIG_fail;
17243 if (arg6 == NULL) {
17244 PyErr_SetString(PyExc_TypeError,"null reference");
17245 SWIG_fail;
17246 }
17247 }
17248 if (obj6) {
17249 arg7 = (int)SWIG_As_int(obj6);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 if (obj7) {
17253 {
17254 arg8 = wxString_in_helper(obj7);
17255 if (arg8 == NULL) SWIG_fail;
17256 temp8 = True;
17257 }
17258 }
17259 if (obj8) {
17260 {
17261 arg9 = wxString_in_helper(obj8);
17262 if (arg9 == NULL) SWIG_fail;
17263 temp9 = True;
17264 }
17265 }
17266 if (obj9) {
17267 arg10 = obj9;
17268 }
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 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);
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 {
17277 resultobj = wxPyMake_wxObject(result, 0);
17278 }
17279 {
17280 if (temp4)
17281 delete arg4;
17282 }
17283 {
17284 if (temp8)
17285 delete arg8;
17286 }
17287 {
17288 if (temp9)
17289 delete arg9;
17290 }
17291 return resultobj;
17292 fail:
17293 {
17294 if (temp4)
17295 delete arg4;
17296 }
17297 {
17298 if (temp8)
17299 delete arg8;
17300 }
17301 {
17302 if (temp9)
17303 delete arg9;
17304 }
17305 return NULL;
17306 }
17307
17308
17309 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj;
17311 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17312 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17313 wxToolBarToolBase *result;
17314 PyObject * obj0 = 0 ;
17315 PyObject * obj1 = 0 ;
17316 char *kwnames[] = {
17317 (char *) "self",(char *) "tool", NULL
17318 };
17319
17320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17325 {
17326 PyThreadState* __tstate = wxPyBeginAllowThreads();
17327 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17328
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 resultobj = wxPyMake_wxObject(result, 0);
17334 }
17335 return resultobj;
17336 fail:
17337 return NULL;
17338 }
17339
17340
17341 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj;
17343 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17344 size_t arg2 ;
17345 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17346 wxToolBarToolBase *result;
17347 PyObject * obj0 = 0 ;
17348 PyObject * obj1 = 0 ;
17349 PyObject * obj2 = 0 ;
17350 char *kwnames[] = {
17351 (char *) "self",(char *) "pos",(char *) "tool", NULL
17352 };
17353
17354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17357 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17358 if (PyErr_Occurred()) SWIG_fail;
17359 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17361 {
17362 PyThreadState* __tstate = wxPyBeginAllowThreads();
17363 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17364
17365 wxPyEndAllowThreads(__tstate);
17366 if (PyErr_Occurred()) SWIG_fail;
17367 }
17368 {
17369 resultobj = wxPyMake_wxObject(result, 0);
17370 }
17371 return resultobj;
17372 fail:
17373 return NULL;
17374 }
17375
17376
17377 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17378 PyObject *resultobj;
17379 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17380 wxControl *arg2 = (wxControl *) 0 ;
17381 wxToolBarToolBase *result;
17382 PyObject * obj0 = 0 ;
17383 PyObject * obj1 = 0 ;
17384 char *kwnames[] = {
17385 (char *) "self",(char *) "control", NULL
17386 };
17387
17388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17393 {
17394 PyThreadState* __tstate = wxPyBeginAllowThreads();
17395 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17396
17397 wxPyEndAllowThreads(__tstate);
17398 if (PyErr_Occurred()) SWIG_fail;
17399 }
17400 {
17401 resultobj = wxPyMake_wxObject(result, 0);
17402 }
17403 return resultobj;
17404 fail:
17405 return NULL;
17406 }
17407
17408
17409 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17410 PyObject *resultobj;
17411 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17412 size_t arg2 ;
17413 wxControl *arg3 = (wxControl *) 0 ;
17414 wxToolBarToolBase *result;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 PyObject * obj2 = 0 ;
17418 char *kwnames[] = {
17419 (char *) "self",(char *) "pos",(char *) "control", NULL
17420 };
17421
17422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17425 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17426 if (PyErr_Occurred()) SWIG_fail;
17427 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17429 {
17430 PyThreadState* __tstate = wxPyBeginAllowThreads();
17431 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17432
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 {
17437 resultobj = wxPyMake_wxObject(result, 0);
17438 }
17439 return resultobj;
17440 fail:
17441 return NULL;
17442 }
17443
17444
17445 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17446 PyObject *resultobj;
17447 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17448 int arg2 ;
17449 wxControl *result;
17450 PyObject * obj0 = 0 ;
17451 PyObject * obj1 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "id", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17459 arg2 = (int)SWIG_As_int(obj1);
17460 if (PyErr_Occurred()) SWIG_fail;
17461 {
17462 PyThreadState* __tstate = wxPyBeginAllowThreads();
17463 result = (wxControl *)(arg1)->FindControl(arg2);
17464
17465 wxPyEndAllowThreads(__tstate);
17466 if (PyErr_Occurred()) SWIG_fail;
17467 }
17468 {
17469 resultobj = wxPyMake_wxObject(result, 0);
17470 }
17471 return resultobj;
17472 fail:
17473 return NULL;
17474 }
17475
17476
17477 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17478 PyObject *resultobj;
17479 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17480 wxToolBarToolBase *result;
17481 PyObject * obj0 = 0 ;
17482 char *kwnames[] = {
17483 (char *) "self", NULL
17484 };
17485
17486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17489 {
17490 PyThreadState* __tstate = wxPyBeginAllowThreads();
17491 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17492
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 {
17497 resultobj = wxPyMake_wxObject(result, 0);
17498 }
17499 return resultobj;
17500 fail:
17501 return NULL;
17502 }
17503
17504
17505 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17506 PyObject *resultobj;
17507 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17508 size_t arg2 ;
17509 wxToolBarToolBase *result;
17510 PyObject * obj0 = 0 ;
17511 PyObject * obj1 = 0 ;
17512 char *kwnames[] = {
17513 (char *) "self",(char *) "pos", NULL
17514 };
17515
17516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17519 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17520 if (PyErr_Occurred()) SWIG_fail;
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17524
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 {
17529 resultobj = wxPyMake_wxObject(result, 0);
17530 }
17531 return resultobj;
17532 fail:
17533 return NULL;
17534 }
17535
17536
17537 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17538 PyObject *resultobj;
17539 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17540 int arg2 ;
17541 wxToolBarToolBase *result;
17542 PyObject * obj0 = 0 ;
17543 PyObject * obj1 = 0 ;
17544 char *kwnames[] = {
17545 (char *) "self",(char *) "id", NULL
17546 };
17547
17548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17551 arg2 = (int)SWIG_As_int(obj1);
17552 if (PyErr_Occurred()) SWIG_fail;
17553 {
17554 PyThreadState* __tstate = wxPyBeginAllowThreads();
17555 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17556
17557 wxPyEndAllowThreads(__tstate);
17558 if (PyErr_Occurred()) SWIG_fail;
17559 }
17560 {
17561 resultobj = wxPyMake_wxObject(result, 0);
17562 }
17563 return resultobj;
17564 fail:
17565 return NULL;
17566 }
17567
17568
17569 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17570 PyObject *resultobj;
17571 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17572 size_t arg2 ;
17573 bool result;
17574 PyObject * obj0 = 0 ;
17575 PyObject * obj1 = 0 ;
17576 char *kwnames[] = {
17577 (char *) "self",(char *) "pos", NULL
17578 };
17579
17580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17583 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17584 if (PyErr_Occurred()) SWIG_fail;
17585 {
17586 PyThreadState* __tstate = wxPyBeginAllowThreads();
17587 result = (bool)(arg1)->DeleteToolByPos(arg2);
17588
17589 wxPyEndAllowThreads(__tstate);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 {
17593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17594 }
17595 return resultobj;
17596 fail:
17597 return NULL;
17598 }
17599
17600
17601 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17602 PyObject *resultobj;
17603 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17604 int arg2 ;
17605 bool result;
17606 PyObject * obj0 = 0 ;
17607 PyObject * obj1 = 0 ;
17608 char *kwnames[] = {
17609 (char *) "self",(char *) "id", NULL
17610 };
17611
17612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17615 arg2 = (int)SWIG_As_int(obj1);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 {
17618 PyThreadState* __tstate = wxPyBeginAllowThreads();
17619 result = (bool)(arg1)->DeleteTool(arg2);
17620
17621 wxPyEndAllowThreads(__tstate);
17622 if (PyErr_Occurred()) SWIG_fail;
17623 }
17624 {
17625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17626 }
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj;
17635 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17636 PyObject * obj0 = 0 ;
17637 char *kwnames[] = {
17638 (char *) "self", NULL
17639 };
17640
17641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 (arg1)->ClearTools();
17647
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 Py_INCREF(Py_None); resultobj = Py_None;
17652 return resultobj;
17653 fail:
17654 return NULL;
17655 }
17656
17657
17658 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17659 PyObject *resultobj;
17660 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17661 bool result;
17662 PyObject * obj0 = 0 ;
17663 char *kwnames[] = {
17664 (char *) "self", NULL
17665 };
17666
17667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17670 {
17671 PyThreadState* __tstate = wxPyBeginAllowThreads();
17672 result = (bool)(arg1)->Realize();
17673
17674 wxPyEndAllowThreads(__tstate);
17675 if (PyErr_Occurred()) SWIG_fail;
17676 }
17677 {
17678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17679 }
17680 return resultobj;
17681 fail:
17682 return NULL;
17683 }
17684
17685
17686 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17687 PyObject *resultobj;
17688 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17689 int arg2 ;
17690 bool arg3 ;
17691 PyObject * obj0 = 0 ;
17692 PyObject * obj1 = 0 ;
17693 PyObject * obj2 = 0 ;
17694 char *kwnames[] = {
17695 (char *) "self",(char *) "id",(char *) "enable", NULL
17696 };
17697
17698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17701 arg2 = (int)SWIG_As_int(obj1);
17702 if (PyErr_Occurred()) SWIG_fail;
17703 arg3 = (bool)SWIG_As_bool(obj2);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 {
17706 PyThreadState* __tstate = wxPyBeginAllowThreads();
17707 (arg1)->EnableTool(arg2,arg3);
17708
17709 wxPyEndAllowThreads(__tstate);
17710 if (PyErr_Occurred()) SWIG_fail;
17711 }
17712 Py_INCREF(Py_None); resultobj = Py_None;
17713 return resultobj;
17714 fail:
17715 return NULL;
17716 }
17717
17718
17719 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj;
17721 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17722 int arg2 ;
17723 bool arg3 ;
17724 PyObject * obj0 = 0 ;
17725 PyObject * obj1 = 0 ;
17726 PyObject * obj2 = 0 ;
17727 char *kwnames[] = {
17728 (char *) "self",(char *) "id",(char *) "toggle", NULL
17729 };
17730
17731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
17732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17734 arg2 = (int)SWIG_As_int(obj1);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 arg3 = (bool)SWIG_As_bool(obj2);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 (arg1)->ToggleTool(arg2,arg3);
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 Py_INCREF(Py_None); resultobj = Py_None;
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj;
17754 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17755 int arg2 ;
17756 bool arg3 ;
17757 PyObject * obj0 = 0 ;
17758 PyObject * obj1 = 0 ;
17759 PyObject * obj2 = 0 ;
17760 char *kwnames[] = {
17761 (char *) "self",(char *) "id",(char *) "toggle", NULL
17762 };
17763
17764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
17765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17767 arg2 = (int)SWIG_As_int(obj1);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 arg3 = (bool)SWIG_As_bool(obj2);
17770 if (PyErr_Occurred()) SWIG_fail;
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 (arg1)->SetToggle(arg2,arg3);
17774
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 Py_INCREF(Py_None); resultobj = Py_None;
17779 return resultobj;
17780 fail:
17781 return NULL;
17782 }
17783
17784
17785 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17788 int arg2 ;
17789 PyObject *result;
17790 PyObject * obj0 = 0 ;
17791 PyObject * obj1 = 0 ;
17792 char *kwnames[] = {
17793 (char *) "self",(char *) "id", NULL
17794 };
17795
17796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
17797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17799 arg2 = (int)SWIG_As_int(obj1);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = result;
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj;
17817 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17818 int arg2 ;
17819 PyObject *arg3 = (PyObject *) 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 PyObject * obj2 = 0 ;
17823 char *kwnames[] = {
17824 (char *) "self",(char *) "id",(char *) "clientData", NULL
17825 };
17826
17827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
17828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17830 arg2 = (int)SWIG_As_int(obj1);
17831 if (PyErr_Occurred()) SWIG_fail;
17832 arg3 = obj2;
17833 {
17834 PyThreadState* __tstate = wxPyBeginAllowThreads();
17835 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
17836
17837 wxPyEndAllowThreads(__tstate);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 }
17840 Py_INCREF(Py_None); resultobj = Py_None;
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17850 int arg2 ;
17851 int result;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 char *kwnames[] = {
17855 (char *) "self",(char *) "id", NULL
17856 };
17857
17858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
17859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17861 arg2 = (int)SWIG_As_int(obj1);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 {
17864 PyThreadState* __tstate = wxPyBeginAllowThreads();
17865 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
17866
17867 wxPyEndAllowThreads(__tstate);
17868 if (PyErr_Occurred()) SWIG_fail;
17869 }
17870 resultobj = SWIG_From_int((int)result);
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17880 int arg2 ;
17881 bool result;
17882 PyObject * obj0 = 0 ;
17883 PyObject * obj1 = 0 ;
17884 char *kwnames[] = {
17885 (char *) "self",(char *) "id", NULL
17886 };
17887
17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 arg2 = (int)SWIG_As_int(obj1);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 {
17894 PyThreadState* __tstate = wxPyBeginAllowThreads();
17895 result = (bool)(arg1)->GetToolState(arg2);
17896
17897 wxPyEndAllowThreads(__tstate);
17898 if (PyErr_Occurred()) SWIG_fail;
17899 }
17900 {
17901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17902 }
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17912 int arg2 ;
17913 bool result;
17914 PyObject * obj0 = 0 ;
17915 PyObject * obj1 = 0 ;
17916 char *kwnames[] = {
17917 (char *) "self",(char *) "id", NULL
17918 };
17919
17920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
17921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17923 arg2 = (int)SWIG_As_int(obj1);
17924 if (PyErr_Occurred()) SWIG_fail;
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 result = (bool)(arg1)->GetToolEnabled(arg2);
17928
17929 wxPyEndAllowThreads(__tstate);
17930 if (PyErr_Occurred()) SWIG_fail;
17931 }
17932 {
17933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17934 }
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj;
17943 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17944 int arg2 ;
17945 wxString *arg3 = 0 ;
17946 bool temp3 = False ;
17947 PyObject * obj0 = 0 ;
17948 PyObject * obj1 = 0 ;
17949 PyObject * obj2 = 0 ;
17950 char *kwnames[] = {
17951 (char *) "self",(char *) "id",(char *) "helpString", NULL
17952 };
17953
17954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
17955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17957 arg2 = (int)SWIG_As_int(obj1);
17958 if (PyErr_Occurred()) SWIG_fail;
17959 {
17960 arg3 = wxString_in_helper(obj2);
17961 if (arg3 == NULL) SWIG_fail;
17962 temp3 = True;
17963 }
17964 {
17965 PyThreadState* __tstate = wxPyBeginAllowThreads();
17966 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
17967
17968 wxPyEndAllowThreads(__tstate);
17969 if (PyErr_Occurred()) SWIG_fail;
17970 }
17971 Py_INCREF(Py_None); resultobj = Py_None;
17972 {
17973 if (temp3)
17974 delete arg3;
17975 }
17976 return resultobj;
17977 fail:
17978 {
17979 if (temp3)
17980 delete arg3;
17981 }
17982 return NULL;
17983 }
17984
17985
17986 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17987 PyObject *resultobj;
17988 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17989 int arg2 ;
17990 wxString result;
17991 PyObject * obj0 = 0 ;
17992 PyObject * obj1 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self",(char *) "id", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
17998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18000 arg2 = (int)SWIG_As_int(obj1);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 {
18003 PyThreadState* __tstate = wxPyBeginAllowThreads();
18004 result = (arg1)->GetToolShortHelp(arg2);
18005
18006 wxPyEndAllowThreads(__tstate);
18007 if (PyErr_Occurred()) SWIG_fail;
18008 }
18009 {
18010 #if wxUSE_UNICODE
18011 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18012 #else
18013 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18014 #endif
18015 }
18016 return resultobj;
18017 fail:
18018 return NULL;
18019 }
18020
18021
18022 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18023 PyObject *resultobj;
18024 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18025 int arg2 ;
18026 wxString *arg3 = 0 ;
18027 bool temp3 = False ;
18028 PyObject * obj0 = 0 ;
18029 PyObject * obj1 = 0 ;
18030 PyObject * obj2 = 0 ;
18031 char *kwnames[] = {
18032 (char *) "self",(char *) "id",(char *) "helpString", NULL
18033 };
18034
18035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18038 arg2 = (int)SWIG_As_int(obj1);
18039 if (PyErr_Occurred()) SWIG_fail;
18040 {
18041 arg3 = wxString_in_helper(obj2);
18042 if (arg3 == NULL) SWIG_fail;
18043 temp3 = True;
18044 }
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18048
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 Py_INCREF(Py_None); resultobj = Py_None;
18053 {
18054 if (temp3)
18055 delete arg3;
18056 }
18057 return resultobj;
18058 fail:
18059 {
18060 if (temp3)
18061 delete arg3;
18062 }
18063 return NULL;
18064 }
18065
18066
18067 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj;
18069 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18070 int arg2 ;
18071 wxString result;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "id", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18081 arg2 = (int)SWIG_As_int(obj1);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 result = (arg1)->GetToolLongHelp(arg2);
18086
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 {
18091 #if wxUSE_UNICODE
18092 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18093 #else
18094 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18095 #endif
18096 }
18097 return resultobj;
18098 fail:
18099 return NULL;
18100 }
18101
18102
18103 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18104 PyObject *resultobj;
18105 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18106 int arg2 ;
18107 int arg3 ;
18108 PyObject * obj0 = 0 ;
18109 PyObject * obj1 = 0 ;
18110 PyObject * obj2 = 0 ;
18111 char *kwnames[] = {
18112 (char *) "self",(char *) "x",(char *) "y", NULL
18113 };
18114
18115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18118 arg2 = (int)SWIG_As_int(obj1);
18119 if (PyErr_Occurred()) SWIG_fail;
18120 arg3 = (int)SWIG_As_int(obj2);
18121 if (PyErr_Occurred()) SWIG_fail;
18122 {
18123 PyThreadState* __tstate = wxPyBeginAllowThreads();
18124 (arg1)->SetMargins(arg2,arg3);
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_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18137 PyObject *resultobj;
18138 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18139 wxSize *arg2 = 0 ;
18140 wxSize temp2 ;
18141 PyObject * obj0 = 0 ;
18142 PyObject * obj1 = 0 ;
18143 char *kwnames[] = {
18144 (char *) "self",(char *) "size", NULL
18145 };
18146
18147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18150 {
18151 arg2 = &temp2;
18152 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18153 }
18154 {
18155 PyThreadState* __tstate = wxPyBeginAllowThreads();
18156 (arg1)->SetMargins((wxSize const &)*arg2);
18157
18158 wxPyEndAllowThreads(__tstate);
18159 if (PyErr_Occurred()) SWIG_fail;
18160 }
18161 Py_INCREF(Py_None); resultobj = Py_None;
18162 return resultobj;
18163 fail:
18164 return NULL;
18165 }
18166
18167
18168 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18169 PyObject *resultobj;
18170 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18171 int arg2 ;
18172 PyObject * obj0 = 0 ;
18173 PyObject * obj1 = 0 ;
18174 char *kwnames[] = {
18175 (char *) "self",(char *) "packing", NULL
18176 };
18177
18178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18181 arg2 = (int)SWIG_As_int(obj1);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 {
18184 PyThreadState* __tstate = wxPyBeginAllowThreads();
18185 (arg1)->SetToolPacking(arg2);
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_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18198 PyObject *resultobj;
18199 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18200 int arg2 ;
18201 PyObject * obj0 = 0 ;
18202 PyObject * obj1 = 0 ;
18203 char *kwnames[] = {
18204 (char *) "self",(char *) "separation", NULL
18205 };
18206
18207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18210 arg2 = (int)SWIG_As_int(obj1);
18211 if (PyErr_Occurred()) SWIG_fail;
18212 {
18213 PyThreadState* __tstate = wxPyBeginAllowThreads();
18214 (arg1)->SetToolSeparation(arg2);
18215
18216 wxPyEndAllowThreads(__tstate);
18217 if (PyErr_Occurred()) SWIG_fail;
18218 }
18219 Py_INCREF(Py_None); resultobj = Py_None;
18220 return resultobj;
18221 fail:
18222 return NULL;
18223 }
18224
18225
18226 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18227 PyObject *resultobj;
18228 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18229 wxSize result;
18230 PyObject * obj0 = 0 ;
18231 char *kwnames[] = {
18232 (char *) "self", NULL
18233 };
18234
18235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18238 {
18239 PyThreadState* __tstate = wxPyBeginAllowThreads();
18240 result = (arg1)->GetToolMargins();
18241
18242 wxPyEndAllowThreads(__tstate);
18243 if (PyErr_Occurred()) SWIG_fail;
18244 }
18245 {
18246 wxSize * resultptr;
18247 resultptr = new wxSize((wxSize &) result);
18248 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18249 }
18250 return resultobj;
18251 fail:
18252 return NULL;
18253 }
18254
18255
18256 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18257 PyObject *resultobj;
18258 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18259 wxSize result;
18260 PyObject * obj0 = 0 ;
18261 char *kwnames[] = {
18262 (char *) "self", NULL
18263 };
18264
18265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 result = (arg1)->GetMargins();
18271
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 {
18276 wxSize * resultptr;
18277 resultptr = new wxSize((wxSize &) result);
18278 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18279 }
18280 return resultobj;
18281 fail:
18282 return NULL;
18283 }
18284
18285
18286 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj;
18288 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18289 int result;
18290 PyObject * obj0 = 0 ;
18291 char *kwnames[] = {
18292 (char *) "self", NULL
18293 };
18294
18295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18298 {
18299 PyThreadState* __tstate = wxPyBeginAllowThreads();
18300 result = (int)(arg1)->GetToolPacking();
18301
18302 wxPyEndAllowThreads(__tstate);
18303 if (PyErr_Occurred()) SWIG_fail;
18304 }
18305 resultobj = SWIG_From_int((int)result);
18306 return resultobj;
18307 fail:
18308 return NULL;
18309 }
18310
18311
18312 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18313 PyObject *resultobj;
18314 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18315 int result;
18316 PyObject * obj0 = 0 ;
18317 char *kwnames[] = {
18318 (char *) "self", NULL
18319 };
18320
18321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18324 {
18325 PyThreadState* __tstate = wxPyBeginAllowThreads();
18326 result = (int)(arg1)->GetToolSeparation();
18327
18328 wxPyEndAllowThreads(__tstate);
18329 if (PyErr_Occurred()) SWIG_fail;
18330 }
18331 resultobj = SWIG_From_int((int)result);
18332 return resultobj;
18333 fail:
18334 return NULL;
18335 }
18336
18337
18338 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18339 PyObject *resultobj;
18340 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18341 int arg2 ;
18342 PyObject * obj0 = 0 ;
18343 PyObject * obj1 = 0 ;
18344 char *kwnames[] = {
18345 (char *) "self",(char *) "nRows", NULL
18346 };
18347
18348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18351 arg2 = (int)SWIG_As_int(obj1);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 {
18354 PyThreadState* __tstate = wxPyBeginAllowThreads();
18355 (arg1)->SetRows(arg2);
18356
18357 wxPyEndAllowThreads(__tstate);
18358 if (PyErr_Occurred()) SWIG_fail;
18359 }
18360 Py_INCREF(Py_None); resultobj = Py_None;
18361 return resultobj;
18362 fail:
18363 return NULL;
18364 }
18365
18366
18367 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18368 PyObject *resultobj;
18369 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18370 int arg2 ;
18371 int arg3 ;
18372 PyObject * obj0 = 0 ;
18373 PyObject * obj1 = 0 ;
18374 PyObject * obj2 = 0 ;
18375 char *kwnames[] = {
18376 (char *) "self",(char *) "rows",(char *) "cols", NULL
18377 };
18378
18379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18382 arg2 = (int)SWIG_As_int(obj1);
18383 if (PyErr_Occurred()) SWIG_fail;
18384 arg3 = (int)SWIG_As_int(obj2);
18385 if (PyErr_Occurred()) SWIG_fail;
18386 {
18387 PyThreadState* __tstate = wxPyBeginAllowThreads();
18388 (arg1)->SetMaxRowsCols(arg2,arg3);
18389
18390 wxPyEndAllowThreads(__tstate);
18391 if (PyErr_Occurred()) SWIG_fail;
18392 }
18393 Py_INCREF(Py_None); resultobj = Py_None;
18394 return resultobj;
18395 fail:
18396 return NULL;
18397 }
18398
18399
18400 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18401 PyObject *resultobj;
18402 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18403 int result;
18404 PyObject * obj0 = 0 ;
18405 char *kwnames[] = {
18406 (char *) "self", NULL
18407 };
18408
18409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18412 {
18413 PyThreadState* __tstate = wxPyBeginAllowThreads();
18414 result = (int)(arg1)->GetMaxRows();
18415
18416 wxPyEndAllowThreads(__tstate);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 resultobj = SWIG_From_int((int)result);
18420 return resultobj;
18421 fail:
18422 return NULL;
18423 }
18424
18425
18426 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18427 PyObject *resultobj;
18428 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18429 int result;
18430 PyObject * obj0 = 0 ;
18431 char *kwnames[] = {
18432 (char *) "self", NULL
18433 };
18434
18435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18438 {
18439 PyThreadState* __tstate = wxPyBeginAllowThreads();
18440 result = (int)(arg1)->GetMaxCols();
18441
18442 wxPyEndAllowThreads(__tstate);
18443 if (PyErr_Occurred()) SWIG_fail;
18444 }
18445 resultobj = SWIG_From_int((int)result);
18446 return resultobj;
18447 fail:
18448 return NULL;
18449 }
18450
18451
18452 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18455 wxSize *arg2 = 0 ;
18456 wxSize temp2 ;
18457 PyObject * obj0 = 0 ;
18458 PyObject * obj1 = 0 ;
18459 char *kwnames[] = {
18460 (char *) "self",(char *) "size", NULL
18461 };
18462
18463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18466 {
18467 arg2 = &temp2;
18468 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18469 }
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18473
18474 wxPyEndAllowThreads(__tstate);
18475 if (PyErr_Occurred()) SWIG_fail;
18476 }
18477 Py_INCREF(Py_None); resultobj = Py_None;
18478 return resultobj;
18479 fail:
18480 return NULL;
18481 }
18482
18483
18484 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18485 PyObject *resultobj;
18486 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18487 wxSize result;
18488 PyObject * obj0 = 0 ;
18489 char *kwnames[] = {
18490 (char *) "self", NULL
18491 };
18492
18493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18496 {
18497 PyThreadState* __tstate = wxPyBeginAllowThreads();
18498 result = (arg1)->GetToolBitmapSize();
18499
18500 wxPyEndAllowThreads(__tstate);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 {
18504 wxSize * resultptr;
18505 resultptr = new wxSize((wxSize &) result);
18506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18507 }
18508 return resultobj;
18509 fail:
18510 return NULL;
18511 }
18512
18513
18514 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18515 PyObject *resultobj;
18516 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18517 wxSize result;
18518 PyObject * obj0 = 0 ;
18519 char *kwnames[] = {
18520 (char *) "self", NULL
18521 };
18522
18523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 result = (arg1)->GetToolSize();
18529
18530 wxPyEndAllowThreads(__tstate);
18531 if (PyErr_Occurred()) SWIG_fail;
18532 }
18533 {
18534 wxSize * resultptr;
18535 resultptr = new wxSize((wxSize &) result);
18536 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18537 }
18538 return resultobj;
18539 fail:
18540 return NULL;
18541 }
18542
18543
18544 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18545 PyObject *resultobj;
18546 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18547 int arg2 ;
18548 int arg3 ;
18549 wxToolBarToolBase *result;
18550 PyObject * obj0 = 0 ;
18551 PyObject * obj1 = 0 ;
18552 PyObject * obj2 = 0 ;
18553 char *kwnames[] = {
18554 (char *) "self",(char *) "x",(char *) "y", NULL
18555 };
18556
18557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18560 arg2 = (int)SWIG_As_int(obj1);
18561 if (PyErr_Occurred()) SWIG_fail;
18562 arg3 = (int)SWIG_As_int(obj2);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 {
18565 PyThreadState* __tstate = wxPyBeginAllowThreads();
18566 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18567
18568 wxPyEndAllowThreads(__tstate);
18569 if (PyErr_Occurred()) SWIG_fail;
18570 }
18571 {
18572 resultobj = wxPyMake_wxObject(result, 0);
18573 }
18574 return resultobj;
18575 fail:
18576 return NULL;
18577 }
18578
18579
18580 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18581 PyObject *resultobj;
18582 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18583 int arg2 ;
18584 wxToolBarToolBase *result;
18585 PyObject * obj0 = 0 ;
18586 PyObject * obj1 = 0 ;
18587 char *kwnames[] = {
18588 (char *) "self",(char *) "toolid", NULL
18589 };
18590
18591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18594 arg2 = (int)SWIG_As_int(obj1);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 {
18597 PyThreadState* __tstate = wxPyBeginAllowThreads();
18598 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18599
18600 wxPyEndAllowThreads(__tstate);
18601 if (PyErr_Occurred()) SWIG_fail;
18602 }
18603 {
18604 resultobj = wxPyMake_wxObject(result, 0);
18605 }
18606 return resultobj;
18607 fail:
18608 return NULL;
18609 }
18610
18611
18612 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18613 PyObject *resultobj;
18614 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18615 bool result;
18616 PyObject * obj0 = 0 ;
18617 char *kwnames[] = {
18618 (char *) "self", NULL
18619 };
18620
18621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18624 {
18625 PyThreadState* __tstate = wxPyBeginAllowThreads();
18626 result = (bool)(arg1)->IsVertical();
18627
18628 wxPyEndAllowThreads(__tstate);
18629 if (PyErr_Occurred()) SWIG_fail;
18630 }
18631 {
18632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18633 }
18634 return resultobj;
18635 fail:
18636 return NULL;
18637 }
18638
18639
18640 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18641 PyObject *obj;
18642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18643 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18644 Py_INCREF(obj);
18645 return Py_BuildValue((char *)"");
18646 }
18647 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18648 PyObject *resultobj;
18649 wxWindow *arg1 = (wxWindow *) 0 ;
18650 int arg2 = (int) -1 ;
18651 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18652 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18653 wxSize const &arg4_defvalue = wxDefaultSize ;
18654 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18655 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18656 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18657 wxString *arg6 = (wxString *) &arg6_defvalue ;
18658 wxToolBar *result;
18659 wxPoint temp3 ;
18660 wxSize temp4 ;
18661 bool temp6 = False ;
18662 PyObject * obj0 = 0 ;
18663 PyObject * obj1 = 0 ;
18664 PyObject * obj2 = 0 ;
18665 PyObject * obj3 = 0 ;
18666 PyObject * obj4 = 0 ;
18667 PyObject * obj5 = 0 ;
18668 char *kwnames[] = {
18669 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18670 };
18671
18672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18675 if (obj1) {
18676 arg2 = (int)SWIG_As_int(obj1);
18677 if (PyErr_Occurred()) SWIG_fail;
18678 }
18679 if (obj2) {
18680 {
18681 arg3 = &temp3;
18682 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18683 }
18684 }
18685 if (obj3) {
18686 {
18687 arg4 = &temp4;
18688 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18689 }
18690 }
18691 if (obj4) {
18692 arg5 = (long)SWIG_As_long(obj4);
18693 if (PyErr_Occurred()) SWIG_fail;
18694 }
18695 if (obj5) {
18696 {
18697 arg6 = wxString_in_helper(obj5);
18698 if (arg6 == NULL) SWIG_fail;
18699 temp6 = True;
18700 }
18701 }
18702 {
18703 if (!wxPyCheckForApp()) SWIG_fail;
18704 PyThreadState* __tstate = wxPyBeginAllowThreads();
18705 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
18706
18707 wxPyEndAllowThreads(__tstate);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 }
18710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18711 {
18712 if (temp6)
18713 delete arg6;
18714 }
18715 return resultobj;
18716 fail:
18717 {
18718 if (temp6)
18719 delete arg6;
18720 }
18721 return NULL;
18722 }
18723
18724
18725 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18726 PyObject *resultobj;
18727 wxToolBar *result;
18728 char *kwnames[] = {
18729 NULL
18730 };
18731
18732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
18733 {
18734 if (!wxPyCheckForApp()) SWIG_fail;
18735 PyThreadState* __tstate = wxPyBeginAllowThreads();
18736 result = (wxToolBar *)new wxToolBar();
18737
18738 wxPyEndAllowThreads(__tstate);
18739 if (PyErr_Occurred()) SWIG_fail;
18740 }
18741 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
18742 return resultobj;
18743 fail:
18744 return NULL;
18745 }
18746
18747
18748 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
18749 PyObject *resultobj;
18750 wxToolBar *arg1 = (wxToolBar *) 0 ;
18751 wxWindow *arg2 = (wxWindow *) 0 ;
18752 int arg3 = (int) -1 ;
18753 wxPoint const &arg4_defvalue = wxDefaultPosition ;
18754 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
18755 wxSize const &arg5_defvalue = wxDefaultSize ;
18756 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
18757 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18758 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
18759 wxString *arg7 = (wxString *) &arg7_defvalue ;
18760 bool result;
18761 wxPoint temp4 ;
18762 wxSize temp5 ;
18763 bool temp7 = False ;
18764 PyObject * obj0 = 0 ;
18765 PyObject * obj1 = 0 ;
18766 PyObject * obj2 = 0 ;
18767 PyObject * obj3 = 0 ;
18768 PyObject * obj4 = 0 ;
18769 PyObject * obj5 = 0 ;
18770 PyObject * obj6 = 0 ;
18771 char *kwnames[] = {
18772 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18773 };
18774
18775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
18776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18778 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
18779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18780 if (obj2) {
18781 arg3 = (int)SWIG_As_int(obj2);
18782 if (PyErr_Occurred()) SWIG_fail;
18783 }
18784 if (obj3) {
18785 {
18786 arg4 = &temp4;
18787 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18788 }
18789 }
18790 if (obj4) {
18791 {
18792 arg5 = &temp5;
18793 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
18794 }
18795 }
18796 if (obj5) {
18797 arg6 = (long)SWIG_As_long(obj5);
18798 if (PyErr_Occurred()) SWIG_fail;
18799 }
18800 if (obj6) {
18801 {
18802 arg7 = wxString_in_helper(obj6);
18803 if (arg7 == NULL) SWIG_fail;
18804 temp7 = True;
18805 }
18806 }
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
18809 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
18810
18811 wxPyEndAllowThreads(__tstate);
18812 if (PyErr_Occurred()) SWIG_fail;
18813 }
18814 {
18815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18816 }
18817 {
18818 if (temp7)
18819 delete arg7;
18820 }
18821 return resultobj;
18822 fail:
18823 {
18824 if (temp7)
18825 delete arg7;
18826 }
18827 return NULL;
18828 }
18829
18830
18831 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18832 PyObject *resultobj;
18833 wxToolBar *arg1 = (wxToolBar *) 0 ;
18834 int arg2 ;
18835 int arg3 ;
18836 wxToolBarToolBase *result;
18837 PyObject * obj0 = 0 ;
18838 PyObject * obj1 = 0 ;
18839 PyObject * obj2 = 0 ;
18840 char *kwnames[] = {
18841 (char *) "self",(char *) "x",(char *) "y", NULL
18842 };
18843
18844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
18846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18847 arg2 = (int)SWIG_As_int(obj1);
18848 if (PyErr_Occurred()) SWIG_fail;
18849 arg3 = (int)SWIG_As_int(obj2);
18850 if (PyErr_Occurred()) SWIG_fail;
18851 {
18852 PyThreadState* __tstate = wxPyBeginAllowThreads();
18853 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18854
18855 wxPyEndAllowThreads(__tstate);
18856 if (PyErr_Occurred()) SWIG_fail;
18857 }
18858 {
18859 resultobj = wxPyMake_wxObject(result, 0);
18860 }
18861 return resultobj;
18862 fail:
18863 return NULL;
18864 }
18865
18866
18867 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
18868 PyObject *resultobj;
18869 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
18870 wxVisualAttributes result;
18871 PyObject * obj0 = 0 ;
18872 char *kwnames[] = {
18873 (char *) "variant", NULL
18874 };
18875
18876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
18877 if (obj0) {
18878 arg1 = (int)SWIG_As_int(obj0);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 {
18882 if (!wxPyCheckForApp()) SWIG_fail;
18883 PyThreadState* __tstate = wxPyBeginAllowThreads();
18884 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
18885
18886 wxPyEndAllowThreads(__tstate);
18887 if (PyErr_Occurred()) SWIG_fail;
18888 }
18889 {
18890 wxVisualAttributes * resultptr;
18891 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
18892 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
18893 }
18894 return resultobj;
18895 fail:
18896 return NULL;
18897 }
18898
18899
18900 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
18901 PyObject *obj;
18902 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18903 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
18904 Py_INCREF(obj);
18905 return Py_BuildValue((char *)"");
18906 }
18907 static int _wrap_ListCtrlNameStr_set(PyObject *) {
18908 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
18909 return 1;
18910 }
18911
18912
18913 static PyObject *_wrap_ListCtrlNameStr_get() {
18914 PyObject *pyobj;
18915
18916 {
18917 #if wxUSE_UNICODE
18918 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18919 #else
18920 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
18921 #endif
18922 }
18923 return pyobj;
18924 }
18925
18926
18927 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
18928 PyObject *resultobj;
18929 wxColour const &arg1_defvalue = wxNullColour ;
18930 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
18931 wxColour const &arg2_defvalue = wxNullColour ;
18932 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
18933 wxFont const &arg3_defvalue = wxNullFont ;
18934 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
18935 wxListItemAttr *result;
18936 wxColour temp1 ;
18937 wxColour temp2 ;
18938 PyObject * obj0 = 0 ;
18939 PyObject * obj1 = 0 ;
18940 PyObject * obj2 = 0 ;
18941 char *kwnames[] = {
18942 (char *) "colText",(char *) "colBack",(char *) "font", NULL
18943 };
18944
18945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
18946 if (obj0) {
18947 {
18948 arg1 = &temp1;
18949 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
18950 }
18951 }
18952 if (obj1) {
18953 {
18954 arg2 = &temp2;
18955 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18956 }
18957 }
18958 if (obj2) {
18959 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
18960 SWIG_POINTER_EXCEPTION | 0)) == -1)
18961 SWIG_fail;
18962 if (arg3 == NULL) {
18963 PyErr_SetString(PyExc_TypeError,"null reference");
18964 SWIG_fail;
18965 }
18966 }
18967 {
18968 PyThreadState* __tstate = wxPyBeginAllowThreads();
18969 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
18970
18971 wxPyEndAllowThreads(__tstate);
18972 if (PyErr_Occurred()) SWIG_fail;
18973 }
18974 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
18975 return resultobj;
18976 fail:
18977 return NULL;
18978 }
18979
18980
18981 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
18982 PyObject *resultobj;
18983 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
18984 wxColour *arg2 = 0 ;
18985 wxColour temp2 ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 char *kwnames[] = {
18989 (char *) "self",(char *) "colText", NULL
18990 };
18991
18992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
18993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
18994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18995 {
18996 arg2 = &temp2;
18997 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18998 }
18999 {
19000 PyThreadState* __tstate = wxPyBeginAllowThreads();
19001 (arg1)->SetTextColour((wxColour const &)*arg2);
19002
19003 wxPyEndAllowThreads(__tstate);
19004 if (PyErr_Occurred()) SWIG_fail;
19005 }
19006 Py_INCREF(Py_None); resultobj = Py_None;
19007 return resultobj;
19008 fail:
19009 return NULL;
19010 }
19011
19012
19013 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19014 PyObject *resultobj;
19015 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19016 wxColour *arg2 = 0 ;
19017 wxColour temp2 ;
19018 PyObject * obj0 = 0 ;
19019 PyObject * obj1 = 0 ;
19020 char *kwnames[] = {
19021 (char *) "self",(char *) "colBack", NULL
19022 };
19023
19024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19027 {
19028 arg2 = &temp2;
19029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19030 }
19031 {
19032 PyThreadState* __tstate = wxPyBeginAllowThreads();
19033 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19034
19035 wxPyEndAllowThreads(__tstate);
19036 if (PyErr_Occurred()) SWIG_fail;
19037 }
19038 Py_INCREF(Py_None); resultobj = Py_None;
19039 return resultobj;
19040 fail:
19041 return NULL;
19042 }
19043
19044
19045 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19046 PyObject *resultobj;
19047 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19048 wxFont *arg2 = 0 ;
19049 PyObject * obj0 = 0 ;
19050 PyObject * obj1 = 0 ;
19051 char *kwnames[] = {
19052 (char *) "self",(char *) "font", NULL
19053 };
19054
19055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19059 SWIG_POINTER_EXCEPTION | 0)) == -1)
19060 SWIG_fail;
19061 if (arg2 == NULL) {
19062 PyErr_SetString(PyExc_TypeError,"null reference");
19063 SWIG_fail;
19064 }
19065 {
19066 PyThreadState* __tstate = wxPyBeginAllowThreads();
19067 (arg1)->SetFont((wxFont const &)*arg2);
19068
19069 wxPyEndAllowThreads(__tstate);
19070 if (PyErr_Occurred()) SWIG_fail;
19071 }
19072 Py_INCREF(Py_None); resultobj = Py_None;
19073 return resultobj;
19074 fail:
19075 return NULL;
19076 }
19077
19078
19079 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19080 PyObject *resultobj;
19081 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19082 bool result;
19083 PyObject * obj0 = 0 ;
19084 char *kwnames[] = {
19085 (char *) "self", NULL
19086 };
19087
19088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 result = (bool)(arg1)->HasTextColour();
19094
19095 wxPyEndAllowThreads(__tstate);
19096 if (PyErr_Occurred()) SWIG_fail;
19097 }
19098 {
19099 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19100 }
19101 return resultobj;
19102 fail:
19103 return NULL;
19104 }
19105
19106
19107 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj;
19109 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19110 bool result;
19111 PyObject * obj0 = 0 ;
19112 char *kwnames[] = {
19113 (char *) "self", NULL
19114 };
19115
19116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19119 {
19120 PyThreadState* __tstate = wxPyBeginAllowThreads();
19121 result = (bool)(arg1)->HasBackgroundColour();
19122
19123 wxPyEndAllowThreads(__tstate);
19124 if (PyErr_Occurred()) SWIG_fail;
19125 }
19126 {
19127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19128 }
19129 return resultobj;
19130 fail:
19131 return NULL;
19132 }
19133
19134
19135 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19136 PyObject *resultobj;
19137 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19138 bool result;
19139 PyObject * obj0 = 0 ;
19140 char *kwnames[] = {
19141 (char *) "self", NULL
19142 };
19143
19144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19147 {
19148 PyThreadState* __tstate = wxPyBeginAllowThreads();
19149 result = (bool)(arg1)->HasFont();
19150
19151 wxPyEndAllowThreads(__tstate);
19152 if (PyErr_Occurred()) SWIG_fail;
19153 }
19154 {
19155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19156 }
19157 return resultobj;
19158 fail:
19159 return NULL;
19160 }
19161
19162
19163 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19164 PyObject *resultobj;
19165 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19166 wxColour result;
19167 PyObject * obj0 = 0 ;
19168 char *kwnames[] = {
19169 (char *) "self", NULL
19170 };
19171
19172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19175 {
19176 PyThreadState* __tstate = wxPyBeginAllowThreads();
19177 result = (arg1)->GetTextColour();
19178
19179 wxPyEndAllowThreads(__tstate);
19180 if (PyErr_Occurred()) SWIG_fail;
19181 }
19182 {
19183 wxColour * resultptr;
19184 resultptr = new wxColour((wxColour &) result);
19185 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19186 }
19187 return resultobj;
19188 fail:
19189 return NULL;
19190 }
19191
19192
19193 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19194 PyObject *resultobj;
19195 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19196 wxColour result;
19197 PyObject * obj0 = 0 ;
19198 char *kwnames[] = {
19199 (char *) "self", NULL
19200 };
19201
19202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19205 {
19206 PyThreadState* __tstate = wxPyBeginAllowThreads();
19207 result = (arg1)->GetBackgroundColour();
19208
19209 wxPyEndAllowThreads(__tstate);
19210 if (PyErr_Occurred()) SWIG_fail;
19211 }
19212 {
19213 wxColour * resultptr;
19214 resultptr = new wxColour((wxColour &) result);
19215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19216 }
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj;
19225 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19226 wxFont result;
19227 PyObject * obj0 = 0 ;
19228 char *kwnames[] = {
19229 (char *) "self", NULL
19230 };
19231
19232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19235 {
19236 PyThreadState* __tstate = wxPyBeginAllowThreads();
19237 result = (arg1)->GetFont();
19238
19239 wxPyEndAllowThreads(__tstate);
19240 if (PyErr_Occurred()) SWIG_fail;
19241 }
19242 {
19243 wxFont * resultptr;
19244 resultptr = new wxFont((wxFont &) result);
19245 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19246 }
19247 return resultobj;
19248 fail:
19249 return NULL;
19250 }
19251
19252
19253 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19254 PyObject *resultobj;
19255 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19256 PyObject * obj0 = 0 ;
19257 char *kwnames[] = {
19258 (char *) "self", NULL
19259 };
19260
19261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19264 {
19265 PyThreadState* __tstate = wxPyBeginAllowThreads();
19266 wxListItemAttr_Destroy(arg1);
19267
19268 wxPyEndAllowThreads(__tstate);
19269 if (PyErr_Occurred()) SWIG_fail;
19270 }
19271 Py_INCREF(Py_None); resultobj = Py_None;
19272 return resultobj;
19273 fail:
19274 return NULL;
19275 }
19276
19277
19278 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19279 PyObject *obj;
19280 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19281 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19282 Py_INCREF(obj);
19283 return Py_BuildValue((char *)"");
19284 }
19285 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19286 PyObject *resultobj;
19287 wxListItem *result;
19288 char *kwnames[] = {
19289 NULL
19290 };
19291
19292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19293 {
19294 PyThreadState* __tstate = wxPyBeginAllowThreads();
19295 result = (wxListItem *)new wxListItem();
19296
19297 wxPyEndAllowThreads(__tstate);
19298 if (PyErr_Occurred()) SWIG_fail;
19299 }
19300 {
19301 resultobj = wxPyMake_wxObject(result, 1);
19302 }
19303 return resultobj;
19304 fail:
19305 return NULL;
19306 }
19307
19308
19309 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19310 PyObject *resultobj;
19311 wxListItem *arg1 = (wxListItem *) 0 ;
19312 PyObject * obj0 = 0 ;
19313 char *kwnames[] = {
19314 (char *) "self", NULL
19315 };
19316
19317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19320 {
19321 PyThreadState* __tstate = wxPyBeginAllowThreads();
19322 delete arg1;
19323
19324 wxPyEndAllowThreads(__tstate);
19325 if (PyErr_Occurred()) SWIG_fail;
19326 }
19327 Py_INCREF(Py_None); resultobj = Py_None;
19328 return resultobj;
19329 fail:
19330 return NULL;
19331 }
19332
19333
19334 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19335 PyObject *resultobj;
19336 wxListItem *arg1 = (wxListItem *) 0 ;
19337 PyObject * obj0 = 0 ;
19338 char *kwnames[] = {
19339 (char *) "self", NULL
19340 };
19341
19342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19345 {
19346 PyThreadState* __tstate = wxPyBeginAllowThreads();
19347 (arg1)->Clear();
19348
19349 wxPyEndAllowThreads(__tstate);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 Py_INCREF(Py_None); resultobj = Py_None;
19353 return resultobj;
19354 fail:
19355 return NULL;
19356 }
19357
19358
19359 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19360 PyObject *resultobj;
19361 wxListItem *arg1 = (wxListItem *) 0 ;
19362 PyObject * obj0 = 0 ;
19363 char *kwnames[] = {
19364 (char *) "self", NULL
19365 };
19366
19367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19370 {
19371 PyThreadState* __tstate = wxPyBeginAllowThreads();
19372 (arg1)->ClearAttributes();
19373
19374 wxPyEndAllowThreads(__tstate);
19375 if (PyErr_Occurred()) SWIG_fail;
19376 }
19377 Py_INCREF(Py_None); resultobj = Py_None;
19378 return resultobj;
19379 fail:
19380 return NULL;
19381 }
19382
19383
19384 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19385 PyObject *resultobj;
19386 wxListItem *arg1 = (wxListItem *) 0 ;
19387 long arg2 ;
19388 PyObject * obj0 = 0 ;
19389 PyObject * obj1 = 0 ;
19390 char *kwnames[] = {
19391 (char *) "self",(char *) "mask", NULL
19392 };
19393
19394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19397 arg2 = (long)SWIG_As_long(obj1);
19398 if (PyErr_Occurred()) SWIG_fail;
19399 {
19400 PyThreadState* __tstate = wxPyBeginAllowThreads();
19401 (arg1)->SetMask(arg2);
19402
19403 wxPyEndAllowThreads(__tstate);
19404 if (PyErr_Occurred()) SWIG_fail;
19405 }
19406 Py_INCREF(Py_None); resultobj = Py_None;
19407 return resultobj;
19408 fail:
19409 return NULL;
19410 }
19411
19412
19413 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19414 PyObject *resultobj;
19415 wxListItem *arg1 = (wxListItem *) 0 ;
19416 long arg2 ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 char *kwnames[] = {
19420 (char *) "self",(char *) "id", NULL
19421 };
19422
19423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19426 arg2 = (long)SWIG_As_long(obj1);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 {
19429 PyThreadState* __tstate = wxPyBeginAllowThreads();
19430 (arg1)->SetId(arg2);
19431
19432 wxPyEndAllowThreads(__tstate);
19433 if (PyErr_Occurred()) SWIG_fail;
19434 }
19435 Py_INCREF(Py_None); resultobj = Py_None;
19436 return resultobj;
19437 fail:
19438 return NULL;
19439 }
19440
19441
19442 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19443 PyObject *resultobj;
19444 wxListItem *arg1 = (wxListItem *) 0 ;
19445 int arg2 ;
19446 PyObject * obj0 = 0 ;
19447 PyObject * obj1 = 0 ;
19448 char *kwnames[] = {
19449 (char *) "self",(char *) "col", NULL
19450 };
19451
19452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19455 arg2 = (int)SWIG_As_int(obj1);
19456 if (PyErr_Occurred()) SWIG_fail;
19457 {
19458 PyThreadState* __tstate = wxPyBeginAllowThreads();
19459 (arg1)->SetColumn(arg2);
19460
19461 wxPyEndAllowThreads(__tstate);
19462 if (PyErr_Occurred()) SWIG_fail;
19463 }
19464 Py_INCREF(Py_None); resultobj = Py_None;
19465 return resultobj;
19466 fail:
19467 return NULL;
19468 }
19469
19470
19471 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19472 PyObject *resultobj;
19473 wxListItem *arg1 = (wxListItem *) 0 ;
19474 long arg2 ;
19475 PyObject * obj0 = 0 ;
19476 PyObject * obj1 = 0 ;
19477 char *kwnames[] = {
19478 (char *) "self",(char *) "state", NULL
19479 };
19480
19481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19484 arg2 = (long)SWIG_As_long(obj1);
19485 if (PyErr_Occurred()) SWIG_fail;
19486 {
19487 PyThreadState* __tstate = wxPyBeginAllowThreads();
19488 (arg1)->SetState(arg2);
19489
19490 wxPyEndAllowThreads(__tstate);
19491 if (PyErr_Occurred()) SWIG_fail;
19492 }
19493 Py_INCREF(Py_None); resultobj = Py_None;
19494 return resultobj;
19495 fail:
19496 return NULL;
19497 }
19498
19499
19500 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19501 PyObject *resultobj;
19502 wxListItem *arg1 = (wxListItem *) 0 ;
19503 long arg2 ;
19504 PyObject * obj0 = 0 ;
19505 PyObject * obj1 = 0 ;
19506 char *kwnames[] = {
19507 (char *) "self",(char *) "stateMask", NULL
19508 };
19509
19510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19513 arg2 = (long)SWIG_As_long(obj1);
19514 if (PyErr_Occurred()) SWIG_fail;
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 (arg1)->SetStateMask(arg2);
19518
19519 wxPyEndAllowThreads(__tstate);
19520 if (PyErr_Occurred()) SWIG_fail;
19521 }
19522 Py_INCREF(Py_None); resultobj = Py_None;
19523 return resultobj;
19524 fail:
19525 return NULL;
19526 }
19527
19528
19529 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19530 PyObject *resultobj;
19531 wxListItem *arg1 = (wxListItem *) 0 ;
19532 wxString *arg2 = 0 ;
19533 bool temp2 = False ;
19534 PyObject * obj0 = 0 ;
19535 PyObject * obj1 = 0 ;
19536 char *kwnames[] = {
19537 (char *) "self",(char *) "text", NULL
19538 };
19539
19540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19543 {
19544 arg2 = wxString_in_helper(obj1);
19545 if (arg2 == NULL) SWIG_fail;
19546 temp2 = True;
19547 }
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 (arg1)->SetText((wxString const &)*arg2);
19551
19552 wxPyEndAllowThreads(__tstate);
19553 if (PyErr_Occurred()) SWIG_fail;
19554 }
19555 Py_INCREF(Py_None); resultobj = Py_None;
19556 {
19557 if (temp2)
19558 delete arg2;
19559 }
19560 return resultobj;
19561 fail:
19562 {
19563 if (temp2)
19564 delete arg2;
19565 }
19566 return NULL;
19567 }
19568
19569
19570 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19571 PyObject *resultobj;
19572 wxListItem *arg1 = (wxListItem *) 0 ;
19573 int arg2 ;
19574 PyObject * obj0 = 0 ;
19575 PyObject * obj1 = 0 ;
19576 char *kwnames[] = {
19577 (char *) "self",(char *) "image", NULL
19578 };
19579
19580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19583 arg2 = (int)SWIG_As_int(obj1);
19584 if (PyErr_Occurred()) SWIG_fail;
19585 {
19586 PyThreadState* __tstate = wxPyBeginAllowThreads();
19587 (arg1)->SetImage(arg2);
19588
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 Py_INCREF(Py_None); resultobj = Py_None;
19593 return resultobj;
19594 fail:
19595 return NULL;
19596 }
19597
19598
19599 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19600 PyObject *resultobj;
19601 wxListItem *arg1 = (wxListItem *) 0 ;
19602 long arg2 ;
19603 PyObject * obj0 = 0 ;
19604 PyObject * obj1 = 0 ;
19605 char *kwnames[] = {
19606 (char *) "self",(char *) "data", NULL
19607 };
19608
19609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19612 arg2 = (long)SWIG_As_long(obj1);
19613 if (PyErr_Occurred()) SWIG_fail;
19614 {
19615 PyThreadState* __tstate = wxPyBeginAllowThreads();
19616 (arg1)->SetData(arg2);
19617
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 Py_INCREF(Py_None); resultobj = Py_None;
19622 return resultobj;
19623 fail:
19624 return NULL;
19625 }
19626
19627
19628 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj;
19630 wxListItem *arg1 = (wxListItem *) 0 ;
19631 int arg2 ;
19632 PyObject * obj0 = 0 ;
19633 PyObject * obj1 = 0 ;
19634 char *kwnames[] = {
19635 (char *) "self",(char *) "width", NULL
19636 };
19637
19638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19641 arg2 = (int)SWIG_As_int(obj1);
19642 if (PyErr_Occurred()) SWIG_fail;
19643 {
19644 PyThreadState* __tstate = wxPyBeginAllowThreads();
19645 (arg1)->SetWidth(arg2);
19646
19647 wxPyEndAllowThreads(__tstate);
19648 if (PyErr_Occurred()) SWIG_fail;
19649 }
19650 Py_INCREF(Py_None); resultobj = Py_None;
19651 return resultobj;
19652 fail:
19653 return NULL;
19654 }
19655
19656
19657 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19658 PyObject *resultobj;
19659 wxListItem *arg1 = (wxListItem *) 0 ;
19660 int arg2 ;
19661 PyObject * obj0 = 0 ;
19662 PyObject * obj1 = 0 ;
19663 char *kwnames[] = {
19664 (char *) "self",(char *) "align", NULL
19665 };
19666
19667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19670 arg2 = (int)SWIG_As_int(obj1);
19671 if (PyErr_Occurred()) SWIG_fail;
19672 {
19673 PyThreadState* __tstate = wxPyBeginAllowThreads();
19674 (arg1)->SetAlign((wxListColumnFormat )arg2);
19675
19676 wxPyEndAllowThreads(__tstate);
19677 if (PyErr_Occurred()) SWIG_fail;
19678 }
19679 Py_INCREF(Py_None); resultobj = Py_None;
19680 return resultobj;
19681 fail:
19682 return NULL;
19683 }
19684
19685
19686 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19687 PyObject *resultobj;
19688 wxListItem *arg1 = (wxListItem *) 0 ;
19689 wxColour *arg2 = 0 ;
19690 wxColour temp2 ;
19691 PyObject * obj0 = 0 ;
19692 PyObject * obj1 = 0 ;
19693 char *kwnames[] = {
19694 (char *) "self",(char *) "colText", NULL
19695 };
19696
19697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19698 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19700 {
19701 arg2 = &temp2;
19702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19703 }
19704 {
19705 PyThreadState* __tstate = wxPyBeginAllowThreads();
19706 (arg1)->SetTextColour((wxColour const &)*arg2);
19707
19708 wxPyEndAllowThreads(__tstate);
19709 if (PyErr_Occurred()) SWIG_fail;
19710 }
19711 Py_INCREF(Py_None); resultobj = Py_None;
19712 return resultobj;
19713 fail:
19714 return NULL;
19715 }
19716
19717
19718 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19719 PyObject *resultobj;
19720 wxListItem *arg1 = (wxListItem *) 0 ;
19721 wxColour *arg2 = 0 ;
19722 wxColour temp2 ;
19723 PyObject * obj0 = 0 ;
19724 PyObject * obj1 = 0 ;
19725 char *kwnames[] = {
19726 (char *) "self",(char *) "colBack", NULL
19727 };
19728
19729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19732 {
19733 arg2 = &temp2;
19734 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19735 }
19736 {
19737 PyThreadState* __tstate = wxPyBeginAllowThreads();
19738 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19739
19740 wxPyEndAllowThreads(__tstate);
19741 if (PyErr_Occurred()) SWIG_fail;
19742 }
19743 Py_INCREF(Py_None); resultobj = Py_None;
19744 return resultobj;
19745 fail:
19746 return NULL;
19747 }
19748
19749
19750 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj;
19752 wxListItem *arg1 = (wxListItem *) 0 ;
19753 wxFont *arg2 = 0 ;
19754 PyObject * obj0 = 0 ;
19755 PyObject * obj1 = 0 ;
19756 char *kwnames[] = {
19757 (char *) "self",(char *) "font", NULL
19758 };
19759
19760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
19761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19763 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19764 SWIG_POINTER_EXCEPTION | 0)) == -1)
19765 SWIG_fail;
19766 if (arg2 == NULL) {
19767 PyErr_SetString(PyExc_TypeError,"null reference");
19768 SWIG_fail;
19769 }
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 (arg1)->SetFont((wxFont const &)*arg2);
19773
19774 wxPyEndAllowThreads(__tstate);
19775 if (PyErr_Occurred()) SWIG_fail;
19776 }
19777 Py_INCREF(Py_None); resultobj = Py_None;
19778 return resultobj;
19779 fail:
19780 return NULL;
19781 }
19782
19783
19784 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19785 PyObject *resultobj;
19786 wxListItem *arg1 = (wxListItem *) 0 ;
19787 long result;
19788 PyObject * obj0 = 0 ;
19789 char *kwnames[] = {
19790 (char *) "self", NULL
19791 };
19792
19793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
19794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19796 {
19797 PyThreadState* __tstate = wxPyBeginAllowThreads();
19798 result = (long)(arg1)->GetMask();
19799
19800 wxPyEndAllowThreads(__tstate);
19801 if (PyErr_Occurred()) SWIG_fail;
19802 }
19803 resultobj = SWIG_From_long((long)result);
19804 return resultobj;
19805 fail:
19806 return NULL;
19807 }
19808
19809
19810 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
19811 PyObject *resultobj;
19812 wxListItem *arg1 = (wxListItem *) 0 ;
19813 long result;
19814 PyObject * obj0 = 0 ;
19815 char *kwnames[] = {
19816 (char *) "self", NULL
19817 };
19818
19819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
19820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19822 {
19823 PyThreadState* __tstate = wxPyBeginAllowThreads();
19824 result = (long)(arg1)->GetId();
19825
19826 wxPyEndAllowThreads(__tstate);
19827 if (PyErr_Occurred()) SWIG_fail;
19828 }
19829 resultobj = SWIG_From_long((long)result);
19830 return resultobj;
19831 fail:
19832 return NULL;
19833 }
19834
19835
19836 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19837 PyObject *resultobj;
19838 wxListItem *arg1 = (wxListItem *) 0 ;
19839 int result;
19840 PyObject * obj0 = 0 ;
19841 char *kwnames[] = {
19842 (char *) "self", NULL
19843 };
19844
19845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",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 result = (int)(arg1)->GetColumn();
19851
19852 wxPyEndAllowThreads(__tstate);
19853 if (PyErr_Occurred()) SWIG_fail;
19854 }
19855 resultobj = SWIG_From_int((int)result);
19856 return resultobj;
19857 fail:
19858 return NULL;
19859 }
19860
19861
19862 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
19863 PyObject *resultobj;
19864 wxListItem *arg1 = (wxListItem *) 0 ;
19865 long result;
19866 PyObject * obj0 = 0 ;
19867 char *kwnames[] = {
19868 (char *) "self", NULL
19869 };
19870
19871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
19872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19874 {
19875 PyThreadState* __tstate = wxPyBeginAllowThreads();
19876 result = (long)(arg1)->GetState();
19877
19878 wxPyEndAllowThreads(__tstate);
19879 if (PyErr_Occurred()) SWIG_fail;
19880 }
19881 resultobj = SWIG_From_long((long)result);
19882 return resultobj;
19883 fail:
19884 return NULL;
19885 }
19886
19887
19888 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
19889 PyObject *resultobj;
19890 wxListItem *arg1 = (wxListItem *) 0 ;
19891 wxString *result;
19892 PyObject * obj0 = 0 ;
19893 char *kwnames[] = {
19894 (char *) "self", NULL
19895 };
19896
19897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
19898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19900 {
19901 PyThreadState* __tstate = wxPyBeginAllowThreads();
19902 {
19903 wxString const &_result_ref = (arg1)->GetText();
19904 result = (wxString *) &_result_ref;
19905 }
19906
19907 wxPyEndAllowThreads(__tstate);
19908 if (PyErr_Occurred()) SWIG_fail;
19909 }
19910 {
19911 #if wxUSE_UNICODE
19912 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
19913 #else
19914 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
19915 #endif
19916 }
19917 return resultobj;
19918 fail:
19919 return NULL;
19920 }
19921
19922
19923 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19924 PyObject *resultobj;
19925 wxListItem *arg1 = (wxListItem *) 0 ;
19926 int result;
19927 PyObject * obj0 = 0 ;
19928 char *kwnames[] = {
19929 (char *) "self", NULL
19930 };
19931
19932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
19933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19935 {
19936 PyThreadState* __tstate = wxPyBeginAllowThreads();
19937 result = (int)(arg1)->GetImage();
19938
19939 wxPyEndAllowThreads(__tstate);
19940 if (PyErr_Occurred()) SWIG_fail;
19941 }
19942 resultobj = SWIG_From_int((int)result);
19943 return resultobj;
19944 fail:
19945 return NULL;
19946 }
19947
19948
19949 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
19950 PyObject *resultobj;
19951 wxListItem *arg1 = (wxListItem *) 0 ;
19952 long result;
19953 PyObject * obj0 = 0 ;
19954 char *kwnames[] = {
19955 (char *) "self", NULL
19956 };
19957
19958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
19959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19961 {
19962 PyThreadState* __tstate = wxPyBeginAllowThreads();
19963 result = (long)(arg1)->GetData();
19964
19965 wxPyEndAllowThreads(__tstate);
19966 if (PyErr_Occurred()) SWIG_fail;
19967 }
19968 resultobj = SWIG_From_long((long)result);
19969 return resultobj;
19970 fail:
19971 return NULL;
19972 }
19973
19974
19975 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19976 PyObject *resultobj;
19977 wxListItem *arg1 = (wxListItem *) 0 ;
19978 int result;
19979 PyObject * obj0 = 0 ;
19980 char *kwnames[] = {
19981 (char *) "self", NULL
19982 };
19983
19984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
19985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 result = (int)(arg1)->GetWidth();
19990
19991 wxPyEndAllowThreads(__tstate);
19992 if (PyErr_Occurred()) SWIG_fail;
19993 }
19994 resultobj = SWIG_From_int((int)result);
19995 return resultobj;
19996 fail:
19997 return NULL;
19998 }
19999
20000
20001 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20002 PyObject *resultobj;
20003 wxListItem *arg1 = (wxListItem *) 0 ;
20004 int result;
20005 PyObject * obj0 = 0 ;
20006 char *kwnames[] = {
20007 (char *) "self", NULL
20008 };
20009
20010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20013 {
20014 PyThreadState* __tstate = wxPyBeginAllowThreads();
20015 result = (int)(arg1)->GetAlign();
20016
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_From_int((int)result);
20021 return resultobj;
20022 fail:
20023 return NULL;
20024 }
20025
20026
20027 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj;
20029 wxListItem *arg1 = (wxListItem *) 0 ;
20030 wxListItemAttr *result;
20031 PyObject * obj0 = 0 ;
20032 char *kwnames[] = {
20033 (char *) "self", NULL
20034 };
20035
20036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 result = (wxListItemAttr *)(arg1)->GetAttributes();
20042
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20047 return resultobj;
20048 fail:
20049 return NULL;
20050 }
20051
20052
20053 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20054 PyObject *resultobj;
20055 wxListItem *arg1 = (wxListItem *) 0 ;
20056 bool result;
20057 PyObject * obj0 = 0 ;
20058 char *kwnames[] = {
20059 (char *) "self", NULL
20060 };
20061
20062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20065 {
20066 PyThreadState* __tstate = wxPyBeginAllowThreads();
20067 result = (bool)(arg1)->HasAttributes();
20068
20069 wxPyEndAllowThreads(__tstate);
20070 if (PyErr_Occurred()) SWIG_fail;
20071 }
20072 {
20073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20074 }
20075 return resultobj;
20076 fail:
20077 return NULL;
20078 }
20079
20080
20081 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20082 PyObject *resultobj;
20083 wxListItem *arg1 = (wxListItem *) 0 ;
20084 wxColour result;
20085 PyObject * obj0 = 0 ;
20086 char *kwnames[] = {
20087 (char *) "self", NULL
20088 };
20089
20090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20093 {
20094 PyThreadState* __tstate = wxPyBeginAllowThreads();
20095 result = ((wxListItem const *)arg1)->GetTextColour();
20096
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 {
20101 wxColour * resultptr;
20102 resultptr = new wxColour((wxColour &) result);
20103 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20104 }
20105 return resultobj;
20106 fail:
20107 return NULL;
20108 }
20109
20110
20111 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20112 PyObject *resultobj;
20113 wxListItem *arg1 = (wxListItem *) 0 ;
20114 wxColour result;
20115 PyObject * obj0 = 0 ;
20116 char *kwnames[] = {
20117 (char *) "self", NULL
20118 };
20119
20120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20123 {
20124 PyThreadState* __tstate = wxPyBeginAllowThreads();
20125 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20126
20127 wxPyEndAllowThreads(__tstate);
20128 if (PyErr_Occurred()) SWIG_fail;
20129 }
20130 {
20131 wxColour * resultptr;
20132 resultptr = new wxColour((wxColour &) result);
20133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20134 }
20135 return resultobj;
20136 fail:
20137 return NULL;
20138 }
20139
20140
20141 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20142 PyObject *resultobj;
20143 wxListItem *arg1 = (wxListItem *) 0 ;
20144 wxFont result;
20145 PyObject * obj0 = 0 ;
20146 char *kwnames[] = {
20147 (char *) "self", NULL
20148 };
20149
20150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 result = ((wxListItem const *)arg1)->GetFont();
20156
20157 wxPyEndAllowThreads(__tstate);
20158 if (PyErr_Occurred()) SWIG_fail;
20159 }
20160 {
20161 wxFont * resultptr;
20162 resultptr = new wxFont((wxFont &) result);
20163 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20164 }
20165 return resultobj;
20166 fail:
20167 return NULL;
20168 }
20169
20170
20171 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20172 PyObject *resultobj;
20173 wxListItem *arg1 = (wxListItem *) 0 ;
20174 long arg2 ;
20175 PyObject * obj0 = 0 ;
20176 PyObject * obj1 = 0 ;
20177 char *kwnames[] = {
20178 (char *) "self",(char *) "m_mask", NULL
20179 };
20180
20181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20184 arg2 = (long)SWIG_As_long(obj1);
20185 if (PyErr_Occurred()) SWIG_fail;
20186 if (arg1) (arg1)->m_mask = arg2;
20187
20188 Py_INCREF(Py_None); resultobj = Py_None;
20189 return resultobj;
20190 fail:
20191 return NULL;
20192 }
20193
20194
20195 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20196 PyObject *resultobj;
20197 wxListItem *arg1 = (wxListItem *) 0 ;
20198 long result;
20199 PyObject * obj0 = 0 ;
20200 char *kwnames[] = {
20201 (char *) "self", NULL
20202 };
20203
20204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20207 result = (long) ((arg1)->m_mask);
20208
20209 resultobj = SWIG_From_long((long)result);
20210 return resultobj;
20211 fail:
20212 return NULL;
20213 }
20214
20215
20216 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20217 PyObject *resultobj;
20218 wxListItem *arg1 = (wxListItem *) 0 ;
20219 long arg2 ;
20220 PyObject * obj0 = 0 ;
20221 PyObject * obj1 = 0 ;
20222 char *kwnames[] = {
20223 (char *) "self",(char *) "m_itemId", NULL
20224 };
20225
20226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20229 arg2 = (long)SWIG_As_long(obj1);
20230 if (PyErr_Occurred()) SWIG_fail;
20231 if (arg1) (arg1)->m_itemId = arg2;
20232
20233 Py_INCREF(Py_None); resultobj = Py_None;
20234 return resultobj;
20235 fail:
20236 return NULL;
20237 }
20238
20239
20240 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20241 PyObject *resultobj;
20242 wxListItem *arg1 = (wxListItem *) 0 ;
20243 long result;
20244 PyObject * obj0 = 0 ;
20245 char *kwnames[] = {
20246 (char *) "self", NULL
20247 };
20248
20249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20250 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20252 result = (long) ((arg1)->m_itemId);
20253
20254 resultobj = SWIG_From_long((long)result);
20255 return resultobj;
20256 fail:
20257 return NULL;
20258 }
20259
20260
20261 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj;
20263 wxListItem *arg1 = (wxListItem *) 0 ;
20264 int arg2 ;
20265 PyObject * obj0 = 0 ;
20266 PyObject * obj1 = 0 ;
20267 char *kwnames[] = {
20268 (char *) "self",(char *) "m_col", NULL
20269 };
20270
20271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20274 arg2 = (int)SWIG_As_int(obj1);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 if (arg1) (arg1)->m_col = arg2;
20277
20278 Py_INCREF(Py_None); resultobj = Py_None;
20279 return resultobj;
20280 fail:
20281 return NULL;
20282 }
20283
20284
20285 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20286 PyObject *resultobj;
20287 wxListItem *arg1 = (wxListItem *) 0 ;
20288 int result;
20289 PyObject * obj0 = 0 ;
20290 char *kwnames[] = {
20291 (char *) "self", NULL
20292 };
20293
20294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20297 result = (int) ((arg1)->m_col);
20298
20299 resultobj = SWIG_From_int((int)result);
20300 return resultobj;
20301 fail:
20302 return NULL;
20303 }
20304
20305
20306 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20307 PyObject *resultobj;
20308 wxListItem *arg1 = (wxListItem *) 0 ;
20309 long arg2 ;
20310 PyObject * obj0 = 0 ;
20311 PyObject * obj1 = 0 ;
20312 char *kwnames[] = {
20313 (char *) "self",(char *) "m_state", NULL
20314 };
20315
20316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20319 arg2 = (long)SWIG_As_long(obj1);
20320 if (PyErr_Occurred()) SWIG_fail;
20321 if (arg1) (arg1)->m_state = arg2;
20322
20323 Py_INCREF(Py_None); resultobj = Py_None;
20324 return resultobj;
20325 fail:
20326 return NULL;
20327 }
20328
20329
20330 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20331 PyObject *resultobj;
20332 wxListItem *arg1 = (wxListItem *) 0 ;
20333 long result;
20334 PyObject * obj0 = 0 ;
20335 char *kwnames[] = {
20336 (char *) "self", NULL
20337 };
20338
20339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20342 result = (long) ((arg1)->m_state);
20343
20344 resultobj = SWIG_From_long((long)result);
20345 return resultobj;
20346 fail:
20347 return NULL;
20348 }
20349
20350
20351 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20352 PyObject *resultobj;
20353 wxListItem *arg1 = (wxListItem *) 0 ;
20354 long arg2 ;
20355 PyObject * obj0 = 0 ;
20356 PyObject * obj1 = 0 ;
20357 char *kwnames[] = {
20358 (char *) "self",(char *) "m_stateMask", NULL
20359 };
20360
20361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20364 arg2 = (long)SWIG_As_long(obj1);
20365 if (PyErr_Occurred()) SWIG_fail;
20366 if (arg1) (arg1)->m_stateMask = arg2;
20367
20368 Py_INCREF(Py_None); resultobj = Py_None;
20369 return resultobj;
20370 fail:
20371 return NULL;
20372 }
20373
20374
20375 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20376 PyObject *resultobj;
20377 wxListItem *arg1 = (wxListItem *) 0 ;
20378 long result;
20379 PyObject * obj0 = 0 ;
20380 char *kwnames[] = {
20381 (char *) "self", NULL
20382 };
20383
20384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20387 result = (long) ((arg1)->m_stateMask);
20388
20389 resultobj = SWIG_From_long((long)result);
20390 return resultobj;
20391 fail:
20392 return NULL;
20393 }
20394
20395
20396 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20397 PyObject *resultobj;
20398 wxListItem *arg1 = (wxListItem *) 0 ;
20399 wxString *arg2 = (wxString *) 0 ;
20400 bool temp2 = False ;
20401 PyObject * obj0 = 0 ;
20402 PyObject * obj1 = 0 ;
20403 char *kwnames[] = {
20404 (char *) "self",(char *) "m_text", NULL
20405 };
20406
20407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20410 {
20411 arg2 = wxString_in_helper(obj1);
20412 if (arg2 == NULL) SWIG_fail;
20413 temp2 = True;
20414 }
20415 if (arg1) (arg1)->m_text = *arg2;
20416
20417 Py_INCREF(Py_None); resultobj = Py_None;
20418 {
20419 if (temp2)
20420 delete arg2;
20421 }
20422 return resultobj;
20423 fail:
20424 {
20425 if (temp2)
20426 delete arg2;
20427 }
20428 return NULL;
20429 }
20430
20431
20432 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20433 PyObject *resultobj;
20434 wxListItem *arg1 = (wxListItem *) 0 ;
20435 wxString *result;
20436 PyObject * obj0 = 0 ;
20437 char *kwnames[] = {
20438 (char *) "self", NULL
20439 };
20440
20441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20444 result = (wxString *)& ((arg1)->m_text);
20445
20446 {
20447 #if wxUSE_UNICODE
20448 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20449 #else
20450 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20451 #endif
20452 }
20453 return resultobj;
20454 fail:
20455 return NULL;
20456 }
20457
20458
20459 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20460 PyObject *resultobj;
20461 wxListItem *arg1 = (wxListItem *) 0 ;
20462 int arg2 ;
20463 PyObject * obj0 = 0 ;
20464 PyObject * obj1 = 0 ;
20465 char *kwnames[] = {
20466 (char *) "self",(char *) "m_image", NULL
20467 };
20468
20469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20472 arg2 = (int)SWIG_As_int(obj1);
20473 if (PyErr_Occurred()) SWIG_fail;
20474 if (arg1) (arg1)->m_image = arg2;
20475
20476 Py_INCREF(Py_None); resultobj = Py_None;
20477 return resultobj;
20478 fail:
20479 return NULL;
20480 }
20481
20482
20483 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20484 PyObject *resultobj;
20485 wxListItem *arg1 = (wxListItem *) 0 ;
20486 int result;
20487 PyObject * obj0 = 0 ;
20488 char *kwnames[] = {
20489 (char *) "self", NULL
20490 };
20491
20492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20495 result = (int) ((arg1)->m_image);
20496
20497 resultobj = SWIG_From_int((int)result);
20498 return resultobj;
20499 fail:
20500 return NULL;
20501 }
20502
20503
20504 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20505 PyObject *resultobj;
20506 wxListItem *arg1 = (wxListItem *) 0 ;
20507 long arg2 ;
20508 PyObject * obj0 = 0 ;
20509 PyObject * obj1 = 0 ;
20510 char *kwnames[] = {
20511 (char *) "self",(char *) "m_data", NULL
20512 };
20513
20514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20517 arg2 = (long)SWIG_As_long(obj1);
20518 if (PyErr_Occurred()) SWIG_fail;
20519 if (arg1) (arg1)->m_data = arg2;
20520
20521 Py_INCREF(Py_None); resultobj = Py_None;
20522 return resultobj;
20523 fail:
20524 return NULL;
20525 }
20526
20527
20528 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20529 PyObject *resultobj;
20530 wxListItem *arg1 = (wxListItem *) 0 ;
20531 long result;
20532 PyObject * obj0 = 0 ;
20533 char *kwnames[] = {
20534 (char *) "self", NULL
20535 };
20536
20537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20540 result = (long) ((arg1)->m_data);
20541
20542 resultobj = SWIG_From_long((long)result);
20543 return resultobj;
20544 fail:
20545 return NULL;
20546 }
20547
20548
20549 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20550 PyObject *resultobj;
20551 wxListItem *arg1 = (wxListItem *) 0 ;
20552 int arg2 ;
20553 PyObject * obj0 = 0 ;
20554 PyObject * obj1 = 0 ;
20555 char *kwnames[] = {
20556 (char *) "self",(char *) "m_format", NULL
20557 };
20558
20559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20562 arg2 = (int)SWIG_As_int(obj1);
20563 if (PyErr_Occurred()) SWIG_fail;
20564 if (arg1) (arg1)->m_format = arg2;
20565
20566 Py_INCREF(Py_None); resultobj = Py_None;
20567 return resultobj;
20568 fail:
20569 return NULL;
20570 }
20571
20572
20573 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20574 PyObject *resultobj;
20575 wxListItem *arg1 = (wxListItem *) 0 ;
20576 int result;
20577 PyObject * obj0 = 0 ;
20578 char *kwnames[] = {
20579 (char *) "self", NULL
20580 };
20581
20582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20585 result = (int) ((arg1)->m_format);
20586
20587 resultobj = SWIG_From_int((int)result);
20588 return resultobj;
20589 fail:
20590 return NULL;
20591 }
20592
20593
20594 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20595 PyObject *resultobj;
20596 wxListItem *arg1 = (wxListItem *) 0 ;
20597 int arg2 ;
20598 PyObject * obj0 = 0 ;
20599 PyObject * obj1 = 0 ;
20600 char *kwnames[] = {
20601 (char *) "self",(char *) "m_width", NULL
20602 };
20603
20604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20607 arg2 = (int)SWIG_As_int(obj1);
20608 if (PyErr_Occurred()) SWIG_fail;
20609 if (arg1) (arg1)->m_width = arg2;
20610
20611 Py_INCREF(Py_None); resultobj = Py_None;
20612 return resultobj;
20613 fail:
20614 return NULL;
20615 }
20616
20617
20618 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20619 PyObject *resultobj;
20620 wxListItem *arg1 = (wxListItem *) 0 ;
20621 int result;
20622 PyObject * obj0 = 0 ;
20623 char *kwnames[] = {
20624 (char *) "self", NULL
20625 };
20626
20627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20630 result = (int) ((arg1)->m_width);
20631
20632 resultobj = SWIG_From_int((int)result);
20633 return resultobj;
20634 fail:
20635 return NULL;
20636 }
20637
20638
20639 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20640 PyObject *obj;
20641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20642 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20643 Py_INCREF(obj);
20644 return Py_BuildValue((char *)"");
20645 }
20646 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20647 PyObject *resultobj;
20648 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20649 int arg2 = (int) 0 ;
20650 wxListEvent *result;
20651 PyObject * obj0 = 0 ;
20652 PyObject * obj1 = 0 ;
20653 char *kwnames[] = {
20654 (char *) "commandType",(char *) "id", NULL
20655 };
20656
20657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20658 if (obj0) {
20659 arg1 = (wxEventType)SWIG_As_int(obj0);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 if (obj1) {
20663 arg2 = (int)SWIG_As_int(obj1);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 }
20666 {
20667 PyThreadState* __tstate = wxPyBeginAllowThreads();
20668 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20669
20670 wxPyEndAllowThreads(__tstate);
20671 if (PyErr_Occurred()) SWIG_fail;
20672 }
20673 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20674 return resultobj;
20675 fail:
20676 return NULL;
20677 }
20678
20679
20680 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20681 PyObject *resultobj;
20682 wxListEvent *arg1 = (wxListEvent *) 0 ;
20683 int arg2 ;
20684 PyObject * obj0 = 0 ;
20685 PyObject * obj1 = 0 ;
20686 char *kwnames[] = {
20687 (char *) "self",(char *) "m_code", NULL
20688 };
20689
20690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20693 arg2 = (int)SWIG_As_int(obj1);
20694 if (PyErr_Occurred()) SWIG_fail;
20695 if (arg1) (arg1)->m_code = arg2;
20696
20697 Py_INCREF(Py_None); resultobj = Py_None;
20698 return resultobj;
20699 fail:
20700 return NULL;
20701 }
20702
20703
20704 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
20705 PyObject *resultobj;
20706 wxListEvent *arg1 = (wxListEvent *) 0 ;
20707 int result;
20708 PyObject * obj0 = 0 ;
20709 char *kwnames[] = {
20710 (char *) "self", NULL
20711 };
20712
20713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
20714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20716 result = (int) ((arg1)->m_code);
20717
20718 resultobj = SWIG_From_int((int)result);
20719 return resultobj;
20720 fail:
20721 return NULL;
20722 }
20723
20724
20725 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20726 PyObject *resultobj;
20727 wxListEvent *arg1 = (wxListEvent *) 0 ;
20728 long arg2 ;
20729 PyObject * obj0 = 0 ;
20730 PyObject * obj1 = 0 ;
20731 char *kwnames[] = {
20732 (char *) "self",(char *) "m_oldItemIndex", NULL
20733 };
20734
20735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20738 arg2 = (long)SWIG_As_long(obj1);
20739 if (PyErr_Occurred()) SWIG_fail;
20740 if (arg1) (arg1)->m_oldItemIndex = arg2;
20741
20742 Py_INCREF(Py_None); resultobj = Py_None;
20743 return resultobj;
20744 fail:
20745 return NULL;
20746 }
20747
20748
20749 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20750 PyObject *resultobj;
20751 wxListEvent *arg1 = (wxListEvent *) 0 ;
20752 long result;
20753 PyObject * obj0 = 0 ;
20754 char *kwnames[] = {
20755 (char *) "self", NULL
20756 };
20757
20758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
20759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20761 result = (long) ((arg1)->m_oldItemIndex);
20762
20763 resultobj = SWIG_From_long((long)result);
20764 return resultobj;
20765 fail:
20766 return NULL;
20767 }
20768
20769
20770 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
20771 PyObject *resultobj;
20772 wxListEvent *arg1 = (wxListEvent *) 0 ;
20773 long arg2 ;
20774 PyObject * obj0 = 0 ;
20775 PyObject * obj1 = 0 ;
20776 char *kwnames[] = {
20777 (char *) "self",(char *) "m_itemIndex", NULL
20778 };
20779
20780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
20781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20783 arg2 = (long)SWIG_As_long(obj1);
20784 if (PyErr_Occurred()) SWIG_fail;
20785 if (arg1) (arg1)->m_itemIndex = arg2;
20786
20787 Py_INCREF(Py_None); resultobj = Py_None;
20788 return resultobj;
20789 fail:
20790 return NULL;
20791 }
20792
20793
20794 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
20795 PyObject *resultobj;
20796 wxListEvent *arg1 = (wxListEvent *) 0 ;
20797 long result;
20798 PyObject * obj0 = 0 ;
20799 char *kwnames[] = {
20800 (char *) "self", NULL
20801 };
20802
20803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
20804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20806 result = (long) ((arg1)->m_itemIndex);
20807
20808 resultobj = SWIG_From_long((long)result);
20809 return resultobj;
20810 fail:
20811 return NULL;
20812 }
20813
20814
20815 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20816 PyObject *resultobj;
20817 wxListEvent *arg1 = (wxListEvent *) 0 ;
20818 int arg2 ;
20819 PyObject * obj0 = 0 ;
20820 PyObject * obj1 = 0 ;
20821 char *kwnames[] = {
20822 (char *) "self",(char *) "m_col", NULL
20823 };
20824
20825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20828 arg2 = (int)SWIG_As_int(obj1);
20829 if (PyErr_Occurred()) SWIG_fail;
20830 if (arg1) (arg1)->m_col = arg2;
20831
20832 Py_INCREF(Py_None); resultobj = Py_None;
20833 return resultobj;
20834 fail:
20835 return NULL;
20836 }
20837
20838
20839 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20840 PyObject *resultobj;
20841 wxListEvent *arg1 = (wxListEvent *) 0 ;
20842 int result;
20843 PyObject * obj0 = 0 ;
20844 char *kwnames[] = {
20845 (char *) "self", NULL
20846 };
20847
20848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
20849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20851 result = (int) ((arg1)->m_col);
20852
20853 resultobj = SWIG_From_int((int)result);
20854 return resultobj;
20855 fail:
20856 return NULL;
20857 }
20858
20859
20860 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
20861 PyObject *resultobj;
20862 wxListEvent *arg1 = (wxListEvent *) 0 ;
20863 wxPoint *arg2 = (wxPoint *) 0 ;
20864 PyObject * obj0 = 0 ;
20865 PyObject * obj1 = 0 ;
20866 char *kwnames[] = {
20867 (char *) "self",(char *) "m_pointDrag", NULL
20868 };
20869
20870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
20871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20873 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
20874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20875 if (arg1) (arg1)->m_pointDrag = *arg2;
20876
20877 Py_INCREF(Py_None); resultobj = Py_None;
20878 return resultobj;
20879 fail:
20880 return NULL;
20881 }
20882
20883
20884 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
20885 PyObject *resultobj;
20886 wxListEvent *arg1 = (wxListEvent *) 0 ;
20887 wxPoint *result;
20888 PyObject * obj0 = 0 ;
20889 char *kwnames[] = {
20890 (char *) "self", NULL
20891 };
20892
20893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
20894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20896 result = (wxPoint *)& ((arg1)->m_pointDrag);
20897
20898 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
20899 return resultobj;
20900 fail:
20901 return NULL;
20902 }
20903
20904
20905 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
20906 PyObject *resultobj;
20907 wxListEvent *arg1 = (wxListEvent *) 0 ;
20908 wxListItem *result;
20909 PyObject * obj0 = 0 ;
20910 char *kwnames[] = {
20911 (char *) "self", NULL
20912 };
20913
20914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
20915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20917 result = (wxListItem *)& ((arg1)->m_item);
20918
20919 {
20920 resultobj = wxPyMake_wxObject(result, 0);
20921 }
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj;
20930 wxListEvent *arg1 = (wxListEvent *) 0 ;
20931 int result;
20932 PyObject * obj0 = 0 ;
20933 char *kwnames[] = {
20934 (char *) "self", NULL
20935 };
20936
20937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
20938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20940 {
20941 PyThreadState* __tstate = wxPyBeginAllowThreads();
20942 result = (int)(arg1)->GetKeyCode();
20943
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_From_int((int)result);
20948 return resultobj;
20949 fail:
20950 return NULL;
20951 }
20952
20953
20954 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj;
20956 wxListEvent *arg1 = (wxListEvent *) 0 ;
20957 long result;
20958 PyObject * obj0 = 0 ;
20959 char *kwnames[] = {
20960 (char *) "self", NULL
20961 };
20962
20963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
20964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 result = (long)(arg1)->GetIndex();
20969
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_From_long((long)result);
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20981 PyObject *resultobj;
20982 wxListEvent *arg1 = (wxListEvent *) 0 ;
20983 int result;
20984 PyObject * obj0 = 0 ;
20985 char *kwnames[] = {
20986 (char *) "self", NULL
20987 };
20988
20989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
20990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20992 {
20993 PyThreadState* __tstate = wxPyBeginAllowThreads();
20994 result = (int)(arg1)->GetColumn();
20995
20996 wxPyEndAllowThreads(__tstate);
20997 if (PyErr_Occurred()) SWIG_fail;
20998 }
20999 resultobj = SWIG_From_int((int)result);
21000 return resultobj;
21001 fail:
21002 return NULL;
21003 }
21004
21005
21006 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21007 PyObject *resultobj;
21008 wxListEvent *arg1 = (wxListEvent *) 0 ;
21009 wxPoint result;
21010 PyObject * obj0 = 0 ;
21011 char *kwnames[] = {
21012 (char *) "self", NULL
21013 };
21014
21015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21018 {
21019 PyThreadState* __tstate = wxPyBeginAllowThreads();
21020 result = (arg1)->GetPoint();
21021
21022 wxPyEndAllowThreads(__tstate);
21023 if (PyErr_Occurred()) SWIG_fail;
21024 }
21025 {
21026 wxPoint * resultptr;
21027 resultptr = new wxPoint((wxPoint &) result);
21028 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21029 }
21030 return resultobj;
21031 fail:
21032 return NULL;
21033 }
21034
21035
21036 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj;
21038 wxListEvent *arg1 = (wxListEvent *) 0 ;
21039 wxString *result;
21040 PyObject * obj0 = 0 ;
21041 char *kwnames[] = {
21042 (char *) "self", NULL
21043 };
21044
21045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21048 {
21049 PyThreadState* __tstate = wxPyBeginAllowThreads();
21050 {
21051 wxString const &_result_ref = (arg1)->GetLabel();
21052 result = (wxString *) &_result_ref;
21053 }
21054
21055 wxPyEndAllowThreads(__tstate);
21056 if (PyErr_Occurred()) SWIG_fail;
21057 }
21058 {
21059 #if wxUSE_UNICODE
21060 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21061 #else
21062 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21063 #endif
21064 }
21065 return resultobj;
21066 fail:
21067 return NULL;
21068 }
21069
21070
21071 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21072 PyObject *resultobj;
21073 wxListEvent *arg1 = (wxListEvent *) 0 ;
21074 wxString *result;
21075 PyObject * obj0 = 0 ;
21076 char *kwnames[] = {
21077 (char *) "self", NULL
21078 };
21079
21080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21083 {
21084 PyThreadState* __tstate = wxPyBeginAllowThreads();
21085 {
21086 wxString const &_result_ref = (arg1)->GetText();
21087 result = (wxString *) &_result_ref;
21088 }
21089
21090 wxPyEndAllowThreads(__tstate);
21091 if (PyErr_Occurred()) SWIG_fail;
21092 }
21093 {
21094 #if wxUSE_UNICODE
21095 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21096 #else
21097 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21098 #endif
21099 }
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21107 PyObject *resultobj;
21108 wxListEvent *arg1 = (wxListEvent *) 0 ;
21109 int result;
21110 PyObject * obj0 = 0 ;
21111 char *kwnames[] = {
21112 (char *) "self", NULL
21113 };
21114
21115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21118 {
21119 PyThreadState* __tstate = wxPyBeginAllowThreads();
21120 result = (int)(arg1)->GetImage();
21121
21122 wxPyEndAllowThreads(__tstate);
21123 if (PyErr_Occurred()) SWIG_fail;
21124 }
21125 resultobj = SWIG_From_int((int)result);
21126 return resultobj;
21127 fail:
21128 return NULL;
21129 }
21130
21131
21132 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21133 PyObject *resultobj;
21134 wxListEvent *arg1 = (wxListEvent *) 0 ;
21135 long result;
21136 PyObject * obj0 = 0 ;
21137 char *kwnames[] = {
21138 (char *) "self", NULL
21139 };
21140
21141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (long)(arg1)->GetData();
21147
21148 wxPyEndAllowThreads(__tstate);
21149 if (PyErr_Occurred()) SWIG_fail;
21150 }
21151 resultobj = SWIG_From_long((long)result);
21152 return resultobj;
21153 fail:
21154 return NULL;
21155 }
21156
21157
21158 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21159 PyObject *resultobj;
21160 wxListEvent *arg1 = (wxListEvent *) 0 ;
21161 long result;
21162 PyObject * obj0 = 0 ;
21163 char *kwnames[] = {
21164 (char *) "self", NULL
21165 };
21166
21167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 result = (long)(arg1)->GetMask();
21173
21174 wxPyEndAllowThreads(__tstate);
21175 if (PyErr_Occurred()) SWIG_fail;
21176 }
21177 resultobj = SWIG_From_long((long)result);
21178 return resultobj;
21179 fail:
21180 return NULL;
21181 }
21182
21183
21184 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21185 PyObject *resultobj;
21186 wxListEvent *arg1 = (wxListEvent *) 0 ;
21187 wxListItem *result;
21188 PyObject * obj0 = 0 ;
21189 char *kwnames[] = {
21190 (char *) "self", NULL
21191 };
21192
21193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21196 {
21197 PyThreadState* __tstate = wxPyBeginAllowThreads();
21198 {
21199 wxListItem const &_result_ref = (arg1)->GetItem();
21200 result = (wxListItem *) &_result_ref;
21201 }
21202
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21207 return resultobj;
21208 fail:
21209 return NULL;
21210 }
21211
21212
21213 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21214 PyObject *resultobj;
21215 wxListEvent *arg1 = (wxListEvent *) 0 ;
21216 long result;
21217 PyObject * obj0 = 0 ;
21218 char *kwnames[] = {
21219 (char *) "self", NULL
21220 };
21221
21222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21225 {
21226 PyThreadState* __tstate = wxPyBeginAllowThreads();
21227 result = (long)(arg1)->GetCacheFrom();
21228
21229 wxPyEndAllowThreads(__tstate);
21230 if (PyErr_Occurred()) SWIG_fail;
21231 }
21232 resultobj = SWIG_From_long((long)result);
21233 return resultobj;
21234 fail:
21235 return NULL;
21236 }
21237
21238
21239 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21240 PyObject *resultobj;
21241 wxListEvent *arg1 = (wxListEvent *) 0 ;
21242 long result;
21243 PyObject * obj0 = 0 ;
21244 char *kwnames[] = {
21245 (char *) "self", NULL
21246 };
21247
21248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21251 {
21252 PyThreadState* __tstate = wxPyBeginAllowThreads();
21253 result = (long)(arg1)->GetCacheTo();
21254
21255 wxPyEndAllowThreads(__tstate);
21256 if (PyErr_Occurred()) SWIG_fail;
21257 }
21258 resultobj = SWIG_From_long((long)result);
21259 return resultobj;
21260 fail:
21261 return NULL;
21262 }
21263
21264
21265 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21266 PyObject *resultobj;
21267 wxListEvent *arg1 = (wxListEvent *) 0 ;
21268 bool result;
21269 PyObject * obj0 = 0 ;
21270 char *kwnames[] = {
21271 (char *) "self", NULL
21272 };
21273
21274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21277 {
21278 PyThreadState* __tstate = wxPyBeginAllowThreads();
21279 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21280
21281 wxPyEndAllowThreads(__tstate);
21282 if (PyErr_Occurred()) SWIG_fail;
21283 }
21284 {
21285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21286 }
21287 return resultobj;
21288 fail:
21289 return NULL;
21290 }
21291
21292
21293 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21294 PyObject *resultobj;
21295 wxListEvent *arg1 = (wxListEvent *) 0 ;
21296 bool arg2 ;
21297 PyObject * obj0 = 0 ;
21298 PyObject * obj1 = 0 ;
21299 char *kwnames[] = {
21300 (char *) "self",(char *) "editCancelled", NULL
21301 };
21302
21303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",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 = (bool)SWIG_As_bool(obj1);
21307 if (PyErr_Occurred()) SWIG_fail;
21308 {
21309 PyThreadState* __tstate = wxPyBeginAllowThreads();
21310 (arg1)->SetEditCanceled(arg2);
21311
21312 wxPyEndAllowThreads(__tstate);
21313 if (PyErr_Occurred()) SWIG_fail;
21314 }
21315 Py_INCREF(Py_None); resultobj = Py_None;
21316 return resultobj;
21317 fail:
21318 return NULL;
21319 }
21320
21321
21322 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21323 PyObject *obj;
21324 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21325 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21326 Py_INCREF(obj);
21327 return Py_BuildValue((char *)"");
21328 }
21329 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21330 PyObject *resultobj;
21331 wxWindow *arg1 = (wxWindow *) 0 ;
21332 int arg2 = (int) -1 ;
21333 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21334 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21335 wxSize const &arg4_defvalue = wxDefaultSize ;
21336 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21337 long arg5 = (long) wxLC_ICON ;
21338 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21339 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21340 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21341 wxString *arg7 = (wxString *) &arg7_defvalue ;
21342 wxPyListCtrl *result;
21343 wxPoint temp3 ;
21344 wxSize temp4 ;
21345 bool temp7 = False ;
21346 PyObject * obj0 = 0 ;
21347 PyObject * obj1 = 0 ;
21348 PyObject * obj2 = 0 ;
21349 PyObject * obj3 = 0 ;
21350 PyObject * obj4 = 0 ;
21351 PyObject * obj5 = 0 ;
21352 PyObject * obj6 = 0 ;
21353 char *kwnames[] = {
21354 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21355 };
21356
21357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21360 if (obj1) {
21361 arg2 = (int)SWIG_As_int(obj1);
21362 if (PyErr_Occurred()) SWIG_fail;
21363 }
21364 if (obj2) {
21365 {
21366 arg3 = &temp3;
21367 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21368 }
21369 }
21370 if (obj3) {
21371 {
21372 arg4 = &temp4;
21373 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21374 }
21375 }
21376 if (obj4) {
21377 arg5 = (long)SWIG_As_long(obj4);
21378 if (PyErr_Occurred()) SWIG_fail;
21379 }
21380 if (obj5) {
21381 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21382 SWIG_POINTER_EXCEPTION | 0)) == -1)
21383 SWIG_fail;
21384 if (arg6 == NULL) {
21385 PyErr_SetString(PyExc_TypeError,"null reference");
21386 SWIG_fail;
21387 }
21388 }
21389 if (obj6) {
21390 {
21391 arg7 = wxString_in_helper(obj6);
21392 if (arg7 == NULL) SWIG_fail;
21393 temp7 = True;
21394 }
21395 }
21396 {
21397 if (!wxPyCheckForApp()) SWIG_fail;
21398 PyThreadState* __tstate = wxPyBeginAllowThreads();
21399 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21400
21401 wxPyEndAllowThreads(__tstate);
21402 if (PyErr_Occurred()) SWIG_fail;
21403 }
21404 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21405 {
21406 if (temp7)
21407 delete arg7;
21408 }
21409 return resultobj;
21410 fail:
21411 {
21412 if (temp7)
21413 delete arg7;
21414 }
21415 return NULL;
21416 }
21417
21418
21419 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21420 PyObject *resultobj;
21421 wxPyListCtrl *result;
21422 char *kwnames[] = {
21423 NULL
21424 };
21425
21426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21427 {
21428 if (!wxPyCheckForApp()) SWIG_fail;
21429 PyThreadState* __tstate = wxPyBeginAllowThreads();
21430 result = (wxPyListCtrl *)new wxPyListCtrl();
21431
21432 wxPyEndAllowThreads(__tstate);
21433 if (PyErr_Occurred()) SWIG_fail;
21434 }
21435 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21436 return resultobj;
21437 fail:
21438 return NULL;
21439 }
21440
21441
21442 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21443 PyObject *resultobj;
21444 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21445 wxWindow *arg2 = (wxWindow *) 0 ;
21446 int arg3 = (int) -1 ;
21447 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21448 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21449 wxSize const &arg5_defvalue = wxDefaultSize ;
21450 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21451 long arg6 = (long) wxLC_ICON ;
21452 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21453 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21454 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21455 wxString *arg8 = (wxString *) &arg8_defvalue ;
21456 bool result;
21457 wxPoint temp4 ;
21458 wxSize temp5 ;
21459 bool temp8 = False ;
21460 PyObject * obj0 = 0 ;
21461 PyObject * obj1 = 0 ;
21462 PyObject * obj2 = 0 ;
21463 PyObject * obj3 = 0 ;
21464 PyObject * obj4 = 0 ;
21465 PyObject * obj5 = 0 ;
21466 PyObject * obj6 = 0 ;
21467 PyObject * obj7 = 0 ;
21468 char *kwnames[] = {
21469 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21470 };
21471
21472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21475 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21477 if (obj2) {
21478 arg3 = (int)SWIG_As_int(obj2);
21479 if (PyErr_Occurred()) SWIG_fail;
21480 }
21481 if (obj3) {
21482 {
21483 arg4 = &temp4;
21484 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21485 }
21486 }
21487 if (obj4) {
21488 {
21489 arg5 = &temp5;
21490 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21491 }
21492 }
21493 if (obj5) {
21494 arg6 = (long)SWIG_As_long(obj5);
21495 if (PyErr_Occurred()) SWIG_fail;
21496 }
21497 if (obj6) {
21498 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21499 SWIG_POINTER_EXCEPTION | 0)) == -1)
21500 SWIG_fail;
21501 if (arg7 == NULL) {
21502 PyErr_SetString(PyExc_TypeError,"null reference");
21503 SWIG_fail;
21504 }
21505 }
21506 if (obj7) {
21507 {
21508 arg8 = wxString_in_helper(obj7);
21509 if (arg8 == NULL) SWIG_fail;
21510 temp8 = True;
21511 }
21512 }
21513 {
21514 PyThreadState* __tstate = wxPyBeginAllowThreads();
21515 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21516
21517 wxPyEndAllowThreads(__tstate);
21518 if (PyErr_Occurred()) SWIG_fail;
21519 }
21520 {
21521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21522 }
21523 {
21524 if (temp8)
21525 delete arg8;
21526 }
21527 return resultobj;
21528 fail:
21529 {
21530 if (temp8)
21531 delete arg8;
21532 }
21533 return NULL;
21534 }
21535
21536
21537 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21538 PyObject *resultobj;
21539 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21540 PyObject *arg2 = (PyObject *) 0 ;
21541 PyObject *arg3 = (PyObject *) 0 ;
21542 PyObject * obj0 = 0 ;
21543 PyObject * obj1 = 0 ;
21544 PyObject * obj2 = 0 ;
21545 char *kwnames[] = {
21546 (char *) "self",(char *) "self",(char *) "_class", NULL
21547 };
21548
21549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21552 arg2 = obj1;
21553 arg3 = obj2;
21554 {
21555 PyThreadState* __tstate = wxPyBeginAllowThreads();
21556 (arg1)->_setCallbackInfo(arg2,arg3);
21557
21558 wxPyEndAllowThreads(__tstate);
21559 if (PyErr_Occurred()) SWIG_fail;
21560 }
21561 Py_INCREF(Py_None); resultobj = Py_None;
21562 return resultobj;
21563 fail:
21564 return NULL;
21565 }
21566
21567
21568 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21569 PyObject *resultobj;
21570 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21571 wxColour *arg2 = 0 ;
21572 bool result;
21573 wxColour temp2 ;
21574 PyObject * obj0 = 0 ;
21575 PyObject * obj1 = 0 ;
21576 char *kwnames[] = {
21577 (char *) "self",(char *) "col", NULL
21578 };
21579
21580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21583 {
21584 arg2 = &temp2;
21585 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21586 }
21587 {
21588 PyThreadState* __tstate = wxPyBeginAllowThreads();
21589 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21590
21591 wxPyEndAllowThreads(__tstate);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 }
21594 {
21595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21596 }
21597 return resultobj;
21598 fail:
21599 return NULL;
21600 }
21601
21602
21603 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21604 PyObject *resultobj;
21605 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21606 wxColour *arg2 = 0 ;
21607 bool result;
21608 wxColour temp2 ;
21609 PyObject * obj0 = 0 ;
21610 PyObject * obj1 = 0 ;
21611 char *kwnames[] = {
21612 (char *) "self",(char *) "col", NULL
21613 };
21614
21615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21618 {
21619 arg2 = &temp2;
21620 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21621 }
21622 {
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21625
21626 wxPyEndAllowThreads(__tstate);
21627 if (PyErr_Occurred()) SWIG_fail;
21628 }
21629 {
21630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21631 }
21632 return resultobj;
21633 fail:
21634 return NULL;
21635 }
21636
21637
21638 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21639 PyObject *resultobj;
21640 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21641 int arg2 ;
21642 wxListItem *result;
21643 PyObject * obj0 = 0 ;
21644 PyObject * obj1 = 0 ;
21645 char *kwnames[] = {
21646 (char *) "self",(char *) "col", NULL
21647 };
21648
21649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21652 arg2 = (int)SWIG_As_int(obj1);
21653 if (PyErr_Occurred()) SWIG_fail;
21654 {
21655 PyThreadState* __tstate = wxPyBeginAllowThreads();
21656 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21657
21658 wxPyEndAllowThreads(__tstate);
21659 if (PyErr_Occurred()) SWIG_fail;
21660 }
21661 {
21662 resultobj = wxPyMake_wxObject(result, 0);
21663 }
21664 return resultobj;
21665 fail:
21666 return NULL;
21667 }
21668
21669
21670 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21671 PyObject *resultobj;
21672 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21673 int arg2 ;
21674 wxListItem *arg3 = 0 ;
21675 bool result;
21676 PyObject * obj0 = 0 ;
21677 PyObject * obj1 = 0 ;
21678 PyObject * obj2 = 0 ;
21679 char *kwnames[] = {
21680 (char *) "self",(char *) "col",(char *) "item", NULL
21681 };
21682
21683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21686 arg2 = (int)SWIG_As_int(obj1);
21687 if (PyErr_Occurred()) SWIG_fail;
21688 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21689 SWIG_POINTER_EXCEPTION | 0)) == -1)
21690 SWIG_fail;
21691 if (arg3 == NULL) {
21692 PyErr_SetString(PyExc_TypeError,"null reference");
21693 SWIG_fail;
21694 }
21695 {
21696 PyThreadState* __tstate = wxPyBeginAllowThreads();
21697 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21698
21699 wxPyEndAllowThreads(__tstate);
21700 if (PyErr_Occurred()) SWIG_fail;
21701 }
21702 {
21703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21704 }
21705 return resultobj;
21706 fail:
21707 return NULL;
21708 }
21709
21710
21711 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21712 PyObject *resultobj;
21713 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21714 int arg2 ;
21715 int result;
21716 PyObject * obj0 = 0 ;
21717 PyObject * obj1 = 0 ;
21718 char *kwnames[] = {
21719 (char *) "self",(char *) "col", NULL
21720 };
21721
21722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
21723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21725 arg2 = (int)SWIG_As_int(obj1);
21726 if (PyErr_Occurred()) SWIG_fail;
21727 {
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
21730
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_From_int((int)result);
21735 return resultobj;
21736 fail:
21737 return NULL;
21738 }
21739
21740
21741 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj;
21743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21744 int arg2 ;
21745 int arg3 ;
21746 bool result;
21747 PyObject * obj0 = 0 ;
21748 PyObject * obj1 = 0 ;
21749 PyObject * obj2 = 0 ;
21750 char *kwnames[] = {
21751 (char *) "self",(char *) "col",(char *) "width", NULL
21752 };
21753
21754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
21755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21757 arg2 = (int)SWIG_As_int(obj1);
21758 if (PyErr_Occurred()) SWIG_fail;
21759 arg3 = (int)SWIG_As_int(obj2);
21760 if (PyErr_Occurred()) SWIG_fail;
21761 {
21762 PyThreadState* __tstate = wxPyBeginAllowThreads();
21763 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
21764
21765 wxPyEndAllowThreads(__tstate);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 {
21769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21770 }
21771 return resultobj;
21772 fail:
21773 return NULL;
21774 }
21775
21776
21777 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
21778 PyObject *resultobj;
21779 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21780 int result;
21781 PyObject * obj0 = 0 ;
21782 char *kwnames[] = {
21783 (char *) "self", NULL
21784 };
21785
21786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
21787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
21792
21793 wxPyEndAllowThreads(__tstate);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 }
21796 resultobj = SWIG_From_int((int)result);
21797 return resultobj;
21798 fail:
21799 return NULL;
21800 }
21801
21802
21803 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
21804 PyObject *resultobj;
21805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21806 wxRect result;
21807 PyObject * obj0 = 0 ;
21808 char *kwnames[] = {
21809 (char *) "self", NULL
21810 };
21811
21812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
21813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21815 {
21816 PyThreadState* __tstate = wxPyBeginAllowThreads();
21817 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
21818
21819 wxPyEndAllowThreads(__tstate);
21820 if (PyErr_Occurred()) SWIG_fail;
21821 }
21822 {
21823 wxRect * resultptr;
21824 resultptr = new wxRect((wxRect &) result);
21825 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
21826 }
21827 return resultobj;
21828 fail:
21829 return NULL;
21830 }
21831
21832
21833 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
21834 PyObject *resultobj;
21835 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21836 wxTextCtrl *result;
21837 PyObject * obj0 = 0 ;
21838 char *kwnames[] = {
21839 (char *) "self", NULL
21840 };
21841
21842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
21843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
21848
21849 wxPyEndAllowThreads(__tstate);
21850 if (PyErr_Occurred()) SWIG_fail;
21851 }
21852 {
21853 resultobj = wxPyMake_wxObject(result, 0);
21854 }
21855 return resultobj;
21856 fail:
21857 return NULL;
21858 }
21859
21860
21861 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21862 PyObject *resultobj;
21863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21864 long arg2 ;
21865 int arg3 = (int) 0 ;
21866 wxListItem *result;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 PyObject * obj2 = 0 ;
21870 char *kwnames[] = {
21871 (char *) "self",(char *) "itemId",(char *) "col", NULL
21872 };
21873
21874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
21875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21877 arg2 = (long)SWIG_As_long(obj1);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 if (obj2) {
21880 arg3 = (int)SWIG_As_int(obj2);
21881 if (PyErr_Occurred()) SWIG_fail;
21882 }
21883 {
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
21886
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 {
21891 resultobj = wxPyMake_wxObject(result, 0);
21892 }
21893 return resultobj;
21894 fail:
21895 return NULL;
21896 }
21897
21898
21899 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21900 PyObject *resultobj;
21901 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21902 wxListItem *arg2 = 0 ;
21903 bool result;
21904 PyObject * obj0 = 0 ;
21905 PyObject * obj1 = 0 ;
21906 char *kwnames[] = {
21907 (char *) "self",(char *) "info", NULL
21908 };
21909
21910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
21911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
21914 SWIG_POINTER_EXCEPTION | 0)) == -1)
21915 SWIG_fail;
21916 if (arg2 == NULL) {
21917 PyErr_SetString(PyExc_TypeError,"null reference");
21918 SWIG_fail;
21919 }
21920 {
21921 PyThreadState* __tstate = wxPyBeginAllowThreads();
21922 result = (bool)(arg1)->SetItem(*arg2);
21923
21924 wxPyEndAllowThreads(__tstate);
21925 if (PyErr_Occurred()) SWIG_fail;
21926 }
21927 {
21928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21929 }
21930 return resultobj;
21931 fail:
21932 return NULL;
21933 }
21934
21935
21936 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
21937 PyObject *resultobj;
21938 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21939 long arg2 ;
21940 int arg3 ;
21941 wxString *arg4 = 0 ;
21942 int arg5 = (int) -1 ;
21943 long result;
21944 bool temp4 = False ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 PyObject * obj2 = 0 ;
21948 PyObject * obj3 = 0 ;
21949 PyObject * obj4 = 0 ;
21950 char *kwnames[] = {
21951 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
21952 };
21953
21954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
21955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21957 arg2 = (long)SWIG_As_long(obj1);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 arg3 = (int)SWIG_As_int(obj2);
21960 if (PyErr_Occurred()) SWIG_fail;
21961 {
21962 arg4 = wxString_in_helper(obj3);
21963 if (arg4 == NULL) SWIG_fail;
21964 temp4 = True;
21965 }
21966 if (obj4) {
21967 arg5 = (int)SWIG_As_int(obj4);
21968 if (PyErr_Occurred()) SWIG_fail;
21969 }
21970 {
21971 PyThreadState* __tstate = wxPyBeginAllowThreads();
21972 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
21973
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 resultobj = SWIG_From_long((long)result);
21978 {
21979 if (temp4)
21980 delete arg4;
21981 }
21982 return resultobj;
21983 fail:
21984 {
21985 if (temp4)
21986 delete arg4;
21987 }
21988 return NULL;
21989 }
21990
21991
21992 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
21993 PyObject *resultobj;
21994 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21995 long arg2 ;
21996 long arg3 ;
21997 int result;
21998 PyObject * obj0 = 0 ;
21999 PyObject * obj1 = 0 ;
22000 PyObject * obj2 = 0 ;
22001 char *kwnames[] = {
22002 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22003 };
22004
22005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22008 arg2 = (long)SWIG_As_long(obj1);
22009 if (PyErr_Occurred()) SWIG_fail;
22010 arg3 = (long)SWIG_As_long(obj2);
22011 if (PyErr_Occurred()) SWIG_fail;
22012 {
22013 PyThreadState* __tstate = wxPyBeginAllowThreads();
22014 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22015
22016 wxPyEndAllowThreads(__tstate);
22017 if (PyErr_Occurred()) SWIG_fail;
22018 }
22019 resultobj = SWIG_From_int((int)result);
22020 return resultobj;
22021 fail:
22022 return NULL;
22023 }
22024
22025
22026 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22027 PyObject *resultobj;
22028 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22029 long arg2 ;
22030 long arg3 ;
22031 long arg4 ;
22032 bool result;
22033 PyObject * obj0 = 0 ;
22034 PyObject * obj1 = 0 ;
22035 PyObject * obj2 = 0 ;
22036 PyObject * obj3 = 0 ;
22037 char *kwnames[] = {
22038 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22039 };
22040
22041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22044 arg2 = (long)SWIG_As_long(obj1);
22045 if (PyErr_Occurred()) SWIG_fail;
22046 arg3 = (long)SWIG_As_long(obj2);
22047 if (PyErr_Occurred()) SWIG_fail;
22048 arg4 = (long)SWIG_As_long(obj3);
22049 if (PyErr_Occurred()) SWIG_fail;
22050 {
22051 PyThreadState* __tstate = wxPyBeginAllowThreads();
22052 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22053
22054 wxPyEndAllowThreads(__tstate);
22055 if (PyErr_Occurred()) SWIG_fail;
22056 }
22057 {
22058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22059 }
22060 return resultobj;
22061 fail:
22062 return NULL;
22063 }
22064
22065
22066 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22067 PyObject *resultobj;
22068 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22069 long arg2 ;
22070 int arg3 ;
22071 int arg4 ;
22072 bool result;
22073 PyObject * obj0 = 0 ;
22074 PyObject * obj1 = 0 ;
22075 PyObject * obj2 = 0 ;
22076 PyObject * obj3 = 0 ;
22077 char *kwnames[] = {
22078 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22079 };
22080
22081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22084 arg2 = (long)SWIG_As_long(obj1);
22085 if (PyErr_Occurred()) SWIG_fail;
22086 arg3 = (int)SWIG_As_int(obj2);
22087 if (PyErr_Occurred()) SWIG_fail;
22088 arg4 = (int)SWIG_As_int(obj3);
22089 if (PyErr_Occurred()) SWIG_fail;
22090 {
22091 PyThreadState* __tstate = wxPyBeginAllowThreads();
22092 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22093
22094 wxPyEndAllowThreads(__tstate);
22095 if (PyErr_Occurred()) SWIG_fail;
22096 }
22097 {
22098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22099 }
22100 return resultobj;
22101 fail:
22102 return NULL;
22103 }
22104
22105
22106 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22107 PyObject *resultobj;
22108 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22109 long arg2 ;
22110 wxString result;
22111 PyObject * obj0 = 0 ;
22112 PyObject * obj1 = 0 ;
22113 char *kwnames[] = {
22114 (char *) "self",(char *) "item", NULL
22115 };
22116
22117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22120 arg2 = (long)SWIG_As_long(obj1);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 {
22123 PyThreadState* __tstate = wxPyBeginAllowThreads();
22124 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22125
22126 wxPyEndAllowThreads(__tstate);
22127 if (PyErr_Occurred()) SWIG_fail;
22128 }
22129 {
22130 #if wxUSE_UNICODE
22131 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22132 #else
22133 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22134 #endif
22135 }
22136 return resultobj;
22137 fail:
22138 return NULL;
22139 }
22140
22141
22142 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22143 PyObject *resultobj;
22144 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22145 long arg2 ;
22146 wxString *arg3 = 0 ;
22147 bool temp3 = False ;
22148 PyObject * obj0 = 0 ;
22149 PyObject * obj1 = 0 ;
22150 PyObject * obj2 = 0 ;
22151 char *kwnames[] = {
22152 (char *) "self",(char *) "item",(char *) "str", NULL
22153 };
22154
22155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22158 arg2 = (long)SWIG_As_long(obj1);
22159 if (PyErr_Occurred()) SWIG_fail;
22160 {
22161 arg3 = wxString_in_helper(obj2);
22162 if (arg3 == NULL) SWIG_fail;
22163 temp3 = True;
22164 }
22165 {
22166 PyThreadState* __tstate = wxPyBeginAllowThreads();
22167 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22168
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 Py_INCREF(Py_None); resultobj = Py_None;
22173 {
22174 if (temp3)
22175 delete arg3;
22176 }
22177 return resultobj;
22178 fail:
22179 {
22180 if (temp3)
22181 delete arg3;
22182 }
22183 return NULL;
22184 }
22185
22186
22187 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22188 PyObject *resultobj;
22189 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22190 long arg2 ;
22191 long result;
22192 PyObject * obj0 = 0 ;
22193 PyObject * obj1 = 0 ;
22194 char *kwnames[] = {
22195 (char *) "self",(char *) "item", NULL
22196 };
22197
22198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22201 arg2 = (long)SWIG_As_long(obj1);
22202 if (PyErr_Occurred()) SWIG_fail;
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22206
22207 wxPyEndAllowThreads(__tstate);
22208 if (PyErr_Occurred()) SWIG_fail;
22209 }
22210 resultobj = SWIG_From_long((long)result);
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22218 PyObject *resultobj;
22219 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22220 long arg2 ;
22221 long arg3 ;
22222 bool result;
22223 PyObject * obj0 = 0 ;
22224 PyObject * obj1 = 0 ;
22225 PyObject * obj2 = 0 ;
22226 char *kwnames[] = {
22227 (char *) "self",(char *) "item",(char *) "data", NULL
22228 };
22229
22230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22233 arg2 = (long)SWIG_As_long(obj1);
22234 if (PyErr_Occurred()) SWIG_fail;
22235 arg3 = (long)SWIG_As_long(obj2);
22236 if (PyErr_Occurred()) SWIG_fail;
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 result = (bool)(arg1)->SetItemData(arg2,arg3);
22240
22241 wxPyEndAllowThreads(__tstate);
22242 if (PyErr_Occurred()) SWIG_fail;
22243 }
22244 {
22245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22246 }
22247 return resultobj;
22248 fail:
22249 return NULL;
22250 }
22251
22252
22253 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22254 PyObject *resultobj;
22255 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22256 long arg2 ;
22257 wxPoint result;
22258 PyObject * obj0 = 0 ;
22259 PyObject * obj1 = 0 ;
22260 char *kwnames[] = {
22261 (char *) "self",(char *) "item", NULL
22262 };
22263
22264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22267 arg2 = (long)SWIG_As_long(obj1);
22268 if (PyErr_Occurred()) SWIG_fail;
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22272
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 {
22277 wxPoint * resultptr;
22278 resultptr = new wxPoint((wxPoint &) result);
22279 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22280 }
22281 return resultobj;
22282 fail:
22283 return NULL;
22284 }
22285
22286
22287 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22288 PyObject *resultobj;
22289 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22290 long arg2 ;
22291 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22292 wxRect result;
22293 PyObject * obj0 = 0 ;
22294 PyObject * obj1 = 0 ;
22295 PyObject * obj2 = 0 ;
22296 char *kwnames[] = {
22297 (char *) "self",(char *) "item",(char *) "code", NULL
22298 };
22299
22300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22303 arg2 = (long)SWIG_As_long(obj1);
22304 if (PyErr_Occurred()) SWIG_fail;
22305 if (obj2) {
22306 arg3 = (int)SWIG_As_int(obj2);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 {
22310 PyThreadState* __tstate = wxPyBeginAllowThreads();
22311 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22312
22313 wxPyEndAllowThreads(__tstate);
22314 if (PyErr_Occurred()) SWIG_fail;
22315 }
22316 {
22317 wxRect * resultptr;
22318 resultptr = new wxRect((wxRect &) result);
22319 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22320 }
22321 return resultobj;
22322 fail:
22323 return NULL;
22324 }
22325
22326
22327 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22328 PyObject *resultobj;
22329 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22330 long arg2 ;
22331 wxPoint *arg3 = 0 ;
22332 bool result;
22333 wxPoint temp3 ;
22334 PyObject * obj0 = 0 ;
22335 PyObject * obj1 = 0 ;
22336 PyObject * obj2 = 0 ;
22337 char *kwnames[] = {
22338 (char *) "self",(char *) "item",(char *) "pos", NULL
22339 };
22340
22341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22344 arg2 = (long)SWIG_As_long(obj1);
22345 if (PyErr_Occurred()) SWIG_fail;
22346 {
22347 arg3 = &temp3;
22348 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22349 }
22350 {
22351 PyThreadState* __tstate = wxPyBeginAllowThreads();
22352 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22353
22354 wxPyEndAllowThreads(__tstate);
22355 if (PyErr_Occurred()) SWIG_fail;
22356 }
22357 {
22358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22359 }
22360 return resultobj;
22361 fail:
22362 return NULL;
22363 }
22364
22365
22366 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22367 PyObject *resultobj;
22368 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22369 int result;
22370 PyObject * obj0 = 0 ;
22371 char *kwnames[] = {
22372 (char *) "self", NULL
22373 };
22374
22375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22378 {
22379 PyThreadState* __tstate = wxPyBeginAllowThreads();
22380 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22381
22382 wxPyEndAllowThreads(__tstate);
22383 if (PyErr_Occurred()) SWIG_fail;
22384 }
22385 resultobj = SWIG_From_int((int)result);
22386 return resultobj;
22387 fail:
22388 return NULL;
22389 }
22390
22391
22392 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22393 PyObject *resultobj;
22394 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22395 int result;
22396 PyObject * obj0 = 0 ;
22397 char *kwnames[] = {
22398 (char *) "self", NULL
22399 };
22400
22401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22407
22408 wxPyEndAllowThreads(__tstate);
22409 if (PyErr_Occurred()) SWIG_fail;
22410 }
22411 resultobj = SWIG_From_int((int)result);
22412 return resultobj;
22413 fail:
22414 return NULL;
22415 }
22416
22417
22418 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22419 PyObject *resultobj;
22420 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22421 wxSize result;
22422 PyObject * obj0 = 0 ;
22423 char *kwnames[] = {
22424 (char *) "self", NULL
22425 };
22426
22427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22430 {
22431 PyThreadState* __tstate = wxPyBeginAllowThreads();
22432 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22433
22434 wxPyEndAllowThreads(__tstate);
22435 if (PyErr_Occurred()) SWIG_fail;
22436 }
22437 {
22438 wxSize * resultptr;
22439 resultptr = new wxSize((wxSize &) result);
22440 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22441 }
22442 return resultobj;
22443 fail:
22444 return NULL;
22445 }
22446
22447
22448 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22449 PyObject *resultobj;
22450 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22451 int result;
22452 PyObject * obj0 = 0 ;
22453 char *kwnames[] = {
22454 (char *) "self", NULL
22455 };
22456
22457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22463
22464 wxPyEndAllowThreads(__tstate);
22465 if (PyErr_Occurred()) SWIG_fail;
22466 }
22467 resultobj = SWIG_From_int((int)result);
22468 return resultobj;
22469 fail:
22470 return NULL;
22471 }
22472
22473
22474 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22475 PyObject *resultobj;
22476 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22477 wxColour result;
22478 PyObject * obj0 = 0 ;
22479 char *kwnames[] = {
22480 (char *) "self", NULL
22481 };
22482
22483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22486 {
22487 PyThreadState* __tstate = wxPyBeginAllowThreads();
22488 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22489
22490 wxPyEndAllowThreads(__tstate);
22491 if (PyErr_Occurred()) SWIG_fail;
22492 }
22493 {
22494 wxColour * resultptr;
22495 resultptr = new wxColour((wxColour &) result);
22496 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22497 }
22498 return resultobj;
22499 fail:
22500 return NULL;
22501 }
22502
22503
22504 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22505 PyObject *resultobj;
22506 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22507 wxColour *arg2 = 0 ;
22508 wxColour temp2 ;
22509 PyObject * obj0 = 0 ;
22510 PyObject * obj1 = 0 ;
22511 char *kwnames[] = {
22512 (char *) "self",(char *) "col", NULL
22513 };
22514
22515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22518 {
22519 arg2 = &temp2;
22520 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22521 }
22522 {
22523 PyThreadState* __tstate = wxPyBeginAllowThreads();
22524 (arg1)->SetTextColour((wxColour const &)*arg2);
22525
22526 wxPyEndAllowThreads(__tstate);
22527 if (PyErr_Occurred()) SWIG_fail;
22528 }
22529 Py_INCREF(Py_None); resultobj = Py_None;
22530 return resultobj;
22531 fail:
22532 return NULL;
22533 }
22534
22535
22536 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22537 PyObject *resultobj;
22538 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22539 long result;
22540 PyObject * obj0 = 0 ;
22541 char *kwnames[] = {
22542 (char *) "self", NULL
22543 };
22544
22545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22548 {
22549 PyThreadState* __tstate = wxPyBeginAllowThreads();
22550 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22551
22552 wxPyEndAllowThreads(__tstate);
22553 if (PyErr_Occurred()) SWIG_fail;
22554 }
22555 resultobj = SWIG_From_long((long)result);
22556 return resultobj;
22557 fail:
22558 return NULL;
22559 }
22560
22561
22562 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22563 PyObject *resultobj;
22564 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22565 long arg2 ;
22566 bool arg3 = (bool) True ;
22567 PyObject * obj0 = 0 ;
22568 PyObject * obj1 = 0 ;
22569 PyObject * obj2 = 0 ;
22570 char *kwnames[] = {
22571 (char *) "self",(char *) "style",(char *) "add", NULL
22572 };
22573
22574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22577 arg2 = (long)SWIG_As_long(obj1);
22578 if (PyErr_Occurred()) SWIG_fail;
22579 if (obj2) {
22580 arg3 = (bool)SWIG_As_bool(obj2);
22581 if (PyErr_Occurred()) SWIG_fail;
22582 }
22583 {
22584 PyThreadState* __tstate = wxPyBeginAllowThreads();
22585 (arg1)->SetSingleStyle(arg2,arg3);
22586
22587 wxPyEndAllowThreads(__tstate);
22588 if (PyErr_Occurred()) SWIG_fail;
22589 }
22590 Py_INCREF(Py_None); resultobj = Py_None;
22591 return resultobj;
22592 fail:
22593 return NULL;
22594 }
22595
22596
22597 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22598 PyObject *resultobj;
22599 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22600 long arg2 ;
22601 PyObject * obj0 = 0 ;
22602 PyObject * obj1 = 0 ;
22603 char *kwnames[] = {
22604 (char *) "self",(char *) "style", NULL
22605 };
22606
22607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
22614 (arg1)->SetWindowStyleFlag(arg2);
22615
22616 wxPyEndAllowThreads(__tstate);
22617 if (PyErr_Occurred()) SWIG_fail;
22618 }
22619 Py_INCREF(Py_None); resultobj = Py_None;
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22627 PyObject *resultobj;
22628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22629 long arg2 ;
22630 int arg3 = (int) wxLIST_NEXT_ALL ;
22631 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22632 long result;
22633 PyObject * obj0 = 0 ;
22634 PyObject * obj1 = 0 ;
22635 PyObject * obj2 = 0 ;
22636 PyObject * obj3 = 0 ;
22637 char *kwnames[] = {
22638 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22639 };
22640
22641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22644 arg2 = (long)SWIG_As_long(obj1);
22645 if (PyErr_Occurred()) SWIG_fail;
22646 if (obj2) {
22647 arg3 = (int)SWIG_As_int(obj2);
22648 if (PyErr_Occurred()) SWIG_fail;
22649 }
22650 if (obj3) {
22651 arg4 = (int)SWIG_As_int(obj3);
22652 if (PyErr_Occurred()) SWIG_fail;
22653 }
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22657
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_From_long((long)result);
22662 return resultobj;
22663 fail:
22664 return NULL;
22665 }
22666
22667
22668 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22669 PyObject *resultobj;
22670 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22671 int arg2 ;
22672 wxImageList *result;
22673 PyObject * obj0 = 0 ;
22674 PyObject * obj1 = 0 ;
22675 char *kwnames[] = {
22676 (char *) "self",(char *) "which", NULL
22677 };
22678
22679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22682 arg2 = (int)SWIG_As_int(obj1);
22683 if (PyErr_Occurred()) SWIG_fail;
22684 {
22685 PyThreadState* __tstate = wxPyBeginAllowThreads();
22686 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22687
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 {
22692 resultobj = wxPyMake_wxObject(result, 0);
22693 }
22694 return resultobj;
22695 fail:
22696 return NULL;
22697 }
22698
22699
22700 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22701 PyObject *resultobj;
22702 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22703 wxImageList *arg2 = (wxImageList *) 0 ;
22704 int arg3 ;
22705 PyObject * obj0 = 0 ;
22706 PyObject * obj1 = 0 ;
22707 PyObject * obj2 = 0 ;
22708 char *kwnames[] = {
22709 (char *) "self",(char *) "imageList",(char *) "which", NULL
22710 };
22711
22712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22715 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22717 arg3 = (int)SWIG_As_int(obj2);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 {
22720 PyThreadState* __tstate = wxPyBeginAllowThreads();
22721 (arg1)->SetImageList(arg2,arg3);
22722
22723 wxPyEndAllowThreads(__tstate);
22724 if (PyErr_Occurred()) SWIG_fail;
22725 }
22726 Py_INCREF(Py_None); resultobj = Py_None;
22727 return resultobj;
22728 fail:
22729 return NULL;
22730 }
22731
22732
22733 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22734 PyObject *resultobj;
22735 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22736 wxImageList *arg2 = (wxImageList *) 0 ;
22737 int arg3 ;
22738 PyObject * obj0 = 0 ;
22739 PyObject * obj1 = 0 ;
22740 PyObject * obj2 = 0 ;
22741 char *kwnames[] = {
22742 (char *) "self",(char *) "imageList",(char *) "which", NULL
22743 };
22744
22745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
22746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22748 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
22749 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
22750 arg3 = (int)SWIG_As_int(obj2);
22751 if (PyErr_Occurred()) SWIG_fail;
22752 {
22753 PyThreadState* __tstate = wxPyBeginAllowThreads();
22754 (arg1)->AssignImageList(arg2,arg3);
22755
22756 wxPyEndAllowThreads(__tstate);
22757 if (PyErr_Occurred()) SWIG_fail;
22758 }
22759 Py_INCREF(Py_None); resultobj = Py_None;
22760 return resultobj;
22761 fail:
22762 return NULL;
22763 }
22764
22765
22766 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
22767 PyObject *resultobj;
22768 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22769 bool result;
22770 PyObject * obj0 = 0 ;
22771 char *kwnames[] = {
22772 (char *) "self", NULL
22773 };
22774
22775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
22776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22778 {
22779 PyThreadState* __tstate = wxPyBeginAllowThreads();
22780 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
22781
22782 wxPyEndAllowThreads(__tstate);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 }
22785 {
22786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
22795 PyObject *resultobj;
22796 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22797 bool result;
22798 PyObject * obj0 = 0 ;
22799 char *kwnames[] = {
22800 (char *) "self", NULL
22801 };
22802
22803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
22804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22806 {
22807 PyThreadState* __tstate = wxPyBeginAllowThreads();
22808 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
22809
22810 wxPyEndAllowThreads(__tstate);
22811 if (PyErr_Occurred()) SWIG_fail;
22812 }
22813 {
22814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22815 }
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj;
22824 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22825 long arg2 ;
22826 PyObject * obj0 = 0 ;
22827 PyObject * obj1 = 0 ;
22828 char *kwnames[] = {
22829 (char *) "self",(char *) "item", NULL
22830 };
22831
22832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
22833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22835 arg2 = (long)SWIG_As_long(obj1);
22836 if (PyErr_Occurred()) SWIG_fail;
22837 {
22838 PyThreadState* __tstate = wxPyBeginAllowThreads();
22839 (arg1)->RefreshItem(arg2);
22840
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 Py_INCREF(Py_None); resultobj = Py_None;
22845 return resultobj;
22846 fail:
22847 return NULL;
22848 }
22849
22850
22851 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
22852 PyObject *resultobj;
22853 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22854 long arg2 ;
22855 long arg3 ;
22856 PyObject * obj0 = 0 ;
22857 PyObject * obj1 = 0 ;
22858 PyObject * obj2 = 0 ;
22859 char *kwnames[] = {
22860 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
22861 };
22862
22863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
22864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22866 arg2 = (long)SWIG_As_long(obj1);
22867 if (PyErr_Occurred()) SWIG_fail;
22868 arg3 = (long)SWIG_As_long(obj2);
22869 if (PyErr_Occurred()) SWIG_fail;
22870 {
22871 PyThreadState* __tstate = wxPyBeginAllowThreads();
22872 (arg1)->RefreshItems(arg2,arg3);
22873
22874 wxPyEndAllowThreads(__tstate);
22875 if (PyErr_Occurred()) SWIG_fail;
22876 }
22877 Py_INCREF(Py_None); resultobj = Py_None;
22878 return resultobj;
22879 fail:
22880 return NULL;
22881 }
22882
22883
22884 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
22885 PyObject *resultobj;
22886 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22887 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
22888 bool result;
22889 PyObject * obj0 = 0 ;
22890 PyObject * obj1 = 0 ;
22891 char *kwnames[] = {
22892 (char *) "self",(char *) "flag", NULL
22893 };
22894
22895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
22896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22898 if (obj1) {
22899 arg2 = (int)SWIG_As_int(obj1);
22900 if (PyErr_Occurred()) SWIG_fail;
22901 }
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = (bool)(arg1)->Arrange(arg2);
22905
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 {
22910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22911 }
22912 return resultobj;
22913 fail:
22914 return NULL;
22915 }
22916
22917
22918 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
22919 PyObject *resultobj;
22920 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22921 long arg2 ;
22922 bool result;
22923 PyObject * obj0 = 0 ;
22924 PyObject * obj1 = 0 ;
22925 char *kwnames[] = {
22926 (char *) "self",(char *) "item", NULL
22927 };
22928
22929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
22930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22932 arg2 = (long)SWIG_As_long(obj1);
22933 if (PyErr_Occurred()) SWIG_fail;
22934 {
22935 PyThreadState* __tstate = wxPyBeginAllowThreads();
22936 result = (bool)(arg1)->DeleteItem(arg2);
22937
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 {
22942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22943 }
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
22951 PyObject *resultobj;
22952 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22953 bool result;
22954 PyObject * obj0 = 0 ;
22955 char *kwnames[] = {
22956 (char *) "self", NULL
22957 };
22958
22959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
22960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22962 {
22963 PyThreadState* __tstate = wxPyBeginAllowThreads();
22964 result = (bool)(arg1)->DeleteAllItems();
22965
22966 wxPyEndAllowThreads(__tstate);
22967 if (PyErr_Occurred()) SWIG_fail;
22968 }
22969 {
22970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22971 }
22972 return resultobj;
22973 fail:
22974 return NULL;
22975 }
22976
22977
22978 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
22979 PyObject *resultobj;
22980 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22981 int arg2 ;
22982 bool result;
22983 PyObject * obj0 = 0 ;
22984 PyObject * obj1 = 0 ;
22985 char *kwnames[] = {
22986 (char *) "self",(char *) "col", NULL
22987 };
22988
22989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
22990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22992 arg2 = (int)SWIG_As_int(obj1);
22993 if (PyErr_Occurred()) SWIG_fail;
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 result = (bool)(arg1)->DeleteColumn(arg2);
22997
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 {
23002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23003 }
23004 return resultobj;
23005 fail:
23006 return NULL;
23007 }
23008
23009
23010 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23011 PyObject *resultobj;
23012 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23013 bool result;
23014 PyObject * obj0 = 0 ;
23015 char *kwnames[] = {
23016 (char *) "self", NULL
23017 };
23018
23019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
23020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23022 {
23023 PyThreadState* __tstate = wxPyBeginAllowThreads();
23024 result = (bool)(arg1)->DeleteAllColumns();
23025
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 {
23030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23031 }
23032 return resultobj;
23033 fail:
23034 return NULL;
23035 }
23036
23037
23038 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23039 PyObject *resultobj;
23040 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23041 PyObject * obj0 = 0 ;
23042 char *kwnames[] = {
23043 (char *) "self", NULL
23044 };
23045
23046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23049 {
23050 PyThreadState* __tstate = wxPyBeginAllowThreads();
23051 (arg1)->ClearAll();
23052
23053 wxPyEndAllowThreads(__tstate);
23054 if (PyErr_Occurred()) SWIG_fail;
23055 }
23056 Py_INCREF(Py_None); resultobj = Py_None;
23057 return resultobj;
23058 fail:
23059 return NULL;
23060 }
23061
23062
23063 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23064 PyObject *resultobj;
23065 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23066 long arg2 ;
23067 wxTextCtrl *result;
23068 PyObject * obj0 = 0 ;
23069 PyObject * obj1 = 0 ;
23070 char *kwnames[] = {
23071 (char *) "self",(char *) "item", NULL
23072 };
23073
23074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23077 arg2 = (long)SWIG_As_long(obj1);
23078 if (PyErr_Occurred()) SWIG_fail;
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
23082
23083 wxPyEndAllowThreads(__tstate);
23084 if (PyErr_Occurred()) SWIG_fail;
23085 }
23086 {
23087 resultobj = wxPyMake_wxObject(result, 0);
23088 }
23089 return resultobj;
23090 fail:
23091 return NULL;
23092 }
23093
23094
23095 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23096 PyObject *resultobj;
23097 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23098 bool arg2 ;
23099 bool result;
23100 PyObject * obj0 = 0 ;
23101 PyObject * obj1 = 0 ;
23102 char *kwnames[] = {
23103 (char *) "self",(char *) "cancel", NULL
23104 };
23105
23106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
23107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23109 arg2 = (bool)SWIG_As_bool(obj1);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 {
23112 PyThreadState* __tstate = wxPyBeginAllowThreads();
23113 result = (bool)(arg1)->EndEditLabel(arg2);
23114
23115 wxPyEndAllowThreads(__tstate);
23116 if (PyErr_Occurred()) SWIG_fail;
23117 }
23118 {
23119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23120 }
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj;
23129 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23130 long arg2 ;
23131 bool result;
23132 PyObject * obj0 = 0 ;
23133 PyObject * obj1 = 0 ;
23134 char *kwnames[] = {
23135 (char *) "self",(char *) "item", NULL
23136 };
23137
23138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23141 arg2 = (long)SWIG_As_long(obj1);
23142 if (PyErr_Occurred()) SWIG_fail;
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (bool)(arg1)->EnsureVisible(arg2);
23146
23147 wxPyEndAllowThreads(__tstate);
23148 if (PyErr_Occurred()) SWIG_fail;
23149 }
23150 {
23151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23152 }
23153 return resultobj;
23154 fail:
23155 return NULL;
23156 }
23157
23158
23159 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23160 PyObject *resultobj;
23161 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23162 long arg2 ;
23163 wxString *arg3 = 0 ;
23164 bool arg4 = (bool) False ;
23165 long result;
23166 bool temp3 = False ;
23167 PyObject * obj0 = 0 ;
23168 PyObject * obj1 = 0 ;
23169 PyObject * obj2 = 0 ;
23170 PyObject * obj3 = 0 ;
23171 char *kwnames[] = {
23172 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23173 };
23174
23175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23178 arg2 = (long)SWIG_As_long(obj1);
23179 if (PyErr_Occurred()) SWIG_fail;
23180 {
23181 arg3 = wxString_in_helper(obj2);
23182 if (arg3 == NULL) SWIG_fail;
23183 temp3 = True;
23184 }
23185 if (obj3) {
23186 arg4 = (bool)SWIG_As_bool(obj3);
23187 if (PyErr_Occurred()) SWIG_fail;
23188 }
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23192
23193 wxPyEndAllowThreads(__tstate);
23194 if (PyErr_Occurred()) SWIG_fail;
23195 }
23196 resultobj = SWIG_From_long((long)result);
23197 {
23198 if (temp3)
23199 delete arg3;
23200 }
23201 return resultobj;
23202 fail:
23203 {
23204 if (temp3)
23205 delete arg3;
23206 }
23207 return NULL;
23208 }
23209
23210
23211 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23212 PyObject *resultobj;
23213 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23214 long arg2 ;
23215 long arg3 ;
23216 long result;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 PyObject * obj2 = 0 ;
23220 char *kwnames[] = {
23221 (char *) "self",(char *) "start",(char *) "data", NULL
23222 };
23223
23224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23227 arg2 = (long)SWIG_As_long(obj1);
23228 if (PyErr_Occurred()) SWIG_fail;
23229 arg3 = (long)SWIG_As_long(obj2);
23230 if (PyErr_Occurred()) SWIG_fail;
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 result = (long)(arg1)->FindItem(arg2,arg3);
23234
23235 wxPyEndAllowThreads(__tstate);
23236 if (PyErr_Occurred()) SWIG_fail;
23237 }
23238 resultobj = SWIG_From_long((long)result);
23239 return resultobj;
23240 fail:
23241 return NULL;
23242 }
23243
23244
23245 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23246 PyObject *resultobj;
23247 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23248 long arg2 ;
23249 wxPoint *arg3 = 0 ;
23250 int arg4 ;
23251 long result;
23252 wxPoint temp3 ;
23253 PyObject * obj0 = 0 ;
23254 PyObject * obj1 = 0 ;
23255 PyObject * obj2 = 0 ;
23256 PyObject * obj3 = 0 ;
23257 char *kwnames[] = {
23258 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23259 };
23260
23261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23264 arg2 = (long)SWIG_As_long(obj1);
23265 if (PyErr_Occurred()) SWIG_fail;
23266 {
23267 arg3 = &temp3;
23268 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23269 }
23270 arg4 = (int)SWIG_As_int(obj3);
23271 if (PyErr_Occurred()) SWIG_fail;
23272 {
23273 PyThreadState* __tstate = wxPyBeginAllowThreads();
23274 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23275
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = SWIG_From_long((long)result);
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj;
23288 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23289 wxPoint *arg2 = 0 ;
23290 int *arg3 = 0 ;
23291 long result;
23292 wxPoint temp2 ;
23293 int temp3 ;
23294 int res3 = 0 ;
23295 PyObject * obj0 = 0 ;
23296 PyObject * obj1 = 0 ;
23297 char *kwnames[] = {
23298 (char *) "self",(char *) "point", NULL
23299 };
23300
23301 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23305 {
23306 arg2 = &temp2;
23307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23308 }
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23312
23313 wxPyEndAllowThreads(__tstate);
23314 if (PyErr_Occurred()) SWIG_fail;
23315 }
23316 resultobj = SWIG_From_long((long)result);
23317 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23318 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23319 return resultobj;
23320 fail:
23321 return NULL;
23322 }
23323
23324
23325 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23326 PyObject *resultobj;
23327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23328 wxListItem *arg2 = 0 ;
23329 long result;
23330 PyObject * obj0 = 0 ;
23331 PyObject * obj1 = 0 ;
23332 char *kwnames[] = {
23333 (char *) "self",(char *) "info", NULL
23334 };
23335
23336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23339 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23340 SWIG_POINTER_EXCEPTION | 0)) == -1)
23341 SWIG_fail;
23342 if (arg2 == NULL) {
23343 PyErr_SetString(PyExc_TypeError,"null reference");
23344 SWIG_fail;
23345 }
23346 {
23347 PyThreadState* __tstate = wxPyBeginAllowThreads();
23348 result = (long)(arg1)->InsertItem(*arg2);
23349
23350 wxPyEndAllowThreads(__tstate);
23351 if (PyErr_Occurred()) SWIG_fail;
23352 }
23353 resultobj = SWIG_From_long((long)result);
23354 return resultobj;
23355 fail:
23356 return NULL;
23357 }
23358
23359
23360 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23361 PyObject *resultobj;
23362 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23363 long arg2 ;
23364 wxString *arg3 = 0 ;
23365 long result;
23366 bool temp3 = False ;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 PyObject * obj2 = 0 ;
23370 char *kwnames[] = {
23371 (char *) "self",(char *) "index",(char *) "label", NULL
23372 };
23373
23374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23377 arg2 = (long)SWIG_As_long(obj1);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 {
23380 arg3 = wxString_in_helper(obj2);
23381 if (arg3 == NULL) SWIG_fail;
23382 temp3 = True;
23383 }
23384 {
23385 PyThreadState* __tstate = wxPyBeginAllowThreads();
23386 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23387
23388 wxPyEndAllowThreads(__tstate);
23389 if (PyErr_Occurred()) SWIG_fail;
23390 }
23391 resultobj = SWIG_From_long((long)result);
23392 {
23393 if (temp3)
23394 delete arg3;
23395 }
23396 return resultobj;
23397 fail:
23398 {
23399 if (temp3)
23400 delete arg3;
23401 }
23402 return NULL;
23403 }
23404
23405
23406 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23407 PyObject *resultobj;
23408 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23409 long arg2 ;
23410 int arg3 ;
23411 long result;
23412 PyObject * obj0 = 0 ;
23413 PyObject * obj1 = 0 ;
23414 PyObject * obj2 = 0 ;
23415 char *kwnames[] = {
23416 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23417 };
23418
23419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23422 arg2 = (long)SWIG_As_long(obj1);
23423 if (PyErr_Occurred()) SWIG_fail;
23424 arg3 = (int)SWIG_As_int(obj2);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = (long)(arg1)->InsertItem(arg2,arg3);
23429
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = SWIG_From_long((long)result);
23434 return resultobj;
23435 fail:
23436 return NULL;
23437 }
23438
23439
23440 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj;
23442 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23443 long arg2 ;
23444 wxString *arg3 = 0 ;
23445 int arg4 ;
23446 long result;
23447 bool temp3 = False ;
23448 PyObject * obj0 = 0 ;
23449 PyObject * obj1 = 0 ;
23450 PyObject * obj2 = 0 ;
23451 PyObject * obj3 = 0 ;
23452 char *kwnames[] = {
23453 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23454 };
23455
23456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23459 arg2 = (long)SWIG_As_long(obj1);
23460 if (PyErr_Occurred()) SWIG_fail;
23461 {
23462 arg3 = wxString_in_helper(obj2);
23463 if (arg3 == NULL) SWIG_fail;
23464 temp3 = True;
23465 }
23466 arg4 = (int)SWIG_As_int(obj3);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 {
23469 PyThreadState* __tstate = wxPyBeginAllowThreads();
23470 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23471
23472 wxPyEndAllowThreads(__tstate);
23473 if (PyErr_Occurred()) SWIG_fail;
23474 }
23475 resultobj = SWIG_From_long((long)result);
23476 {
23477 if (temp3)
23478 delete arg3;
23479 }
23480 return resultobj;
23481 fail:
23482 {
23483 if (temp3)
23484 delete arg3;
23485 }
23486 return NULL;
23487 }
23488
23489
23490 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23491 PyObject *resultobj;
23492 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23493 long arg2 ;
23494 wxListItem *arg3 = 0 ;
23495 long result;
23496 PyObject * obj0 = 0 ;
23497 PyObject * obj1 = 0 ;
23498 PyObject * obj2 = 0 ;
23499 char *kwnames[] = {
23500 (char *) "self",(char *) "col",(char *) "info", NULL
23501 };
23502
23503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23506 arg2 = (long)SWIG_As_long(obj1);
23507 if (PyErr_Occurred()) SWIG_fail;
23508 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23509 SWIG_POINTER_EXCEPTION | 0)) == -1)
23510 SWIG_fail;
23511 if (arg3 == NULL) {
23512 PyErr_SetString(PyExc_TypeError,"null reference");
23513 SWIG_fail;
23514 }
23515 {
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23518
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_From_long((long)result);
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23530 PyObject *resultobj;
23531 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23532 long arg2 ;
23533 wxString *arg3 = 0 ;
23534 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23535 int arg5 = (int) -1 ;
23536 long result;
23537 bool temp3 = False ;
23538 PyObject * obj0 = 0 ;
23539 PyObject * obj1 = 0 ;
23540 PyObject * obj2 = 0 ;
23541 PyObject * obj3 = 0 ;
23542 PyObject * obj4 = 0 ;
23543 char *kwnames[] = {
23544 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23545 };
23546
23547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23550 arg2 = (long)SWIG_As_long(obj1);
23551 if (PyErr_Occurred()) SWIG_fail;
23552 {
23553 arg3 = wxString_in_helper(obj2);
23554 if (arg3 == NULL) SWIG_fail;
23555 temp3 = True;
23556 }
23557 if (obj3) {
23558 arg4 = (int)SWIG_As_int(obj3);
23559 if (PyErr_Occurred()) SWIG_fail;
23560 }
23561 if (obj4) {
23562 arg5 = (int)SWIG_As_int(obj4);
23563 if (PyErr_Occurred()) SWIG_fail;
23564 }
23565 {
23566 PyThreadState* __tstate = wxPyBeginAllowThreads();
23567 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23568
23569 wxPyEndAllowThreads(__tstate);
23570 if (PyErr_Occurred()) SWIG_fail;
23571 }
23572 resultobj = SWIG_From_long((long)result);
23573 {
23574 if (temp3)
23575 delete arg3;
23576 }
23577 return resultobj;
23578 fail:
23579 {
23580 if (temp3)
23581 delete arg3;
23582 }
23583 return NULL;
23584 }
23585
23586
23587 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23588 PyObject *resultobj;
23589 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23590 long arg2 ;
23591 PyObject * obj0 = 0 ;
23592 PyObject * obj1 = 0 ;
23593 char *kwnames[] = {
23594 (char *) "self",(char *) "count", NULL
23595 };
23596
23597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23600 arg2 = (long)SWIG_As_long(obj1);
23601 if (PyErr_Occurred()) SWIG_fail;
23602 {
23603 PyThreadState* __tstate = wxPyBeginAllowThreads();
23604 (arg1)->SetItemCount(arg2);
23605
23606 wxPyEndAllowThreads(__tstate);
23607 if (PyErr_Occurred()) SWIG_fail;
23608 }
23609 Py_INCREF(Py_None); resultobj = Py_None;
23610 return resultobj;
23611 fail:
23612 return NULL;
23613 }
23614
23615
23616 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23617 PyObject *resultobj;
23618 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23619 int arg2 ;
23620 int arg3 ;
23621 bool result;
23622 PyObject * obj0 = 0 ;
23623 PyObject * obj1 = 0 ;
23624 PyObject * obj2 = 0 ;
23625 char *kwnames[] = {
23626 (char *) "self",(char *) "dx",(char *) "dy", NULL
23627 };
23628
23629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23632 arg2 = (int)SWIG_As_int(obj1);
23633 if (PyErr_Occurred()) SWIG_fail;
23634 arg3 = (int)SWIG_As_int(obj2);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 {
23637 PyThreadState* __tstate = wxPyBeginAllowThreads();
23638 result = (bool)(arg1)->ScrollList(arg2,arg3);
23639
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 {
23644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23645 }
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23653 PyObject *resultobj;
23654 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23655 long arg2 ;
23656 wxColour *arg3 = 0 ;
23657 wxColour temp3 ;
23658 PyObject * obj0 = 0 ;
23659 PyObject * obj1 = 0 ;
23660 PyObject * obj2 = 0 ;
23661 char *kwnames[] = {
23662 (char *) "self",(char *) "item",(char *) "col", NULL
23663 };
23664
23665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23668 arg2 = (long)SWIG_As_long(obj1);
23669 if (PyErr_Occurred()) SWIG_fail;
23670 {
23671 arg3 = &temp3;
23672 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23673 }
23674 {
23675 PyThreadState* __tstate = wxPyBeginAllowThreads();
23676 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23677
23678 wxPyEndAllowThreads(__tstate);
23679 if (PyErr_Occurred()) SWIG_fail;
23680 }
23681 Py_INCREF(Py_None); resultobj = Py_None;
23682 return resultobj;
23683 fail:
23684 return NULL;
23685 }
23686
23687
23688 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23689 PyObject *resultobj;
23690 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23691 long arg2 ;
23692 wxColour result;
23693 PyObject * obj0 = 0 ;
23694 PyObject * obj1 = 0 ;
23695 char *kwnames[] = {
23696 (char *) "self",(char *) "item", NULL
23697 };
23698
23699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23702 arg2 = (long)SWIG_As_long(obj1);
23703 if (PyErr_Occurred()) SWIG_fail;
23704 {
23705 PyThreadState* __tstate = wxPyBeginAllowThreads();
23706 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
23707
23708 wxPyEndAllowThreads(__tstate);
23709 if (PyErr_Occurred()) SWIG_fail;
23710 }
23711 {
23712 wxColour * resultptr;
23713 resultptr = new wxColour((wxColour &) result);
23714 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23715 }
23716 return resultobj;
23717 fail:
23718 return NULL;
23719 }
23720
23721
23722 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj;
23724 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23725 long arg2 ;
23726 wxColour *arg3 = 0 ;
23727 wxColour temp3 ;
23728 PyObject * obj0 = 0 ;
23729 PyObject * obj1 = 0 ;
23730 PyObject * obj2 = 0 ;
23731 char *kwnames[] = {
23732 (char *) "self",(char *) "item",(char *) "col", NULL
23733 };
23734
23735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23738 arg2 = (long)SWIG_As_long(obj1);
23739 if (PyErr_Occurred()) SWIG_fail;
23740 {
23741 arg3 = &temp3;
23742 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23743 }
23744 {
23745 PyThreadState* __tstate = wxPyBeginAllowThreads();
23746 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
23747
23748 wxPyEndAllowThreads(__tstate);
23749 if (PyErr_Occurred()) SWIG_fail;
23750 }
23751 Py_INCREF(Py_None); resultobj = Py_None;
23752 return resultobj;
23753 fail:
23754 return NULL;
23755 }
23756
23757
23758 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
23759 PyObject *resultobj;
23760 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23761 long arg2 ;
23762 wxColour result;
23763 PyObject * obj0 = 0 ;
23764 PyObject * obj1 = 0 ;
23765 char *kwnames[] = {
23766 (char *) "self",(char *) "item", NULL
23767 };
23768
23769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
23770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23772 arg2 = (long)SWIG_As_long(obj1);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 {
23775 PyThreadState* __tstate = wxPyBeginAllowThreads();
23776 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
23777
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 {
23782 wxColour * resultptr;
23783 resultptr = new wxColour((wxColour &) result);
23784 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
23785 }
23786 return resultobj;
23787 fail:
23788 return NULL;
23789 }
23790
23791
23792 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
23793 PyObject *resultobj;
23794 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23795 PyObject *arg2 = (PyObject *) 0 ;
23796 bool result;
23797 PyObject * obj0 = 0 ;
23798 PyObject * obj1 = 0 ;
23799 char *kwnames[] = {
23800 (char *) "self",(char *) "func", NULL
23801 };
23802
23803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
23804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23806 arg2 = obj1;
23807 {
23808 PyThreadState* __tstate = wxPyBeginAllowThreads();
23809 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
23810
23811 wxPyEndAllowThreads(__tstate);
23812 if (PyErr_Occurred()) SWIG_fail;
23813 }
23814 {
23815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23816 }
23817 return resultobj;
23818 fail:
23819 return NULL;
23820 }
23821
23822
23823 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
23824 PyObject *resultobj;
23825 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23826 wxWindow *result;
23827 PyObject * obj0 = 0 ;
23828 char *kwnames[] = {
23829 (char *) "self", NULL
23830 };
23831
23832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
23833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23835 {
23836 PyThreadState* __tstate = wxPyBeginAllowThreads();
23837 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
23838
23839 wxPyEndAllowThreads(__tstate);
23840 if (PyErr_Occurred()) SWIG_fail;
23841 }
23842 {
23843 resultobj = wxPyMake_wxObject(result, 0);
23844 }
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj;
23853 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
23854 wxVisualAttributes result;
23855 PyObject * obj0 = 0 ;
23856 char *kwnames[] = {
23857 (char *) "variant", NULL
23858 };
23859
23860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
23861 if (obj0) {
23862 arg1 = (int)SWIG_As_int(obj0);
23863 if (PyErr_Occurred()) SWIG_fail;
23864 }
23865 {
23866 if (!wxPyCheckForApp()) SWIG_fail;
23867 PyThreadState* __tstate = wxPyBeginAllowThreads();
23868 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
23869
23870 wxPyEndAllowThreads(__tstate);
23871 if (PyErr_Occurred()) SWIG_fail;
23872 }
23873 {
23874 wxVisualAttributes * resultptr;
23875 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
23876 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
23877 }
23878 return resultobj;
23879 fail:
23880 return NULL;
23881 }
23882
23883
23884 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
23885 PyObject *obj;
23886 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
23887 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
23888 Py_INCREF(obj);
23889 return Py_BuildValue((char *)"");
23890 }
23891 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj;
23893 wxWindow *arg1 = (wxWindow *) 0 ;
23894 int arg2 = (int) -1 ;
23895 wxPoint const &arg3_defvalue = wxDefaultPosition ;
23896 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
23897 wxSize const &arg4_defvalue = wxDefaultSize ;
23898 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
23899 long arg5 = (long) wxLC_REPORT ;
23900 wxValidator const &arg6_defvalue = wxDefaultValidator ;
23901 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
23902 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
23903 wxString *arg7 = (wxString *) &arg7_defvalue ;
23904 wxListView *result;
23905 wxPoint temp3 ;
23906 wxSize temp4 ;
23907 bool temp7 = False ;
23908 PyObject * obj0 = 0 ;
23909 PyObject * obj1 = 0 ;
23910 PyObject * obj2 = 0 ;
23911 PyObject * obj3 = 0 ;
23912 PyObject * obj4 = 0 ;
23913 PyObject * obj5 = 0 ;
23914 PyObject * obj6 = 0 ;
23915 char *kwnames[] = {
23916 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
23917 };
23918
23919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
23920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
23921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23922 if (obj1) {
23923 arg2 = (int)SWIG_As_int(obj1);
23924 if (PyErr_Occurred()) SWIG_fail;
23925 }
23926 if (obj2) {
23927 {
23928 arg3 = &temp3;
23929 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23930 }
23931 }
23932 if (obj3) {
23933 {
23934 arg4 = &temp4;
23935 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
23936 }
23937 }
23938 if (obj4) {
23939 arg5 = (long)SWIG_As_long(obj4);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 if (obj5) {
23943 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
23944 SWIG_POINTER_EXCEPTION | 0)) == -1)
23945 SWIG_fail;
23946 if (arg6 == NULL) {
23947 PyErr_SetString(PyExc_TypeError,"null reference");
23948 SWIG_fail;
23949 }
23950 }
23951 if (obj6) {
23952 {
23953 arg7 = wxString_in_helper(obj6);
23954 if (arg7 == NULL) SWIG_fail;
23955 temp7 = True;
23956 }
23957 }
23958 {
23959 if (!wxPyCheckForApp()) SWIG_fail;
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
23962
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23967 {
23968 if (temp7)
23969 delete arg7;
23970 }
23971 return resultobj;
23972 fail:
23973 {
23974 if (temp7)
23975 delete arg7;
23976 }
23977 return NULL;
23978 }
23979
23980
23981 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
23982 PyObject *resultobj;
23983 wxListView *result;
23984 char *kwnames[] = {
23985 NULL
23986 };
23987
23988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
23989 {
23990 if (!wxPyCheckForApp()) SWIG_fail;
23991 PyThreadState* __tstate = wxPyBeginAllowThreads();
23992 result = (wxListView *)new wxListView();
23993
23994 wxPyEndAllowThreads(__tstate);
23995 if (PyErr_Occurred()) SWIG_fail;
23996 }
23997 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
23998 return resultobj;
23999 fail:
24000 return NULL;
24001 }
24002
24003
24004 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24005 PyObject *resultobj;
24006 wxListView *arg1 = (wxListView *) 0 ;
24007 wxWindow *arg2 = (wxWindow *) 0 ;
24008 int arg3 = (int) -1 ;
24009 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24010 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24011 wxSize const &arg5_defvalue = wxDefaultSize ;
24012 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24013 long arg6 = (long) wxLC_REPORT ;
24014 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24015 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24016 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24017 wxString *arg8 = (wxString *) &arg8_defvalue ;
24018 bool result;
24019 wxPoint temp4 ;
24020 wxSize temp5 ;
24021 bool temp8 = False ;
24022 PyObject * obj0 = 0 ;
24023 PyObject * obj1 = 0 ;
24024 PyObject * obj2 = 0 ;
24025 PyObject * obj3 = 0 ;
24026 PyObject * obj4 = 0 ;
24027 PyObject * obj5 = 0 ;
24028 PyObject * obj6 = 0 ;
24029 PyObject * obj7 = 0 ;
24030 char *kwnames[] = {
24031 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24032 };
24033
24034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24039 if (obj2) {
24040 arg3 = (int)SWIG_As_int(obj2);
24041 if (PyErr_Occurred()) SWIG_fail;
24042 }
24043 if (obj3) {
24044 {
24045 arg4 = &temp4;
24046 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24047 }
24048 }
24049 if (obj4) {
24050 {
24051 arg5 = &temp5;
24052 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24053 }
24054 }
24055 if (obj5) {
24056 arg6 = (long)SWIG_As_long(obj5);
24057 if (PyErr_Occurred()) SWIG_fail;
24058 }
24059 if (obj6) {
24060 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24061 SWIG_POINTER_EXCEPTION | 0)) == -1)
24062 SWIG_fail;
24063 if (arg7 == NULL) {
24064 PyErr_SetString(PyExc_TypeError,"null reference");
24065 SWIG_fail;
24066 }
24067 }
24068 if (obj7) {
24069 {
24070 arg8 = wxString_in_helper(obj7);
24071 if (arg8 == NULL) SWIG_fail;
24072 temp8 = True;
24073 }
24074 }
24075 {
24076 PyThreadState* __tstate = wxPyBeginAllowThreads();
24077 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24078
24079 wxPyEndAllowThreads(__tstate);
24080 if (PyErr_Occurred()) SWIG_fail;
24081 }
24082 {
24083 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24084 }
24085 {
24086 if (temp8)
24087 delete arg8;
24088 }
24089 return resultobj;
24090 fail:
24091 {
24092 if (temp8)
24093 delete arg8;
24094 }
24095 return NULL;
24096 }
24097
24098
24099 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24100 PyObject *resultobj;
24101 wxListView *arg1 = (wxListView *) 0 ;
24102 long arg2 ;
24103 bool arg3 = (bool) True ;
24104 PyObject * obj0 = 0 ;
24105 PyObject * obj1 = 0 ;
24106 PyObject * obj2 = 0 ;
24107 char *kwnames[] = {
24108 (char *) "self",(char *) "n",(char *) "on", NULL
24109 };
24110
24111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24114 arg2 = (long)SWIG_As_long(obj1);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 if (obj2) {
24117 arg3 = (bool)SWIG_As_bool(obj2);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 (arg1)->Select(arg2,arg3);
24123
24124 wxPyEndAllowThreads(__tstate);
24125 if (PyErr_Occurred()) SWIG_fail;
24126 }
24127 Py_INCREF(Py_None); resultobj = Py_None;
24128 return resultobj;
24129 fail:
24130 return NULL;
24131 }
24132
24133
24134 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24135 PyObject *resultobj;
24136 wxListView *arg1 = (wxListView *) 0 ;
24137 long arg2 ;
24138 PyObject * obj0 = 0 ;
24139 PyObject * obj1 = 0 ;
24140 char *kwnames[] = {
24141 (char *) "self",(char *) "index", NULL
24142 };
24143
24144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24147 arg2 = (long)SWIG_As_long(obj1);
24148 if (PyErr_Occurred()) SWIG_fail;
24149 {
24150 PyThreadState* __tstate = wxPyBeginAllowThreads();
24151 (arg1)->Focus(arg2);
24152
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 Py_INCREF(Py_None); resultobj = Py_None;
24157 return resultobj;
24158 fail:
24159 return NULL;
24160 }
24161
24162
24163 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24164 PyObject *resultobj;
24165 wxListView *arg1 = (wxListView *) 0 ;
24166 long result;
24167 PyObject * obj0 = 0 ;
24168 char *kwnames[] = {
24169 (char *) "self", NULL
24170 };
24171
24172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24175 {
24176 PyThreadState* __tstate = wxPyBeginAllowThreads();
24177 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24178
24179 wxPyEndAllowThreads(__tstate);
24180 if (PyErr_Occurred()) SWIG_fail;
24181 }
24182 resultobj = SWIG_From_long((long)result);
24183 return resultobj;
24184 fail:
24185 return NULL;
24186 }
24187
24188
24189 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24190 PyObject *resultobj;
24191 wxListView *arg1 = (wxListView *) 0 ;
24192 long arg2 ;
24193 long result;
24194 PyObject * obj0 = 0 ;
24195 PyObject * obj1 = 0 ;
24196 char *kwnames[] = {
24197 (char *) "self",(char *) "item", NULL
24198 };
24199
24200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24203 arg2 = (long)SWIG_As_long(obj1);
24204 if (PyErr_Occurred()) SWIG_fail;
24205 {
24206 PyThreadState* __tstate = wxPyBeginAllowThreads();
24207 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24208
24209 wxPyEndAllowThreads(__tstate);
24210 if (PyErr_Occurred()) SWIG_fail;
24211 }
24212 resultobj = SWIG_From_long((long)result);
24213 return resultobj;
24214 fail:
24215 return NULL;
24216 }
24217
24218
24219 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24220 PyObject *resultobj;
24221 wxListView *arg1 = (wxListView *) 0 ;
24222 long result;
24223 PyObject * obj0 = 0 ;
24224 char *kwnames[] = {
24225 (char *) "self", NULL
24226 };
24227
24228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24231 {
24232 PyThreadState* __tstate = wxPyBeginAllowThreads();
24233 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24234
24235 wxPyEndAllowThreads(__tstate);
24236 if (PyErr_Occurred()) SWIG_fail;
24237 }
24238 resultobj = SWIG_From_long((long)result);
24239 return resultobj;
24240 fail:
24241 return NULL;
24242 }
24243
24244
24245 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24246 PyObject *resultobj;
24247 wxListView *arg1 = (wxListView *) 0 ;
24248 long arg2 ;
24249 bool result;
24250 PyObject * obj0 = 0 ;
24251 PyObject * obj1 = 0 ;
24252 char *kwnames[] = {
24253 (char *) "self",(char *) "index", NULL
24254 };
24255
24256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24259 arg2 = (long)SWIG_As_long(obj1);
24260 if (PyErr_Occurred()) SWIG_fail;
24261 {
24262 PyThreadState* __tstate = wxPyBeginAllowThreads();
24263 result = (bool)(arg1)->IsSelected(arg2);
24264
24265 wxPyEndAllowThreads(__tstate);
24266 if (PyErr_Occurred()) SWIG_fail;
24267 }
24268 {
24269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24270 }
24271 return resultobj;
24272 fail:
24273 return NULL;
24274 }
24275
24276
24277 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24278 PyObject *resultobj;
24279 wxListView *arg1 = (wxListView *) 0 ;
24280 int arg2 ;
24281 int arg3 ;
24282 PyObject * obj0 = 0 ;
24283 PyObject * obj1 = 0 ;
24284 PyObject * obj2 = 0 ;
24285 char *kwnames[] = {
24286 (char *) "self",(char *) "col",(char *) "image", NULL
24287 };
24288
24289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24292 arg2 = (int)SWIG_As_int(obj1);
24293 if (PyErr_Occurred()) SWIG_fail;
24294 arg3 = (int)SWIG_As_int(obj2);
24295 if (PyErr_Occurred()) SWIG_fail;
24296 {
24297 PyThreadState* __tstate = wxPyBeginAllowThreads();
24298 (arg1)->SetColumnImage(arg2,arg3);
24299
24300 wxPyEndAllowThreads(__tstate);
24301 if (PyErr_Occurred()) SWIG_fail;
24302 }
24303 Py_INCREF(Py_None); resultobj = Py_None;
24304 return resultobj;
24305 fail:
24306 return NULL;
24307 }
24308
24309
24310 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24311 PyObject *resultobj;
24312 wxListView *arg1 = (wxListView *) 0 ;
24313 int arg2 ;
24314 PyObject * obj0 = 0 ;
24315 PyObject * obj1 = 0 ;
24316 char *kwnames[] = {
24317 (char *) "self",(char *) "col", NULL
24318 };
24319
24320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24323 arg2 = (int)SWIG_As_int(obj1);
24324 if (PyErr_Occurred()) SWIG_fail;
24325 {
24326 PyThreadState* __tstate = wxPyBeginAllowThreads();
24327 (arg1)->ClearColumnImage(arg2);
24328
24329 wxPyEndAllowThreads(__tstate);
24330 if (PyErr_Occurred()) SWIG_fail;
24331 }
24332 Py_INCREF(Py_None); resultobj = Py_None;
24333 return resultobj;
24334 fail:
24335 return NULL;
24336 }
24337
24338
24339 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24340 PyObject *obj;
24341 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24342 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24343 Py_INCREF(obj);
24344 return Py_BuildValue((char *)"");
24345 }
24346 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24347 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24348 return 1;
24349 }
24350
24351
24352 static PyObject *_wrap_TreeCtrlNameStr_get() {
24353 PyObject *pyobj;
24354
24355 {
24356 #if wxUSE_UNICODE
24357 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24358 #else
24359 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24360 #endif
24361 }
24362 return pyobj;
24363 }
24364
24365
24366 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24367 PyObject *resultobj;
24368 wxTreeItemId *result;
24369 char *kwnames[] = {
24370 NULL
24371 };
24372
24373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (wxTreeItemId *)new wxTreeItemId();
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24382 return resultobj;
24383 fail:
24384 return NULL;
24385 }
24386
24387
24388 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24389 PyObject *resultobj;
24390 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24391 PyObject * obj0 = 0 ;
24392 char *kwnames[] = {
24393 (char *) "self", NULL
24394 };
24395
24396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24399 {
24400 PyThreadState* __tstate = wxPyBeginAllowThreads();
24401 delete arg1;
24402
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 Py_INCREF(Py_None); resultobj = Py_None;
24407 return resultobj;
24408 fail:
24409 return NULL;
24410 }
24411
24412
24413 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24414 PyObject *resultobj;
24415 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24416 bool result;
24417 PyObject * obj0 = 0 ;
24418 char *kwnames[] = {
24419 (char *) "self", NULL
24420 };
24421
24422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24425 {
24426 PyThreadState* __tstate = wxPyBeginAllowThreads();
24427 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24428
24429 wxPyEndAllowThreads(__tstate);
24430 if (PyErr_Occurred()) SWIG_fail;
24431 }
24432 {
24433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24434 }
24435 return resultobj;
24436 fail:
24437 return NULL;
24438 }
24439
24440
24441 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24442 PyObject *resultobj;
24443 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24444 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24445 bool result;
24446 PyObject * obj0 = 0 ;
24447 PyObject * obj1 = 0 ;
24448 char *kwnames[] = {
24449 (char *) "self",(char *) "other", NULL
24450 };
24451
24452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24455 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24457 {
24458 PyThreadState* __tstate = wxPyBeginAllowThreads();
24459 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24460
24461 wxPyEndAllowThreads(__tstate);
24462 if (PyErr_Occurred()) SWIG_fail;
24463 }
24464 {
24465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24466 }
24467 return resultobj;
24468 fail:
24469 return NULL;
24470 }
24471
24472
24473 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24474 PyObject *resultobj;
24475 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24476 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24477 bool result;
24478 PyObject * obj0 = 0 ;
24479 PyObject * obj1 = 0 ;
24480 char *kwnames[] = {
24481 (char *) "self",(char *) "other", NULL
24482 };
24483
24484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24489 {
24490 PyThreadState* __tstate = wxPyBeginAllowThreads();
24491 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24492
24493 wxPyEndAllowThreads(__tstate);
24494 if (PyErr_Occurred()) SWIG_fail;
24495 }
24496 {
24497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24498 }
24499 return resultobj;
24500 fail:
24501 return NULL;
24502 }
24503
24504
24505 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24506 PyObject *resultobj;
24507 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24508 void *arg2 = (void *) 0 ;
24509 PyObject * obj0 = 0 ;
24510 PyObject * obj1 = 0 ;
24511 char *kwnames[] = {
24512 (char *) "self",(char *) "m_pItem", NULL
24513 };
24514
24515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24518 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24519 if (arg1) (arg1)->m_pItem = arg2;
24520
24521 Py_INCREF(Py_None); resultobj = Py_None;
24522 return resultobj;
24523 fail:
24524 return NULL;
24525 }
24526
24527
24528 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24529 PyObject *resultobj;
24530 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24531 void *result;
24532 PyObject * obj0 = 0 ;
24533 char *kwnames[] = {
24534 (char *) "self", NULL
24535 };
24536
24537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24540 result = (void *) ((arg1)->m_pItem);
24541
24542 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24543 return resultobj;
24544 fail:
24545 return NULL;
24546 }
24547
24548
24549 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24550 PyObject *obj;
24551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24552 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24553 Py_INCREF(obj);
24554 return Py_BuildValue((char *)"");
24555 }
24556 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24557 PyObject *resultobj;
24558 PyObject *arg1 = (PyObject *) NULL ;
24559 wxPyTreeItemData *result;
24560 PyObject * obj0 = 0 ;
24561 char *kwnames[] = {
24562 (char *) "obj", NULL
24563 };
24564
24565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24566 if (obj0) {
24567 arg1 = obj0;
24568 }
24569 {
24570 PyThreadState* __tstate = wxPyBeginAllowThreads();
24571 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24572
24573 wxPyEndAllowThreads(__tstate);
24574 if (PyErr_Occurred()) SWIG_fail;
24575 }
24576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24577 return resultobj;
24578 fail:
24579 return NULL;
24580 }
24581
24582
24583 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24584 PyObject *resultobj;
24585 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24586 PyObject *result;
24587 PyObject * obj0 = 0 ;
24588 char *kwnames[] = {
24589 (char *) "self", NULL
24590 };
24591
24592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 result = (PyObject *)(arg1)->GetData();
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 resultobj = result;
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24612 PyObject *arg2 = (PyObject *) 0 ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 char *kwnames[] = {
24616 (char *) "self",(char *) "obj", NULL
24617 };
24618
24619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24622 arg2 = obj1;
24623 {
24624 PyThreadState* __tstate = wxPyBeginAllowThreads();
24625 (arg1)->SetData(arg2);
24626
24627 wxPyEndAllowThreads(__tstate);
24628 if (PyErr_Occurred()) SWIG_fail;
24629 }
24630 Py_INCREF(Py_None); resultobj = Py_None;
24631 return resultobj;
24632 fail:
24633 return NULL;
24634 }
24635
24636
24637 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24638 PyObject *resultobj;
24639 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24640 wxTreeItemId *result;
24641 PyObject * obj0 = 0 ;
24642 char *kwnames[] = {
24643 (char *) "self", NULL
24644 };
24645
24646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24649 {
24650 PyThreadState* __tstate = wxPyBeginAllowThreads();
24651 {
24652 wxTreeItemId const &_result_ref = (arg1)->GetId();
24653 result = (wxTreeItemId *) &_result_ref;
24654 }
24655
24656 wxPyEndAllowThreads(__tstate);
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24667 PyObject *resultobj;
24668 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24669 wxTreeItemId *arg2 = 0 ;
24670 PyObject * obj0 = 0 ;
24671 PyObject * obj1 = 0 ;
24672 char *kwnames[] = {
24673 (char *) "self",(char *) "id", NULL
24674 };
24675
24676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24680 SWIG_POINTER_EXCEPTION | 0)) == -1)
24681 SWIG_fail;
24682 if (arg2 == NULL) {
24683 PyErr_SetString(PyExc_TypeError,"null reference");
24684 SWIG_fail;
24685 }
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 (arg1)->SetId((wxTreeItemId const &)*arg2);
24689
24690 wxPyEndAllowThreads(__tstate);
24691 if (PyErr_Occurred()) SWIG_fail;
24692 }
24693 Py_INCREF(Py_None); resultobj = Py_None;
24694 return resultobj;
24695 fail:
24696 return NULL;
24697 }
24698
24699
24700 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
24701 PyObject *resultobj;
24702 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24703 PyObject * obj0 = 0 ;
24704 char *kwnames[] = {
24705 (char *) "self", NULL
24706 };
24707
24708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
24709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24711 {
24712 PyThreadState* __tstate = wxPyBeginAllowThreads();
24713 wxPyTreeItemData_Destroy(arg1);
24714
24715 wxPyEndAllowThreads(__tstate);
24716 if (PyErr_Occurred()) SWIG_fail;
24717 }
24718 Py_INCREF(Py_None); resultobj = Py_None;
24719 return resultobj;
24720 fail:
24721 return NULL;
24722 }
24723
24724
24725 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
24726 PyObject *obj;
24727 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24728 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
24729 Py_INCREF(obj);
24730 return Py_BuildValue((char *)"");
24731 }
24732 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24733 PyObject *resultobj;
24734 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
24735 int arg2 = (int) 0 ;
24736 wxTreeEvent *result;
24737 PyObject * obj0 = 0 ;
24738 PyObject * obj1 = 0 ;
24739 char *kwnames[] = {
24740 (char *) "commandType",(char *) "id", NULL
24741 };
24742
24743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
24744 if (obj0) {
24745 arg1 = (wxEventType)SWIG_As_int(obj0);
24746 if (PyErr_Occurred()) SWIG_fail;
24747 }
24748 if (obj1) {
24749 arg2 = (int)SWIG_As_int(obj1);
24750 if (PyErr_Occurred()) SWIG_fail;
24751 }
24752 {
24753 PyThreadState* __tstate = wxPyBeginAllowThreads();
24754 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
24755
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
24760 return resultobj;
24761 fail:
24762 return NULL;
24763 }
24764
24765
24766 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24767 PyObject *resultobj;
24768 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24769 wxTreeItemId result;
24770 PyObject * obj0 = 0 ;
24771 char *kwnames[] = {
24772 (char *) "self", NULL
24773 };
24774
24775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
24776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24778 {
24779 PyThreadState* __tstate = wxPyBeginAllowThreads();
24780 result = ((wxTreeEvent const *)arg1)->GetItem();
24781
24782 wxPyEndAllowThreads(__tstate);
24783 if (PyErr_Occurred()) SWIG_fail;
24784 }
24785 {
24786 wxTreeItemId * resultptr;
24787 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24788 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24789 }
24790 return resultobj;
24791 fail:
24792 return NULL;
24793 }
24794
24795
24796 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
24797 PyObject *resultobj;
24798 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24799 wxTreeItemId *arg2 = 0 ;
24800 PyObject * obj0 = 0 ;
24801 PyObject * obj1 = 0 ;
24802 char *kwnames[] = {
24803 (char *) "self",(char *) "item", NULL
24804 };
24805
24806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
24807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24809 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24810 SWIG_POINTER_EXCEPTION | 0)) == -1)
24811 SWIG_fail;
24812 if (arg2 == NULL) {
24813 PyErr_SetString(PyExc_TypeError,"null reference");
24814 SWIG_fail;
24815 }
24816 {
24817 PyThreadState* __tstate = wxPyBeginAllowThreads();
24818 (arg1)->SetItem((wxTreeItemId const &)*arg2);
24819
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 Py_INCREF(Py_None); resultobj = Py_None;
24824 return resultobj;
24825 fail:
24826 return NULL;
24827 }
24828
24829
24830 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24831 PyObject *resultobj;
24832 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24833 wxTreeItemId result;
24834 PyObject * obj0 = 0 ;
24835 char *kwnames[] = {
24836 (char *) "self", NULL
24837 };
24838
24839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
24840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24842 {
24843 PyThreadState* __tstate = wxPyBeginAllowThreads();
24844 result = ((wxTreeEvent const *)arg1)->GetOldItem();
24845
24846 wxPyEndAllowThreads(__tstate);
24847 if (PyErr_Occurred()) SWIG_fail;
24848 }
24849 {
24850 wxTreeItemId * resultptr;
24851 resultptr = new wxTreeItemId((wxTreeItemId &) result);
24852 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
24853 }
24854 return resultobj;
24855 fail:
24856 return NULL;
24857 }
24858
24859
24860 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
24861 PyObject *resultobj;
24862 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24863 wxTreeItemId *arg2 = 0 ;
24864 PyObject * obj0 = 0 ;
24865 PyObject * obj1 = 0 ;
24866 char *kwnames[] = {
24867 (char *) "self",(char *) "item", NULL
24868 };
24869
24870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
24871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24873 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24874 SWIG_POINTER_EXCEPTION | 0)) == -1)
24875 SWIG_fail;
24876 if (arg2 == NULL) {
24877 PyErr_SetString(PyExc_TypeError,"null reference");
24878 SWIG_fail;
24879 }
24880 {
24881 PyThreadState* __tstate = wxPyBeginAllowThreads();
24882 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
24883
24884 wxPyEndAllowThreads(__tstate);
24885 if (PyErr_Occurred()) SWIG_fail;
24886 }
24887 Py_INCREF(Py_None); resultobj = Py_None;
24888 return resultobj;
24889 fail:
24890 return NULL;
24891 }
24892
24893
24894 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24895 PyObject *resultobj;
24896 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24897 wxPoint result;
24898 PyObject * obj0 = 0 ;
24899 char *kwnames[] = {
24900 (char *) "self", NULL
24901 };
24902
24903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
24904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24906 {
24907 PyThreadState* __tstate = wxPyBeginAllowThreads();
24908 result = ((wxTreeEvent const *)arg1)->GetPoint();
24909
24910 wxPyEndAllowThreads(__tstate);
24911 if (PyErr_Occurred()) SWIG_fail;
24912 }
24913 {
24914 wxPoint * resultptr;
24915 resultptr = new wxPoint((wxPoint &) result);
24916 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
24917 }
24918 return resultobj;
24919 fail:
24920 return NULL;
24921 }
24922
24923
24924 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
24925 PyObject *resultobj;
24926 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24927 wxPoint *arg2 = 0 ;
24928 wxPoint temp2 ;
24929 PyObject * obj0 = 0 ;
24930 PyObject * obj1 = 0 ;
24931 char *kwnames[] = {
24932 (char *) "self",(char *) "pt", NULL
24933 };
24934
24935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
24936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24938 {
24939 arg2 = &temp2;
24940 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
24941 }
24942 {
24943 PyThreadState* __tstate = wxPyBeginAllowThreads();
24944 (arg1)->SetPoint((wxPoint const &)*arg2);
24945
24946 wxPyEndAllowThreads(__tstate);
24947 if (PyErr_Occurred()) SWIG_fail;
24948 }
24949 Py_INCREF(Py_None); resultobj = Py_None;
24950 return resultobj;
24951 fail:
24952 return NULL;
24953 }
24954
24955
24956 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
24957 PyObject *resultobj;
24958 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24959 wxKeyEvent *result;
24960 PyObject * obj0 = 0 ;
24961 char *kwnames[] = {
24962 (char *) "self", NULL
24963 };
24964
24965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
24966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24968 {
24969 PyThreadState* __tstate = wxPyBeginAllowThreads();
24970 {
24971 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
24972 result = (wxKeyEvent *) &_result_ref;
24973 }
24974
24975 wxPyEndAllowThreads(__tstate);
24976 if (PyErr_Occurred()) SWIG_fail;
24977 }
24978 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
24979 return resultobj;
24980 fail:
24981 return NULL;
24982 }
24983
24984
24985 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
24986 PyObject *resultobj;
24987 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
24988 int result;
24989 PyObject * obj0 = 0 ;
24990 char *kwnames[] = {
24991 (char *) "self", NULL
24992 };
24993
24994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
24995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
24996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24997 {
24998 PyThreadState* __tstate = wxPyBeginAllowThreads();
24999 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25000
25001 wxPyEndAllowThreads(__tstate);
25002 if (PyErr_Occurred()) SWIG_fail;
25003 }
25004 resultobj = SWIG_From_int((int)result);
25005 return resultobj;
25006 fail:
25007 return NULL;
25008 }
25009
25010
25011 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25012 PyObject *resultobj;
25013 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25014 wxKeyEvent *arg2 = 0 ;
25015 PyObject * obj0 = 0 ;
25016 PyObject * obj1 = 0 ;
25017 char *kwnames[] = {
25018 (char *) "self",(char *) "evt", NULL
25019 };
25020
25021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25024 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25025 SWIG_POINTER_EXCEPTION | 0)) == -1)
25026 SWIG_fail;
25027 if (arg2 == NULL) {
25028 PyErr_SetString(PyExc_TypeError,"null reference");
25029 SWIG_fail;
25030 }
25031 {
25032 PyThreadState* __tstate = wxPyBeginAllowThreads();
25033 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25034
25035 wxPyEndAllowThreads(__tstate);
25036 if (PyErr_Occurred()) SWIG_fail;
25037 }
25038 Py_INCREF(Py_None); resultobj = Py_None;
25039 return resultobj;
25040 fail:
25041 return NULL;
25042 }
25043
25044
25045 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25046 PyObject *resultobj;
25047 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25048 wxString *result;
25049 PyObject * obj0 = 0 ;
25050 char *kwnames[] = {
25051 (char *) "self", NULL
25052 };
25053
25054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25057 {
25058 PyThreadState* __tstate = wxPyBeginAllowThreads();
25059 {
25060 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25061 result = (wxString *) &_result_ref;
25062 }
25063
25064 wxPyEndAllowThreads(__tstate);
25065 if (PyErr_Occurred()) SWIG_fail;
25066 }
25067 {
25068 #if wxUSE_UNICODE
25069 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25070 #else
25071 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25072 #endif
25073 }
25074 return resultobj;
25075 fail:
25076 return NULL;
25077 }
25078
25079
25080 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25081 PyObject *resultobj;
25082 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25083 wxString *arg2 = 0 ;
25084 bool temp2 = False ;
25085 PyObject * obj0 = 0 ;
25086 PyObject * obj1 = 0 ;
25087 char *kwnames[] = {
25088 (char *) "self",(char *) "label", NULL
25089 };
25090
25091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25094 {
25095 arg2 = wxString_in_helper(obj1);
25096 if (arg2 == NULL) SWIG_fail;
25097 temp2 = True;
25098 }
25099 {
25100 PyThreadState* __tstate = wxPyBeginAllowThreads();
25101 (arg1)->SetLabel((wxString const &)*arg2);
25102
25103 wxPyEndAllowThreads(__tstate);
25104 if (PyErr_Occurred()) SWIG_fail;
25105 }
25106 Py_INCREF(Py_None); resultobj = Py_None;
25107 {
25108 if (temp2)
25109 delete arg2;
25110 }
25111 return resultobj;
25112 fail:
25113 {
25114 if (temp2)
25115 delete arg2;
25116 }
25117 return NULL;
25118 }
25119
25120
25121 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25122 PyObject *resultobj;
25123 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25124 bool result;
25125 PyObject * obj0 = 0 ;
25126 char *kwnames[] = {
25127 (char *) "self", NULL
25128 };
25129
25130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25133 {
25134 PyThreadState* __tstate = wxPyBeginAllowThreads();
25135 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25136
25137 wxPyEndAllowThreads(__tstate);
25138 if (PyErr_Occurred()) SWIG_fail;
25139 }
25140 {
25141 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25142 }
25143 return resultobj;
25144 fail:
25145 return NULL;
25146 }
25147
25148
25149 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25150 PyObject *resultobj;
25151 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25152 bool arg2 ;
25153 PyObject * obj0 = 0 ;
25154 PyObject * obj1 = 0 ;
25155 char *kwnames[] = {
25156 (char *) "self",(char *) "editCancelled", NULL
25157 };
25158
25159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25162 arg2 = (bool)SWIG_As_bool(obj1);
25163 if (PyErr_Occurred()) SWIG_fail;
25164 {
25165 PyThreadState* __tstate = wxPyBeginAllowThreads();
25166 (arg1)->SetEditCanceled(arg2);
25167
25168 wxPyEndAllowThreads(__tstate);
25169 if (PyErr_Occurred()) SWIG_fail;
25170 }
25171 Py_INCREF(Py_None); resultobj = Py_None;
25172 return resultobj;
25173 fail:
25174 return NULL;
25175 }
25176
25177
25178 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25179 PyObject *resultobj;
25180 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25181 wxString *arg2 = 0 ;
25182 bool temp2 = False ;
25183 PyObject * obj0 = 0 ;
25184 PyObject * obj1 = 0 ;
25185 char *kwnames[] = {
25186 (char *) "self",(char *) "toolTip", NULL
25187 };
25188
25189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25192 {
25193 arg2 = wxString_in_helper(obj1);
25194 if (arg2 == NULL) SWIG_fail;
25195 temp2 = True;
25196 }
25197 {
25198 PyThreadState* __tstate = wxPyBeginAllowThreads();
25199 (arg1)->SetToolTip((wxString const &)*arg2);
25200
25201 wxPyEndAllowThreads(__tstate);
25202 if (PyErr_Occurred()) SWIG_fail;
25203 }
25204 Py_INCREF(Py_None); resultobj = Py_None;
25205 {
25206 if (temp2)
25207 delete arg2;
25208 }
25209 return resultobj;
25210 fail:
25211 {
25212 if (temp2)
25213 delete arg2;
25214 }
25215 return NULL;
25216 }
25217
25218
25219 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25220 PyObject *obj;
25221 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25222 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25223 Py_INCREF(obj);
25224 return Py_BuildValue((char *)"");
25225 }
25226 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25227 PyObject *resultobj;
25228 wxWindow *arg1 = (wxWindow *) 0 ;
25229 int arg2 = (int) -1 ;
25230 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25231 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25232 wxSize const &arg4_defvalue = wxDefaultSize ;
25233 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25234 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25235 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25236 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25237 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25238 wxString *arg7 = (wxString *) &arg7_defvalue ;
25239 wxPyTreeCtrl *result;
25240 wxPoint temp3 ;
25241 wxSize temp4 ;
25242 bool temp7 = False ;
25243 PyObject * obj0 = 0 ;
25244 PyObject * obj1 = 0 ;
25245 PyObject * obj2 = 0 ;
25246 PyObject * obj3 = 0 ;
25247 PyObject * obj4 = 0 ;
25248 PyObject * obj5 = 0 ;
25249 PyObject * obj6 = 0 ;
25250 char *kwnames[] = {
25251 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25252 };
25253
25254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25257 if (obj1) {
25258 arg2 = (int)SWIG_As_int(obj1);
25259 if (PyErr_Occurred()) SWIG_fail;
25260 }
25261 if (obj2) {
25262 {
25263 arg3 = &temp3;
25264 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25265 }
25266 }
25267 if (obj3) {
25268 {
25269 arg4 = &temp4;
25270 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25271 }
25272 }
25273 if (obj4) {
25274 arg5 = (long)SWIG_As_long(obj4);
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 if (obj5) {
25278 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25279 SWIG_POINTER_EXCEPTION | 0)) == -1)
25280 SWIG_fail;
25281 if (arg6 == NULL) {
25282 PyErr_SetString(PyExc_TypeError,"null reference");
25283 SWIG_fail;
25284 }
25285 }
25286 if (obj6) {
25287 {
25288 arg7 = wxString_in_helper(obj6);
25289 if (arg7 == NULL) SWIG_fail;
25290 temp7 = True;
25291 }
25292 }
25293 {
25294 if (!wxPyCheckForApp()) SWIG_fail;
25295 PyThreadState* __tstate = wxPyBeginAllowThreads();
25296 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25297
25298 wxPyEndAllowThreads(__tstate);
25299 if (PyErr_Occurred()) SWIG_fail;
25300 }
25301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25302 {
25303 if (temp7)
25304 delete arg7;
25305 }
25306 return resultobj;
25307 fail:
25308 {
25309 if (temp7)
25310 delete arg7;
25311 }
25312 return NULL;
25313 }
25314
25315
25316 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25317 PyObject *resultobj;
25318 wxPyTreeCtrl *result;
25319 char *kwnames[] = {
25320 NULL
25321 };
25322
25323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25324 {
25325 if (!wxPyCheckForApp()) SWIG_fail;
25326 PyThreadState* __tstate = wxPyBeginAllowThreads();
25327 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25328
25329 wxPyEndAllowThreads(__tstate);
25330 if (PyErr_Occurred()) SWIG_fail;
25331 }
25332 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25333 return resultobj;
25334 fail:
25335 return NULL;
25336 }
25337
25338
25339 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25340 PyObject *resultobj;
25341 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25342 wxWindow *arg2 = (wxWindow *) 0 ;
25343 int arg3 = (int) -1 ;
25344 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25345 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25346 wxSize const &arg5_defvalue = wxDefaultSize ;
25347 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25348 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25349 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25350 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25351 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25352 wxString *arg8 = (wxString *) &arg8_defvalue ;
25353 bool result;
25354 wxPoint temp4 ;
25355 wxSize temp5 ;
25356 bool temp8 = False ;
25357 PyObject * obj0 = 0 ;
25358 PyObject * obj1 = 0 ;
25359 PyObject * obj2 = 0 ;
25360 PyObject * obj3 = 0 ;
25361 PyObject * obj4 = 0 ;
25362 PyObject * obj5 = 0 ;
25363 PyObject * obj6 = 0 ;
25364 PyObject * obj7 = 0 ;
25365 char *kwnames[] = {
25366 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25367 };
25368
25369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25374 if (obj2) {
25375 arg3 = (int)SWIG_As_int(obj2);
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 if (obj3) {
25379 {
25380 arg4 = &temp4;
25381 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25382 }
25383 }
25384 if (obj4) {
25385 {
25386 arg5 = &temp5;
25387 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25388 }
25389 }
25390 if (obj5) {
25391 arg6 = (long)SWIG_As_long(obj5);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 if (obj6) {
25395 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25396 SWIG_POINTER_EXCEPTION | 0)) == -1)
25397 SWIG_fail;
25398 if (arg7 == NULL) {
25399 PyErr_SetString(PyExc_TypeError,"null reference");
25400 SWIG_fail;
25401 }
25402 }
25403 if (obj7) {
25404 {
25405 arg8 = wxString_in_helper(obj7);
25406 if (arg8 == NULL) SWIG_fail;
25407 temp8 = True;
25408 }
25409 }
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25413
25414 wxPyEndAllowThreads(__tstate);
25415 if (PyErr_Occurred()) SWIG_fail;
25416 }
25417 {
25418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25419 }
25420 {
25421 if (temp8)
25422 delete arg8;
25423 }
25424 return resultobj;
25425 fail:
25426 {
25427 if (temp8)
25428 delete arg8;
25429 }
25430 return NULL;
25431 }
25432
25433
25434 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25435 PyObject *resultobj;
25436 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25437 PyObject *arg2 = (PyObject *) 0 ;
25438 PyObject *arg3 = (PyObject *) 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 PyObject * obj2 = 0 ;
25442 char *kwnames[] = {
25443 (char *) "self",(char *) "self",(char *) "_class", NULL
25444 };
25445
25446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25449 arg2 = obj1;
25450 arg3 = obj2;
25451 {
25452 PyThreadState* __tstate = wxPyBeginAllowThreads();
25453 (arg1)->_setCallbackInfo(arg2,arg3);
25454
25455 wxPyEndAllowThreads(__tstate);
25456 if (PyErr_Occurred()) SWIG_fail;
25457 }
25458 Py_INCREF(Py_None); resultobj = Py_None;
25459 return resultobj;
25460 fail:
25461 return NULL;
25462 }
25463
25464
25465 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25466 PyObject *resultobj;
25467 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25468 size_t result;
25469 PyObject * obj0 = 0 ;
25470 char *kwnames[] = {
25471 (char *) "self", NULL
25472 };
25473
25474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25477 {
25478 PyThreadState* __tstate = wxPyBeginAllowThreads();
25479 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25480
25481 wxPyEndAllowThreads(__tstate);
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25485 return resultobj;
25486 fail:
25487 return NULL;
25488 }
25489
25490
25491 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25492 PyObject *resultobj;
25493 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25494 unsigned int result;
25495 PyObject * obj0 = 0 ;
25496 char *kwnames[] = {
25497 (char *) "self", NULL
25498 };
25499
25500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25503 {
25504 PyThreadState* __tstate = wxPyBeginAllowThreads();
25505 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25506
25507 wxPyEndAllowThreads(__tstate);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25511 return resultobj;
25512 fail:
25513 return NULL;
25514 }
25515
25516
25517 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25518 PyObject *resultobj;
25519 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25520 unsigned int arg2 ;
25521 PyObject * obj0 = 0 ;
25522 PyObject * obj1 = 0 ;
25523 char *kwnames[] = {
25524 (char *) "self",(char *) "indent", NULL
25525 };
25526
25527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25530 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25531 if (PyErr_Occurred()) SWIG_fail;
25532 {
25533 PyThreadState* __tstate = wxPyBeginAllowThreads();
25534 (arg1)->SetIndent(arg2);
25535
25536 wxPyEndAllowThreads(__tstate);
25537 if (PyErr_Occurred()) SWIG_fail;
25538 }
25539 Py_INCREF(Py_None); resultobj = Py_None;
25540 return resultobj;
25541 fail:
25542 return NULL;
25543 }
25544
25545
25546 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25547 PyObject *resultobj;
25548 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25549 unsigned int result;
25550 PyObject * obj0 = 0 ;
25551 char *kwnames[] = {
25552 (char *) "self", NULL
25553 };
25554
25555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25558 {
25559 PyThreadState* __tstate = wxPyBeginAllowThreads();
25560 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25561
25562 wxPyEndAllowThreads(__tstate);
25563 if (PyErr_Occurred()) SWIG_fail;
25564 }
25565 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25566 return resultobj;
25567 fail:
25568 return NULL;
25569 }
25570
25571
25572 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25573 PyObject *resultobj;
25574 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25575 unsigned int arg2 ;
25576 PyObject * obj0 = 0 ;
25577 PyObject * obj1 = 0 ;
25578 char *kwnames[] = {
25579 (char *) "self",(char *) "spacing", NULL
25580 };
25581
25582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25585 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 {
25588 PyThreadState* __tstate = wxPyBeginAllowThreads();
25589 (arg1)->SetSpacing(arg2);
25590
25591 wxPyEndAllowThreads(__tstate);
25592 if (PyErr_Occurred()) SWIG_fail;
25593 }
25594 Py_INCREF(Py_None); resultobj = Py_None;
25595 return resultobj;
25596 fail:
25597 return NULL;
25598 }
25599
25600
25601 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25602 PyObject *resultobj;
25603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25604 wxImageList *result;
25605 PyObject * obj0 = 0 ;
25606 char *kwnames[] = {
25607 (char *) "self", NULL
25608 };
25609
25610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25613 {
25614 PyThreadState* __tstate = wxPyBeginAllowThreads();
25615 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25616
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 {
25621 resultobj = wxPyMake_wxObject(result, 0);
25622 }
25623 return resultobj;
25624 fail:
25625 return NULL;
25626 }
25627
25628
25629 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25630 PyObject *resultobj;
25631 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25632 wxImageList *result;
25633 PyObject * obj0 = 0 ;
25634 char *kwnames[] = {
25635 (char *) "self", NULL
25636 };
25637
25638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25641 {
25642 PyThreadState* __tstate = wxPyBeginAllowThreads();
25643 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25644
25645 wxPyEndAllowThreads(__tstate);
25646 if (PyErr_Occurred()) SWIG_fail;
25647 }
25648 {
25649 resultobj = wxPyMake_wxObject(result, 0);
25650 }
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25658 PyObject *resultobj;
25659 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25660 wxImageList *arg2 = (wxImageList *) 0 ;
25661 PyObject * obj0 = 0 ;
25662 PyObject * obj1 = 0 ;
25663 char *kwnames[] = {
25664 (char *) "self",(char *) "imageList", NULL
25665 };
25666
25667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25670 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25672 {
25673 PyThreadState* __tstate = wxPyBeginAllowThreads();
25674 (arg1)->SetImageList(arg2);
25675
25676 wxPyEndAllowThreads(__tstate);
25677 if (PyErr_Occurred()) SWIG_fail;
25678 }
25679 Py_INCREF(Py_None); resultobj = Py_None;
25680 return resultobj;
25681 fail:
25682 return NULL;
25683 }
25684
25685
25686 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25687 PyObject *resultobj;
25688 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25689 wxImageList *arg2 = (wxImageList *) 0 ;
25690 PyObject * obj0 = 0 ;
25691 PyObject * obj1 = 0 ;
25692 char *kwnames[] = {
25693 (char *) "self",(char *) "imageList", NULL
25694 };
25695
25696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25699 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25701 {
25702 PyThreadState* __tstate = wxPyBeginAllowThreads();
25703 (arg1)->SetStateImageList(arg2);
25704
25705 wxPyEndAllowThreads(__tstate);
25706 if (PyErr_Occurred()) SWIG_fail;
25707 }
25708 Py_INCREF(Py_None); resultobj = Py_None;
25709 return resultobj;
25710 fail:
25711 return NULL;
25712 }
25713
25714
25715 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25716 PyObject *resultobj;
25717 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25718 wxImageList *arg2 = (wxImageList *) 0 ;
25719 PyObject * obj0 = 0 ;
25720 PyObject * obj1 = 0 ;
25721 char *kwnames[] = {
25722 (char *) "self",(char *) "imageList", NULL
25723 };
25724
25725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
25726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25728 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25729 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25730 {
25731 PyThreadState* __tstate = wxPyBeginAllowThreads();
25732 (arg1)->AssignImageList(arg2);
25733
25734 wxPyEndAllowThreads(__tstate);
25735 if (PyErr_Occurred()) SWIG_fail;
25736 }
25737 Py_INCREF(Py_None); resultobj = Py_None;
25738 return resultobj;
25739 fail:
25740 return NULL;
25741 }
25742
25743
25744 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25745 PyObject *resultobj;
25746 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25747 wxImageList *arg2 = (wxImageList *) 0 ;
25748 PyObject * obj0 = 0 ;
25749 PyObject * obj1 = 0 ;
25750 char *kwnames[] = {
25751 (char *) "self",(char *) "imageList", NULL
25752 };
25753
25754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
25755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25758 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
25759 {
25760 PyThreadState* __tstate = wxPyBeginAllowThreads();
25761 (arg1)->AssignStateImageList(arg2);
25762
25763 wxPyEndAllowThreads(__tstate);
25764 if (PyErr_Occurred()) SWIG_fail;
25765 }
25766 Py_INCREF(Py_None); resultobj = Py_None;
25767 return resultobj;
25768 fail:
25769 return NULL;
25770 }
25771
25772
25773 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
25774 PyObject *resultobj;
25775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25776 wxTreeItemId *arg2 = 0 ;
25777 wxString result;
25778 PyObject * obj0 = 0 ;
25779 PyObject * obj1 = 0 ;
25780 char *kwnames[] = {
25781 (char *) "self",(char *) "item", NULL
25782 };
25783
25784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
25785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25787 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25788 SWIG_POINTER_EXCEPTION | 0)) == -1)
25789 SWIG_fail;
25790 if (arg2 == NULL) {
25791 PyErr_SetString(PyExc_TypeError,"null reference");
25792 SWIG_fail;
25793 }
25794 {
25795 PyThreadState* __tstate = wxPyBeginAllowThreads();
25796 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
25797
25798 wxPyEndAllowThreads(__tstate);
25799 if (PyErr_Occurred()) SWIG_fail;
25800 }
25801 {
25802 #if wxUSE_UNICODE
25803 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25804 #else
25805 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25806 #endif
25807 }
25808 return resultobj;
25809 fail:
25810 return NULL;
25811 }
25812
25813
25814 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
25815 PyObject *resultobj;
25816 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25817 wxTreeItemId *arg2 = 0 ;
25818 int arg3 = (int) wxTreeItemIcon_Normal ;
25819 int result;
25820 PyObject * obj0 = 0 ;
25821 PyObject * obj1 = 0 ;
25822 PyObject * obj2 = 0 ;
25823 char *kwnames[] = {
25824 (char *) "self",(char *) "item",(char *) "which", NULL
25825 };
25826
25827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
25828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25830 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25831 SWIG_POINTER_EXCEPTION | 0)) == -1)
25832 SWIG_fail;
25833 if (arg2 == NULL) {
25834 PyErr_SetString(PyExc_TypeError,"null reference");
25835 SWIG_fail;
25836 }
25837 if (obj2) {
25838 arg3 = (int)SWIG_As_int(obj2);
25839 if (PyErr_Occurred()) SWIG_fail;
25840 }
25841 {
25842 PyThreadState* __tstate = wxPyBeginAllowThreads();
25843 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
25844
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_From_int((int)result);
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
25856 PyObject *resultobj;
25857 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25858 wxTreeItemId *arg2 = 0 ;
25859 wxPyTreeItemData *result;
25860 PyObject * obj0 = 0 ;
25861 PyObject * obj1 = 0 ;
25862 char *kwnames[] = {
25863 (char *) "self",(char *) "item", NULL
25864 };
25865
25866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
25867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25869 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25870 SWIG_POINTER_EXCEPTION | 0)) == -1)
25871 SWIG_fail;
25872 if (arg2 == NULL) {
25873 PyErr_SetString(PyExc_TypeError,"null reference");
25874 SWIG_fail;
25875 }
25876 {
25877 PyThreadState* __tstate = wxPyBeginAllowThreads();
25878 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
25879
25880 wxPyEndAllowThreads(__tstate);
25881 if (PyErr_Occurred()) SWIG_fail;
25882 }
25883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
25884 return resultobj;
25885 fail:
25886 return NULL;
25887 }
25888
25889
25890 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
25891 PyObject *resultobj;
25892 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25893 wxTreeItemId *arg2 = 0 ;
25894 PyObject *result;
25895 PyObject * obj0 = 0 ;
25896 PyObject * obj1 = 0 ;
25897 char *kwnames[] = {
25898 (char *) "self",(char *) "item", NULL
25899 };
25900
25901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
25902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25904 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25905 SWIG_POINTER_EXCEPTION | 0)) == -1)
25906 SWIG_fail;
25907 if (arg2 == NULL) {
25908 PyErr_SetString(PyExc_TypeError,"null reference");
25909 SWIG_fail;
25910 }
25911 {
25912 PyThreadState* __tstate = wxPyBeginAllowThreads();
25913 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
25914
25915 wxPyEndAllowThreads(__tstate);
25916 if (PyErr_Occurred()) SWIG_fail;
25917 }
25918 resultobj = result;
25919 return resultobj;
25920 fail:
25921 return NULL;
25922 }
25923
25924
25925 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
25926 PyObject *resultobj;
25927 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25928 wxTreeItemId *arg2 = 0 ;
25929 wxColour result;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 char *kwnames[] = {
25933 (char *) "self",(char *) "item", NULL
25934 };
25935
25936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
25937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25939 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25940 SWIG_POINTER_EXCEPTION | 0)) == -1)
25941 SWIG_fail;
25942 if (arg2 == NULL) {
25943 PyErr_SetString(PyExc_TypeError,"null reference");
25944 SWIG_fail;
25945 }
25946 {
25947 PyThreadState* __tstate = wxPyBeginAllowThreads();
25948 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
25949
25950 wxPyEndAllowThreads(__tstate);
25951 if (PyErr_Occurred()) SWIG_fail;
25952 }
25953 {
25954 wxColour * resultptr;
25955 resultptr = new wxColour((wxColour &) result);
25956 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25957 }
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
25965 PyObject *resultobj;
25966 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25967 wxTreeItemId *arg2 = 0 ;
25968 wxColour result;
25969 PyObject * obj0 = 0 ;
25970 PyObject * obj1 = 0 ;
25971 char *kwnames[] = {
25972 (char *) "self",(char *) "item", NULL
25973 };
25974
25975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
25976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25979 SWIG_POINTER_EXCEPTION | 0)) == -1)
25980 SWIG_fail;
25981 if (arg2 == NULL) {
25982 PyErr_SetString(PyExc_TypeError,"null reference");
25983 SWIG_fail;
25984 }
25985 {
25986 PyThreadState* __tstate = wxPyBeginAllowThreads();
25987 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
25988
25989 wxPyEndAllowThreads(__tstate);
25990 if (PyErr_Occurred()) SWIG_fail;
25991 }
25992 {
25993 wxColour * resultptr;
25994 resultptr = new wxColour((wxColour &) result);
25995 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
25996 }
25997 return resultobj;
25998 fail:
25999 return NULL;
26000 }
26001
26002
26003 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26004 PyObject *resultobj;
26005 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26006 wxTreeItemId *arg2 = 0 ;
26007 wxFont result;
26008 PyObject * obj0 = 0 ;
26009 PyObject * obj1 = 0 ;
26010 char *kwnames[] = {
26011 (char *) "self",(char *) "item", NULL
26012 };
26013
26014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26017 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26018 SWIG_POINTER_EXCEPTION | 0)) == -1)
26019 SWIG_fail;
26020 if (arg2 == NULL) {
26021 PyErr_SetString(PyExc_TypeError,"null reference");
26022 SWIG_fail;
26023 }
26024 {
26025 PyThreadState* __tstate = wxPyBeginAllowThreads();
26026 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26027
26028 wxPyEndAllowThreads(__tstate);
26029 if (PyErr_Occurred()) SWIG_fail;
26030 }
26031 {
26032 wxFont * resultptr;
26033 resultptr = new wxFont((wxFont &) result);
26034 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26035 }
26036 return resultobj;
26037 fail:
26038 return NULL;
26039 }
26040
26041
26042 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26043 PyObject *resultobj;
26044 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26045 wxTreeItemId *arg2 = 0 ;
26046 wxString *arg3 = 0 ;
26047 bool temp3 = False ;
26048 PyObject * obj0 = 0 ;
26049 PyObject * obj1 = 0 ;
26050 PyObject * obj2 = 0 ;
26051 char *kwnames[] = {
26052 (char *) "self",(char *) "item",(char *) "text", NULL
26053 };
26054
26055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26059 SWIG_POINTER_EXCEPTION | 0)) == -1)
26060 SWIG_fail;
26061 if (arg2 == NULL) {
26062 PyErr_SetString(PyExc_TypeError,"null reference");
26063 SWIG_fail;
26064 }
26065 {
26066 arg3 = wxString_in_helper(obj2);
26067 if (arg3 == NULL) SWIG_fail;
26068 temp3 = True;
26069 }
26070 {
26071 PyThreadState* __tstate = wxPyBeginAllowThreads();
26072 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26073
26074 wxPyEndAllowThreads(__tstate);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 Py_INCREF(Py_None); resultobj = Py_None;
26078 {
26079 if (temp3)
26080 delete arg3;
26081 }
26082 return resultobj;
26083 fail:
26084 {
26085 if (temp3)
26086 delete arg3;
26087 }
26088 return NULL;
26089 }
26090
26091
26092 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26093 PyObject *resultobj;
26094 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26095 wxTreeItemId *arg2 = 0 ;
26096 int arg3 ;
26097 int arg4 = (int) wxTreeItemIcon_Normal ;
26098 PyObject * obj0 = 0 ;
26099 PyObject * obj1 = 0 ;
26100 PyObject * obj2 = 0 ;
26101 PyObject * obj3 = 0 ;
26102 char *kwnames[] = {
26103 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26104 };
26105
26106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26109 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26110 SWIG_POINTER_EXCEPTION | 0)) == -1)
26111 SWIG_fail;
26112 if (arg2 == NULL) {
26113 PyErr_SetString(PyExc_TypeError,"null reference");
26114 SWIG_fail;
26115 }
26116 arg3 = (int)SWIG_As_int(obj2);
26117 if (PyErr_Occurred()) SWIG_fail;
26118 if (obj3) {
26119 arg4 = (int)SWIG_As_int(obj3);
26120 if (PyErr_Occurred()) SWIG_fail;
26121 }
26122 {
26123 PyThreadState* __tstate = wxPyBeginAllowThreads();
26124 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26125
26126 wxPyEndAllowThreads(__tstate);
26127 if (PyErr_Occurred()) SWIG_fail;
26128 }
26129 Py_INCREF(Py_None); resultobj = Py_None;
26130 return resultobj;
26131 fail:
26132 return NULL;
26133 }
26134
26135
26136 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26137 PyObject *resultobj;
26138 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26139 wxTreeItemId *arg2 = 0 ;
26140 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26141 PyObject * obj0 = 0 ;
26142 PyObject * obj1 = 0 ;
26143 PyObject * obj2 = 0 ;
26144 char *kwnames[] = {
26145 (char *) "self",(char *) "item",(char *) "data", NULL
26146 };
26147
26148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) 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_wxTreeItemId,
26152 SWIG_POINTER_EXCEPTION | 0)) == -1)
26153 SWIG_fail;
26154 if (arg2 == NULL) {
26155 PyErr_SetString(PyExc_TypeError,"null reference");
26156 SWIG_fail;
26157 }
26158 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26160 {
26161 PyThreadState* __tstate = wxPyBeginAllowThreads();
26162 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26163
26164 wxPyEndAllowThreads(__tstate);
26165 if (PyErr_Occurred()) SWIG_fail;
26166 }
26167 Py_INCREF(Py_None); resultobj = Py_None;
26168 return resultobj;
26169 fail:
26170 return NULL;
26171 }
26172
26173
26174 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26175 PyObject *resultobj;
26176 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26177 wxTreeItemId *arg2 = 0 ;
26178 PyObject *arg3 = (PyObject *) 0 ;
26179 PyObject * obj0 = 0 ;
26180 PyObject * obj1 = 0 ;
26181 PyObject * obj2 = 0 ;
26182 char *kwnames[] = {
26183 (char *) "self",(char *) "item",(char *) "obj", NULL
26184 };
26185
26186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26190 SWIG_POINTER_EXCEPTION | 0)) == -1)
26191 SWIG_fail;
26192 if (arg2 == NULL) {
26193 PyErr_SetString(PyExc_TypeError,"null reference");
26194 SWIG_fail;
26195 }
26196 arg3 = obj2;
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26200
26201 wxPyEndAllowThreads(__tstate);
26202 if (PyErr_Occurred()) SWIG_fail;
26203 }
26204 Py_INCREF(Py_None); resultobj = Py_None;
26205 return resultobj;
26206 fail:
26207 return NULL;
26208 }
26209
26210
26211 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26212 PyObject *resultobj;
26213 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26214 wxTreeItemId *arg2 = 0 ;
26215 bool arg3 = (bool) True ;
26216 PyObject * obj0 = 0 ;
26217 PyObject * obj1 = 0 ;
26218 PyObject * obj2 = 0 ;
26219 char *kwnames[] = {
26220 (char *) "self",(char *) "item",(char *) "has", NULL
26221 };
26222
26223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26226 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26227 SWIG_POINTER_EXCEPTION | 0)) == -1)
26228 SWIG_fail;
26229 if (arg2 == NULL) {
26230 PyErr_SetString(PyExc_TypeError,"null reference");
26231 SWIG_fail;
26232 }
26233 if (obj2) {
26234 arg3 = (bool)SWIG_As_bool(obj2);
26235 if (PyErr_Occurred()) SWIG_fail;
26236 }
26237 {
26238 PyThreadState* __tstate = wxPyBeginAllowThreads();
26239 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26240
26241 wxPyEndAllowThreads(__tstate);
26242 if (PyErr_Occurred()) SWIG_fail;
26243 }
26244 Py_INCREF(Py_None); resultobj = Py_None;
26245 return resultobj;
26246 fail:
26247 return NULL;
26248 }
26249
26250
26251 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26252 PyObject *resultobj;
26253 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26254 wxTreeItemId *arg2 = 0 ;
26255 bool arg3 = (bool) True ;
26256 PyObject * obj0 = 0 ;
26257 PyObject * obj1 = 0 ;
26258 PyObject * obj2 = 0 ;
26259 char *kwnames[] = {
26260 (char *) "self",(char *) "item",(char *) "bold", NULL
26261 };
26262
26263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26266 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26267 SWIG_POINTER_EXCEPTION | 0)) == -1)
26268 SWIG_fail;
26269 if (arg2 == NULL) {
26270 PyErr_SetString(PyExc_TypeError,"null reference");
26271 SWIG_fail;
26272 }
26273 if (obj2) {
26274 arg3 = (bool)SWIG_As_bool(obj2);
26275 if (PyErr_Occurred()) SWIG_fail;
26276 }
26277 {
26278 PyThreadState* __tstate = wxPyBeginAllowThreads();
26279 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26280
26281 wxPyEndAllowThreads(__tstate);
26282 if (PyErr_Occurred()) SWIG_fail;
26283 }
26284 Py_INCREF(Py_None); resultobj = Py_None;
26285 return resultobj;
26286 fail:
26287 return NULL;
26288 }
26289
26290
26291 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) {
26292 PyObject *resultobj;
26293 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26294 wxTreeItemId *arg2 = 0 ;
26295 bool arg3 = (bool) True ;
26296 PyObject * obj0 = 0 ;
26297 PyObject * obj1 = 0 ;
26298 PyObject * obj2 = 0 ;
26299 char *kwnames[] = {
26300 (char *) "self",(char *) "item",(char *) "highlight", NULL
26301 };
26302
26303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
26304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26306 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26307 SWIG_POINTER_EXCEPTION | 0)) == -1)
26308 SWIG_fail;
26309 if (arg2 == NULL) {
26310 PyErr_SetString(PyExc_TypeError,"null reference");
26311 SWIG_fail;
26312 }
26313 if (obj2) {
26314 arg3 = (bool)SWIG_As_bool(obj2);
26315 if (PyErr_Occurred()) SWIG_fail;
26316 }
26317 {
26318 PyThreadState* __tstate = wxPyBeginAllowThreads();
26319 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26320
26321 wxPyEndAllowThreads(__tstate);
26322 if (PyErr_Occurred()) SWIG_fail;
26323 }
26324 Py_INCREF(Py_None); resultobj = Py_None;
26325 return resultobj;
26326 fail:
26327 return NULL;
26328 }
26329
26330
26331 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26332 PyObject *resultobj;
26333 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26334 wxTreeItemId *arg2 = 0 ;
26335 wxColour *arg3 = 0 ;
26336 wxColour temp3 ;
26337 PyObject * obj0 = 0 ;
26338 PyObject * obj1 = 0 ;
26339 PyObject * obj2 = 0 ;
26340 char *kwnames[] = {
26341 (char *) "self",(char *) "item",(char *) "col", NULL
26342 };
26343
26344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26348 SWIG_POINTER_EXCEPTION | 0)) == -1)
26349 SWIG_fail;
26350 if (arg2 == NULL) {
26351 PyErr_SetString(PyExc_TypeError,"null reference");
26352 SWIG_fail;
26353 }
26354 {
26355 arg3 = &temp3;
26356 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26357 }
26358 {
26359 PyThreadState* __tstate = wxPyBeginAllowThreads();
26360 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26361
26362 wxPyEndAllowThreads(__tstate);
26363 if (PyErr_Occurred()) SWIG_fail;
26364 }
26365 Py_INCREF(Py_None); resultobj = Py_None;
26366 return resultobj;
26367 fail:
26368 return NULL;
26369 }
26370
26371
26372 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26373 PyObject *resultobj;
26374 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26375 wxTreeItemId *arg2 = 0 ;
26376 wxColour *arg3 = 0 ;
26377 wxColour temp3 ;
26378 PyObject * obj0 = 0 ;
26379 PyObject * obj1 = 0 ;
26380 PyObject * obj2 = 0 ;
26381 char *kwnames[] = {
26382 (char *) "self",(char *) "item",(char *) "col", NULL
26383 };
26384
26385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26388 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26389 SWIG_POINTER_EXCEPTION | 0)) == -1)
26390 SWIG_fail;
26391 if (arg2 == NULL) {
26392 PyErr_SetString(PyExc_TypeError,"null reference");
26393 SWIG_fail;
26394 }
26395 {
26396 arg3 = &temp3;
26397 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26398 }
26399 {
26400 PyThreadState* __tstate = wxPyBeginAllowThreads();
26401 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26402
26403 wxPyEndAllowThreads(__tstate);
26404 if (PyErr_Occurred()) SWIG_fail;
26405 }
26406 Py_INCREF(Py_None); resultobj = Py_None;
26407 return resultobj;
26408 fail:
26409 return NULL;
26410 }
26411
26412
26413 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26414 PyObject *resultobj;
26415 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26416 wxTreeItemId *arg2 = 0 ;
26417 wxFont *arg3 = 0 ;
26418 PyObject * obj0 = 0 ;
26419 PyObject * obj1 = 0 ;
26420 PyObject * obj2 = 0 ;
26421 char *kwnames[] = {
26422 (char *) "self",(char *) "item",(char *) "font", NULL
26423 };
26424
26425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26429 SWIG_POINTER_EXCEPTION | 0)) == -1)
26430 SWIG_fail;
26431 if (arg2 == NULL) {
26432 PyErr_SetString(PyExc_TypeError,"null reference");
26433 SWIG_fail;
26434 }
26435 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26436 SWIG_POINTER_EXCEPTION | 0)) == -1)
26437 SWIG_fail;
26438 if (arg3 == NULL) {
26439 PyErr_SetString(PyExc_TypeError,"null reference");
26440 SWIG_fail;
26441 }
26442 {
26443 PyThreadState* __tstate = wxPyBeginAllowThreads();
26444 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26445
26446 wxPyEndAllowThreads(__tstate);
26447 if (PyErr_Occurred()) SWIG_fail;
26448 }
26449 Py_INCREF(Py_None); resultobj = Py_None;
26450 return resultobj;
26451 fail:
26452 return NULL;
26453 }
26454
26455
26456 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26457 PyObject *resultobj;
26458 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26459 wxTreeItemId *arg2 = 0 ;
26460 bool result;
26461 PyObject * obj0 = 0 ;
26462 PyObject * obj1 = 0 ;
26463 char *kwnames[] = {
26464 (char *) "self",(char *) "item", NULL
26465 };
26466
26467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26471 SWIG_POINTER_EXCEPTION | 0)) == -1)
26472 SWIG_fail;
26473 if (arg2 == NULL) {
26474 PyErr_SetString(PyExc_TypeError,"null reference");
26475 SWIG_fail;
26476 }
26477 {
26478 PyThreadState* __tstate = wxPyBeginAllowThreads();
26479 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26480
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 {
26485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26486 }
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj;
26495 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26496 wxTreeItemId *arg2 = 0 ;
26497 bool result;
26498 PyObject * obj0 = 0 ;
26499 PyObject * obj1 = 0 ;
26500 char *kwnames[] = {
26501 (char *) "self",(char *) "item", NULL
26502 };
26503
26504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26508 SWIG_POINTER_EXCEPTION | 0)) == -1)
26509 SWIG_fail;
26510 if (arg2 == NULL) {
26511 PyErr_SetString(PyExc_TypeError,"null reference");
26512 SWIG_fail;
26513 }
26514 {
26515 PyThreadState* __tstate = wxPyBeginAllowThreads();
26516 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26517
26518 wxPyEndAllowThreads(__tstate);
26519 if (PyErr_Occurred()) SWIG_fail;
26520 }
26521 {
26522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26523 }
26524 return resultobj;
26525 fail:
26526 return NULL;
26527 }
26528
26529
26530 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26531 PyObject *resultobj;
26532 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26533 wxTreeItemId *arg2 = 0 ;
26534 bool result;
26535 PyObject * obj0 = 0 ;
26536 PyObject * obj1 = 0 ;
26537 char *kwnames[] = {
26538 (char *) "self",(char *) "item", NULL
26539 };
26540
26541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26545 SWIG_POINTER_EXCEPTION | 0)) == -1)
26546 SWIG_fail;
26547 if (arg2 == NULL) {
26548 PyErr_SetString(PyExc_TypeError,"null reference");
26549 SWIG_fail;
26550 }
26551 {
26552 PyThreadState* __tstate = wxPyBeginAllowThreads();
26553 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26554
26555 wxPyEndAllowThreads(__tstate);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 {
26559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26560 }
26561 return resultobj;
26562 fail:
26563 return NULL;
26564 }
26565
26566
26567 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26568 PyObject *resultobj;
26569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26570 wxTreeItemId *arg2 = 0 ;
26571 bool result;
26572 PyObject * obj0 = 0 ;
26573 PyObject * obj1 = 0 ;
26574 char *kwnames[] = {
26575 (char *) "self",(char *) "item", NULL
26576 };
26577
26578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26582 SWIG_POINTER_EXCEPTION | 0)) == -1)
26583 SWIG_fail;
26584 if (arg2 == NULL) {
26585 PyErr_SetString(PyExc_TypeError,"null reference");
26586 SWIG_fail;
26587 }
26588 {
26589 PyThreadState* __tstate = wxPyBeginAllowThreads();
26590 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26591
26592 wxPyEndAllowThreads(__tstate);
26593 if (PyErr_Occurred()) SWIG_fail;
26594 }
26595 {
26596 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26597 }
26598 return resultobj;
26599 fail:
26600 return NULL;
26601 }
26602
26603
26604 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26605 PyObject *resultobj;
26606 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26607 wxTreeItemId *arg2 = 0 ;
26608 bool result;
26609 PyObject * obj0 = 0 ;
26610 PyObject * obj1 = 0 ;
26611 char *kwnames[] = {
26612 (char *) "self",(char *) "item", NULL
26613 };
26614
26615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26618 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26619 SWIG_POINTER_EXCEPTION | 0)) == -1)
26620 SWIG_fail;
26621 if (arg2 == NULL) {
26622 PyErr_SetString(PyExc_TypeError,"null reference");
26623 SWIG_fail;
26624 }
26625 {
26626 PyThreadState* __tstate = wxPyBeginAllowThreads();
26627 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26628
26629 wxPyEndAllowThreads(__tstate);
26630 if (PyErr_Occurred()) SWIG_fail;
26631 }
26632 {
26633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26634 }
26635 return resultobj;
26636 fail:
26637 return NULL;
26638 }
26639
26640
26641 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26642 PyObject *resultobj;
26643 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26644 wxTreeItemId *arg2 = 0 ;
26645 bool arg3 = (bool) True ;
26646 size_t result;
26647 PyObject * obj0 = 0 ;
26648 PyObject * obj1 = 0 ;
26649 PyObject * obj2 = 0 ;
26650 char *kwnames[] = {
26651 (char *) "self",(char *) "item",(char *) "recursively", NULL
26652 };
26653
26654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26657 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26658 SWIG_POINTER_EXCEPTION | 0)) == -1)
26659 SWIG_fail;
26660 if (arg2 == NULL) {
26661 PyErr_SetString(PyExc_TypeError,"null reference");
26662 SWIG_fail;
26663 }
26664 if (obj2) {
26665 arg3 = (bool)SWIG_As_bool(obj2);
26666 if (PyErr_Occurred()) SWIG_fail;
26667 }
26668 {
26669 PyThreadState* __tstate = wxPyBeginAllowThreads();
26670 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26671
26672 wxPyEndAllowThreads(__tstate);
26673 if (PyErr_Occurred()) SWIG_fail;
26674 }
26675 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26676 return resultobj;
26677 fail:
26678 return NULL;
26679 }
26680
26681
26682 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26683 PyObject *resultobj;
26684 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26685 wxTreeItemId result;
26686 PyObject * obj0 = 0 ;
26687 char *kwnames[] = {
26688 (char *) "self", NULL
26689 };
26690
26691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26694 {
26695 PyThreadState* __tstate = wxPyBeginAllowThreads();
26696 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26697
26698 wxPyEndAllowThreads(__tstate);
26699 if (PyErr_Occurred()) SWIG_fail;
26700 }
26701 {
26702 wxTreeItemId * resultptr;
26703 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26705 }
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj;
26714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26715 wxTreeItemId result;
26716 PyObject * obj0 = 0 ;
26717 char *kwnames[] = {
26718 (char *) "self", NULL
26719 };
26720
26721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
26722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26724 {
26725 PyThreadState* __tstate = wxPyBeginAllowThreads();
26726 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
26727
26728 wxPyEndAllowThreads(__tstate);
26729 if (PyErr_Occurred()) SWIG_fail;
26730 }
26731 {
26732 wxTreeItemId * resultptr;
26733 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26735 }
26736 return resultobj;
26737 fail:
26738 return NULL;
26739 }
26740
26741
26742 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
26743 PyObject *resultobj;
26744 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26745 PyObject *result;
26746 PyObject * obj0 = 0 ;
26747 char *kwnames[] = {
26748 (char *) "self", NULL
26749 };
26750
26751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
26752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26754 {
26755 PyThreadState* __tstate = wxPyBeginAllowThreads();
26756 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
26757
26758 wxPyEndAllowThreads(__tstate);
26759 if (PyErr_Occurred()) SWIG_fail;
26760 }
26761 resultobj = result;
26762 return resultobj;
26763 fail:
26764 return NULL;
26765 }
26766
26767
26768 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
26769 PyObject *resultobj;
26770 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26771 wxTreeItemId *arg2 = 0 ;
26772 wxTreeItemId result;
26773 PyObject * obj0 = 0 ;
26774 PyObject * obj1 = 0 ;
26775 char *kwnames[] = {
26776 (char *) "self",(char *) "item", NULL
26777 };
26778
26779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
26780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26782 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26783 SWIG_POINTER_EXCEPTION | 0)) == -1)
26784 SWIG_fail;
26785 if (arg2 == NULL) {
26786 PyErr_SetString(PyExc_TypeError,"null reference");
26787 SWIG_fail;
26788 }
26789 {
26790 PyThreadState* __tstate = wxPyBeginAllowThreads();
26791 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
26792
26793 wxPyEndAllowThreads(__tstate);
26794 if (PyErr_Occurred()) SWIG_fail;
26795 }
26796 {
26797 wxTreeItemId * resultptr;
26798 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26800 }
26801 return resultobj;
26802 fail:
26803 return NULL;
26804 }
26805
26806
26807 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
26808 PyObject *resultobj;
26809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26810 wxTreeItemId *arg2 = 0 ;
26811 PyObject *result;
26812 PyObject * obj0 = 0 ;
26813 PyObject * obj1 = 0 ;
26814 char *kwnames[] = {
26815 (char *) "self",(char *) "item", NULL
26816 };
26817
26818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
26819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26821 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26822 SWIG_POINTER_EXCEPTION | 0)) == -1)
26823 SWIG_fail;
26824 if (arg2 == NULL) {
26825 PyErr_SetString(PyExc_TypeError,"null reference");
26826 SWIG_fail;
26827 }
26828 {
26829 PyThreadState* __tstate = wxPyBeginAllowThreads();
26830 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
26831
26832 wxPyEndAllowThreads(__tstate);
26833 if (PyErr_Occurred()) SWIG_fail;
26834 }
26835 resultobj = result;
26836 return resultobj;
26837 fail:
26838 return NULL;
26839 }
26840
26841
26842 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
26843 PyObject *resultobj;
26844 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26845 wxTreeItemId *arg2 = 0 ;
26846 void *arg3 = (void *) 0 ;
26847 PyObject *result;
26848 PyObject * obj0 = 0 ;
26849 PyObject * obj1 = 0 ;
26850 PyObject * obj2 = 0 ;
26851 char *kwnames[] = {
26852 (char *) "self",(char *) "item",(char *) "cookie", NULL
26853 };
26854
26855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
26856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26858 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26859 SWIG_POINTER_EXCEPTION | 0)) == -1)
26860 SWIG_fail;
26861 if (arg2 == NULL) {
26862 PyErr_SetString(PyExc_TypeError,"null reference");
26863 SWIG_fail;
26864 }
26865 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26866 {
26867 PyThreadState* __tstate = wxPyBeginAllowThreads();
26868 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
26869
26870 wxPyEndAllowThreads(__tstate);
26871 if (PyErr_Occurred()) SWIG_fail;
26872 }
26873 resultobj = result;
26874 return resultobj;
26875 fail:
26876 return NULL;
26877 }
26878
26879
26880 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
26881 PyObject *resultobj;
26882 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26883 wxTreeItemId *arg2 = 0 ;
26884 wxTreeItemId result;
26885 PyObject * obj0 = 0 ;
26886 PyObject * obj1 = 0 ;
26887 char *kwnames[] = {
26888 (char *) "self",(char *) "item", NULL
26889 };
26890
26891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
26892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26894 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26895 SWIG_POINTER_EXCEPTION | 0)) == -1)
26896 SWIG_fail;
26897 if (arg2 == NULL) {
26898 PyErr_SetString(PyExc_TypeError,"null reference");
26899 SWIG_fail;
26900 }
26901 {
26902 PyThreadState* __tstate = wxPyBeginAllowThreads();
26903 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
26904
26905 wxPyEndAllowThreads(__tstate);
26906 if (PyErr_Occurred()) SWIG_fail;
26907 }
26908 {
26909 wxTreeItemId * resultptr;
26910 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26911 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26912 }
26913 return resultobj;
26914 fail:
26915 return NULL;
26916 }
26917
26918
26919 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26920 PyObject *resultobj;
26921 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26922 wxTreeItemId *arg2 = 0 ;
26923 wxTreeItemId result;
26924 PyObject * obj0 = 0 ;
26925 PyObject * obj1 = 0 ;
26926 char *kwnames[] = {
26927 (char *) "self",(char *) "item", NULL
26928 };
26929
26930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
26931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26933 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26934 SWIG_POINTER_EXCEPTION | 0)) == -1)
26935 SWIG_fail;
26936 if (arg2 == NULL) {
26937 PyErr_SetString(PyExc_TypeError,"null reference");
26938 SWIG_fail;
26939 }
26940 {
26941 PyThreadState* __tstate = wxPyBeginAllowThreads();
26942 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
26943
26944 wxPyEndAllowThreads(__tstate);
26945 if (PyErr_Occurred()) SWIG_fail;
26946 }
26947 {
26948 wxTreeItemId * resultptr;
26949 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26950 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26951 }
26952 return resultobj;
26953 fail:
26954 return NULL;
26955 }
26956
26957
26958 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
26959 PyObject *resultobj;
26960 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26961 wxTreeItemId *arg2 = 0 ;
26962 wxTreeItemId result;
26963 PyObject * obj0 = 0 ;
26964 PyObject * obj1 = 0 ;
26965 char *kwnames[] = {
26966 (char *) "self",(char *) "item", NULL
26967 };
26968
26969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
26970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26972 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26973 SWIG_POINTER_EXCEPTION | 0)) == -1)
26974 SWIG_fail;
26975 if (arg2 == NULL) {
26976 PyErr_SetString(PyExc_TypeError,"null reference");
26977 SWIG_fail;
26978 }
26979 {
26980 PyThreadState* __tstate = wxPyBeginAllowThreads();
26981 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
26982
26983 wxPyEndAllowThreads(__tstate);
26984 if (PyErr_Occurred()) SWIG_fail;
26985 }
26986 {
26987 wxTreeItemId * resultptr;
26988 resultptr = new wxTreeItemId((wxTreeItemId &) result);
26989 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
26990 }
26991 return resultobj;
26992 fail:
26993 return NULL;
26994 }
26995
26996
26997 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
26998 PyObject *resultobj;
26999 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27000 wxTreeItemId result;
27001 PyObject * obj0 = 0 ;
27002 char *kwnames[] = {
27003 (char *) "self", NULL
27004 };
27005
27006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27009 {
27010 PyThreadState* __tstate = wxPyBeginAllowThreads();
27011 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27012
27013 wxPyEndAllowThreads(__tstate);
27014 if (PyErr_Occurred()) SWIG_fail;
27015 }
27016 {
27017 wxTreeItemId * resultptr;
27018 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27019 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27020 }
27021 return resultobj;
27022 fail:
27023 return NULL;
27024 }
27025
27026
27027 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27028 PyObject *resultobj;
27029 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27030 wxTreeItemId *arg2 = 0 ;
27031 wxTreeItemId result;
27032 PyObject * obj0 = 0 ;
27033 PyObject * obj1 = 0 ;
27034 char *kwnames[] = {
27035 (char *) "self",(char *) "item", NULL
27036 };
27037
27038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27041 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27042 SWIG_POINTER_EXCEPTION | 0)) == -1)
27043 SWIG_fail;
27044 if (arg2 == NULL) {
27045 PyErr_SetString(PyExc_TypeError,"null reference");
27046 SWIG_fail;
27047 }
27048 {
27049 PyThreadState* __tstate = wxPyBeginAllowThreads();
27050 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27051
27052 wxPyEndAllowThreads(__tstate);
27053 if (PyErr_Occurred()) SWIG_fail;
27054 }
27055 {
27056 wxTreeItemId * resultptr;
27057 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27058 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27059 }
27060 return resultobj;
27061 fail:
27062 return NULL;
27063 }
27064
27065
27066 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27067 PyObject *resultobj;
27068 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27069 wxTreeItemId *arg2 = 0 ;
27070 wxTreeItemId result;
27071 PyObject * obj0 = 0 ;
27072 PyObject * obj1 = 0 ;
27073 char *kwnames[] = {
27074 (char *) "self",(char *) "item", NULL
27075 };
27076
27077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27080 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27081 SWIG_POINTER_EXCEPTION | 0)) == -1)
27082 SWIG_fail;
27083 if (arg2 == NULL) {
27084 PyErr_SetString(PyExc_TypeError,"null reference");
27085 SWIG_fail;
27086 }
27087 {
27088 PyThreadState* __tstate = wxPyBeginAllowThreads();
27089 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27090
27091 wxPyEndAllowThreads(__tstate);
27092 if (PyErr_Occurred()) SWIG_fail;
27093 }
27094 {
27095 wxTreeItemId * resultptr;
27096 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27097 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27098 }
27099 return resultobj;
27100 fail:
27101 return NULL;
27102 }
27103
27104
27105 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27106 PyObject *resultobj;
27107 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27108 wxString *arg2 = 0 ;
27109 int arg3 = (int) -1 ;
27110 int arg4 = (int) -1 ;
27111 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27112 wxTreeItemId result;
27113 bool temp2 = False ;
27114 PyObject * obj0 = 0 ;
27115 PyObject * obj1 = 0 ;
27116 PyObject * obj2 = 0 ;
27117 PyObject * obj3 = 0 ;
27118 PyObject * obj4 = 0 ;
27119 char *kwnames[] = {
27120 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27121 };
27122
27123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27126 {
27127 arg2 = wxString_in_helper(obj1);
27128 if (arg2 == NULL) SWIG_fail;
27129 temp2 = True;
27130 }
27131 if (obj2) {
27132 arg3 = (int)SWIG_As_int(obj2);
27133 if (PyErr_Occurred()) SWIG_fail;
27134 }
27135 if (obj3) {
27136 arg4 = (int)SWIG_As_int(obj3);
27137 if (PyErr_Occurred()) SWIG_fail;
27138 }
27139 if (obj4) {
27140 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27142 }
27143 {
27144 PyThreadState* __tstate = wxPyBeginAllowThreads();
27145 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27146
27147 wxPyEndAllowThreads(__tstate);
27148 if (PyErr_Occurred()) SWIG_fail;
27149 }
27150 {
27151 wxTreeItemId * resultptr;
27152 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27153 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27154 }
27155 {
27156 if (temp2)
27157 delete arg2;
27158 }
27159 return resultobj;
27160 fail:
27161 {
27162 if (temp2)
27163 delete arg2;
27164 }
27165 return NULL;
27166 }
27167
27168
27169 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27170 PyObject *resultobj;
27171 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27172 wxTreeItemId *arg2 = 0 ;
27173 wxString *arg3 = 0 ;
27174 int arg4 = (int) -1 ;
27175 int arg5 = (int) -1 ;
27176 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27177 wxTreeItemId result;
27178 bool temp3 = False ;
27179 PyObject * obj0 = 0 ;
27180 PyObject * obj1 = 0 ;
27181 PyObject * obj2 = 0 ;
27182 PyObject * obj3 = 0 ;
27183 PyObject * obj4 = 0 ;
27184 PyObject * obj5 = 0 ;
27185 char *kwnames[] = {
27186 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27187 };
27188
27189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27193 SWIG_POINTER_EXCEPTION | 0)) == -1)
27194 SWIG_fail;
27195 if (arg2 == NULL) {
27196 PyErr_SetString(PyExc_TypeError,"null reference");
27197 SWIG_fail;
27198 }
27199 {
27200 arg3 = wxString_in_helper(obj2);
27201 if (arg3 == NULL) SWIG_fail;
27202 temp3 = True;
27203 }
27204 if (obj3) {
27205 arg4 = (int)SWIG_As_int(obj3);
27206 if (PyErr_Occurred()) SWIG_fail;
27207 }
27208 if (obj4) {
27209 arg5 = (int)SWIG_As_int(obj4);
27210 if (PyErr_Occurred()) SWIG_fail;
27211 }
27212 if (obj5) {
27213 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27215 }
27216 {
27217 PyThreadState* __tstate = wxPyBeginAllowThreads();
27218 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27219
27220 wxPyEndAllowThreads(__tstate);
27221 if (PyErr_Occurred()) SWIG_fail;
27222 }
27223 {
27224 wxTreeItemId * resultptr;
27225 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27227 }
27228 {
27229 if (temp3)
27230 delete arg3;
27231 }
27232 return resultobj;
27233 fail:
27234 {
27235 if (temp3)
27236 delete arg3;
27237 }
27238 return NULL;
27239 }
27240
27241
27242 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27243 PyObject *resultobj;
27244 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27245 wxTreeItemId *arg2 = 0 ;
27246 wxTreeItemId *arg3 = 0 ;
27247 wxString *arg4 = 0 ;
27248 int arg5 = (int) -1 ;
27249 int arg6 = (int) -1 ;
27250 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27251 wxTreeItemId result;
27252 bool temp4 = False ;
27253 PyObject * obj0 = 0 ;
27254 PyObject * obj1 = 0 ;
27255 PyObject * obj2 = 0 ;
27256 PyObject * obj3 = 0 ;
27257 PyObject * obj4 = 0 ;
27258 PyObject * obj5 = 0 ;
27259 PyObject * obj6 = 0 ;
27260 char *kwnames[] = {
27261 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27262 };
27263
27264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27268 SWIG_POINTER_EXCEPTION | 0)) == -1)
27269 SWIG_fail;
27270 if (arg2 == NULL) {
27271 PyErr_SetString(PyExc_TypeError,"null reference");
27272 SWIG_fail;
27273 }
27274 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27275 SWIG_POINTER_EXCEPTION | 0)) == -1)
27276 SWIG_fail;
27277 if (arg3 == NULL) {
27278 PyErr_SetString(PyExc_TypeError,"null reference");
27279 SWIG_fail;
27280 }
27281 {
27282 arg4 = wxString_in_helper(obj3);
27283 if (arg4 == NULL) SWIG_fail;
27284 temp4 = True;
27285 }
27286 if (obj4) {
27287 arg5 = (int)SWIG_As_int(obj4);
27288 if (PyErr_Occurred()) SWIG_fail;
27289 }
27290 if (obj5) {
27291 arg6 = (int)SWIG_As_int(obj5);
27292 if (PyErr_Occurred()) SWIG_fail;
27293 }
27294 if (obj6) {
27295 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27297 }
27298 {
27299 PyThreadState* __tstate = wxPyBeginAllowThreads();
27300 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27301
27302 wxPyEndAllowThreads(__tstate);
27303 if (PyErr_Occurred()) SWIG_fail;
27304 }
27305 {
27306 wxTreeItemId * resultptr;
27307 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27309 }
27310 {
27311 if (temp4)
27312 delete arg4;
27313 }
27314 return resultobj;
27315 fail:
27316 {
27317 if (temp4)
27318 delete arg4;
27319 }
27320 return NULL;
27321 }
27322
27323
27324 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27325 PyObject *resultobj;
27326 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27327 wxTreeItemId *arg2 = 0 ;
27328 size_t arg3 ;
27329 wxString *arg4 = 0 ;
27330 int arg5 = (int) -1 ;
27331 int arg6 = (int) -1 ;
27332 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27333 wxTreeItemId result;
27334 bool temp4 = False ;
27335 PyObject * obj0 = 0 ;
27336 PyObject * obj1 = 0 ;
27337 PyObject * obj2 = 0 ;
27338 PyObject * obj3 = 0 ;
27339 PyObject * obj4 = 0 ;
27340 PyObject * obj5 = 0 ;
27341 PyObject * obj6 = 0 ;
27342 char *kwnames[] = {
27343 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27344 };
27345
27346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27350 SWIG_POINTER_EXCEPTION | 0)) == -1)
27351 SWIG_fail;
27352 if (arg2 == NULL) {
27353 PyErr_SetString(PyExc_TypeError,"null reference");
27354 SWIG_fail;
27355 }
27356 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27357 if (PyErr_Occurred()) SWIG_fail;
27358 {
27359 arg4 = wxString_in_helper(obj3);
27360 if (arg4 == NULL) SWIG_fail;
27361 temp4 = True;
27362 }
27363 if (obj4) {
27364 arg5 = (int)SWIG_As_int(obj4);
27365 if (PyErr_Occurred()) SWIG_fail;
27366 }
27367 if (obj5) {
27368 arg6 = (int)SWIG_As_int(obj5);
27369 if (PyErr_Occurred()) SWIG_fail;
27370 }
27371 if (obj6) {
27372 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27374 }
27375 {
27376 PyThreadState* __tstate = wxPyBeginAllowThreads();
27377 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27378
27379 wxPyEndAllowThreads(__tstate);
27380 if (PyErr_Occurred()) SWIG_fail;
27381 }
27382 {
27383 wxTreeItemId * resultptr;
27384 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27385 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27386 }
27387 {
27388 if (temp4)
27389 delete arg4;
27390 }
27391 return resultobj;
27392 fail:
27393 {
27394 if (temp4)
27395 delete arg4;
27396 }
27397 return NULL;
27398 }
27399
27400
27401 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27402 PyObject *resultobj;
27403 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27404 wxTreeItemId *arg2 = 0 ;
27405 wxString *arg3 = 0 ;
27406 int arg4 = (int) -1 ;
27407 int arg5 = (int) -1 ;
27408 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27409 wxTreeItemId result;
27410 bool temp3 = False ;
27411 PyObject * obj0 = 0 ;
27412 PyObject * obj1 = 0 ;
27413 PyObject * obj2 = 0 ;
27414 PyObject * obj3 = 0 ;
27415 PyObject * obj4 = 0 ;
27416 PyObject * obj5 = 0 ;
27417 char *kwnames[] = {
27418 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27419 };
27420
27421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27425 SWIG_POINTER_EXCEPTION | 0)) == -1)
27426 SWIG_fail;
27427 if (arg2 == NULL) {
27428 PyErr_SetString(PyExc_TypeError,"null reference");
27429 SWIG_fail;
27430 }
27431 {
27432 arg3 = wxString_in_helper(obj2);
27433 if (arg3 == NULL) SWIG_fail;
27434 temp3 = True;
27435 }
27436 if (obj3) {
27437 arg4 = (int)SWIG_As_int(obj3);
27438 if (PyErr_Occurred()) SWIG_fail;
27439 }
27440 if (obj4) {
27441 arg5 = (int)SWIG_As_int(obj4);
27442 if (PyErr_Occurred()) SWIG_fail;
27443 }
27444 if (obj5) {
27445 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27447 }
27448 {
27449 PyThreadState* __tstate = wxPyBeginAllowThreads();
27450 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27451
27452 wxPyEndAllowThreads(__tstate);
27453 if (PyErr_Occurred()) SWIG_fail;
27454 }
27455 {
27456 wxTreeItemId * resultptr;
27457 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27458 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27459 }
27460 {
27461 if (temp3)
27462 delete arg3;
27463 }
27464 return resultobj;
27465 fail:
27466 {
27467 if (temp3)
27468 delete arg3;
27469 }
27470 return NULL;
27471 }
27472
27473
27474 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27475 PyObject *resultobj;
27476 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27477 wxTreeItemId *arg2 = 0 ;
27478 PyObject * obj0 = 0 ;
27479 PyObject * obj1 = 0 ;
27480 char *kwnames[] = {
27481 (char *) "self",(char *) "item", NULL
27482 };
27483
27484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27487 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27488 SWIG_POINTER_EXCEPTION | 0)) == -1)
27489 SWIG_fail;
27490 if (arg2 == NULL) {
27491 PyErr_SetString(PyExc_TypeError,"null reference");
27492 SWIG_fail;
27493 }
27494 {
27495 PyThreadState* __tstate = wxPyBeginAllowThreads();
27496 (arg1)->Delete((wxTreeItemId const &)*arg2);
27497
27498 wxPyEndAllowThreads(__tstate);
27499 if (PyErr_Occurred()) SWIG_fail;
27500 }
27501 Py_INCREF(Py_None); resultobj = Py_None;
27502 return resultobj;
27503 fail:
27504 return NULL;
27505 }
27506
27507
27508 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27509 PyObject *resultobj;
27510 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27511 wxTreeItemId *arg2 = 0 ;
27512 PyObject * obj0 = 0 ;
27513 PyObject * obj1 = 0 ;
27514 char *kwnames[] = {
27515 (char *) "self",(char *) "item", NULL
27516 };
27517
27518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27521 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27522 SWIG_POINTER_EXCEPTION | 0)) == -1)
27523 SWIG_fail;
27524 if (arg2 == NULL) {
27525 PyErr_SetString(PyExc_TypeError,"null reference");
27526 SWIG_fail;
27527 }
27528 {
27529 PyThreadState* __tstate = wxPyBeginAllowThreads();
27530 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27531
27532 wxPyEndAllowThreads(__tstate);
27533 if (PyErr_Occurred()) SWIG_fail;
27534 }
27535 Py_INCREF(Py_None); resultobj = Py_None;
27536 return resultobj;
27537 fail:
27538 return NULL;
27539 }
27540
27541
27542 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27543 PyObject *resultobj;
27544 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27545 PyObject * obj0 = 0 ;
27546 char *kwnames[] = {
27547 (char *) "self", NULL
27548 };
27549
27550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27553 {
27554 PyThreadState* __tstate = wxPyBeginAllowThreads();
27555 (arg1)->DeleteAllItems();
27556
27557 wxPyEndAllowThreads(__tstate);
27558 if (PyErr_Occurred()) SWIG_fail;
27559 }
27560 Py_INCREF(Py_None); resultobj = Py_None;
27561 return resultobj;
27562 fail:
27563 return NULL;
27564 }
27565
27566
27567 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27568 PyObject *resultobj;
27569 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27570 wxTreeItemId *arg2 = 0 ;
27571 PyObject * obj0 = 0 ;
27572 PyObject * obj1 = 0 ;
27573 char *kwnames[] = {
27574 (char *) "self",(char *) "item", NULL
27575 };
27576
27577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27580 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27581 SWIG_POINTER_EXCEPTION | 0)) == -1)
27582 SWIG_fail;
27583 if (arg2 == NULL) {
27584 PyErr_SetString(PyExc_TypeError,"null reference");
27585 SWIG_fail;
27586 }
27587 {
27588 PyThreadState* __tstate = wxPyBeginAllowThreads();
27589 (arg1)->Expand((wxTreeItemId const &)*arg2);
27590
27591 wxPyEndAllowThreads(__tstate);
27592 if (PyErr_Occurred()) SWIG_fail;
27593 }
27594 Py_INCREF(Py_None); resultobj = Py_None;
27595 return resultobj;
27596 fail:
27597 return NULL;
27598 }
27599
27600
27601 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27602 PyObject *resultobj;
27603 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27604 wxTreeItemId *arg2 = 0 ;
27605 PyObject * obj0 = 0 ;
27606 PyObject * obj1 = 0 ;
27607 char *kwnames[] = {
27608 (char *) "self",(char *) "item", NULL
27609 };
27610
27611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27614 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27615 SWIG_POINTER_EXCEPTION | 0)) == -1)
27616 SWIG_fail;
27617 if (arg2 == NULL) {
27618 PyErr_SetString(PyExc_TypeError,"null reference");
27619 SWIG_fail;
27620 }
27621 {
27622 PyThreadState* __tstate = wxPyBeginAllowThreads();
27623 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27624
27625 wxPyEndAllowThreads(__tstate);
27626 if (PyErr_Occurred()) SWIG_fail;
27627 }
27628 Py_INCREF(Py_None); resultobj = Py_None;
27629 return resultobj;
27630 fail:
27631 return NULL;
27632 }
27633
27634
27635 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27636 PyObject *resultobj;
27637 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27638 wxTreeItemId *arg2 = 0 ;
27639 PyObject * obj0 = 0 ;
27640 PyObject * obj1 = 0 ;
27641 char *kwnames[] = {
27642 (char *) "self",(char *) "item", NULL
27643 };
27644
27645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27648 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27649 SWIG_POINTER_EXCEPTION | 0)) == -1)
27650 SWIG_fail;
27651 if (arg2 == NULL) {
27652 PyErr_SetString(PyExc_TypeError,"null reference");
27653 SWIG_fail;
27654 }
27655 {
27656 PyThreadState* __tstate = wxPyBeginAllowThreads();
27657 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27658
27659 wxPyEndAllowThreads(__tstate);
27660 if (PyErr_Occurred()) SWIG_fail;
27661 }
27662 Py_INCREF(Py_None); resultobj = Py_None;
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27670 PyObject *resultobj;
27671 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27672 wxTreeItemId *arg2 = 0 ;
27673 PyObject * obj0 = 0 ;
27674 PyObject * obj1 = 0 ;
27675 char *kwnames[] = {
27676 (char *) "self",(char *) "item", NULL
27677 };
27678
27679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27682 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27683 SWIG_POINTER_EXCEPTION | 0)) == -1)
27684 SWIG_fail;
27685 if (arg2 == NULL) {
27686 PyErr_SetString(PyExc_TypeError,"null reference");
27687 SWIG_fail;
27688 }
27689 {
27690 PyThreadState* __tstate = wxPyBeginAllowThreads();
27691 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27692
27693 wxPyEndAllowThreads(__tstate);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 Py_INCREF(Py_None); resultobj = Py_None;
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj;
27705 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27706 PyObject * obj0 = 0 ;
27707 char *kwnames[] = {
27708 (char *) "self", NULL
27709 };
27710
27711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
27712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27714 {
27715 PyThreadState* __tstate = wxPyBeginAllowThreads();
27716 (arg1)->Unselect();
27717
27718 wxPyEndAllowThreads(__tstate);
27719 if (PyErr_Occurred()) SWIG_fail;
27720 }
27721 Py_INCREF(Py_None); resultobj = Py_None;
27722 return resultobj;
27723 fail:
27724 return NULL;
27725 }
27726
27727
27728 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27729 PyObject *resultobj;
27730 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27731 wxTreeItemId *arg2 = 0 ;
27732 PyObject * obj0 = 0 ;
27733 PyObject * obj1 = 0 ;
27734 char *kwnames[] = {
27735 (char *) "self",(char *) "item", NULL
27736 };
27737
27738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
27739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27741 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27742 SWIG_POINTER_EXCEPTION | 0)) == -1)
27743 SWIG_fail;
27744 if (arg2 == NULL) {
27745 PyErr_SetString(PyExc_TypeError,"null reference");
27746 SWIG_fail;
27747 }
27748 {
27749 PyThreadState* __tstate = wxPyBeginAllowThreads();
27750 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
27751
27752 wxPyEndAllowThreads(__tstate);
27753 if (PyErr_Occurred()) SWIG_fail;
27754 }
27755 Py_INCREF(Py_None); resultobj = Py_None;
27756 return resultobj;
27757 fail:
27758 return NULL;
27759 }
27760
27761
27762 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
27763 PyObject *resultobj;
27764 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27765 PyObject * obj0 = 0 ;
27766 char *kwnames[] = {
27767 (char *) "self", NULL
27768 };
27769
27770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
27771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27773 {
27774 PyThreadState* __tstate = wxPyBeginAllowThreads();
27775 (arg1)->UnselectAll();
27776
27777 wxPyEndAllowThreads(__tstate);
27778 if (PyErr_Occurred()) SWIG_fail;
27779 }
27780 Py_INCREF(Py_None); resultobj = Py_None;
27781 return resultobj;
27782 fail:
27783 return NULL;
27784 }
27785
27786
27787 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
27788 PyObject *resultobj;
27789 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27790 wxTreeItemId *arg2 = 0 ;
27791 bool arg3 = (bool) True ;
27792 PyObject * obj0 = 0 ;
27793 PyObject * obj1 = 0 ;
27794 PyObject * obj2 = 0 ;
27795 char *kwnames[] = {
27796 (char *) "self",(char *) "item",(char *) "select", NULL
27797 };
27798
27799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
27800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27802 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27803 SWIG_POINTER_EXCEPTION | 0)) == -1)
27804 SWIG_fail;
27805 if (arg2 == NULL) {
27806 PyErr_SetString(PyExc_TypeError,"null reference");
27807 SWIG_fail;
27808 }
27809 if (obj2) {
27810 arg3 = (bool)SWIG_As_bool(obj2);
27811 if (PyErr_Occurred()) SWIG_fail;
27812 }
27813 {
27814 PyThreadState* __tstate = wxPyBeginAllowThreads();
27815 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
27816
27817 wxPyEndAllowThreads(__tstate);
27818 if (PyErr_Occurred()) SWIG_fail;
27819 }
27820 Py_INCREF(Py_None); resultobj = Py_None;
27821 return resultobj;
27822 fail:
27823 return NULL;
27824 }
27825
27826
27827 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27828 PyObject *resultobj;
27829 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27830 wxTreeItemId *arg2 = 0 ;
27831 PyObject * obj0 = 0 ;
27832 PyObject * obj1 = 0 ;
27833 char *kwnames[] = {
27834 (char *) "self",(char *) "item", NULL
27835 };
27836
27837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
27838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27841 SWIG_POINTER_EXCEPTION | 0)) == -1)
27842 SWIG_fail;
27843 if (arg2 == NULL) {
27844 PyErr_SetString(PyExc_TypeError,"null reference");
27845 SWIG_fail;
27846 }
27847 {
27848 PyThreadState* __tstate = wxPyBeginAllowThreads();
27849 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
27850
27851 wxPyEndAllowThreads(__tstate);
27852 if (PyErr_Occurred()) SWIG_fail;
27853 }
27854 Py_INCREF(Py_None); resultobj = Py_None;
27855 return resultobj;
27856 fail:
27857 return NULL;
27858 }
27859
27860
27861 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27862 PyObject *resultobj;
27863 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27864 wxTreeItemId *arg2 = 0 ;
27865 PyObject * obj0 = 0 ;
27866 PyObject * obj1 = 0 ;
27867 char *kwnames[] = {
27868 (char *) "self",(char *) "item", NULL
27869 };
27870
27871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
27872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27874 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27875 SWIG_POINTER_EXCEPTION | 0)) == -1)
27876 SWIG_fail;
27877 if (arg2 == NULL) {
27878 PyErr_SetString(PyExc_TypeError,"null reference");
27879 SWIG_fail;
27880 }
27881 {
27882 PyThreadState* __tstate = wxPyBeginAllowThreads();
27883 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
27884
27885 wxPyEndAllowThreads(__tstate);
27886 if (PyErr_Occurred()) SWIG_fail;
27887 }
27888 Py_INCREF(Py_None); resultobj = Py_None;
27889 return resultobj;
27890 fail:
27891 return NULL;
27892 }
27893
27894
27895 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
27896 PyObject *resultobj;
27897 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27898 wxTreeItemId *arg2 = 0 ;
27899 PyObject * obj0 = 0 ;
27900 PyObject * obj1 = 0 ;
27901 char *kwnames[] = {
27902 (char *) "self",(char *) "item", NULL
27903 };
27904
27905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
27906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27908 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27909 SWIG_POINTER_EXCEPTION | 0)) == -1)
27910 SWIG_fail;
27911 if (arg2 == NULL) {
27912 PyErr_SetString(PyExc_TypeError,"null reference");
27913 SWIG_fail;
27914 }
27915 {
27916 PyThreadState* __tstate = wxPyBeginAllowThreads();
27917 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
27918
27919 wxPyEndAllowThreads(__tstate);
27920 if (PyErr_Occurred()) SWIG_fail;
27921 }
27922 Py_INCREF(Py_None); resultobj = Py_None;
27923 return resultobj;
27924 fail:
27925 return NULL;
27926 }
27927
27928
27929 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27930 PyObject *resultobj;
27931 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27932 wxTreeItemId *arg2 = 0 ;
27933 PyObject * obj0 = 0 ;
27934 PyObject * obj1 = 0 ;
27935 char *kwnames[] = {
27936 (char *) "self",(char *) "item", NULL
27937 };
27938
27939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
27940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27942 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27943 SWIG_POINTER_EXCEPTION | 0)) == -1)
27944 SWIG_fail;
27945 if (arg2 == NULL) {
27946 PyErr_SetString(PyExc_TypeError,"null reference");
27947 SWIG_fail;
27948 }
27949 {
27950 PyThreadState* __tstate = wxPyBeginAllowThreads();
27951 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
27952
27953 wxPyEndAllowThreads(__tstate);
27954 if (PyErr_Occurred()) SWIG_fail;
27955 }
27956 Py_INCREF(Py_None); resultobj = Py_None;
27957 return resultobj;
27958 fail:
27959 return NULL;
27960 }
27961
27962
27963 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
27964 PyObject *resultobj;
27965 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27966 wxTextCtrl *result;
27967 PyObject * obj0 = 0 ;
27968 char *kwnames[] = {
27969 (char *) "self", NULL
27970 };
27971
27972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
27973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27975 {
27976 PyThreadState* __tstate = wxPyBeginAllowThreads();
27977 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
27978
27979 wxPyEndAllowThreads(__tstate);
27980 if (PyErr_Occurred()) SWIG_fail;
27981 }
27982 {
27983 resultobj = wxPyMake_wxObject(result, 0);
27984 }
27985 return resultobj;
27986 fail:
27987 return NULL;
27988 }
27989
27990
27991 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
27992 PyObject *resultobj;
27993 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27994 wxTreeItemId *arg2 = 0 ;
27995 bool arg3 = (bool) False ;
27996 PyObject * obj0 = 0 ;
27997 PyObject * obj1 = 0 ;
27998 PyObject * obj2 = 0 ;
27999 char *kwnames[] = {
28000 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
28001 };
28002
28003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
28004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28007 SWIG_POINTER_EXCEPTION | 0)) == -1)
28008 SWIG_fail;
28009 if (arg2 == NULL) {
28010 PyErr_SetString(PyExc_TypeError,"null reference");
28011 SWIG_fail;
28012 }
28013 if (obj2) {
28014 arg3 = (bool)SWIG_As_bool(obj2);
28015 if (PyErr_Occurred()) SWIG_fail;
28016 }
28017 {
28018 PyThreadState* __tstate = wxPyBeginAllowThreads();
28019 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
28020
28021 wxPyEndAllowThreads(__tstate);
28022 if (PyErr_Occurred()) SWIG_fail;
28023 }
28024 Py_INCREF(Py_None); resultobj = Py_None;
28025 return resultobj;
28026 fail:
28027 return NULL;
28028 }
28029
28030
28031 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28032 PyObject *resultobj;
28033 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28034 wxTreeItemId *arg2 = 0 ;
28035 PyObject * obj0 = 0 ;
28036 PyObject * obj1 = 0 ;
28037 char *kwnames[] = {
28038 (char *) "self",(char *) "item", NULL
28039 };
28040
28041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28044 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28045 SWIG_POINTER_EXCEPTION | 0)) == -1)
28046 SWIG_fail;
28047 if (arg2 == NULL) {
28048 PyErr_SetString(PyExc_TypeError,"null reference");
28049 SWIG_fail;
28050 }
28051 {
28052 PyThreadState* __tstate = wxPyBeginAllowThreads();
28053 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28054
28055 wxPyEndAllowThreads(__tstate);
28056 if (PyErr_Occurred()) SWIG_fail;
28057 }
28058 Py_INCREF(Py_None); resultobj = Py_None;
28059 return resultobj;
28060 fail:
28061 return NULL;
28062 }
28063
28064
28065 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28066 PyObject *resultobj;
28067 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28068 wxPoint *arg2 = 0 ;
28069 int *arg3 = 0 ;
28070 wxTreeItemId result;
28071 wxPoint temp2 ;
28072 int temp3 ;
28073 int res3 = 0 ;
28074 PyObject * obj0 = 0 ;
28075 PyObject * obj1 = 0 ;
28076 char *kwnames[] = {
28077 (char *) "self",(char *) "point", NULL
28078 };
28079
28080 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28084 {
28085 arg2 = &temp2;
28086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28087 }
28088 {
28089 PyThreadState* __tstate = wxPyBeginAllowThreads();
28090 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28091
28092 wxPyEndAllowThreads(__tstate);
28093 if (PyErr_Occurred()) SWIG_fail;
28094 }
28095 {
28096 wxTreeItemId * resultptr;
28097 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28099 }
28100 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28101 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28102 return resultobj;
28103 fail:
28104 return NULL;
28105 }
28106
28107
28108 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28109 PyObject *resultobj;
28110 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28111 wxTreeItemId *arg2 = 0 ;
28112 bool arg3 = (bool) False ;
28113 PyObject *result;
28114 PyObject * obj0 = 0 ;
28115 PyObject * obj1 = 0 ;
28116 PyObject * obj2 = 0 ;
28117 char *kwnames[] = {
28118 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28119 };
28120
28121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28125 SWIG_POINTER_EXCEPTION | 0)) == -1)
28126 SWIG_fail;
28127 if (arg2 == NULL) {
28128 PyErr_SetString(PyExc_TypeError,"null reference");
28129 SWIG_fail;
28130 }
28131 if (obj2) {
28132 arg3 = (bool)SWIG_As_bool(obj2);
28133 if (PyErr_Occurred()) SWIG_fail;
28134 }
28135 {
28136 PyThreadState* __tstate = wxPyBeginAllowThreads();
28137 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28138
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 resultobj = result;
28143 return resultobj;
28144 fail:
28145 return NULL;
28146 }
28147
28148
28149 static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
28150 PyObject *resultobj;
28151 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28152 wxTreeItemId *arg2 = 0 ;
28153 int arg3 ;
28154 PyObject * obj0 = 0 ;
28155 PyObject * obj1 = 0 ;
28156 PyObject * obj2 = 0 ;
28157 char *kwnames[] = {
28158 (char *) "self",(char *) "node",(char *) "state", NULL
28159 };
28160
28161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail;
28162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28165 SWIG_POINTER_EXCEPTION | 0)) == -1)
28166 SWIG_fail;
28167 if (arg2 == NULL) {
28168 PyErr_SetString(PyExc_TypeError,"null reference");
28169 SWIG_fail;
28170 }
28171 arg3 = (int)SWIG_As_int(obj2);
28172 if (PyErr_Occurred()) SWIG_fail;
28173 {
28174 PyThreadState* __tstate = wxPyBeginAllowThreads();
28175 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
28176
28177 wxPyEndAllowThreads(__tstate);
28178 if (PyErr_Occurred()) SWIG_fail;
28179 }
28180 Py_INCREF(Py_None); resultobj = Py_None;
28181 return resultobj;
28182 fail:
28183 return NULL;
28184 }
28185
28186
28187 static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
28188 PyObject *resultobj;
28189 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28190 wxTreeItemId *arg2 = 0 ;
28191 int result;
28192 PyObject * obj0 = 0 ;
28193 PyObject * obj1 = 0 ;
28194 char *kwnames[] = {
28195 (char *) "self",(char *) "node", NULL
28196 };
28197
28198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail;
28199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28202 SWIG_POINTER_EXCEPTION | 0)) == -1)
28203 SWIG_fail;
28204 if (arg2 == NULL) {
28205 PyErr_SetString(PyExc_TypeError,"null reference");
28206 SWIG_fail;
28207 }
28208 {
28209 PyThreadState* __tstate = wxPyBeginAllowThreads();
28210 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
28211
28212 wxPyEndAllowThreads(__tstate);
28213 if (PyErr_Occurred()) SWIG_fail;
28214 }
28215 resultobj = SWIG_From_int((int)result);
28216 return resultobj;
28217 fail:
28218 return NULL;
28219 }
28220
28221
28222 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28223 PyObject *resultobj;
28224 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28225 wxVisualAttributes result;
28226 PyObject * obj0 = 0 ;
28227 char *kwnames[] = {
28228 (char *) "variant", NULL
28229 };
28230
28231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28232 if (obj0) {
28233 arg1 = (int)SWIG_As_int(obj0);
28234 if (PyErr_Occurred()) SWIG_fail;
28235 }
28236 {
28237 if (!wxPyCheckForApp()) SWIG_fail;
28238 PyThreadState* __tstate = wxPyBeginAllowThreads();
28239 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28240
28241 wxPyEndAllowThreads(__tstate);
28242 if (PyErr_Occurred()) SWIG_fail;
28243 }
28244 {
28245 wxVisualAttributes * resultptr;
28246 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28247 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28248 }
28249 return resultobj;
28250 fail:
28251 return NULL;
28252 }
28253
28254
28255 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28256 PyObject *obj;
28257 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28258 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28259 Py_INCREF(obj);
28260 return Py_BuildValue((char *)"");
28261 }
28262 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28263 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28264 return 1;
28265 }
28266
28267
28268 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28269 PyObject *pyobj;
28270
28271 {
28272 #if wxUSE_UNICODE
28273 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28274 #else
28275 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28276 #endif
28277 }
28278 return pyobj;
28279 }
28280
28281
28282 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28283 PyObject *resultobj;
28284 wxWindow *arg1 = (wxWindow *) 0 ;
28285 int arg2 = (int) (int)-1 ;
28286 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28287 wxString *arg3 = (wxString *) &arg3_defvalue ;
28288 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28289 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28290 wxSize const &arg5_defvalue = wxDefaultSize ;
28291 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28292 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28293 wxString const &arg7_defvalue = wxPyEmptyString ;
28294 wxString *arg7 = (wxString *) &arg7_defvalue ;
28295 int arg8 = (int) 0 ;
28296 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28297 wxString *arg9 = (wxString *) &arg9_defvalue ;
28298 wxGenericDirCtrl *result;
28299 bool temp3 = False ;
28300 wxPoint temp4 ;
28301 wxSize temp5 ;
28302 bool temp7 = False ;
28303 bool temp9 = False ;
28304 PyObject * obj0 = 0 ;
28305 PyObject * obj1 = 0 ;
28306 PyObject * obj2 = 0 ;
28307 PyObject * obj3 = 0 ;
28308 PyObject * obj4 = 0 ;
28309 PyObject * obj5 = 0 ;
28310 PyObject * obj6 = 0 ;
28311 PyObject * obj7 = 0 ;
28312 PyObject * obj8 = 0 ;
28313 char *kwnames[] = {
28314 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28315 };
28316
28317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28320 if (obj1) {
28321 arg2 = (int)SWIG_As_int(obj1);
28322 if (PyErr_Occurred()) SWIG_fail;
28323 }
28324 if (obj2) {
28325 {
28326 arg3 = wxString_in_helper(obj2);
28327 if (arg3 == NULL) SWIG_fail;
28328 temp3 = True;
28329 }
28330 }
28331 if (obj3) {
28332 {
28333 arg4 = &temp4;
28334 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28335 }
28336 }
28337 if (obj4) {
28338 {
28339 arg5 = &temp5;
28340 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28341 }
28342 }
28343 if (obj5) {
28344 arg6 = (long)SWIG_As_long(obj5);
28345 if (PyErr_Occurred()) SWIG_fail;
28346 }
28347 if (obj6) {
28348 {
28349 arg7 = wxString_in_helper(obj6);
28350 if (arg7 == NULL) SWIG_fail;
28351 temp7 = True;
28352 }
28353 }
28354 if (obj7) {
28355 arg8 = (int)SWIG_As_int(obj7);
28356 if (PyErr_Occurred()) SWIG_fail;
28357 }
28358 if (obj8) {
28359 {
28360 arg9 = wxString_in_helper(obj8);
28361 if (arg9 == NULL) SWIG_fail;
28362 temp9 = True;
28363 }
28364 }
28365 {
28366 if (!wxPyCheckForApp()) SWIG_fail;
28367 PyThreadState* __tstate = wxPyBeginAllowThreads();
28368 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28369
28370 wxPyEndAllowThreads(__tstate);
28371 if (PyErr_Occurred()) SWIG_fail;
28372 }
28373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28374 {
28375 if (temp3)
28376 delete arg3;
28377 }
28378 {
28379 if (temp7)
28380 delete arg7;
28381 }
28382 {
28383 if (temp9)
28384 delete arg9;
28385 }
28386 return resultobj;
28387 fail:
28388 {
28389 if (temp3)
28390 delete arg3;
28391 }
28392 {
28393 if (temp7)
28394 delete arg7;
28395 }
28396 {
28397 if (temp9)
28398 delete arg9;
28399 }
28400 return NULL;
28401 }
28402
28403
28404 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28405 PyObject *resultobj;
28406 wxGenericDirCtrl *result;
28407 char *kwnames[] = {
28408 NULL
28409 };
28410
28411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28412 {
28413 if (!wxPyCheckForApp()) SWIG_fail;
28414 PyThreadState* __tstate = wxPyBeginAllowThreads();
28415 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28416
28417 wxPyEndAllowThreads(__tstate);
28418 if (PyErr_Occurred()) SWIG_fail;
28419 }
28420 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28421 return resultobj;
28422 fail:
28423 return NULL;
28424 }
28425
28426
28427 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28428 PyObject *resultobj;
28429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28430 wxWindow *arg2 = (wxWindow *) 0 ;
28431 int arg3 = (int) (int)-1 ;
28432 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28433 wxString *arg4 = (wxString *) &arg4_defvalue ;
28434 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28435 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28436 wxSize const &arg6_defvalue = wxDefaultSize ;
28437 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28438 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28439 wxString const &arg8_defvalue = wxPyEmptyString ;
28440 wxString *arg8 = (wxString *) &arg8_defvalue ;
28441 int arg9 = (int) 0 ;
28442 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28443 wxString *arg10 = (wxString *) &arg10_defvalue ;
28444 bool result;
28445 bool temp4 = False ;
28446 wxPoint temp5 ;
28447 wxSize temp6 ;
28448 bool temp8 = False ;
28449 bool temp10 = False ;
28450 PyObject * obj0 = 0 ;
28451 PyObject * obj1 = 0 ;
28452 PyObject * obj2 = 0 ;
28453 PyObject * obj3 = 0 ;
28454 PyObject * obj4 = 0 ;
28455 PyObject * obj5 = 0 ;
28456 PyObject * obj6 = 0 ;
28457 PyObject * obj7 = 0 ;
28458 PyObject * obj8 = 0 ;
28459 PyObject * obj9 = 0 ;
28460 char *kwnames[] = {
28461 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28462 };
28463
28464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28469 if (obj2) {
28470 arg3 = (int)SWIG_As_int(obj2);
28471 if (PyErr_Occurred()) SWIG_fail;
28472 }
28473 if (obj3) {
28474 {
28475 arg4 = wxString_in_helper(obj3);
28476 if (arg4 == NULL) SWIG_fail;
28477 temp4 = True;
28478 }
28479 }
28480 if (obj4) {
28481 {
28482 arg5 = &temp5;
28483 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28484 }
28485 }
28486 if (obj5) {
28487 {
28488 arg6 = &temp6;
28489 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28490 }
28491 }
28492 if (obj6) {
28493 arg7 = (long)SWIG_As_long(obj6);
28494 if (PyErr_Occurred()) SWIG_fail;
28495 }
28496 if (obj7) {
28497 {
28498 arg8 = wxString_in_helper(obj7);
28499 if (arg8 == NULL) SWIG_fail;
28500 temp8 = True;
28501 }
28502 }
28503 if (obj8) {
28504 arg9 = (int)SWIG_As_int(obj8);
28505 if (PyErr_Occurred()) SWIG_fail;
28506 }
28507 if (obj9) {
28508 {
28509 arg10 = wxString_in_helper(obj9);
28510 if (arg10 == NULL) SWIG_fail;
28511 temp10 = True;
28512 }
28513 }
28514 {
28515 PyThreadState* __tstate = wxPyBeginAllowThreads();
28516 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28517
28518 wxPyEndAllowThreads(__tstate);
28519 if (PyErr_Occurred()) SWIG_fail;
28520 }
28521 {
28522 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28523 }
28524 {
28525 if (temp4)
28526 delete arg4;
28527 }
28528 {
28529 if (temp8)
28530 delete arg8;
28531 }
28532 {
28533 if (temp10)
28534 delete arg10;
28535 }
28536 return resultobj;
28537 fail:
28538 {
28539 if (temp4)
28540 delete arg4;
28541 }
28542 {
28543 if (temp8)
28544 delete arg8;
28545 }
28546 {
28547 if (temp10)
28548 delete arg10;
28549 }
28550 return NULL;
28551 }
28552
28553
28554 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28555 PyObject *resultobj;
28556 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28557 wxString *arg2 = 0 ;
28558 bool result;
28559 bool temp2 = False ;
28560 PyObject * obj0 = 0 ;
28561 PyObject * obj1 = 0 ;
28562 char *kwnames[] = {
28563 (char *) "self",(char *) "path", NULL
28564 };
28565
28566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28569 {
28570 arg2 = wxString_in_helper(obj1);
28571 if (arg2 == NULL) SWIG_fail;
28572 temp2 = True;
28573 }
28574 {
28575 PyThreadState* __tstate = wxPyBeginAllowThreads();
28576 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28577
28578 wxPyEndAllowThreads(__tstate);
28579 if (PyErr_Occurred()) SWIG_fail;
28580 }
28581 {
28582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28583 }
28584 {
28585 if (temp2)
28586 delete arg2;
28587 }
28588 return resultobj;
28589 fail:
28590 {
28591 if (temp2)
28592 delete arg2;
28593 }
28594 return NULL;
28595 }
28596
28597
28598 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28599 PyObject *resultobj;
28600 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28601 wxString result;
28602 PyObject * obj0 = 0 ;
28603 char *kwnames[] = {
28604 (char *) "self", NULL
28605 };
28606
28607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28608 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28610 {
28611 PyThreadState* __tstate = wxPyBeginAllowThreads();
28612 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28613
28614 wxPyEndAllowThreads(__tstate);
28615 if (PyErr_Occurred()) SWIG_fail;
28616 }
28617 {
28618 #if wxUSE_UNICODE
28619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28620 #else
28621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28622 #endif
28623 }
28624 return resultobj;
28625 fail:
28626 return NULL;
28627 }
28628
28629
28630 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28631 PyObject *resultobj;
28632 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28633 wxString *arg2 = 0 ;
28634 bool temp2 = False ;
28635 PyObject * obj0 = 0 ;
28636 PyObject * obj1 = 0 ;
28637 char *kwnames[] = {
28638 (char *) "self",(char *) "path", NULL
28639 };
28640
28641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28644 {
28645 arg2 = wxString_in_helper(obj1);
28646 if (arg2 == NULL) SWIG_fail;
28647 temp2 = True;
28648 }
28649 {
28650 PyThreadState* __tstate = wxPyBeginAllowThreads();
28651 (arg1)->SetDefaultPath((wxString const &)*arg2);
28652
28653 wxPyEndAllowThreads(__tstate);
28654 if (PyErr_Occurred()) SWIG_fail;
28655 }
28656 Py_INCREF(Py_None); resultobj = Py_None;
28657 {
28658 if (temp2)
28659 delete arg2;
28660 }
28661 return resultobj;
28662 fail:
28663 {
28664 if (temp2)
28665 delete arg2;
28666 }
28667 return NULL;
28668 }
28669
28670
28671 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28672 PyObject *resultobj;
28673 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28674 wxString result;
28675 PyObject * obj0 = 0 ;
28676 char *kwnames[] = {
28677 (char *) "self", NULL
28678 };
28679
28680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28683 {
28684 PyThreadState* __tstate = wxPyBeginAllowThreads();
28685 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28686
28687 wxPyEndAllowThreads(__tstate);
28688 if (PyErr_Occurred()) SWIG_fail;
28689 }
28690 {
28691 #if wxUSE_UNICODE
28692 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28693 #else
28694 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28695 #endif
28696 }
28697 return resultobj;
28698 fail:
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28706 wxString result;
28707 PyObject * obj0 = 0 ;
28708 char *kwnames[] = {
28709 (char *) "self", NULL
28710 };
28711
28712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
28713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28715 {
28716 PyThreadState* __tstate = wxPyBeginAllowThreads();
28717 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
28718
28719 wxPyEndAllowThreads(__tstate);
28720 if (PyErr_Occurred()) SWIG_fail;
28721 }
28722 {
28723 #if wxUSE_UNICODE
28724 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28725 #else
28726 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28727 #endif
28728 }
28729 return resultobj;
28730 fail:
28731 return NULL;
28732 }
28733
28734
28735 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28736 PyObject *resultobj;
28737 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28738 wxString *arg2 = 0 ;
28739 bool temp2 = False ;
28740 PyObject * obj0 = 0 ;
28741 PyObject * obj1 = 0 ;
28742 char *kwnames[] = {
28743 (char *) "self",(char *) "path", NULL
28744 };
28745
28746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
28747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28749 {
28750 arg2 = wxString_in_helper(obj1);
28751 if (arg2 == NULL) SWIG_fail;
28752 temp2 = True;
28753 }
28754 {
28755 PyThreadState* __tstate = wxPyBeginAllowThreads();
28756 (arg1)->SetPath((wxString const &)*arg2);
28757
28758 wxPyEndAllowThreads(__tstate);
28759 if (PyErr_Occurred()) SWIG_fail;
28760 }
28761 Py_INCREF(Py_None); resultobj = Py_None;
28762 {
28763 if (temp2)
28764 delete arg2;
28765 }
28766 return resultobj;
28767 fail:
28768 {
28769 if (temp2)
28770 delete arg2;
28771 }
28772 return NULL;
28773 }
28774
28775
28776 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28777 PyObject *resultobj;
28778 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28779 bool arg2 ;
28780 PyObject * obj0 = 0 ;
28781 PyObject * obj1 = 0 ;
28782 char *kwnames[] = {
28783 (char *) "self",(char *) "show", NULL
28784 };
28785
28786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
28787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28789 arg2 = (bool)SWIG_As_bool(obj1);
28790 if (PyErr_Occurred()) SWIG_fail;
28791 {
28792 PyThreadState* __tstate = wxPyBeginAllowThreads();
28793 (arg1)->ShowHidden(arg2);
28794
28795 wxPyEndAllowThreads(__tstate);
28796 if (PyErr_Occurred()) SWIG_fail;
28797 }
28798 Py_INCREF(Py_None); resultobj = Py_None;
28799 return resultobj;
28800 fail:
28801 return NULL;
28802 }
28803
28804
28805 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
28806 PyObject *resultobj;
28807 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28808 bool result;
28809 PyObject * obj0 = 0 ;
28810 char *kwnames[] = {
28811 (char *) "self", NULL
28812 };
28813
28814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
28815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28817 {
28818 PyThreadState* __tstate = wxPyBeginAllowThreads();
28819 result = (bool)(arg1)->GetShowHidden();
28820
28821 wxPyEndAllowThreads(__tstate);
28822 if (PyErr_Occurred()) SWIG_fail;
28823 }
28824 {
28825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28826 }
28827 return resultobj;
28828 fail:
28829 return NULL;
28830 }
28831
28832
28833 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28834 PyObject *resultobj;
28835 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28836 wxString result;
28837 PyObject * obj0 = 0 ;
28838 char *kwnames[] = {
28839 (char *) "self", NULL
28840 };
28841
28842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
28843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28845 {
28846 PyThreadState* __tstate = wxPyBeginAllowThreads();
28847 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
28848
28849 wxPyEndAllowThreads(__tstate);
28850 if (PyErr_Occurred()) SWIG_fail;
28851 }
28852 {
28853 #if wxUSE_UNICODE
28854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28855 #else
28856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28857 #endif
28858 }
28859 return resultobj;
28860 fail:
28861 return NULL;
28862 }
28863
28864
28865 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
28866 PyObject *resultobj;
28867 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28868 wxString *arg2 = 0 ;
28869 bool temp2 = False ;
28870 PyObject * obj0 = 0 ;
28871 PyObject * obj1 = 0 ;
28872 char *kwnames[] = {
28873 (char *) "self",(char *) "filter", NULL
28874 };
28875
28876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
28877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28879 {
28880 arg2 = wxString_in_helper(obj1);
28881 if (arg2 == NULL) SWIG_fail;
28882 temp2 = True;
28883 }
28884 {
28885 PyThreadState* __tstate = wxPyBeginAllowThreads();
28886 (arg1)->SetFilter((wxString const &)*arg2);
28887
28888 wxPyEndAllowThreads(__tstate);
28889 if (PyErr_Occurred()) SWIG_fail;
28890 }
28891 Py_INCREF(Py_None); resultobj = Py_None;
28892 {
28893 if (temp2)
28894 delete arg2;
28895 }
28896 return resultobj;
28897 fail:
28898 {
28899 if (temp2)
28900 delete arg2;
28901 }
28902 return NULL;
28903 }
28904
28905
28906 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28907 PyObject *resultobj;
28908 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28909 int result;
28910 PyObject * obj0 = 0 ;
28911 char *kwnames[] = {
28912 (char *) "self", NULL
28913 };
28914
28915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
28916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28918 {
28919 PyThreadState* __tstate = wxPyBeginAllowThreads();
28920 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
28921
28922 wxPyEndAllowThreads(__tstate);
28923 if (PyErr_Occurred()) SWIG_fail;
28924 }
28925 resultobj = SWIG_From_int((int)result);
28926 return resultobj;
28927 fail:
28928 return NULL;
28929 }
28930
28931
28932 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
28933 PyObject *resultobj;
28934 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28935 int arg2 ;
28936 PyObject * obj0 = 0 ;
28937 PyObject * obj1 = 0 ;
28938 char *kwnames[] = {
28939 (char *) "self",(char *) "n", NULL
28940 };
28941
28942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
28943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28945 arg2 = (int)SWIG_As_int(obj1);
28946 if (PyErr_Occurred()) SWIG_fail;
28947 {
28948 PyThreadState* __tstate = wxPyBeginAllowThreads();
28949 (arg1)->SetFilterIndex(arg2);
28950
28951 wxPyEndAllowThreads(__tstate);
28952 if (PyErr_Occurred()) SWIG_fail;
28953 }
28954 Py_INCREF(Py_None); resultobj = Py_None;
28955 return resultobj;
28956 fail:
28957 return NULL;
28958 }
28959
28960
28961 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
28962 PyObject *resultobj;
28963 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28964 wxTreeItemId result;
28965 PyObject * obj0 = 0 ;
28966 char *kwnames[] = {
28967 (char *) "self", NULL
28968 };
28969
28970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
28971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28973 {
28974 PyThreadState* __tstate = wxPyBeginAllowThreads();
28975 result = (arg1)->GetRootId();
28976
28977 wxPyEndAllowThreads(__tstate);
28978 if (PyErr_Occurred()) SWIG_fail;
28979 }
28980 {
28981 wxTreeItemId * resultptr;
28982 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28983 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28984 }
28985 return resultobj;
28986 fail:
28987 return NULL;
28988 }
28989
28990
28991 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28992 PyObject *resultobj;
28993 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28994 wxPyTreeCtrl *result;
28995 PyObject * obj0 = 0 ;
28996 char *kwnames[] = {
28997 (char *) "self", NULL
28998 };
28999
29000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29003 {
29004 PyThreadState* __tstate = wxPyBeginAllowThreads();
29005 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29006
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 {
29011 resultobj = wxPyMake_wxObject(result, 0);
29012 }
29013 return resultobj;
29014 fail:
29015 return NULL;
29016 }
29017
29018
29019 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29020 PyObject *resultobj;
29021 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29022 wxDirFilterListCtrl *result;
29023 PyObject * obj0 = 0 ;
29024 char *kwnames[] = {
29025 (char *) "self", NULL
29026 };
29027
29028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29031 {
29032 PyThreadState* __tstate = wxPyBeginAllowThreads();
29033 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29034
29035 wxPyEndAllowThreads(__tstate);
29036 if (PyErr_Occurred()) SWIG_fail;
29037 }
29038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29039 return resultobj;
29040 fail:
29041 return NULL;
29042 }
29043
29044
29045 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29046 PyObject *resultobj;
29047 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29048 wxTreeItemId arg2 ;
29049 wxString *arg3 = 0 ;
29050 bool *arg4 = 0 ;
29051 wxTreeItemId result;
29052 wxTreeItemId *argp2 ;
29053 bool temp3 = False ;
29054 bool temp4 ;
29055 int res4 = 0 ;
29056 PyObject * obj0 = 0 ;
29057 PyObject * obj1 = 0 ;
29058 PyObject * obj2 = 0 ;
29059 char *kwnames[] = {
29060 (char *) "self",(char *) "parentId",(char *) "path", NULL
29061 };
29062
29063 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29067 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29068 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29069 arg2 = *argp2;
29070 {
29071 arg3 = wxString_in_helper(obj2);
29072 if (arg3 == NULL) SWIG_fail;
29073 temp3 = True;
29074 }
29075 {
29076 PyThreadState* __tstate = wxPyBeginAllowThreads();
29077 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29078
29079 wxPyEndAllowThreads(__tstate);
29080 if (PyErr_Occurred()) SWIG_fail;
29081 }
29082 {
29083 wxTreeItemId * resultptr;
29084 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29085 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29086 }
29087 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29088 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29089 {
29090 if (temp3)
29091 delete arg3;
29092 }
29093 return resultobj;
29094 fail:
29095 {
29096 if (temp3)
29097 delete arg3;
29098 }
29099 return NULL;
29100 }
29101
29102
29103 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29104 PyObject *resultobj;
29105 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29106 PyObject * obj0 = 0 ;
29107 char *kwnames[] = {
29108 (char *) "self", NULL
29109 };
29110
29111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29114 {
29115 PyThreadState* __tstate = wxPyBeginAllowThreads();
29116 (arg1)->DoResize();
29117
29118 wxPyEndAllowThreads(__tstate);
29119 if (PyErr_Occurred()) SWIG_fail;
29120 }
29121 Py_INCREF(Py_None); resultobj = Py_None;
29122 return resultobj;
29123 fail:
29124 return NULL;
29125 }
29126
29127
29128 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29129 PyObject *resultobj;
29130 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29131 PyObject * obj0 = 0 ;
29132 char *kwnames[] = {
29133 (char *) "self", NULL
29134 };
29135
29136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29139 {
29140 PyThreadState* __tstate = wxPyBeginAllowThreads();
29141 (arg1)->ReCreateTree();
29142
29143 wxPyEndAllowThreads(__tstate);
29144 if (PyErr_Occurred()) SWIG_fail;
29145 }
29146 Py_INCREF(Py_None); resultobj = Py_None;
29147 return resultobj;
29148 fail:
29149 return NULL;
29150 }
29151
29152
29153 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29154 PyObject *obj;
29155 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29156 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29157 Py_INCREF(obj);
29158 return Py_BuildValue((char *)"");
29159 }
29160 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29161 PyObject *resultobj;
29162 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29163 int arg2 = (int) (int)-1 ;
29164 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29165 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29166 wxSize const &arg4_defvalue = wxDefaultSize ;
29167 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29168 long arg5 = (long) 0 ;
29169 wxDirFilterListCtrl *result;
29170 wxPoint temp3 ;
29171 wxSize temp4 ;
29172 PyObject * obj0 = 0 ;
29173 PyObject * obj1 = 0 ;
29174 PyObject * obj2 = 0 ;
29175 PyObject * obj3 = 0 ;
29176 PyObject * obj4 = 0 ;
29177 char *kwnames[] = {
29178 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29179 };
29180
29181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29184 if (obj1) {
29185 arg2 = (int)SWIG_As_int(obj1);
29186 if (PyErr_Occurred()) SWIG_fail;
29187 }
29188 if (obj2) {
29189 {
29190 arg3 = &temp3;
29191 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29192 }
29193 }
29194 if (obj3) {
29195 {
29196 arg4 = &temp4;
29197 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29198 }
29199 }
29200 if (obj4) {
29201 arg5 = (long)SWIG_As_long(obj4);
29202 if (PyErr_Occurred()) SWIG_fail;
29203 }
29204 {
29205 if (!wxPyCheckForApp()) SWIG_fail;
29206 PyThreadState* __tstate = wxPyBeginAllowThreads();
29207 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29208
29209 wxPyEndAllowThreads(__tstate);
29210 if (PyErr_Occurred()) SWIG_fail;
29211 }
29212 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29213 return resultobj;
29214 fail:
29215 return NULL;
29216 }
29217
29218
29219 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29220 PyObject *resultobj;
29221 wxDirFilterListCtrl *result;
29222 char *kwnames[] = {
29223 NULL
29224 };
29225
29226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29227 {
29228 if (!wxPyCheckForApp()) SWIG_fail;
29229 PyThreadState* __tstate = wxPyBeginAllowThreads();
29230 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29231
29232 wxPyEndAllowThreads(__tstate);
29233 if (PyErr_Occurred()) SWIG_fail;
29234 }
29235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29236 return resultobj;
29237 fail:
29238 return NULL;
29239 }
29240
29241
29242 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29243 PyObject *resultobj;
29244 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29245 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29246 int arg3 = (int) (int)-1 ;
29247 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29248 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29249 wxSize const &arg5_defvalue = wxDefaultSize ;
29250 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29251 long arg6 = (long) 0 ;
29252 bool result;
29253 wxPoint temp4 ;
29254 wxSize temp5 ;
29255 PyObject * obj0 = 0 ;
29256 PyObject * obj1 = 0 ;
29257 PyObject * obj2 = 0 ;
29258 PyObject * obj3 = 0 ;
29259 PyObject * obj4 = 0 ;
29260 PyObject * obj5 = 0 ;
29261 char *kwnames[] = {
29262 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29263 };
29264
29265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29270 if (obj2) {
29271 arg3 = (int)SWIG_As_int(obj2);
29272 if (PyErr_Occurred()) SWIG_fail;
29273 }
29274 if (obj3) {
29275 {
29276 arg4 = &temp4;
29277 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29278 }
29279 }
29280 if (obj4) {
29281 {
29282 arg5 = &temp5;
29283 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29284 }
29285 }
29286 if (obj5) {
29287 arg6 = (long)SWIG_As_long(obj5);
29288 if (PyErr_Occurred()) SWIG_fail;
29289 }
29290 {
29291 PyThreadState* __tstate = wxPyBeginAllowThreads();
29292 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29293
29294 wxPyEndAllowThreads(__tstate);
29295 if (PyErr_Occurred()) SWIG_fail;
29296 }
29297 {
29298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29299 }
29300 return resultobj;
29301 fail:
29302 return NULL;
29303 }
29304
29305
29306 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29307 PyObject *resultobj;
29308 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29309 wxString *arg2 = 0 ;
29310 int arg3 ;
29311 bool temp2 = False ;
29312 PyObject * obj0 = 0 ;
29313 PyObject * obj1 = 0 ;
29314 PyObject * obj2 = 0 ;
29315 char *kwnames[] = {
29316 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29317 };
29318
29319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29322 {
29323 arg2 = wxString_in_helper(obj1);
29324 if (arg2 == NULL) SWIG_fail;
29325 temp2 = True;
29326 }
29327 arg3 = (int)SWIG_As_int(obj2);
29328 if (PyErr_Occurred()) SWIG_fail;
29329 {
29330 PyThreadState* __tstate = wxPyBeginAllowThreads();
29331 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29332
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 Py_INCREF(Py_None); resultobj = Py_None;
29337 {
29338 if (temp2)
29339 delete arg2;
29340 }
29341 return resultobj;
29342 fail:
29343 {
29344 if (temp2)
29345 delete arg2;
29346 }
29347 return NULL;
29348 }
29349
29350
29351 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29352 PyObject *obj;
29353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29354 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29355 Py_INCREF(obj);
29356 return Py_BuildValue((char *)"");
29357 }
29358 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29359 PyObject *resultobj;
29360 wxWindow *arg1 = (wxWindow *) 0 ;
29361 int arg2 = (int) (int)-1 ;
29362 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29363 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29364 wxSize const &arg4_defvalue = wxDefaultSize ;
29365 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29366 long arg5 = (long) 0 ;
29367 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29368 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29369 wxString const &arg7_defvalue = wxPyControlNameStr ;
29370 wxString *arg7 = (wxString *) &arg7_defvalue ;
29371 wxPyControl *result;
29372 wxPoint temp3 ;
29373 wxSize temp4 ;
29374 bool temp7 = False ;
29375 PyObject * obj0 = 0 ;
29376 PyObject * obj1 = 0 ;
29377 PyObject * obj2 = 0 ;
29378 PyObject * obj3 = 0 ;
29379 PyObject * obj4 = 0 ;
29380 PyObject * obj5 = 0 ;
29381 PyObject * obj6 = 0 ;
29382 char *kwnames[] = {
29383 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29384 };
29385
29386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29389 if (obj1) {
29390 arg2 = (int)SWIG_As_int(obj1);
29391 if (PyErr_Occurred()) SWIG_fail;
29392 }
29393 if (obj2) {
29394 {
29395 arg3 = &temp3;
29396 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29397 }
29398 }
29399 if (obj3) {
29400 {
29401 arg4 = &temp4;
29402 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29403 }
29404 }
29405 if (obj4) {
29406 arg5 = (long)SWIG_As_long(obj4);
29407 if (PyErr_Occurred()) SWIG_fail;
29408 }
29409 if (obj5) {
29410 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29411 SWIG_POINTER_EXCEPTION | 0)) == -1)
29412 SWIG_fail;
29413 if (arg6 == NULL) {
29414 PyErr_SetString(PyExc_TypeError,"null reference");
29415 SWIG_fail;
29416 }
29417 }
29418 if (obj6) {
29419 {
29420 arg7 = wxString_in_helper(obj6);
29421 if (arg7 == NULL) SWIG_fail;
29422 temp7 = True;
29423 }
29424 }
29425 {
29426 if (!wxPyCheckForApp()) SWIG_fail;
29427 PyThreadState* __tstate = wxPyBeginAllowThreads();
29428 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29429
29430 wxPyEndAllowThreads(__tstate);
29431 if (PyErr_Occurred()) SWIG_fail;
29432 }
29433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29434 {
29435 if (temp7)
29436 delete arg7;
29437 }
29438 return resultobj;
29439 fail:
29440 {
29441 if (temp7)
29442 delete arg7;
29443 }
29444 return NULL;
29445 }
29446
29447
29448 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29449 PyObject *resultobj;
29450 wxPyControl *result;
29451 char *kwnames[] = {
29452 NULL
29453 };
29454
29455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29456 {
29457 if (!wxPyCheckForApp()) SWIG_fail;
29458 PyThreadState* __tstate = wxPyBeginAllowThreads();
29459 result = (wxPyControl *)new wxPyControl();
29460
29461 wxPyEndAllowThreads(__tstate);
29462 if (PyErr_Occurred()) SWIG_fail;
29463 }
29464 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29465 return resultobj;
29466 fail:
29467 return NULL;
29468 }
29469
29470
29471 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29472 PyObject *resultobj;
29473 wxPyControl *arg1 = (wxPyControl *) 0 ;
29474 PyObject *arg2 = (PyObject *) 0 ;
29475 PyObject *arg3 = (PyObject *) 0 ;
29476 PyObject * obj0 = 0 ;
29477 PyObject * obj1 = 0 ;
29478 PyObject * obj2 = 0 ;
29479 char *kwnames[] = {
29480 (char *) "self",(char *) "self",(char *) "_class", NULL
29481 };
29482
29483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29486 arg2 = obj1;
29487 arg3 = obj2;
29488 {
29489 PyThreadState* __tstate = wxPyBeginAllowThreads();
29490 (arg1)->_setCallbackInfo(arg2,arg3);
29491
29492 wxPyEndAllowThreads(__tstate);
29493 if (PyErr_Occurred()) SWIG_fail;
29494 }
29495 Py_INCREF(Py_None); resultobj = Py_None;
29496 return resultobj;
29497 fail:
29498 return NULL;
29499 }
29500
29501
29502 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj;
29504 wxPyControl *arg1 = (wxPyControl *) 0 ;
29505 wxSize *arg2 = 0 ;
29506 wxSize temp2 ;
29507 PyObject * obj0 = 0 ;
29508 PyObject * obj1 = 0 ;
29509 char *kwnames[] = {
29510 (char *) "self",(char *) "size", NULL
29511 };
29512
29513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29516 {
29517 arg2 = &temp2;
29518 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29519 }
29520 {
29521 PyThreadState* __tstate = wxPyBeginAllowThreads();
29522 (arg1)->SetBestSize((wxSize const &)*arg2);
29523
29524 wxPyEndAllowThreads(__tstate);
29525 if (PyErr_Occurred()) SWIG_fail;
29526 }
29527 Py_INCREF(Py_None); resultobj = Py_None;
29528 return resultobj;
29529 fail:
29530 return NULL;
29531 }
29532
29533
29534 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29535 PyObject *resultobj;
29536 wxPyControl *arg1 = (wxPyControl *) 0 ;
29537 int arg2 ;
29538 int arg3 ;
29539 int arg4 ;
29540 int arg5 ;
29541 PyObject * obj0 = 0 ;
29542 PyObject * obj1 = 0 ;
29543 PyObject * obj2 = 0 ;
29544 PyObject * obj3 = 0 ;
29545 PyObject * obj4 = 0 ;
29546 char *kwnames[] = {
29547 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29548 };
29549
29550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29553 arg2 = (int)SWIG_As_int(obj1);
29554 if (PyErr_Occurred()) SWIG_fail;
29555 arg3 = (int)SWIG_As_int(obj2);
29556 if (PyErr_Occurred()) SWIG_fail;
29557 arg4 = (int)SWIG_As_int(obj3);
29558 if (PyErr_Occurred()) SWIG_fail;
29559 arg5 = (int)SWIG_As_int(obj4);
29560 if (PyErr_Occurred()) SWIG_fail;
29561 {
29562 PyThreadState* __tstate = wxPyBeginAllowThreads();
29563 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29564
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 Py_INCREF(Py_None); resultobj = Py_None;
29569 return resultobj;
29570 fail:
29571 return NULL;
29572 }
29573
29574
29575 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29576 PyObject *resultobj;
29577 wxPyControl *arg1 = (wxPyControl *) 0 ;
29578 int arg2 ;
29579 int arg3 ;
29580 int arg4 ;
29581 int arg5 ;
29582 int arg6 = (int) wxSIZE_AUTO ;
29583 PyObject * obj0 = 0 ;
29584 PyObject * obj1 = 0 ;
29585 PyObject * obj2 = 0 ;
29586 PyObject * obj3 = 0 ;
29587 PyObject * obj4 = 0 ;
29588 PyObject * obj5 = 0 ;
29589 char *kwnames[] = {
29590 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29591 };
29592
29593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29596 arg2 = (int)SWIG_As_int(obj1);
29597 if (PyErr_Occurred()) SWIG_fail;
29598 arg3 = (int)SWIG_As_int(obj2);
29599 if (PyErr_Occurred()) SWIG_fail;
29600 arg4 = (int)SWIG_As_int(obj3);
29601 if (PyErr_Occurred()) SWIG_fail;
29602 arg5 = (int)SWIG_As_int(obj4);
29603 if (PyErr_Occurred()) SWIG_fail;
29604 if (obj5) {
29605 arg6 = (int)SWIG_As_int(obj5);
29606 if (PyErr_Occurred()) SWIG_fail;
29607 }
29608 {
29609 PyThreadState* __tstate = wxPyBeginAllowThreads();
29610 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29611
29612 wxPyEndAllowThreads(__tstate);
29613 if (PyErr_Occurred()) SWIG_fail;
29614 }
29615 Py_INCREF(Py_None); resultobj = Py_None;
29616 return resultobj;
29617 fail:
29618 return NULL;
29619 }
29620
29621
29622 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29623 PyObject *resultobj;
29624 wxPyControl *arg1 = (wxPyControl *) 0 ;
29625 int arg2 ;
29626 int arg3 ;
29627 PyObject * obj0 = 0 ;
29628 PyObject * obj1 = 0 ;
29629 PyObject * obj2 = 0 ;
29630 char *kwnames[] = {
29631 (char *) "self",(char *) "width",(char *) "height", NULL
29632 };
29633
29634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29637 arg2 = (int)SWIG_As_int(obj1);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 arg3 = (int)SWIG_As_int(obj2);
29640 if (PyErr_Occurred()) SWIG_fail;
29641 {
29642 PyThreadState* __tstate = wxPyBeginAllowThreads();
29643 (arg1)->base_DoSetClientSize(arg2,arg3);
29644
29645 wxPyEndAllowThreads(__tstate);
29646 if (PyErr_Occurred()) SWIG_fail;
29647 }
29648 Py_INCREF(Py_None); resultobj = Py_None;
29649 return resultobj;
29650 fail:
29651 return NULL;
29652 }
29653
29654
29655 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29656 PyObject *resultobj;
29657 wxPyControl *arg1 = (wxPyControl *) 0 ;
29658 int arg2 ;
29659 int arg3 ;
29660 PyObject * obj0 = 0 ;
29661 PyObject * obj1 = 0 ;
29662 PyObject * obj2 = 0 ;
29663 char *kwnames[] = {
29664 (char *) "self",(char *) "x",(char *) "y", NULL
29665 };
29666
29667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29670 arg2 = (int)SWIG_As_int(obj1);
29671 if (PyErr_Occurred()) SWIG_fail;
29672 arg3 = (int)SWIG_As_int(obj2);
29673 if (PyErr_Occurred()) SWIG_fail;
29674 {
29675 PyThreadState* __tstate = wxPyBeginAllowThreads();
29676 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29677
29678 wxPyEndAllowThreads(__tstate);
29679 if (PyErr_Occurred()) SWIG_fail;
29680 }
29681 Py_INCREF(Py_None); resultobj = Py_None;
29682 return resultobj;
29683 fail:
29684 return NULL;
29685 }
29686
29687
29688 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29689 PyObject *resultobj;
29690 wxPyControl *arg1 = (wxPyControl *) 0 ;
29691 int *arg2 = (int *) 0 ;
29692 int *arg3 = (int *) 0 ;
29693 int temp2 ;
29694 int res2 = 0 ;
29695 int temp3 ;
29696 int res3 = 0 ;
29697 PyObject * obj0 = 0 ;
29698 char *kwnames[] = {
29699 (char *) "self", NULL
29700 };
29701
29702 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29703 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
29705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29707 {
29708 PyThreadState* __tstate = wxPyBeginAllowThreads();
29709 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
29710
29711 wxPyEndAllowThreads(__tstate);
29712 if (PyErr_Occurred()) SWIG_fail;
29713 }
29714 Py_INCREF(Py_None); resultobj = Py_None;
29715 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29716 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29717 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29718 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29719 return resultobj;
29720 fail:
29721 return NULL;
29722 }
29723
29724
29725 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj;
29727 wxPyControl *arg1 = (wxPyControl *) 0 ;
29728 int *arg2 = (int *) 0 ;
29729 int *arg3 = (int *) 0 ;
29730 int temp2 ;
29731 int res2 = 0 ;
29732 int temp3 ;
29733 int res3 = 0 ;
29734 PyObject * obj0 = 0 ;
29735 char *kwnames[] = {
29736 (char *) "self", NULL
29737 };
29738
29739 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29740 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
29742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29744 {
29745 PyThreadState* __tstate = wxPyBeginAllowThreads();
29746 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
29747
29748 wxPyEndAllowThreads(__tstate);
29749 if (PyErr_Occurred()) SWIG_fail;
29750 }
29751 Py_INCREF(Py_None); resultobj = Py_None;
29752 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29753 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29754 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29755 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29756 return resultobj;
29757 fail:
29758 return NULL;
29759 }
29760
29761
29762 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
29763 PyObject *resultobj;
29764 wxPyControl *arg1 = (wxPyControl *) 0 ;
29765 int *arg2 = (int *) 0 ;
29766 int *arg3 = (int *) 0 ;
29767 int temp2 ;
29768 int res2 = 0 ;
29769 int temp3 ;
29770 int res3 = 0 ;
29771 PyObject * obj0 = 0 ;
29772 char *kwnames[] = {
29773 (char *) "self", NULL
29774 };
29775
29776 arg2 = &temp2; res2 = SWIG_NEWOBJ;
29777 arg3 = &temp3; res3 = SWIG_NEWOBJ;
29778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
29779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29781 {
29782 PyThreadState* __tstate = wxPyBeginAllowThreads();
29783 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
29784
29785 wxPyEndAllowThreads(__tstate);
29786 if (PyErr_Occurred()) SWIG_fail;
29787 }
29788 Py_INCREF(Py_None); resultobj = Py_None;
29789 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
29790 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
29791 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
29792 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
29793 return resultobj;
29794 fail:
29795 return NULL;
29796 }
29797
29798
29799 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29800 PyObject *resultobj;
29801 wxPyControl *arg1 = (wxPyControl *) 0 ;
29802 wxSize result;
29803 PyObject * obj0 = 0 ;
29804 char *kwnames[] = {
29805 (char *) "self", NULL
29806 };
29807
29808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
29809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29811 {
29812 PyThreadState* __tstate = wxPyBeginAllowThreads();
29813 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
29814
29815 wxPyEndAllowThreads(__tstate);
29816 if (PyErr_Occurred()) SWIG_fail;
29817 }
29818 {
29819 wxSize * resultptr;
29820 resultptr = new wxSize((wxSize &) result);
29821 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29822 }
29823 return resultobj;
29824 fail:
29825 return NULL;
29826 }
29827
29828
29829 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29830 PyObject *resultobj;
29831 wxPyControl *arg1 = (wxPyControl *) 0 ;
29832 wxSize result;
29833 PyObject * obj0 = 0 ;
29834 char *kwnames[] = {
29835 (char *) "self", NULL
29836 };
29837
29838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
29839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29841 {
29842 PyThreadState* __tstate = wxPyBeginAllowThreads();
29843 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
29844
29845 wxPyEndAllowThreads(__tstate);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 {
29849 wxSize * resultptr;
29850 resultptr = new wxSize((wxSize &) result);
29851 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
29852 }
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
29860 PyObject *resultobj;
29861 wxPyControl *arg1 = (wxPyControl *) 0 ;
29862 PyObject * obj0 = 0 ;
29863 char *kwnames[] = {
29864 (char *) "self", NULL
29865 };
29866
29867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
29868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29870 {
29871 PyThreadState* __tstate = wxPyBeginAllowThreads();
29872 (arg1)->base_InitDialog();
29873
29874 wxPyEndAllowThreads(__tstate);
29875 if (PyErr_Occurred()) SWIG_fail;
29876 }
29877 Py_INCREF(Py_None); resultobj = Py_None;
29878 return resultobj;
29879 fail:
29880 return NULL;
29881 }
29882
29883
29884 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29885 PyObject *resultobj;
29886 wxPyControl *arg1 = (wxPyControl *) 0 ;
29887 bool result;
29888 PyObject * obj0 = 0 ;
29889 char *kwnames[] = {
29890 (char *) "self", NULL
29891 };
29892
29893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
29894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29896 {
29897 PyThreadState* __tstate = wxPyBeginAllowThreads();
29898 result = (bool)(arg1)->base_TransferDataToWindow();
29899
29900 wxPyEndAllowThreads(__tstate);
29901 if (PyErr_Occurred()) SWIG_fail;
29902 }
29903 {
29904 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29905 }
29906 return resultobj;
29907 fail:
29908 return NULL;
29909 }
29910
29911
29912 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29913 PyObject *resultobj;
29914 wxPyControl *arg1 = (wxPyControl *) 0 ;
29915 bool result;
29916 PyObject * obj0 = 0 ;
29917 char *kwnames[] = {
29918 (char *) "self", NULL
29919 };
29920
29921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
29922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29924 {
29925 PyThreadState* __tstate = wxPyBeginAllowThreads();
29926 result = (bool)(arg1)->base_TransferDataFromWindow();
29927
29928 wxPyEndAllowThreads(__tstate);
29929 if (PyErr_Occurred()) SWIG_fail;
29930 }
29931 {
29932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29933 }
29934 return resultobj;
29935 fail:
29936 return NULL;
29937 }
29938
29939
29940 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
29941 PyObject *resultobj;
29942 wxPyControl *arg1 = (wxPyControl *) 0 ;
29943 bool result;
29944 PyObject * obj0 = 0 ;
29945 char *kwnames[] = {
29946 (char *) "self", NULL
29947 };
29948
29949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
29950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29952 {
29953 PyThreadState* __tstate = wxPyBeginAllowThreads();
29954 result = (bool)(arg1)->base_Validate();
29955
29956 wxPyEndAllowThreads(__tstate);
29957 if (PyErr_Occurred()) SWIG_fail;
29958 }
29959 {
29960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29961 }
29962 return resultobj;
29963 fail:
29964 return NULL;
29965 }
29966
29967
29968 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
29969 PyObject *resultobj;
29970 wxPyControl *arg1 = (wxPyControl *) 0 ;
29971 bool result;
29972 PyObject * obj0 = 0 ;
29973 char *kwnames[] = {
29974 (char *) "self", NULL
29975 };
29976
29977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
29978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29980 {
29981 PyThreadState* __tstate = wxPyBeginAllowThreads();
29982 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
29983
29984 wxPyEndAllowThreads(__tstate);
29985 if (PyErr_Occurred()) SWIG_fail;
29986 }
29987 {
29988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29989 }
29990 return resultobj;
29991 fail:
29992 return NULL;
29993 }
29994
29995
29996 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
29997 PyObject *resultobj;
29998 wxPyControl *arg1 = (wxPyControl *) 0 ;
29999 bool result;
30000 PyObject * obj0 = 0 ;
30001 char *kwnames[] = {
30002 (char *) "self", NULL
30003 };
30004
30005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30008 {
30009 PyThreadState* __tstate = wxPyBeginAllowThreads();
30010 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30011
30012 wxPyEndAllowThreads(__tstate);
30013 if (PyErr_Occurred()) SWIG_fail;
30014 }
30015 {
30016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30017 }
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj;
30026 wxPyControl *arg1 = (wxPyControl *) 0 ;
30027 wxSize result;
30028 PyObject * obj0 = 0 ;
30029 char *kwnames[] = {
30030 (char *) "self", NULL
30031 };
30032
30033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30036 {
30037 PyThreadState* __tstate = wxPyBeginAllowThreads();
30038 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30039
30040 wxPyEndAllowThreads(__tstate);
30041 if (PyErr_Occurred()) SWIG_fail;
30042 }
30043 {
30044 wxSize * resultptr;
30045 resultptr = new wxSize((wxSize &) result);
30046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30047 }
30048 return resultobj;
30049 fail:
30050 return NULL;
30051 }
30052
30053
30054 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30055 PyObject *resultobj;
30056 wxPyControl *arg1 = (wxPyControl *) 0 ;
30057 wxWindow *arg2 = (wxWindow *) 0 ;
30058 PyObject * obj0 = 0 ;
30059 PyObject * obj1 = 0 ;
30060 char *kwnames[] = {
30061 (char *) "self",(char *) "child", NULL
30062 };
30063
30064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30067 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30069 {
30070 PyThreadState* __tstate = wxPyBeginAllowThreads();
30071 (arg1)->base_AddChild(arg2);
30072
30073 wxPyEndAllowThreads(__tstate);
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 Py_INCREF(Py_None); resultobj = Py_None;
30077 return resultobj;
30078 fail:
30079 return NULL;
30080 }
30081
30082
30083 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30084 PyObject *resultobj;
30085 wxPyControl *arg1 = (wxPyControl *) 0 ;
30086 wxWindow *arg2 = (wxWindow *) 0 ;
30087 PyObject * obj0 = 0 ;
30088 PyObject * obj1 = 0 ;
30089 char *kwnames[] = {
30090 (char *) "self",(char *) "child", NULL
30091 };
30092
30093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30098 {
30099 PyThreadState* __tstate = wxPyBeginAllowThreads();
30100 (arg1)->base_RemoveChild(arg2);
30101
30102 wxPyEndAllowThreads(__tstate);
30103 if (PyErr_Occurred()) SWIG_fail;
30104 }
30105 Py_INCREF(Py_None); resultobj = Py_None;
30106 return resultobj;
30107 fail:
30108 return NULL;
30109 }
30110
30111
30112 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30113 PyObject *resultobj;
30114 wxPyControl *arg1 = (wxPyControl *) 0 ;
30115 bool result;
30116 PyObject * obj0 = 0 ;
30117 char *kwnames[] = {
30118 (char *) "self", NULL
30119 };
30120
30121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30124 {
30125 PyThreadState* __tstate = wxPyBeginAllowThreads();
30126 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30127
30128 wxPyEndAllowThreads(__tstate);
30129 if (PyErr_Occurred()) SWIG_fail;
30130 }
30131 {
30132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30133 }
30134 return resultobj;
30135 fail:
30136 return NULL;
30137 }
30138
30139
30140 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30141 PyObject *resultobj;
30142 wxPyControl *arg1 = (wxPyControl *) 0 ;
30143 wxColour *arg2 = 0 ;
30144 wxColour temp2 ;
30145 PyObject * obj0 = 0 ;
30146 PyObject * obj1 = 0 ;
30147 char *kwnames[] = {
30148 (char *) "self",(char *) "c", NULL
30149 };
30150
30151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30154 {
30155 arg2 = &temp2;
30156 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30157 }
30158 {
30159 PyThreadState* __tstate = wxPyBeginAllowThreads();
30160 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30161
30162 wxPyEndAllowThreads(__tstate);
30163 if (PyErr_Occurred()) SWIG_fail;
30164 }
30165 Py_INCREF(Py_None); resultobj = Py_None;
30166 return resultobj;
30167 fail:
30168 return NULL;
30169 }
30170
30171
30172 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30173 PyObject *resultobj;
30174 wxPyControl *arg1 = (wxPyControl *) 0 ;
30175 wxVisualAttributes result;
30176 PyObject * obj0 = 0 ;
30177 char *kwnames[] = {
30178 (char *) "self", NULL
30179 };
30180
30181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30184 {
30185 PyThreadState* __tstate = wxPyBeginAllowThreads();
30186 result = (arg1)->base_GetDefaultAttributes();
30187
30188 wxPyEndAllowThreads(__tstate);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 }
30191 {
30192 wxVisualAttributes * resultptr;
30193 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30194 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30195 }
30196 return resultobj;
30197 fail:
30198 return NULL;
30199 }
30200
30201
30202 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30203 PyObject *obj;
30204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30205 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30206 Py_INCREF(obj);
30207 return Py_BuildValue((char *)"");
30208 }
30209 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30210 PyObject *resultobj;
30211 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30212 int arg2 = (int) 0 ;
30213 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30214 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30215 wxHelpEvent *result;
30216 wxPoint temp3 ;
30217 PyObject * obj0 = 0 ;
30218 PyObject * obj1 = 0 ;
30219 PyObject * obj2 = 0 ;
30220 char *kwnames[] = {
30221 (char *) "type",(char *) "winid",(char *) "pt", NULL
30222 };
30223
30224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30225 if (obj0) {
30226 arg1 = (wxEventType)SWIG_As_int(obj0);
30227 if (PyErr_Occurred()) SWIG_fail;
30228 }
30229 if (obj1) {
30230 arg2 = (int)SWIG_As_int(obj1);
30231 if (PyErr_Occurred()) SWIG_fail;
30232 }
30233 if (obj2) {
30234 {
30235 arg3 = &temp3;
30236 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30237 }
30238 }
30239 {
30240 PyThreadState* __tstate = wxPyBeginAllowThreads();
30241 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30242
30243 wxPyEndAllowThreads(__tstate);
30244 if (PyErr_Occurred()) SWIG_fail;
30245 }
30246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30247 return resultobj;
30248 fail:
30249 return NULL;
30250 }
30251
30252
30253 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30254 PyObject *resultobj;
30255 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30256 wxPoint result;
30257 PyObject * obj0 = 0 ;
30258 char *kwnames[] = {
30259 (char *) "self", NULL
30260 };
30261
30262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30265 {
30266 PyThreadState* __tstate = wxPyBeginAllowThreads();
30267 result = ((wxHelpEvent const *)arg1)->GetPosition();
30268
30269 wxPyEndAllowThreads(__tstate);
30270 if (PyErr_Occurred()) SWIG_fail;
30271 }
30272 {
30273 wxPoint * resultptr;
30274 resultptr = new wxPoint((wxPoint &) result);
30275 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30276 }
30277 return resultobj;
30278 fail:
30279 return NULL;
30280 }
30281
30282
30283 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30284 PyObject *resultobj;
30285 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30286 wxPoint *arg2 = 0 ;
30287 wxPoint temp2 ;
30288 PyObject * obj0 = 0 ;
30289 PyObject * obj1 = 0 ;
30290 char *kwnames[] = {
30291 (char *) "self",(char *) "pos", NULL
30292 };
30293
30294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30297 {
30298 arg2 = &temp2;
30299 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30300 }
30301 {
30302 PyThreadState* __tstate = wxPyBeginAllowThreads();
30303 (arg1)->SetPosition((wxPoint const &)*arg2);
30304
30305 wxPyEndAllowThreads(__tstate);
30306 if (PyErr_Occurred()) SWIG_fail;
30307 }
30308 Py_INCREF(Py_None); resultobj = Py_None;
30309 return resultobj;
30310 fail:
30311 return NULL;
30312 }
30313
30314
30315 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30316 PyObject *resultobj;
30317 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30318 wxString *result;
30319 PyObject * obj0 = 0 ;
30320 char *kwnames[] = {
30321 (char *) "self", NULL
30322 };
30323
30324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30327 {
30328 PyThreadState* __tstate = wxPyBeginAllowThreads();
30329 {
30330 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30331 result = (wxString *) &_result_ref;
30332 }
30333
30334 wxPyEndAllowThreads(__tstate);
30335 if (PyErr_Occurred()) SWIG_fail;
30336 }
30337 {
30338 #if wxUSE_UNICODE
30339 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30340 #else
30341 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30342 #endif
30343 }
30344 return resultobj;
30345 fail:
30346 return NULL;
30347 }
30348
30349
30350 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30351 PyObject *resultobj;
30352 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30353 wxString *arg2 = 0 ;
30354 bool temp2 = False ;
30355 PyObject * obj0 = 0 ;
30356 PyObject * obj1 = 0 ;
30357 char *kwnames[] = {
30358 (char *) "self",(char *) "link", NULL
30359 };
30360
30361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30364 {
30365 arg2 = wxString_in_helper(obj1);
30366 if (arg2 == NULL) SWIG_fail;
30367 temp2 = True;
30368 }
30369 {
30370 PyThreadState* __tstate = wxPyBeginAllowThreads();
30371 (arg1)->SetLink((wxString const &)*arg2);
30372
30373 wxPyEndAllowThreads(__tstate);
30374 if (PyErr_Occurred()) SWIG_fail;
30375 }
30376 Py_INCREF(Py_None); resultobj = Py_None;
30377 {
30378 if (temp2)
30379 delete arg2;
30380 }
30381 return resultobj;
30382 fail:
30383 {
30384 if (temp2)
30385 delete arg2;
30386 }
30387 return NULL;
30388 }
30389
30390
30391 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30392 PyObject *resultobj;
30393 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30394 wxString *result;
30395 PyObject * obj0 = 0 ;
30396 char *kwnames[] = {
30397 (char *) "self", NULL
30398 };
30399
30400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30403 {
30404 PyThreadState* __tstate = wxPyBeginAllowThreads();
30405 {
30406 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30407 result = (wxString *) &_result_ref;
30408 }
30409
30410 wxPyEndAllowThreads(__tstate);
30411 if (PyErr_Occurred()) SWIG_fail;
30412 }
30413 {
30414 #if wxUSE_UNICODE
30415 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30416 #else
30417 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30418 #endif
30419 }
30420 return resultobj;
30421 fail:
30422 return NULL;
30423 }
30424
30425
30426 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30427 PyObject *resultobj;
30428 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30429 wxString *arg2 = 0 ;
30430 bool temp2 = False ;
30431 PyObject * obj0 = 0 ;
30432 PyObject * obj1 = 0 ;
30433 char *kwnames[] = {
30434 (char *) "self",(char *) "target", NULL
30435 };
30436
30437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30440 {
30441 arg2 = wxString_in_helper(obj1);
30442 if (arg2 == NULL) SWIG_fail;
30443 temp2 = True;
30444 }
30445 {
30446 PyThreadState* __tstate = wxPyBeginAllowThreads();
30447 (arg1)->SetTarget((wxString const &)*arg2);
30448
30449 wxPyEndAllowThreads(__tstate);
30450 if (PyErr_Occurred()) SWIG_fail;
30451 }
30452 Py_INCREF(Py_None); resultobj = Py_None;
30453 {
30454 if (temp2)
30455 delete arg2;
30456 }
30457 return resultobj;
30458 fail:
30459 {
30460 if (temp2)
30461 delete arg2;
30462 }
30463 return NULL;
30464 }
30465
30466
30467 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30468 PyObject *obj;
30469 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30470 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30471 Py_INCREF(obj);
30472 return Py_BuildValue((char *)"");
30473 }
30474 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30475 PyObject *resultobj;
30476 wxWindow *arg1 = (wxWindow *) NULL ;
30477 bool arg2 = (bool) True ;
30478 wxContextHelp *result;
30479 PyObject * obj0 = 0 ;
30480 PyObject * obj1 = 0 ;
30481 char *kwnames[] = {
30482 (char *) "window",(char *) "doNow", NULL
30483 };
30484
30485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30486 if (obj0) {
30487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30489 }
30490 if (obj1) {
30491 arg2 = (bool)SWIG_As_bool(obj1);
30492 if (PyErr_Occurred()) SWIG_fail;
30493 }
30494 {
30495 if (!wxPyCheckForApp()) SWIG_fail;
30496 PyThreadState* __tstate = wxPyBeginAllowThreads();
30497 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30498
30499 wxPyEndAllowThreads(__tstate);
30500 if (PyErr_Occurred()) SWIG_fail;
30501 }
30502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30503 return resultobj;
30504 fail:
30505 return NULL;
30506 }
30507
30508
30509 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30510 PyObject *resultobj;
30511 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30512 PyObject * obj0 = 0 ;
30513 char *kwnames[] = {
30514 (char *) "self", NULL
30515 };
30516
30517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30520 {
30521 PyThreadState* __tstate = wxPyBeginAllowThreads();
30522 delete arg1;
30523
30524 wxPyEndAllowThreads(__tstate);
30525 if (PyErr_Occurred()) SWIG_fail;
30526 }
30527 Py_INCREF(Py_None); resultobj = Py_None;
30528 return resultobj;
30529 fail:
30530 return NULL;
30531 }
30532
30533
30534 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30535 PyObject *resultobj;
30536 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30537 wxWindow *arg2 = (wxWindow *) NULL ;
30538 bool result;
30539 PyObject * obj0 = 0 ;
30540 PyObject * obj1 = 0 ;
30541 char *kwnames[] = {
30542 (char *) "self",(char *) "window", NULL
30543 };
30544
30545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30548 if (obj1) {
30549 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30551 }
30552 {
30553 PyThreadState* __tstate = wxPyBeginAllowThreads();
30554 result = (bool)(arg1)->BeginContextHelp(arg2);
30555
30556 wxPyEndAllowThreads(__tstate);
30557 if (PyErr_Occurred()) SWIG_fail;
30558 }
30559 {
30560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30561 }
30562 return resultobj;
30563 fail:
30564 return NULL;
30565 }
30566
30567
30568 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30569 PyObject *resultobj;
30570 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30571 bool result;
30572 PyObject * obj0 = 0 ;
30573 char *kwnames[] = {
30574 (char *) "self", NULL
30575 };
30576
30577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 result = (bool)(arg1)->EndContextHelp();
30583
30584 wxPyEndAllowThreads(__tstate);
30585 if (PyErr_Occurred()) SWIG_fail;
30586 }
30587 {
30588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30589 }
30590 return resultobj;
30591 fail:
30592 return NULL;
30593 }
30594
30595
30596 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30597 PyObject *obj;
30598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30599 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30600 Py_INCREF(obj);
30601 return Py_BuildValue((char *)"");
30602 }
30603 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30604 PyObject *resultobj;
30605 wxWindow *arg1 = (wxWindow *) 0 ;
30606 int arg2 = (int) wxID_CONTEXT_HELP ;
30607 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30608 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30609 wxSize const &arg4_defvalue = wxDefaultSize ;
30610 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30611 long arg5 = (long) wxBU_AUTODRAW ;
30612 wxContextHelpButton *result;
30613 wxPoint temp3 ;
30614 wxSize temp4 ;
30615 PyObject * obj0 = 0 ;
30616 PyObject * obj1 = 0 ;
30617 PyObject * obj2 = 0 ;
30618 PyObject * obj3 = 0 ;
30619 PyObject * obj4 = 0 ;
30620 char *kwnames[] = {
30621 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30622 };
30623
30624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30627 if (obj1) {
30628 arg2 = (int)SWIG_As_int(obj1);
30629 if (PyErr_Occurred()) SWIG_fail;
30630 }
30631 if (obj2) {
30632 {
30633 arg3 = &temp3;
30634 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30635 }
30636 }
30637 if (obj3) {
30638 {
30639 arg4 = &temp4;
30640 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30641 }
30642 }
30643 if (obj4) {
30644 arg5 = (long)SWIG_As_long(obj4);
30645 if (PyErr_Occurred()) SWIG_fail;
30646 }
30647 {
30648 if (!wxPyCheckForApp()) SWIG_fail;
30649 PyThreadState* __tstate = wxPyBeginAllowThreads();
30650 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30651
30652 wxPyEndAllowThreads(__tstate);
30653 if (PyErr_Occurred()) SWIG_fail;
30654 }
30655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30656 return resultobj;
30657 fail:
30658 return NULL;
30659 }
30660
30661
30662 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30663 PyObject *obj;
30664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30665 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30666 Py_INCREF(obj);
30667 return Py_BuildValue((char *)"");
30668 }
30669 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30670 PyObject *resultobj;
30671 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30672 wxHelpProvider *result;
30673 PyObject * obj0 = 0 ;
30674 char *kwnames[] = {
30675 (char *) "helpProvider", NULL
30676 };
30677
30678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30681 {
30682 PyThreadState* __tstate = wxPyBeginAllowThreads();
30683 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30684
30685 wxPyEndAllowThreads(__tstate);
30686 if (PyErr_Occurred()) SWIG_fail;
30687 }
30688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30689 return resultobj;
30690 fail:
30691 return NULL;
30692 }
30693
30694
30695 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30696 PyObject *resultobj;
30697 wxHelpProvider *result;
30698 char *kwnames[] = {
30699 NULL
30700 };
30701
30702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
30703 {
30704 PyThreadState* __tstate = wxPyBeginAllowThreads();
30705 result = (wxHelpProvider *)wxHelpProvider::Get();
30706
30707 wxPyEndAllowThreads(__tstate);
30708 if (PyErr_Occurred()) SWIG_fail;
30709 }
30710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30711 return resultobj;
30712 fail:
30713 return NULL;
30714 }
30715
30716
30717 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30718 PyObject *resultobj;
30719 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30720 wxWindow *arg2 = (wxWindow *) 0 ;
30721 wxString result;
30722 PyObject * obj0 = 0 ;
30723 PyObject * obj1 = 0 ;
30724 char *kwnames[] = {
30725 (char *) "self",(char *) "window", NULL
30726 };
30727
30728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
30729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30731 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30733 {
30734 PyThreadState* __tstate = wxPyBeginAllowThreads();
30735 result = (arg1)->GetHelp((wxWindow const *)arg2);
30736
30737 wxPyEndAllowThreads(__tstate);
30738 if (PyErr_Occurred()) SWIG_fail;
30739 }
30740 {
30741 #if wxUSE_UNICODE
30742 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
30743 #else
30744 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
30745 #endif
30746 }
30747 return resultobj;
30748 fail:
30749 return NULL;
30750 }
30751
30752
30753 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30754 PyObject *resultobj;
30755 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30756 wxWindow *arg2 = (wxWindow *) 0 ;
30757 bool result;
30758 PyObject * obj0 = 0 ;
30759 PyObject * obj1 = 0 ;
30760 char *kwnames[] = {
30761 (char *) "self",(char *) "window", NULL
30762 };
30763
30764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
30765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30767 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (bool)(arg1)->ShowHelp(arg2);
30772
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 {
30777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30778 }
30779 return resultobj;
30780 fail:
30781 return NULL;
30782 }
30783
30784
30785 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30786 PyObject *resultobj;
30787 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30788 wxWindow *arg2 = (wxWindow *) 0 ;
30789 wxString *arg3 = 0 ;
30790 bool temp3 = False ;
30791 PyObject * obj0 = 0 ;
30792 PyObject * obj1 = 0 ;
30793 PyObject * obj2 = 0 ;
30794 char *kwnames[] = {
30795 (char *) "self",(char *) "window",(char *) "text", NULL
30796 };
30797
30798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
30799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30801 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30803 {
30804 arg3 = wxString_in_helper(obj2);
30805 if (arg3 == NULL) SWIG_fail;
30806 temp3 = True;
30807 }
30808 {
30809 PyThreadState* __tstate = wxPyBeginAllowThreads();
30810 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30811
30812 wxPyEndAllowThreads(__tstate);
30813 if (PyErr_Occurred()) SWIG_fail;
30814 }
30815 Py_INCREF(Py_None); resultobj = Py_None;
30816 {
30817 if (temp3)
30818 delete arg3;
30819 }
30820 return resultobj;
30821 fail:
30822 {
30823 if (temp3)
30824 delete arg3;
30825 }
30826 return NULL;
30827 }
30828
30829
30830 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
30831 PyObject *resultobj;
30832 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30833 int arg2 ;
30834 wxString *arg3 = 0 ;
30835 bool temp3 = False ;
30836 PyObject * obj0 = 0 ;
30837 PyObject * obj1 = 0 ;
30838 PyObject * obj2 = 0 ;
30839 char *kwnames[] = {
30840 (char *) "self",(char *) "id",(char *) "text", NULL
30841 };
30842
30843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
30844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30846 arg2 = (int)SWIG_As_int(obj1);
30847 if (PyErr_Occurred()) SWIG_fail;
30848 {
30849 arg3 = wxString_in_helper(obj2);
30850 if (arg3 == NULL) SWIG_fail;
30851 temp3 = True;
30852 }
30853 {
30854 PyThreadState* __tstate = wxPyBeginAllowThreads();
30855 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
30856
30857 wxPyEndAllowThreads(__tstate);
30858 if (PyErr_Occurred()) SWIG_fail;
30859 }
30860 Py_INCREF(Py_None); resultobj = Py_None;
30861 {
30862 if (temp3)
30863 delete arg3;
30864 }
30865 return resultobj;
30866 fail:
30867 {
30868 if (temp3)
30869 delete arg3;
30870 }
30871 return NULL;
30872 }
30873
30874
30875 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30876 PyObject *resultobj;
30877 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30878 wxWindow *arg2 = (wxWindow *) 0 ;
30879 PyObject * obj0 = 0 ;
30880 PyObject * obj1 = 0 ;
30881 char *kwnames[] = {
30882 (char *) "self",(char *) "window", NULL
30883 };
30884
30885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
30886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30888 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30890 {
30891 PyThreadState* __tstate = wxPyBeginAllowThreads();
30892 (arg1)->RemoveHelp(arg2);
30893
30894 wxPyEndAllowThreads(__tstate);
30895 if (PyErr_Occurred()) SWIG_fail;
30896 }
30897 Py_INCREF(Py_None); resultobj = Py_None;
30898 return resultobj;
30899 fail:
30900 return NULL;
30901 }
30902
30903
30904 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
30905 PyObject *resultobj;
30906 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30907 PyObject * obj0 = 0 ;
30908 char *kwnames[] = {
30909 (char *) "self", NULL
30910 };
30911
30912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
30913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30915 {
30916 PyThreadState* __tstate = wxPyBeginAllowThreads();
30917 wxHelpProvider_Destroy(arg1);
30918
30919 wxPyEndAllowThreads(__tstate);
30920 if (PyErr_Occurred()) SWIG_fail;
30921 }
30922 Py_INCREF(Py_None); resultobj = Py_None;
30923 return resultobj;
30924 fail:
30925 return NULL;
30926 }
30927
30928
30929 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
30930 PyObject *obj;
30931 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30932 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
30933 Py_INCREF(obj);
30934 return Py_BuildValue((char *)"");
30935 }
30936 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
30937 PyObject *resultobj;
30938 wxSimpleHelpProvider *result;
30939 char *kwnames[] = {
30940 NULL
30941 };
30942
30943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
30944 {
30945 PyThreadState* __tstate = wxPyBeginAllowThreads();
30946 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
30947
30948 wxPyEndAllowThreads(__tstate);
30949 if (PyErr_Occurred()) SWIG_fail;
30950 }
30951 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
30952 return resultobj;
30953 fail:
30954 return NULL;
30955 }
30956
30957
30958 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
30959 PyObject *obj;
30960 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30961 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
30962 Py_INCREF(obj);
30963 return Py_BuildValue((char *)"");
30964 }
30965 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
30966 PyObject *resultobj;
30967 wxBitmap *arg1 = 0 ;
30968 wxCursor const &arg2_defvalue = wxNullCursor ;
30969 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
30970 wxGenericDragImage *result;
30971 PyObject * obj0 = 0 ;
30972 PyObject * obj1 = 0 ;
30973 char *kwnames[] = {
30974 (char *) "image",(char *) "cursor", NULL
30975 };
30976
30977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
30978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1)
30980 SWIG_fail;
30981 if (arg1 == NULL) {
30982 PyErr_SetString(PyExc_TypeError,"null reference");
30983 SWIG_fail;
30984 }
30985 if (obj1) {
30986 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
30987 SWIG_POINTER_EXCEPTION | 0)) == -1)
30988 SWIG_fail;
30989 if (arg2 == NULL) {
30990 PyErr_SetString(PyExc_TypeError,"null reference");
30991 SWIG_fail;
30992 }
30993 }
30994 {
30995 if (!wxPyCheckForApp()) SWIG_fail;
30996 PyThreadState* __tstate = wxPyBeginAllowThreads();
30997 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
30998
30999 wxPyEndAllowThreads(__tstate);
31000 if (PyErr_Occurred()) SWIG_fail;
31001 }
31002 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31003 return resultobj;
31004 fail:
31005 return NULL;
31006 }
31007
31008
31009 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31010 PyObject *resultobj;
31011 wxIcon *arg1 = 0 ;
31012 wxCursor const &arg2_defvalue = wxNullCursor ;
31013 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31014 wxGenericDragImage *result;
31015 PyObject * obj0 = 0 ;
31016 PyObject * obj1 = 0 ;
31017 char *kwnames[] = {
31018 (char *) "image",(char *) "cursor", NULL
31019 };
31020
31021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31023 SWIG_POINTER_EXCEPTION | 0)) == -1)
31024 SWIG_fail;
31025 if (arg1 == NULL) {
31026 PyErr_SetString(PyExc_TypeError,"null reference");
31027 SWIG_fail;
31028 }
31029 if (obj1) {
31030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31031 SWIG_POINTER_EXCEPTION | 0)) == -1)
31032 SWIG_fail;
31033 if (arg2 == NULL) {
31034 PyErr_SetString(PyExc_TypeError,"null reference");
31035 SWIG_fail;
31036 }
31037 }
31038 {
31039 if (!wxPyCheckForApp()) SWIG_fail;
31040 PyThreadState* __tstate = wxPyBeginAllowThreads();
31041 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31042
31043 wxPyEndAllowThreads(__tstate);
31044 if (PyErr_Occurred()) SWIG_fail;
31045 }
31046 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31047 return resultobj;
31048 fail:
31049 return NULL;
31050 }
31051
31052
31053 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31054 PyObject *resultobj;
31055 wxString *arg1 = 0 ;
31056 wxCursor const &arg2_defvalue = wxNullCursor ;
31057 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31058 wxGenericDragImage *result;
31059 bool temp1 = False ;
31060 PyObject * obj0 = 0 ;
31061 PyObject * obj1 = 0 ;
31062 char *kwnames[] = {
31063 (char *) "str",(char *) "cursor", NULL
31064 };
31065
31066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31067 {
31068 arg1 = wxString_in_helper(obj0);
31069 if (arg1 == NULL) SWIG_fail;
31070 temp1 = True;
31071 }
31072 if (obj1) {
31073 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31074 SWIG_POINTER_EXCEPTION | 0)) == -1)
31075 SWIG_fail;
31076 if (arg2 == NULL) {
31077 PyErr_SetString(PyExc_TypeError,"null reference");
31078 SWIG_fail;
31079 }
31080 }
31081 {
31082 if (!wxPyCheckForApp()) SWIG_fail;
31083 PyThreadState* __tstate = wxPyBeginAllowThreads();
31084 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31085
31086 wxPyEndAllowThreads(__tstate);
31087 if (PyErr_Occurred()) SWIG_fail;
31088 }
31089 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31090 {
31091 if (temp1)
31092 delete arg1;
31093 }
31094 return resultobj;
31095 fail:
31096 {
31097 if (temp1)
31098 delete arg1;
31099 }
31100 return NULL;
31101 }
31102
31103
31104 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31105 PyObject *resultobj;
31106 wxPyTreeCtrl *arg1 = 0 ;
31107 wxTreeItemId *arg2 = 0 ;
31108 wxGenericDragImage *result;
31109 PyObject * obj0 = 0 ;
31110 PyObject * obj1 = 0 ;
31111 char *kwnames[] = {
31112 (char *) "treeCtrl",(char *) "id", NULL
31113 };
31114
31115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31117 SWIG_POINTER_EXCEPTION | 0)) == -1)
31118 SWIG_fail;
31119 if (arg1 == NULL) {
31120 PyErr_SetString(PyExc_TypeError,"null reference");
31121 SWIG_fail;
31122 }
31123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31124 SWIG_POINTER_EXCEPTION | 0)) == -1)
31125 SWIG_fail;
31126 if (arg2 == NULL) {
31127 PyErr_SetString(PyExc_TypeError,"null reference");
31128 SWIG_fail;
31129 }
31130 {
31131 if (!wxPyCheckForApp()) SWIG_fail;
31132 PyThreadState* __tstate = wxPyBeginAllowThreads();
31133 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31134
31135 wxPyEndAllowThreads(__tstate);
31136 if (PyErr_Occurred()) SWIG_fail;
31137 }
31138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31139 return resultobj;
31140 fail:
31141 return NULL;
31142 }
31143
31144
31145 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31146 PyObject *resultobj;
31147 wxPyListCtrl *arg1 = 0 ;
31148 long arg2 ;
31149 wxGenericDragImage *result;
31150 PyObject * obj0 = 0 ;
31151 PyObject * obj1 = 0 ;
31152 char *kwnames[] = {
31153 (char *) "listCtrl",(char *) "id", NULL
31154 };
31155
31156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31158 SWIG_POINTER_EXCEPTION | 0)) == -1)
31159 SWIG_fail;
31160 if (arg1 == NULL) {
31161 PyErr_SetString(PyExc_TypeError,"null reference");
31162 SWIG_fail;
31163 }
31164 arg2 = (long)SWIG_As_long(obj1);
31165 if (PyErr_Occurred()) SWIG_fail;
31166 {
31167 if (!wxPyCheckForApp()) SWIG_fail;
31168 PyThreadState* __tstate = wxPyBeginAllowThreads();
31169 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31170
31171 wxPyEndAllowThreads(__tstate);
31172 if (PyErr_Occurred()) SWIG_fail;
31173 }
31174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31175 return resultobj;
31176 fail:
31177 return NULL;
31178 }
31179
31180
31181 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31182 PyObject *resultobj;
31183 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31184 PyObject * obj0 = 0 ;
31185 char *kwnames[] = {
31186 (char *) "self", NULL
31187 };
31188
31189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31192 {
31193 PyThreadState* __tstate = wxPyBeginAllowThreads();
31194 delete arg1;
31195
31196 wxPyEndAllowThreads(__tstate);
31197 if (PyErr_Occurred()) SWIG_fail;
31198 }
31199 Py_INCREF(Py_None); resultobj = Py_None;
31200 return resultobj;
31201 fail:
31202 return NULL;
31203 }
31204
31205
31206 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31207 PyObject *resultobj;
31208 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31209 wxBitmap *arg2 = (wxBitmap *) 0 ;
31210 PyObject * obj0 = 0 ;
31211 PyObject * obj1 = 0 ;
31212 char *kwnames[] = {
31213 (char *) "self",(char *) "bitmap", NULL
31214 };
31215
31216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31219 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31221 {
31222 PyThreadState* __tstate = wxPyBeginAllowThreads();
31223 (arg1)->SetBackingBitmap(arg2);
31224
31225 wxPyEndAllowThreads(__tstate);
31226 if (PyErr_Occurred()) SWIG_fail;
31227 }
31228 Py_INCREF(Py_None); resultobj = Py_None;
31229 return resultobj;
31230 fail:
31231 return NULL;
31232 }
31233
31234
31235 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31236 PyObject *resultobj;
31237 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31238 wxPoint *arg2 = 0 ;
31239 wxWindow *arg3 = (wxWindow *) 0 ;
31240 bool arg4 = (bool) False ;
31241 wxRect *arg5 = (wxRect *) NULL ;
31242 bool result;
31243 wxPoint temp2 ;
31244 PyObject * obj0 = 0 ;
31245 PyObject * obj1 = 0 ;
31246 PyObject * obj2 = 0 ;
31247 PyObject * obj3 = 0 ;
31248 PyObject * obj4 = 0 ;
31249 char *kwnames[] = {
31250 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31251 };
31252
31253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31256 {
31257 arg2 = &temp2;
31258 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31259 }
31260 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31262 if (obj3) {
31263 arg4 = (bool)SWIG_As_bool(obj3);
31264 if (PyErr_Occurred()) SWIG_fail;
31265 }
31266 if (obj4) {
31267 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31269 }
31270 {
31271 PyThreadState* __tstate = wxPyBeginAllowThreads();
31272 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31273
31274 wxPyEndAllowThreads(__tstate);
31275 if (PyErr_Occurred()) SWIG_fail;
31276 }
31277 {
31278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31279 }
31280 return resultobj;
31281 fail:
31282 return NULL;
31283 }
31284
31285
31286 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31287 PyObject *resultobj;
31288 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31289 wxPoint *arg2 = 0 ;
31290 wxWindow *arg3 = (wxWindow *) 0 ;
31291 wxWindow *arg4 = (wxWindow *) 0 ;
31292 bool result;
31293 wxPoint temp2 ;
31294 PyObject * obj0 = 0 ;
31295 PyObject * obj1 = 0 ;
31296 PyObject * obj2 = 0 ;
31297 PyObject * obj3 = 0 ;
31298 char *kwnames[] = {
31299 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31300 };
31301
31302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31305 {
31306 arg2 = &temp2;
31307 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31308 }
31309 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31311 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31313 {
31314 PyThreadState* __tstate = wxPyBeginAllowThreads();
31315 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31316
31317 wxPyEndAllowThreads(__tstate);
31318 if (PyErr_Occurred()) SWIG_fail;
31319 }
31320 {
31321 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31322 }
31323 return resultobj;
31324 fail:
31325 return NULL;
31326 }
31327
31328
31329 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31330 PyObject *resultobj;
31331 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31332 bool result;
31333 PyObject * obj0 = 0 ;
31334 char *kwnames[] = {
31335 (char *) "self", NULL
31336 };
31337
31338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31341 {
31342 PyThreadState* __tstate = wxPyBeginAllowThreads();
31343 result = (bool)(arg1)->EndDrag();
31344
31345 wxPyEndAllowThreads(__tstate);
31346 if (PyErr_Occurred()) SWIG_fail;
31347 }
31348 {
31349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31350 }
31351 return resultobj;
31352 fail:
31353 return NULL;
31354 }
31355
31356
31357 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31358 PyObject *resultobj;
31359 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31360 wxPoint *arg2 = 0 ;
31361 bool result;
31362 wxPoint temp2 ;
31363 PyObject * obj0 = 0 ;
31364 PyObject * obj1 = 0 ;
31365 char *kwnames[] = {
31366 (char *) "self",(char *) "pt", NULL
31367 };
31368
31369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31372 {
31373 arg2 = &temp2;
31374 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31375 }
31376 {
31377 PyThreadState* __tstate = wxPyBeginAllowThreads();
31378 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31379
31380 wxPyEndAllowThreads(__tstate);
31381 if (PyErr_Occurred()) SWIG_fail;
31382 }
31383 {
31384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31385 }
31386 return resultobj;
31387 fail:
31388 return NULL;
31389 }
31390
31391
31392 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31393 PyObject *resultobj;
31394 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31395 bool result;
31396 PyObject * obj0 = 0 ;
31397 char *kwnames[] = {
31398 (char *) "self", NULL
31399 };
31400
31401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31404 {
31405 PyThreadState* __tstate = wxPyBeginAllowThreads();
31406 result = (bool)(arg1)->Show();
31407
31408 wxPyEndAllowThreads(__tstate);
31409 if (PyErr_Occurred()) SWIG_fail;
31410 }
31411 {
31412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31413 }
31414 return resultobj;
31415 fail:
31416 return NULL;
31417 }
31418
31419
31420 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31421 PyObject *resultobj;
31422 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31423 bool result;
31424 PyObject * obj0 = 0 ;
31425 char *kwnames[] = {
31426 (char *) "self", NULL
31427 };
31428
31429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31432 {
31433 PyThreadState* __tstate = wxPyBeginAllowThreads();
31434 result = (bool)(arg1)->Hide();
31435
31436 wxPyEndAllowThreads(__tstate);
31437 if (PyErr_Occurred()) SWIG_fail;
31438 }
31439 {
31440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31441 }
31442 return resultobj;
31443 fail:
31444 return NULL;
31445 }
31446
31447
31448 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31449 PyObject *resultobj;
31450 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31451 wxPoint *arg2 = 0 ;
31452 wxRect result;
31453 wxPoint temp2 ;
31454 PyObject * obj0 = 0 ;
31455 PyObject * obj1 = 0 ;
31456 char *kwnames[] = {
31457 (char *) "self",(char *) "pos", NULL
31458 };
31459
31460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31463 {
31464 arg2 = &temp2;
31465 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31466 }
31467 {
31468 PyThreadState* __tstate = wxPyBeginAllowThreads();
31469 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31470
31471 wxPyEndAllowThreads(__tstate);
31472 if (PyErr_Occurred()) SWIG_fail;
31473 }
31474 {
31475 wxRect * resultptr;
31476 resultptr = new wxRect((wxRect &) result);
31477 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31478 }
31479 return resultobj;
31480 fail:
31481 return NULL;
31482 }
31483
31484
31485 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31486 PyObject *resultobj;
31487 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31488 wxDC *arg2 = 0 ;
31489 wxPoint *arg3 = 0 ;
31490 bool result;
31491 wxPoint temp3 ;
31492 PyObject * obj0 = 0 ;
31493 PyObject * obj1 = 0 ;
31494 PyObject * obj2 = 0 ;
31495 char *kwnames[] = {
31496 (char *) "self",(char *) "dc",(char *) "pos", NULL
31497 };
31498
31499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31502 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31503 SWIG_POINTER_EXCEPTION | 0)) == -1)
31504 SWIG_fail;
31505 if (arg2 == NULL) {
31506 PyErr_SetString(PyExc_TypeError,"null reference");
31507 SWIG_fail;
31508 }
31509 {
31510 arg3 = &temp3;
31511 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31512 }
31513 {
31514 PyThreadState* __tstate = wxPyBeginAllowThreads();
31515 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31516
31517 wxPyEndAllowThreads(__tstate);
31518 if (PyErr_Occurred()) SWIG_fail;
31519 }
31520 {
31521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31522 }
31523 return resultobj;
31524 fail:
31525 return NULL;
31526 }
31527
31528
31529 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31530 PyObject *resultobj;
31531 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31532 wxDC *arg2 = 0 ;
31533 wxMemoryDC *arg3 = 0 ;
31534 wxRect *arg4 = 0 ;
31535 wxRect *arg5 = 0 ;
31536 bool result;
31537 wxRect temp4 ;
31538 wxRect temp5 ;
31539 PyObject * obj0 = 0 ;
31540 PyObject * obj1 = 0 ;
31541 PyObject * obj2 = 0 ;
31542 PyObject * obj3 = 0 ;
31543 PyObject * obj4 = 0 ;
31544 char *kwnames[] = {
31545 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31546 };
31547
31548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31551 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31552 SWIG_POINTER_EXCEPTION | 0)) == -1)
31553 SWIG_fail;
31554 if (arg2 == NULL) {
31555 PyErr_SetString(PyExc_TypeError,"null reference");
31556 SWIG_fail;
31557 }
31558 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31559 SWIG_POINTER_EXCEPTION | 0)) == -1)
31560 SWIG_fail;
31561 if (arg3 == NULL) {
31562 PyErr_SetString(PyExc_TypeError,"null reference");
31563 SWIG_fail;
31564 }
31565 {
31566 arg4 = &temp4;
31567 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31568 }
31569 {
31570 arg5 = &temp5;
31571 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31572 }
31573 {
31574 PyThreadState* __tstate = wxPyBeginAllowThreads();
31575 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31576
31577 wxPyEndAllowThreads(__tstate);
31578 if (PyErr_Occurred()) SWIG_fail;
31579 }
31580 {
31581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31582 }
31583 return resultobj;
31584 fail:
31585 return NULL;
31586 }
31587
31588
31589 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31590 PyObject *resultobj;
31591 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31592 wxPoint *arg2 = 0 ;
31593 wxPoint *arg3 = 0 ;
31594 bool arg4 ;
31595 bool arg5 ;
31596 bool result;
31597 wxPoint temp2 ;
31598 wxPoint temp3 ;
31599 PyObject * obj0 = 0 ;
31600 PyObject * obj1 = 0 ;
31601 PyObject * obj2 = 0 ;
31602 PyObject * obj3 = 0 ;
31603 PyObject * obj4 = 0 ;
31604 char *kwnames[] = {
31605 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31606 };
31607
31608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31611 {
31612 arg2 = &temp2;
31613 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31614 }
31615 {
31616 arg3 = &temp3;
31617 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31618 }
31619 arg4 = (bool)SWIG_As_bool(obj3);
31620 if (PyErr_Occurred()) SWIG_fail;
31621 arg5 = (bool)SWIG_As_bool(obj4);
31622 if (PyErr_Occurred()) SWIG_fail;
31623 {
31624 PyThreadState* __tstate = wxPyBeginAllowThreads();
31625 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31626
31627 wxPyEndAllowThreads(__tstate);
31628 if (PyErr_Occurred()) SWIG_fail;
31629 }
31630 {
31631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31632 }
31633 return resultobj;
31634 fail:
31635 return NULL;
31636 }
31637
31638
31639 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31640 PyObject *obj;
31641 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31642 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31643 Py_INCREF(obj);
31644 return Py_BuildValue((char *)"");
31645 }
31646 static PyMethodDef SwigMethods[] = {
31647 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31648 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31649 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31650 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31651 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31652 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31653 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31654 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31655 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31656 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31657 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31658 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31659 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31660 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31661 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31662 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31663 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31664 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31665 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31666 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31667 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31668 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31669 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31670 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31671 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31672 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31673 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31674 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31675 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31676 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31677 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31678 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31679 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31680 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31681 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31682 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31683 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31684 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31685 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31686 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31687 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31688 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31689 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31690 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31691 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31692 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31693 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31694 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31695 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31696 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31697 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31698 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31699 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31700 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31701 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31702 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
31703 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31704 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31705 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31706 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31707 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31708 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31709 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
31710 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
31711 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
31712 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31713 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31714 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31715 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31716 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31717 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31718 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31719 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
31720 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31721 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
31722 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31723 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
31724 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31725 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
31726 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31727 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31728 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
31729 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31730 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
31731 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31732 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31733 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31734 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31735 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
31736 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31737 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
31738 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31739 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31740 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
31741 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31742 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31743 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31744 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31745 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
31746 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
31747 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31748 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
31749 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31750 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31751 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31752 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
31753 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
31754 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
31755 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31756 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31757 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
31758 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
31759 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31760 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31761 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
31762 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
31763 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
31764 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31765 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
31766 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
31767 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31768 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31769 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
31770 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31771 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
31772 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31773 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
31774 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31775 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31776 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
31777 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
31778 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31779 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
31780 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
31781 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31782 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
31783 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
31784 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31785 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31786 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31787 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31788 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31789 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31790 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31791 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31792 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31793 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31794 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
31795 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31796 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31797 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31798 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31799 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
31800 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
31801 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
31802 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
31803 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
31804 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
31805 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31806 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31807 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
31808 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
31809 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31810 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
31811 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
31812 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31813 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31814 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31815 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31816 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31817 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31818 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
31819 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
31820 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
31821 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
31822 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31823 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
31824 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
31825 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31826 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31827 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
31828 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
31829 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
31830 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
31831 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
31832 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
31833 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
31834 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
31835 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
31836 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
31837 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
31838 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31839 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31840 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31841 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
31842 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31843 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
31844 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31845 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
31846 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
31847 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31848 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31849 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31850 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
31851 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
31852 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
31853 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
31854 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
31855 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
31856 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
31857 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31858 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31859 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31860 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31861 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31862 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
31863 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
31864 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31865 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
31866 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
31867 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31868 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31869 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
31870 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31871 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31872 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
31873 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31874 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
31875 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31876 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
31877 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31878 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31879 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
31880 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31881 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31882 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31883 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31884 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
31885 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31886 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
31887 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31888 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
31889 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31890 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31891 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31892 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31893 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31894 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31895 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31896 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31897 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
31898 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31899 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
31900 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31901 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
31902 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31903 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31904 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31905 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
31906 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31907 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31908 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31909 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31910 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31911 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
31912 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31913 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31914 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31915 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
31916 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31917 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
31918 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31919 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31920 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31921 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31922 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31923 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
31924 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
31925 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
31926 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31927 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
31928 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
31929 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
31930 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
31931 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
31932 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31933 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
31934 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31935 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
31936 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31937 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31938 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31939 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31940 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
31941 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
31942 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
31943 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31944 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31945 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31946 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31953 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
31967 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31968 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
31975 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
31980 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
31988 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
31996 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
32002 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32009 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32013 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32015 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32021 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32023 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32028 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32033 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32035 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32040 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32048 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32063 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32071 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32080 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32108 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32111 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32114 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32126 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32169 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32174 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32178 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32186 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32199 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32205 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32211 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32215 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32233 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32240 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32250 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32266 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32273 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32274 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32277 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32289 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32295 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32297 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32301 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32304 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32305 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32309 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32312 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32314 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32320 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32321 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32322 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32328 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32330 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32335 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32337 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32340 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32347 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32370 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32399 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32415 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32421 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32422 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32426 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32433 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32440 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32452 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32460 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32465 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32467 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32468 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32476 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32477 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32478 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32479 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32485 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32489 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32492 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32496 { NULL, NULL, 0, NULL }
32497 };
32498
32499
32500 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32501
32502 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32503 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32504 }
32505 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32506 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32507 }
32508 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32509 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32510 }
32511 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32512 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32513 }
32514 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32515 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32516 }
32517 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32518 return (void *)((wxSizer *) ((wxGridSizer *) x));
32519 }
32520 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32521 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32522 }
32523 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32524 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32525 }
32526 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32527 return (void *)((wxSizer *) ((wxPySizer *) x));
32528 }
32529 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32530 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32531 }
32532 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32533 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32534 }
32535 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32536 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32537 }
32538 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32539 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32540 }
32541 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32542 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32543 }
32544 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32545 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32546 }
32547 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32548 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32549 }
32550 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32551 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32552 }
32553 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32554 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32555 }
32556 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32557 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32558 }
32559 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32560 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32561 }
32562 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32563 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32564 }
32565 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32566 return (void *)((wxEvent *) ((wxPyEvent *) x));
32567 }
32568 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32569 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32570 }
32571 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32572 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32573 }
32574 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32575 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32576 }
32577 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32578 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32579 }
32580 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32581 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32582 }
32583 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32584 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32585 }
32586 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32587 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32588 }
32589 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32590 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32591 }
32592 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32593 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32594 }
32595 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32596 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32597 }
32598 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32599 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32600 }
32601 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32602 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32603 }
32604 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32605 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32606 }
32607 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32608 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32609 }
32610 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32611 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32612 }
32613 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32614 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32615 }
32616 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32617 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32618 }
32619 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32620 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32621 }
32622 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32623 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32624 }
32625 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32626 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32627 }
32628 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32629 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32630 }
32631 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32632 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32633 }
32634 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32635 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32636 }
32637 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32638 return (void *)((wxEvent *) ((wxShowEvent *) x));
32639 }
32640 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32641 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32642 }
32643 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32644 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32645 }
32646 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32647 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32648 }
32649 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32650 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32651 }
32652 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32653 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32654 }
32655 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32656 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32657 }
32658 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32659 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32660 }
32661 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32662 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32663 }
32664 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32665 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32666 }
32667 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32668 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32669 }
32670 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32671 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32672 }
32673 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32674 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32675 }
32676 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32677 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32678 }
32679 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32680 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32681 }
32682 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
32683 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32684 }
32685 static void *_p_wxListBoxTo_p_wxControl(void *x) {
32686 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
32687 }
32688 static void *_p_wxChoiceTo_p_wxControl(void *x) {
32689 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
32690 }
32691 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32692 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
32693 }
32694 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
32695 return (void *)((wxControl *) ((wxStaticBitmap *) x));
32696 }
32697 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
32698 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32699 }
32700 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
32701 return (void *)((wxControl *) ((wxSpinCtrl *) x));
32702 }
32703 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
32704 return (void *)((wxControl *) ((wxStaticBox *) x));
32705 }
32706 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
32707 return (void *)((wxControl *) ((wxPyListCtrl *) x));
32708 }
32709 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
32710 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
32711 }
32712 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
32713 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32714 }
32715 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
32716 return (void *)((wxControl *) ((wxScrollBar *) x));
32717 }
32718 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32719 return (void *)((wxControl *) ((wxBookCtrl *) x));
32720 }
32721 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
32722 return (void *)((wxControl *) ((wxRadioButton *) x));
32723 }
32724 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
32725 return (void *)((wxControl *) ((wxToggleButton *) x));
32726 }
32727 static void *_p_wxGaugeTo_p_wxControl(void *x) {
32728 return (void *)((wxControl *) ((wxGauge *) x));
32729 }
32730 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
32731 return (void *)((wxControl *) ((wxToolBarBase *) x));
32732 }
32733 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
32734 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
32735 }
32736 static void *_p_wxButtonTo_p_wxControl(void *x) {
32737 return (void *)((wxControl *) ((wxButton *) x));
32738 }
32739 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
32740 return (void *)((wxControl *) ((wxSpinButton *) x));
32741 }
32742 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
32743 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32744 }
32745 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
32746 return (void *)((wxControl *) ((wxControlWithItems *) x));
32747 }
32748 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
32749 return (void *)((wxControl *) ((wxRadioBox *) x));
32750 }
32751 static void *_p_wxNotebookTo_p_wxControl(void *x) {
32752 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
32753 }
32754 static void *_p_wxListbookTo_p_wxControl(void *x) {
32755 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
32756 }
32757 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
32758 return (void *)((wxControl *) ((wxCheckBox *) x));
32759 }
32760 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
32761 return (void *)((wxControl *) ((wxTextCtrl *) x));
32762 }
32763 static void *_p_wxListViewTo_p_wxControl(void *x) {
32764 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
32765 }
32766 static void *_p_wxSliderTo_p_wxControl(void *x) {
32767 return (void *)((wxControl *) ((wxSlider *) x));
32768 }
32769 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
32770 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
32771 }
32772 static void *_p_wxPyControlTo_p_wxControl(void *x) {
32773 return (void *)((wxControl *) ((wxPyControl *) x));
32774 }
32775 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
32776 return (void *)((wxControl *) ((wxStaticLine *) x));
32777 }
32778 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
32779 return (void *)((wxControl *) ((wxStaticText *) x));
32780 }
32781 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
32782 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
32783 }
32784 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
32785 return (void *)((wxChoice *) ((wxComboBox *) x));
32786 }
32787 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
32788 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
32789 }
32790 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
32791 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
32792 }
32793 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
32794 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32795 }
32796 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
32797 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
32798 }
32799 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
32800 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
32801 }
32802 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
32803 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32804 }
32805 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
32806 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
32807 }
32808 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
32809 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
32810 }
32811 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
32812 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
32813 }
32814 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
32815 return (void *)((wxEvtHandler *) ((wxValidator *) x));
32816 }
32817 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
32818 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
32819 }
32820 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
32821 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
32822 }
32823 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
32824 return (void *)((wxEvtHandler *) ((wxMenu *) x));
32825 }
32826 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
32827 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
32828 }
32829 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
32830 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
32831 }
32832 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
32833 return (void *)((wxEvtHandler *) ((wxWindow *) x));
32834 }
32835 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
32836 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
32837 }
32838 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
32839 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
32840 }
32841 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
32842 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
32843 }
32844 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
32845 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32846 }
32847 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
32848 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32849 }
32850 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
32851 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
32852 }
32853 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
32854 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
32855 }
32856 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
32857 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
32858 }
32859 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
32860 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
32861 }
32862 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
32863 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
32864 }
32865 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
32866 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
32867 }
32868 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
32869 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
32870 }
32871 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
32872 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
32873 }
32874 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
32875 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32876 }
32877 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
32878 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
32879 }
32880 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
32881 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
32882 }
32883 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
32884 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32885 }
32886 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
32887 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
32888 }
32889 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
32890 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
32891 }
32892 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
32893 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
32894 }
32895 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
32896 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
32897 }
32898 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
32899 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
32900 }
32901 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
32902 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
32903 }
32904 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
32905 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
32906 }
32907 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
32908 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
32909 }
32910 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
32911 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
32912 }
32913 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
32914 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
32915 }
32916 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
32917 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
32918 }
32919 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
32920 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
32921 }
32922 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
32923 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
32924 }
32925 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
32926 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
32927 }
32928 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
32929 return (void *)((wxListBox *) ((wxCheckListBox *) x));
32930 }
32931 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
32932 return (void *)((wxBookCtrl *) ((wxListbook *) x));
32933 }
32934 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
32935 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
32936 }
32937 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
32938 return (void *)((wxButton *) ((wxBitmapButton *) x));
32939 }
32940 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
32941 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
32942 }
32943 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
32944 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
32945 }
32946 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
32947 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
32948 }
32949 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
32950 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
32951 }
32952 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
32953 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
32954 }
32955 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
32956 return (void *)((wxObject *) ((wxSizerItem *) x));
32957 }
32958 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
32959 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
32960 }
32961 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
32962 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
32963 }
32964 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
32965 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
32966 }
32967 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
32968 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32969 }
32970 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
32971 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
32972 }
32973 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
32974 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
32975 }
32976 static void *_p_wxSizerTo_p_wxObject(void *x) {
32977 return (void *)((wxObject *) ((wxSizer *) x));
32978 }
32979 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
32980 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32981 }
32982 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
32983 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
32984 }
32985 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
32986 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
32987 }
32988 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
32989 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
32990 }
32991 static void *_p_wxEventTo_p_wxObject(void *x) {
32992 return (void *)((wxObject *) ((wxEvent *) x));
32993 }
32994 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
32995 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
32996 }
32997 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
32998 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
32999 }
33000 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33001 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33002 }
33003 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33004 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33005 }
33006 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33007 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33008 }
33009 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33011 }
33012 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33013 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33014 }
33015 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33016 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33017 }
33018 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33019 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33020 }
33021 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33022 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33023 }
33024 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33025 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33026 }
33027 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33028 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33029 }
33030 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33031 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33032 }
33033 static void *_p_wxControlTo_p_wxObject(void *x) {
33034 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33035 }
33036 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33037 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33038 }
33039 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33040 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33041 }
33042 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33043 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33044 }
33045 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33046 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33047 }
33048 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33049 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33050 }
33051 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33052 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33053 }
33054 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33055 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33056 }
33057 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33058 return (void *)((wxObject *) ((wxFSFile *) x));
33059 }
33060 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33061 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33062 }
33063 static void *_p_wxListViewTo_p_wxObject(void *x) {
33064 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33065 }
33066 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33067 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33068 }
33069 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33071 }
33072 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33073 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33074 }
33075 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33076 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33077 }
33078 static void *_p_wxListbookTo_p_wxObject(void *x) {
33079 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33080 }
33081 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33082 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33083 }
33084 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33085 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33086 }
33087 static void *_p_wxSliderTo_p_wxObject(void *x) {
33088 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33089 }
33090 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33091 return (void *)((wxObject *) ((wxMenuItem *) x));
33092 }
33093 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33094 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33095 }
33096 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33097 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33098 }
33099 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33100 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33101 }
33102 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33103 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33104 }
33105 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33106 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33107 }
33108 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33109 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33110 }
33111 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33112 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33113 }
33114 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33115 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33116 }
33117 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33118 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33119 }
33120 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33121 return (void *)((wxObject *) ((wxContextHelp *) x));
33122 }
33123 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33124 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33125 }
33126 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33127 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33128 }
33129 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33130 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33131 }
33132 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33133 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33134 }
33135 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33136 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33137 }
33138 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33139 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33140 }
33141 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33142 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33143 }
33144 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33145 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33146 }
33147 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33148 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33149 }
33150 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33151 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33152 }
33153 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33154 return (void *)((wxObject *) ((wxImageHandler *) x));
33155 }
33156 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33157 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33158 }
33159 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33160 return (void *)((wxObject *) ((wxEvtHandler *) x));
33161 }
33162 static void *_p_wxListEventTo_p_wxObject(void *x) {
33163 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33164 }
33165 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33166 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33167 }
33168 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33170 }
33171 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
33172 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
33173 }
33174 static void *_p_wxButtonTo_p_wxObject(void *x) {
33175 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33176 }
33177 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33178 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33179 }
33180 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33182 }
33183 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33184 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33185 }
33186 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33187 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33188 }
33189 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33190 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33191 }
33192 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33193 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33194 }
33195 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33196 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33197 }
33198 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33199 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33200 }
33201 static void *_p_wxListItemTo_p_wxObject(void *x) {
33202 return (void *)((wxObject *) ((wxListItem *) x));
33203 }
33204 static void *_p_wxImageTo_p_wxObject(void *x) {
33205 return (void *)((wxObject *) ((wxImage *) x));
33206 }
33207 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33208 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33209 }
33210 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33211 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33212 }
33213 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33214 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33215 }
33216 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33217 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33218 }
33219 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33220 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33221 }
33222 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33223 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33224 }
33225 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33226 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33227 }
33228 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33230 }
33231 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33232 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33233 }
33234 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33235 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33236 }
33237 static void *_p_wxWindowTo_p_wxObject(void *x) {
33238 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33239 }
33240 static void *_p_wxMenuTo_p_wxObject(void *x) {
33241 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33242 }
33243 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33244 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33245 }
33246 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33247 return (void *)((wxObject *) ((wxFileSystem *) x));
33248 }
33249 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33250 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33251 }
33252 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33253 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33254 }
33255 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33256 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33257 }
33258 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33259 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33260 }
33261 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33262 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33263 }
33264 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33265 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33266 }
33267 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33268 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33269 }
33270 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33271 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33272 }
33273 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33274 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33275 }
33276 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33277 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33278 }
33279 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33280 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33281 }
33282 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33283 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33284 }
33285 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33286 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33287 }
33288 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33289 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33290 }
33291 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33292 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33293 }
33294 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33295 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33296 }
33297 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33298 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33299 }
33300 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33301 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33302 }
33303 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33304 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33305 }
33306 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
33307 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
33308 }
33309 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33310 return (void *)((wxWindow *) ((wxMenuBar *) x));
33311 }
33312 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33313 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33314 }
33315 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33316 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33317 }
33318 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33319 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33320 }
33321 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33322 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33323 }
33324 static void *_p_wxControlTo_p_wxWindow(void *x) {
33325 return (void *)((wxWindow *) ((wxControl *) x));
33326 }
33327 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33328 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33329 }
33330 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33331 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33332 }
33333 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33334 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33335 }
33336 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33337 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33338 }
33339 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33340 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33341 }
33342 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33343 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33344 }
33345 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33346 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33347 }
33348 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33349 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33350 }
33351 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33352 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33353 }
33354 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33355 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33356 }
33357 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33358 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33359 }
33360 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33361 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33362 }
33363 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33364 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33365 }
33366 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33367 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33368 }
33369 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33370 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33371 }
33372 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33373 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33374 }
33375 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33376 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33377 }
33378 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33379 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33380 }
33381 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33382 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33383 }
33384 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33385 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33386 }
33387 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33388 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33389 }
33390 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33391 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33392 }
33393 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33394 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33395 }
33396 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33397 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33398 }
33399 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33400 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33401 }
33402 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33403 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33404 }
33405 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33406 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33407 }
33408 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33409 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33410 }
33411 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33412 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33413 }
33414 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33415 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33416 }
33417 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33418 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33419 }
33420 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33421 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33422 }
33423 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33424 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33425 }
33426 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33427 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33428 }
33429 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33430 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33431 }
33432 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33433 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33434 }
33435 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33436 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33437 }
33438 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33439 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33440 }
33441 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33442 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33443 }
33444 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33445 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33446 }
33447 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33448 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33449 }
33450 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33451 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33452 }
33453 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33454 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33455 }
33456 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33457 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33458 }
33459 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33460 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33461 }
33462 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33463 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33464 }
33465 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33466 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33467 }
33468 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33469 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33470 }
33471 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33472 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33473 }
33474 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33475 return (void *)((wxValidator *) ((wxPyValidator *) x));
33476 }
33477 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}};
33478 static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33479 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}};
33480 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}};
33481 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}};
33482 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_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_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_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_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_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_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_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}};
33483 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}};
33484 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}};
33485 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}};
33486 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}};
33487 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}};
33488 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}};
33489 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}};
33490 static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_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_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_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_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_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_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}};
33491 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}};
33492 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}};
33493 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}};
33494 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}};
33495 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}};
33496 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}};
33497 static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33498 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}};
33499 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}};
33500 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}};
33501 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}};
33502 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}};
33503 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}};
33504 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}};
33505 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}};
33506 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}};
33507 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}};
33508 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}};
33509 static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_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_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33510 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}};
33511 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}};
33512 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}};
33513 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}};
33514 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}};
33515 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}};
33516 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}};
33517 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}};
33518 static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_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_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_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_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_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_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}};
33519 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}};
33520 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}};
33521 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}};
33522 static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33523 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}};
33524 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}};
33525 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}};
33526 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}};
33527 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}};
33528 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}};
33529 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}};
33530 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}};
33531 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}};
33532 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}};
33533 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}};
33534 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}};
33535 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}};
33536 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}};
33537 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}};
33538 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}};
33539 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}};
33540 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}};
33541 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}};
33542 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}};
33543 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}};
33544 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}};
33545 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}};
33546 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_wxBookCtrlEvent", _p_wxBookCtrlEventTo_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_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_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_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_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_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_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_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_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_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_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_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}};
33547 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}};
33548 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}};
33549 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_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_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_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_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_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_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_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33550 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}};
33551 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}};
33552 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}};
33553 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}};
33554 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_wxBookCtrlEvent", _p_wxBookCtrlEventTo_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_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_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}};
33555 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}};
33556 static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33557 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}};
33558 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}};
33559 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}};
33560 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}};
33561 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}};
33562
33563 static swig_type_info *swig_types_initial[] = {
33564 _swigt__p_wxTextUrlEvent,
33565 _swigt__p_wxBookCtrlEvent,
33566 _swigt__p_wxSizer,
33567 _swigt__p_wxCheckBox,
33568 _swigt__p_wxPyTreeCtrl,
33569 _swigt__p_wxEvent,
33570 _swigt__p_wxGenericDirCtrl,
33571 _swigt__p_bool,
33572 _swigt__p_wxPyTreeItemData,
33573 _swigt__p_wxItemContainer,
33574 _swigt__p_wxPyListCtrl,
33575 _swigt__p_wxDirFilterListCtrl,
33576 _swigt__p_wxStaticLine,
33577 _swigt__p_wxControl,
33578 _swigt__p_wxPyControl,
33579 _swigt__p_wxGauge,
33580 _swigt__p_wxToolBarBase,
33581 _swigt__p_wxFont,
33582 _swigt__p_wxToggleButton,
33583 _swigt__p_wxRadioButton,
33584 _swigt__p_wxChoice,
33585 _swigt__p_wxMemoryDC,
33586 _swigt__p_wxListItemAttr,
33587 _swigt__p_void,
33588 _swigt__p_int,
33589 _swigt__p_wxSize,
33590 _swigt__p_wxDC,
33591 _swigt__p_wxListView,
33592 _swigt__p_wxIcon,
33593 _swigt__p_wxVisualAttributes,
33594 _swigt__p_wxTextCtrl,
33595 _swigt__p_wxNotebook,
33596 _swigt__p_wxNotifyEvent,
33597 _swigt__p_wxArrayString,
33598 _swigt__p_wxListbook,
33599 _swigt__p_wxStaticBitmap,
33600 _swigt__p_wxSlider,
33601 _swigt__p_wxStaticBox,
33602 _swigt__p_wxArrayInt,
33603 _swigt__p_wxContextHelp,
33604 _swigt__p_long,
33605 _swigt__p_wxEvtHandler,
33606 _swigt__p_wxListEvent,
33607 _swigt__p_wxCheckListBox,
33608 _swigt__p_wxListBox,
33609 _swigt__p_wxBookCtrl,
33610 _swigt__p_wxSpinButton,
33611 _swigt__p_wxButton,
33612 _swigt__p_wxBitmapButton,
33613 _swigt__p_wxRect,
33614 _swigt__p_wxContextHelpButton,
33615 _swigt__p_wxRadioBox,
33616 _swigt__p_wxScrollBar,
33617 _swigt__p_char,
33618 _swigt__p_wxTreeItemId,
33619 _swigt__p_wxComboBox,
33620 _swigt__p_wxHelpEvent,
33621 _swigt__p_wxListItem,
33622 _swigt__p_wxNotebookSizer,
33623 _swigt__p_wxSpinEvent,
33624 _swigt__p_wxGenericDragImage,
33625 _swigt__p_wxSpinCtrl,
33626 _swigt__p_wxImageList,
33627 _swigt__p_wxHelpProvider,
33628 _swigt__p_wxTextAttr,
33629 _swigt__p_wxSimpleHelpProvider,
33630 _swigt__p_wxPoint,
33631 _swigt__p_wxListbookEvent,
33632 _swigt__p_wxNotebookEvent,
33633 _swigt__p_wxObject,
33634 _swigt__p_wxCursor,
33635 _swigt__p_wxKeyEvent,
33636 _swigt__p_wxWindow,
33637 _swigt__p_wxString,
33638 _swigt__p_wxBitmap,
33639 _swigt__p_wxTreeEvent,
33640 _swigt__p_wxMouseEvent,
33641 _swigt__p_wxCommandEvent,
33642 _swigt__p_wxStaticText,
33643 _swigt__p_wxControlWithItems,
33644 _swigt__p_wxToolBarToolBase,
33645 _swigt__p_wxColour,
33646 _swigt__p_wxToolBar,
33647 _swigt__p_wxBookCtrlSizer,
33648 _swigt__p_wxValidator,
33649 0
33650 };
33651
33652
33653 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33654
33655 static swig_const_info swig_const_table[] = {
33656 {0, 0, 0, 0.0, 0, 0}};
33657
33658 #ifdef __cplusplus
33659 }
33660 #endif
33661
33662 #ifdef __cplusplus
33663 extern "C"
33664 #endif
33665 SWIGEXPORT(void) SWIG_init(void) {
33666 static PyObject *SWIG_globals = 0;
33667 static int typeinit = 0;
33668 PyObject *m, *d;
33669 int i;
33670 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
33671 m = Py_InitModule((char *) SWIG_name, SwigMethods);
33672 d = PyModule_GetDict(m);
33673
33674 if (!typeinit) {
33675 for (i = 0; swig_types_initial[i]; i++) {
33676 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
33677 }
33678 typeinit = 1;
33679 }
33680 SWIG_InstallConstants(d,swig_const_table);
33681
33682 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
33683 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
33684 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
33685 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
33686 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
33687 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
33688 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
33689 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
33690 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
33691 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
33692 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
33693 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
33694 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
33695 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
33696 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
33697 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
33698 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
33699 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
33700 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
33701 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
33702 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
33703 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
33704 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
33705 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
33706 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
33707 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
33708 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
33709 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
33710 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
33711 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
33712 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
33713 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
33714 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
33715 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
33716 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
33717 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
33718 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
33719 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
33720 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
33721 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
33722 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
33723 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
33724 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
33725 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
33726 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
33727 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
33728 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
33729 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
33730 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
33731 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
33732 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
33733 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
33734 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
33735 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
33736 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
33737 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
33738 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
33739 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
33740 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
33741 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
33742 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
33743 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
33744 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
33745 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
33746 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
33747 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
33748 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
33749 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
33750 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
33751 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
33752 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
33753 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
33754 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
33755 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
33756 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
33757 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
33758 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
33759 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
33760 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
33761 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
33762 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
33763 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
33764 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
33765 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
33766 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
33767 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
33768 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
33769 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
33770 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
33771 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
33772 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
33773 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
33774 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
33775 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
33776 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
33777 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
33778 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
33779 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
33780 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
33781 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
33782 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
33783 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
33784 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
33785 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
33786 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
33787 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
33788 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
33789 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
33790 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
33791 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
33792 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
33793 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
33794 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
33795 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
33796 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
33797 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
33798 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
33799 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
33800 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
33801 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
33802 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
33803 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
33804 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
33805 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
33806 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
33807 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
33808 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
33809 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
33810 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
33811 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
33812 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
33813 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
33814 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
33815 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
33816 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
33817 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
33818 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
33819 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
33820 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
33821 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
33822 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
33823 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
33824 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
33825 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
33826 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
33827 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
33828 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
33829 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
33830 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
33831 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
33832 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
33833 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
33834 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
33835 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
33836 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
33837 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
33838 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
33839 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
33840 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
33841 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
33842 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
33843 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
33844 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
33845 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
33846 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
33847 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
33848 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
33849 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
33850 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
33851 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
33852 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
33853 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
33854 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
33855 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
33856 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
33857 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
33858 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
33859 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
33860 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
33861 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
33862 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
33863 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
33864 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
33865 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
33866 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
33867 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
33868 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
33869 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
33870 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
33871 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
33872 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
33873 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
33874 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
33875 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
33876 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
33877 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
33878 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
33879 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
33880 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
33881 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
33882 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
33883 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
33884 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
33885 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
33886 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
33887 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
33888 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
33889 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
33890 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
33891 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
33892 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
33893
33894 // Map renamed classes back to their common name for OOR
33895 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
33896
33897 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
33898 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
33899 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
33900 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
33901 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
33902 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
33903 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
33904 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
33905 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
33906 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
33907 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
33908 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
33909 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
33910 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
33911 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
33912 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
33913 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
33914 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
33915 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
33916 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
33917 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
33918 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
33919 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
33920 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
33921 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
33922 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
33923 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
33924 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
33925 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
33926 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
33927 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
33928 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
33929 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
33930 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
33931 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
33932 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
33933 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
33934 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
33935 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
33936 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
33937 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
33938 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
33939 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
33940 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
33941 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
33942 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
33943 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
33944 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
33945 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
33946 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
33947 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
33948 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
33949 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
33950 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
33951 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
33952 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
33953
33954 // Map renamed classes back to their common name for OOR
33955 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
33956 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
33957
33958 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
33959 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
33960 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
33961 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
33962 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
33963 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
33964 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
33965 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
33966 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
33967 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
33968
33969 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
33970
33971 }
33972