]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_controls_wrap.cpp
Deprecated EVT_LIST_GET_INFO and EVT_LIST_SET_INFO
[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_wxChoicebook swig_types[32]
244 #define SWIGTYPE_p_wxNotifyEvent swig_types[33]
245 #define SWIGTYPE_p_wxArrayString swig_types[34]
246 #define SWIGTYPE_p_wxListbook swig_types[35]
247 #define SWIGTYPE_p_wxStaticBitmap swig_types[36]
248 #define SWIGTYPE_p_wxSlider swig_types[37]
249 #define SWIGTYPE_p_wxStaticBox swig_types[38]
250 #define SWIGTYPE_p_wxArrayInt swig_types[39]
251 #define SWIGTYPE_p_wxContextHelp swig_types[40]
252 #define SWIGTYPE_p_long swig_types[41]
253 #define SWIGTYPE_p_wxEvtHandler swig_types[42]
254 #define SWIGTYPE_p_wxListEvent swig_types[43]
255 #define SWIGTYPE_p_wxCheckListBox swig_types[44]
256 #define SWIGTYPE_p_wxListBox swig_types[45]
257 #define SWIGTYPE_p_wxBookCtrl swig_types[46]
258 #define SWIGTYPE_p_wxSpinButton swig_types[47]
259 #define SWIGTYPE_p_wxButton swig_types[48]
260 #define SWIGTYPE_p_wxBitmapButton swig_types[49]
261 #define SWIGTYPE_p_wxRect swig_types[50]
262 #define SWIGTYPE_p_wxContextHelpButton swig_types[51]
263 #define SWIGTYPE_p_wxRadioBox swig_types[52]
264 #define SWIGTYPE_p_wxScrollBar swig_types[53]
265 #define SWIGTYPE_p_char swig_types[54]
266 #define SWIGTYPE_p_wxTreeItemId swig_types[55]
267 #define SWIGTYPE_p_wxComboBox swig_types[56]
268 #define SWIGTYPE_p_wxHelpEvent swig_types[57]
269 #define SWIGTYPE_p_wxListItem swig_types[58]
270 #define SWIGTYPE_p_wxNotebookSizer swig_types[59]
271 #define SWIGTYPE_p_wxSpinEvent swig_types[60]
272 #define SWIGTYPE_p_wxGenericDragImage swig_types[61]
273 #define SWIGTYPE_p_wxSpinCtrl swig_types[62]
274 #define SWIGTYPE_p_wxImageList swig_types[63]
275 #define SWIGTYPE_p_wxHelpProvider swig_types[64]
276 #define SWIGTYPE_p_wxTextAttr swig_types[65]
277 #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[66]
278 #define SWIGTYPE_p_wxPoint swig_types[67]
279 #define SWIGTYPE_p_wxChoicebookEvent swig_types[68]
280 #define SWIGTYPE_p_wxListbookEvent swig_types[69]
281 #define SWIGTYPE_p_wxNotebookEvent swig_types[70]
282 #define SWIGTYPE_p_wxObject swig_types[71]
283 #define SWIGTYPE_p_wxCursor swig_types[72]
284 #define SWIGTYPE_p_wxKeyEvent swig_types[73]
285 #define SWIGTYPE_p_wxWindow swig_types[74]
286 #define SWIGTYPE_p_wxString swig_types[75]
287 #define SWIGTYPE_p_wxBitmap swig_types[76]
288 #define SWIGTYPE_p_wxTreeEvent swig_types[77]
289 #define SWIGTYPE_p_wxMouseEvent swig_types[78]
290 #define SWIGTYPE_p_wxCommandEvent swig_types[79]
291 #define SWIGTYPE_p_wxStaticText swig_types[80]
292 #define SWIGTYPE_p_wxControlWithItems swig_types[81]
293 #define SWIGTYPE_p_wxToolBarToolBase swig_types[82]
294 #define SWIGTYPE_p_wxColour swig_types[83]
295 #define SWIGTYPE_p_wxToolBar swig_types[84]
296 #define SWIGTYPE_p_wxBookCtrlSizer swig_types[85]
297 #define SWIGTYPE_p_wxValidator swig_types[86]
298 static swig_type_info *swig_types[88];
299
300 /* -------- TYPES TABLE (END) -------- */
301
302
303 /*-----------------------------------------------
304 @(target):= _controls_.so
305 ------------------------------------------------*/
306 #define SWIG_init init_controls_
307
308 #define SWIG_name "_controls_"
309
310 /* Auxiliar swig macros that appear in the header */
311
312 #define SWIG_OLDOBJ 1
313 #define SWIG_NEWOBJ SWIG_OLDOBJ + 1
314 #define SWIG_PYSTR SWIG_NEWOBJ + 1
315
316 #ifdef __cplusplus
317 #define SWIGSTATICINLINE(a) static inline a
318 #define SWIGSTATIC(a) static a
319 #define swig_new_array(size,Type) (new Type[(size)])
320 #define swig_delete(cptr) delete cptr
321 #define swig_delete_array(cptr) delete[] cptr
322 #define swig_const_cast(a,Type) const_cast<Type >(a)
323 #define swig_static_cast(a,Type) static_cast<Type >(a)
324 #define swig_reinterpret_cast(a,Type) reinterpret_cast<Type >(a)
325 #define swig_new_copy(ptr,Type) (new Type(*ptr))
326 #define swig_numeric_cast(a,Type) static_cast<Type >(a)
327
328 #else /* C case */
329
330 #define SWIGSTATICINLINE(a) static a
331 #define SWIGSTATIC(a) static a
332 #define swig_new_array(size,Type) ((Type*) malloc((size)*sizeof(Type)))
333 #define swig_delete(cptr) free((char*)cptr)
334 #define swig_delete_array(cptr) free((char*)cptr)
335 #define swig_const_cast(a,Type) (Type)(a)
336 #define swig_static_cast(a,Type) (Type)(a)
337 #define swig_reinterpret_cast(a,Type) (Type)(a)
338 #define swig_numeric_cast(a,Type) (Type)(a)
339 #define swig_new_copy(ptr,Type) ((Type*)memcpy(malloc(sizeof(Type)),ptr,sizeof(Type)))
340
341 #endif /* __cplusplus */
342
343
344 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
345 #define SWIG_From_signed_SS_char PyInt_FromLong
346 /*@@*/
347 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
348 #define SWIG_From_unsigned_SS_char PyInt_FromLong
349 /*@@*/
350 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
351 #define SWIG_From_short PyInt_FromLong
352 /*@@*/
353 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
354 #define SWIG_From_unsigned_SS_short PyInt_FromLong
355 /*@@*/
356 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
357 #define SWIG_From_int PyInt_FromLong
358 /*@@*/
359 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
360 #define SWIG_From_long PyInt_FromLong
361 /*@@*/
362 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
363 #define SWIG_From_float PyFloat_FromDouble
364 /*@@*/
365 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
366 #define SWIG_From_double PyFloat_FromDouble
367 /*@@*/
368
369
370 #include "wx/wxPython/wxPython.h"
371 #include "wx/wxPython/pyclasses.h"
372
373 static const wxString wxPyPanelNameStr(wxPanelNameStr);
374 static const wxString wxPyEmptyString(wxEmptyString);
375 static const wxString wxPyControlNameStr(wxControlNameStr);
376
377 const wxArrayString wxPyEmptyStringArray;
378
379 static const wxString wxPyButtonNameStr(wxButtonNameStr);
380
381 #include <limits.h>
382
383
384 SWIGSTATICINLINE(int)
385 SWIG_CheckLongInRange(long value, long min_value, long max_value,
386 const char *errmsg)
387 {
388 if (value < min_value) {
389 if (errmsg) {
390 PyErr_Format(PyExc_OverflowError,
391 "value %ld is less than '%s' minimum %ld",
392 value, errmsg, min_value);
393 }
394 return 0;
395 } else if (value > max_value) {
396 if (errmsg) {
397 PyErr_Format(PyExc_OverflowError,
398 "value %ld is greater than '%s' maximum %ld",
399 value, errmsg, max_value);
400 }
401 return 0;
402 }
403 return 1;
404 }
405
406
407 // See my_fragments.i
408 SWIGSTATICINLINE(int)
409 SWIG_AsVal_long(PyObject* obj, long* val)
410 {
411 if (PyNumber_Check(obj)) {
412 if (val) *val = PyInt_AsLong(obj);
413 return 1;
414 }
415 else {
416 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
417 obj->ob_type->tp_name);
418 PyErr_SetObject(PyExc_TypeError, errmsg);
419 Py_DECREF(errmsg);
420 }
421 return 0;
422 }
423
424
425 #if INT_MAX != LONG_MAX
426 SWIGSTATICINLINE(int)
427 SWIG_AsVal_int(PyObject *obj, int *val)
428 {
429 const char* errmsg = val ? "int" : 0;
430 long v;
431 if (SWIG_AsVal_long(obj, &v)) {
432 if (SWIG_CheckLongInRange(v, INT_MIN,INT_MAX, errmsg)) {
433 if (val) *val = swig_numeric_cast(v, int);
434 return 1;
435 } else {
436 return 0;
437 }
438 } else {
439 PyErr_Clear();
440 }
441 if (val) {
442 PyErr_SetString(PyExc_TypeError, "an int is expected");
443 }
444 return 0;
445 }
446 #else
447 SWIGSTATICINLINE(int)
448 SWIG_AsVal_int(PyObject *obj, int *val)
449 {
450 return SWIG_AsVal_long(obj,(long*)val);
451 }
452 #endif
453
454
455 SWIGSTATICINLINE(int)
456 SWIG_As_int(PyObject* obj)
457 {
458 int v;
459 if (!SWIG_AsVal_int(obj, &v)) {
460 /*
461 this is needed to make valgrind/purify happier. the other
462 solution is throw an exception, but since this code should work
463 with plain C ....
464 */
465 memset((void*)&v, 0, sizeof(int));
466 }
467 return v;
468 }
469
470
471 SWIGSTATICINLINE(long)
472 SWIG_As_long(PyObject* obj)
473 {
474 long v;
475 if (!SWIG_AsVal_long(obj, &v)) {
476 /*
477 this is needed to make valgrind/purify happier. the other
478 solution is throw an exception, but since this code should work
479 with plain C ....
480 */
481 memset((void*)&v, 0, sizeof(long));
482 }
483 return v;
484 }
485
486
487 SWIGSTATICINLINE(int)
488 SWIG_Check_int(PyObject* obj)
489 {
490 return SWIG_AsVal_int(obj, (int*)0);
491 }
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_Check_long(PyObject* obj)
496 {
497 return SWIG_AsVal_long(obj, (long*)0);
498 }
499
500 static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr);
501
502 SWIGSTATICINLINE(int)
503 SWIG_AsVal_bool(PyObject *obj, bool *val)
504 {
505 /* if (val) *val = PyObject_IsTrue(obj); return 1; */
506 if (obj == Py_True) {
507 if (val) *val = true;
508 return 1;
509 }
510 if (obj == Py_False) {
511 if (val) *val = false;
512 return 1;
513 }
514 int res = 0;
515 if (SWIG_AsVal_int(obj, &res)) {
516 if (val) *val = (bool)res;
517 return 1;
518 }
519 if (val) {
520 PyErr_SetString(PyExc_TypeError, "a bool is expected");
521 }
522 return 0;
523 }
524
525
526 SWIGSTATICINLINE(bool)
527 SWIG_As_bool(PyObject* obj)
528 {
529 bool v;
530 if (!SWIG_AsVal_bool(obj, &v)) {
531 /*
532 this is needed to make valgrind/purify happier. the other
533 solution is throw an exception, but since this code should work
534 with plain C ....
535 */
536 memset((void*)&v, 0, sizeof(bool));
537 }
538 return v;
539 }
540
541
542 SWIGSTATICINLINE(int)
543 SWIG_Check_bool(PyObject* obj)
544 {
545 return SWIG_AsVal_bool(obj, (bool*)0);
546 }
547
548 static const wxString wxPyChoiceNameStr(wxChoiceNameStr);
549 static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr);
550 static const wxString wxPyGaugeNameStr(wxGaugeNameStr);
551 static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr);
552 static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr);
553 static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr);
554
555 #include <wx/checklst.h>
556
557
558 static const wxString wxPyListBoxNameStr(wxListBoxNameStr);
559 void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){
560 if (clientData) {
561 wxPyClientData* data = new wxPyClientData(clientData);
562 self->Insert(item, pos, data);
563 } else
564 self->Insert(item, pos);
565 }
566 PyObject *wxListBox_GetSelections(wxListBox *self){
567 wxArrayInt lst;
568 self->GetSelections(lst);
569 PyObject *tup = PyTuple_New(lst.GetCount());
570 for(size_t i=0; i<lst.GetCount(); i++) {
571 PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i]));
572 }
573 return tup;
574 }
575 void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){
576 #ifdef __WXMSW__
577 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
578 self->GetItem(item)->SetTextColour(c);
579 #endif
580 }
581 void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){
582 #ifdef __WXMSW__
583 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
584 self->GetItem(item)->SetBackgroundColour(c);
585 #endif
586 }
587 void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){
588 #ifdef __WXMSW__
589 if (self->GetWindowStyle() & wxLB_OWNERDRAW)
590 self->GetItem(item)->SetFont(f);
591 #endif
592 }
593 static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr);
594
595 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
596 PyObject* o2;
597 PyObject* o3;
598
599 if (!target) {
600 target = o;
601 } else if (target == Py_None) {
602 Py_DECREF(Py_None);
603 target = o;
604 } else {
605 if (!PyTuple_Check(target)) {
606 o2 = target;
607 target = PyTuple_New(1);
608 PyTuple_SetItem(target, 0, o2);
609 }
610 o3 = PyTuple_New(1);
611 PyTuple_SetItem(o3, 0, o);
612
613 o2 = target;
614 target = PySequence_Concat(o2, o3);
615 Py_DECREF(o2);
616 Py_DECREF(o3);
617 }
618 return target;
619 }
620
621
622
623 // See my_fragments.i
624 SWIGSTATICINLINE(int)
625 SWIG_AsVal_unsigned_SS_long(PyObject* obj, unsigned long* val)
626 {
627 long v = 0;
628 if (SWIG_AsVal_long(obj, &v) && v < 0) {
629 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
630 return 0;
631 }
632 else if (val)
633 *val = (unsigned long)v;
634 return 1;
635 }
636
637
638 SWIGSTATICINLINE(unsigned long)
639 SWIG_As_unsigned_SS_long(PyObject* obj)
640 {
641 unsigned long v;
642 if (!SWIG_AsVal_unsigned_SS_long(obj, &v)) {
643 /*
644 this is needed to make valgrind/purify happier. the other
645 solution is throw an exception, but since this code should work
646 with plain C ....
647 */
648 memset((void*)&v, 0, sizeof(unsigned long));
649 }
650 return v;
651 }
652
653
654 SWIGSTATICINLINE(int)
655 SWIG_Check_unsigned_SS_long(PyObject* obj)
656 {
657 return SWIG_AsVal_unsigned_SS_long(obj, (unsigned long*)0);
658 }
659
660 void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){
661 self->AppendText(text);
662 }
663 wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
664 return self->GetValue().Mid(from, to - from);
665 }
666 static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr);
667 static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME);
668 static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl"));
669 static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
670 static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
671
672 #include <wx/slider.h>
673
674
675 static const wxString wxPySliderNameStr(wxSliderNameStr);
676 static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton"));
677
678 #if !wxUSE_TOGGLEBTN
679 // implement dummy items for platforms that don't have this class
680
681 #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0
682
683 class wxToggleButton : public wxControl
684 {
685 public:
686 wxToggleButton(wxWindow *, wxWindowID, const wxString&,
687 const wxPoint&, const wxSize&, long,
688 const wxValidator&, const wxString&)
689 { wxPyRaiseNotImplemented(); }
690
691 wxToggleButton()
692 { wxPyRaiseNotImplemented(); }
693 };
694 #endif
695
696 static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME);
697
698 SWIGSTATICINLINE(PyObject* )
699 SWIG_From_unsigned_SS_long(unsigned long value)
700 {
701 return (value > LONG_MAX) ?
702 PyLong_FromUnsignedLong(value)
703 : PyInt_FromLong(swig_numeric_cast(value,long));
704 }
705
706 static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
707 PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
708 wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
709 if (udata) {
710 Py_INCREF(udata->m_obj);
711 return udata->m_obj;
712 } else {
713 Py_INCREF(Py_None);
714 return Py_None;
715 }
716 }
717 void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){
718 self->SetClientData(new wxPyUserData(clientData));
719 }
720 wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
721 wxPyUserData* udata = NULL;
722 if (clientData && clientData != Py_None)
723 udata = new wxPyUserData(clientData);
724 return self->AddTool(id, label, bitmap, bmpDisabled, kind,
725 shortHelp, longHelp, udata);
726 }
727 wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){
728 wxPyUserData* udata = NULL;
729 if (clientData && clientData != Py_None)
730 udata = new wxPyUserData(clientData);
731 return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind,
732 shortHelp, longHelp, udata);
733 }
734 PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){
735 wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id);
736 if (udata) {
737 Py_INCREF(udata->m_obj);
738 return udata->m_obj;
739 } else {
740 Py_INCREF(Py_None);
741 return Py_None;
742 }
743 }
744 void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){
745 self->SetToolClientData(id, new wxPyUserData(clientData));
746 }
747
748 #include <wx/listctrl.h>
749
750 static const wxString wxPyListCtrlNameStr(_T("wxListCtrl"));
751 void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; }
752 // Python aware sorting function for wxPyListCtrl
753 static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) {
754 int retval = 0;
755 PyObject* func = (PyObject*)funcPtr;
756 bool blocked = wxPyBeginBlockThreads();
757
758 PyObject* args = Py_BuildValue("(ii)", item1, item2);
759 PyObject* result = PyEval_CallObject(func, args);
760 Py_DECREF(args);
761 if (result) {
762 retval = PyInt_AsLong(result);
763 Py_DECREF(result);
764 }
765
766 wxPyEndBlockThreads(blocked);
767 return retval;
768 }
769
770 // C++ Version of a Python aware class
771 class wxPyListCtrl : public wxListCtrl {
772 DECLARE_ABSTRACT_CLASS(wxPyListCtrl);
773 public:
774 wxPyListCtrl() : wxListCtrl() {}
775 wxPyListCtrl(wxWindow* parent, wxWindowID id,
776 const wxPoint& pos,
777 const wxSize& size,
778 long style,
779 const wxValidator& validator,
780 const wxString& name) :
781 wxListCtrl(parent, id, pos, size, style, validator, name) {}
782
783 bool Create(wxWindow* parent, wxWindowID id,
784 const wxPoint& pos,
785 const wxSize& size,
786 long style,
787 const wxValidator& validator,
788 const wxString& name) {
789 return wxListCtrl::Create(parent, id, pos, size, style, validator, name);
790 }
791
792 DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText);
793 DEC_PYCALLBACK_INT_LONG(OnGetItemImage);
794 DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr);
795
796 PYPRIVATE;
797 };
798
799 IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl);
800
801 IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText);
802 IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage);
803 IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr);
804
805 wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){
806 wxListItem item;
807 item.SetMask( wxLIST_MASK_STATE |
808 wxLIST_MASK_TEXT |
809 wxLIST_MASK_IMAGE |
810 wxLIST_MASK_DATA |
811 wxLIST_SET_ITEM |
812 wxLIST_MASK_WIDTH |
813 wxLIST_MASK_FORMAT
814 );
815 if (self->GetColumn(col, item))
816 return new wxListItem(item);
817 else
818 return NULL;
819 }
820 wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){
821 wxListItem* info = new wxListItem;
822 info->m_itemId = itemId;
823 info->m_col = col;
824 info->m_mask = 0xFFFF;
825 self->GetItem(*info);
826 return info;
827 }
828 wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){
829 wxPoint pos;
830 self->GetItemPosition(item, pos);
831 return pos;
832 }
833 wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){
834 wxRect rect;
835 self->GetItemRect(item, rect, code);
836 return rect;
837 }
838
839 bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){
840 if (!PyCallable_Check(func))
841 return false;
842 return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func);
843 }
844 wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){
845
846 return self;
847
848
849
850 }
851
852 #include <wx/treectrl.h>
853 #include "wx/wxPython/pytree.h"
854
855 static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl"));
856 bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : false; }
857 bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : true; }
858 void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; }
859 // C++ version of Python aware wxTreeCtrl
860 class wxPyTreeCtrl : public wxTreeCtrl {
861 DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl);
862 public:
863 wxPyTreeCtrl() : wxTreeCtrl() {}
864 wxPyTreeCtrl(wxWindow *parent, wxWindowID id,
865 const wxPoint& pos,
866 const wxSize& size,
867 long style,
868 const wxValidator& validator,
869 const wxString& name) :
870 wxTreeCtrl(parent, id, pos, size, style, validator, name) {}
871
872 bool Create(wxWindow *parent, wxWindowID id,
873 const wxPoint& pos,
874 const wxSize& size,
875 long style,
876 const wxValidator& validator,
877 const wxString& name) {
878 return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name);
879 }
880
881
882 int OnCompareItems(const wxTreeItemId& item1,
883 const wxTreeItemId& item2) {
884 int rval = 0;
885 bool found;
886 bool blocked = wxPyBeginBlockThreads();
887 if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) {
888 PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), false);
889 PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), false);
890 rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2));
891 Py_DECREF(o1);
892 Py_DECREF(o2);
893 }
894 wxPyEndBlockThreads(blocked);
895 if (! found)
896 rval = wxTreeCtrl::OnCompareItems(item1, item2);
897 return rval;
898 }
899 PYPRIVATE;
900 };
901
902 IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
903
904
905
906 #if UINT_MAX < LONG_MAX
907 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
908 #define SWIG_From_unsigned_SS_int SWIG_From_long
909 /*@@*/
910 #else
911 /*@c:\\PROJECTS\\SWIG-cvs\\Lib\\python\\pymacros.swg,63,SWIG_define@*/
912 #define SWIG_From_unsigned_SS_int SWIG_From_unsigned_SS_long
913 /*@@*/
914 #endif
915
916
917 SWIGSTATICINLINE(int)
918 SWIG_CheckUnsignedLongInRange(unsigned long value,
919 unsigned long max_value,
920 const char *errmsg)
921 {
922 if (value > max_value) {
923 if (errmsg) {
924 PyErr_Format(PyExc_OverflowError,
925 "value %ld is greater than '%s' minimum %ld",
926 value, errmsg, max_value);
927 }
928 return 0;
929 }
930 return 1;
931 }
932
933
934 #if UINT_MAX != ULONG_MAX
935 SWIGSTATICINLINE(int)
936 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
937 {
938 const char* errmsg = val ? "unsigned int" : 0;
939 unsigned long v;
940 if (SWIG_AsVal_unsigned_SS_long(obj, &v)) {
941 if (SWIG_CheckUnsignedLongInRange(v, INT_MAX, errmsg)) {
942 if (val) *val = swig_numeric_cast(v, unsigned int);
943 return 1;
944 }
945 } else {
946 PyErr_Clear();
947 }
948 if (val) {
949 PyErr_SetString(PyExc_TypeError, "an unsigned int is expected");
950 }
951 return 0;
952 }
953 #else
954 SWIGSTATICINLINE(unsigned int)
955 SWIG_AsVal_unsigned_SS_int(PyObject *obj, unsigned int *val)
956 {
957 return SWIG_AsVal_unsigned_SS_long(obj,(unsigned long *)val);
958 }
959 #endif
960
961
962 SWIGSTATICINLINE(unsigned int)
963 SWIG_As_unsigned_SS_int(PyObject* obj)
964 {
965 unsigned int v;
966 if (!SWIG_AsVal_unsigned_SS_int(obj, &v)) {
967 /*
968 this is needed to make valgrind/purify happier. the other
969 solution is throw an exception, but since this code should work
970 with plain C ....
971 */
972 memset((void*)&v, 0, sizeof(unsigned int));
973 }
974 return v;
975 }
976
977
978 SWIGSTATICINLINE(int)
979 SWIG_Check_unsigned_SS_int(PyObject* obj)
980 {
981 return SWIG_AsVal_unsigned_SS_int(obj, (unsigned int*)0);
982 }
983
984 wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
985 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
986 if (data == NULL) {
987 data = new wxPyTreeItemData();
988 data->SetId(item); // set the id
989 self->SetItemData(item, data);
990 }
991 return data;
992 }
993 PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){
994 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
995 if (data == NULL) {
996 data = new wxPyTreeItemData();
997 data->SetId(item); // set the id
998 self->SetItemData(item, data);
999 }
1000 return data->GetData();
1001 }
1002 void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){
1003 data->SetId(item); // set the id
1004 self->SetItemData(item, data);
1005 }
1006 void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){
1007 wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
1008 if (data == NULL) {
1009 data = new wxPyTreeItemData(obj);
1010 data->SetId(item); // set the id
1011 self->SetItemData(item, data);
1012 } else
1013 data->SetData(obj);
1014 }
1015 PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){
1016 bool blocked = wxPyBeginBlockThreads();
1017 PyObject* rval = PyList_New(0);
1018 wxArrayTreeItemIds array;
1019 size_t num, x;
1020 num = self->GetSelections(array);
1021 for (x=0; x < num; x++) {
1022 wxTreeItemId *tii = new wxTreeItemId(array.Item(x));
1023 PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), true);
1024 PyList_Append(rval, item);
1025 Py_DECREF(item);
1026 }
1027 wxPyEndBlockThreads(blocked);
1028 return rval;
1029 }
1030 PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){
1031 void* cookie = 0;
1032 wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie));
1033 bool blocked = wxPyBeginBlockThreads();
1034 PyObject* tup = PyTuple_New(2);
1035 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1036 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1037 wxPyEndBlockThreads(blocked);
1038 return tup;
1039 }
1040 PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){
1041 wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie));
1042 bool blocked = wxPyBeginBlockThreads();
1043 PyObject* tup = PyTuple_New(2);
1044 PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), true));
1045 PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void")));
1046 wxPyEndBlockThreads(blocked);
1047 return tup;
1048 }
1049 PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){
1050 wxRect rect;
1051 if (self->GetBoundingRect(item, rect, textOnly)) {
1052 bool blocked = wxPyBeginBlockThreads();
1053 wxRect* r = new wxRect(rect);
1054 PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), true);
1055 wxPyEndBlockThreads(blocked);
1056 return val;
1057 }
1058 else
1059 RETURN_NONE();
1060 }
1061 static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr);
1062
1063 SWIGSTATICINLINE(PyObject*)
1064 SWIG_From_bool(bool value)
1065 {
1066 PyObject *obj = value ? Py_True : Py_False;
1067 Py_INCREF(obj);
1068 return obj;
1069 }
1070
1071
1072 // C++ version of Python aware wxControl
1073 class wxPyControl : public wxControl
1074 {
1075 DECLARE_DYNAMIC_CLASS(wxPyControl)
1076 public:
1077 wxPyControl() : wxControl() {}
1078 wxPyControl(wxWindow* parent, const wxWindowID id,
1079 const wxPoint& pos = wxDefaultPosition,
1080 const wxSize& size = wxDefaultSize,
1081 long style = 0,
1082 const wxValidator& validator=wxDefaultValidator,
1083 const wxString& name = wxPyControlNameStr)
1084 : wxControl(parent, id, pos, size, style, validator, name) {}
1085
1086 void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
1087
1088 DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
1089 DEC_PYCALLBACK_VOID_INT5(DoSetSize);
1090 DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
1091 DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize);
1092
1093 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize);
1094 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize);
1095 DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition);
1096
1097 DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize);
1098 DEC_PYCALLBACK_SIZE_const(DoGetBestSize);
1099
1100 DEC_PYCALLBACK__(InitDialog);
1101 DEC_PYCALLBACK_BOOL_(TransferDataFromWindow);
1102 DEC_PYCALLBACK_BOOL_(TransferDataToWindow);
1103 DEC_PYCALLBACK_BOOL_(Validate);
1104
1105 DEC_PYCALLBACK_BOOL_const(AcceptsFocus);
1106 DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard);
1107 DEC_PYCALLBACK_SIZE_const(GetMaxSize);
1108
1109 DEC_PYCALLBACK_VOID_WXWINBASE(AddChild);
1110 DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
1111
1112 DEC_PYCALLBACK_BOOL_const(ShouldInheritColours);
1113 DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
1114 DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes);
1115
1116 PYPRIVATE;
1117 };
1118
1119 IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl);
1120
1121 IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow);
1122 IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize);
1123 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize);
1124 IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize);
1125
1126 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize);
1127 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize);
1128 IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition);
1129
1130 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize);
1131 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize);
1132
1133 IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog);
1134 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow);
1135 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow);
1136 IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate);
1137
1138 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus);
1139 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard);
1140 IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize);
1141
1142 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
1143 IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
1144
1145 IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours);
1146 IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
1147 IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes);
1148
1149
1150
1151 void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; }
1152
1153 #include <wx/generic/dragimgg.h>
1154
1155 #ifdef __cplusplus
1156 extern "C" {
1157 #endif
1158 static int _wrap_ButtonNameStr_set(PyObject *) {
1159 PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only.");
1160 return 1;
1161 }
1162
1163
1164 static PyObject *_wrap_ButtonNameStr_get() {
1165 PyObject *pyobj;
1166
1167 {
1168 #if wxUSE_UNICODE
1169 pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1170 #else
1171 pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len());
1172 #endif
1173 }
1174 return pyobj;
1175 }
1176
1177
1178 static PyObject *_wrap_new_Button(PyObject *, PyObject *args, PyObject *kwargs) {
1179 PyObject *resultobj;
1180 wxWindow *arg1 = (wxWindow *) 0 ;
1181 int arg2 = (int) -1 ;
1182 wxString const &arg3_defvalue = wxPyEmptyString ;
1183 wxString *arg3 = (wxString *) &arg3_defvalue ;
1184 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1185 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1186 wxSize const &arg5_defvalue = wxDefaultSize ;
1187 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1188 long arg6 = (long) 0 ;
1189 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1190 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1191 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1192 wxString *arg8 = (wxString *) &arg8_defvalue ;
1193 wxButton *result;
1194 bool temp3 = false ;
1195 wxPoint temp4 ;
1196 wxSize temp5 ;
1197 bool temp8 = false ;
1198 PyObject * obj0 = 0 ;
1199 PyObject * obj1 = 0 ;
1200 PyObject * obj2 = 0 ;
1201 PyObject * obj3 = 0 ;
1202 PyObject * obj4 = 0 ;
1203 PyObject * obj5 = 0 ;
1204 PyObject * obj6 = 0 ;
1205 PyObject * obj7 = 0 ;
1206 char *kwnames[] = {
1207 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1208 };
1209
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1213 if (obj1) {
1214 arg2 = (int)SWIG_As_int(obj1);
1215 if (PyErr_Occurred()) SWIG_fail;
1216 }
1217 if (obj2) {
1218 {
1219 arg3 = wxString_in_helper(obj2);
1220 if (arg3 == NULL) SWIG_fail;
1221 temp3 = true;
1222 }
1223 }
1224 if (obj3) {
1225 {
1226 arg4 = &temp4;
1227 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1228 }
1229 }
1230 if (obj4) {
1231 {
1232 arg5 = &temp5;
1233 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1234 }
1235 }
1236 if (obj5) {
1237 arg6 = (long)SWIG_As_long(obj5);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 if (obj6) {
1241 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1242 SWIG_POINTER_EXCEPTION | 0)) == -1)
1243 SWIG_fail;
1244 if (arg7 == NULL) {
1245 PyErr_SetString(PyExc_TypeError,"null reference");
1246 SWIG_fail;
1247 }
1248 }
1249 if (obj7) {
1250 {
1251 arg8 = wxString_in_helper(obj7);
1252 if (arg8 == NULL) SWIG_fail;
1253 temp8 = true;
1254 }
1255 }
1256 {
1257 if (!wxPyCheckForApp()) SWIG_fail;
1258 PyThreadState* __tstate = wxPyBeginAllowThreads();
1259 result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1260
1261 wxPyEndAllowThreads(__tstate);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 }
1264 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1265 {
1266 if (temp3)
1267 delete arg3;
1268 }
1269 {
1270 if (temp8)
1271 delete arg8;
1272 }
1273 return resultobj;
1274 fail:
1275 {
1276 if (temp3)
1277 delete arg3;
1278 }
1279 {
1280 if (temp8)
1281 delete arg8;
1282 }
1283 return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_new_PreButton(PyObject *, PyObject *args, PyObject *kwargs) {
1288 PyObject *resultobj;
1289 wxButton *result;
1290 char *kwnames[] = {
1291 NULL
1292 };
1293
1294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail;
1295 {
1296 if (!wxPyCheckForApp()) SWIG_fail;
1297 PyThreadState* __tstate = wxPyBeginAllowThreads();
1298 result = (wxButton *)new wxButton();
1299
1300 wxPyEndAllowThreads(__tstate);
1301 if (PyErr_Occurred()) SWIG_fail;
1302 }
1303 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1);
1304 return resultobj;
1305 fail:
1306 return NULL;
1307 }
1308
1309
1310 static PyObject *_wrap_Button_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1311 PyObject *resultobj;
1312 wxButton *arg1 = (wxButton *) 0 ;
1313 wxWindow *arg2 = (wxWindow *) 0 ;
1314 int arg3 = (int) -1 ;
1315 wxString const &arg4_defvalue = wxPyEmptyString ;
1316 wxString *arg4 = (wxString *) &arg4_defvalue ;
1317 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1318 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1319 wxSize const &arg6_defvalue = wxDefaultSize ;
1320 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1321 long arg7 = (long) 0 ;
1322 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1323 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1324 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1325 wxString *arg9 = (wxString *) &arg9_defvalue ;
1326 bool result;
1327 bool temp4 = false ;
1328 wxPoint temp5 ;
1329 wxSize temp6 ;
1330 bool temp9 = false ;
1331 PyObject * obj0 = 0 ;
1332 PyObject * obj1 = 0 ;
1333 PyObject * obj2 = 0 ;
1334 PyObject * obj3 = 0 ;
1335 PyObject * obj4 = 0 ;
1336 PyObject * obj5 = 0 ;
1337 PyObject * obj6 = 0 ;
1338 PyObject * obj7 = 0 ;
1339 PyObject * obj8 = 0 ;
1340 char *kwnames[] = {
1341 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1342 };
1343
1344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1347 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1349 if (obj2) {
1350 arg3 = (int)SWIG_As_int(obj2);
1351 if (PyErr_Occurred()) SWIG_fail;
1352 }
1353 if (obj3) {
1354 {
1355 arg4 = wxString_in_helper(obj3);
1356 if (arg4 == NULL) SWIG_fail;
1357 temp4 = true;
1358 }
1359 }
1360 if (obj4) {
1361 {
1362 arg5 = &temp5;
1363 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1364 }
1365 }
1366 if (obj5) {
1367 {
1368 arg6 = &temp6;
1369 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1370 }
1371 }
1372 if (obj6) {
1373 arg7 = (long)SWIG_As_long(obj6);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 }
1376 if (obj7) {
1377 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1378 SWIG_POINTER_EXCEPTION | 0)) == -1)
1379 SWIG_fail;
1380 if (arg8 == NULL) {
1381 PyErr_SetString(PyExc_TypeError,"null reference");
1382 SWIG_fail;
1383 }
1384 }
1385 if (obj8) {
1386 {
1387 arg9 = wxString_in_helper(obj8);
1388 if (arg9 == NULL) SWIG_fail;
1389 temp9 = true;
1390 }
1391 }
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 {
1400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1401 }
1402 {
1403 if (temp4)
1404 delete arg4;
1405 }
1406 {
1407 if (temp9)
1408 delete arg9;
1409 }
1410 return resultobj;
1411 fail:
1412 {
1413 if (temp4)
1414 delete arg4;
1415 }
1416 {
1417 if (temp9)
1418 delete arg9;
1419 }
1420 return NULL;
1421 }
1422
1423
1424 static PyObject *_wrap_Button_SetDefault(PyObject *, PyObject *args, PyObject *kwargs) {
1425 PyObject *resultobj;
1426 wxButton *arg1 = (wxButton *) 0 ;
1427 PyObject * obj0 = 0 ;
1428 char *kwnames[] = {
1429 (char *) "self", NULL
1430 };
1431
1432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail;
1433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton,
1434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1435 {
1436 PyThreadState* __tstate = wxPyBeginAllowThreads();
1437 (arg1)->SetDefault();
1438
1439 wxPyEndAllowThreads(__tstate);
1440 if (PyErr_Occurred()) SWIG_fail;
1441 }
1442 Py_INCREF(Py_None); resultobj = Py_None;
1443 return resultobj;
1444 fail:
1445 return NULL;
1446 }
1447
1448
1449 static PyObject *_wrap_Button_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
1450 PyObject *resultobj;
1451 wxSize result;
1452 char *kwnames[] = {
1453 NULL
1454 };
1455
1456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail;
1457 {
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 result = wxButton::GetDefaultSize();
1460
1461 wxPyEndAllowThreads(__tstate);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 }
1464 {
1465 wxSize * resultptr;
1466 resultptr = new wxSize((wxSize &) result);
1467 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
1468 }
1469 return resultobj;
1470 fail:
1471 return NULL;
1472 }
1473
1474
1475 static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
1476 PyObject *resultobj;
1477 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
1478 wxVisualAttributes result;
1479 PyObject * obj0 = 0 ;
1480 char *kwnames[] = {
1481 (char *) "variant", NULL
1482 };
1483
1484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
1485 if (obj0) {
1486 arg1 = (int)SWIG_As_int(obj0);
1487 if (PyErr_Occurred()) SWIG_fail;
1488 }
1489 {
1490 if (!wxPyCheckForApp()) SWIG_fail;
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 {
1498 wxVisualAttributes * resultptr;
1499 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
1500 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
1501 }
1502 return resultobj;
1503 fail:
1504 return NULL;
1505 }
1506
1507
1508 static PyObject * Button_swigregister(PyObject *, PyObject *args) {
1509 PyObject *obj;
1510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1511 SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj);
1512 Py_INCREF(obj);
1513 return Py_BuildValue((char *)"");
1514 }
1515 static PyObject *_wrap_new_BitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1516 PyObject *resultobj;
1517 wxWindow *arg1 = (wxWindow *) 0 ;
1518 int arg2 = (int) -1 ;
1519 wxBitmap const &arg3_defvalue = wxNullBitmap ;
1520 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
1521 wxPoint const &arg4_defvalue = wxDefaultPosition ;
1522 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
1523 wxSize const &arg5_defvalue = wxDefaultSize ;
1524 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
1525 long arg6 = (long) wxBU_AUTODRAW ;
1526 wxValidator const &arg7_defvalue = wxDefaultValidator ;
1527 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
1528 wxString const &arg8_defvalue = wxPyButtonNameStr ;
1529 wxString *arg8 = (wxString *) &arg8_defvalue ;
1530 wxBitmapButton *result;
1531 wxPoint temp4 ;
1532 wxSize temp5 ;
1533 bool temp8 = false ;
1534 PyObject * obj0 = 0 ;
1535 PyObject * obj1 = 0 ;
1536 PyObject * obj2 = 0 ;
1537 PyObject * obj3 = 0 ;
1538 PyObject * obj4 = 0 ;
1539 PyObject * obj5 = 0 ;
1540 PyObject * obj6 = 0 ;
1541 PyObject * obj7 = 0 ;
1542 char *kwnames[] = {
1543 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1544 };
1545
1546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
1547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
1548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1549 if (obj1) {
1550 arg2 = (int)SWIG_As_int(obj1);
1551 if (PyErr_Occurred()) SWIG_fail;
1552 }
1553 if (obj2) {
1554 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1)
1556 SWIG_fail;
1557 if (arg3 == NULL) {
1558 PyErr_SetString(PyExc_TypeError,"null reference");
1559 SWIG_fail;
1560 }
1561 }
1562 if (obj3) {
1563 {
1564 arg4 = &temp4;
1565 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
1566 }
1567 }
1568 if (obj4) {
1569 {
1570 arg5 = &temp5;
1571 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
1572 }
1573 }
1574 if (obj5) {
1575 arg6 = (long)SWIG_As_long(obj5);
1576 if (PyErr_Occurred()) SWIG_fail;
1577 }
1578 if (obj6) {
1579 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
1580 SWIG_POINTER_EXCEPTION | 0)) == -1)
1581 SWIG_fail;
1582 if (arg7 == NULL) {
1583 PyErr_SetString(PyExc_TypeError,"null reference");
1584 SWIG_fail;
1585 }
1586 }
1587 if (obj7) {
1588 {
1589 arg8 = wxString_in_helper(obj7);
1590 if (arg8 == NULL) SWIG_fail;
1591 temp8 = true;
1592 }
1593 }
1594 {
1595 if (!wxPyCheckForApp()) SWIG_fail;
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1603 {
1604 if (temp8)
1605 delete arg8;
1606 }
1607 return resultobj;
1608 fail:
1609 {
1610 if (temp8)
1611 delete arg8;
1612 }
1613 return NULL;
1614 }
1615
1616
1617 static PyObject *_wrap_new_PreBitmapButton(PyObject *, PyObject *args, PyObject *kwargs) {
1618 PyObject *resultobj;
1619 wxBitmapButton *result;
1620 char *kwnames[] = {
1621 NULL
1622 };
1623
1624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail;
1625 {
1626 if (!wxPyCheckForApp()) SWIG_fail;
1627 PyThreadState* __tstate = wxPyBeginAllowThreads();
1628 result = (wxBitmapButton *)new wxBitmapButton();
1629
1630 wxPyEndAllowThreads(__tstate);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 }
1633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1);
1634 return resultobj;
1635 fail:
1636 return NULL;
1637 }
1638
1639
1640 static PyObject *_wrap_BitmapButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
1641 PyObject *resultobj;
1642 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1643 wxWindow *arg2 = (wxWindow *) 0 ;
1644 int arg3 = (int) -1 ;
1645 wxBitmap const &arg4_defvalue = wxNullBitmap ;
1646 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
1647 wxPoint const &arg5_defvalue = wxDefaultPosition ;
1648 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
1649 wxSize const &arg6_defvalue = wxDefaultSize ;
1650 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
1651 long arg7 = (long) wxBU_AUTODRAW ;
1652 wxValidator const &arg8_defvalue = wxDefaultValidator ;
1653 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
1654 wxString const &arg9_defvalue = wxPyButtonNameStr ;
1655 wxString *arg9 = (wxString *) &arg9_defvalue ;
1656 bool result;
1657 wxPoint temp5 ;
1658 wxSize temp6 ;
1659 bool temp9 = false ;
1660 PyObject * obj0 = 0 ;
1661 PyObject * obj1 = 0 ;
1662 PyObject * obj2 = 0 ;
1663 PyObject * obj3 = 0 ;
1664 PyObject * obj4 = 0 ;
1665 PyObject * obj5 = 0 ;
1666 PyObject * obj6 = 0 ;
1667 PyObject * obj7 = 0 ;
1668 PyObject * obj8 = 0 ;
1669 char *kwnames[] = {
1670 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
1671 };
1672
1673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
1674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1676 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
1677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1678 if (obj2) {
1679 arg3 = (int)SWIG_As_int(obj2);
1680 if (PyErr_Occurred()) SWIG_fail;
1681 }
1682 if (obj3) {
1683 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
1684 SWIG_POINTER_EXCEPTION | 0)) == -1)
1685 SWIG_fail;
1686 if (arg4 == NULL) {
1687 PyErr_SetString(PyExc_TypeError,"null reference");
1688 SWIG_fail;
1689 }
1690 }
1691 if (obj4) {
1692 {
1693 arg5 = &temp5;
1694 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
1695 }
1696 }
1697 if (obj5) {
1698 {
1699 arg6 = &temp6;
1700 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
1701 }
1702 }
1703 if (obj6) {
1704 arg7 = (long)SWIG_As_long(obj6);
1705 if (PyErr_Occurred()) SWIG_fail;
1706 }
1707 if (obj7) {
1708 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
1709 SWIG_POINTER_EXCEPTION | 0)) == -1)
1710 SWIG_fail;
1711 if (arg8 == NULL) {
1712 PyErr_SetString(PyExc_TypeError,"null reference");
1713 SWIG_fail;
1714 }
1715 }
1716 if (obj8) {
1717 {
1718 arg9 = wxString_in_helper(obj8);
1719 if (arg9 == NULL) SWIG_fail;
1720 temp9 = true;
1721 }
1722 }
1723 {
1724 PyThreadState* __tstate = wxPyBeginAllowThreads();
1725 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
1726
1727 wxPyEndAllowThreads(__tstate);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 {
1731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1732 }
1733 {
1734 if (temp9)
1735 delete arg9;
1736 }
1737 return resultobj;
1738 fail:
1739 {
1740 if (temp9)
1741 delete arg9;
1742 }
1743 return NULL;
1744 }
1745
1746
1747 static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1748 PyObject *resultobj;
1749 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1750 wxBitmap result;
1751 PyObject * obj0 = 0 ;
1752 char *kwnames[] = {
1753 (char *) "self", NULL
1754 };
1755
1756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail;
1757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1759 {
1760 PyThreadState* __tstate = wxPyBeginAllowThreads();
1761 result = (arg1)->GetBitmapLabel();
1762
1763 wxPyEndAllowThreads(__tstate);
1764 if (PyErr_Occurred()) SWIG_fail;
1765 }
1766 {
1767 wxBitmap * resultptr;
1768 resultptr = new wxBitmap((wxBitmap &) result);
1769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1770 }
1771 return resultobj;
1772 fail:
1773 return NULL;
1774 }
1775
1776
1777 static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1778 PyObject *resultobj;
1779 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1780 wxBitmap result;
1781 PyObject * obj0 = 0 ;
1782 char *kwnames[] = {
1783 (char *) "self", NULL
1784 };
1785
1786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail;
1787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1789 {
1790 PyThreadState* __tstate = wxPyBeginAllowThreads();
1791 result = (arg1)->GetBitmapDisabled();
1792
1793 wxPyEndAllowThreads(__tstate);
1794 if (PyErr_Occurred()) SWIG_fail;
1795 }
1796 {
1797 wxBitmap * resultptr;
1798 resultptr = new wxBitmap((wxBitmap &) result);
1799 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1800 }
1801 return resultobj;
1802 fail:
1803 return NULL;
1804 }
1805
1806
1807 static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1808 PyObject *resultobj;
1809 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1810 wxBitmap result;
1811 PyObject * obj0 = 0 ;
1812 char *kwnames[] = {
1813 (char *) "self", NULL
1814 };
1815
1816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail;
1817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1819 {
1820 PyThreadState* __tstate = wxPyBeginAllowThreads();
1821 result = (arg1)->GetBitmapFocus();
1822
1823 wxPyEndAllowThreads(__tstate);
1824 if (PyErr_Occurred()) SWIG_fail;
1825 }
1826 {
1827 wxBitmap * resultptr;
1828 resultptr = new wxBitmap((wxBitmap &) result);
1829 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1830 }
1831 return resultobj;
1832 fail:
1833 return NULL;
1834 }
1835
1836
1837 static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1838 PyObject *resultobj;
1839 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1840 wxBitmap result;
1841 PyObject * obj0 = 0 ;
1842 char *kwnames[] = {
1843 (char *) "self", NULL
1844 };
1845
1846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail;
1847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1849 {
1850 PyThreadState* __tstate = wxPyBeginAllowThreads();
1851 result = (arg1)->GetBitmapSelected();
1852
1853 wxPyEndAllowThreads(__tstate);
1854 if (PyErr_Occurred()) SWIG_fail;
1855 }
1856 {
1857 wxBitmap * resultptr;
1858 resultptr = new wxBitmap((wxBitmap &) result);
1859 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
1860 }
1861 return resultobj;
1862 fail:
1863 return NULL;
1864 }
1865
1866
1867 static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *, PyObject *args, PyObject *kwargs) {
1868 PyObject *resultobj;
1869 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1870 wxBitmap *arg2 = 0 ;
1871 PyObject * obj0 = 0 ;
1872 PyObject * obj1 = 0 ;
1873 char *kwnames[] = {
1874 (char *) "self",(char *) "bitmap", NULL
1875 };
1876
1877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail;
1878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1881 SWIG_POINTER_EXCEPTION | 0)) == -1)
1882 SWIG_fail;
1883 if (arg2 == NULL) {
1884 PyErr_SetString(PyExc_TypeError,"null reference");
1885 SWIG_fail;
1886 }
1887 {
1888 PyThreadState* __tstate = wxPyBeginAllowThreads();
1889 (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2);
1890
1891 wxPyEndAllowThreads(__tstate);
1892 if (PyErr_Occurred()) SWIG_fail;
1893 }
1894 Py_INCREF(Py_None); resultobj = Py_None;
1895 return resultobj;
1896 fail:
1897 return NULL;
1898 }
1899
1900
1901 static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *, PyObject *args, PyObject *kwargs) {
1902 PyObject *resultobj;
1903 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1904 wxBitmap *arg2 = 0 ;
1905 PyObject * obj0 = 0 ;
1906 PyObject * obj1 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self",(char *) "bitmap", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1)
1916 SWIG_fail;
1917 if (arg2 == NULL) {
1918 PyErr_SetString(PyExc_TypeError,"null reference");
1919 SWIG_fail;
1920 }
1921 {
1922 PyThreadState* __tstate = wxPyBeginAllowThreads();
1923 (arg1)->SetBitmapFocus((wxBitmap const &)*arg2);
1924
1925 wxPyEndAllowThreads(__tstate);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
1928 Py_INCREF(Py_None); resultobj = Py_None;
1929 return resultobj;
1930 fail:
1931 return NULL;
1932 }
1933
1934
1935 static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *, PyObject *args, PyObject *kwargs) {
1936 PyObject *resultobj;
1937 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1938 wxBitmap *arg2 = 0 ;
1939 PyObject * obj0 = 0 ;
1940 PyObject * obj1 = 0 ;
1941 char *kwnames[] = {
1942 (char *) "self",(char *) "bitmap", NULL
1943 };
1944
1945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail;
1946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1948 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1949 SWIG_POINTER_EXCEPTION | 0)) == -1)
1950 SWIG_fail;
1951 if (arg2 == NULL) {
1952 PyErr_SetString(PyExc_TypeError,"null reference");
1953 SWIG_fail;
1954 }
1955 {
1956 PyThreadState* __tstate = wxPyBeginAllowThreads();
1957 (arg1)->SetBitmapSelected((wxBitmap const &)*arg2);
1958
1959 wxPyEndAllowThreads(__tstate);
1960 if (PyErr_Occurred()) SWIG_fail;
1961 }
1962 Py_INCREF(Py_None); resultobj = Py_None;
1963 return resultobj;
1964 fail:
1965 return NULL;
1966 }
1967
1968
1969 static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *, PyObject *args, PyObject *kwargs) {
1970 PyObject *resultobj;
1971 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
1972 wxBitmap *arg2 = 0 ;
1973 PyObject * obj0 = 0 ;
1974 PyObject * obj1 = 0 ;
1975 char *kwnames[] = {
1976 (char *) "self",(char *) "bitmap", NULL
1977 };
1978
1979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail;
1980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
1981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1982 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
1983 SWIG_POINTER_EXCEPTION | 0)) == -1)
1984 SWIG_fail;
1985 if (arg2 == NULL) {
1986 PyErr_SetString(PyExc_TypeError,"null reference");
1987 SWIG_fail;
1988 }
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 (arg1)->SetBitmapLabel((wxBitmap const &)*arg2);
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 Py_INCREF(Py_None); resultobj = Py_None;
1997 return resultobj;
1998 fail:
1999 return NULL;
2000 }
2001
2002
2003 static PyObject *_wrap_BitmapButton_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
2004 PyObject *resultobj;
2005 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2006 int arg2 ;
2007 int arg3 ;
2008 PyObject * obj0 = 0 ;
2009 PyObject * obj1 = 0 ;
2010 PyObject * obj2 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "self",(char *) "x",(char *) "y", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2018 arg2 = (int)SWIG_As_int(obj1);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 arg3 = (int)SWIG_As_int(obj2);
2021 if (PyErr_Occurred()) SWIG_fail;
2022 {
2023 PyThreadState* __tstate = wxPyBeginAllowThreads();
2024 (arg1)->SetMargins(arg2,arg3);
2025
2026 wxPyEndAllowThreads(__tstate);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 Py_INCREF(Py_None); resultobj = Py_None;
2030 return resultobj;
2031 fail:
2032 return NULL;
2033 }
2034
2035
2036 static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *, PyObject *args, PyObject *kwargs) {
2037 PyObject *resultobj;
2038 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2039 int result;
2040 PyObject * obj0 = 0 ;
2041 char *kwnames[] = {
2042 (char *) "self", NULL
2043 };
2044
2045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail;
2046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2048 {
2049 PyThreadState* __tstate = wxPyBeginAllowThreads();
2050 result = (int)((wxBitmapButton const *)arg1)->GetMarginX();
2051
2052 wxPyEndAllowThreads(__tstate);
2053 if (PyErr_Occurred()) SWIG_fail;
2054 }
2055 resultobj = SWIG_From_int((int)result);
2056 return resultobj;
2057 fail:
2058 return NULL;
2059 }
2060
2061
2062 static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *, PyObject *args, PyObject *kwargs) {
2063 PyObject *resultobj;
2064 wxBitmapButton *arg1 = (wxBitmapButton *) 0 ;
2065 int result;
2066 PyObject * obj0 = 0 ;
2067 char *kwnames[] = {
2068 (char *) "self", NULL
2069 };
2070
2071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail;
2072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton,
2073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2074 {
2075 PyThreadState* __tstate = wxPyBeginAllowThreads();
2076 result = (int)((wxBitmapButton const *)arg1)->GetMarginY();
2077
2078 wxPyEndAllowThreads(__tstate);
2079 if (PyErr_Occurred()) SWIG_fail;
2080 }
2081 resultobj = SWIG_From_int((int)result);
2082 return resultobj;
2083 fail:
2084 return NULL;
2085 }
2086
2087
2088 static PyObject * BitmapButton_swigregister(PyObject *, PyObject *args) {
2089 PyObject *obj;
2090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2091 SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj);
2092 Py_INCREF(obj);
2093 return Py_BuildValue((char *)"");
2094 }
2095 static int _wrap_CheckBoxNameStr_set(PyObject *) {
2096 PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only.");
2097 return 1;
2098 }
2099
2100
2101 static PyObject *_wrap_CheckBoxNameStr_get() {
2102 PyObject *pyobj;
2103
2104 {
2105 #if wxUSE_UNICODE
2106 pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2107 #else
2108 pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len());
2109 #endif
2110 }
2111 return pyobj;
2112 }
2113
2114
2115 static PyObject *_wrap_new_CheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2116 PyObject *resultobj;
2117 wxWindow *arg1 = (wxWindow *) 0 ;
2118 int arg2 = (int) -1 ;
2119 wxString const &arg3_defvalue = wxPyEmptyString ;
2120 wxString *arg3 = (wxString *) &arg3_defvalue ;
2121 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2122 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2123 wxSize const &arg5_defvalue = wxDefaultSize ;
2124 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2125 long arg6 = (long) 0 ;
2126 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2127 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2128 wxString const &arg8_defvalue = wxPyCheckBoxNameStr ;
2129 wxString *arg8 = (wxString *) &arg8_defvalue ;
2130 wxCheckBox *result;
2131 bool temp3 = false ;
2132 wxPoint temp4 ;
2133 wxSize temp5 ;
2134 bool temp8 = false ;
2135 PyObject * obj0 = 0 ;
2136 PyObject * obj1 = 0 ;
2137 PyObject * obj2 = 0 ;
2138 PyObject * obj3 = 0 ;
2139 PyObject * obj4 = 0 ;
2140 PyObject * obj5 = 0 ;
2141 PyObject * obj6 = 0 ;
2142 PyObject * obj7 = 0 ;
2143 char *kwnames[] = {
2144 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2150 if (obj1) {
2151 arg2 = (int)SWIG_As_int(obj1);
2152 if (PyErr_Occurred()) SWIG_fail;
2153 }
2154 if (obj2) {
2155 {
2156 arg3 = wxString_in_helper(obj2);
2157 if (arg3 == NULL) SWIG_fail;
2158 temp3 = true;
2159 }
2160 }
2161 if (obj3) {
2162 {
2163 arg4 = &temp4;
2164 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2165 }
2166 }
2167 if (obj4) {
2168 {
2169 arg5 = &temp5;
2170 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2171 }
2172 }
2173 if (obj5) {
2174 arg6 = (long)SWIG_As_long(obj5);
2175 if (PyErr_Occurred()) SWIG_fail;
2176 }
2177 if (obj6) {
2178 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2179 SWIG_POINTER_EXCEPTION | 0)) == -1)
2180 SWIG_fail;
2181 if (arg7 == NULL) {
2182 PyErr_SetString(PyExc_TypeError,"null reference");
2183 SWIG_fail;
2184 }
2185 }
2186 if (obj7) {
2187 {
2188 arg8 = wxString_in_helper(obj7);
2189 if (arg8 == NULL) SWIG_fail;
2190 temp8 = true;
2191 }
2192 }
2193 {
2194 if (!wxPyCheckForApp()) SWIG_fail;
2195 PyThreadState* __tstate = wxPyBeginAllowThreads();
2196 result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2197
2198 wxPyEndAllowThreads(__tstate);
2199 if (PyErr_Occurred()) SWIG_fail;
2200 }
2201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2202 {
2203 if (temp3)
2204 delete arg3;
2205 }
2206 {
2207 if (temp8)
2208 delete arg8;
2209 }
2210 return resultobj;
2211 fail:
2212 {
2213 if (temp3)
2214 delete arg3;
2215 }
2216 {
2217 if (temp8)
2218 delete arg8;
2219 }
2220 return NULL;
2221 }
2222
2223
2224 static PyObject *_wrap_new_PreCheckBox(PyObject *, PyObject *args, PyObject *kwargs) {
2225 PyObject *resultobj;
2226 wxCheckBox *result;
2227 char *kwnames[] = {
2228 NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail;
2232 {
2233 if (!wxPyCheckForApp()) SWIG_fail;
2234 PyThreadState* __tstate = wxPyBeginAllowThreads();
2235 result = (wxCheckBox *)new wxCheckBox();
2236
2237 wxPyEndAllowThreads(__tstate);
2238 if (PyErr_Occurred()) SWIG_fail;
2239 }
2240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1);
2241 return resultobj;
2242 fail:
2243 return NULL;
2244 }
2245
2246
2247 static PyObject *_wrap_CheckBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2248 PyObject *resultobj;
2249 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2250 wxWindow *arg2 = (wxWindow *) 0 ;
2251 int arg3 = (int) -1 ;
2252 wxString const &arg4_defvalue = wxPyEmptyString ;
2253 wxString *arg4 = (wxString *) &arg4_defvalue ;
2254 wxPoint const &arg5_defvalue = wxDefaultPosition ;
2255 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
2256 wxSize const &arg6_defvalue = wxDefaultSize ;
2257 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
2258 long arg7 = (long) 0 ;
2259 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2260 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2261 wxString const &arg9_defvalue = wxPyCheckBoxNameStr ;
2262 wxString *arg9 = (wxString *) &arg9_defvalue ;
2263 bool result;
2264 bool temp4 = false ;
2265 wxPoint temp5 ;
2266 wxSize temp6 ;
2267 bool temp9 = false ;
2268 PyObject * obj0 = 0 ;
2269 PyObject * obj1 = 0 ;
2270 PyObject * obj2 = 0 ;
2271 PyObject * obj3 = 0 ;
2272 PyObject * obj4 = 0 ;
2273 PyObject * obj5 = 0 ;
2274 PyObject * obj6 = 0 ;
2275 PyObject * obj7 = 0 ;
2276 PyObject * obj8 = 0 ;
2277 char *kwnames[] = {
2278 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
2279 };
2280
2281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2286 if (obj2) {
2287 arg3 = (int)SWIG_As_int(obj2);
2288 if (PyErr_Occurred()) SWIG_fail;
2289 }
2290 if (obj3) {
2291 {
2292 arg4 = wxString_in_helper(obj3);
2293 if (arg4 == NULL) SWIG_fail;
2294 temp4 = true;
2295 }
2296 }
2297 if (obj4) {
2298 {
2299 arg5 = &temp5;
2300 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
2301 }
2302 }
2303 if (obj5) {
2304 {
2305 arg6 = &temp6;
2306 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
2307 }
2308 }
2309 if (obj6) {
2310 arg7 = (long)SWIG_As_long(obj6);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 if (obj7) {
2314 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2315 SWIG_POINTER_EXCEPTION | 0)) == -1)
2316 SWIG_fail;
2317 if (arg8 == NULL) {
2318 PyErr_SetString(PyExc_TypeError,"null reference");
2319 SWIG_fail;
2320 }
2321 }
2322 if (obj8) {
2323 {
2324 arg9 = wxString_in_helper(obj8);
2325 if (arg9 == NULL) SWIG_fail;
2326 temp9 = true;
2327 }
2328 }
2329 {
2330 PyThreadState* __tstate = wxPyBeginAllowThreads();
2331 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2332
2333 wxPyEndAllowThreads(__tstate);
2334 if (PyErr_Occurred()) SWIG_fail;
2335 }
2336 {
2337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2338 }
2339 {
2340 if (temp4)
2341 delete arg4;
2342 }
2343 {
2344 if (temp9)
2345 delete arg9;
2346 }
2347 return resultobj;
2348 fail:
2349 {
2350 if (temp4)
2351 delete arg4;
2352 }
2353 {
2354 if (temp9)
2355 delete arg9;
2356 }
2357 return NULL;
2358 }
2359
2360
2361 static PyObject *_wrap_CheckBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2362 PyObject *resultobj;
2363 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2364 bool result;
2365 PyObject * obj0 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "self", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail;
2371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2373 {
2374 PyThreadState* __tstate = wxPyBeginAllowThreads();
2375 result = (bool)(arg1)->GetValue();
2376
2377 wxPyEndAllowThreads(__tstate);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 }
2380 {
2381 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2382 }
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_CheckBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2392 bool result;
2393 PyObject * obj0 = 0 ;
2394 char *kwnames[] = {
2395 (char *) "self", NULL
2396 };
2397
2398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail;
2399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2401 {
2402 PyThreadState* __tstate = wxPyBeginAllowThreads();
2403 result = (bool)(arg1)->IsChecked();
2404
2405 wxPyEndAllowThreads(__tstate);
2406 if (PyErr_Occurred()) SWIG_fail;
2407 }
2408 {
2409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2410 }
2411 return resultobj;
2412 fail:
2413 return NULL;
2414 }
2415
2416
2417 static PyObject *_wrap_CheckBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
2418 PyObject *resultobj;
2419 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2420 bool arg2 ;
2421 PyObject * obj0 = 0 ;
2422 PyObject * obj1 = 0 ;
2423 char *kwnames[] = {
2424 (char *) "self",(char *) "state", NULL
2425 };
2426
2427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
2428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2430 arg2 = (bool)SWIG_As_bool(obj1);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 (arg1)->SetValue(arg2);
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 Py_INCREF(Py_None); resultobj = Py_None;
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2449 int result;
2450 PyObject * obj0 = 0 ;
2451 char *kwnames[] = {
2452 (char *) "self", NULL
2453 };
2454
2455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail;
2456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2458 {
2459 PyThreadState* __tstate = wxPyBeginAllowThreads();
2460 result = (int)((wxCheckBox const *)arg1)->Get3StateValue();
2461
2462 wxPyEndAllowThreads(__tstate);
2463 if (PyErr_Occurred()) SWIG_fail;
2464 }
2465 resultobj = SWIG_From_int((int)result);
2466 return resultobj;
2467 fail:
2468 return NULL;
2469 }
2470
2471
2472 static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *, PyObject *args, PyObject *kwargs) {
2473 PyObject *resultobj;
2474 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2475 int arg2 ;
2476 PyObject * obj0 = 0 ;
2477 PyObject * obj1 = 0 ;
2478 char *kwnames[] = {
2479 (char *) "self",(char *) "state", NULL
2480 };
2481
2482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail;
2483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2485 arg2 = (int)SWIG_As_int(obj1);
2486 if (PyErr_Occurred()) SWIG_fail;
2487 {
2488 PyThreadState* __tstate = wxPyBeginAllowThreads();
2489 (arg1)->Set3StateValue((wxCheckBoxState )arg2);
2490
2491 wxPyEndAllowThreads(__tstate);
2492 if (PyErr_Occurred()) SWIG_fail;
2493 }
2494 Py_INCREF(Py_None); resultobj = Py_None;
2495 return resultobj;
2496 fail:
2497 return NULL;
2498 }
2499
2500
2501 static PyObject *_wrap_CheckBox_Is3State(PyObject *, PyObject *args, PyObject *kwargs) {
2502 PyObject *resultobj;
2503 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2504 bool result;
2505 PyObject * obj0 = 0 ;
2506 char *kwnames[] = {
2507 (char *) "self", NULL
2508 };
2509
2510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail;
2511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2513 {
2514 PyThreadState* __tstate = wxPyBeginAllowThreads();
2515 result = (bool)((wxCheckBox const *)arg1)->Is3State();
2516
2517 wxPyEndAllowThreads(__tstate);
2518 if (PyErr_Occurred()) SWIG_fail;
2519 }
2520 {
2521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2522 }
2523 return resultobj;
2524 fail:
2525 return NULL;
2526 }
2527
2528
2529 static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *, PyObject *args, PyObject *kwargs) {
2530 PyObject *resultobj;
2531 wxCheckBox *arg1 = (wxCheckBox *) 0 ;
2532 bool result;
2533 PyObject * obj0 = 0 ;
2534 char *kwnames[] = {
2535 (char *) "self", NULL
2536 };
2537
2538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail;
2539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox,
2540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2541 {
2542 PyThreadState* __tstate = wxPyBeginAllowThreads();
2543 result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser();
2544
2545 wxPyEndAllowThreads(__tstate);
2546 if (PyErr_Occurred()) SWIG_fail;
2547 }
2548 {
2549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2550 }
2551 return resultobj;
2552 fail:
2553 return NULL;
2554 }
2555
2556
2557 static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
2558 PyObject *resultobj;
2559 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
2560 wxVisualAttributes result;
2561 PyObject * obj0 = 0 ;
2562 char *kwnames[] = {
2563 (char *) "variant", NULL
2564 };
2565
2566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
2567 if (obj0) {
2568 arg1 = (int)SWIG_As_int(obj0);
2569 if (PyErr_Occurred()) SWIG_fail;
2570 }
2571 {
2572 if (!wxPyCheckForApp()) SWIG_fail;
2573 PyThreadState* __tstate = wxPyBeginAllowThreads();
2574 result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
2575
2576 wxPyEndAllowThreads(__tstate);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 }
2579 {
2580 wxVisualAttributes * resultptr;
2581 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
2582 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
2583 }
2584 return resultobj;
2585 fail:
2586 return NULL;
2587 }
2588
2589
2590 static PyObject * CheckBox_swigregister(PyObject *, PyObject *args) {
2591 PyObject *obj;
2592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2593 SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj);
2594 Py_INCREF(obj);
2595 return Py_BuildValue((char *)"");
2596 }
2597 static int _wrap_ChoiceNameStr_set(PyObject *) {
2598 PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only.");
2599 return 1;
2600 }
2601
2602
2603 static PyObject *_wrap_ChoiceNameStr_get() {
2604 PyObject *pyobj;
2605
2606 {
2607 #if wxUSE_UNICODE
2608 pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2609 #else
2610 pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len());
2611 #endif
2612 }
2613 return pyobj;
2614 }
2615
2616
2617 static PyObject *_wrap_new_Choice(PyObject *, PyObject *args, PyObject *kwargs) {
2618 PyObject *resultobj;
2619 wxWindow *arg1 = (wxWindow *) 0 ;
2620 int arg2 = (int) -1 ;
2621 wxPoint const &arg3_defvalue = wxDefaultPosition ;
2622 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
2623 wxSize const &arg4_defvalue = wxDefaultSize ;
2624 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
2625 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
2626 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
2627 long arg6 = (long) 0 ;
2628 wxValidator const &arg7_defvalue = wxDefaultValidator ;
2629 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
2630 wxString const &arg8_defvalue = wxPyChoiceNameStr ;
2631 wxString *arg8 = (wxString *) &arg8_defvalue ;
2632 wxChoice *result;
2633 wxPoint temp3 ;
2634 wxSize temp4 ;
2635 bool temp5 = false ;
2636 bool temp8 = false ;
2637 PyObject * obj0 = 0 ;
2638 PyObject * obj1 = 0 ;
2639 PyObject * obj2 = 0 ;
2640 PyObject * obj3 = 0 ;
2641 PyObject * obj4 = 0 ;
2642 PyObject * obj5 = 0 ;
2643 PyObject * obj6 = 0 ;
2644 PyObject * obj7 = 0 ;
2645 char *kwnames[] = {
2646 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2647 };
2648
2649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
2650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
2651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2652 if (obj1) {
2653 arg2 = (int)SWIG_As_int(obj1);
2654 if (PyErr_Occurred()) SWIG_fail;
2655 }
2656 if (obj2) {
2657 {
2658 arg3 = &temp3;
2659 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
2660 }
2661 }
2662 if (obj3) {
2663 {
2664 arg4 = &temp4;
2665 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
2666 }
2667 }
2668 if (obj4) {
2669 {
2670 if (! PySequence_Check(obj4)) {
2671 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2672 SWIG_fail;
2673 }
2674 arg5 = new wxArrayString;
2675 temp5 = true;
2676 int i, len=PySequence_Length(obj4);
2677 for (i=0; i<len; i++) {
2678 PyObject* item = PySequence_GetItem(obj4, i);
2679 #if wxUSE_UNICODE
2680 PyObject* str = PyObject_Unicode(item);
2681 #else
2682 PyObject* str = PyObject_Str(item);
2683 #endif
2684 if (PyErr_Occurred()) SWIG_fail;
2685 arg5->Add(Py2wxString(str));
2686 Py_DECREF(item);
2687 Py_DECREF(str);
2688 }
2689 }
2690 }
2691 if (obj5) {
2692 arg6 = (long)SWIG_As_long(obj5);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 }
2695 if (obj6) {
2696 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
2697 SWIG_POINTER_EXCEPTION | 0)) == -1)
2698 SWIG_fail;
2699 if (arg7 == NULL) {
2700 PyErr_SetString(PyExc_TypeError,"null reference");
2701 SWIG_fail;
2702 }
2703 }
2704 if (obj7) {
2705 {
2706 arg8 = wxString_in_helper(obj7);
2707 if (arg8 == NULL) SWIG_fail;
2708 temp8 = true;
2709 }
2710 }
2711 {
2712 if (!wxPyCheckForApp()) SWIG_fail;
2713 PyThreadState* __tstate = wxPyBeginAllowThreads();
2714 result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
2715
2716 wxPyEndAllowThreads(__tstate);
2717 if (PyErr_Occurred()) SWIG_fail;
2718 }
2719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2720 {
2721 if (temp5) delete arg5;
2722 }
2723 {
2724 if (temp8)
2725 delete arg8;
2726 }
2727 return resultobj;
2728 fail:
2729 {
2730 if (temp5) delete arg5;
2731 }
2732 {
2733 if (temp8)
2734 delete arg8;
2735 }
2736 return NULL;
2737 }
2738
2739
2740 static PyObject *_wrap_new_PreChoice(PyObject *, PyObject *args, PyObject *kwargs) {
2741 PyObject *resultobj;
2742 wxChoice *result;
2743 char *kwnames[] = {
2744 NULL
2745 };
2746
2747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail;
2748 {
2749 if (!wxPyCheckForApp()) SWIG_fail;
2750 PyThreadState* __tstate = wxPyBeginAllowThreads();
2751 result = (wxChoice *)new wxChoice();
2752
2753 wxPyEndAllowThreads(__tstate);
2754 if (PyErr_Occurred()) SWIG_fail;
2755 }
2756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1);
2757 return resultobj;
2758 fail:
2759 return NULL;
2760 }
2761
2762
2763 static PyObject *_wrap_Choice_Create(PyObject *, PyObject *args, PyObject *kwargs) {
2764 PyObject *resultobj;
2765 wxChoice *arg1 = (wxChoice *) 0 ;
2766 wxWindow *arg2 = (wxWindow *) 0 ;
2767 int arg3 = (int) -1 ;
2768 wxPoint const &arg4_defvalue = wxDefaultPosition ;
2769 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
2770 wxSize const &arg5_defvalue = wxDefaultSize ;
2771 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
2772 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
2773 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
2774 long arg7 = (long) 0 ;
2775 wxValidator const &arg8_defvalue = wxDefaultValidator ;
2776 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
2777 wxString const &arg9_defvalue = wxPyChoiceNameStr ;
2778 wxString *arg9 = (wxString *) &arg9_defvalue ;
2779 bool result;
2780 wxPoint temp4 ;
2781 wxSize temp5 ;
2782 bool temp6 = false ;
2783 bool temp9 = false ;
2784 PyObject * obj0 = 0 ;
2785 PyObject * obj1 = 0 ;
2786 PyObject * obj2 = 0 ;
2787 PyObject * obj3 = 0 ;
2788 PyObject * obj4 = 0 ;
2789 PyObject * obj5 = 0 ;
2790 PyObject * obj6 = 0 ;
2791 PyObject * obj7 = 0 ;
2792 PyObject * obj8 = 0 ;
2793 char *kwnames[] = {
2794 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
2795 };
2796
2797 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
2798 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2800 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
2801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2802 if (obj2) {
2803 arg3 = (int)SWIG_As_int(obj2);
2804 if (PyErr_Occurred()) SWIG_fail;
2805 }
2806 if (obj3) {
2807 {
2808 arg4 = &temp4;
2809 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
2810 }
2811 }
2812 if (obj4) {
2813 {
2814 arg5 = &temp5;
2815 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
2816 }
2817 }
2818 if (obj5) {
2819 {
2820 if (! PySequence_Check(obj5)) {
2821 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
2822 SWIG_fail;
2823 }
2824 arg6 = new wxArrayString;
2825 temp6 = true;
2826 int i, len=PySequence_Length(obj5);
2827 for (i=0; i<len; i++) {
2828 PyObject* item = PySequence_GetItem(obj5, i);
2829 #if wxUSE_UNICODE
2830 PyObject* str = PyObject_Unicode(item);
2831 #else
2832 PyObject* str = PyObject_Str(item);
2833 #endif
2834 if (PyErr_Occurred()) SWIG_fail;
2835 arg6->Add(Py2wxString(str));
2836 Py_DECREF(item);
2837 Py_DECREF(str);
2838 }
2839 }
2840 }
2841 if (obj6) {
2842 arg7 = (long)SWIG_As_long(obj6);
2843 if (PyErr_Occurred()) SWIG_fail;
2844 }
2845 if (obj7) {
2846 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
2847 SWIG_POINTER_EXCEPTION | 0)) == -1)
2848 SWIG_fail;
2849 if (arg8 == NULL) {
2850 PyErr_SetString(PyExc_TypeError,"null reference");
2851 SWIG_fail;
2852 }
2853 }
2854 if (obj8) {
2855 {
2856 arg9 = wxString_in_helper(obj8);
2857 if (arg9 == NULL) SWIG_fail;
2858 temp9 = true;
2859 }
2860 }
2861 {
2862 PyThreadState* __tstate = wxPyBeginAllowThreads();
2863 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
2864
2865 wxPyEndAllowThreads(__tstate);
2866 if (PyErr_Occurred()) SWIG_fail;
2867 }
2868 {
2869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2870 }
2871 {
2872 if (temp6) delete arg6;
2873 }
2874 {
2875 if (temp9)
2876 delete arg9;
2877 }
2878 return resultobj;
2879 fail:
2880 {
2881 if (temp6) delete arg6;
2882 }
2883 {
2884 if (temp9)
2885 delete arg9;
2886 }
2887 return NULL;
2888 }
2889
2890
2891 static PyObject *_wrap_Choice_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2892 PyObject *resultobj;
2893 wxChoice *arg1 = (wxChoice *) 0 ;
2894 int arg2 ;
2895 PyObject * obj0 = 0 ;
2896 PyObject * obj1 = 0 ;
2897 char *kwnames[] = {
2898 (char *) "self",(char *) "n", NULL
2899 };
2900
2901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail;
2902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2904 arg2 = (int)SWIG_As_int(obj1);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 {
2907 PyThreadState* __tstate = wxPyBeginAllowThreads();
2908 (arg1)->SetSelection(arg2);
2909
2910 wxPyEndAllowThreads(__tstate);
2911 if (PyErr_Occurred()) SWIG_fail;
2912 }
2913 Py_INCREF(Py_None); resultobj = Py_None;
2914 return resultobj;
2915 fail:
2916 return NULL;
2917 }
2918
2919
2920 static PyObject *_wrap_Choice_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
2921 PyObject *resultobj;
2922 wxChoice *arg1 = (wxChoice *) 0 ;
2923 wxString *arg2 = 0 ;
2924 bool result;
2925 bool temp2 = false ;
2926 PyObject * obj0 = 0 ;
2927 PyObject * obj1 = 0 ;
2928 char *kwnames[] = {
2929 (char *) "self",(char *) "string", NULL
2930 };
2931
2932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
2933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2935 {
2936 arg2 = wxString_in_helper(obj1);
2937 if (arg2 == NULL) SWIG_fail;
2938 temp2 = true;
2939 }
2940 {
2941 PyThreadState* __tstate = wxPyBeginAllowThreads();
2942 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
2943
2944 wxPyEndAllowThreads(__tstate);
2945 if (PyErr_Occurred()) SWIG_fail;
2946 }
2947 {
2948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2949 }
2950 {
2951 if (temp2)
2952 delete arg2;
2953 }
2954 return resultobj;
2955 fail:
2956 {
2957 if (temp2)
2958 delete arg2;
2959 }
2960 return NULL;
2961 }
2962
2963
2964 static PyObject *_wrap_Choice_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
2965 PyObject *resultobj;
2966 wxChoice *arg1 = (wxChoice *) 0 ;
2967 int arg2 ;
2968 wxString *arg3 = 0 ;
2969 bool temp3 = false ;
2970 PyObject * obj0 = 0 ;
2971 PyObject * obj1 = 0 ;
2972 PyObject * obj2 = 0 ;
2973 char *kwnames[] = {
2974 (char *) "self",(char *) "n",(char *) "string", NULL
2975 };
2976
2977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
2978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice,
2979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2980 arg2 = (int)SWIG_As_int(obj1);
2981 if (PyErr_Occurred()) SWIG_fail;
2982 {
2983 arg3 = wxString_in_helper(obj2);
2984 if (arg3 == NULL) SWIG_fail;
2985 temp3 = true;
2986 }
2987 {
2988 PyThreadState* __tstate = wxPyBeginAllowThreads();
2989 (arg1)->SetString(arg2,(wxString const &)*arg3);
2990
2991 wxPyEndAllowThreads(__tstate);
2992 if (PyErr_Occurred()) SWIG_fail;
2993 }
2994 Py_INCREF(Py_None); resultobj = Py_None;
2995 {
2996 if (temp3)
2997 delete arg3;
2998 }
2999 return resultobj;
3000 fail:
3001 {
3002 if (temp3)
3003 delete arg3;
3004 }
3005 return NULL;
3006 }
3007
3008
3009 static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3010 PyObject *resultobj;
3011 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3012 wxVisualAttributes result;
3013 PyObject * obj0 = 0 ;
3014 char *kwnames[] = {
3015 (char *) "variant", NULL
3016 };
3017
3018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3019 if (obj0) {
3020 arg1 = (int)SWIG_As_int(obj0);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 {
3024 if (!wxPyCheckForApp()) SWIG_fail;
3025 PyThreadState* __tstate = wxPyBeginAllowThreads();
3026 result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1);
3027
3028 wxPyEndAllowThreads(__tstate);
3029 if (PyErr_Occurred()) SWIG_fail;
3030 }
3031 {
3032 wxVisualAttributes * resultptr;
3033 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3034 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3035 }
3036 return resultobj;
3037 fail:
3038 return NULL;
3039 }
3040
3041
3042 static PyObject * Choice_swigregister(PyObject *, PyObject *args) {
3043 PyObject *obj;
3044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3045 SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj);
3046 Py_INCREF(obj);
3047 return Py_BuildValue((char *)"");
3048 }
3049 static int _wrap_ComboBoxNameStr_set(PyObject *) {
3050 PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only.");
3051 return 1;
3052 }
3053
3054
3055 static PyObject *_wrap_ComboBoxNameStr_get() {
3056 PyObject *pyobj;
3057
3058 {
3059 #if wxUSE_UNICODE
3060 pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3061 #else
3062 pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len());
3063 #endif
3064 }
3065 return pyobj;
3066 }
3067
3068
3069 static PyObject *_wrap_new_ComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3070 PyObject *resultobj;
3071 wxWindow *arg1 = (wxWindow *) 0 ;
3072 int arg2 = (int) -1 ;
3073 wxString const &arg3_defvalue = wxPyEmptyString ;
3074 wxString *arg3 = (wxString *) &arg3_defvalue ;
3075 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3076 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3077 wxSize const &arg5_defvalue = wxDefaultSize ;
3078 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3079 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
3080 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
3081 long arg7 = (long) 0 ;
3082 wxValidator const &arg8_defvalue = wxDefaultValidator ;
3083 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
3084 wxString const &arg9_defvalue = wxPyComboBoxNameStr ;
3085 wxString *arg9 = (wxString *) &arg9_defvalue ;
3086 wxComboBox *result;
3087 bool temp3 = false ;
3088 wxPoint temp4 ;
3089 wxSize temp5 ;
3090 bool temp6 = false ;
3091 bool temp9 = false ;
3092 PyObject * obj0 = 0 ;
3093 PyObject * obj1 = 0 ;
3094 PyObject * obj2 = 0 ;
3095 PyObject * obj3 = 0 ;
3096 PyObject * obj4 = 0 ;
3097 PyObject * obj5 = 0 ;
3098 PyObject * obj6 = 0 ;
3099 PyObject * obj7 = 0 ;
3100 PyObject * obj8 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
3106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3108 if (obj1) {
3109 arg2 = (int)SWIG_As_int(obj1);
3110 if (PyErr_Occurred()) SWIG_fail;
3111 }
3112 if (obj2) {
3113 {
3114 arg3 = wxString_in_helper(obj2);
3115 if (arg3 == NULL) SWIG_fail;
3116 temp3 = true;
3117 }
3118 }
3119 if (obj3) {
3120 {
3121 arg4 = &temp4;
3122 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
3123 }
3124 }
3125 if (obj4) {
3126 {
3127 arg5 = &temp5;
3128 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
3129 }
3130 }
3131 if (obj5) {
3132 {
3133 if (! PySequence_Check(obj5)) {
3134 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3135 SWIG_fail;
3136 }
3137 arg6 = new wxArrayString;
3138 temp6 = true;
3139 int i, len=PySequence_Length(obj5);
3140 for (i=0; i<len; i++) {
3141 PyObject* item = PySequence_GetItem(obj5, i);
3142 #if wxUSE_UNICODE
3143 PyObject* str = PyObject_Unicode(item);
3144 #else
3145 PyObject* str = PyObject_Str(item);
3146 #endif
3147 if (PyErr_Occurred()) SWIG_fail;
3148 arg6->Add(Py2wxString(str));
3149 Py_DECREF(item);
3150 Py_DECREF(str);
3151 }
3152 }
3153 }
3154 if (obj6) {
3155 arg7 = (long)SWIG_As_long(obj6);
3156 if (PyErr_Occurred()) SWIG_fail;
3157 }
3158 if (obj7) {
3159 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
3160 SWIG_POINTER_EXCEPTION | 0)) == -1)
3161 SWIG_fail;
3162 if (arg8 == NULL) {
3163 PyErr_SetString(PyExc_TypeError,"null reference");
3164 SWIG_fail;
3165 }
3166 }
3167 if (obj8) {
3168 {
3169 arg9 = wxString_in_helper(obj8);
3170 if (arg9 == NULL) SWIG_fail;
3171 temp9 = true;
3172 }
3173 }
3174 {
3175 if (!wxPyCheckForApp()) SWIG_fail;
3176 PyThreadState* __tstate = wxPyBeginAllowThreads();
3177 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);
3178
3179 wxPyEndAllowThreads(__tstate);
3180 if (PyErr_Occurred()) SWIG_fail;
3181 }
3182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3183 {
3184 if (temp3)
3185 delete arg3;
3186 }
3187 {
3188 if (temp6) delete arg6;
3189 }
3190 {
3191 if (temp9)
3192 delete arg9;
3193 }
3194 return resultobj;
3195 fail:
3196 {
3197 if (temp3)
3198 delete arg3;
3199 }
3200 {
3201 if (temp6) delete arg6;
3202 }
3203 {
3204 if (temp9)
3205 delete arg9;
3206 }
3207 return NULL;
3208 }
3209
3210
3211 static PyObject *_wrap_new_PreComboBox(PyObject *, PyObject *args, PyObject *kwargs) {
3212 PyObject *resultobj;
3213 wxComboBox *result;
3214 char *kwnames[] = {
3215 NULL
3216 };
3217
3218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail;
3219 {
3220 if (!wxPyCheckForApp()) SWIG_fail;
3221 PyThreadState* __tstate = wxPyBeginAllowThreads();
3222 result = (wxComboBox *)new wxComboBox();
3223
3224 wxPyEndAllowThreads(__tstate);
3225 if (PyErr_Occurred()) SWIG_fail;
3226 }
3227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1);
3228 return resultobj;
3229 fail:
3230 return NULL;
3231 }
3232
3233
3234 static PyObject *_wrap_ComboBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxComboBox *arg1 = (wxComboBox *) 0 ;
3237 wxWindow *arg2 = (wxWindow *) 0 ;
3238 int arg3 = (int) -1 ;
3239 wxString const &arg4_defvalue = wxPyEmptyString ;
3240 wxString *arg4 = (wxString *) &arg4_defvalue ;
3241 wxPoint const &arg5_defvalue = wxDefaultPosition ;
3242 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
3243 wxSize const &arg6_defvalue = wxDefaultSize ;
3244 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
3245 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
3246 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
3247 long arg8 = (long) 0 ;
3248 wxValidator const &arg9_defvalue = wxDefaultValidator ;
3249 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
3250 wxString const &arg10_defvalue = wxPyChoiceNameStr ;
3251 wxString *arg10 = (wxString *) &arg10_defvalue ;
3252 bool result;
3253 bool temp4 = false ;
3254 wxPoint temp5 ;
3255 wxSize temp6 ;
3256 bool temp7 = false ;
3257 bool temp10 = false ;
3258 PyObject * obj0 = 0 ;
3259 PyObject * obj1 = 0 ;
3260 PyObject * obj2 = 0 ;
3261 PyObject * obj3 = 0 ;
3262 PyObject * obj4 = 0 ;
3263 PyObject * obj5 = 0 ;
3264 PyObject * obj6 = 0 ;
3265 PyObject * obj7 = 0 ;
3266 PyObject * obj8 = 0 ;
3267 PyObject * obj9 = 0 ;
3268 char *kwnames[] = {
3269 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
3270 };
3271
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
3273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
3276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3277 if (obj2) {
3278 arg3 = (int)SWIG_As_int(obj2);
3279 if (PyErr_Occurred()) SWIG_fail;
3280 }
3281 if (obj3) {
3282 {
3283 arg4 = wxString_in_helper(obj3);
3284 if (arg4 == NULL) SWIG_fail;
3285 temp4 = true;
3286 }
3287 }
3288 if (obj4) {
3289 {
3290 arg5 = &temp5;
3291 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
3292 }
3293 }
3294 if (obj5) {
3295 {
3296 arg6 = &temp6;
3297 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
3298 }
3299 }
3300 if (obj6) {
3301 {
3302 if (! PySequence_Check(obj6)) {
3303 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
3304 SWIG_fail;
3305 }
3306 arg7 = new wxArrayString;
3307 temp7 = true;
3308 int i, len=PySequence_Length(obj6);
3309 for (i=0; i<len; i++) {
3310 PyObject* item = PySequence_GetItem(obj6, i);
3311 #if wxUSE_UNICODE
3312 PyObject* str = PyObject_Unicode(item);
3313 #else
3314 PyObject* str = PyObject_Str(item);
3315 #endif
3316 if (PyErr_Occurred()) SWIG_fail;
3317 arg7->Add(Py2wxString(str));
3318 Py_DECREF(item);
3319 Py_DECREF(str);
3320 }
3321 }
3322 }
3323 if (obj7) {
3324 arg8 = (long)SWIG_As_long(obj7);
3325 if (PyErr_Occurred()) SWIG_fail;
3326 }
3327 if (obj8) {
3328 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
3329 SWIG_POINTER_EXCEPTION | 0)) == -1)
3330 SWIG_fail;
3331 if (arg9 == NULL) {
3332 PyErr_SetString(PyExc_TypeError,"null reference");
3333 SWIG_fail;
3334 }
3335 }
3336 if (obj9) {
3337 {
3338 arg10 = wxString_in_helper(obj9);
3339 if (arg10 == NULL) SWIG_fail;
3340 temp10 = true;
3341 }
3342 }
3343 {
3344 PyThreadState* __tstate = wxPyBeginAllowThreads();
3345 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);
3346
3347 wxPyEndAllowThreads(__tstate);
3348 if (PyErr_Occurred()) SWIG_fail;
3349 }
3350 {
3351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3352 }
3353 {
3354 if (temp4)
3355 delete arg4;
3356 }
3357 {
3358 if (temp7) delete arg7;
3359 }
3360 {
3361 if (temp10)
3362 delete arg10;
3363 }
3364 return resultobj;
3365 fail:
3366 {
3367 if (temp4)
3368 delete arg4;
3369 }
3370 {
3371 if (temp7) delete arg7;
3372 }
3373 {
3374 if (temp10)
3375 delete arg10;
3376 }
3377 return NULL;
3378 }
3379
3380
3381 static PyObject *_wrap_ComboBox_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3382 PyObject *resultobj;
3383 wxComboBox *arg1 = (wxComboBox *) 0 ;
3384 wxString result;
3385 PyObject * obj0 = 0 ;
3386 char *kwnames[] = {
3387 (char *) "self", NULL
3388 };
3389
3390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail;
3391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3393 {
3394 PyThreadState* __tstate = wxPyBeginAllowThreads();
3395 result = ((wxComboBox const *)arg1)->GetValue();
3396
3397 wxPyEndAllowThreads(__tstate);
3398 if (PyErr_Occurred()) SWIG_fail;
3399 }
3400 {
3401 #if wxUSE_UNICODE
3402 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3403 #else
3404 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3405 #endif
3406 }
3407 return resultobj;
3408 fail:
3409 return NULL;
3410 }
3411
3412
3413 static PyObject *_wrap_ComboBox_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
3414 PyObject *resultobj;
3415 wxComboBox *arg1 = (wxComboBox *) 0 ;
3416 wxString *arg2 = 0 ;
3417 bool temp2 = false ;
3418 PyObject * obj0 = 0 ;
3419 PyObject * obj1 = 0 ;
3420 char *kwnames[] = {
3421 (char *) "self",(char *) "value", NULL
3422 };
3423
3424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail;
3425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3427 {
3428 arg2 = wxString_in_helper(obj1);
3429 if (arg2 == NULL) SWIG_fail;
3430 temp2 = true;
3431 }
3432 {
3433 PyThreadState* __tstate = wxPyBeginAllowThreads();
3434 (arg1)->SetValue((wxString const &)*arg2);
3435
3436 wxPyEndAllowThreads(__tstate);
3437 if (PyErr_Occurred()) SWIG_fail;
3438 }
3439 Py_INCREF(Py_None); resultobj = Py_None;
3440 {
3441 if (temp2)
3442 delete arg2;
3443 }
3444 return resultobj;
3445 fail:
3446 {
3447 if (temp2)
3448 delete arg2;
3449 }
3450 return NULL;
3451 }
3452
3453
3454 static PyObject *_wrap_ComboBox_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj;
3456 wxComboBox *arg1 = (wxComboBox *) 0 ;
3457 PyObject * obj0 = 0 ;
3458 char *kwnames[] = {
3459 (char *) "self", NULL
3460 };
3461
3462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail;
3463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3465 {
3466 PyThreadState* __tstate = wxPyBeginAllowThreads();
3467 (arg1)->Copy();
3468
3469 wxPyEndAllowThreads(__tstate);
3470 if (PyErr_Occurred()) SWIG_fail;
3471 }
3472 Py_INCREF(Py_None); resultobj = Py_None;
3473 return resultobj;
3474 fail:
3475 return NULL;
3476 }
3477
3478
3479 static PyObject *_wrap_ComboBox_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
3480 PyObject *resultobj;
3481 wxComboBox *arg1 = (wxComboBox *) 0 ;
3482 PyObject * obj0 = 0 ;
3483 char *kwnames[] = {
3484 (char *) "self", NULL
3485 };
3486
3487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail;
3488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 (arg1)->Cut();
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 Py_INCREF(Py_None); resultobj = Py_None;
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 static PyObject *_wrap_ComboBox_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
3505 PyObject *resultobj;
3506 wxComboBox *arg1 = (wxComboBox *) 0 ;
3507 PyObject * obj0 = 0 ;
3508 char *kwnames[] = {
3509 (char *) "self", NULL
3510 };
3511
3512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail;
3513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3515 {
3516 PyThreadState* __tstate = wxPyBeginAllowThreads();
3517 (arg1)->Paste();
3518
3519 wxPyEndAllowThreads(__tstate);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 Py_INCREF(Py_None); resultobj = Py_None;
3523 return resultobj;
3524 fail:
3525 return NULL;
3526 }
3527
3528
3529 static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3530 PyObject *resultobj;
3531 wxComboBox *arg1 = (wxComboBox *) 0 ;
3532 long arg2 ;
3533 PyObject * obj0 = 0 ;
3534 PyObject * obj1 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "self",(char *) "pos", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
3540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 arg2 = (long)SWIG_As_long(obj1);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 {
3545 PyThreadState* __tstate = wxPyBeginAllowThreads();
3546 (arg1)->SetInsertionPoint(arg2);
3547
3548 wxPyEndAllowThreads(__tstate);
3549 if (PyErr_Occurred()) SWIG_fail;
3550 }
3551 Py_INCREF(Py_None); resultobj = Py_None;
3552 return resultobj;
3553 fail:
3554 return NULL;
3555 }
3556
3557
3558 static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
3559 PyObject *resultobj;
3560 wxComboBox *arg1 = (wxComboBox *) 0 ;
3561 long result;
3562 PyObject * obj0 = 0 ;
3563 char *kwnames[] = {
3564 (char *) "self", NULL
3565 };
3566
3567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail;
3568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3570 {
3571 PyThreadState* __tstate = wxPyBeginAllowThreads();
3572 result = (long)((wxComboBox const *)arg1)->GetInsertionPoint();
3573
3574 wxPyEndAllowThreads(__tstate);
3575 if (PyErr_Occurred()) SWIG_fail;
3576 }
3577 resultobj = SWIG_From_long((long)result);
3578 return resultobj;
3579 fail:
3580 return NULL;
3581 }
3582
3583
3584 static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
3585 PyObject *resultobj;
3586 wxComboBox *arg1 = (wxComboBox *) 0 ;
3587 long result;
3588 PyObject * obj0 = 0 ;
3589 char *kwnames[] = {
3590 (char *) "self", NULL
3591 };
3592
3593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail;
3594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3596 {
3597 PyThreadState* __tstate = wxPyBeginAllowThreads();
3598 result = (long)((wxComboBox const *)arg1)->GetLastPosition();
3599
3600 wxPyEndAllowThreads(__tstate);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 resultobj = SWIG_From_long((long)result);
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_ComboBox_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxComboBox *arg1 = (wxComboBox *) 0 ;
3613 long arg2 ;
3614 long arg3 ;
3615 wxString *arg4 = 0 ;
3616 bool temp4 = false ;
3617 PyObject * obj0 = 0 ;
3618 PyObject * obj1 = 0 ;
3619 PyObject * obj2 = 0 ;
3620 PyObject * obj3 = 0 ;
3621 char *kwnames[] = {
3622 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
3623 };
3624
3625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3628 arg2 = (long)SWIG_As_long(obj1);
3629 if (PyErr_Occurred()) SWIG_fail;
3630 arg3 = (long)SWIG_As_long(obj2);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 {
3633 arg4 = wxString_in_helper(obj3);
3634 if (arg4 == NULL) SWIG_fail;
3635 temp4 = true;
3636 }
3637 {
3638 PyThreadState* __tstate = wxPyBeginAllowThreads();
3639 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
3640
3641 wxPyEndAllowThreads(__tstate);
3642 if (PyErr_Occurred()) SWIG_fail;
3643 }
3644 Py_INCREF(Py_None); resultobj = Py_None;
3645 {
3646 if (temp4)
3647 delete arg4;
3648 }
3649 return resultobj;
3650 fail:
3651 {
3652 if (temp4)
3653 delete arg4;
3654 }
3655 return NULL;
3656 }
3657
3658
3659 static PyObject *_wrap_ComboBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3660 PyObject *resultobj;
3661 wxComboBox *arg1 = (wxComboBox *) 0 ;
3662 int arg2 ;
3663 PyObject * obj0 = 0 ;
3664 PyObject * obj1 = 0 ;
3665 char *kwnames[] = {
3666 (char *) "self",(char *) "n", NULL
3667 };
3668
3669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
3670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3672 arg2 = (int)SWIG_As_int(obj1);
3673 if (PyErr_Occurred()) SWIG_fail;
3674 {
3675 PyThreadState* __tstate = wxPyBeginAllowThreads();
3676 (arg1)->SetSelection(arg2);
3677
3678 wxPyEndAllowThreads(__tstate);
3679 if (PyErr_Occurred()) SWIG_fail;
3680 }
3681 Py_INCREF(Py_None); resultobj = Py_None;
3682 return resultobj;
3683 fail:
3684 return NULL;
3685 }
3686
3687
3688 static PyObject *_wrap_ComboBox_SetMark(PyObject *, PyObject *args, PyObject *kwargs) {
3689 PyObject *resultobj;
3690 wxComboBox *arg1 = (wxComboBox *) 0 ;
3691 long arg2 ;
3692 long arg3 ;
3693 PyObject * obj0 = 0 ;
3694 PyObject * obj1 = 0 ;
3695 PyObject * obj2 = 0 ;
3696 char *kwnames[] = {
3697 (char *) "self",(char *) "from",(char *) "to", NULL
3698 };
3699
3700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail;
3701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3703 arg2 = (long)SWIG_As_long(obj1);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 arg3 = (long)SWIG_As_long(obj2);
3706 if (PyErr_Occurred()) SWIG_fail;
3707 {
3708 PyThreadState* __tstate = wxPyBeginAllowThreads();
3709 (arg1)->SetSelection(arg2,arg3);
3710
3711 wxPyEndAllowThreads(__tstate);
3712 if (PyErr_Occurred()) SWIG_fail;
3713 }
3714 Py_INCREF(Py_None); resultobj = Py_None;
3715 return resultobj;
3716 fail:
3717 return NULL;
3718 }
3719
3720
3721 static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
3722 PyObject *resultobj;
3723 wxComboBox *arg1 = (wxComboBox *) 0 ;
3724 wxString *arg2 = 0 ;
3725 bool result;
3726 bool temp2 = false ;
3727 PyObject * obj0 = 0 ;
3728 PyObject * obj1 = 0 ;
3729 char *kwnames[] = {
3730 (char *) "self",(char *) "string", NULL
3731 };
3732
3733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
3734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3736 {
3737 arg2 = wxString_in_helper(obj1);
3738 if (arg2 == NULL) SWIG_fail;
3739 temp2 = true;
3740 }
3741 {
3742 PyThreadState* __tstate = wxPyBeginAllowThreads();
3743 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
3744
3745 wxPyEndAllowThreads(__tstate);
3746 if (PyErr_Occurred()) SWIG_fail;
3747 }
3748 {
3749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3750 }
3751 {
3752 if (temp2)
3753 delete arg2;
3754 }
3755 return resultobj;
3756 fail:
3757 {
3758 if (temp2)
3759 delete arg2;
3760 }
3761 return NULL;
3762 }
3763
3764
3765 static PyObject *_wrap_ComboBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
3766 PyObject *resultobj;
3767 wxComboBox *arg1 = (wxComboBox *) 0 ;
3768 int arg2 ;
3769 wxString *arg3 = 0 ;
3770 bool temp3 = false ;
3771 PyObject * obj0 = 0 ;
3772 PyObject * obj1 = 0 ;
3773 PyObject * obj2 = 0 ;
3774 char *kwnames[] = {
3775 (char *) "self",(char *) "n",(char *) "string", NULL
3776 };
3777
3778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
3779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3781 arg2 = (int)SWIG_As_int(obj1);
3782 if (PyErr_Occurred()) SWIG_fail;
3783 {
3784 arg3 = wxString_in_helper(obj2);
3785 if (arg3 == NULL) SWIG_fail;
3786 temp3 = true;
3787 }
3788 {
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 (arg1)->SetString(arg2,(wxString const &)*arg3);
3791
3792 wxPyEndAllowThreads(__tstate);
3793 if (PyErr_Occurred()) SWIG_fail;
3794 }
3795 Py_INCREF(Py_None); resultobj = Py_None;
3796 {
3797 if (temp3)
3798 delete arg3;
3799 }
3800 return resultobj;
3801 fail:
3802 {
3803 if (temp3)
3804 delete arg3;
3805 }
3806 return NULL;
3807 }
3808
3809
3810 static PyObject *_wrap_ComboBox_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
3811 PyObject *resultobj;
3812 wxComboBox *arg1 = (wxComboBox *) 0 ;
3813 bool arg2 ;
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 char *kwnames[] = {
3817 (char *) "self",(char *) "editable", NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail;
3821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3823 arg2 = (bool)SWIG_As_bool(obj1);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 {
3826 PyThreadState* __tstate = wxPyBeginAllowThreads();
3827 (arg1)->SetEditable(arg2);
3828
3829 wxPyEndAllowThreads(__tstate);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 }
3832 Py_INCREF(Py_None); resultobj = Py_None;
3833 return resultobj;
3834 fail:
3835 return NULL;
3836 }
3837
3838
3839 static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
3840 PyObject *resultobj;
3841 wxComboBox *arg1 = (wxComboBox *) 0 ;
3842 PyObject * obj0 = 0 ;
3843 char *kwnames[] = {
3844 (char *) "self", NULL
3845 };
3846
3847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
3848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3850 {
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 (arg1)->SetInsertionPointEnd();
3853
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 Py_INCREF(Py_None); resultobj = Py_None;
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 static PyObject *_wrap_ComboBox_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj;
3866 wxComboBox *arg1 = (wxComboBox *) 0 ;
3867 long arg2 ;
3868 long arg3 ;
3869 PyObject * obj0 = 0 ;
3870 PyObject * obj1 = 0 ;
3871 PyObject * obj2 = 0 ;
3872 char *kwnames[] = {
3873 (char *) "self",(char *) "from",(char *) "to", NULL
3874 };
3875
3876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
3877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox,
3878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3879 arg2 = (long)SWIG_As_long(obj1);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 arg3 = (long)SWIG_As_long(obj2);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 {
3884 PyThreadState* __tstate = wxPyBeginAllowThreads();
3885 (arg1)->Remove(arg2,arg3);
3886
3887 wxPyEndAllowThreads(__tstate);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 }
3890 Py_INCREF(Py_None); resultobj = Py_None;
3891 return resultobj;
3892 fail:
3893 return NULL;
3894 }
3895
3896
3897 static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj;
3899 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
3900 wxVisualAttributes result;
3901 PyObject * obj0 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "variant", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
3907 if (obj0) {
3908 arg1 = (int)SWIG_As_int(obj0);
3909 if (PyErr_Occurred()) SWIG_fail;
3910 }
3911 {
3912 if (!wxPyCheckForApp()) SWIG_fail;
3913 PyThreadState* __tstate = wxPyBeginAllowThreads();
3914 result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
3915
3916 wxPyEndAllowThreads(__tstate);
3917 if (PyErr_Occurred()) SWIG_fail;
3918 }
3919 {
3920 wxVisualAttributes * resultptr;
3921 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
3922 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
3923 }
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject * ComboBox_swigregister(PyObject *, PyObject *args) {
3931 PyObject *obj;
3932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3933 SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj);
3934 Py_INCREF(obj);
3935 return Py_BuildValue((char *)"");
3936 }
3937 static int _wrap_GaugeNameStr_set(PyObject *) {
3938 PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only.");
3939 return 1;
3940 }
3941
3942
3943 static PyObject *_wrap_GaugeNameStr_get() {
3944 PyObject *pyobj;
3945
3946 {
3947 #if wxUSE_UNICODE
3948 pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3949 #else
3950 pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len());
3951 #endif
3952 }
3953 return pyobj;
3954 }
3955
3956
3957 static PyObject *_wrap_new_Gauge(PyObject *, PyObject *args, PyObject *kwargs) {
3958 PyObject *resultobj;
3959 wxWindow *arg1 = (wxWindow *) 0 ;
3960 int arg2 = (int) -1 ;
3961 int arg3 = (int) 100 ;
3962 wxPoint const &arg4_defvalue = wxDefaultPosition ;
3963 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
3964 wxSize const &arg5_defvalue = wxDefaultSize ;
3965 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
3966 long arg6 = (long) wxGA_HORIZONTAL ;
3967 wxValidator const &arg7_defvalue = wxDefaultValidator ;
3968 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
3969 wxString const &arg8_defvalue = wxPyGaugeNameStr ;
3970 wxString *arg8 = (wxString *) &arg8_defvalue ;
3971 wxGauge *result;
3972 wxPoint temp4 ;
3973 wxSize temp5 ;
3974 bool temp8 = false ;
3975 PyObject * obj0 = 0 ;
3976 PyObject * obj1 = 0 ;
3977 PyObject * obj2 = 0 ;
3978 PyObject * obj3 = 0 ;
3979 PyObject * obj4 = 0 ;
3980 PyObject * obj5 = 0 ;
3981 PyObject * obj6 = 0 ;
3982 PyObject * obj7 = 0 ;
3983 char *kwnames[] = {
3984 (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
3985 };
3986
3987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
3988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
3989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3990 if (obj1) {
3991 arg2 = (int)SWIG_As_int(obj1);
3992 if (PyErr_Occurred()) SWIG_fail;
3993 }
3994 if (obj2) {
3995 arg3 = (int)SWIG_As_int(obj2);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 if (obj3) {
3999 {
4000 arg4 = &temp4;
4001 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4002 }
4003 }
4004 if (obj4) {
4005 {
4006 arg5 = &temp5;
4007 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4008 }
4009 }
4010 if (obj5) {
4011 arg6 = (long)SWIG_As_long(obj5);
4012 if (PyErr_Occurred()) SWIG_fail;
4013 }
4014 if (obj6) {
4015 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
4016 SWIG_POINTER_EXCEPTION | 0)) == -1)
4017 SWIG_fail;
4018 if (arg7 == NULL) {
4019 PyErr_SetString(PyExc_TypeError,"null reference");
4020 SWIG_fail;
4021 }
4022 }
4023 if (obj7) {
4024 {
4025 arg8 = wxString_in_helper(obj7);
4026 if (arg8 == NULL) SWIG_fail;
4027 temp8 = true;
4028 }
4029 }
4030 {
4031 if (!wxPyCheckForApp()) SWIG_fail;
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
4034
4035 wxPyEndAllowThreads(__tstate);
4036 if (PyErr_Occurred()) SWIG_fail;
4037 }
4038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4039 {
4040 if (temp8)
4041 delete arg8;
4042 }
4043 return resultobj;
4044 fail:
4045 {
4046 if (temp8)
4047 delete arg8;
4048 }
4049 return NULL;
4050 }
4051
4052
4053 static PyObject *_wrap_new_PreGauge(PyObject *, PyObject *args, PyObject *kwargs) {
4054 PyObject *resultobj;
4055 wxGauge *result;
4056 char *kwnames[] = {
4057 NULL
4058 };
4059
4060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail;
4061 {
4062 if (!wxPyCheckForApp()) SWIG_fail;
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 result = (wxGauge *)new wxGauge();
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1);
4070 return resultobj;
4071 fail:
4072 return NULL;
4073 }
4074
4075
4076 static PyObject *_wrap_Gauge_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4077 PyObject *resultobj;
4078 wxGauge *arg1 = (wxGauge *) 0 ;
4079 wxWindow *arg2 = (wxWindow *) 0 ;
4080 int arg3 = (int) -1 ;
4081 int arg4 = (int) 100 ;
4082 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4083 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4084 wxSize const &arg6_defvalue = wxDefaultSize ;
4085 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4086 long arg7 = (long) wxGA_HORIZONTAL ;
4087 wxValidator const &arg8_defvalue = wxDefaultValidator ;
4088 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
4089 wxString const &arg9_defvalue = wxPyGaugeNameStr ;
4090 wxString *arg9 = (wxString *) &arg9_defvalue ;
4091 bool result;
4092 wxPoint temp5 ;
4093 wxSize temp6 ;
4094 bool temp9 = false ;
4095 PyObject * obj0 = 0 ;
4096 PyObject * obj1 = 0 ;
4097 PyObject * obj2 = 0 ;
4098 PyObject * obj3 = 0 ;
4099 PyObject * obj4 = 0 ;
4100 PyObject * obj5 = 0 ;
4101 PyObject * obj6 = 0 ;
4102 PyObject * obj7 = 0 ;
4103 PyObject * obj8 = 0 ;
4104 char *kwnames[] = {
4105 (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
4106 };
4107
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4111 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4113 if (obj2) {
4114 arg3 = (int)SWIG_As_int(obj2);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 if (obj3) {
4118 arg4 = (int)SWIG_As_int(obj3);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 if (obj4) {
4122 {
4123 arg5 = &temp5;
4124 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4125 }
4126 }
4127 if (obj5) {
4128 {
4129 arg6 = &temp6;
4130 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4131 }
4132 }
4133 if (obj6) {
4134 arg7 = (long)SWIG_As_long(obj6);
4135 if (PyErr_Occurred()) SWIG_fail;
4136 }
4137 if (obj7) {
4138 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
4139 SWIG_POINTER_EXCEPTION | 0)) == -1)
4140 SWIG_fail;
4141 if (arg8 == NULL) {
4142 PyErr_SetString(PyExc_TypeError,"null reference");
4143 SWIG_fail;
4144 }
4145 }
4146 if (obj8) {
4147 {
4148 arg9 = wxString_in_helper(obj8);
4149 if (arg9 == NULL) SWIG_fail;
4150 temp9 = true;
4151 }
4152 }
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 {
4161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4162 }
4163 {
4164 if (temp9)
4165 delete arg9;
4166 }
4167 return resultobj;
4168 fail:
4169 {
4170 if (temp9)
4171 delete arg9;
4172 }
4173 return NULL;
4174 }
4175
4176
4177 static PyObject *_wrap_Gauge_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4178 PyObject *resultobj;
4179 wxGauge *arg1 = (wxGauge *) 0 ;
4180 int arg2 ;
4181 PyObject * obj0 = 0 ;
4182 PyObject * obj1 = 0 ;
4183 char *kwnames[] = {
4184 (char *) "self",(char *) "range", NULL
4185 };
4186
4187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail;
4188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4190 arg2 = (int)SWIG_As_int(obj1);
4191 if (PyErr_Occurred()) SWIG_fail;
4192 {
4193 PyThreadState* __tstate = wxPyBeginAllowThreads();
4194 (arg1)->SetRange(arg2);
4195
4196 wxPyEndAllowThreads(__tstate);
4197 if (PyErr_Occurred()) SWIG_fail;
4198 }
4199 Py_INCREF(Py_None); resultobj = Py_None;
4200 return resultobj;
4201 fail:
4202 return NULL;
4203 }
4204
4205
4206 static PyObject *_wrap_Gauge_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
4207 PyObject *resultobj;
4208 wxGauge *arg1 = (wxGauge *) 0 ;
4209 int result;
4210 PyObject * obj0 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "self", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail;
4216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4218 {
4219 PyThreadState* __tstate = wxPyBeginAllowThreads();
4220 result = (int)((wxGauge const *)arg1)->GetRange();
4221
4222 wxPyEndAllowThreads(__tstate);
4223 if (PyErr_Occurred()) SWIG_fail;
4224 }
4225 resultobj = SWIG_From_int((int)result);
4226 return resultobj;
4227 fail:
4228 return NULL;
4229 }
4230
4231
4232 static PyObject *_wrap_Gauge_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4233 PyObject *resultobj;
4234 wxGauge *arg1 = (wxGauge *) 0 ;
4235 int arg2 ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char *kwnames[] = {
4239 (char *) "self",(char *) "pos", NULL
4240 };
4241
4242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail;
4243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4245 arg2 = (int)SWIG_As_int(obj1);
4246 if (PyErr_Occurred()) SWIG_fail;
4247 {
4248 PyThreadState* __tstate = wxPyBeginAllowThreads();
4249 (arg1)->SetValue(arg2);
4250
4251 wxPyEndAllowThreads(__tstate);
4252 if (PyErr_Occurred()) SWIG_fail;
4253 }
4254 Py_INCREF(Py_None); resultobj = Py_None;
4255 return resultobj;
4256 fail:
4257 return NULL;
4258 }
4259
4260
4261 static PyObject *_wrap_Gauge_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
4262 PyObject *resultobj;
4263 wxGauge *arg1 = (wxGauge *) 0 ;
4264 int result;
4265 PyObject * obj0 = 0 ;
4266 char *kwnames[] = {
4267 (char *) "self", NULL
4268 };
4269
4270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail;
4271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4273 {
4274 PyThreadState* __tstate = wxPyBeginAllowThreads();
4275 result = (int)((wxGauge const *)arg1)->GetValue();
4276
4277 wxPyEndAllowThreads(__tstate);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 resultobj = SWIG_From_int((int)result);
4281 return resultobj;
4282 fail:
4283 return NULL;
4284 }
4285
4286
4287 static PyObject *_wrap_Gauge_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4288 PyObject *resultobj;
4289 wxGauge *arg1 = (wxGauge *) 0 ;
4290 bool result;
4291 PyObject * obj0 = 0 ;
4292 char *kwnames[] = {
4293 (char *) "self", NULL
4294 };
4295
4296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail;
4297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4299 {
4300 PyThreadState* __tstate = wxPyBeginAllowThreads();
4301 result = (bool)((wxGauge const *)arg1)->IsVertical();
4302
4303 wxPyEndAllowThreads(__tstate);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 {
4307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4308 }
4309 return resultobj;
4310 fail:
4311 return NULL;
4312 }
4313
4314
4315 static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4316 PyObject *resultobj;
4317 wxGauge *arg1 = (wxGauge *) 0 ;
4318 int arg2 ;
4319 PyObject * obj0 = 0 ;
4320 PyObject * obj1 = 0 ;
4321 char *kwnames[] = {
4322 (char *) "self",(char *) "w", NULL
4323 };
4324
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail;
4326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4328 arg2 = (int)SWIG_As_int(obj1);
4329 if (PyErr_Occurred()) SWIG_fail;
4330 {
4331 PyThreadState* __tstate = wxPyBeginAllowThreads();
4332 (arg1)->SetShadowWidth(arg2);
4333
4334 wxPyEndAllowThreads(__tstate);
4335 if (PyErr_Occurred()) SWIG_fail;
4336 }
4337 Py_INCREF(Py_None); resultobj = Py_None;
4338 return resultobj;
4339 fail:
4340 return NULL;
4341 }
4342
4343
4344 static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *, PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj;
4346 wxGauge *arg1 = (wxGauge *) 0 ;
4347 int result;
4348 PyObject * obj0 = 0 ;
4349 char *kwnames[] = {
4350 (char *) "self", NULL
4351 };
4352
4353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail;
4354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 result = (int)((wxGauge const *)arg1)->GetShadowWidth();
4359
4360 wxPyEndAllowThreads(__tstate);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 resultobj = SWIG_From_int((int)result);
4364 return resultobj;
4365 fail:
4366 return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_Gauge_SetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4371 PyObject *resultobj;
4372 wxGauge *arg1 = (wxGauge *) 0 ;
4373 int arg2 ;
4374 PyObject * obj0 = 0 ;
4375 PyObject * obj1 = 0 ;
4376 char *kwnames[] = {
4377 (char *) "self",(char *) "w", NULL
4378 };
4379
4380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail;
4381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4383 arg2 = (int)SWIG_As_int(obj1);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 {
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 (arg1)->SetBezelFace(arg2);
4388
4389 wxPyEndAllowThreads(__tstate);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 Py_INCREF(Py_None); resultobj = Py_None;
4393 return resultobj;
4394 fail:
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_Gauge_GetBezelFace(PyObject *, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxGauge *arg1 = (wxGauge *) 0 ;
4402 int result;
4403 PyObject * obj0 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "self", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail;
4409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge,
4410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 result = (int)((wxGauge const *)arg1)->GetBezelFace();
4414
4415 wxPyEndAllowThreads(__tstate);
4416 if (PyErr_Occurred()) SWIG_fail;
4417 }
4418 resultobj = SWIG_From_int((int)result);
4419 return resultobj;
4420 fail:
4421 return NULL;
4422 }
4423
4424
4425 static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4426 PyObject *resultobj;
4427 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4428 wxVisualAttributes result;
4429 PyObject * obj0 = 0 ;
4430 char *kwnames[] = {
4431 (char *) "variant", NULL
4432 };
4433
4434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4435 if (obj0) {
4436 arg1 = (int)SWIG_As_int(obj0);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 {
4440 if (!wxPyCheckForApp()) SWIG_fail;
4441 PyThreadState* __tstate = wxPyBeginAllowThreads();
4442 result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1);
4443
4444 wxPyEndAllowThreads(__tstate);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 {
4448 wxVisualAttributes * resultptr;
4449 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4450 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4451 }
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 static PyObject * Gauge_swigregister(PyObject *, PyObject *args) {
4459 PyObject *obj;
4460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4461 SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj);
4462 Py_INCREF(obj);
4463 return Py_BuildValue((char *)"");
4464 }
4465 static int _wrap_StaticBitmapNameStr_set(PyObject *) {
4466 PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only.");
4467 return 1;
4468 }
4469
4470
4471 static PyObject *_wrap_StaticBitmapNameStr_get() {
4472 PyObject *pyobj;
4473
4474 {
4475 #if wxUSE_UNICODE
4476 pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4477 #else
4478 pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len());
4479 #endif
4480 }
4481 return pyobj;
4482 }
4483
4484
4485 static int _wrap_StaticBoxNameStr_set(PyObject *) {
4486 PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only.");
4487 return 1;
4488 }
4489
4490
4491 static PyObject *_wrap_StaticBoxNameStr_get() {
4492 PyObject *pyobj;
4493
4494 {
4495 #if wxUSE_UNICODE
4496 pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4497 #else
4498 pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len());
4499 #endif
4500 }
4501 return pyobj;
4502 }
4503
4504
4505 static int _wrap_StaticTextNameStr_set(PyObject *) {
4506 PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only.");
4507 return 1;
4508 }
4509
4510
4511 static PyObject *_wrap_StaticTextNameStr_get() {
4512 PyObject *pyobj;
4513
4514 {
4515 #if wxUSE_UNICODE
4516 pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4517 #else
4518 pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len());
4519 #endif
4520 }
4521 return pyobj;
4522 }
4523
4524
4525 static PyObject *_wrap_new_StaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj;
4527 wxWindow *arg1 = (wxWindow *) 0 ;
4528 int arg2 = (int) -1 ;
4529 wxString const &arg3_defvalue = wxPyEmptyString ;
4530 wxString *arg3 = (wxString *) &arg3_defvalue ;
4531 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4532 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4533 wxSize const &arg5_defvalue = wxDefaultSize ;
4534 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4535 long arg6 = (long) 0 ;
4536 wxString const &arg7_defvalue = wxPyStaticBoxNameStr ;
4537 wxString *arg7 = (wxString *) &arg7_defvalue ;
4538 wxStaticBox *result;
4539 bool temp3 = false ;
4540 wxPoint temp4 ;
4541 wxSize temp5 ;
4542 bool temp7 = false ;
4543 PyObject * obj0 = 0 ;
4544 PyObject * obj1 = 0 ;
4545 PyObject * obj2 = 0 ;
4546 PyObject * obj3 = 0 ;
4547 PyObject * obj4 = 0 ;
4548 PyObject * obj5 = 0 ;
4549 PyObject * obj6 = 0 ;
4550 char *kwnames[] = {
4551 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4552 };
4553
4554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4557 if (obj1) {
4558 arg2 = (int)SWIG_As_int(obj1);
4559 if (PyErr_Occurred()) SWIG_fail;
4560 }
4561 if (obj2) {
4562 {
4563 arg3 = wxString_in_helper(obj2);
4564 if (arg3 == NULL) SWIG_fail;
4565 temp3 = true;
4566 }
4567 }
4568 if (obj3) {
4569 {
4570 arg4 = &temp4;
4571 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4572 }
4573 }
4574 if (obj4) {
4575 {
4576 arg5 = &temp5;
4577 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4578 }
4579 }
4580 if (obj5) {
4581 arg6 = (long)SWIG_As_long(obj5);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 if (obj6) {
4585 {
4586 arg7 = wxString_in_helper(obj6);
4587 if (arg7 == NULL) SWIG_fail;
4588 temp7 = true;
4589 }
4590 }
4591 {
4592 if (!wxPyCheckForApp()) SWIG_fail;
4593 PyThreadState* __tstate = wxPyBeginAllowThreads();
4594 result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4595
4596 wxPyEndAllowThreads(__tstate);
4597 if (PyErr_Occurred()) SWIG_fail;
4598 }
4599 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4600 {
4601 if (temp3)
4602 delete arg3;
4603 }
4604 {
4605 if (temp7)
4606 delete arg7;
4607 }
4608 return resultobj;
4609 fail:
4610 {
4611 if (temp3)
4612 delete arg3;
4613 }
4614 {
4615 if (temp7)
4616 delete arg7;
4617 }
4618 return NULL;
4619 }
4620
4621
4622 static PyObject *_wrap_new_PreStaticBox(PyObject *, PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj;
4624 wxStaticBox *result;
4625 char *kwnames[] = {
4626 NULL
4627 };
4628
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail;
4630 {
4631 if (!wxPyCheckForApp()) SWIG_fail;
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 result = (wxStaticBox *)new wxStaticBox();
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1);
4639 return resultobj;
4640 fail:
4641 return NULL;
4642 }
4643
4644
4645 static PyObject *_wrap_StaticBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4646 PyObject *resultobj;
4647 wxStaticBox *arg1 = (wxStaticBox *) 0 ;
4648 wxWindow *arg2 = (wxWindow *) 0 ;
4649 int arg3 = (int) -1 ;
4650 wxString const &arg4_defvalue = wxPyEmptyString ;
4651 wxString *arg4 = (wxString *) &arg4_defvalue ;
4652 wxPoint const &arg5_defvalue = wxDefaultPosition ;
4653 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
4654 wxSize const &arg6_defvalue = wxDefaultSize ;
4655 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
4656 long arg7 = (long) 0 ;
4657 wxString const &arg8_defvalue = wxPyStaticBoxNameStr ;
4658 wxString *arg8 = (wxString *) &arg8_defvalue ;
4659 bool result;
4660 bool temp4 = false ;
4661 wxPoint temp5 ;
4662 wxSize temp6 ;
4663 bool temp8 = false ;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 PyObject * obj2 = 0 ;
4667 PyObject * obj3 = 0 ;
4668 PyObject * obj4 = 0 ;
4669 PyObject * obj5 = 0 ;
4670 PyObject * obj6 = 0 ;
4671 PyObject * obj7 = 0 ;
4672 char *kwnames[] = {
4673 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4674 };
4675
4676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
4677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox,
4678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4681 if (obj2) {
4682 arg3 = (int)SWIG_As_int(obj2);
4683 if (PyErr_Occurred()) SWIG_fail;
4684 }
4685 if (obj3) {
4686 {
4687 arg4 = wxString_in_helper(obj3);
4688 if (arg4 == NULL) SWIG_fail;
4689 temp4 = true;
4690 }
4691 }
4692 if (obj4) {
4693 {
4694 arg5 = &temp5;
4695 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
4696 }
4697 }
4698 if (obj5) {
4699 {
4700 arg6 = &temp6;
4701 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
4702 }
4703 }
4704 if (obj6) {
4705 arg7 = (long)SWIG_As_long(obj6);
4706 if (PyErr_Occurred()) SWIG_fail;
4707 }
4708 if (obj7) {
4709 {
4710 arg8 = wxString_in_helper(obj7);
4711 if (arg8 == NULL) SWIG_fail;
4712 temp8 = true;
4713 }
4714 }
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
4718
4719 wxPyEndAllowThreads(__tstate);
4720 if (PyErr_Occurred()) SWIG_fail;
4721 }
4722 {
4723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4724 }
4725 {
4726 if (temp4)
4727 delete arg4;
4728 }
4729 {
4730 if (temp8)
4731 delete arg8;
4732 }
4733 return resultobj;
4734 fail:
4735 {
4736 if (temp4)
4737 delete arg4;
4738 }
4739 {
4740 if (temp8)
4741 delete arg8;
4742 }
4743 return NULL;
4744 }
4745
4746
4747 static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj;
4749 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
4750 wxVisualAttributes result;
4751 PyObject * obj0 = 0 ;
4752 char *kwnames[] = {
4753 (char *) "variant", NULL
4754 };
4755
4756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
4757 if (obj0) {
4758 arg1 = (int)SWIG_As_int(obj0);
4759 if (PyErr_Occurred()) SWIG_fail;
4760 }
4761 {
4762 if (!wxPyCheckForApp()) SWIG_fail;
4763 PyThreadState* __tstate = wxPyBeginAllowThreads();
4764 result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
4765
4766 wxPyEndAllowThreads(__tstate);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 {
4770 wxVisualAttributes * resultptr;
4771 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
4772 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
4773 }
4774 return resultobj;
4775 fail:
4776 return NULL;
4777 }
4778
4779
4780 static PyObject * StaticBox_swigregister(PyObject *, PyObject *args) {
4781 PyObject *obj;
4782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4783 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj);
4784 Py_INCREF(obj);
4785 return Py_BuildValue((char *)"");
4786 }
4787 static PyObject *_wrap_new_StaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxWindow *arg1 = (wxWindow *) 0 ;
4790 int arg2 = (int) -1 ;
4791 wxPoint const &arg3_defvalue = wxDefaultPosition ;
4792 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
4793 wxSize const &arg4_defvalue = wxDefaultSize ;
4794 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
4795 long arg5 = (long) wxLI_HORIZONTAL ;
4796 wxString const &arg6_defvalue = wxPyStaticTextNameStr ;
4797 wxString *arg6 = (wxString *) &arg6_defvalue ;
4798 wxStaticLine *result;
4799 wxPoint temp3 ;
4800 wxSize temp4 ;
4801 bool temp6 = false ;
4802 PyObject * obj0 = 0 ;
4803 PyObject * obj1 = 0 ;
4804 PyObject * obj2 = 0 ;
4805 PyObject * obj3 = 0 ;
4806 PyObject * obj4 = 0 ;
4807 PyObject * obj5 = 0 ;
4808 char *kwnames[] = {
4809 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4810 };
4811
4812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
4814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4815 if (obj1) {
4816 arg2 = (int)SWIG_As_int(obj1);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 if (obj2) {
4820 {
4821 arg3 = &temp3;
4822 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
4823 }
4824 }
4825 if (obj3) {
4826 {
4827 arg4 = &temp4;
4828 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
4829 }
4830 }
4831 if (obj4) {
4832 arg5 = (long)SWIG_As_long(obj4);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 if (obj5) {
4836 {
4837 arg6 = wxString_in_helper(obj5);
4838 if (arg6 == NULL) SWIG_fail;
4839 temp6 = true;
4840 }
4841 }
4842 {
4843 if (!wxPyCheckForApp()) SWIG_fail;
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4851 {
4852 if (temp6)
4853 delete arg6;
4854 }
4855 return resultobj;
4856 fail:
4857 {
4858 if (temp6)
4859 delete arg6;
4860 }
4861 return NULL;
4862 }
4863
4864
4865 static PyObject *_wrap_new_PreStaticLine(PyObject *, PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj;
4867 wxStaticLine *result;
4868 char *kwnames[] = {
4869 NULL
4870 };
4871
4872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail;
4873 {
4874 if (!wxPyCheckForApp()) SWIG_fail;
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (wxStaticLine *)new wxStaticLine();
4877
4878 wxPyEndAllowThreads(__tstate);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1);
4882 return resultobj;
4883 fail:
4884 return NULL;
4885 }
4886
4887
4888 static PyObject *_wrap_StaticLine_Create(PyObject *, PyObject *args, PyObject *kwargs) {
4889 PyObject *resultobj;
4890 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4891 wxWindow *arg2 = (wxWindow *) 0 ;
4892 int arg3 = (int) -1 ;
4893 wxPoint const &arg4_defvalue = wxDefaultPosition ;
4894 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
4895 wxSize const &arg5_defvalue = wxDefaultSize ;
4896 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
4897 long arg6 = (long) wxLI_HORIZONTAL ;
4898 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
4899 wxString *arg7 = (wxString *) &arg7_defvalue ;
4900 bool result;
4901 wxPoint temp4 ;
4902 wxSize temp5 ;
4903 bool temp7 = false ;
4904 PyObject * obj0 = 0 ;
4905 PyObject * obj1 = 0 ;
4906 PyObject * obj2 = 0 ;
4907 PyObject * obj3 = 0 ;
4908 PyObject * obj4 = 0 ;
4909 PyObject * obj5 = 0 ;
4910 PyObject * obj6 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
4916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4918 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
4919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4920 if (obj2) {
4921 arg3 = (int)SWIG_As_int(obj2);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 if (obj3) {
4925 {
4926 arg4 = &temp4;
4927 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
4928 }
4929 }
4930 if (obj4) {
4931 {
4932 arg5 = &temp5;
4933 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
4934 }
4935 }
4936 if (obj5) {
4937 arg6 = (long)SWIG_As_long(obj5);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 if (obj6) {
4941 {
4942 arg7 = wxString_in_helper(obj6);
4943 if (arg7 == NULL) SWIG_fail;
4944 temp7 = true;
4945 }
4946 }
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 {
4955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4956 }
4957 {
4958 if (temp7)
4959 delete arg7;
4960 }
4961 return resultobj;
4962 fail:
4963 {
4964 if (temp7)
4965 delete arg7;
4966 }
4967 return NULL;
4968 }
4969
4970
4971 static PyObject *_wrap_StaticLine_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj;
4973 wxStaticLine *arg1 = (wxStaticLine *) 0 ;
4974 bool result;
4975 PyObject * obj0 = 0 ;
4976 char *kwnames[] = {
4977 (char *) "self", NULL
4978 };
4979
4980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail;
4981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine,
4982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4983 {
4984 PyThreadState* __tstate = wxPyBeginAllowThreads();
4985 result = (bool)((wxStaticLine const *)arg1)->IsVertical();
4986
4987 wxPyEndAllowThreads(__tstate);
4988 if (PyErr_Occurred()) SWIG_fail;
4989 }
4990 {
4991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4992 }
4993 return resultobj;
4994 fail:
4995 return NULL;
4996 }
4997
4998
4999 static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *, PyObject *args, PyObject *kwargs) {
5000 PyObject *resultobj;
5001 int result;
5002 char *kwnames[] = {
5003 NULL
5004 };
5005
5006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail;
5007 {
5008 PyThreadState* __tstate = wxPyBeginAllowThreads();
5009 result = (int)wxStaticLine::GetDefaultSize();
5010
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 resultobj = SWIG_From_int((int)result);
5015 return resultobj;
5016 fail:
5017 return NULL;
5018 }
5019
5020
5021 static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5022 PyObject *resultobj;
5023 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5024 wxVisualAttributes result;
5025 PyObject * obj0 = 0 ;
5026 char *kwnames[] = {
5027 (char *) "variant", NULL
5028 };
5029
5030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5031 if (obj0) {
5032 arg1 = (int)SWIG_As_int(obj0);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 {
5036 if (!wxPyCheckForApp()) SWIG_fail;
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1);
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 {
5044 wxVisualAttributes * resultptr;
5045 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5046 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5047 }
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 static PyObject * StaticLine_swigregister(PyObject *, PyObject *args) {
5055 PyObject *obj;
5056 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5057 SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj);
5058 Py_INCREF(obj);
5059 return Py_BuildValue((char *)"");
5060 }
5061 static PyObject *_wrap_new_StaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj;
5063 wxWindow *arg1 = (wxWindow *) 0 ;
5064 int arg2 = (int) -1 ;
5065 wxString const &arg3_defvalue = wxPyEmptyString ;
5066 wxString *arg3 = (wxString *) &arg3_defvalue ;
5067 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5068 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5069 wxSize const &arg5_defvalue = wxDefaultSize ;
5070 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5071 long arg6 = (long) 0 ;
5072 wxString const &arg7_defvalue = wxPyStaticTextNameStr ;
5073 wxString *arg7 = (wxString *) &arg7_defvalue ;
5074 wxStaticText *result;
5075 bool temp3 = false ;
5076 wxPoint temp4 ;
5077 wxSize temp5 ;
5078 bool temp7 = false ;
5079 PyObject * obj0 = 0 ;
5080 PyObject * obj1 = 0 ;
5081 PyObject * obj2 = 0 ;
5082 PyObject * obj3 = 0 ;
5083 PyObject * obj4 = 0 ;
5084 PyObject * obj5 = 0 ;
5085 PyObject * obj6 = 0 ;
5086 char *kwnames[] = {
5087 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5088 };
5089
5090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5093 if (obj1) {
5094 arg2 = (int)SWIG_As_int(obj1);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 if (obj2) {
5098 {
5099 arg3 = wxString_in_helper(obj2);
5100 if (arg3 == NULL) SWIG_fail;
5101 temp3 = true;
5102 }
5103 }
5104 if (obj3) {
5105 {
5106 arg4 = &temp4;
5107 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5108 }
5109 }
5110 if (obj4) {
5111 {
5112 arg5 = &temp5;
5113 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5114 }
5115 }
5116 if (obj5) {
5117 arg6 = (long)SWIG_As_long(obj5);
5118 if (PyErr_Occurred()) SWIG_fail;
5119 }
5120 if (obj6) {
5121 {
5122 arg7 = wxString_in_helper(obj6);
5123 if (arg7 == NULL) SWIG_fail;
5124 temp7 = true;
5125 }
5126 }
5127 {
5128 if (!wxPyCheckForApp()) SWIG_fail;
5129 PyThreadState* __tstate = wxPyBeginAllowThreads();
5130 result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5131
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5136 {
5137 if (temp3)
5138 delete arg3;
5139 }
5140 {
5141 if (temp7)
5142 delete arg7;
5143 }
5144 return resultobj;
5145 fail:
5146 {
5147 if (temp3)
5148 delete arg3;
5149 }
5150 {
5151 if (temp7)
5152 delete arg7;
5153 }
5154 return NULL;
5155 }
5156
5157
5158 static PyObject *_wrap_new_PreStaticText(PyObject *, PyObject *args, PyObject *kwargs) {
5159 PyObject *resultobj;
5160 wxStaticText *result;
5161 char *kwnames[] = {
5162 NULL
5163 };
5164
5165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail;
5166 {
5167 if (!wxPyCheckForApp()) SWIG_fail;
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 result = (wxStaticText *)new wxStaticText();
5170
5171 wxPyEndAllowThreads(__tstate);
5172 if (PyErr_Occurred()) SWIG_fail;
5173 }
5174 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1);
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject *_wrap_StaticText_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj;
5183 wxStaticText *arg1 = (wxStaticText *) 0 ;
5184 wxWindow *arg2 = (wxWindow *) 0 ;
5185 int arg3 = (int) -1 ;
5186 wxString const &arg4_defvalue = wxPyEmptyString ;
5187 wxString *arg4 = (wxString *) &arg4_defvalue ;
5188 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5189 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5190 wxSize const &arg6_defvalue = wxDefaultSize ;
5191 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5192 long arg7 = (long) 0 ;
5193 wxString const &arg8_defvalue = wxPyStaticTextNameStr ;
5194 wxString *arg8 = (wxString *) &arg8_defvalue ;
5195 bool result;
5196 bool temp4 = false ;
5197 wxPoint temp5 ;
5198 wxSize temp6 ;
5199 bool temp8 = false ;
5200 PyObject * obj0 = 0 ;
5201 PyObject * obj1 = 0 ;
5202 PyObject * obj2 = 0 ;
5203 PyObject * obj3 = 0 ;
5204 PyObject * obj4 = 0 ;
5205 PyObject * obj5 = 0 ;
5206 PyObject * obj6 = 0 ;
5207 PyObject * obj7 = 0 ;
5208 char *kwnames[] = {
5209 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5210 };
5211
5212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText,
5214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5215 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5217 if (obj2) {
5218 arg3 = (int)SWIG_As_int(obj2);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 if (obj3) {
5222 {
5223 arg4 = wxString_in_helper(obj3);
5224 if (arg4 == NULL) SWIG_fail;
5225 temp4 = true;
5226 }
5227 }
5228 if (obj4) {
5229 {
5230 arg5 = &temp5;
5231 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5232 }
5233 }
5234 if (obj5) {
5235 {
5236 arg6 = &temp6;
5237 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5238 }
5239 }
5240 if (obj6) {
5241 arg7 = (long)SWIG_As_long(obj6);
5242 if (PyErr_Occurred()) SWIG_fail;
5243 }
5244 if (obj7) {
5245 {
5246 arg8 = wxString_in_helper(obj7);
5247 if (arg8 == NULL) SWIG_fail;
5248 temp8 = true;
5249 }
5250 }
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5254
5255 wxPyEndAllowThreads(__tstate);
5256 if (PyErr_Occurred()) SWIG_fail;
5257 }
5258 {
5259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5260 }
5261 {
5262 if (temp4)
5263 delete arg4;
5264 }
5265 {
5266 if (temp8)
5267 delete arg8;
5268 }
5269 return resultobj;
5270 fail:
5271 {
5272 if (temp4)
5273 delete arg4;
5274 }
5275 {
5276 if (temp8)
5277 delete arg8;
5278 }
5279 return NULL;
5280 }
5281
5282
5283 static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5284 PyObject *resultobj;
5285 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5286 wxVisualAttributes result;
5287 PyObject * obj0 = 0 ;
5288 char *kwnames[] = {
5289 (char *) "variant", NULL
5290 };
5291
5292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5293 if (obj0) {
5294 arg1 = (int)SWIG_As_int(obj0);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 {
5298 if (!wxPyCheckForApp()) SWIG_fail;
5299 PyThreadState* __tstate = wxPyBeginAllowThreads();
5300 result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1);
5301
5302 wxPyEndAllowThreads(__tstate);
5303 if (PyErr_Occurred()) SWIG_fail;
5304 }
5305 {
5306 wxVisualAttributes * resultptr;
5307 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5308 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5309 }
5310 return resultobj;
5311 fail:
5312 return NULL;
5313 }
5314
5315
5316 static PyObject * StaticText_swigregister(PyObject *, PyObject *args) {
5317 PyObject *obj;
5318 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5319 SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj);
5320 Py_INCREF(obj);
5321 return Py_BuildValue((char *)"");
5322 }
5323 static PyObject *_wrap_new_StaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5324 PyObject *resultobj;
5325 wxWindow *arg1 = (wxWindow *) 0 ;
5326 int arg2 = (int) -1 ;
5327 wxBitmap const &arg3_defvalue = wxNullBitmap ;
5328 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
5329 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5330 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5331 wxSize const &arg5_defvalue = wxDefaultSize ;
5332 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5333 long arg6 = (long) 0 ;
5334 wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ;
5335 wxString *arg7 = (wxString *) &arg7_defvalue ;
5336 wxStaticBitmap *result;
5337 wxPoint temp4 ;
5338 wxSize temp5 ;
5339 bool temp7 = false ;
5340 PyObject * obj0 = 0 ;
5341 PyObject * obj1 = 0 ;
5342 PyObject * obj2 = 0 ;
5343 PyObject * obj3 = 0 ;
5344 PyObject * obj4 = 0 ;
5345 PyObject * obj5 = 0 ;
5346 PyObject * obj6 = 0 ;
5347 char *kwnames[] = {
5348 (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5349 };
5350
5351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
5352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5354 if (obj1) {
5355 arg2 = (int)SWIG_As_int(obj1);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 if (obj2) {
5359 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
5360 SWIG_POINTER_EXCEPTION | 0)) == -1)
5361 SWIG_fail;
5362 if (arg3 == NULL) {
5363 PyErr_SetString(PyExc_TypeError,"null reference");
5364 SWIG_fail;
5365 }
5366 }
5367 if (obj3) {
5368 {
5369 arg4 = &temp4;
5370 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5371 }
5372 }
5373 if (obj4) {
5374 {
5375 arg5 = &temp5;
5376 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5377 }
5378 }
5379 if (obj5) {
5380 arg6 = (long)SWIG_As_long(obj5);
5381 if (PyErr_Occurred()) SWIG_fail;
5382 }
5383 if (obj6) {
5384 {
5385 arg7 = wxString_in_helper(obj6);
5386 if (arg7 == NULL) SWIG_fail;
5387 temp7 = true;
5388 }
5389 }
5390 {
5391 if (!wxPyCheckForApp()) SWIG_fail;
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5399 {
5400 if (temp7)
5401 delete arg7;
5402 }
5403 return resultobj;
5404 fail:
5405 {
5406 if (temp7)
5407 delete arg7;
5408 }
5409 return NULL;
5410 }
5411
5412
5413 static PyObject *_wrap_new_PreStaticBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxStaticBitmap *result;
5416 char *kwnames[] = {
5417 NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail;
5421 {
5422 if (!wxPyCheckForApp()) SWIG_fail;
5423 PyThreadState* __tstate = wxPyBeginAllowThreads();
5424 result = (wxStaticBitmap *)new wxStaticBitmap();
5425
5426 wxPyEndAllowThreads(__tstate);
5427 if (PyErr_Occurred()) SWIG_fail;
5428 }
5429 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1);
5430 return resultobj;
5431 fail:
5432 return NULL;
5433 }
5434
5435
5436 static PyObject *_wrap_StaticBitmap_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj;
5438 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5439 wxWindow *arg2 = (wxWindow *) 0 ;
5440 int arg3 = (int) -1 ;
5441 wxBitmap const &arg4_defvalue = wxNullBitmap ;
5442 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
5443 wxPoint const &arg5_defvalue = wxDefaultPosition ;
5444 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
5445 wxSize const &arg6_defvalue = wxDefaultSize ;
5446 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
5447 long arg7 = (long) 0 ;
5448 wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ;
5449 wxString *arg8 = (wxString *) &arg8_defvalue ;
5450 bool result;
5451 wxPoint temp5 ;
5452 wxSize temp6 ;
5453 bool temp8 = false ;
5454 PyObject * obj0 = 0 ;
5455 PyObject * obj1 = 0 ;
5456 PyObject * obj2 = 0 ;
5457 PyObject * obj3 = 0 ;
5458 PyObject * obj4 = 0 ;
5459 PyObject * obj5 = 0 ;
5460 PyObject * obj6 = 0 ;
5461 PyObject * obj7 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5469 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5471 if (obj2) {
5472 arg3 = (int)SWIG_As_int(obj2);
5473 if (PyErr_Occurred()) SWIG_fail;
5474 }
5475 if (obj3) {
5476 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
5477 SWIG_POINTER_EXCEPTION | 0)) == -1)
5478 SWIG_fail;
5479 if (arg4 == NULL) {
5480 PyErr_SetString(PyExc_TypeError,"null reference");
5481 SWIG_fail;
5482 }
5483 }
5484 if (obj4) {
5485 {
5486 arg5 = &temp5;
5487 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
5488 }
5489 }
5490 if (obj5) {
5491 {
5492 arg6 = &temp6;
5493 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
5494 }
5495 }
5496 if (obj6) {
5497 arg7 = (long)SWIG_As_long(obj6);
5498 if (PyErr_Occurred()) SWIG_fail;
5499 }
5500 if (obj7) {
5501 {
5502 arg8 = wxString_in_helper(obj7);
5503 if (arg8 == NULL) SWIG_fail;
5504 temp8 = true;
5505 }
5506 }
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8);
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 {
5515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5516 }
5517 {
5518 if (temp8)
5519 delete arg8;
5520 }
5521 return resultobj;
5522 fail:
5523 {
5524 if (temp8)
5525 delete arg8;
5526 }
5527 return NULL;
5528 }
5529
5530
5531 static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5532 PyObject *resultobj;
5533 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5534 wxBitmap result;
5535 PyObject * obj0 = 0 ;
5536 char *kwnames[] = {
5537 (char *) "self", NULL
5538 };
5539
5540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail;
5541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5543 {
5544 PyThreadState* __tstate = wxPyBeginAllowThreads();
5545 result = (arg1)->GetBitmap();
5546
5547 wxPyEndAllowThreads(__tstate);
5548 if (PyErr_Occurred()) SWIG_fail;
5549 }
5550 {
5551 wxBitmap * resultptr;
5552 resultptr = new wxBitmap((wxBitmap &) result);
5553 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5554 }
5555 return resultobj;
5556 fail:
5557 return NULL;
5558 }
5559
5560
5561 static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
5562 PyObject *resultobj;
5563 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5564 wxBitmap *arg2 = 0 ;
5565 PyObject * obj0 = 0 ;
5566 PyObject * obj1 = 0 ;
5567 char *kwnames[] = {
5568 (char *) "self",(char *) "bitmap", NULL
5569 };
5570
5571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail;
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5575 SWIG_POINTER_EXCEPTION | 0)) == -1)
5576 SWIG_fail;
5577 if (arg2 == NULL) {
5578 PyErr_SetString(PyExc_TypeError,"null reference");
5579 SWIG_fail;
5580 }
5581 {
5582 PyThreadState* __tstate = wxPyBeginAllowThreads();
5583 (arg1)->SetBitmap((wxBitmap const &)*arg2);
5584
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 Py_INCREF(Py_None); resultobj = Py_None;
5589 return resultobj;
5590 fail:
5591 return NULL;
5592 }
5593
5594
5595 static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *, PyObject *args, PyObject *kwargs) {
5596 PyObject *resultobj;
5597 wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ;
5598 wxIcon *arg2 = 0 ;
5599 PyObject * obj0 = 0 ;
5600 PyObject * obj1 = 0 ;
5601 char *kwnames[] = {
5602 (char *) "self",(char *) "icon", NULL
5603 };
5604
5605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail;
5606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap,
5607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5608 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
5609 SWIG_POINTER_EXCEPTION | 0)) == -1)
5610 SWIG_fail;
5611 if (arg2 == NULL) {
5612 PyErr_SetString(PyExc_TypeError,"null reference");
5613 SWIG_fail;
5614 }
5615 {
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 (arg1)->SetIcon((wxIcon const &)*arg2);
5618
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 Py_INCREF(Py_None); resultobj = Py_None;
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
5632 wxVisualAttributes result;
5633 PyObject * obj0 = 0 ;
5634 char *kwnames[] = {
5635 (char *) "variant", NULL
5636 };
5637
5638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
5639 if (obj0) {
5640 arg1 = (int)SWIG_As_int(obj0);
5641 if (PyErr_Occurred()) SWIG_fail;
5642 }
5643 {
5644 if (!wxPyCheckForApp()) SWIG_fail;
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1);
5647
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
5651 {
5652 wxVisualAttributes * resultptr;
5653 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
5654 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
5655 }
5656 return resultobj;
5657 fail:
5658 return NULL;
5659 }
5660
5661
5662 static PyObject * StaticBitmap_swigregister(PyObject *, PyObject *args) {
5663 PyObject *obj;
5664 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5665 SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj);
5666 Py_INCREF(obj);
5667 return Py_BuildValue((char *)"");
5668 }
5669 static int _wrap_ListBoxNameStr_set(PyObject *) {
5670 PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only.");
5671 return 1;
5672 }
5673
5674
5675 static PyObject *_wrap_ListBoxNameStr_get() {
5676 PyObject *pyobj;
5677
5678 {
5679 #if wxUSE_UNICODE
5680 pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5681 #else
5682 pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len());
5683 #endif
5684 }
5685 return pyobj;
5686 }
5687
5688
5689 static PyObject *_wrap_new_ListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5690 PyObject *resultobj;
5691 wxWindow *arg1 = (wxWindow *) 0 ;
5692 int arg2 = (int) -1 ;
5693 wxPoint const &arg3_defvalue = wxDefaultPosition ;
5694 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
5695 wxSize const &arg4_defvalue = wxDefaultSize ;
5696 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
5697 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
5698 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
5699 long arg6 = (long) 0 ;
5700 wxValidator const &arg7_defvalue = wxDefaultValidator ;
5701 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
5702 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
5703 wxString *arg8 = (wxString *) &arg8_defvalue ;
5704 wxListBox *result;
5705 wxPoint temp3 ;
5706 wxSize temp4 ;
5707 bool temp5 = false ;
5708 bool temp8 = false ;
5709 PyObject * obj0 = 0 ;
5710 PyObject * obj1 = 0 ;
5711 PyObject * obj2 = 0 ;
5712 PyObject * obj3 = 0 ;
5713 PyObject * obj4 = 0 ;
5714 PyObject * obj5 = 0 ;
5715 PyObject * obj6 = 0 ;
5716 PyObject * obj7 = 0 ;
5717 char *kwnames[] = {
5718 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5719 };
5720
5721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
5722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
5723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5724 if (obj1) {
5725 arg2 = (int)SWIG_As_int(obj1);
5726 if (PyErr_Occurred()) SWIG_fail;
5727 }
5728 if (obj2) {
5729 {
5730 arg3 = &temp3;
5731 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
5732 }
5733 }
5734 if (obj3) {
5735 {
5736 arg4 = &temp4;
5737 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
5738 }
5739 }
5740 if (obj4) {
5741 {
5742 if (! PySequence_Check(obj4)) {
5743 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5744 SWIG_fail;
5745 }
5746 arg5 = new wxArrayString;
5747 temp5 = true;
5748 int i, len=PySequence_Length(obj4);
5749 for (i=0; i<len; i++) {
5750 PyObject* item = PySequence_GetItem(obj4, i);
5751 #if wxUSE_UNICODE
5752 PyObject* str = PyObject_Unicode(item);
5753 #else
5754 PyObject* str = PyObject_Str(item);
5755 #endif
5756 if (PyErr_Occurred()) SWIG_fail;
5757 arg5->Add(Py2wxString(str));
5758 Py_DECREF(item);
5759 Py_DECREF(str);
5760 }
5761 }
5762 }
5763 if (obj5) {
5764 arg6 = (long)SWIG_As_long(obj5);
5765 if (PyErr_Occurred()) SWIG_fail;
5766 }
5767 if (obj6) {
5768 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1)
5770 SWIG_fail;
5771 if (arg7 == NULL) {
5772 PyErr_SetString(PyExc_TypeError,"null reference");
5773 SWIG_fail;
5774 }
5775 }
5776 if (obj7) {
5777 {
5778 arg8 = wxString_in_helper(obj7);
5779 if (arg8 == NULL) SWIG_fail;
5780 temp8 = true;
5781 }
5782 }
5783 {
5784 if (!wxPyCheckForApp()) SWIG_fail;
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5792 {
5793 if (temp5) delete arg5;
5794 }
5795 {
5796 if (temp8)
5797 delete arg8;
5798 }
5799 return resultobj;
5800 fail:
5801 {
5802 if (temp5) delete arg5;
5803 }
5804 {
5805 if (temp8)
5806 delete arg8;
5807 }
5808 return NULL;
5809 }
5810
5811
5812 static PyObject *_wrap_new_PreListBox(PyObject *, PyObject *args, PyObject *kwargs) {
5813 PyObject *resultobj;
5814 wxListBox *result;
5815 char *kwnames[] = {
5816 NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail;
5820 {
5821 if (!wxPyCheckForApp()) SWIG_fail;
5822 PyThreadState* __tstate = wxPyBeginAllowThreads();
5823 result = (wxListBox *)new wxListBox();
5824
5825 wxPyEndAllowThreads(__tstate);
5826 if (PyErr_Occurred()) SWIG_fail;
5827 }
5828 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1);
5829 return resultobj;
5830 fail:
5831 return NULL;
5832 }
5833
5834
5835 static PyObject *_wrap_ListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
5836 PyObject *resultobj;
5837 wxListBox *arg1 = (wxListBox *) 0 ;
5838 wxWindow *arg2 = (wxWindow *) 0 ;
5839 int arg3 = (int) -1 ;
5840 wxPoint const &arg4_defvalue = wxDefaultPosition ;
5841 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
5842 wxSize const &arg5_defvalue = wxDefaultSize ;
5843 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
5844 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
5845 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
5846 long arg7 = (long) 0 ;
5847 wxValidator const &arg8_defvalue = wxDefaultValidator ;
5848 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
5849 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
5850 wxString *arg9 = (wxString *) &arg9_defvalue ;
5851 bool result;
5852 wxPoint temp4 ;
5853 wxSize temp5 ;
5854 bool temp6 = false ;
5855 bool temp9 = false ;
5856 PyObject * obj0 = 0 ;
5857 PyObject * obj1 = 0 ;
5858 PyObject * obj2 = 0 ;
5859 PyObject * obj3 = 0 ;
5860 PyObject * obj4 = 0 ;
5861 PyObject * obj5 = 0 ;
5862 PyObject * obj6 = 0 ;
5863 PyObject * obj7 = 0 ;
5864 PyObject * obj8 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
5873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5874 if (obj2) {
5875 arg3 = (int)SWIG_As_int(obj2);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 if (obj3) {
5879 {
5880 arg4 = &temp4;
5881 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
5882 }
5883 }
5884 if (obj4) {
5885 {
5886 arg5 = &temp5;
5887 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
5888 }
5889 }
5890 if (obj5) {
5891 {
5892 if (! PySequence_Check(obj5)) {
5893 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
5894 SWIG_fail;
5895 }
5896 arg6 = new wxArrayString;
5897 temp6 = true;
5898 int i, len=PySequence_Length(obj5);
5899 for (i=0; i<len; i++) {
5900 PyObject* item = PySequence_GetItem(obj5, i);
5901 #if wxUSE_UNICODE
5902 PyObject* str = PyObject_Unicode(item);
5903 #else
5904 PyObject* str = PyObject_Str(item);
5905 #endif
5906 if (PyErr_Occurred()) SWIG_fail;
5907 arg6->Add(Py2wxString(str));
5908 Py_DECREF(item);
5909 Py_DECREF(str);
5910 }
5911 }
5912 }
5913 if (obj6) {
5914 arg7 = (long)SWIG_As_long(obj6);
5915 if (PyErr_Occurred()) SWIG_fail;
5916 }
5917 if (obj7) {
5918 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
5919 SWIG_POINTER_EXCEPTION | 0)) == -1)
5920 SWIG_fail;
5921 if (arg8 == NULL) {
5922 PyErr_SetString(PyExc_TypeError,"null reference");
5923 SWIG_fail;
5924 }
5925 }
5926 if (obj8) {
5927 {
5928 arg9 = wxString_in_helper(obj8);
5929 if (arg9 == NULL) SWIG_fail;
5930 temp9 = true;
5931 }
5932 }
5933 {
5934 PyThreadState* __tstate = wxPyBeginAllowThreads();
5935 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
5936
5937 wxPyEndAllowThreads(__tstate);
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 {
5941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5942 }
5943 {
5944 if (temp6) delete arg6;
5945 }
5946 {
5947 if (temp9)
5948 delete arg9;
5949 }
5950 return resultobj;
5951 fail:
5952 {
5953 if (temp6) delete arg6;
5954 }
5955 {
5956 if (temp9)
5957 delete arg9;
5958 }
5959 return NULL;
5960 }
5961
5962
5963 static PyObject *_wrap_ListBox_Insert(PyObject *, PyObject *args, PyObject *kwargs) {
5964 PyObject *resultobj;
5965 wxListBox *arg1 = (wxListBox *) 0 ;
5966 wxString *arg2 = 0 ;
5967 int arg3 ;
5968 PyObject *arg4 = (PyObject *) NULL ;
5969 bool temp2 = false ;
5970 PyObject * obj0 = 0 ;
5971 PyObject * obj1 = 0 ;
5972 PyObject * obj2 = 0 ;
5973 PyObject * obj3 = 0 ;
5974 char *kwnames[] = {
5975 (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL
5976 };
5977
5978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
5980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5981 {
5982 arg2 = wxString_in_helper(obj1);
5983 if (arg2 == NULL) SWIG_fail;
5984 temp2 = true;
5985 }
5986 arg3 = (int)SWIG_As_int(obj2);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 if (obj3) {
5989 arg4 = obj3;
5990 }
5991 {
5992 PyThreadState* __tstate = wxPyBeginAllowThreads();
5993 wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4);
5994
5995 wxPyEndAllowThreads(__tstate);
5996 if (PyErr_Occurred()) SWIG_fail;
5997 }
5998 Py_INCREF(Py_None); resultobj = Py_None;
5999 {
6000 if (temp2)
6001 delete arg2;
6002 }
6003 return resultobj;
6004 fail:
6005 {
6006 if (temp2)
6007 delete arg2;
6008 }
6009 return NULL;
6010 }
6011
6012
6013 static PyObject *_wrap_ListBox_InsertItems(PyObject *, PyObject *args, PyObject *kwargs) {
6014 PyObject *resultobj;
6015 wxListBox *arg1 = (wxListBox *) 0 ;
6016 wxArrayString *arg2 = 0 ;
6017 int arg3 ;
6018 bool temp2 = false ;
6019 PyObject * obj0 = 0 ;
6020 PyObject * obj1 = 0 ;
6021 PyObject * obj2 = 0 ;
6022 char *kwnames[] = {
6023 (char *) "self",(char *) "items",(char *) "pos", NULL
6024 };
6025
6026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
6027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6029 {
6030 if (! PySequence_Check(obj1)) {
6031 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6032 SWIG_fail;
6033 }
6034 arg2 = new wxArrayString;
6035 temp2 = true;
6036 int i, len=PySequence_Length(obj1);
6037 for (i=0; i<len; i++) {
6038 PyObject* item = PySequence_GetItem(obj1, i);
6039 #if wxUSE_UNICODE
6040 PyObject* str = PyObject_Unicode(item);
6041 #else
6042 PyObject* str = PyObject_Str(item);
6043 #endif
6044 if (PyErr_Occurred()) SWIG_fail;
6045 arg2->Add(Py2wxString(str));
6046 Py_DECREF(item);
6047 Py_DECREF(str);
6048 }
6049 }
6050 arg3 = (int)SWIG_As_int(obj2);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->InsertItems((wxArrayString const &)*arg2,arg3);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 Py_INCREF(Py_None); resultobj = Py_None;
6060 {
6061 if (temp2) delete arg2;
6062 }
6063 return resultobj;
6064 fail:
6065 {
6066 if (temp2) delete arg2;
6067 }
6068 return NULL;
6069 }
6070
6071
6072 static PyObject *_wrap_ListBox_Set(PyObject *, PyObject *args, PyObject *kwargs) {
6073 PyObject *resultobj;
6074 wxListBox *arg1 = (wxListBox *) 0 ;
6075 wxArrayString *arg2 = 0 ;
6076 bool temp2 = false ;
6077 PyObject * obj0 = 0 ;
6078 PyObject * obj1 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self",(char *) "items", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 if (! PySequence_Check(obj1)) {
6088 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6089 SWIG_fail;
6090 }
6091 arg2 = new wxArrayString;
6092 temp2 = true;
6093 int i, len=PySequence_Length(obj1);
6094 for (i=0; i<len; i++) {
6095 PyObject* item = PySequence_GetItem(obj1, i);
6096 #if wxUSE_UNICODE
6097 PyObject* str = PyObject_Unicode(item);
6098 #else
6099 PyObject* str = PyObject_Str(item);
6100 #endif
6101 if (PyErr_Occurred()) SWIG_fail;
6102 arg2->Add(Py2wxString(str));
6103 Py_DECREF(item);
6104 Py_DECREF(str);
6105 }
6106 }
6107 {
6108 PyThreadState* __tstate = wxPyBeginAllowThreads();
6109 (arg1)->Set((wxArrayString const &)*arg2);
6110
6111 wxPyEndAllowThreads(__tstate);
6112 if (PyErr_Occurred()) SWIG_fail;
6113 }
6114 Py_INCREF(Py_None); resultobj = Py_None;
6115 {
6116 if (temp2) delete arg2;
6117 }
6118 return resultobj;
6119 fail:
6120 {
6121 if (temp2) delete arg2;
6122 }
6123 return NULL;
6124 }
6125
6126
6127 static PyObject *_wrap_ListBox_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj;
6129 wxListBox *arg1 = (wxListBox *) 0 ;
6130 int arg2 ;
6131 bool result;
6132 PyObject * obj0 = 0 ;
6133 PyObject * obj1 = 0 ;
6134 char *kwnames[] = {
6135 (char *) "self",(char *) "n", NULL
6136 };
6137
6138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail;
6139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6141 arg2 = (int)SWIG_As_int(obj1);
6142 if (PyErr_Occurred()) SWIG_fail;
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (bool)((wxListBox const *)arg1)->IsSelected(arg2);
6146
6147 wxPyEndAllowThreads(__tstate);
6148 if (PyErr_Occurred()) SWIG_fail;
6149 }
6150 {
6151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6152 }
6153 return resultobj;
6154 fail:
6155 return NULL;
6156 }
6157
6158
6159 static PyObject *_wrap_ListBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6160 PyObject *resultobj;
6161 wxListBox *arg1 = (wxListBox *) 0 ;
6162 int arg2 ;
6163 bool arg3 = (bool) true ;
6164 PyObject * obj0 = 0 ;
6165 PyObject * obj1 = 0 ;
6166 PyObject * obj2 = 0 ;
6167 char *kwnames[] = {
6168 (char *) "self",(char *) "n",(char *) "select", NULL
6169 };
6170
6171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6174 arg2 = (int)SWIG_As_int(obj1);
6175 if (PyErr_Occurred()) SWIG_fail;
6176 if (obj2) {
6177 arg3 = (bool)SWIG_As_bool(obj2);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 {
6181 PyThreadState* __tstate = wxPyBeginAllowThreads();
6182 (arg1)->SetSelection(arg2,arg3);
6183
6184 wxPyEndAllowThreads(__tstate);
6185 if (PyErr_Occurred()) SWIG_fail;
6186 }
6187 Py_INCREF(Py_None); resultobj = Py_None;
6188 return resultobj;
6189 fail:
6190 return NULL;
6191 }
6192
6193
6194 static PyObject *_wrap_ListBox_Select(PyObject *, PyObject *args, PyObject *kwargs) {
6195 PyObject *resultobj;
6196 wxListBox *arg1 = (wxListBox *) 0 ;
6197 int arg2 ;
6198 PyObject * obj0 = 0 ;
6199 PyObject * obj1 = 0 ;
6200 char *kwnames[] = {
6201 (char *) "self",(char *) "n", NULL
6202 };
6203
6204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail;
6205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6207 arg2 = (int)SWIG_As_int(obj1);
6208 if (PyErr_Occurred()) SWIG_fail;
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 (arg1)->Select(arg2);
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 Py_INCREF(Py_None); resultobj = Py_None;
6217 return resultobj;
6218 fail:
6219 return NULL;
6220 }
6221
6222
6223 static PyObject *_wrap_ListBox_Deselect(PyObject *, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj;
6225 wxListBox *arg1 = (wxListBox *) 0 ;
6226 int arg2 ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 char *kwnames[] = {
6230 (char *) "self",(char *) "n", NULL
6231 };
6232
6233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail;
6234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6236 arg2 = (int)SWIG_As_int(obj1);
6237 if (PyErr_Occurred()) SWIG_fail;
6238 {
6239 PyThreadState* __tstate = wxPyBeginAllowThreads();
6240 (arg1)->Deselect(arg2);
6241
6242 wxPyEndAllowThreads(__tstate);
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 Py_INCREF(Py_None); resultobj = Py_None;
6246 return resultobj;
6247 fail:
6248 return NULL;
6249 }
6250
6251
6252 static PyObject *_wrap_ListBox_DeselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
6253 PyObject *resultobj;
6254 wxListBox *arg1 = (wxListBox *) 0 ;
6255 int arg2 = (int) -1 ;
6256 PyObject * obj0 = 0 ;
6257 PyObject * obj1 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self",(char *) "itemToLeaveSelected", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 if (obj1) {
6266 arg2 = (int)SWIG_As_int(obj1);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 {
6270 PyThreadState* __tstate = wxPyBeginAllowThreads();
6271 (arg1)->DeselectAll(arg2);
6272
6273 wxPyEndAllowThreads(__tstate);
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 Py_INCREF(Py_None); resultobj = Py_None;
6277 return resultobj;
6278 fail:
6279 return NULL;
6280 }
6281
6282
6283 static PyObject *_wrap_ListBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
6284 PyObject *resultobj;
6285 wxListBox *arg1 = (wxListBox *) 0 ;
6286 wxString *arg2 = 0 ;
6287 bool arg3 = (bool) true ;
6288 bool result;
6289 bool temp2 = false ;
6290 PyObject * obj0 = 0 ;
6291 PyObject * obj1 = 0 ;
6292 PyObject * obj2 = 0 ;
6293 char *kwnames[] = {
6294 (char *) "self",(char *) "s",(char *) "select", NULL
6295 };
6296
6297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
6298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6300 {
6301 arg2 = wxString_in_helper(obj1);
6302 if (arg2 == NULL) SWIG_fail;
6303 temp2 = true;
6304 }
6305 if (obj2) {
6306 arg3 = (bool)SWIG_As_bool(obj2);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 {
6317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6318 }
6319 {
6320 if (temp2)
6321 delete arg2;
6322 }
6323 return resultobj;
6324 fail:
6325 {
6326 if (temp2)
6327 delete arg2;
6328 }
6329 return NULL;
6330 }
6331
6332
6333 static PyObject *_wrap_ListBox_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
6334 PyObject *resultobj;
6335 wxListBox *arg1 = (wxListBox *) 0 ;
6336 PyObject *result;
6337 PyObject * obj0 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "self", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail;
6343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6345 {
6346 PyThreadState* __tstate = wxPyBeginAllowThreads();
6347 result = (PyObject *)wxListBox_GetSelections(arg1);
6348
6349 wxPyEndAllowThreads(__tstate);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 }
6352 resultobj = result;
6353 return resultobj;
6354 fail:
6355 return NULL;
6356 }
6357
6358
6359 static PyObject *_wrap_ListBox_SetFirstItem(PyObject *, PyObject *args, PyObject *kwargs) {
6360 PyObject *resultobj;
6361 wxListBox *arg1 = (wxListBox *) 0 ;
6362 int arg2 ;
6363 PyObject * obj0 = 0 ;
6364 PyObject * obj1 = 0 ;
6365 char *kwnames[] = {
6366 (char *) "self",(char *) "n", NULL
6367 };
6368
6369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail;
6370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6372 arg2 = (int)SWIG_As_int(obj1);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 {
6375 PyThreadState* __tstate = wxPyBeginAllowThreads();
6376 (arg1)->SetFirstItem(arg2);
6377
6378 wxPyEndAllowThreads(__tstate);
6379 if (PyErr_Occurred()) SWIG_fail;
6380 }
6381 Py_INCREF(Py_None); resultobj = Py_None;
6382 return resultobj;
6383 fail:
6384 return NULL;
6385 }
6386
6387
6388 static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *, PyObject *args, PyObject *kwargs) {
6389 PyObject *resultobj;
6390 wxListBox *arg1 = (wxListBox *) 0 ;
6391 wxString *arg2 = 0 ;
6392 bool temp2 = false ;
6393 PyObject * obj0 = 0 ;
6394 PyObject * obj1 = 0 ;
6395 char *kwnames[] = {
6396 (char *) "self",(char *) "s", NULL
6397 };
6398
6399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail;
6400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6402 {
6403 arg2 = wxString_in_helper(obj1);
6404 if (arg2 == NULL) SWIG_fail;
6405 temp2 = true;
6406 }
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 (arg1)->SetFirstItem((wxString const &)*arg2);
6410
6411 wxPyEndAllowThreads(__tstate);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 Py_INCREF(Py_None); resultobj = Py_None;
6415 {
6416 if (temp2)
6417 delete arg2;
6418 }
6419 return resultobj;
6420 fail:
6421 {
6422 if (temp2)
6423 delete arg2;
6424 }
6425 return NULL;
6426 }
6427
6428
6429 static PyObject *_wrap_ListBox_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6430 PyObject *resultobj;
6431 wxListBox *arg1 = (wxListBox *) 0 ;
6432 int arg2 ;
6433 PyObject * obj0 = 0 ;
6434 PyObject * obj1 = 0 ;
6435 char *kwnames[] = {
6436 (char *) "self",(char *) "n", NULL
6437 };
6438
6439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6442 arg2 = (int)SWIG_As_int(obj1);
6443 if (PyErr_Occurred()) SWIG_fail;
6444 {
6445 PyThreadState* __tstate = wxPyBeginAllowThreads();
6446 (arg1)->EnsureVisible(arg2);
6447
6448 wxPyEndAllowThreads(__tstate);
6449 if (PyErr_Occurred()) SWIG_fail;
6450 }
6451 Py_INCREF(Py_None); resultobj = Py_None;
6452 return resultobj;
6453 fail:
6454 return NULL;
6455 }
6456
6457
6458 static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
6459 PyObject *resultobj;
6460 wxListBox *arg1 = (wxListBox *) 0 ;
6461 wxString *arg2 = 0 ;
6462 bool temp2 = false ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char *kwnames[] = {
6466 (char *) "self",(char *) "s", NULL
6467 };
6468
6469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail;
6470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6472 {
6473 arg2 = wxString_in_helper(obj1);
6474 if (arg2 == NULL) SWIG_fail;
6475 temp2 = true;
6476 }
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 (arg1)->AppendAndEnsureVisible((wxString const &)*arg2);
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 Py_INCREF(Py_None); resultobj = Py_None;
6485 {
6486 if (temp2)
6487 delete arg2;
6488 }
6489 return resultobj;
6490 fail:
6491 {
6492 if (temp2)
6493 delete arg2;
6494 }
6495 return NULL;
6496 }
6497
6498
6499 static PyObject *_wrap_ListBox_IsSorted(PyObject *, PyObject *args, PyObject *kwargs) {
6500 PyObject *resultobj;
6501 wxListBox *arg1 = (wxListBox *) 0 ;
6502 bool result;
6503 PyObject * obj0 = 0 ;
6504 char *kwnames[] = {
6505 (char *) "self", NULL
6506 };
6507
6508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail;
6509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6511 {
6512 PyThreadState* __tstate = wxPyBeginAllowThreads();
6513 result = (bool)((wxListBox const *)arg1)->IsSorted();
6514
6515 wxPyEndAllowThreads(__tstate);
6516 if (PyErr_Occurred()) SWIG_fail;
6517 }
6518 {
6519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6520 }
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxListBox *arg1 = (wxListBox *) 0 ;
6530 int arg2 ;
6531 wxColour *arg3 = 0 ;
6532 wxColour temp3 ;
6533 PyObject * obj0 = 0 ;
6534 PyObject * obj1 = 0 ;
6535 PyObject * obj2 = 0 ;
6536 char *kwnames[] = {
6537 (char *) "self",(char *) "item",(char *) "c", NULL
6538 };
6539
6540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6543 arg2 = (int)SWIG_As_int(obj1);
6544 if (PyErr_Occurred()) SWIG_fail;
6545 {
6546 arg3 = &temp3;
6547 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6548 }
6549 {
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3);
6552
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 Py_INCREF(Py_None); resultobj = Py_None;
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj;
6565 wxListBox *arg1 = (wxListBox *) 0 ;
6566 int arg2 ;
6567 wxColour *arg3 = 0 ;
6568 wxColour temp3 ;
6569 PyObject * obj0 = 0 ;
6570 PyObject * obj1 = 0 ;
6571 PyObject * obj2 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self",(char *) "item",(char *) "c", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6579 arg2 = (int)SWIG_As_int(obj1);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 {
6582 arg3 = &temp3;
6583 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6584 }
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3);
6588
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 Py_INCREF(Py_None); resultobj = Py_None;
6593 return resultobj;
6594 fail:
6595 return NULL;
6596 }
6597
6598
6599 static PyObject *_wrap_ListBox_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
6600 PyObject *resultobj;
6601 wxListBox *arg1 = (wxListBox *) 0 ;
6602 int arg2 ;
6603 wxFont *arg3 = 0 ;
6604 PyObject * obj0 = 0 ;
6605 PyObject * obj1 = 0 ;
6606 PyObject * obj2 = 0 ;
6607 char *kwnames[] = {
6608 (char *) "self",(char *) "item",(char *) "f", NULL
6609 };
6610
6611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
6612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox,
6613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6614 arg2 = (int)SWIG_As_int(obj1);
6615 if (PyErr_Occurred()) SWIG_fail;
6616 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
6617 SWIG_POINTER_EXCEPTION | 0)) == -1)
6618 SWIG_fail;
6619 if (arg3 == NULL) {
6620 PyErr_SetString(PyExc_TypeError,"null reference");
6621 SWIG_fail;
6622 }
6623 {
6624 PyThreadState* __tstate = wxPyBeginAllowThreads();
6625 wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3);
6626
6627 wxPyEndAllowThreads(__tstate);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 Py_INCREF(Py_None); resultobj = Py_None;
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj;
6639 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
6640 wxVisualAttributes result;
6641 PyObject * obj0 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "variant", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
6647 if (obj0) {
6648 arg1 = (int)SWIG_As_int(obj0);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 {
6652 if (!wxPyCheckForApp()) SWIG_fail;
6653 PyThreadState* __tstate = wxPyBeginAllowThreads();
6654 result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
6655
6656 wxPyEndAllowThreads(__tstate);
6657 if (PyErr_Occurred()) SWIG_fail;
6658 }
6659 {
6660 wxVisualAttributes * resultptr;
6661 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
6662 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
6663 }
6664 return resultobj;
6665 fail:
6666 return NULL;
6667 }
6668
6669
6670 static PyObject * ListBox_swigregister(PyObject *, PyObject *args) {
6671 PyObject *obj;
6672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6673 SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj);
6674 Py_INCREF(obj);
6675 return Py_BuildValue((char *)"");
6676 }
6677 static PyObject *_wrap_new_CheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6678 PyObject *resultobj;
6679 wxWindow *arg1 = (wxWindow *) 0 ;
6680 int arg2 = (int) -1 ;
6681 wxPoint const &arg3_defvalue = wxDefaultPosition ;
6682 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
6683 wxSize const &arg4_defvalue = wxDefaultSize ;
6684 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
6685 wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ;
6686 wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ;
6687 long arg6 = (long) 0 ;
6688 wxValidator const &arg7_defvalue = wxDefaultValidator ;
6689 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
6690 wxString const &arg8_defvalue = wxPyListBoxNameStr ;
6691 wxString *arg8 = (wxString *) &arg8_defvalue ;
6692 wxCheckListBox *result;
6693 wxPoint temp3 ;
6694 wxSize temp4 ;
6695 bool temp5 = false ;
6696 bool temp8 = false ;
6697 PyObject * obj0 = 0 ;
6698 PyObject * obj1 = 0 ;
6699 PyObject * obj2 = 0 ;
6700 PyObject * obj3 = 0 ;
6701 PyObject * obj4 = 0 ;
6702 PyObject * obj5 = 0 ;
6703 PyObject * obj6 = 0 ;
6704 PyObject * obj7 = 0 ;
6705 char *kwnames[] = {
6706 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6707 };
6708
6709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
6710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
6711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6712 if (obj1) {
6713 arg2 = (int)SWIG_As_int(obj1);
6714 if (PyErr_Occurred()) SWIG_fail;
6715 }
6716 if (obj2) {
6717 {
6718 arg3 = &temp3;
6719 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
6720 }
6721 }
6722 if (obj3) {
6723 {
6724 arg4 = &temp4;
6725 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
6726 }
6727 }
6728 if (obj4) {
6729 {
6730 if (! PySequence_Check(obj4)) {
6731 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6732 SWIG_fail;
6733 }
6734 arg5 = new wxArrayString;
6735 temp5 = true;
6736 int i, len=PySequence_Length(obj4);
6737 for (i=0; i<len; i++) {
6738 PyObject* item = PySequence_GetItem(obj4, i);
6739 #if wxUSE_UNICODE
6740 PyObject* str = PyObject_Unicode(item);
6741 #else
6742 PyObject* str = PyObject_Str(item);
6743 #endif
6744 if (PyErr_Occurred()) SWIG_fail;
6745 arg5->Add(Py2wxString(str));
6746 Py_DECREF(item);
6747 Py_DECREF(str);
6748 }
6749 }
6750 }
6751 if (obj5) {
6752 arg6 = (long)SWIG_As_long(obj5);
6753 if (PyErr_Occurred()) SWIG_fail;
6754 }
6755 if (obj6) {
6756 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
6757 SWIG_POINTER_EXCEPTION | 0)) == -1)
6758 SWIG_fail;
6759 if (arg7 == NULL) {
6760 PyErr_SetString(PyExc_TypeError,"null reference");
6761 SWIG_fail;
6762 }
6763 }
6764 if (obj7) {
6765 {
6766 arg8 = wxString_in_helper(obj7);
6767 if (arg8 == NULL) SWIG_fail;
6768 temp8 = true;
6769 }
6770 }
6771 {
6772 if (!wxPyCheckForApp()) SWIG_fail;
6773 PyThreadState* __tstate = wxPyBeginAllowThreads();
6774 result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
6775
6776 wxPyEndAllowThreads(__tstate);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6780 {
6781 if (temp5) delete arg5;
6782 }
6783 {
6784 if (temp8)
6785 delete arg8;
6786 }
6787 return resultobj;
6788 fail:
6789 {
6790 if (temp5) delete arg5;
6791 }
6792 {
6793 if (temp8)
6794 delete arg8;
6795 }
6796 return NULL;
6797 }
6798
6799
6800 static PyObject *_wrap_new_PreCheckListBox(PyObject *, PyObject *args, PyObject *kwargs) {
6801 PyObject *resultobj;
6802 wxCheckListBox *result;
6803 char *kwnames[] = {
6804 NULL
6805 };
6806
6807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail;
6808 {
6809 if (!wxPyCheckForApp()) SWIG_fail;
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (wxCheckListBox *)new wxCheckListBox();
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1);
6817 return resultobj;
6818 fail:
6819 return NULL;
6820 }
6821
6822
6823 static PyObject *_wrap_CheckListBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj;
6825 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6826 wxWindow *arg2 = (wxWindow *) 0 ;
6827 int arg3 = (int) -1 ;
6828 wxPoint const &arg4_defvalue = wxDefaultPosition ;
6829 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
6830 wxSize const &arg5_defvalue = wxDefaultSize ;
6831 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
6832 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
6833 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
6834 long arg7 = (long) 0 ;
6835 wxValidator const &arg8_defvalue = wxDefaultValidator ;
6836 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
6837 wxString const &arg9_defvalue = wxPyListBoxNameStr ;
6838 wxString *arg9 = (wxString *) &arg9_defvalue ;
6839 bool result;
6840 wxPoint temp4 ;
6841 wxSize temp5 ;
6842 bool temp6 = false ;
6843 bool temp9 = false ;
6844 PyObject * obj0 = 0 ;
6845 PyObject * obj1 = 0 ;
6846 PyObject * obj2 = 0 ;
6847 PyObject * obj3 = 0 ;
6848 PyObject * obj4 = 0 ;
6849 PyObject * obj5 = 0 ;
6850 PyObject * obj6 = 0 ;
6851 PyObject * obj7 = 0 ;
6852 PyObject * obj8 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6860 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
6861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6862 if (obj2) {
6863 arg3 = (int)SWIG_As_int(obj2);
6864 if (PyErr_Occurred()) SWIG_fail;
6865 }
6866 if (obj3) {
6867 {
6868 arg4 = &temp4;
6869 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
6870 }
6871 }
6872 if (obj4) {
6873 {
6874 arg5 = &temp5;
6875 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
6876 }
6877 }
6878 if (obj5) {
6879 {
6880 if (! PySequence_Check(obj5)) {
6881 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
6882 SWIG_fail;
6883 }
6884 arg6 = new wxArrayString;
6885 temp6 = true;
6886 int i, len=PySequence_Length(obj5);
6887 for (i=0; i<len; i++) {
6888 PyObject* item = PySequence_GetItem(obj5, i);
6889 #if wxUSE_UNICODE
6890 PyObject* str = PyObject_Unicode(item);
6891 #else
6892 PyObject* str = PyObject_Str(item);
6893 #endif
6894 if (PyErr_Occurred()) SWIG_fail;
6895 arg6->Add(Py2wxString(str));
6896 Py_DECREF(item);
6897 Py_DECREF(str);
6898 }
6899 }
6900 }
6901 if (obj6) {
6902 arg7 = (long)SWIG_As_long(obj6);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 if (obj7) {
6906 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
6907 SWIG_POINTER_EXCEPTION | 0)) == -1)
6908 SWIG_fail;
6909 if (arg8 == NULL) {
6910 PyErr_SetString(PyExc_TypeError,"null reference");
6911 SWIG_fail;
6912 }
6913 }
6914 if (obj8) {
6915 {
6916 arg9 = wxString_in_helper(obj8);
6917 if (arg9 == NULL) SWIG_fail;
6918 temp9 = true;
6919 }
6920 }
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
6924
6925 wxPyEndAllowThreads(__tstate);
6926 if (PyErr_Occurred()) SWIG_fail;
6927 }
6928 {
6929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6930 }
6931 {
6932 if (temp6) delete arg6;
6933 }
6934 {
6935 if (temp9)
6936 delete arg9;
6937 }
6938 return resultobj;
6939 fail:
6940 {
6941 if (temp6) delete arg6;
6942 }
6943 {
6944 if (temp9)
6945 delete arg9;
6946 }
6947 return NULL;
6948 }
6949
6950
6951 static PyObject *_wrap_CheckListBox_IsChecked(PyObject *, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6954 int arg2 ;
6955 bool result;
6956 PyObject * obj0 = 0 ;
6957 PyObject * obj1 = 0 ;
6958 char *kwnames[] = {
6959 (char *) "self",(char *) "index", NULL
6960 };
6961
6962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail;
6963 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6965 arg2 = (int)SWIG_As_int(obj1);
6966 if (PyErr_Occurred()) SWIG_fail;
6967 {
6968 PyThreadState* __tstate = wxPyBeginAllowThreads();
6969 result = (bool)(arg1)->IsChecked(arg2);
6970
6971 wxPyEndAllowThreads(__tstate);
6972 if (PyErr_Occurred()) SWIG_fail;
6973 }
6974 {
6975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6976 }
6977 return resultobj;
6978 fail:
6979 return NULL;
6980 }
6981
6982
6983 static PyObject *_wrap_CheckListBox_Check(PyObject *, PyObject *args, PyObject *kwargs) {
6984 PyObject *resultobj;
6985 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
6986 int arg2 ;
6987 int arg3 = (int) true ;
6988 PyObject * obj0 = 0 ;
6989 PyObject * obj1 = 0 ;
6990 PyObject * obj2 = 0 ;
6991 char *kwnames[] = {
6992 (char *) "self",(char *) "index",(char *) "check", NULL
6993 };
6994
6995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail;
6996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
6997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6998 arg2 = (int)SWIG_As_int(obj1);
6999 if (PyErr_Occurred()) SWIG_fail;
7000 if (obj2) {
7001 arg3 = (int)SWIG_As_int(obj2);
7002 if (PyErr_Occurred()) SWIG_fail;
7003 }
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 (arg1)->Check(arg2,arg3);
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 Py_INCREF(Py_None); resultobj = Py_None;
7012 return resultobj;
7013 fail:
7014 return NULL;
7015 }
7016
7017
7018 static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *, PyObject *args, PyObject *kwargs) {
7019 PyObject *resultobj;
7020 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7021 int result;
7022 PyObject * obj0 = 0 ;
7023 char *kwnames[] = {
7024 (char *) "self", NULL
7025 };
7026
7027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail;
7028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7030 {
7031 PyThreadState* __tstate = wxPyBeginAllowThreads();
7032 result = (int)(arg1)->GetItemHeight();
7033
7034 wxPyEndAllowThreads(__tstate);
7035 if (PyErr_Occurred()) SWIG_fail;
7036 }
7037 resultobj = SWIG_From_int((int)result);
7038 return resultobj;
7039 fail:
7040 return NULL;
7041 }
7042
7043
7044 static PyObject *_wrap_CheckListBox_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
7045 PyObject *resultobj;
7046 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7047 wxPoint *arg2 = 0 ;
7048 int result;
7049 wxPoint temp2 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self",(char *) "pt", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 arg2 = &temp2;
7061 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
7062 }
7063 {
7064 PyThreadState* __tstate = wxPyBeginAllowThreads();
7065 result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2);
7066
7067 wxPyEndAllowThreads(__tstate);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 resultobj = SWIG_From_int((int)result);
7071 return resultobj;
7072 fail:
7073 return NULL;
7074 }
7075
7076
7077 static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *, PyObject *args, PyObject *kwargs) {
7078 PyObject *resultobj;
7079 wxCheckListBox *arg1 = (wxCheckListBox *) 0 ;
7080 int arg2 ;
7081 int arg3 ;
7082 int result;
7083 PyObject * obj0 = 0 ;
7084 PyObject * obj1 = 0 ;
7085 PyObject * obj2 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "self",(char *) "x",(char *) "y", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
7091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox,
7092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7093 arg2 = (int)SWIG_As_int(obj1);
7094 if (PyErr_Occurred()) SWIG_fail;
7095 arg3 = (int)SWIG_As_int(obj2);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 {
7098 PyThreadState* __tstate = wxPyBeginAllowThreads();
7099 result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3);
7100
7101 wxPyEndAllowThreads(__tstate);
7102 if (PyErr_Occurred()) SWIG_fail;
7103 }
7104 resultobj = SWIG_From_int((int)result);
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 static PyObject * CheckListBox_swigregister(PyObject *, PyObject *args) {
7112 PyObject *obj;
7113 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7114 SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj);
7115 Py_INCREF(obj);
7116 return Py_BuildValue((char *)"");
7117 }
7118 static int _wrap_TextCtrlNameStr_set(PyObject *) {
7119 PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only.");
7120 return 1;
7121 }
7122
7123
7124 static PyObject *_wrap_TextCtrlNameStr_get() {
7125 PyObject *pyobj;
7126
7127 {
7128 #if wxUSE_UNICODE
7129 pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7130 #else
7131 pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len());
7132 #endif
7133 }
7134 return pyobj;
7135 }
7136
7137
7138 static PyObject *_wrap_new_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxColour const &arg1_defvalue = wxNullColour ;
7141 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
7142 wxColour const &arg2_defvalue = wxNullColour ;
7143 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
7144 wxFont const &arg3_defvalue = wxNullFont ;
7145 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
7146 int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ;
7147 wxTextAttr *result;
7148 wxColour temp1 ;
7149 wxColour temp2 ;
7150 PyObject * obj0 = 0 ;
7151 PyObject * obj1 = 0 ;
7152 PyObject * obj2 = 0 ;
7153 PyObject * obj3 = 0 ;
7154 char *kwnames[] = {
7155 (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL
7156 };
7157
7158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7159 if (obj0) {
7160 {
7161 arg1 = &temp1;
7162 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
7163 }
7164 }
7165 if (obj1) {
7166 {
7167 arg2 = &temp2;
7168 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7169 }
7170 }
7171 if (obj2) {
7172 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
7173 SWIG_POINTER_EXCEPTION | 0)) == -1)
7174 SWIG_fail;
7175 if (arg3 == NULL) {
7176 PyErr_SetString(PyExc_TypeError,"null reference");
7177 SWIG_fail;
7178 }
7179 }
7180 if (obj3) {
7181 arg4 = (int)SWIG_As_int(obj3);
7182 if (PyErr_Occurred()) SWIG_fail;
7183 }
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4);
7187
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1);
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 static PyObject *_wrap_delete_TextAttr(PyObject *, PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj;
7200 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7201 PyObject * obj0 = 0 ;
7202 char *kwnames[] = {
7203 (char *) "self", NULL
7204 };
7205
7206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail;
7207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 delete arg1;
7212
7213 wxPyEndAllowThreads(__tstate);
7214 if (PyErr_Occurred()) SWIG_fail;
7215 }
7216 Py_INCREF(Py_None); resultobj = Py_None;
7217 return resultobj;
7218 fail:
7219 return NULL;
7220 }
7221
7222
7223 static PyObject *_wrap_TextAttr_Init(PyObject *, PyObject *args, PyObject *kwargs) {
7224 PyObject *resultobj;
7225 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7226 PyObject * obj0 = 0 ;
7227 char *kwnames[] = {
7228 (char *) "self", NULL
7229 };
7230
7231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail;
7232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->Init();
7237
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 Py_INCREF(Py_None); resultobj = Py_None;
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 static PyObject *_wrap_TextAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7249 PyObject *resultobj;
7250 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7251 wxColour *arg2 = 0 ;
7252 wxColour temp2 ;
7253 PyObject * obj0 = 0 ;
7254 PyObject * obj1 = 0 ;
7255 char *kwnames[] = {
7256 (char *) "self",(char *) "colText", NULL
7257 };
7258
7259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
7260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7262 {
7263 arg2 = &temp2;
7264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7265 }
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 (arg1)->SetTextColour((wxColour const &)*arg2);
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 Py_INCREF(Py_None); resultobj = Py_None;
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7281 PyObject *resultobj;
7282 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7283 wxColour *arg2 = 0 ;
7284 wxColour temp2 ;
7285 PyObject * obj0 = 0 ;
7286 PyObject * obj1 = 0 ;
7287 char *kwnames[] = {
7288 (char *) "self",(char *) "colBack", NULL
7289 };
7290
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
7292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7294 {
7295 arg2 = &temp2;
7296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7297 }
7298 {
7299 PyThreadState* __tstate = wxPyBeginAllowThreads();
7300 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
7301
7302 wxPyEndAllowThreads(__tstate);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 Py_INCREF(Py_None); resultobj = Py_None;
7306 return resultobj;
7307 fail:
7308 return NULL;
7309 }
7310
7311
7312 static PyObject *_wrap_TextAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7313 PyObject *resultobj;
7314 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7315 wxFont *arg2 = 0 ;
7316 long arg3 = (long) wxTEXT_ATTR_FONT ;
7317 PyObject * obj0 = 0 ;
7318 PyObject * obj1 = 0 ;
7319 PyObject * obj2 = 0 ;
7320 char *kwnames[] = {
7321 (char *) "self",(char *) "font",(char *) "flags", NULL
7322 };
7323
7324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
7325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7327 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7328 SWIG_POINTER_EXCEPTION | 0)) == -1)
7329 SWIG_fail;
7330 if (arg2 == NULL) {
7331 PyErr_SetString(PyExc_TypeError,"null reference");
7332 SWIG_fail;
7333 }
7334 if (obj2) {
7335 arg3 = (long)SWIG_As_long(obj2);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 PyThreadState* __tstate = wxPyBeginAllowThreads();
7340 (arg1)->SetFont((wxFont const &)*arg2,arg3);
7341
7342 wxPyEndAllowThreads(__tstate);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 }
7345 Py_INCREF(Py_None); resultobj = Py_None;
7346 return resultobj;
7347 fail:
7348 return NULL;
7349 }
7350
7351
7352 static PyObject *_wrap_TextAttr_SetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7353 PyObject *resultobj;
7354 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7355 int arg2 ;
7356 PyObject * obj0 = 0 ;
7357 PyObject * obj1 = 0 ;
7358 char *kwnames[] = {
7359 (char *) "self",(char *) "alignment", NULL
7360 };
7361
7362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail;
7363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7365 arg2 = (int)SWIG_As_int(obj1);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 {
7368 PyThreadState* __tstate = wxPyBeginAllowThreads();
7369 (arg1)->SetAlignment((wxTextAttrAlignment )arg2);
7370
7371 wxPyEndAllowThreads(__tstate);
7372 if (PyErr_Occurred()) SWIG_fail;
7373 }
7374 Py_INCREF(Py_None); resultobj = Py_None;
7375 return resultobj;
7376 fail:
7377 return NULL;
7378 }
7379
7380
7381 static PyObject *_wrap_TextAttr_SetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7382 PyObject *resultobj;
7383 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7384 wxArrayInt *arg2 = 0 ;
7385 bool temp2 = false ;
7386 PyObject * obj0 = 0 ;
7387 PyObject * obj1 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self",(char *) "tabs", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7395 {
7396 if (! PySequence_Check(obj1)) {
7397 PyErr_SetString(PyExc_TypeError, "Sequence of integers expected.");
7398 SWIG_fail;
7399 }
7400 arg2 = new wxArrayInt;
7401 temp2 = true;
7402 int i, len=PySequence_Length(obj1);
7403 for (i=0; i<len; i++) {
7404 PyObject* item = PySequence_GetItem(obj1, i);
7405 PyObject* number = PyNumber_Int(item);
7406 arg2->Add(PyInt_AS_LONG(number));
7407 Py_DECREF(item);
7408 Py_DECREF(number);
7409 }
7410 }
7411 {
7412 PyThreadState* __tstate = wxPyBeginAllowThreads();
7413 (arg1)->SetTabs((wxArrayInt const &)*arg2);
7414
7415 wxPyEndAllowThreads(__tstate);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 Py_INCREF(Py_None); resultobj = Py_None;
7419 {
7420 if (temp2) delete arg2;
7421 }
7422 return resultobj;
7423 fail:
7424 {
7425 if (temp2) delete arg2;
7426 }
7427 return NULL;
7428 }
7429
7430
7431 static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7432 PyObject *resultobj;
7433 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7434 int arg2 ;
7435 int arg3 = (int) 0 ;
7436 PyObject * obj0 = 0 ;
7437 PyObject * obj1 = 0 ;
7438 PyObject * obj2 = 0 ;
7439 char *kwnames[] = {
7440 (char *) "self",(char *) "indent",(char *) "subIndent", NULL
7441 };
7442
7443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail;
7444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7446 arg2 = (int)SWIG_As_int(obj1);
7447 if (PyErr_Occurred()) SWIG_fail;
7448 if (obj2) {
7449 arg3 = (int)SWIG_As_int(obj2);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 }
7452 {
7453 PyThreadState* __tstate = wxPyBeginAllowThreads();
7454 (arg1)->SetLeftIndent(arg2,arg3);
7455
7456 wxPyEndAllowThreads(__tstate);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 Py_INCREF(Py_None); resultobj = Py_None;
7460 return resultobj;
7461 fail:
7462 return NULL;
7463 }
7464
7465
7466 static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7467 PyObject *resultobj;
7468 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7469 int arg2 ;
7470 PyObject * obj0 = 0 ;
7471 PyObject * obj1 = 0 ;
7472 char *kwnames[] = {
7473 (char *) "self",(char *) "indent", NULL
7474 };
7475
7476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail;
7477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7479 arg2 = (int)SWIG_As_int(obj1);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 {
7482 PyThreadState* __tstate = wxPyBeginAllowThreads();
7483 (arg1)->SetRightIndent(arg2);
7484
7485 wxPyEndAllowThreads(__tstate);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 }
7488 Py_INCREF(Py_None); resultobj = Py_None;
7489 return resultobj;
7490 fail:
7491 return NULL;
7492 }
7493
7494
7495 static PyObject *_wrap_TextAttr_SetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7496 PyObject *resultobj;
7497 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7498 long arg2 ;
7499 PyObject * obj0 = 0 ;
7500 PyObject * obj1 = 0 ;
7501 char *kwnames[] = {
7502 (char *) "self",(char *) "flags", NULL
7503 };
7504
7505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail;
7506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7508 arg2 = (long)SWIG_As_long(obj1);
7509 if (PyErr_Occurred()) SWIG_fail;
7510 {
7511 PyThreadState* __tstate = wxPyBeginAllowThreads();
7512 (arg1)->SetFlags(arg2);
7513
7514 wxPyEndAllowThreads(__tstate);
7515 if (PyErr_Occurred()) SWIG_fail;
7516 }
7517 Py_INCREF(Py_None); resultobj = Py_None;
7518 return resultobj;
7519 fail:
7520 return NULL;
7521 }
7522
7523
7524 static PyObject *_wrap_TextAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7525 PyObject *resultobj;
7526 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7527 bool result;
7528 PyObject * obj0 = 0 ;
7529 char *kwnames[] = {
7530 (char *) "self", NULL
7531 };
7532
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail;
7534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 result = (bool)((wxTextAttr const *)arg1)->HasTextColour();
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 {
7544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7545 }
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7553 PyObject *resultobj;
7554 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7555 bool result;
7556 PyObject * obj0 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "self", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
7562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour();
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 {
7572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7573 }
7574 return resultobj;
7575 fail:
7576 return NULL;
7577 }
7578
7579
7580 static PyObject *_wrap_TextAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
7581 PyObject *resultobj;
7582 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7583 bool result;
7584 PyObject * obj0 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "self", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail;
7590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7592 {
7593 PyThreadState* __tstate = wxPyBeginAllowThreads();
7594 result = (bool)((wxTextAttr const *)arg1)->HasFont();
7595
7596 wxPyEndAllowThreads(__tstate);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 {
7600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7601 }
7602 return resultobj;
7603 fail:
7604 return NULL;
7605 }
7606
7607
7608 static PyObject *_wrap_TextAttr_HasAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7609 PyObject *resultobj;
7610 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7611 bool result;
7612 PyObject * obj0 = 0 ;
7613 char *kwnames[] = {
7614 (char *) "self", NULL
7615 };
7616
7617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail;
7618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7620 {
7621 PyThreadState* __tstate = wxPyBeginAllowThreads();
7622 result = (bool)((wxTextAttr const *)arg1)->HasAlignment();
7623
7624 wxPyEndAllowThreads(__tstate);
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 {
7628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7629 }
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 static PyObject *_wrap_TextAttr_HasTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj;
7638 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7639 bool result;
7640 PyObject * obj0 = 0 ;
7641 char *kwnames[] = {
7642 (char *) "self", NULL
7643 };
7644
7645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail;
7646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7648 {
7649 PyThreadState* __tstate = wxPyBeginAllowThreads();
7650 result = (bool)((wxTextAttr const *)arg1)->HasTabs();
7651
7652 wxPyEndAllowThreads(__tstate);
7653 if (PyErr_Occurred()) SWIG_fail;
7654 }
7655 {
7656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7657 }
7658 return resultobj;
7659 fail:
7660 return NULL;
7661 }
7662
7663
7664 static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7665 PyObject *resultobj;
7666 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7667 bool result;
7668 PyObject * obj0 = 0 ;
7669 char *kwnames[] = {
7670 (char *) "self", NULL
7671 };
7672
7673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail;
7674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent();
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 {
7684 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7685 }
7686 return resultobj;
7687 fail:
7688 return NULL;
7689 }
7690
7691
7692 static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7693 PyObject *resultobj;
7694 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7695 bool result;
7696 PyObject * obj0 = 0 ;
7697 char *kwnames[] = {
7698 (char *) "self", NULL
7699 };
7700
7701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail;
7702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7704 {
7705 PyThreadState* __tstate = wxPyBeginAllowThreads();
7706 result = (bool)((wxTextAttr const *)arg1)->HasRightIndent();
7707
7708 wxPyEndAllowThreads(__tstate);
7709 if (PyErr_Occurred()) SWIG_fail;
7710 }
7711 {
7712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7713 }
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_TextAttr_HasFlag(PyObject *, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7723 long arg2 ;
7724 bool result;
7725 PyObject * obj0 = 0 ;
7726 PyObject * obj1 = 0 ;
7727 char *kwnames[] = {
7728 (char *) "self",(char *) "flag", NULL
7729 };
7730
7731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail;
7732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7734 arg2 = (long)SWIG_As_long(obj1);
7735 if (PyErr_Occurred()) SWIG_fail;
7736 {
7737 PyThreadState* __tstate = wxPyBeginAllowThreads();
7738 result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2);
7739
7740 wxPyEndAllowThreads(__tstate);
7741 if (PyErr_Occurred()) SWIG_fail;
7742 }
7743 {
7744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7745 }
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_TextAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7755 wxColour *result;
7756 PyObject * obj0 = 0 ;
7757 char *kwnames[] = {
7758 (char *) "self", NULL
7759 };
7760
7761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail;
7762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7764 {
7765 PyThreadState* __tstate = wxPyBeginAllowThreads();
7766 {
7767 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour();
7768 result = (wxColour *) &_result_ref;
7769 }
7770
7771 wxPyEndAllowThreads(__tstate);
7772 if (PyErr_Occurred()) SWIG_fail;
7773 }
7774 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7775 return resultobj;
7776 fail:
7777 return NULL;
7778 }
7779
7780
7781 static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7784 wxColour *result;
7785 PyObject * obj0 = 0 ;
7786 char *kwnames[] = {
7787 (char *) "self", NULL
7788 };
7789
7790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
7791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7793 {
7794 PyThreadState* __tstate = wxPyBeginAllowThreads();
7795 {
7796 wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour();
7797 result = (wxColour *) &_result_ref;
7798 }
7799
7800 wxPyEndAllowThreads(__tstate);
7801 if (PyErr_Occurred()) SWIG_fail;
7802 }
7803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
7804 return resultobj;
7805 fail:
7806 return NULL;
7807 }
7808
7809
7810 static PyObject *_wrap_TextAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
7811 PyObject *resultobj;
7812 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7813 wxFont *result;
7814 PyObject * obj0 = 0 ;
7815 char *kwnames[] = {
7816 (char *) "self", NULL
7817 };
7818
7819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail;
7820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 {
7825 wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont();
7826 result = (wxFont *) &_result_ref;
7827 }
7828
7829 wxPyEndAllowThreads(__tstate);
7830 if (PyErr_Occurred()) SWIG_fail;
7831 }
7832 {
7833 wxFont* resultptr = new wxFont(*result);
7834 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
7835 }
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 static PyObject *_wrap_TextAttr_GetAlignment(PyObject *, PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj;
7844 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7845 int result;
7846 PyObject * obj0 = 0 ;
7847 char *kwnames[] = {
7848 (char *) "self", NULL
7849 };
7850
7851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail;
7852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7854 {
7855 PyThreadState* __tstate = wxPyBeginAllowThreads();
7856 result = (int)((wxTextAttr const *)arg1)->GetAlignment();
7857
7858 wxPyEndAllowThreads(__tstate);
7859 if (PyErr_Occurred()) SWIG_fail;
7860 }
7861 resultobj = SWIG_From_int((int)result);
7862 return resultobj;
7863 fail:
7864 return NULL;
7865 }
7866
7867
7868 static PyObject *_wrap_TextAttr_GetTabs(PyObject *, PyObject *args, PyObject *kwargs) {
7869 PyObject *resultobj;
7870 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7871 wxArrayInt *result;
7872 PyObject * obj0 = 0 ;
7873 char *kwnames[] = {
7874 (char *) "self", NULL
7875 };
7876
7877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail;
7878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7880 {
7881 PyThreadState* __tstate = wxPyBeginAllowThreads();
7882 {
7883 wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs();
7884 result = (wxArrayInt *) &_result_ref;
7885 }
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 {
7891 resultobj = PyList_New(0);
7892 size_t idx;
7893 for (idx = 0; idx < result->GetCount(); idx += 1) {
7894 PyObject* val = PyInt_FromLong( result->Item(idx) );
7895 PyList_Append(resultobj, val);
7896 Py_DECREF(val);
7897 }
7898 }
7899 return resultobj;
7900 fail:
7901 return NULL;
7902 }
7903
7904
7905 static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7906 PyObject *resultobj;
7907 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7908 long result;
7909 PyObject * obj0 = 0 ;
7910 char *kwnames[] = {
7911 (char *) "self", NULL
7912 };
7913
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail;
7915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7917 {
7918 PyThreadState* __tstate = wxPyBeginAllowThreads();
7919 result = (long)((wxTextAttr const *)arg1)->GetLeftIndent();
7920
7921 wxPyEndAllowThreads(__tstate);
7922 if (PyErr_Occurred()) SWIG_fail;
7923 }
7924 resultobj = SWIG_From_long((long)result);
7925 return resultobj;
7926 fail:
7927 return NULL;
7928 }
7929
7930
7931 static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7932 PyObject *resultobj;
7933 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7934 long result;
7935 PyObject * obj0 = 0 ;
7936 char *kwnames[] = {
7937 (char *) "self", NULL
7938 };
7939
7940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail;
7941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7943 {
7944 PyThreadState* __tstate = wxPyBeginAllowThreads();
7945 result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent();
7946
7947 wxPyEndAllowThreads(__tstate);
7948 if (PyErr_Occurred()) SWIG_fail;
7949 }
7950 resultobj = SWIG_From_long((long)result);
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7960 long result;
7961 PyObject * obj0 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = (long)((wxTextAttr const *)arg1)->GetRightIndent();
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 resultobj = SWIG_From_long((long)result);
7977 return resultobj;
7978 fail:
7979 return NULL;
7980 }
7981
7982
7983 static PyObject *_wrap_TextAttr_GetFlags(PyObject *, PyObject *args, PyObject *kwargs) {
7984 PyObject *resultobj;
7985 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
7986 long result;
7987 PyObject * obj0 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "self", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail;
7993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
7994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = (long)((wxTextAttr const *)arg1)->GetFlags();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 resultobj = SWIG_From_long((long)result);
8003 return resultobj;
8004 fail:
8005 return NULL;
8006 }
8007
8008
8009 static PyObject *_wrap_TextAttr_IsDefault(PyObject *, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxTextAttr *arg1 = (wxTextAttr *) 0 ;
8012 bool result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "self", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (bool)((wxTextAttr const *)arg1)->IsDefault();
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 {
8029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8030 }
8031 return resultobj;
8032 fail:
8033 return NULL;
8034 }
8035
8036
8037 static PyObject *_wrap_TextAttr_Combine(PyObject *, PyObject *args, PyObject *kwargs) {
8038 PyObject *resultobj;
8039 wxTextAttr *arg1 = 0 ;
8040 wxTextAttr *arg2 = 0 ;
8041 wxTextCtrl *arg3 = (wxTextCtrl *) 0 ;
8042 wxTextAttr result;
8043 PyObject * obj0 = 0 ;
8044 PyObject * obj1 = 0 ;
8045 PyObject * obj2 = 0 ;
8046 char *kwnames[] = {
8047 (char *) "attr",(char *) "attrDef",(char *) "text", NULL
8048 };
8049
8050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail;
8051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr,
8052 SWIG_POINTER_EXCEPTION | 0)) == -1)
8053 SWIG_fail;
8054 if (arg1 == NULL) {
8055 PyErr_SetString(PyExc_TypeError,"null reference");
8056 SWIG_fail;
8057 }
8058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
8059 SWIG_POINTER_EXCEPTION | 0)) == -1)
8060 SWIG_fail;
8061 if (arg2 == NULL) {
8062 PyErr_SetString(PyExc_TypeError,"null reference");
8063 SWIG_fail;
8064 }
8065 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 {
8075 wxTextAttr * resultptr;
8076 resultptr = new wxTextAttr((wxTextAttr &) result);
8077 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1);
8078 }
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject * TextAttr_swigregister(PyObject *, PyObject *args) {
8086 PyObject *obj;
8087 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8088 SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj);
8089 Py_INCREF(obj);
8090 return Py_BuildValue((char *)"");
8091 }
8092 static PyObject *_wrap_new_TextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8093 PyObject *resultobj;
8094 wxWindow *arg1 = (wxWindow *) 0 ;
8095 int arg2 = (int) -1 ;
8096 wxString const &arg3_defvalue = wxPyEmptyString ;
8097 wxString *arg3 = (wxString *) &arg3_defvalue ;
8098 wxPoint const &arg4_defvalue = wxDefaultPosition ;
8099 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
8100 wxSize const &arg5_defvalue = wxDefaultSize ;
8101 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
8102 long arg6 = (long) 0 ;
8103 wxValidator const &arg7_defvalue = wxDefaultValidator ;
8104 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
8105 wxString const &arg8_defvalue = wxPyTextCtrlNameStr ;
8106 wxString *arg8 = (wxString *) &arg8_defvalue ;
8107 wxTextCtrl *result;
8108 bool temp3 = false ;
8109 wxPoint temp4 ;
8110 wxSize temp5 ;
8111 bool temp8 = false ;
8112 PyObject * obj0 = 0 ;
8113 PyObject * obj1 = 0 ;
8114 PyObject * obj2 = 0 ;
8115 PyObject * obj3 = 0 ;
8116 PyObject * obj4 = 0 ;
8117 PyObject * obj5 = 0 ;
8118 PyObject * obj6 = 0 ;
8119 PyObject * obj7 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8127 if (obj1) {
8128 arg2 = (int)SWIG_As_int(obj1);
8129 if (PyErr_Occurred()) SWIG_fail;
8130 }
8131 if (obj2) {
8132 {
8133 arg3 = wxString_in_helper(obj2);
8134 if (arg3 == NULL) SWIG_fail;
8135 temp3 = true;
8136 }
8137 }
8138 if (obj3) {
8139 {
8140 arg4 = &temp4;
8141 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
8142 }
8143 }
8144 if (obj4) {
8145 {
8146 arg5 = &temp5;
8147 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
8148 }
8149 }
8150 if (obj5) {
8151 arg6 = (long)SWIG_As_long(obj5);
8152 if (PyErr_Occurred()) SWIG_fail;
8153 }
8154 if (obj6) {
8155 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
8156 SWIG_POINTER_EXCEPTION | 0)) == -1)
8157 SWIG_fail;
8158 if (arg7 == NULL) {
8159 PyErr_SetString(PyExc_TypeError,"null reference");
8160 SWIG_fail;
8161 }
8162 }
8163 if (obj7) {
8164 {
8165 arg8 = wxString_in_helper(obj7);
8166 if (arg8 == NULL) SWIG_fail;
8167 temp8 = true;
8168 }
8169 }
8170 {
8171 if (!wxPyCheckForApp()) SWIG_fail;
8172 PyThreadState* __tstate = wxPyBeginAllowThreads();
8173 result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
8174
8175 wxPyEndAllowThreads(__tstate);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 }
8178 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8179 {
8180 if (temp3)
8181 delete arg3;
8182 }
8183 {
8184 if (temp8)
8185 delete arg8;
8186 }
8187 return resultobj;
8188 fail:
8189 {
8190 if (temp3)
8191 delete arg3;
8192 }
8193 {
8194 if (temp8)
8195 delete arg8;
8196 }
8197 return NULL;
8198 }
8199
8200
8201 static PyObject *_wrap_new_PreTextCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
8202 PyObject *resultobj;
8203 wxTextCtrl *result;
8204 char *kwnames[] = {
8205 NULL
8206 };
8207
8208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail;
8209 {
8210 if (!wxPyCheckForApp()) SWIG_fail;
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 result = (wxTextCtrl *)new wxTextCtrl();
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1);
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_TextCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8227 wxWindow *arg2 = (wxWindow *) 0 ;
8228 int arg3 = (int) -1 ;
8229 wxString const &arg4_defvalue = wxPyEmptyString ;
8230 wxString *arg4 = (wxString *) &arg4_defvalue ;
8231 wxPoint const &arg5_defvalue = wxDefaultPosition ;
8232 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
8233 wxSize const &arg6_defvalue = wxDefaultSize ;
8234 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
8235 long arg7 = (long) 0 ;
8236 wxValidator const &arg8_defvalue = wxDefaultValidator ;
8237 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
8238 wxString const &arg9_defvalue = wxPyTextCtrlNameStr ;
8239 wxString *arg9 = (wxString *) &arg9_defvalue ;
8240 bool result;
8241 bool temp4 = false ;
8242 wxPoint temp5 ;
8243 wxSize temp6 ;
8244 bool temp9 = false ;
8245 PyObject * obj0 = 0 ;
8246 PyObject * obj1 = 0 ;
8247 PyObject * obj2 = 0 ;
8248 PyObject * obj3 = 0 ;
8249 PyObject * obj4 = 0 ;
8250 PyObject * obj5 = 0 ;
8251 PyObject * obj6 = 0 ;
8252 PyObject * obj7 = 0 ;
8253 PyObject * obj8 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8261 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 if (obj2) {
8264 arg3 = (int)SWIG_As_int(obj2);
8265 if (PyErr_Occurred()) SWIG_fail;
8266 }
8267 if (obj3) {
8268 {
8269 arg4 = wxString_in_helper(obj3);
8270 if (arg4 == NULL) SWIG_fail;
8271 temp4 = true;
8272 }
8273 }
8274 if (obj4) {
8275 {
8276 arg5 = &temp5;
8277 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
8278 }
8279 }
8280 if (obj5) {
8281 {
8282 arg6 = &temp6;
8283 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
8284 }
8285 }
8286 if (obj6) {
8287 arg7 = (long)SWIG_As_long(obj6);
8288 if (PyErr_Occurred()) SWIG_fail;
8289 }
8290 if (obj7) {
8291 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
8292 SWIG_POINTER_EXCEPTION | 0)) == -1)
8293 SWIG_fail;
8294 if (arg8 == NULL) {
8295 PyErr_SetString(PyExc_TypeError,"null reference");
8296 SWIG_fail;
8297 }
8298 }
8299 if (obj8) {
8300 {
8301 arg9 = wxString_in_helper(obj8);
8302 if (arg9 == NULL) SWIG_fail;
8303 temp9 = true;
8304 }
8305 }
8306 {
8307 PyThreadState* __tstate = wxPyBeginAllowThreads();
8308 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
8309
8310 wxPyEndAllowThreads(__tstate);
8311 if (PyErr_Occurred()) SWIG_fail;
8312 }
8313 {
8314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8315 }
8316 {
8317 if (temp4)
8318 delete arg4;
8319 }
8320 {
8321 if (temp9)
8322 delete arg9;
8323 }
8324 return resultobj;
8325 fail:
8326 {
8327 if (temp4)
8328 delete arg4;
8329 }
8330 {
8331 if (temp9)
8332 delete arg9;
8333 }
8334 return NULL;
8335 }
8336
8337
8338 static PyObject *_wrap_TextCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8339 PyObject *resultobj;
8340 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8341 wxString result;
8342 PyObject * obj0 = 0 ;
8343 char *kwnames[] = {
8344 (char *) "self", NULL
8345 };
8346
8347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail;
8348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8350 {
8351 PyThreadState* __tstate = wxPyBeginAllowThreads();
8352 result = ((wxTextCtrl const *)arg1)->GetValue();
8353
8354 wxPyEndAllowThreads(__tstate);
8355 if (PyErr_Occurred()) SWIG_fail;
8356 }
8357 {
8358 #if wxUSE_UNICODE
8359 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8360 #else
8361 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8362 #endif
8363 }
8364 return resultobj;
8365 fail:
8366 return NULL;
8367 }
8368
8369
8370 static PyObject *_wrap_TextCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
8371 PyObject *resultobj;
8372 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8373 wxString *arg2 = 0 ;
8374 bool temp2 = false ;
8375 PyObject * obj0 = 0 ;
8376 PyObject * obj1 = 0 ;
8377 char *kwnames[] = {
8378 (char *) "self",(char *) "value", NULL
8379 };
8380
8381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
8382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8384 {
8385 arg2 = wxString_in_helper(obj1);
8386 if (arg2 == NULL) SWIG_fail;
8387 temp2 = true;
8388 }
8389 {
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 (arg1)->SetValue((wxString const &)*arg2);
8392
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 Py_INCREF(Py_None); resultobj = Py_None;
8397 {
8398 if (temp2)
8399 delete arg2;
8400 }
8401 return resultobj;
8402 fail:
8403 {
8404 if (temp2)
8405 delete arg2;
8406 }
8407 return NULL;
8408 }
8409
8410
8411 static PyObject *_wrap_TextCtrl_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8414 long arg2 ;
8415 long arg3 ;
8416 wxString result;
8417 PyObject * obj0 = 0 ;
8418 PyObject * obj1 = 0 ;
8419 PyObject * obj2 = 0 ;
8420 char *kwnames[] = {
8421 (char *) "self",(char *) "from",(char *) "to", NULL
8422 };
8423
8424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
8425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8427 arg2 = (long)SWIG_As_long(obj1);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 arg3 = (long)SWIG_As_long(obj2);
8430 if (PyErr_Occurred()) SWIG_fail;
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3);
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 #if wxUSE_UNICODE
8440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8441 #else
8442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8443 #endif
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8454 long arg2 ;
8455 int result;
8456 PyObject * obj0 = 0 ;
8457 PyObject * obj1 = 0 ;
8458 char *kwnames[] = {
8459 (char *) "self",(char *) "lineNo", NULL
8460 };
8461
8462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail;
8463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8465 arg2 = (long)SWIG_As_long(obj1);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 {
8468 PyThreadState* __tstate = wxPyBeginAllowThreads();
8469 result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2);
8470
8471 wxPyEndAllowThreads(__tstate);
8472 if (PyErr_Occurred()) SWIG_fail;
8473 }
8474 resultobj = SWIG_From_int((int)result);
8475 return resultobj;
8476 fail:
8477 return NULL;
8478 }
8479
8480
8481 static PyObject *_wrap_TextCtrl_GetLineText(PyObject *, PyObject *args, PyObject *kwargs) {
8482 PyObject *resultobj;
8483 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8484 long arg2 ;
8485 wxString result;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "self",(char *) "lineNo", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail;
8493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8495 arg2 = (long)SWIG_As_long(obj1);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 {
8498 PyThreadState* __tstate = wxPyBeginAllowThreads();
8499 result = ((wxTextCtrl const *)arg1)->GetLineText(arg2);
8500
8501 wxPyEndAllowThreads(__tstate);
8502 if (PyErr_Occurred()) SWIG_fail;
8503 }
8504 {
8505 #if wxUSE_UNICODE
8506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8507 #else
8508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8509 #endif
8510 }
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8520 int result;
8521 PyObject * obj0 = 0 ;
8522 char *kwnames[] = {
8523 (char *) "self", NULL
8524 };
8525
8526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail;
8527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines();
8532
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 resultobj = SWIG_From_int((int)result);
8537 return resultobj;
8538 fail:
8539 return NULL;
8540 }
8541
8542
8543 static PyObject *_wrap_TextCtrl_IsModified(PyObject *, PyObject *args, PyObject *kwargs) {
8544 PyObject *resultobj;
8545 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8546 bool result;
8547 PyObject * obj0 = 0 ;
8548 char *kwnames[] = {
8549 (char *) "self", NULL
8550 };
8551
8552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail;
8553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8555 {
8556 PyThreadState* __tstate = wxPyBeginAllowThreads();
8557 result = (bool)((wxTextCtrl const *)arg1)->IsModified();
8558
8559 wxPyEndAllowThreads(__tstate);
8560 if (PyErr_Occurred()) SWIG_fail;
8561 }
8562 {
8563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8564 }
8565 return resultobj;
8566 fail:
8567 return NULL;
8568 }
8569
8570
8571 static PyObject *_wrap_TextCtrl_IsEditable(PyObject *, PyObject *args, PyObject *kwargs) {
8572 PyObject *resultobj;
8573 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8574 bool result;
8575 PyObject * obj0 = 0 ;
8576 char *kwnames[] = {
8577 (char *) "self", NULL
8578 };
8579
8580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail;
8581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8583 {
8584 PyThreadState* __tstate = wxPyBeginAllowThreads();
8585 result = (bool)((wxTextCtrl const *)arg1)->IsEditable();
8586
8587 wxPyEndAllowThreads(__tstate);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8592 }
8593 return resultobj;
8594 fail:
8595 return NULL;
8596 }
8597
8598
8599 static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *, PyObject *args, PyObject *kwargs) {
8600 PyObject *resultobj;
8601 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8602 bool result;
8603 PyObject * obj0 = 0 ;
8604 char *kwnames[] = {
8605 (char *) "self", NULL
8606 };
8607
8608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail;
8609 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8610 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine();
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 {
8619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8620 }
8621 return resultobj;
8622 fail:
8623 return NULL;
8624 }
8625
8626
8627 static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *, PyObject *args, PyObject *kwargs) {
8628 PyObject *resultobj;
8629 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8630 bool result;
8631 PyObject * obj0 = 0 ;
8632 char *kwnames[] = {
8633 (char *) "self", NULL
8634 };
8635
8636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail;
8637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8638 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8639 {
8640 PyThreadState* __tstate = wxPyBeginAllowThreads();
8641 result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine();
8642
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 {
8647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8648 }
8649 return resultobj;
8650 fail:
8651 return NULL;
8652 }
8653
8654
8655 static PyObject *_wrap_TextCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8658 long *arg2 = (long *) 0 ;
8659 long *arg3 = (long *) 0 ;
8660 long temp2 ;
8661 int res2 = 0 ;
8662 long temp3 ;
8663 int res3 = 0 ;
8664 PyObject * obj0 = 0 ;
8665 char *kwnames[] = {
8666 (char *) "self", NULL
8667 };
8668
8669 arg2 = &temp2; res2 = SWIG_NEWOBJ;
8670 arg3 = &temp3; res3 = SWIG_NEWOBJ;
8671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail;
8672 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8673 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8674 {
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3);
8677
8678 wxPyEndAllowThreads(__tstate);
8679 if (PyErr_Occurred()) SWIG_fail;
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
8683 SWIG_From_long((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_long, 0)));
8684 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
8685 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj;
8694 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8695 wxString result;
8696 PyObject * obj0 = 0 ;
8697 char *kwnames[] = {
8698 (char *) "self", NULL
8699 };
8700
8701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail;
8702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = ((wxTextCtrl const *)arg1)->GetStringSelection();
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 {
8712 #if wxUSE_UNICODE
8713 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8714 #else
8715 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8716 #endif
8717 }
8718 return resultobj;
8719 fail:
8720 return NULL;
8721 }
8722
8723
8724 static PyObject *_wrap_TextCtrl_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
8725 PyObject *resultobj;
8726 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8727 PyObject * obj0 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 {
8736 PyThreadState* __tstate = wxPyBeginAllowThreads();
8737 (arg1)->Clear();
8738
8739 wxPyEndAllowThreads(__tstate);
8740 if (PyErr_Occurred()) SWIG_fail;
8741 }
8742 Py_INCREF(Py_None); resultobj = Py_None;
8743 return resultobj;
8744 fail:
8745 return NULL;
8746 }
8747
8748
8749 static PyObject *_wrap_TextCtrl_Replace(PyObject *, PyObject *args, PyObject *kwargs) {
8750 PyObject *resultobj;
8751 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8752 long arg2 ;
8753 long arg3 ;
8754 wxString *arg4 = 0 ;
8755 bool temp4 = false ;
8756 PyObject * obj0 = 0 ;
8757 PyObject * obj1 = 0 ;
8758 PyObject * obj2 = 0 ;
8759 PyObject * obj3 = 0 ;
8760 char *kwnames[] = {
8761 (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL
8762 };
8763
8764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8767 arg2 = (long)SWIG_As_long(obj1);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 arg3 = (long)SWIG_As_long(obj2);
8770 if (PyErr_Occurred()) SWIG_fail;
8771 {
8772 arg4 = wxString_in_helper(obj3);
8773 if (arg4 == NULL) SWIG_fail;
8774 temp4 = true;
8775 }
8776 {
8777 PyThreadState* __tstate = wxPyBeginAllowThreads();
8778 (arg1)->Replace(arg2,arg3,(wxString const &)*arg4);
8779
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 Py_INCREF(Py_None); resultobj = Py_None;
8784 {
8785 if (temp4)
8786 delete arg4;
8787 }
8788 return resultobj;
8789 fail:
8790 {
8791 if (temp4)
8792 delete arg4;
8793 }
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_TextCtrl_Remove(PyObject *, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8801 long arg2 ;
8802 long arg3 ;
8803 PyObject * obj0 = 0 ;
8804 PyObject * obj1 = 0 ;
8805 PyObject * obj2 = 0 ;
8806 char *kwnames[] = {
8807 (char *) "self",(char *) "from",(char *) "to", NULL
8808 };
8809
8810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail;
8811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8813 arg2 = (long)SWIG_As_long(obj1);
8814 if (PyErr_Occurred()) SWIG_fail;
8815 arg3 = (long)SWIG_As_long(obj2);
8816 if (PyErr_Occurred()) SWIG_fail;
8817 {
8818 PyThreadState* __tstate = wxPyBeginAllowThreads();
8819 (arg1)->Remove(arg2,arg3);
8820
8821 wxPyEndAllowThreads(__tstate);
8822 if (PyErr_Occurred()) SWIG_fail;
8823 }
8824 Py_INCREF(Py_None); resultobj = Py_None;
8825 return resultobj;
8826 fail:
8827 return NULL;
8828 }
8829
8830
8831 static PyObject *_wrap_TextCtrl_LoadFile(PyObject *, PyObject *args, PyObject *kwargs) {
8832 PyObject *resultobj;
8833 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8834 wxString *arg2 = 0 ;
8835 bool result;
8836 bool temp2 = false ;
8837 PyObject * obj0 = 0 ;
8838 PyObject * obj1 = 0 ;
8839 char *kwnames[] = {
8840 (char *) "self",(char *) "file", NULL
8841 };
8842
8843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail;
8844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8846 {
8847 arg2 = wxString_in_helper(obj1);
8848 if (arg2 == NULL) SWIG_fail;
8849 temp2 = true;
8850 }
8851 {
8852 PyThreadState* __tstate = wxPyBeginAllowThreads();
8853 result = (bool)(arg1)->LoadFile((wxString const &)*arg2);
8854
8855 wxPyEndAllowThreads(__tstate);
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 {
8859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8860 }
8861 {
8862 if (temp2)
8863 delete arg2;
8864 }
8865 return resultobj;
8866 fail:
8867 {
8868 if (temp2)
8869 delete arg2;
8870 }
8871 return NULL;
8872 }
8873
8874
8875 static PyObject *_wrap_TextCtrl_SaveFile(PyObject *, PyObject *args, PyObject *kwargs) {
8876 PyObject *resultobj;
8877 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8878 wxString const &arg2_defvalue = wxPyEmptyString ;
8879 wxString *arg2 = (wxString *) &arg2_defvalue ;
8880 bool result;
8881 bool temp2 = false ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 char *kwnames[] = {
8885 (char *) "self",(char *) "file", NULL
8886 };
8887
8888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail;
8889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8891 if (obj1) {
8892 {
8893 arg2 = wxString_in_helper(obj1);
8894 if (arg2 == NULL) SWIG_fail;
8895 temp2 = true;
8896 }
8897 }
8898 {
8899 PyThreadState* __tstate = wxPyBeginAllowThreads();
8900 result = (bool)(arg1)->SaveFile((wxString const &)*arg2);
8901
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 {
8906 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8907 }
8908 {
8909 if (temp2)
8910 delete arg2;
8911 }
8912 return resultobj;
8913 fail:
8914 {
8915 if (temp2)
8916 delete arg2;
8917 }
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8925 PyObject * obj0 = 0 ;
8926 char *kwnames[] = {
8927 (char *) "self", NULL
8928 };
8929
8930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail;
8931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 (arg1)->MarkDirty();
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 Py_INCREF(Py_None); resultobj = Py_None;
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *, PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj;
8949 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8950 PyObject * obj0 = 0 ;
8951 char *kwnames[] = {
8952 (char *) "self", NULL
8953 };
8954
8955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail;
8956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 (arg1)->DiscardEdits();
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj;
8974 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
8975 unsigned long arg2 ;
8976 PyObject * obj0 = 0 ;
8977 PyObject * obj1 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self",(char *) "len", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 arg2 = (unsigned long)SWIG_As_unsigned_SS_long(obj1);
8986 if (PyErr_Occurred()) SWIG_fail;
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 (arg1)->SetMaxLength(arg2);
8990
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 Py_INCREF(Py_None); resultobj = Py_None;
8995 return resultobj;
8996 fail:
8997 return NULL;
8998 }
8999
9000
9001 static PyObject *_wrap_TextCtrl_WriteText(PyObject *, PyObject *args, PyObject *kwargs) {
9002 PyObject *resultobj;
9003 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9004 wxString *arg2 = 0 ;
9005 bool temp2 = false ;
9006 PyObject * obj0 = 0 ;
9007 PyObject * obj1 = 0 ;
9008 char *kwnames[] = {
9009 (char *) "self",(char *) "text", NULL
9010 };
9011
9012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail;
9013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9015 {
9016 arg2 = wxString_in_helper(obj1);
9017 if (arg2 == NULL) SWIG_fail;
9018 temp2 = true;
9019 }
9020 {
9021 PyThreadState* __tstate = wxPyBeginAllowThreads();
9022 (arg1)->WriteText((wxString const &)*arg2);
9023
9024 wxPyEndAllowThreads(__tstate);
9025 if (PyErr_Occurred()) SWIG_fail;
9026 }
9027 Py_INCREF(Py_None); resultobj = Py_None;
9028 {
9029 if (temp2)
9030 delete arg2;
9031 }
9032 return resultobj;
9033 fail:
9034 {
9035 if (temp2)
9036 delete arg2;
9037 }
9038 return NULL;
9039 }
9040
9041
9042 static PyObject *_wrap_TextCtrl_AppendText(PyObject *, PyObject *args, PyObject *kwargs) {
9043 PyObject *resultobj;
9044 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9045 wxString *arg2 = 0 ;
9046 bool temp2 = false ;
9047 PyObject * obj0 = 0 ;
9048 PyObject * obj1 = 0 ;
9049 char *kwnames[] = {
9050 (char *) "self",(char *) "text", NULL
9051 };
9052
9053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail;
9054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9056 {
9057 arg2 = wxString_in_helper(obj1);
9058 if (arg2 == NULL) SWIG_fail;
9059 temp2 = true;
9060 }
9061 {
9062 PyThreadState* __tstate = wxPyBeginAllowThreads();
9063 (arg1)->AppendText((wxString const &)*arg2);
9064
9065 wxPyEndAllowThreads(__tstate);
9066 if (PyErr_Occurred()) SWIG_fail;
9067 }
9068 Py_INCREF(Py_None); resultobj = Py_None;
9069 {
9070 if (temp2)
9071 delete arg2;
9072 }
9073 return resultobj;
9074 fail:
9075 {
9076 if (temp2)
9077 delete arg2;
9078 }
9079 return NULL;
9080 }
9081
9082
9083 static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *, PyObject *args, PyObject *kwargs) {
9084 PyObject *resultobj;
9085 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9086 wxKeyEvent *arg2 = 0 ;
9087 bool result;
9088 PyObject * obj0 = 0 ;
9089 PyObject * obj1 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self",(char *) "event", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
9098 SWIG_POINTER_EXCEPTION | 0)) == -1)
9099 SWIG_fail;
9100 if (arg2 == NULL) {
9101 PyErr_SetString(PyExc_TypeError,"null reference");
9102 SWIG_fail;
9103 }
9104 {
9105 PyThreadState* __tstate = wxPyBeginAllowThreads();
9106 result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2);
9107
9108 wxPyEndAllowThreads(__tstate);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 {
9112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_TextCtrl_SetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9123 long arg2 ;
9124 long arg3 ;
9125 wxTextAttr *arg4 = 0 ;
9126 bool result;
9127 PyObject * obj0 = 0 ;
9128 PyObject * obj1 = 0 ;
9129 PyObject * obj2 = 0 ;
9130 PyObject * obj3 = 0 ;
9131 char *kwnames[] = {
9132 (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL
9133 };
9134
9135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9138 arg2 = (long)SWIG_As_long(obj1);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 arg3 = (long)SWIG_As_long(obj2);
9141 if (PyErr_Occurred()) SWIG_fail;
9142 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr,
9143 SWIG_POINTER_EXCEPTION | 0)) == -1)
9144 SWIG_fail;
9145 if (arg4 == NULL) {
9146 PyErr_SetString(PyExc_TypeError,"null reference");
9147 SWIG_fail;
9148 }
9149 {
9150 PyThreadState* __tstate = wxPyBeginAllowThreads();
9151 result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4);
9152
9153 wxPyEndAllowThreads(__tstate);
9154 if (PyErr_Occurred()) SWIG_fail;
9155 }
9156 {
9157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9158 }
9159 return resultobj;
9160 fail:
9161 return NULL;
9162 }
9163
9164
9165 static PyObject *_wrap_TextCtrl_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9166 PyObject *resultobj;
9167 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9168 long arg2 ;
9169 wxTextAttr *arg3 = 0 ;
9170 bool result;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 PyObject * obj2 = 0 ;
9174 char *kwnames[] = {
9175 (char *) "self",(char *) "position",(char *) "style", NULL
9176 };
9177
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
9179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9181 arg2 = (long)SWIG_As_long(obj1);
9182 if (PyErr_Occurred()) SWIG_fail;
9183 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr,
9184 SWIG_POINTER_EXCEPTION | 0)) == -1)
9185 SWIG_fail;
9186 if (arg3 == NULL) {
9187 PyErr_SetString(PyExc_TypeError,"null reference");
9188 SWIG_fail;
9189 }
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 result = (bool)(arg1)->GetStyle(arg2,*arg3);
9193
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 {
9198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9199 }
9200 return resultobj;
9201 fail:
9202 return NULL;
9203 }
9204
9205
9206 static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9207 PyObject *resultobj;
9208 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9209 wxTextAttr *arg2 = 0 ;
9210 bool result;
9211 PyObject * obj0 = 0 ;
9212 PyObject * obj1 = 0 ;
9213 char *kwnames[] = {
9214 (char *) "self",(char *) "style", NULL
9215 };
9216
9217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail;
9218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr,
9221 SWIG_POINTER_EXCEPTION | 0)) == -1)
9222 SWIG_fail;
9223 if (arg2 == NULL) {
9224 PyErr_SetString(PyExc_TypeError,"null reference");
9225 SWIG_fail;
9226 }
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2);
9230
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9246 wxTextAttr *result;
9247 PyObject * obj0 = 0 ;
9248 char *kwnames[] = {
9249 (char *) "self", NULL
9250 };
9251
9252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail;
9253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 {
9258 wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle();
9259 result = (wxTextAttr *) &_result_ref;
9260 }
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0);
9266 return resultobj;
9267 fail:
9268 return NULL;
9269 }
9270
9271
9272 static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9273 PyObject *resultobj;
9274 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9275 long arg2 ;
9276 long arg3 ;
9277 long result;
9278 PyObject * obj0 = 0 ;
9279 PyObject * obj1 = 0 ;
9280 PyObject * obj2 = 0 ;
9281 char *kwnames[] = {
9282 (char *) "self",(char *) "x",(char *) "y", NULL
9283 };
9284
9285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
9286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9288 arg2 = (long)SWIG_As_long(obj1);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 arg3 = (long)SWIG_As_long(obj2);
9291 if (PyErr_Occurred()) SWIG_fail;
9292 {
9293 PyThreadState* __tstate = wxPyBeginAllowThreads();
9294 result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3);
9295
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_From_long((long)result);
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *, PyObject *args, PyObject *kwargs) {
9307 PyObject *resultobj;
9308 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9309 long arg2 ;
9310 long *arg3 = (long *) 0 ;
9311 long *arg4 = (long *) 0 ;
9312 long temp3 ;
9313 int res3 = 0 ;
9314 long temp4 ;
9315 int res4 = 0 ;
9316 PyObject * obj0 = 0 ;
9317 PyObject * obj1 = 0 ;
9318 char *kwnames[] = {
9319 (char *) "self",(char *) "pos", NULL
9320 };
9321
9322 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9323 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail;
9325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9327 arg2 = (long)SWIG_As_long(obj1);
9328 if (PyErr_Occurred()) SWIG_fail;
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4);
9332
9333 wxPyEndAllowThreads(__tstate);
9334 if (PyErr_Occurred()) SWIG_fail;
9335 }
9336 Py_INCREF(Py_None); resultobj = Py_None;
9337 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9338 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9339 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9340 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9350 long arg2 ;
9351 PyObject * obj0 = 0 ;
9352 PyObject * obj1 = 0 ;
9353 char *kwnames[] = {
9354 (char *) "self",(char *) "pos", NULL
9355 };
9356
9357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail;
9358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9360 arg2 = (long)SWIG_As_long(obj1);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 {
9363 PyThreadState* __tstate = wxPyBeginAllowThreads();
9364 (arg1)->ShowPosition(arg2);
9365
9366 wxPyEndAllowThreads(__tstate);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 }
9369 Py_INCREF(Py_None); resultobj = Py_None;
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_TextCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
9377 PyObject *resultobj;
9378 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9379 wxPoint *arg2 = 0 ;
9380 long *arg3 = (long *) 0 ;
9381 long *arg4 = (long *) 0 ;
9382 int result;
9383 wxPoint temp2 ;
9384 long temp3 ;
9385 int res3 = 0 ;
9386 long temp4 ;
9387 int res4 = 0 ;
9388 PyObject * obj0 = 0 ;
9389 PyObject * obj1 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self",(char *) "pt", NULL
9392 };
9393
9394 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9395 arg4 = &temp4; res4 = SWIG_NEWOBJ;
9396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
9397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9399 {
9400 arg2 = &temp2;
9401 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9402 }
9403 {
9404 PyThreadState* __tstate = wxPyBeginAllowThreads();
9405 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4);
9406
9407 wxPyEndAllowThreads(__tstate);
9408 if (PyErr_Occurred()) SWIG_fail;
9409 }
9410 resultobj = SWIG_From_int((int)result);
9411 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9412 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9413 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
9414 SWIG_From_long((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_long, 0)));
9415 return resultobj;
9416 fail:
9417 return NULL;
9418 }
9419
9420
9421 static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9424 wxPoint *arg2 = 0 ;
9425 long *arg3 = (long *) 0 ;
9426 int result;
9427 wxPoint temp2 ;
9428 long temp3 ;
9429 int res3 = 0 ;
9430 PyObject * obj0 = 0 ;
9431 PyObject * obj1 = 0 ;
9432 char *kwnames[] = {
9433 (char *) "self",(char *) "pt", NULL
9434 };
9435
9436 arg3 = &temp3; res3 = SWIG_NEWOBJ;
9437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail;
9438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9440 {
9441 arg2 = &temp2;
9442 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9443 }
9444 {
9445 PyThreadState* __tstate = wxPyBeginAllowThreads();
9446 result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
9447
9448 wxPyEndAllowThreads(__tstate);
9449 if (PyErr_Occurred()) SWIG_fail;
9450 }
9451 resultobj = SWIG_From_int((int)result);
9452 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
9453 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
9454 return resultobj;
9455 fail:
9456 return NULL;
9457 }
9458
9459
9460 static PyObject *_wrap_TextCtrl_Copy(PyObject *, PyObject *args, PyObject *kwargs) {
9461 PyObject *resultobj;
9462 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9463 PyObject * obj0 = 0 ;
9464 char *kwnames[] = {
9465 (char *) "self", NULL
9466 };
9467
9468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail;
9469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 (arg1)->Copy();
9474
9475 wxPyEndAllowThreads(__tstate);
9476 if (PyErr_Occurred()) SWIG_fail;
9477 }
9478 Py_INCREF(Py_None); resultobj = Py_None;
9479 return resultobj;
9480 fail:
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_TextCtrl_Cut(PyObject *, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9488 PyObject * obj0 = 0 ;
9489 char *kwnames[] = {
9490 (char *) "self", NULL
9491 };
9492
9493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail;
9494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9496 {
9497 PyThreadState* __tstate = wxPyBeginAllowThreads();
9498 (arg1)->Cut();
9499
9500 wxPyEndAllowThreads(__tstate);
9501 if (PyErr_Occurred()) SWIG_fail;
9502 }
9503 Py_INCREF(Py_None); resultobj = Py_None;
9504 return resultobj;
9505 fail:
9506 return NULL;
9507 }
9508
9509
9510 static PyObject *_wrap_TextCtrl_Paste(PyObject *, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9513 PyObject * obj0 = 0 ;
9514 char *kwnames[] = {
9515 (char *) "self", NULL
9516 };
9517
9518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail;
9519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9521 {
9522 PyThreadState* __tstate = wxPyBeginAllowThreads();
9523 (arg1)->Paste();
9524
9525 wxPyEndAllowThreads(__tstate);
9526 if (PyErr_Occurred()) SWIG_fail;
9527 }
9528 Py_INCREF(Py_None); resultobj = Py_None;
9529 return resultobj;
9530 fail:
9531 return NULL;
9532 }
9533
9534
9535 static PyObject *_wrap_TextCtrl_CanCopy(PyObject *, PyObject *args, PyObject *kwargs) {
9536 PyObject *resultobj;
9537 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9538 bool result;
9539 PyObject * obj0 = 0 ;
9540 char *kwnames[] = {
9541 (char *) "self", NULL
9542 };
9543
9544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail;
9545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9547 {
9548 PyThreadState* __tstate = wxPyBeginAllowThreads();
9549 result = (bool)((wxTextCtrl const *)arg1)->CanCopy();
9550
9551 wxPyEndAllowThreads(__tstate);
9552 if (PyErr_Occurred()) SWIG_fail;
9553 }
9554 {
9555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9556 }
9557 return resultobj;
9558 fail:
9559 return NULL;
9560 }
9561
9562
9563 static PyObject *_wrap_TextCtrl_CanCut(PyObject *, PyObject *args, PyObject *kwargs) {
9564 PyObject *resultobj;
9565 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9566 bool result;
9567 PyObject * obj0 = 0 ;
9568 char *kwnames[] = {
9569 (char *) "self", NULL
9570 };
9571
9572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail;
9573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (bool)((wxTextCtrl const *)arg1)->CanCut();
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 {
9583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9584 }
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_TextCtrl_CanPaste(PyObject *, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9594 bool result;
9595 PyObject * obj0 = 0 ;
9596 char *kwnames[] = {
9597 (char *) "self", NULL
9598 };
9599
9600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail;
9601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9603 {
9604 PyThreadState* __tstate = wxPyBeginAllowThreads();
9605 result = (bool)((wxTextCtrl const *)arg1)->CanPaste();
9606
9607 wxPyEndAllowThreads(__tstate);
9608 if (PyErr_Occurred()) SWIG_fail;
9609 }
9610 {
9611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9612 }
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_TextCtrl_Undo(PyObject *, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9622 PyObject * obj0 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "self", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail;
9628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9630 {
9631 PyThreadState* __tstate = wxPyBeginAllowThreads();
9632 (arg1)->Undo();
9633
9634 wxPyEndAllowThreads(__tstate);
9635 if (PyErr_Occurred()) SWIG_fail;
9636 }
9637 Py_INCREF(Py_None); resultobj = Py_None;
9638 return resultobj;
9639 fail:
9640 return NULL;
9641 }
9642
9643
9644 static PyObject *_wrap_TextCtrl_Redo(PyObject *, PyObject *args, PyObject *kwargs) {
9645 PyObject *resultobj;
9646 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9647 PyObject * obj0 = 0 ;
9648 char *kwnames[] = {
9649 (char *) "self", NULL
9650 };
9651
9652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail;
9653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9655 {
9656 PyThreadState* __tstate = wxPyBeginAllowThreads();
9657 (arg1)->Redo();
9658
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 Py_INCREF(Py_None); resultobj = Py_None;
9663 return resultobj;
9664 fail:
9665 return NULL;
9666 }
9667
9668
9669 static PyObject *_wrap_TextCtrl_CanUndo(PyObject *, PyObject *args, PyObject *kwargs) {
9670 PyObject *resultobj;
9671 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9672 bool result;
9673 PyObject * obj0 = 0 ;
9674 char *kwnames[] = {
9675 (char *) "self", NULL
9676 };
9677
9678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail;
9679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9681 {
9682 PyThreadState* __tstate = wxPyBeginAllowThreads();
9683 result = (bool)((wxTextCtrl const *)arg1)->CanUndo();
9684
9685 wxPyEndAllowThreads(__tstate);
9686 if (PyErr_Occurred()) SWIG_fail;
9687 }
9688 {
9689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9690 }
9691 return resultobj;
9692 fail:
9693 return NULL;
9694 }
9695
9696
9697 static PyObject *_wrap_TextCtrl_CanRedo(PyObject *, PyObject *args, PyObject *kwargs) {
9698 PyObject *resultobj;
9699 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9700 bool result;
9701 PyObject * obj0 = 0 ;
9702 char *kwnames[] = {
9703 (char *) "self", NULL
9704 };
9705
9706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail;
9707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (bool)((wxTextCtrl const *)arg1)->CanRedo();
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 {
9717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9718 }
9719 return resultobj;
9720 fail:
9721 return NULL;
9722 }
9723
9724
9725 static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9726 PyObject *resultobj;
9727 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9728 long arg2 ;
9729 PyObject * obj0 = 0 ;
9730 PyObject * obj1 = 0 ;
9731 char *kwnames[] = {
9732 (char *) "self",(char *) "pos", NULL
9733 };
9734
9735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail;
9736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9738 arg2 = (long)SWIG_As_long(obj1);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 {
9741 PyThreadState* __tstate = wxPyBeginAllowThreads();
9742 (arg1)->SetInsertionPoint(arg2);
9743
9744 wxPyEndAllowThreads(__tstate);
9745 if (PyErr_Occurred()) SWIG_fail;
9746 }
9747 Py_INCREF(Py_None); resultobj = Py_None;
9748 return resultobj;
9749 fail:
9750 return NULL;
9751 }
9752
9753
9754 static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *, PyObject *args, PyObject *kwargs) {
9755 PyObject *resultobj;
9756 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9757 PyObject * obj0 = 0 ;
9758 char *kwnames[] = {
9759 (char *) "self", NULL
9760 };
9761
9762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail;
9763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9765 {
9766 PyThreadState* __tstate = wxPyBeginAllowThreads();
9767 (arg1)->SetInsertionPointEnd();
9768
9769 wxPyEndAllowThreads(__tstate);
9770 if (PyErr_Occurred()) SWIG_fail;
9771 }
9772 Py_INCREF(Py_None); resultobj = Py_None;
9773 return resultobj;
9774 fail:
9775 return NULL;
9776 }
9777
9778
9779 static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *, PyObject *args, PyObject *kwargs) {
9780 PyObject *resultobj;
9781 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9782 long result;
9783 PyObject * obj0 = 0 ;
9784 char *kwnames[] = {
9785 (char *) "self", NULL
9786 };
9787
9788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail;
9789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint();
9794
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 resultobj = SWIG_From_long((long)result);
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *, PyObject *args, PyObject *kwargs) {
9806 PyObject *resultobj;
9807 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9808 long result;
9809 PyObject * obj0 = 0 ;
9810 char *kwnames[] = {
9811 (char *) "self", NULL
9812 };
9813
9814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail;
9815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (long)((wxTextCtrl const *)arg1)->GetLastPosition();
9820
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_From_long((long)result);
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_TextCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj;
9833 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9834 long arg2 ;
9835 long arg3 ;
9836 PyObject * obj0 = 0 ;
9837 PyObject * obj1 = 0 ;
9838 PyObject * obj2 = 0 ;
9839 char *kwnames[] = {
9840 (char *) "self",(char *) "from",(char *) "to", NULL
9841 };
9842
9843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
9844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9846 arg2 = (long)SWIG_As_long(obj1);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 arg3 = (long)SWIG_As_long(obj2);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 {
9851 PyThreadState* __tstate = wxPyBeginAllowThreads();
9852 (arg1)->SetSelection(arg2,arg3);
9853
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 Py_INCREF(Py_None); resultobj = Py_None;
9858 return resultobj;
9859 fail:
9860 return NULL;
9861 }
9862
9863
9864 static PyObject *_wrap_TextCtrl_SelectAll(PyObject *, PyObject *args, PyObject *kwargs) {
9865 PyObject *resultobj;
9866 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9867 PyObject * obj0 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 (arg1)->SelectAll();
9878
9879 wxPyEndAllowThreads(__tstate);
9880 if (PyErr_Occurred()) SWIG_fail;
9881 }
9882 Py_INCREF(Py_None); resultobj = Py_None;
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 static PyObject *_wrap_TextCtrl_SetEditable(PyObject *, PyObject *args, PyObject *kwargs) {
9890 PyObject *resultobj;
9891 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9892 bool arg2 ;
9893 PyObject * obj0 = 0 ;
9894 PyObject * obj1 = 0 ;
9895 char *kwnames[] = {
9896 (char *) "self",(char *) "editable", NULL
9897 };
9898
9899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail;
9900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9902 arg2 = (bool)SWIG_As_bool(obj1);
9903 if (PyErr_Occurred()) SWIG_fail;
9904 {
9905 PyThreadState* __tstate = wxPyBeginAllowThreads();
9906 (arg1)->SetEditable(arg2);
9907
9908 wxPyEndAllowThreads(__tstate);
9909 if (PyErr_Occurred()) SWIG_fail;
9910 }
9911 Py_INCREF(Py_None); resultobj = Py_None;
9912 return resultobj;
9913 fail:
9914 return NULL;
9915 }
9916
9917
9918 static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9919 PyObject *resultobj;
9920 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9921 bool arg2 = (bool) true ;
9922 bool result;
9923 PyObject * obj0 = 0 ;
9924 PyObject * obj1 = 0 ;
9925 char *kwnames[] = {
9926 (char *) "self",(char *) "show", NULL
9927 };
9928
9929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail;
9930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9932 if (obj1) {
9933 arg2 = (bool)SWIG_As_bool(obj1);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 result = (bool)(arg1)->ShowNativeCaret(arg2);
9939
9940 wxPyEndAllowThreads(__tstate);
9941 if (PyErr_Occurred()) SWIG_fail;
9942 }
9943 {
9944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9945 }
9946 return resultobj;
9947 fail:
9948 return NULL;
9949 }
9950
9951
9952 static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *, PyObject *args, PyObject *kwargs) {
9953 PyObject *resultobj;
9954 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9955 bool result;
9956 PyObject * obj0 = 0 ;
9957 char *kwnames[] = {
9958 (char *) "self", NULL
9959 };
9960
9961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail;
9962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 result = (bool)(arg1)->HideNativeCaret();
9967
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) SWIG_fail;
9970 }
9971 {
9972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9973 }
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 static PyObject *_wrap_TextCtrl_write(PyObject *, PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj;
9982 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
9983 wxString *arg2 = 0 ;
9984 bool temp2 = false ;
9985 PyObject * obj0 = 0 ;
9986 PyObject * obj1 = 0 ;
9987 char *kwnames[] = {
9988 (char *) "self",(char *) "text", NULL
9989 };
9990
9991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail;
9992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
9993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9994 {
9995 arg2 = wxString_in_helper(obj1);
9996 if (arg2 == NULL) SWIG_fail;
9997 temp2 = true;
9998 }
9999 {
10000 PyThreadState* __tstate = wxPyBeginAllowThreads();
10001 wxTextCtrl_write(arg1,(wxString const &)*arg2);
10002
10003 wxPyEndAllowThreads(__tstate);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
10006 Py_INCREF(Py_None); resultobj = Py_None;
10007 {
10008 if (temp2)
10009 delete arg2;
10010 }
10011 return resultobj;
10012 fail:
10013 {
10014 if (temp2)
10015 delete arg2;
10016 }
10017 return NULL;
10018 }
10019
10020
10021 static PyObject *_wrap_TextCtrl_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
10022 PyObject *resultobj;
10023 wxTextCtrl *arg1 = (wxTextCtrl *) 0 ;
10024 long arg2 ;
10025 long arg3 ;
10026 wxString result;
10027 PyObject * obj0 = 0 ;
10028 PyObject * obj1 = 0 ;
10029 PyObject * obj2 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self",(char *) "from",(char *) "to", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 arg2 = (long)SWIG_As_long(obj1);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 arg3 = (long)SWIG_As_long(obj2);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 {
10042 PyThreadState* __tstate = wxPyBeginAllowThreads();
10043 result = wxTextCtrl_GetString(arg1,arg2,arg3);
10044
10045 wxPyEndAllowThreads(__tstate);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 {
10049 #if wxUSE_UNICODE
10050 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10051 #else
10052 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10053 #endif
10054 }
10055 return resultobj;
10056 fail:
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10064 wxVisualAttributes result;
10065 PyObject * obj0 = 0 ;
10066 char *kwnames[] = {
10067 (char *) "variant", NULL
10068 };
10069
10070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10071 if (obj0) {
10072 arg1 = (int)SWIG_As_int(obj0);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 {
10076 if (!wxPyCheckForApp()) SWIG_fail;
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
10079
10080 wxPyEndAllowThreads(__tstate);
10081 if (PyErr_Occurred()) SWIG_fail;
10082 }
10083 {
10084 wxVisualAttributes * resultptr;
10085 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10086 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10087 }
10088 return resultobj;
10089 fail:
10090 return NULL;
10091 }
10092
10093
10094 static PyObject * TextCtrl_swigregister(PyObject *, PyObject *args) {
10095 PyObject *obj;
10096 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10097 SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj);
10098 Py_INCREF(obj);
10099 return Py_BuildValue((char *)"");
10100 }
10101 static PyObject *_wrap_new_TextUrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10102 PyObject *resultobj;
10103 int arg1 ;
10104 wxMouseEvent *arg2 = 0 ;
10105 long arg3 ;
10106 long arg4 ;
10107 wxTextUrlEvent *result;
10108 PyObject * obj0 = 0 ;
10109 PyObject * obj1 = 0 ;
10110 PyObject * obj2 = 0 ;
10111 PyObject * obj3 = 0 ;
10112 char *kwnames[] = {
10113 (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL
10114 };
10115
10116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10117 arg1 = (int)SWIG_As_int(obj0);
10118 if (PyErr_Occurred()) SWIG_fail;
10119 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent,
10120 SWIG_POINTER_EXCEPTION | 0)) == -1)
10121 SWIG_fail;
10122 if (arg2 == NULL) {
10123 PyErr_SetString(PyExc_TypeError,"null reference");
10124 SWIG_fail;
10125 }
10126 arg3 = (long)SWIG_As_long(obj2);
10127 if (PyErr_Occurred()) SWIG_fail;
10128 arg4 = (long)SWIG_As_long(obj3);
10129 if (PyErr_Occurred()) SWIG_fail;
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4);
10133
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1);
10138 return resultobj;
10139 fail:
10140 return NULL;
10141 }
10142
10143
10144 static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *, PyObject *args, PyObject *kwargs) {
10145 PyObject *resultobj;
10146 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10147 wxMouseEvent *result;
10148 PyObject * obj0 = 0 ;
10149 char *kwnames[] = {
10150 (char *) "self", NULL
10151 };
10152
10153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail;
10154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10156 {
10157 PyThreadState* __tstate = wxPyBeginAllowThreads();
10158 {
10159 wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent();
10160 result = (wxMouseEvent *) &_result_ref;
10161 }
10162
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0);
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *, PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj;
10175 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10176 long result;
10177 PyObject * obj0 = 0 ;
10178 char *kwnames[] = {
10179 (char *) "self", NULL
10180 };
10181
10182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail;
10183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10185 {
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart();
10188
10189 wxPyEndAllowThreads(__tstate);
10190 if (PyErr_Occurred()) SWIG_fail;
10191 }
10192 resultobj = SWIG_From_long((long)result);
10193 return resultobj;
10194 fail:
10195 return NULL;
10196 }
10197
10198
10199 static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *, PyObject *args, PyObject *kwargs) {
10200 PyObject *resultobj;
10201 wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ;
10202 long result;
10203 PyObject * obj0 = 0 ;
10204 char *kwnames[] = {
10205 (char *) "self", NULL
10206 };
10207
10208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail;
10209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent,
10210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10211 {
10212 PyThreadState* __tstate = wxPyBeginAllowThreads();
10213 result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd();
10214
10215 wxPyEndAllowThreads(__tstate);
10216 if (PyErr_Occurred()) SWIG_fail;
10217 }
10218 resultobj = SWIG_From_long((long)result);
10219 return resultobj;
10220 fail:
10221 return NULL;
10222 }
10223
10224
10225 static PyObject * TextUrlEvent_swigregister(PyObject *, PyObject *args) {
10226 PyObject *obj;
10227 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10228 SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj);
10229 Py_INCREF(obj);
10230 return Py_BuildValue((char *)"");
10231 }
10232 static int _wrap_ScrollBarNameStr_set(PyObject *) {
10233 PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only.");
10234 return 1;
10235 }
10236
10237
10238 static PyObject *_wrap_ScrollBarNameStr_get() {
10239 PyObject *pyobj;
10240
10241 {
10242 #if wxUSE_UNICODE
10243 pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10244 #else
10245 pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len());
10246 #endif
10247 }
10248 return pyobj;
10249 }
10250
10251
10252 static PyObject *_wrap_new_ScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10253 PyObject *resultobj;
10254 wxWindow *arg1 = (wxWindow *) 0 ;
10255 int arg2 = (int) -1 ;
10256 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10257 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10258 wxSize const &arg4_defvalue = wxDefaultSize ;
10259 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10260 long arg5 = (long) wxSB_HORIZONTAL ;
10261 wxValidator const &arg6_defvalue = wxDefaultValidator ;
10262 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
10263 wxString const &arg7_defvalue = wxPyScrollBarNameStr ;
10264 wxString *arg7 = (wxString *) &arg7_defvalue ;
10265 wxScrollBar *result;
10266 wxPoint temp3 ;
10267 wxSize temp4 ;
10268 bool temp7 = false ;
10269 PyObject * obj0 = 0 ;
10270 PyObject * obj1 = 0 ;
10271 PyObject * obj2 = 0 ;
10272 PyObject * obj3 = 0 ;
10273 PyObject * obj4 = 0 ;
10274 PyObject * obj5 = 0 ;
10275 PyObject * obj6 = 0 ;
10276 char *kwnames[] = {
10277 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10278 };
10279
10280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10283 if (obj1) {
10284 arg2 = (int)SWIG_As_int(obj1);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 if (obj2) {
10288 {
10289 arg3 = &temp3;
10290 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10291 }
10292 }
10293 if (obj3) {
10294 {
10295 arg4 = &temp4;
10296 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10297 }
10298 }
10299 if (obj4) {
10300 arg5 = (long)SWIG_As_long(obj4);
10301 if (PyErr_Occurred()) SWIG_fail;
10302 }
10303 if (obj5) {
10304 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
10305 SWIG_POINTER_EXCEPTION | 0)) == -1)
10306 SWIG_fail;
10307 if (arg6 == NULL) {
10308 PyErr_SetString(PyExc_TypeError,"null reference");
10309 SWIG_fail;
10310 }
10311 }
10312 if (obj6) {
10313 {
10314 arg7 = wxString_in_helper(obj6);
10315 if (arg7 == NULL) SWIG_fail;
10316 temp7 = true;
10317 }
10318 }
10319 {
10320 if (!wxPyCheckForApp()) SWIG_fail;
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10328 {
10329 if (temp7)
10330 delete arg7;
10331 }
10332 return resultobj;
10333 fail:
10334 {
10335 if (temp7)
10336 delete arg7;
10337 }
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_new_PreScrollBar(PyObject *, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxScrollBar *result;
10345 char *kwnames[] = {
10346 NULL
10347 };
10348
10349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail;
10350 {
10351 if (!wxPyCheckForApp()) SWIG_fail;
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 result = (wxScrollBar *)new wxScrollBar();
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1);
10359 return resultobj;
10360 fail:
10361 return NULL;
10362 }
10363
10364
10365 static PyObject *_wrap_ScrollBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10366 PyObject *resultobj;
10367 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10368 wxWindow *arg2 = (wxWindow *) 0 ;
10369 int arg3 = (int) -1 ;
10370 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10371 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10372 wxSize const &arg5_defvalue = wxDefaultSize ;
10373 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10374 long arg6 = (long) wxSB_HORIZONTAL ;
10375 wxValidator const &arg7_defvalue = wxDefaultValidator ;
10376 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
10377 wxString const &arg8_defvalue = wxPyScrollBarNameStr ;
10378 wxString *arg8 = (wxString *) &arg8_defvalue ;
10379 bool result;
10380 wxPoint temp4 ;
10381 wxSize temp5 ;
10382 bool temp8 = false ;
10383 PyObject * obj0 = 0 ;
10384 PyObject * obj1 = 0 ;
10385 PyObject * obj2 = 0 ;
10386 PyObject * obj3 = 0 ;
10387 PyObject * obj4 = 0 ;
10388 PyObject * obj5 = 0 ;
10389 PyObject * obj6 = 0 ;
10390 PyObject * obj7 = 0 ;
10391 char *kwnames[] = {
10392 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
10393 };
10394
10395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
10396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10398 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10400 if (obj2) {
10401 arg3 = (int)SWIG_As_int(obj2);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 if (obj3) {
10405 {
10406 arg4 = &temp4;
10407 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10408 }
10409 }
10410 if (obj4) {
10411 {
10412 arg5 = &temp5;
10413 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10414 }
10415 }
10416 if (obj5) {
10417 arg6 = (long)SWIG_As_long(obj5);
10418 if (PyErr_Occurred()) SWIG_fail;
10419 }
10420 if (obj6) {
10421 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
10422 SWIG_POINTER_EXCEPTION | 0)) == -1)
10423 SWIG_fail;
10424 if (arg7 == NULL) {
10425 PyErr_SetString(PyExc_TypeError,"null reference");
10426 SWIG_fail;
10427 }
10428 }
10429 if (obj7) {
10430 {
10431 arg8 = wxString_in_helper(obj7);
10432 if (arg8 == NULL) SWIG_fail;
10433 temp8 = true;
10434 }
10435 }
10436 {
10437 PyThreadState* __tstate = wxPyBeginAllowThreads();
10438 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
10439
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 {
10444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10445 }
10446 {
10447 if (temp8)
10448 delete arg8;
10449 }
10450 return resultobj;
10451 fail:
10452 {
10453 if (temp8)
10454 delete arg8;
10455 }
10456 return NULL;
10457 }
10458
10459
10460 static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10461 PyObject *resultobj;
10462 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10463 int result;
10464 PyObject * obj0 = 0 ;
10465 char *kwnames[] = {
10466 (char *) "self", NULL
10467 };
10468
10469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail;
10470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10472 {
10473 PyThreadState* __tstate = wxPyBeginAllowThreads();
10474 result = (int)((wxScrollBar const *)arg1)->GetThumbPosition();
10475
10476 wxPyEndAllowThreads(__tstate);
10477 if (PyErr_Occurred()) SWIG_fail;
10478 }
10479 resultobj = SWIG_From_int((int)result);
10480 return resultobj;
10481 fail:
10482 return NULL;
10483 }
10484
10485
10486 static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *, PyObject *args, PyObject *kwargs) {
10487 PyObject *resultobj;
10488 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10489 int result;
10490 PyObject * obj0 = 0 ;
10491 char *kwnames[] = {
10492 (char *) "self", NULL
10493 };
10494
10495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail;
10496 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10497 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10498 {
10499 PyThreadState* __tstate = wxPyBeginAllowThreads();
10500 result = (int)((wxScrollBar const *)arg1)->GetThumbSize();
10501
10502 wxPyEndAllowThreads(__tstate);
10503 if (PyErr_Occurred()) SWIG_fail;
10504 }
10505 resultobj = SWIG_From_int((int)result);
10506 return resultobj;
10507 fail:
10508 return NULL;
10509 }
10510
10511
10512 static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
10513 PyObject *resultobj;
10514 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10515 int result;
10516 PyObject * obj0 = 0 ;
10517 char *kwnames[] = {
10518 (char *) "self", NULL
10519 };
10520
10521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail;
10522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10524 {
10525 PyThreadState* __tstate = wxPyBeginAllowThreads();
10526 result = (int)((wxScrollBar const *)arg1)->GetPageSize();
10527
10528 wxPyEndAllowThreads(__tstate);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 resultobj = SWIG_From_int((int)result);
10532 return resultobj;
10533 fail:
10534 return NULL;
10535 }
10536
10537
10538 static PyObject *_wrap_ScrollBar_GetRange(PyObject *, PyObject *args, PyObject *kwargs) {
10539 PyObject *resultobj;
10540 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10541 int result;
10542 PyObject * obj0 = 0 ;
10543 char *kwnames[] = {
10544 (char *) "self", NULL
10545 };
10546
10547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail;
10548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10550 {
10551 PyThreadState* __tstate = wxPyBeginAllowThreads();
10552 result = (int)((wxScrollBar const *)arg1)->GetRange();
10553
10554 wxPyEndAllowThreads(__tstate);
10555 if (PyErr_Occurred()) SWIG_fail;
10556 }
10557 resultobj = SWIG_From_int((int)result);
10558 return resultobj;
10559 fail:
10560 return NULL;
10561 }
10562
10563
10564 static PyObject *_wrap_ScrollBar_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
10565 PyObject *resultobj;
10566 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10567 bool result;
10568 PyObject * obj0 = 0 ;
10569 char *kwnames[] = {
10570 (char *) "self", NULL
10571 };
10572
10573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail;
10574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10576 {
10577 PyThreadState* __tstate = wxPyBeginAllowThreads();
10578 result = (bool)((wxScrollBar const *)arg1)->IsVertical();
10579
10580 wxPyEndAllowThreads(__tstate);
10581 if (PyErr_Occurred()) SWIG_fail;
10582 }
10583 {
10584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10585 }
10586 return resultobj;
10587 fail:
10588 return NULL;
10589 }
10590
10591
10592 static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *, PyObject *args, PyObject *kwargs) {
10593 PyObject *resultobj;
10594 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10595 int arg2 ;
10596 PyObject * obj0 = 0 ;
10597 PyObject * obj1 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self",(char *) "viewStart", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 arg2 = (int)SWIG_As_int(obj1);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 (arg1)->SetThumbPosition(arg2);
10610
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 Py_INCREF(Py_None); resultobj = Py_None;
10615 return resultobj;
10616 fail:
10617 return NULL;
10618 }
10619
10620
10621 static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *, PyObject *args, PyObject *kwargs) {
10622 PyObject *resultobj;
10623 wxScrollBar *arg1 = (wxScrollBar *) 0 ;
10624 int arg2 ;
10625 int arg3 ;
10626 int arg4 ;
10627 int arg5 ;
10628 bool arg6 = (bool) true ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 PyObject * obj2 = 0 ;
10632 PyObject * obj3 = 0 ;
10633 PyObject * obj4 = 0 ;
10634 PyObject * obj5 = 0 ;
10635 char *kwnames[] = {
10636 (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL
10637 };
10638
10639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar,
10641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10642 arg2 = (int)SWIG_As_int(obj1);
10643 if (PyErr_Occurred()) SWIG_fail;
10644 arg3 = (int)SWIG_As_int(obj2);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 arg4 = (int)SWIG_As_int(obj3);
10647 if (PyErr_Occurred()) SWIG_fail;
10648 arg5 = (int)SWIG_As_int(obj4);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 if (obj5) {
10651 arg6 = (bool)SWIG_As_bool(obj5);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6);
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 Py_INCREF(Py_None); resultobj = Py_None;
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj;
10670 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
10671 wxVisualAttributes result;
10672 PyObject * obj0 = 0 ;
10673 char *kwnames[] = {
10674 (char *) "variant", NULL
10675 };
10676
10677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
10678 if (obj0) {
10679 arg1 = (int)SWIG_As_int(obj0);
10680 if (PyErr_Occurred()) SWIG_fail;
10681 }
10682 {
10683 if (!wxPyCheckForApp()) SWIG_fail;
10684 PyThreadState* __tstate = wxPyBeginAllowThreads();
10685 result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
10686
10687 wxPyEndAllowThreads(__tstate);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 }
10690 {
10691 wxVisualAttributes * resultptr;
10692 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
10693 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
10694 }
10695 return resultobj;
10696 fail:
10697 return NULL;
10698 }
10699
10700
10701 static PyObject * ScrollBar_swigregister(PyObject *, PyObject *args) {
10702 PyObject *obj;
10703 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10704 SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj);
10705 Py_INCREF(obj);
10706 return Py_BuildValue((char *)"");
10707 }
10708 static int _wrap_SPIN_BUTTON_NAME_set(PyObject *) {
10709 PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only.");
10710 return 1;
10711 }
10712
10713
10714 static PyObject *_wrap_SPIN_BUTTON_NAME_get() {
10715 PyObject *pyobj;
10716
10717 {
10718 #if wxUSE_UNICODE
10719 pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10720 #else
10721 pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len());
10722 #endif
10723 }
10724 return pyobj;
10725 }
10726
10727
10728 static int _wrap_SpinCtrlNameStr_set(PyObject *) {
10729 PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only.");
10730 return 1;
10731 }
10732
10733
10734 static PyObject *_wrap_SpinCtrlNameStr_get() {
10735 PyObject *pyobj;
10736
10737 {
10738 #if wxUSE_UNICODE
10739 pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10740 #else
10741 pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len());
10742 #endif
10743 }
10744 return pyobj;
10745 }
10746
10747
10748 static PyObject *_wrap_new_SpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj;
10750 wxWindow *arg1 = (wxWindow *) 0 ;
10751 int arg2 = (int) -1 ;
10752 wxPoint const &arg3_defvalue = wxDefaultPosition ;
10753 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
10754 wxSize const &arg4_defvalue = wxDefaultSize ;
10755 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
10756 long arg5 = (long) wxSP_HORIZONTAL ;
10757 wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ;
10758 wxString *arg6 = (wxString *) &arg6_defvalue ;
10759 wxSpinButton *result;
10760 wxPoint temp3 ;
10761 wxSize temp4 ;
10762 bool temp6 = false ;
10763 PyObject * obj0 = 0 ;
10764 PyObject * obj1 = 0 ;
10765 PyObject * obj2 = 0 ;
10766 PyObject * obj3 = 0 ;
10767 PyObject * obj4 = 0 ;
10768 PyObject * obj5 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10776 if (obj1) {
10777 arg2 = (int)SWIG_As_int(obj1);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 if (obj2) {
10781 {
10782 arg3 = &temp3;
10783 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10784 }
10785 }
10786 if (obj3) {
10787 {
10788 arg4 = &temp4;
10789 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
10790 }
10791 }
10792 if (obj4) {
10793 arg5 = (long)SWIG_As_long(obj4);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 }
10796 if (obj5) {
10797 {
10798 arg6 = wxString_in_helper(obj5);
10799 if (arg6 == NULL) SWIG_fail;
10800 temp6 = true;
10801 }
10802 }
10803 {
10804 if (!wxPyCheckForApp()) SWIG_fail;
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
10807
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10812 {
10813 if (temp6)
10814 delete arg6;
10815 }
10816 return resultobj;
10817 fail:
10818 {
10819 if (temp6)
10820 delete arg6;
10821 }
10822 return NULL;
10823 }
10824
10825
10826 static PyObject *_wrap_new_PreSpinButton(PyObject *, PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj;
10828 wxSpinButton *result;
10829 char *kwnames[] = {
10830 NULL
10831 };
10832
10833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail;
10834 {
10835 if (!wxPyCheckForApp()) SWIG_fail;
10836 PyThreadState* __tstate = wxPyBeginAllowThreads();
10837 result = (wxSpinButton *)new wxSpinButton();
10838
10839 wxPyEndAllowThreads(__tstate);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 }
10842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1);
10843 return resultobj;
10844 fail:
10845 return NULL;
10846 }
10847
10848
10849 static PyObject *_wrap_SpinButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
10850 PyObject *resultobj;
10851 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10852 wxWindow *arg2 = (wxWindow *) 0 ;
10853 int arg3 = (int) -1 ;
10854 wxPoint const &arg4_defvalue = wxDefaultPosition ;
10855 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
10856 wxSize const &arg5_defvalue = wxDefaultSize ;
10857 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
10858 long arg6 = (long) wxSP_HORIZONTAL ;
10859 wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ;
10860 wxString *arg7 = (wxString *) &arg7_defvalue ;
10861 bool result;
10862 wxPoint temp4 ;
10863 wxSize temp5 ;
10864 bool temp7 = false ;
10865 PyObject * obj0 = 0 ;
10866 PyObject * obj1 = 0 ;
10867 PyObject * obj2 = 0 ;
10868 PyObject * obj3 = 0 ;
10869 PyObject * obj4 = 0 ;
10870 PyObject * obj5 = 0 ;
10871 PyObject * obj6 = 0 ;
10872 char *kwnames[] = {
10873 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
10874 };
10875
10876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
10880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10881 if (obj2) {
10882 arg3 = (int)SWIG_As_int(obj2);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 if (obj3) {
10886 {
10887 arg4 = &temp4;
10888 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10889 }
10890 }
10891 if (obj4) {
10892 {
10893 arg5 = &temp5;
10894 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
10895 }
10896 }
10897 if (obj5) {
10898 arg6 = (long)SWIG_As_long(obj5);
10899 if (PyErr_Occurred()) SWIG_fail;
10900 }
10901 if (obj6) {
10902 {
10903 arg7 = wxString_in_helper(obj6);
10904 if (arg7 == NULL) SWIG_fail;
10905 temp7 = true;
10906 }
10907 }
10908 {
10909 PyThreadState* __tstate = wxPyBeginAllowThreads();
10910 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
10911
10912 wxPyEndAllowThreads(__tstate);
10913 if (PyErr_Occurred()) SWIG_fail;
10914 }
10915 {
10916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10917 }
10918 {
10919 if (temp7)
10920 delete arg7;
10921 }
10922 return resultobj;
10923 fail:
10924 {
10925 if (temp7)
10926 delete arg7;
10927 }
10928 return NULL;
10929 }
10930
10931
10932 static PyObject *_wrap_SpinButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
10933 PyObject *resultobj;
10934 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10935 int result;
10936 PyObject * obj0 = 0 ;
10937 char *kwnames[] = {
10938 (char *) "self", NULL
10939 };
10940
10941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail;
10942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10944 {
10945 PyThreadState* __tstate = wxPyBeginAllowThreads();
10946 result = (int)((wxSpinButton const *)arg1)->GetValue();
10947
10948 wxPyEndAllowThreads(__tstate);
10949 if (PyErr_Occurred()) SWIG_fail;
10950 }
10951 resultobj = SWIG_From_int((int)result);
10952 return resultobj;
10953 fail:
10954 return NULL;
10955 }
10956
10957
10958 static PyObject *_wrap_SpinButton_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
10959 PyObject *resultobj;
10960 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10961 int result;
10962 PyObject * obj0 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "self", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail;
10968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 result = (int)((wxSpinButton const *)arg1)->GetMin();
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 resultobj = SWIG_From_int((int)result);
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_SpinButton_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
10987 int result;
10988 PyObject * obj0 = 0 ;
10989 char *kwnames[] = {
10990 (char *) "self", NULL
10991 };
10992
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail;
10994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
10995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10996 {
10997 PyThreadState* __tstate = wxPyBeginAllowThreads();
10998 result = (int)((wxSpinButton const *)arg1)->GetMax();
10999
11000 wxPyEndAllowThreads(__tstate);
11001 if (PyErr_Occurred()) SWIG_fail;
11002 }
11003 resultobj = SWIG_From_int((int)result);
11004 return resultobj;
11005 fail:
11006 return NULL;
11007 }
11008
11009
11010 static PyObject *_wrap_SpinButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11011 PyObject *resultobj;
11012 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11013 int arg2 ;
11014 PyObject * obj0 = 0 ;
11015 PyObject * obj1 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "val", NULL
11018 };
11019
11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 arg2 = (int)SWIG_As_int(obj1);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 {
11026 PyThreadState* __tstate = wxPyBeginAllowThreads();
11027 (arg1)->SetValue(arg2);
11028
11029 wxPyEndAllowThreads(__tstate);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 }
11032 Py_INCREF(Py_None); resultobj = Py_None;
11033 return resultobj;
11034 fail:
11035 return NULL;
11036 }
11037
11038
11039 static PyObject *_wrap_SpinButton_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj;
11041 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11042 int arg2 ;
11043 PyObject * obj0 = 0 ;
11044 PyObject * obj1 = 0 ;
11045 char *kwnames[] = {
11046 (char *) "self",(char *) "minVal", NULL
11047 };
11048
11049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail;
11050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11052 arg2 = (int)SWIG_As_int(obj1);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 (arg1)->SetMin(arg2);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 Py_INCREF(Py_None); resultobj = Py_None;
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_SpinButton_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11071 int arg2 ;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "maxVal", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11081 arg2 = (int)SWIG_As_int(obj1);
11082 if (PyErr_Occurred()) SWIG_fail;
11083 {
11084 PyThreadState* __tstate = wxPyBeginAllowThreads();
11085 (arg1)->SetMax(arg2);
11086
11087 wxPyEndAllowThreads(__tstate);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 Py_INCREF(Py_None); resultobj = Py_None;
11091 return resultobj;
11092 fail:
11093 return NULL;
11094 }
11095
11096
11097 static PyObject *_wrap_SpinButton_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11098 PyObject *resultobj;
11099 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11100 int arg2 ;
11101 int arg3 ;
11102 PyObject * obj0 = 0 ;
11103 PyObject * obj1 = 0 ;
11104 PyObject * obj2 = 0 ;
11105 char *kwnames[] = {
11106 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11107 };
11108
11109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11112 arg2 = (int)SWIG_As_int(obj1);
11113 if (PyErr_Occurred()) SWIG_fail;
11114 arg3 = (int)SWIG_As_int(obj2);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 {
11117 PyThreadState* __tstate = wxPyBeginAllowThreads();
11118 (arg1)->SetRange(arg2,arg3);
11119
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 Py_INCREF(Py_None); resultobj = Py_None;
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 static PyObject *_wrap_SpinButton_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj;
11132 wxSpinButton *arg1 = (wxSpinButton *) 0 ;
11133 bool result;
11134 PyObject * obj0 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton,
11141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11142 {
11143 PyThreadState* __tstate = wxPyBeginAllowThreads();
11144 result = (bool)((wxSpinButton const *)arg1)->IsVertical();
11145
11146 wxPyEndAllowThreads(__tstate);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 }
11149 {
11150 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11151 }
11152 return resultobj;
11153 fail:
11154 return NULL;
11155 }
11156
11157
11158 static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11159 PyObject *resultobj;
11160 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11161 wxVisualAttributes result;
11162 PyObject * obj0 = 0 ;
11163 char *kwnames[] = {
11164 (char *) "variant", NULL
11165 };
11166
11167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11168 if (obj0) {
11169 arg1 = (int)SWIG_As_int(obj0);
11170 if (PyErr_Occurred()) SWIG_fail;
11171 }
11172 {
11173 if (!wxPyCheckForApp()) SWIG_fail;
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 {
11181 wxVisualAttributes * resultptr;
11182 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11183 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11184 }
11185 return resultobj;
11186 fail:
11187 return NULL;
11188 }
11189
11190
11191 static PyObject * SpinButton_swigregister(PyObject *, PyObject *args) {
11192 PyObject *obj;
11193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11194 SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj);
11195 Py_INCREF(obj);
11196 return Py_BuildValue((char *)"");
11197 }
11198 static PyObject *_wrap_new_SpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11199 PyObject *resultobj;
11200 wxWindow *arg1 = (wxWindow *) 0 ;
11201 int arg2 = (int) -1 ;
11202 wxString const &arg3_defvalue = wxPyEmptyString ;
11203 wxString *arg3 = (wxString *) &arg3_defvalue ;
11204 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11205 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11206 wxSize const &arg5_defvalue = wxDefaultSize ;
11207 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11208 long arg6 = (long) wxSP_ARROW_KEYS ;
11209 int arg7 = (int) 0 ;
11210 int arg8 = (int) 100 ;
11211 int arg9 = (int) 0 ;
11212 wxString const &arg10_defvalue = wxPySpinCtrlNameStr ;
11213 wxString *arg10 = (wxString *) &arg10_defvalue ;
11214 wxSpinCtrl *result;
11215 bool temp3 = false ;
11216 wxPoint temp4 ;
11217 wxSize temp5 ;
11218 bool temp10 = false ;
11219 PyObject * obj0 = 0 ;
11220 PyObject * obj1 = 0 ;
11221 PyObject * obj2 = 0 ;
11222 PyObject * obj3 = 0 ;
11223 PyObject * obj4 = 0 ;
11224 PyObject * obj5 = 0 ;
11225 PyObject * obj6 = 0 ;
11226 PyObject * obj7 = 0 ;
11227 PyObject * obj8 = 0 ;
11228 PyObject * obj9 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11236 if (obj1) {
11237 arg2 = (int)SWIG_As_int(obj1);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 if (obj2) {
11241 {
11242 arg3 = wxString_in_helper(obj2);
11243 if (arg3 == NULL) SWIG_fail;
11244 temp3 = true;
11245 }
11246 }
11247 if (obj3) {
11248 {
11249 arg4 = &temp4;
11250 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11251 }
11252 }
11253 if (obj4) {
11254 {
11255 arg5 = &temp5;
11256 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11257 }
11258 }
11259 if (obj5) {
11260 arg6 = (long)SWIG_As_long(obj5);
11261 if (PyErr_Occurred()) SWIG_fail;
11262 }
11263 if (obj6) {
11264 arg7 = (int)SWIG_As_int(obj6);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 }
11267 if (obj7) {
11268 arg8 = (int)SWIG_As_int(obj7);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 }
11271 if (obj8) {
11272 arg9 = (int)SWIG_As_int(obj8);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 if (obj9) {
11276 {
11277 arg10 = wxString_in_helper(obj9);
11278 if (arg10 == NULL) SWIG_fail;
11279 temp10 = true;
11280 }
11281 }
11282 {
11283 if (!wxPyCheckForApp()) SWIG_fail;
11284 PyThreadState* __tstate = wxPyBeginAllowThreads();
11285 result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10);
11286
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11291 {
11292 if (temp3)
11293 delete arg3;
11294 }
11295 {
11296 if (temp10)
11297 delete arg10;
11298 }
11299 return resultobj;
11300 fail:
11301 {
11302 if (temp3)
11303 delete arg3;
11304 }
11305 {
11306 if (temp10)
11307 delete arg10;
11308 }
11309 return NULL;
11310 }
11311
11312
11313 static PyObject *_wrap_new_PreSpinCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
11314 PyObject *resultobj;
11315 wxSpinCtrl *result;
11316 char *kwnames[] = {
11317 NULL
11318 };
11319
11320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail;
11321 {
11322 if (!wxPyCheckForApp()) SWIG_fail;
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (wxSpinCtrl *)new wxSpinCtrl();
11325
11326 wxPyEndAllowThreads(__tstate);
11327 if (PyErr_Occurred()) SWIG_fail;
11328 }
11329 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1);
11330 return resultobj;
11331 fail:
11332 return NULL;
11333 }
11334
11335
11336 static PyObject *_wrap_SpinCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
11337 PyObject *resultobj;
11338 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11339 wxWindow *arg2 = (wxWindow *) 0 ;
11340 int arg3 = (int) -1 ;
11341 wxString const &arg4_defvalue = wxPyEmptyString ;
11342 wxString *arg4 = (wxString *) &arg4_defvalue ;
11343 wxPoint const &arg5_defvalue = wxDefaultPosition ;
11344 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
11345 wxSize const &arg6_defvalue = wxDefaultSize ;
11346 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
11347 long arg7 = (long) wxSP_ARROW_KEYS ;
11348 int arg8 = (int) 0 ;
11349 int arg9 = (int) 100 ;
11350 int arg10 = (int) 0 ;
11351 wxString const &arg11_defvalue = wxPySpinCtrlNameStr ;
11352 wxString *arg11 = (wxString *) &arg11_defvalue ;
11353 bool result;
11354 bool temp4 = false ;
11355 wxPoint temp5 ;
11356 wxSize temp6 ;
11357 bool temp11 = false ;
11358 PyObject * obj0 = 0 ;
11359 PyObject * obj1 = 0 ;
11360 PyObject * obj2 = 0 ;
11361 PyObject * obj3 = 0 ;
11362 PyObject * obj4 = 0 ;
11363 PyObject * obj5 = 0 ;
11364 PyObject * obj6 = 0 ;
11365 PyObject * obj7 = 0 ;
11366 PyObject * obj8 = 0 ;
11367 PyObject * obj9 = 0 ;
11368 PyObject * obj10 = 0 ;
11369 char *kwnames[] = {
11370 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL
11371 };
11372
11373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
11374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
11377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11378 if (obj2) {
11379 arg3 = (int)SWIG_As_int(obj2);
11380 if (PyErr_Occurred()) SWIG_fail;
11381 }
11382 if (obj3) {
11383 {
11384 arg4 = wxString_in_helper(obj3);
11385 if (arg4 == NULL) SWIG_fail;
11386 temp4 = true;
11387 }
11388 }
11389 if (obj4) {
11390 {
11391 arg5 = &temp5;
11392 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11393 }
11394 }
11395 if (obj5) {
11396 {
11397 arg6 = &temp6;
11398 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
11399 }
11400 }
11401 if (obj6) {
11402 arg7 = (long)SWIG_As_long(obj6);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 if (obj7) {
11406 arg8 = (int)SWIG_As_int(obj7);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 }
11409 if (obj8) {
11410 arg9 = (int)SWIG_As_int(obj8);
11411 if (PyErr_Occurred()) SWIG_fail;
11412 }
11413 if (obj9) {
11414 arg10 = (int)SWIG_As_int(obj9);
11415 if (PyErr_Occurred()) SWIG_fail;
11416 }
11417 if (obj10) {
11418 {
11419 arg11 = wxString_in_helper(obj10);
11420 if (arg11 == NULL) SWIG_fail;
11421 temp11 = true;
11422 }
11423 }
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11);
11427
11428 wxPyEndAllowThreads(__tstate);
11429 if (PyErr_Occurred()) SWIG_fail;
11430 }
11431 {
11432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11433 }
11434 {
11435 if (temp4)
11436 delete arg4;
11437 }
11438 {
11439 if (temp11)
11440 delete arg11;
11441 }
11442 return resultobj;
11443 fail:
11444 {
11445 if (temp4)
11446 delete arg4;
11447 }
11448 {
11449 if (temp11)
11450 delete arg11;
11451 }
11452 return NULL;
11453 }
11454
11455
11456 static PyObject *_wrap_SpinCtrl_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11457 PyObject *resultobj;
11458 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11459 int result;
11460 PyObject * obj0 = 0 ;
11461 char *kwnames[] = {
11462 (char *) "self", NULL
11463 };
11464
11465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail;
11466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (int)((wxSpinCtrl const *)arg1)->GetValue();
11471
11472 wxPyEndAllowThreads(__tstate);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 resultobj = SWIG_From_int((int)result);
11476 return resultobj;
11477 fail:
11478 return NULL;
11479 }
11480
11481
11482 static PyObject *_wrap_SpinCtrl_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
11483 PyObject *resultobj;
11484 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11485 int arg2 ;
11486 PyObject * obj0 = 0 ;
11487 PyObject * obj1 = 0 ;
11488 char *kwnames[] = {
11489 (char *) "self",(char *) "value", NULL
11490 };
11491
11492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail;
11493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11495 arg2 = (int)SWIG_As_int(obj1);
11496 if (PyErr_Occurred()) SWIG_fail;
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 (arg1)->SetValue(arg2);
11500
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 Py_INCREF(Py_None); resultobj = Py_None;
11505 return resultobj;
11506 fail:
11507 return NULL;
11508 }
11509
11510
11511 static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *, PyObject *args, PyObject *kwargs) {
11512 PyObject *resultobj;
11513 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11514 wxString *arg2 = 0 ;
11515 bool temp2 = false ;
11516 PyObject * obj0 = 0 ;
11517 PyObject * obj1 = 0 ;
11518 char *kwnames[] = {
11519 (char *) "self",(char *) "text", NULL
11520 };
11521
11522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail;
11523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11525 {
11526 arg2 = wxString_in_helper(obj1);
11527 if (arg2 == NULL) SWIG_fail;
11528 temp2 = true;
11529 }
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 (arg1)->SetValue((wxString const &)*arg2);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 Py_INCREF(Py_None); resultobj = Py_None;
11538 {
11539 if (temp2)
11540 delete arg2;
11541 }
11542 return resultobj;
11543 fail:
11544 {
11545 if (temp2)
11546 delete arg2;
11547 }
11548 return NULL;
11549 }
11550
11551
11552 static PyObject *_wrap_SpinCtrl_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
11553 PyObject *resultobj;
11554 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11555 int arg2 ;
11556 int arg3 ;
11557 PyObject * obj0 = 0 ;
11558 PyObject * obj1 = 0 ;
11559 PyObject * obj2 = 0 ;
11560 char *kwnames[] = {
11561 (char *) "self",(char *) "minVal",(char *) "maxVal", NULL
11562 };
11563
11564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
11565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11567 arg2 = (int)SWIG_As_int(obj1);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 arg3 = (int)SWIG_As_int(obj2);
11570 if (PyErr_Occurred()) SWIG_fail;
11571 {
11572 PyThreadState* __tstate = wxPyBeginAllowThreads();
11573 (arg1)->SetRange(arg2,arg3);
11574
11575 wxPyEndAllowThreads(__tstate);
11576 if (PyErr_Occurred()) SWIG_fail;
11577 }
11578 Py_INCREF(Py_None); resultobj = Py_None;
11579 return resultobj;
11580 fail:
11581 return NULL;
11582 }
11583
11584
11585 static PyObject *_wrap_SpinCtrl_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
11586 PyObject *resultobj;
11587 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11588 int result;
11589 PyObject * obj0 = 0 ;
11590 char *kwnames[] = {
11591 (char *) "self", NULL
11592 };
11593
11594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail;
11595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11597 {
11598 PyThreadState* __tstate = wxPyBeginAllowThreads();
11599 result = (int)((wxSpinCtrl const *)arg1)->GetMin();
11600
11601 wxPyEndAllowThreads(__tstate);
11602 if (PyErr_Occurred()) SWIG_fail;
11603 }
11604 resultobj = SWIG_From_int((int)result);
11605 return resultobj;
11606 fail:
11607 return NULL;
11608 }
11609
11610
11611 static PyObject *_wrap_SpinCtrl_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj;
11613 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11614 int result;
11615 PyObject * obj0 = 0 ;
11616 char *kwnames[] = {
11617 (char *) "self", NULL
11618 };
11619
11620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail;
11621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11623 {
11624 PyThreadState* __tstate = wxPyBeginAllowThreads();
11625 result = (int)((wxSpinCtrl const *)arg1)->GetMax();
11626
11627 wxPyEndAllowThreads(__tstate);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 }
11630 resultobj = SWIG_From_int((int)result);
11631 return resultobj;
11632 fail:
11633 return NULL;
11634 }
11635
11636
11637 static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj;
11639 wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ;
11640 long arg2 ;
11641 long arg3 ;
11642 PyObject * obj0 = 0 ;
11643 PyObject * obj1 = 0 ;
11644 PyObject * obj2 = 0 ;
11645 char *kwnames[] = {
11646 (char *) "self",(char *) "from",(char *) "to", NULL
11647 };
11648
11649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
11650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl,
11651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11652 arg2 = (long)SWIG_As_long(obj1);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 arg3 = (long)SWIG_As_long(obj2);
11655 if (PyErr_Occurred()) SWIG_fail;
11656 {
11657 PyThreadState* __tstate = wxPyBeginAllowThreads();
11658 (arg1)->SetSelection(arg2,arg3);
11659
11660 wxPyEndAllowThreads(__tstate);
11661 if (PyErr_Occurred()) SWIG_fail;
11662 }
11663 Py_INCREF(Py_None); resultobj = Py_None;
11664 return resultobj;
11665 fail:
11666 return NULL;
11667 }
11668
11669
11670 static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
11671 PyObject *resultobj;
11672 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
11673 wxVisualAttributes result;
11674 PyObject * obj0 = 0 ;
11675 char *kwnames[] = {
11676 (char *) "variant", NULL
11677 };
11678
11679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
11680 if (obj0) {
11681 arg1 = (int)SWIG_As_int(obj0);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 }
11684 {
11685 if (!wxPyCheckForApp()) SWIG_fail;
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
11688
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 {
11693 wxVisualAttributes * resultptr;
11694 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
11695 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
11696 }
11697 return resultobj;
11698 fail:
11699 return NULL;
11700 }
11701
11702
11703 static PyObject * SpinCtrl_swigregister(PyObject *, PyObject *args) {
11704 PyObject *obj;
11705 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11706 SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj);
11707 Py_INCREF(obj);
11708 return Py_BuildValue((char *)"");
11709 }
11710 static PyObject *_wrap_new_SpinEvent(PyObject *, PyObject *args, PyObject *kwargs) {
11711 PyObject *resultobj;
11712 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
11713 int arg2 = (int) 0 ;
11714 wxSpinEvent *result;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 char *kwnames[] = {
11718 (char *) "commandType",(char *) "winid", NULL
11719 };
11720
11721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail;
11722 if (obj0) {
11723 arg1 = (wxEventType)SWIG_As_int(obj0);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 if (obj1) {
11727 arg2 = (int)SWIG_As_int(obj1);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2);
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1);
11738 return resultobj;
11739 fail:
11740 return NULL;
11741 }
11742
11743
11744 static PyObject *_wrap_SpinEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11747 int result;
11748 PyObject * obj0 = 0 ;
11749 char *kwnames[] = {
11750 (char *) "self", NULL
11751 };
11752
11753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail;
11754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11756 {
11757 PyThreadState* __tstate = wxPyBeginAllowThreads();
11758 result = (int)((wxSpinEvent const *)arg1)->GetPosition();
11759
11760 wxPyEndAllowThreads(__tstate);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 resultobj = SWIG_From_int((int)result);
11764 return resultobj;
11765 fail:
11766 return NULL;
11767 }
11768
11769
11770 static PyObject *_wrap_SpinEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
11771 PyObject *resultobj;
11772 wxSpinEvent *arg1 = (wxSpinEvent *) 0 ;
11773 int arg2 ;
11774 PyObject * obj0 = 0 ;
11775 PyObject * obj1 = 0 ;
11776 char *kwnames[] = {
11777 (char *) "self",(char *) "pos", NULL
11778 };
11779
11780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
11781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent,
11782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11783 arg2 = (int)SWIG_As_int(obj1);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 (arg1)->SetPosition(arg2);
11788
11789 wxPyEndAllowThreads(__tstate);
11790 if (PyErr_Occurred()) SWIG_fail;
11791 }
11792 Py_INCREF(Py_None); resultobj = Py_None;
11793 return resultobj;
11794 fail:
11795 return NULL;
11796 }
11797
11798
11799 static PyObject * SpinEvent_swigregister(PyObject *, PyObject *args) {
11800 PyObject *obj;
11801 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
11802 SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj);
11803 Py_INCREF(obj);
11804 return Py_BuildValue((char *)"");
11805 }
11806 static int _wrap_RadioBoxNameStr_set(PyObject *) {
11807 PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only.");
11808 return 1;
11809 }
11810
11811
11812 static PyObject *_wrap_RadioBoxNameStr_get() {
11813 PyObject *pyobj;
11814
11815 {
11816 #if wxUSE_UNICODE
11817 pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11818 #else
11819 pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len());
11820 #endif
11821 }
11822 return pyobj;
11823 }
11824
11825
11826 static int _wrap_RadioButtonNameStr_set(PyObject *) {
11827 PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only.");
11828 return 1;
11829 }
11830
11831
11832 static PyObject *_wrap_RadioButtonNameStr_get() {
11833 PyObject *pyobj;
11834
11835 {
11836 #if wxUSE_UNICODE
11837 pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11838 #else
11839 pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len());
11840 #endif
11841 }
11842 return pyobj;
11843 }
11844
11845
11846 static PyObject *_wrap_new_RadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11847 PyObject *resultobj;
11848 wxWindow *arg1 = (wxWindow *) 0 ;
11849 int arg2 = (int) -1 ;
11850 wxString const &arg3_defvalue = wxPyEmptyString ;
11851 wxString *arg3 = (wxString *) &arg3_defvalue ;
11852 wxPoint const &arg4_defvalue = wxDefaultPosition ;
11853 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
11854 wxSize const &arg5_defvalue = wxDefaultSize ;
11855 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
11856 wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ;
11857 wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ;
11858 int arg7 = (int) 0 ;
11859 long arg8 = (long) wxRA_HORIZONTAL ;
11860 wxValidator const &arg9_defvalue = wxDefaultValidator ;
11861 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
11862 wxString const &arg10_defvalue = wxPyRadioBoxNameStr ;
11863 wxString *arg10 = (wxString *) &arg10_defvalue ;
11864 wxRadioBox *result;
11865 bool temp3 = false ;
11866 wxPoint temp4 ;
11867 wxSize temp5 ;
11868 bool temp6 = false ;
11869 bool temp10 = false ;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 PyObject * obj2 = 0 ;
11873 PyObject * obj3 = 0 ;
11874 PyObject * obj4 = 0 ;
11875 PyObject * obj5 = 0 ;
11876 PyObject * obj6 = 0 ;
11877 PyObject * obj7 = 0 ;
11878 PyObject * obj8 = 0 ;
11879 PyObject * obj9 = 0 ;
11880 char *kwnames[] = {
11881 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
11882 };
11883
11884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
11885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
11886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11887 if (obj1) {
11888 arg2 = (int)SWIG_As_int(obj1);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 }
11891 if (obj2) {
11892 {
11893 arg3 = wxString_in_helper(obj2);
11894 if (arg3 == NULL) SWIG_fail;
11895 temp3 = true;
11896 }
11897 }
11898 if (obj3) {
11899 {
11900 arg4 = &temp4;
11901 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11902 }
11903 }
11904 if (obj4) {
11905 {
11906 arg5 = &temp5;
11907 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
11908 }
11909 }
11910 if (obj5) {
11911 {
11912 if (! PySequence_Check(obj5)) {
11913 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
11914 SWIG_fail;
11915 }
11916 arg6 = new wxArrayString;
11917 temp6 = true;
11918 int i, len=PySequence_Length(obj5);
11919 for (i=0; i<len; i++) {
11920 PyObject* item = PySequence_GetItem(obj5, i);
11921 #if wxUSE_UNICODE
11922 PyObject* str = PyObject_Unicode(item);
11923 #else
11924 PyObject* str = PyObject_Str(item);
11925 #endif
11926 if (PyErr_Occurred()) SWIG_fail;
11927 arg6->Add(Py2wxString(str));
11928 Py_DECREF(item);
11929 Py_DECREF(str);
11930 }
11931 }
11932 }
11933 if (obj6) {
11934 arg7 = (int)SWIG_As_int(obj6);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 if (obj7) {
11938 arg8 = (long)SWIG_As_long(obj7);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 if (obj8) {
11942 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
11943 SWIG_POINTER_EXCEPTION | 0)) == -1)
11944 SWIG_fail;
11945 if (arg9 == NULL) {
11946 PyErr_SetString(PyExc_TypeError,"null reference");
11947 SWIG_fail;
11948 }
11949 }
11950 if (obj9) {
11951 {
11952 arg10 = wxString_in_helper(obj9);
11953 if (arg10 == NULL) SWIG_fail;
11954 temp10 = true;
11955 }
11956 }
11957 {
11958 if (!wxPyCheckForApp()) SWIG_fail;
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 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);
11961
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
11966 {
11967 if (temp3)
11968 delete arg3;
11969 }
11970 {
11971 if (temp6) delete arg6;
11972 }
11973 {
11974 if (temp10)
11975 delete arg10;
11976 }
11977 return resultobj;
11978 fail:
11979 {
11980 if (temp3)
11981 delete arg3;
11982 }
11983 {
11984 if (temp6) delete arg6;
11985 }
11986 {
11987 if (temp10)
11988 delete arg10;
11989 }
11990 return NULL;
11991 }
11992
11993
11994 static PyObject *_wrap_new_PreRadioBox(PyObject *, PyObject *args, PyObject *kwargs) {
11995 PyObject *resultobj;
11996 wxRadioBox *result;
11997 char *kwnames[] = {
11998 NULL
11999 };
12000
12001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail;
12002 {
12003 if (!wxPyCheckForApp()) SWIG_fail;
12004 PyThreadState* __tstate = wxPyBeginAllowThreads();
12005 result = (wxRadioBox *)new wxRadioBox();
12006
12007 wxPyEndAllowThreads(__tstate);
12008 if (PyErr_Occurred()) SWIG_fail;
12009 }
12010 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1);
12011 return resultobj;
12012 fail:
12013 return NULL;
12014 }
12015
12016
12017 static PyObject *_wrap_RadioBox_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12018 PyObject *resultobj;
12019 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12020 wxWindow *arg2 = (wxWindow *) 0 ;
12021 int arg3 = (int) -1 ;
12022 wxString const &arg4_defvalue = wxPyEmptyString ;
12023 wxString *arg4 = (wxString *) &arg4_defvalue ;
12024 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12025 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12026 wxSize const &arg6_defvalue = wxDefaultSize ;
12027 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12028 wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ;
12029 wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ;
12030 int arg8 = (int) 0 ;
12031 long arg9 = (long) wxRA_HORIZONTAL ;
12032 wxValidator const &arg10_defvalue = wxDefaultValidator ;
12033 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
12034 wxString const &arg11_defvalue = wxPyRadioBoxNameStr ;
12035 wxString *arg11 = (wxString *) &arg11_defvalue ;
12036 bool result;
12037 bool temp4 = false ;
12038 wxPoint temp5 ;
12039 wxSize temp6 ;
12040 bool temp7 = false ;
12041 bool temp11 = false ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 PyObject * obj2 = 0 ;
12045 PyObject * obj3 = 0 ;
12046 PyObject * obj4 = 0 ;
12047 PyObject * obj5 = 0 ;
12048 PyObject * obj6 = 0 ;
12049 PyObject * obj7 = 0 ;
12050 PyObject * obj8 = 0 ;
12051 PyObject * obj9 = 0 ;
12052 PyObject * obj10 = 0 ;
12053 char *kwnames[] = {
12054 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL
12055 };
12056
12057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
12058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12062 if (obj2) {
12063 arg3 = (int)SWIG_As_int(obj2);
12064 if (PyErr_Occurred()) SWIG_fail;
12065 }
12066 if (obj3) {
12067 {
12068 arg4 = wxString_in_helper(obj3);
12069 if (arg4 == NULL) SWIG_fail;
12070 temp4 = true;
12071 }
12072 }
12073 if (obj4) {
12074 {
12075 arg5 = &temp5;
12076 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12077 }
12078 }
12079 if (obj5) {
12080 {
12081 arg6 = &temp6;
12082 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12083 }
12084 }
12085 if (obj6) {
12086 {
12087 if (! PySequence_Check(obj6)) {
12088 PyErr_SetString(PyExc_TypeError, "Sequence of strings expected.");
12089 SWIG_fail;
12090 }
12091 arg7 = new wxArrayString;
12092 temp7 = true;
12093 int i, len=PySequence_Length(obj6);
12094 for (i=0; i<len; i++) {
12095 PyObject* item = PySequence_GetItem(obj6, i);
12096 #if wxUSE_UNICODE
12097 PyObject* str = PyObject_Unicode(item);
12098 #else
12099 PyObject* str = PyObject_Str(item);
12100 #endif
12101 if (PyErr_Occurred()) SWIG_fail;
12102 arg7->Add(Py2wxString(str));
12103 Py_DECREF(item);
12104 Py_DECREF(str);
12105 }
12106 }
12107 }
12108 if (obj7) {
12109 arg8 = (int)SWIG_As_int(obj7);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 if (obj8) {
12113 arg9 = (long)SWIG_As_long(obj8);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 if (obj9) {
12117 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
12118 SWIG_POINTER_EXCEPTION | 0)) == -1)
12119 SWIG_fail;
12120 if (arg10 == NULL) {
12121 PyErr_SetString(PyExc_TypeError,"null reference");
12122 SWIG_fail;
12123 }
12124 }
12125 if (obj10) {
12126 {
12127 arg11 = wxString_in_helper(obj10);
12128 if (arg11 == NULL) SWIG_fail;
12129 temp11 = true;
12130 }
12131 }
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 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);
12135
12136 wxPyEndAllowThreads(__tstate);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 {
12140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12141 }
12142 {
12143 if (temp4)
12144 delete arg4;
12145 }
12146 {
12147 if (temp7) delete arg7;
12148 }
12149 {
12150 if (temp11)
12151 delete arg11;
12152 }
12153 return resultobj;
12154 fail:
12155 {
12156 if (temp4)
12157 delete arg4;
12158 }
12159 {
12160 if (temp7) delete arg7;
12161 }
12162 {
12163 if (temp11)
12164 delete arg11;
12165 }
12166 return NULL;
12167 }
12168
12169
12170 static PyObject *_wrap_RadioBox_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12171 PyObject *resultobj;
12172 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12173 int arg2 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self",(char *) "n", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 arg2 = (int)SWIG_As_int(obj1);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 {
12186 PyThreadState* __tstate = wxPyBeginAllowThreads();
12187 (arg1)->SetSelection(arg2);
12188
12189 wxPyEndAllowThreads(__tstate);
12190 if (PyErr_Occurred()) SWIG_fail;
12191 }
12192 Py_INCREF(Py_None); resultobj = Py_None;
12193 return resultobj;
12194 fail:
12195 return NULL;
12196 }
12197
12198
12199 static PyObject *_wrap_RadioBox_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12200 PyObject *resultobj;
12201 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12202 int result;
12203 PyObject * obj0 = 0 ;
12204 char *kwnames[] = {
12205 (char *) "self", NULL
12206 };
12207
12208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail;
12209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12211 {
12212 PyThreadState* __tstate = wxPyBeginAllowThreads();
12213 result = (int)((wxRadioBox const *)arg1)->GetSelection();
12214
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = SWIG_From_int((int)result);
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12226 PyObject *resultobj;
12227 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12228 wxString result;
12229 PyObject * obj0 = 0 ;
12230 char *kwnames[] = {
12231 (char *) "self", NULL
12232 };
12233
12234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail;
12235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = ((wxRadioBox const *)arg1)->GetStringSelection();
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 {
12245 #if wxUSE_UNICODE
12246 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12247 #else
12248 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12249 #endif
12250 }
12251 return resultobj;
12252 fail:
12253 return NULL;
12254 }
12255
12256
12257 static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *, PyObject *args, PyObject *kwargs) {
12258 PyObject *resultobj;
12259 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12260 wxString *arg2 = 0 ;
12261 bool result;
12262 bool temp2 = false ;
12263 PyObject * obj0 = 0 ;
12264 PyObject * obj1 = 0 ;
12265 char *kwnames[] = {
12266 (char *) "self",(char *) "s", NULL
12267 };
12268
12269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail;
12270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12272 {
12273 arg2 = wxString_in_helper(obj1);
12274 if (arg2 == NULL) SWIG_fail;
12275 temp2 = true;
12276 }
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2);
12280
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12286 }
12287 {
12288 if (temp2)
12289 delete arg2;
12290 }
12291 return resultobj;
12292 fail:
12293 {
12294 if (temp2)
12295 delete arg2;
12296 }
12297 return NULL;
12298 }
12299
12300
12301 static PyObject *_wrap_RadioBox_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
12302 PyObject *resultobj;
12303 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12304 int result;
12305 PyObject * obj0 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12313 {
12314 PyThreadState* __tstate = wxPyBeginAllowThreads();
12315 result = (int)((wxRadioBox const *)arg1)->GetCount();
12316
12317 wxPyEndAllowThreads(__tstate);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 resultobj = SWIG_From_int((int)result);
12321 return resultobj;
12322 fail:
12323 return NULL;
12324 }
12325
12326
12327 static PyObject *_wrap_RadioBox_FindString(PyObject *, PyObject *args, PyObject *kwargs) {
12328 PyObject *resultobj;
12329 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12330 wxString *arg2 = 0 ;
12331 int result;
12332 bool temp2 = false ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 char *kwnames[] = {
12336 (char *) "self",(char *) "s", NULL
12337 };
12338
12339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail;
12340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12342 {
12343 arg2 = wxString_in_helper(obj1);
12344 if (arg2 == NULL) SWIG_fail;
12345 temp2 = true;
12346 }
12347 {
12348 PyThreadState* __tstate = wxPyBeginAllowThreads();
12349 result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2);
12350
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_From_int((int)result);
12355 {
12356 if (temp2)
12357 delete arg2;
12358 }
12359 return resultobj;
12360 fail:
12361 {
12362 if (temp2)
12363 delete arg2;
12364 }
12365 return NULL;
12366 }
12367
12368
12369 static PyObject *_wrap_RadioBox_GetString(PyObject *, PyObject *args, PyObject *kwargs) {
12370 PyObject *resultobj;
12371 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12372 int arg2 ;
12373 wxString result;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char *kwnames[] = {
12377 (char *) "self",(char *) "n", NULL
12378 };
12379
12380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail;
12381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12383 arg2 = (int)SWIG_As_int(obj1);
12384 if (PyErr_Occurred()) SWIG_fail;
12385 {
12386 PyThreadState* __tstate = wxPyBeginAllowThreads();
12387 result = ((wxRadioBox const *)arg1)->GetString(arg2);
12388
12389 wxPyEndAllowThreads(__tstate);
12390 if (PyErr_Occurred()) SWIG_fail;
12391 }
12392 {
12393 #if wxUSE_UNICODE
12394 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12395 #else
12396 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12397 #endif
12398 }
12399 return resultobj;
12400 fail:
12401 return NULL;
12402 }
12403
12404
12405 static PyObject *_wrap_RadioBox_SetString(PyObject *, PyObject *args, PyObject *kwargs) {
12406 PyObject *resultobj;
12407 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12408 int arg2 ;
12409 wxString *arg3 = 0 ;
12410 bool temp3 = false ;
12411 PyObject * obj0 = 0 ;
12412 PyObject * obj1 = 0 ;
12413 PyObject * obj2 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "self",(char *) "n",(char *) "label", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12421 arg2 = (int)SWIG_As_int(obj1);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 {
12424 arg3 = wxString_in_helper(obj2);
12425 if (arg3 == NULL) SWIG_fail;
12426 temp3 = true;
12427 }
12428 {
12429 PyThreadState* __tstate = wxPyBeginAllowThreads();
12430 (arg1)->SetString(arg2,(wxString const &)*arg3);
12431
12432 wxPyEndAllowThreads(__tstate);
12433 if (PyErr_Occurred()) SWIG_fail;
12434 }
12435 Py_INCREF(Py_None); resultobj = Py_None;
12436 {
12437 if (temp3)
12438 delete arg3;
12439 }
12440 return resultobj;
12441 fail:
12442 {
12443 if (temp3)
12444 delete arg3;
12445 }
12446 return NULL;
12447 }
12448
12449
12450 static PyObject *_wrap_RadioBox_EnableItem(PyObject *, PyObject *args, PyObject *kwargs) {
12451 PyObject *resultobj;
12452 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12453 int arg2 ;
12454 bool arg3 = (bool) true ;
12455 PyObject * obj0 = 0 ;
12456 PyObject * obj1 = 0 ;
12457 PyObject * obj2 = 0 ;
12458 char *kwnames[] = {
12459 (char *) "self",(char *) "n",(char *) "enable", NULL
12460 };
12461
12462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12465 arg2 = (int)SWIG_As_int(obj1);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 if (obj2) {
12468 arg3 = (bool)SWIG_As_bool(obj2);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 {
12472 PyThreadState* __tstate = wxPyBeginAllowThreads();
12473 (arg1)->Enable(arg2,arg3);
12474
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 Py_INCREF(Py_None); resultobj = Py_None;
12479 return resultobj;
12480 fail:
12481 return NULL;
12482 }
12483
12484
12485 static PyObject *_wrap_RadioBox_ShowItem(PyObject *, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12488 int arg2 ;
12489 bool arg3 = (bool) true ;
12490 PyObject * obj0 = 0 ;
12491 PyObject * obj1 = 0 ;
12492 PyObject * obj2 = 0 ;
12493 char *kwnames[] = {
12494 (char *) "self",(char *) "n",(char *) "show", NULL
12495 };
12496
12497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
12498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12500 arg2 = (int)SWIG_As_int(obj1);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 if (obj2) {
12503 arg3 = (bool)SWIG_As_bool(obj2);
12504 if (PyErr_Occurred()) SWIG_fail;
12505 }
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 (arg1)->Show(arg2,arg3);
12509
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 Py_INCREF(Py_None); resultobj = Py_None;
12514 return resultobj;
12515 fail:
12516 return NULL;
12517 }
12518
12519
12520 static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
12521 PyObject *resultobj;
12522 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12523 int result;
12524 PyObject * obj0 = 0 ;
12525 char *kwnames[] = {
12526 (char *) "self", NULL
12527 };
12528
12529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail;
12530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12532 {
12533 PyThreadState* __tstate = wxPyBeginAllowThreads();
12534 result = (int)((wxRadioBox const *)arg1)->GetColumnCount();
12535
12536 wxPyEndAllowThreads(__tstate);
12537 if (PyErr_Occurred()) SWIG_fail;
12538 }
12539 resultobj = SWIG_From_int((int)result);
12540 return resultobj;
12541 fail:
12542 return NULL;
12543 }
12544
12545
12546 static PyObject *_wrap_RadioBox_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
12547 PyObject *resultobj;
12548 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12549 int result;
12550 PyObject * obj0 = 0 ;
12551 char *kwnames[] = {
12552 (char *) "self", NULL
12553 };
12554
12555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail;
12556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12558 {
12559 PyThreadState* __tstate = wxPyBeginAllowThreads();
12560 result = (int)((wxRadioBox const *)arg1)->GetRowCount();
12561
12562 wxPyEndAllowThreads(__tstate);
12563 if (PyErr_Occurred()) SWIG_fail;
12564 }
12565 resultobj = SWIG_From_int((int)result);
12566 return resultobj;
12567 fail:
12568 return NULL;
12569 }
12570
12571
12572 static PyObject *_wrap_RadioBox_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
12573 PyObject *resultobj;
12574 wxRadioBox *arg1 = (wxRadioBox *) 0 ;
12575 int arg2 ;
12576 int arg3 ;
12577 long arg4 ;
12578 int result;
12579 PyObject * obj0 = 0 ;
12580 PyObject * obj1 = 0 ;
12581 PyObject * obj2 = 0 ;
12582 PyObject * obj3 = 0 ;
12583 char *kwnames[] = {
12584 (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL
12585 };
12586
12587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox,
12589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12590 arg2 = (int)SWIG_As_int(obj1);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 arg3 = (int)SWIG_As_int(obj2);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 arg4 = (long)SWIG_As_long(obj3);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 {
12597 PyThreadState* __tstate = wxPyBeginAllowThreads();
12598 result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4);
12599
12600 wxPyEndAllowThreads(__tstate);
12601 if (PyErr_Occurred()) SWIG_fail;
12602 }
12603 resultobj = SWIG_From_int((int)result);
12604 return resultobj;
12605 fail:
12606 return NULL;
12607 }
12608
12609
12610 static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12611 PyObject *resultobj;
12612 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12613 wxVisualAttributes result;
12614 PyObject * obj0 = 0 ;
12615 char *kwnames[] = {
12616 (char *) "variant", NULL
12617 };
12618
12619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12620 if (obj0) {
12621 arg1 = (int)SWIG_As_int(obj0);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 {
12625 if (!wxPyCheckForApp()) SWIG_fail;
12626 PyThreadState* __tstate = wxPyBeginAllowThreads();
12627 result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1);
12628
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 {
12633 wxVisualAttributes * resultptr;
12634 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12635 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12636 }
12637 return resultobj;
12638 fail:
12639 return NULL;
12640 }
12641
12642
12643 static PyObject * RadioBox_swigregister(PyObject *, PyObject *args) {
12644 PyObject *obj;
12645 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12646 SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj);
12647 Py_INCREF(obj);
12648 return Py_BuildValue((char *)"");
12649 }
12650 static PyObject *_wrap_new_RadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxWindow *arg1 = (wxWindow *) 0 ;
12653 int arg2 = (int) -1 ;
12654 wxString const &arg3_defvalue = wxPyEmptyString ;
12655 wxString *arg3 = (wxString *) &arg3_defvalue ;
12656 wxPoint const &arg4_defvalue = wxDefaultPosition ;
12657 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
12658 wxSize const &arg5_defvalue = wxDefaultSize ;
12659 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
12660 long arg6 = (long) 0 ;
12661 wxValidator const &arg7_defvalue = wxDefaultValidator ;
12662 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
12663 wxString const &arg8_defvalue = wxPyRadioButtonNameStr ;
12664 wxString *arg8 = (wxString *) &arg8_defvalue ;
12665 wxRadioButton *result;
12666 bool temp3 = false ;
12667 wxPoint temp4 ;
12668 wxSize temp5 ;
12669 bool temp8 = false ;
12670 PyObject * obj0 = 0 ;
12671 PyObject * obj1 = 0 ;
12672 PyObject * obj2 = 0 ;
12673 PyObject * obj3 = 0 ;
12674 PyObject * obj4 = 0 ;
12675 PyObject * obj5 = 0 ;
12676 PyObject * obj6 = 0 ;
12677 PyObject * obj7 = 0 ;
12678 char *kwnames[] = {
12679 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12680 };
12681
12682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
12684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12685 if (obj1) {
12686 arg2 = (int)SWIG_As_int(obj1);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 }
12689 if (obj2) {
12690 {
12691 arg3 = wxString_in_helper(obj2);
12692 if (arg3 == NULL) SWIG_fail;
12693 temp3 = true;
12694 }
12695 }
12696 if (obj3) {
12697 {
12698 arg4 = &temp4;
12699 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
12700 }
12701 }
12702 if (obj4) {
12703 {
12704 arg5 = &temp5;
12705 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
12706 }
12707 }
12708 if (obj5) {
12709 arg6 = (long)SWIG_As_long(obj5);
12710 if (PyErr_Occurred()) SWIG_fail;
12711 }
12712 if (obj6) {
12713 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1)
12715 SWIG_fail;
12716 if (arg7 == NULL) {
12717 PyErr_SetString(PyExc_TypeError,"null reference");
12718 SWIG_fail;
12719 }
12720 }
12721 if (obj7) {
12722 {
12723 arg8 = wxString_in_helper(obj7);
12724 if (arg8 == NULL) SWIG_fail;
12725 temp8 = true;
12726 }
12727 }
12728 {
12729 if (!wxPyCheckForApp()) SWIG_fail;
12730 PyThreadState* __tstate = wxPyBeginAllowThreads();
12731 result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
12732
12733 wxPyEndAllowThreads(__tstate);
12734 if (PyErr_Occurred()) SWIG_fail;
12735 }
12736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12737 {
12738 if (temp3)
12739 delete arg3;
12740 }
12741 {
12742 if (temp8)
12743 delete arg8;
12744 }
12745 return resultobj;
12746 fail:
12747 {
12748 if (temp3)
12749 delete arg3;
12750 }
12751 {
12752 if (temp8)
12753 delete arg8;
12754 }
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_new_PreRadioButton(PyObject *, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxRadioButton *result;
12762 char *kwnames[] = {
12763 NULL
12764 };
12765
12766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail;
12767 {
12768 if (!wxPyCheckForApp()) SWIG_fail;
12769 PyThreadState* __tstate = wxPyBeginAllowThreads();
12770 result = (wxRadioButton *)new wxRadioButton();
12771
12772 wxPyEndAllowThreads(__tstate);
12773 if (PyErr_Occurred()) SWIG_fail;
12774 }
12775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1);
12776 return resultobj;
12777 fail:
12778 return NULL;
12779 }
12780
12781
12782 static PyObject *_wrap_RadioButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
12783 PyObject *resultobj;
12784 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12785 wxWindow *arg2 = (wxWindow *) 0 ;
12786 int arg3 = (int) -1 ;
12787 wxString const &arg4_defvalue = wxPyEmptyString ;
12788 wxString *arg4 = (wxString *) &arg4_defvalue ;
12789 wxPoint const &arg5_defvalue = wxDefaultPosition ;
12790 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
12791 wxSize const &arg6_defvalue = wxDefaultSize ;
12792 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
12793 long arg7 = (long) 0 ;
12794 wxValidator const &arg8_defvalue = wxDefaultValidator ;
12795 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
12796 wxString const &arg9_defvalue = wxPyRadioButtonNameStr ;
12797 wxString *arg9 = (wxString *) &arg9_defvalue ;
12798 bool result;
12799 bool temp4 = false ;
12800 wxPoint temp5 ;
12801 wxSize temp6 ;
12802 bool temp9 = false ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 PyObject * obj2 = 0 ;
12806 PyObject * obj3 = 0 ;
12807 PyObject * obj4 = 0 ;
12808 PyObject * obj5 = 0 ;
12809 PyObject * obj6 = 0 ;
12810 PyObject * obj7 = 0 ;
12811 PyObject * obj8 = 0 ;
12812 char *kwnames[] = {
12813 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
12814 };
12815
12816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
12817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12819 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
12820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12821 if (obj2) {
12822 arg3 = (int)SWIG_As_int(obj2);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 if (obj3) {
12826 {
12827 arg4 = wxString_in_helper(obj3);
12828 if (arg4 == NULL) SWIG_fail;
12829 temp4 = true;
12830 }
12831 }
12832 if (obj4) {
12833 {
12834 arg5 = &temp5;
12835 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12836 }
12837 }
12838 if (obj5) {
12839 {
12840 arg6 = &temp6;
12841 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
12842 }
12843 }
12844 if (obj6) {
12845 arg7 = (long)SWIG_As_long(obj6);
12846 if (PyErr_Occurred()) SWIG_fail;
12847 }
12848 if (obj7) {
12849 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
12850 SWIG_POINTER_EXCEPTION | 0)) == -1)
12851 SWIG_fail;
12852 if (arg8 == NULL) {
12853 PyErr_SetString(PyExc_TypeError,"null reference");
12854 SWIG_fail;
12855 }
12856 }
12857 if (obj8) {
12858 {
12859 arg9 = wxString_in_helper(obj8);
12860 if (arg9 == NULL) SWIG_fail;
12861 temp9 = true;
12862 }
12863 }
12864 {
12865 PyThreadState* __tstate = wxPyBeginAllowThreads();
12866 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
12867
12868 wxPyEndAllowThreads(__tstate);
12869 if (PyErr_Occurred()) SWIG_fail;
12870 }
12871 {
12872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12873 }
12874 {
12875 if (temp4)
12876 delete arg4;
12877 }
12878 {
12879 if (temp9)
12880 delete arg9;
12881 }
12882 return resultobj;
12883 fail:
12884 {
12885 if (temp4)
12886 delete arg4;
12887 }
12888 {
12889 if (temp9)
12890 delete arg9;
12891 }
12892 return NULL;
12893 }
12894
12895
12896 static PyObject *_wrap_RadioButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12897 PyObject *resultobj;
12898 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12899 bool result;
12900 PyObject * obj0 = 0 ;
12901 char *kwnames[] = {
12902 (char *) "self", NULL
12903 };
12904
12905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail;
12906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 result = (bool)(arg1)->GetValue();
12911
12912 wxPyEndAllowThreads(__tstate);
12913 if (PyErr_Occurred()) SWIG_fail;
12914 }
12915 {
12916 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12917 }
12918 return resultobj;
12919 fail:
12920 return NULL;
12921 }
12922
12923
12924 static PyObject *_wrap_RadioButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj;
12926 wxRadioButton *arg1 = (wxRadioButton *) 0 ;
12927 bool arg2 ;
12928 PyObject * obj0 = 0 ;
12929 PyObject * obj1 = 0 ;
12930 char *kwnames[] = {
12931 (char *) "self",(char *) "value", NULL
12932 };
12933
12934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
12935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton,
12936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12937 arg2 = (bool)SWIG_As_bool(obj1);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 {
12940 PyThreadState* __tstate = wxPyBeginAllowThreads();
12941 (arg1)->SetValue(arg2);
12942
12943 wxPyEndAllowThreads(__tstate);
12944 if (PyErr_Occurred()) SWIG_fail;
12945 }
12946 Py_INCREF(Py_None); resultobj = Py_None;
12947 return resultobj;
12948 fail:
12949 return NULL;
12950 }
12951
12952
12953 static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
12954 PyObject *resultobj;
12955 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
12956 wxVisualAttributes result;
12957 PyObject * obj0 = 0 ;
12958 char *kwnames[] = {
12959 (char *) "variant", NULL
12960 };
12961
12962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
12963 if (obj0) {
12964 arg1 = (int)SWIG_As_int(obj0);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 {
12968 if (!wxPyCheckForApp()) SWIG_fail;
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
12971
12972 wxPyEndAllowThreads(__tstate);
12973 if (PyErr_Occurred()) SWIG_fail;
12974 }
12975 {
12976 wxVisualAttributes * resultptr;
12977 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
12978 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
12979 }
12980 return resultobj;
12981 fail:
12982 return NULL;
12983 }
12984
12985
12986 static PyObject * RadioButton_swigregister(PyObject *, PyObject *args) {
12987 PyObject *obj;
12988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
12989 SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj);
12990 Py_INCREF(obj);
12991 return Py_BuildValue((char *)"");
12992 }
12993 static int _wrap_SliderNameStr_set(PyObject *) {
12994 PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only.");
12995 return 1;
12996 }
12997
12998
12999 static PyObject *_wrap_SliderNameStr_get() {
13000 PyObject *pyobj;
13001
13002 {
13003 #if wxUSE_UNICODE
13004 pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13005 #else
13006 pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len());
13007 #endif
13008 }
13009 return pyobj;
13010 }
13011
13012
13013 static PyObject *_wrap_new_Slider(PyObject *, PyObject *args, PyObject *kwargs) {
13014 PyObject *resultobj;
13015 wxWindow *arg1 = (wxWindow *) 0 ;
13016 int arg2 = (int) -1 ;
13017 int arg3 = (int) 0 ;
13018 int arg4 = (int) 0 ;
13019 int arg5 = (int) 100 ;
13020 wxPoint const &arg6_defvalue = wxDefaultPosition ;
13021 wxPoint *arg6 = (wxPoint *) &arg6_defvalue ;
13022 wxSize const &arg7_defvalue = wxDefaultSize ;
13023 wxSize *arg7 = (wxSize *) &arg7_defvalue ;
13024 long arg8 = (long) wxSL_HORIZONTAL ;
13025 wxValidator const &arg9_defvalue = wxDefaultValidator ;
13026 wxValidator *arg9 = (wxValidator *) &arg9_defvalue ;
13027 wxString const &arg10_defvalue = wxPySliderNameStr ;
13028 wxString *arg10 = (wxString *) &arg10_defvalue ;
13029 wxSlider *result;
13030 wxPoint temp6 ;
13031 wxSize temp7 ;
13032 bool temp10 = false ;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 PyObject * obj2 = 0 ;
13036 PyObject * obj3 = 0 ;
13037 PyObject * obj4 = 0 ;
13038 PyObject * obj5 = 0 ;
13039 PyObject * obj6 = 0 ;
13040 PyObject * obj7 = 0 ;
13041 PyObject * obj8 = 0 ;
13042 PyObject * obj9 = 0 ;
13043 char *kwnames[] = {
13044 (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13045 };
13046
13047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
13048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13050 if (obj1) {
13051 arg2 = (int)SWIG_As_int(obj1);
13052 if (PyErr_Occurred()) SWIG_fail;
13053 }
13054 if (obj2) {
13055 arg3 = (int)SWIG_As_int(obj2);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 if (obj3) {
13059 arg4 = (int)SWIG_As_int(obj3);
13060 if (PyErr_Occurred()) SWIG_fail;
13061 }
13062 if (obj4) {
13063 arg5 = (int)SWIG_As_int(obj4);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 if (obj5) {
13067 {
13068 arg6 = &temp6;
13069 if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail;
13070 }
13071 }
13072 if (obj6) {
13073 {
13074 arg7 = &temp7;
13075 if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail;
13076 }
13077 }
13078 if (obj7) {
13079 arg8 = (long)SWIG_As_long(obj7);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 if (obj8) {
13083 if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator,
13084 SWIG_POINTER_EXCEPTION | 0)) == -1)
13085 SWIG_fail;
13086 if (arg9 == NULL) {
13087 PyErr_SetString(PyExc_TypeError,"null reference");
13088 SWIG_fail;
13089 }
13090 }
13091 if (obj9) {
13092 {
13093 arg10 = wxString_in_helper(obj9);
13094 if (arg10 == NULL) SWIG_fail;
13095 temp10 = true;
13096 }
13097 }
13098 {
13099 if (!wxPyCheckForApp()) SWIG_fail;
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10);
13102
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13107 {
13108 if (temp10)
13109 delete arg10;
13110 }
13111 return resultobj;
13112 fail:
13113 {
13114 if (temp10)
13115 delete arg10;
13116 }
13117 return NULL;
13118 }
13119
13120
13121 static PyObject *_wrap_new_PreSlider(PyObject *, PyObject *args, PyObject *kwargs) {
13122 PyObject *resultobj;
13123 wxSlider *result;
13124 char *kwnames[] = {
13125 NULL
13126 };
13127
13128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail;
13129 {
13130 if (!wxPyCheckForApp()) SWIG_fail;
13131 PyThreadState* __tstate = wxPyBeginAllowThreads();
13132 result = (wxSlider *)new wxSlider();
13133
13134 wxPyEndAllowThreads(__tstate);
13135 if (PyErr_Occurred()) SWIG_fail;
13136 }
13137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1);
13138 return resultobj;
13139 fail:
13140 return NULL;
13141 }
13142
13143
13144 static PyObject *_wrap_Slider_Create(PyObject *, PyObject *args, PyObject *kwargs) {
13145 PyObject *resultobj;
13146 wxSlider *arg1 = (wxSlider *) 0 ;
13147 wxWindow *arg2 = (wxWindow *) 0 ;
13148 int arg3 = (int) -1 ;
13149 int arg4 = (int) 0 ;
13150 int arg5 = (int) 0 ;
13151 int arg6 = (int) 100 ;
13152 wxPoint const &arg7_defvalue = wxDefaultPosition ;
13153 wxPoint *arg7 = (wxPoint *) &arg7_defvalue ;
13154 wxSize const &arg8_defvalue = wxDefaultSize ;
13155 wxSize *arg8 = (wxSize *) &arg8_defvalue ;
13156 long arg9 = (long) wxSL_HORIZONTAL ;
13157 wxValidator const &arg10_defvalue = wxDefaultValidator ;
13158 wxValidator *arg10 = (wxValidator *) &arg10_defvalue ;
13159 wxString const &arg11_defvalue = wxPySliderNameStr ;
13160 wxString *arg11 = (wxString *) &arg11_defvalue ;
13161 bool result;
13162 wxPoint temp7 ;
13163 wxSize temp8 ;
13164 bool temp11 = false ;
13165 PyObject * obj0 = 0 ;
13166 PyObject * obj1 = 0 ;
13167 PyObject * obj2 = 0 ;
13168 PyObject * obj3 = 0 ;
13169 PyObject * obj4 = 0 ;
13170 PyObject * obj5 = 0 ;
13171 PyObject * obj6 = 0 ;
13172 PyObject * obj7 = 0 ;
13173 PyObject * obj8 = 0 ;
13174 PyObject * obj9 = 0 ;
13175 PyObject * obj10 = 0 ;
13176 char *kwnames[] = {
13177 (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13178 };
13179
13180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail;
13181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13183 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
13184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13185 if (obj2) {
13186 arg3 = (int)SWIG_As_int(obj2);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 if (obj3) {
13190 arg4 = (int)SWIG_As_int(obj3);
13191 if (PyErr_Occurred()) SWIG_fail;
13192 }
13193 if (obj4) {
13194 arg5 = (int)SWIG_As_int(obj4);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 }
13197 if (obj5) {
13198 arg6 = (int)SWIG_As_int(obj5);
13199 if (PyErr_Occurred()) SWIG_fail;
13200 }
13201 if (obj6) {
13202 {
13203 arg7 = &temp7;
13204 if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail;
13205 }
13206 }
13207 if (obj7) {
13208 {
13209 arg8 = &temp8;
13210 if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail;
13211 }
13212 }
13213 if (obj8) {
13214 arg9 = (long)SWIG_As_long(obj8);
13215 if (PyErr_Occurred()) SWIG_fail;
13216 }
13217 if (obj9) {
13218 if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1)
13220 SWIG_fail;
13221 if (arg10 == NULL) {
13222 PyErr_SetString(PyExc_TypeError,"null reference");
13223 SWIG_fail;
13224 }
13225 }
13226 if (obj10) {
13227 {
13228 arg11 = wxString_in_helper(obj10);
13229 if (arg11 == NULL) SWIG_fail;
13230 temp11 = true;
13231 }
13232 }
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11);
13236
13237 wxPyEndAllowThreads(__tstate);
13238 if (PyErr_Occurred()) SWIG_fail;
13239 }
13240 {
13241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13242 }
13243 {
13244 if (temp11)
13245 delete arg11;
13246 }
13247 return resultobj;
13248 fail:
13249 {
13250 if (temp11)
13251 delete arg11;
13252 }
13253 return NULL;
13254 }
13255
13256
13257 static PyObject *_wrap_Slider_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13258 PyObject *resultobj;
13259 wxSlider *arg1 = (wxSlider *) 0 ;
13260 int result;
13261 PyObject * obj0 = 0 ;
13262 char *kwnames[] = {
13263 (char *) "self", NULL
13264 };
13265
13266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail;
13267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13269 {
13270 PyThreadState* __tstate = wxPyBeginAllowThreads();
13271 result = (int)((wxSlider const *)arg1)->GetValue();
13272
13273 wxPyEndAllowThreads(__tstate);
13274 if (PyErr_Occurred()) SWIG_fail;
13275 }
13276 resultobj = SWIG_From_int((int)result);
13277 return resultobj;
13278 fail:
13279 return NULL;
13280 }
13281
13282
13283 static PyObject *_wrap_Slider_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
13284 PyObject *resultobj;
13285 wxSlider *arg1 = (wxSlider *) 0 ;
13286 int arg2 ;
13287 PyObject * obj0 = 0 ;
13288 PyObject * obj1 = 0 ;
13289 char *kwnames[] = {
13290 (char *) "self",(char *) "value", NULL
13291 };
13292
13293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail;
13294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13296 arg2 = (int)SWIG_As_int(obj1);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 {
13299 PyThreadState* __tstate = wxPyBeginAllowThreads();
13300 (arg1)->SetValue(arg2);
13301
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 Py_INCREF(Py_None); resultobj = Py_None;
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 static PyObject *_wrap_Slider_SetRange(PyObject *, PyObject *args, PyObject *kwargs) {
13313 PyObject *resultobj;
13314 wxSlider *arg1 = (wxSlider *) 0 ;
13315 int arg2 ;
13316 int arg3 ;
13317 PyObject * obj0 = 0 ;
13318 PyObject * obj1 = 0 ;
13319 PyObject * obj2 = 0 ;
13320 char *kwnames[] = {
13321 (char *) "self",(char *) "minValue",(char *) "maxValue", NULL
13322 };
13323
13324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail;
13325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13327 arg2 = (int)SWIG_As_int(obj1);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 arg3 = (int)SWIG_As_int(obj2);
13330 if (PyErr_Occurred()) SWIG_fail;
13331 {
13332 PyThreadState* __tstate = wxPyBeginAllowThreads();
13333 (arg1)->SetRange(arg2,arg3);
13334
13335 wxPyEndAllowThreads(__tstate);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 }
13338 Py_INCREF(Py_None); resultobj = Py_None;
13339 return resultobj;
13340 fail:
13341 return NULL;
13342 }
13343
13344
13345 static PyObject *_wrap_Slider_GetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13346 PyObject *resultobj;
13347 wxSlider *arg1 = (wxSlider *) 0 ;
13348 int result;
13349 PyObject * obj0 = 0 ;
13350 char *kwnames[] = {
13351 (char *) "self", NULL
13352 };
13353
13354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail;
13355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13357 {
13358 PyThreadState* __tstate = wxPyBeginAllowThreads();
13359 result = (int)((wxSlider const *)arg1)->GetMin();
13360
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 resultobj = SWIG_From_int((int)result);
13365 return resultobj;
13366 fail:
13367 return NULL;
13368 }
13369
13370
13371 static PyObject *_wrap_Slider_GetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13372 PyObject *resultobj;
13373 wxSlider *arg1 = (wxSlider *) 0 ;
13374 int result;
13375 PyObject * obj0 = 0 ;
13376 char *kwnames[] = {
13377 (char *) "self", NULL
13378 };
13379
13380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail;
13381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13383 {
13384 PyThreadState* __tstate = wxPyBeginAllowThreads();
13385 result = (int)((wxSlider const *)arg1)->GetMax();
13386
13387 wxPyEndAllowThreads(__tstate);
13388 if (PyErr_Occurred()) SWIG_fail;
13389 }
13390 resultobj = SWIG_From_int((int)result);
13391 return resultobj;
13392 fail:
13393 return NULL;
13394 }
13395
13396
13397 static PyObject *_wrap_Slider_SetMin(PyObject *, PyObject *args, PyObject *kwargs) {
13398 PyObject *resultobj;
13399 wxSlider *arg1 = (wxSlider *) 0 ;
13400 int arg2 ;
13401 PyObject * obj0 = 0 ;
13402 PyObject * obj1 = 0 ;
13403 char *kwnames[] = {
13404 (char *) "self",(char *) "minValue", NULL
13405 };
13406
13407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail;
13408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13410 arg2 = (int)SWIG_As_int(obj1);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 {
13413 PyThreadState* __tstate = wxPyBeginAllowThreads();
13414 (arg1)->SetMin(arg2);
13415
13416 wxPyEndAllowThreads(__tstate);
13417 if (PyErr_Occurred()) SWIG_fail;
13418 }
13419 Py_INCREF(Py_None); resultobj = Py_None;
13420 return resultobj;
13421 fail:
13422 return NULL;
13423 }
13424
13425
13426 static PyObject *_wrap_Slider_SetMax(PyObject *, PyObject *args, PyObject *kwargs) {
13427 PyObject *resultobj;
13428 wxSlider *arg1 = (wxSlider *) 0 ;
13429 int arg2 ;
13430 PyObject * obj0 = 0 ;
13431 PyObject * obj1 = 0 ;
13432 char *kwnames[] = {
13433 (char *) "self",(char *) "maxValue", NULL
13434 };
13435
13436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail;
13437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13439 arg2 = (int)SWIG_As_int(obj1);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 {
13442 PyThreadState* __tstate = wxPyBeginAllowThreads();
13443 (arg1)->SetMax(arg2);
13444
13445 wxPyEndAllowThreads(__tstate);
13446 if (PyErr_Occurred()) SWIG_fail;
13447 }
13448 Py_INCREF(Py_None); resultobj = Py_None;
13449 return resultobj;
13450 fail:
13451 return NULL;
13452 }
13453
13454
13455 static PyObject *_wrap_Slider_SetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13456 PyObject *resultobj;
13457 wxSlider *arg1 = (wxSlider *) 0 ;
13458 int arg2 ;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 char *kwnames[] = {
13462 (char *) "self",(char *) "lineSize", NULL
13463 };
13464
13465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail;
13466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13468 arg2 = (int)SWIG_As_int(obj1);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 {
13471 PyThreadState* __tstate = wxPyBeginAllowThreads();
13472 (arg1)->SetLineSize(arg2);
13473
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 Py_INCREF(Py_None); resultobj = Py_None;
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 static PyObject *_wrap_Slider_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj;
13486 wxSlider *arg1 = (wxSlider *) 0 ;
13487 int arg2 ;
13488 PyObject * obj0 = 0 ;
13489 PyObject * obj1 = 0 ;
13490 char *kwnames[] = {
13491 (char *) "self",(char *) "pageSize", NULL
13492 };
13493
13494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
13495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13497 arg2 = (int)SWIG_As_int(obj1);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 (arg1)->SetPageSize(arg2);
13502
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 Py_INCREF(Py_None); resultobj = Py_None;
13507 return resultobj;
13508 fail:
13509 return NULL;
13510 }
13511
13512
13513 static PyObject *_wrap_Slider_GetLineSize(PyObject *, PyObject *args, PyObject *kwargs) {
13514 PyObject *resultobj;
13515 wxSlider *arg1 = (wxSlider *) 0 ;
13516 int result;
13517 PyObject * obj0 = 0 ;
13518 char *kwnames[] = {
13519 (char *) "self", NULL
13520 };
13521
13522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail;
13523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13525 {
13526 PyThreadState* __tstate = wxPyBeginAllowThreads();
13527 result = (int)((wxSlider const *)arg1)->GetLineSize();
13528
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 resultobj = SWIG_From_int((int)result);
13533 return resultobj;
13534 fail:
13535 return NULL;
13536 }
13537
13538
13539 static PyObject *_wrap_Slider_GetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj;
13541 wxSlider *arg1 = (wxSlider *) 0 ;
13542 int result;
13543 PyObject * obj0 = 0 ;
13544 char *kwnames[] = {
13545 (char *) "self", NULL
13546 };
13547
13548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail;
13549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13551 {
13552 PyThreadState* __tstate = wxPyBeginAllowThreads();
13553 result = (int)((wxSlider const *)arg1)->GetPageSize();
13554
13555 wxPyEndAllowThreads(__tstate);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
13558 resultobj = SWIG_From_int((int)result);
13559 return resultobj;
13560 fail:
13561 return NULL;
13562 }
13563
13564
13565 static PyObject *_wrap_Slider_SetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13566 PyObject *resultobj;
13567 wxSlider *arg1 = (wxSlider *) 0 ;
13568 int arg2 ;
13569 PyObject * obj0 = 0 ;
13570 PyObject * obj1 = 0 ;
13571 char *kwnames[] = {
13572 (char *) "self",(char *) "lenPixels", NULL
13573 };
13574
13575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail;
13576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13578 arg2 = (int)SWIG_As_int(obj1);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 {
13581 PyThreadState* __tstate = wxPyBeginAllowThreads();
13582 (arg1)->SetThumbLength(arg2);
13583
13584 wxPyEndAllowThreads(__tstate);
13585 if (PyErr_Occurred()) SWIG_fail;
13586 }
13587 Py_INCREF(Py_None); resultobj = Py_None;
13588 return resultobj;
13589 fail:
13590 return NULL;
13591 }
13592
13593
13594 static PyObject *_wrap_Slider_GetThumbLength(PyObject *, PyObject *args, PyObject *kwargs) {
13595 PyObject *resultobj;
13596 wxSlider *arg1 = (wxSlider *) 0 ;
13597 int result;
13598 PyObject * obj0 = 0 ;
13599 char *kwnames[] = {
13600 (char *) "self", NULL
13601 };
13602
13603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail;
13604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13606 {
13607 PyThreadState* __tstate = wxPyBeginAllowThreads();
13608 result = (int)((wxSlider const *)arg1)->GetThumbLength();
13609
13610 wxPyEndAllowThreads(__tstate);
13611 if (PyErr_Occurred()) SWIG_fail;
13612 }
13613 resultobj = SWIG_From_int((int)result);
13614 return resultobj;
13615 fail:
13616 return NULL;
13617 }
13618
13619
13620 static PyObject *_wrap_Slider_SetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13621 PyObject *resultobj;
13622 wxSlider *arg1 = (wxSlider *) 0 ;
13623 int arg2 ;
13624 int arg3 = (int) 1 ;
13625 PyObject * obj0 = 0 ;
13626 PyObject * obj1 = 0 ;
13627 PyObject * obj2 = 0 ;
13628 char *kwnames[] = {
13629 (char *) "self",(char *) "n",(char *) "pos", NULL
13630 };
13631
13632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail;
13633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13635 arg2 = (int)SWIG_As_int(obj1);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 if (obj2) {
13638 arg3 = (int)SWIG_As_int(obj2);
13639 if (PyErr_Occurred()) SWIG_fail;
13640 }
13641 {
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 (arg1)->SetTickFreq(arg2,arg3);
13644
13645 wxPyEndAllowThreads(__tstate);
13646 if (PyErr_Occurred()) SWIG_fail;
13647 }
13648 Py_INCREF(Py_None); resultobj = Py_None;
13649 return resultobj;
13650 fail:
13651 return NULL;
13652 }
13653
13654
13655 static PyObject *_wrap_Slider_GetTickFreq(PyObject *, PyObject *args, PyObject *kwargs) {
13656 PyObject *resultobj;
13657 wxSlider *arg1 = (wxSlider *) 0 ;
13658 int result;
13659 PyObject * obj0 = 0 ;
13660 char *kwnames[] = {
13661 (char *) "self", NULL
13662 };
13663
13664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail;
13665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13667 {
13668 PyThreadState* __tstate = wxPyBeginAllowThreads();
13669 result = (int)((wxSlider const *)arg1)->GetTickFreq();
13670
13671 wxPyEndAllowThreads(__tstate);
13672 if (PyErr_Occurred()) SWIG_fail;
13673 }
13674 resultobj = SWIG_From_int((int)result);
13675 return resultobj;
13676 fail:
13677 return NULL;
13678 }
13679
13680
13681 static PyObject *_wrap_Slider_ClearTicks(PyObject *, PyObject *args, PyObject *kwargs) {
13682 PyObject *resultobj;
13683 wxSlider *arg1 = (wxSlider *) 0 ;
13684 PyObject * obj0 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 (arg1)->ClearTicks();
13695
13696 wxPyEndAllowThreads(__tstate);
13697 if (PyErr_Occurred()) SWIG_fail;
13698 }
13699 Py_INCREF(Py_None); resultobj = Py_None;
13700 return resultobj;
13701 fail:
13702 return NULL;
13703 }
13704
13705
13706 static PyObject *_wrap_Slider_SetTick(PyObject *, PyObject *args, PyObject *kwargs) {
13707 PyObject *resultobj;
13708 wxSlider *arg1 = (wxSlider *) 0 ;
13709 int arg2 ;
13710 PyObject * obj0 = 0 ;
13711 PyObject * obj1 = 0 ;
13712 char *kwnames[] = {
13713 (char *) "self",(char *) "tickPos", NULL
13714 };
13715
13716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail;
13717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13719 arg2 = (int)SWIG_As_int(obj1);
13720 if (PyErr_Occurred()) SWIG_fail;
13721 {
13722 PyThreadState* __tstate = wxPyBeginAllowThreads();
13723 (arg1)->SetTick(arg2);
13724
13725 wxPyEndAllowThreads(__tstate);
13726 if (PyErr_Occurred()) SWIG_fail;
13727 }
13728 Py_INCREF(Py_None); resultobj = Py_None;
13729 return resultobj;
13730 fail:
13731 return NULL;
13732 }
13733
13734
13735 static PyObject *_wrap_Slider_ClearSel(PyObject *, PyObject *args, PyObject *kwargs) {
13736 PyObject *resultobj;
13737 wxSlider *arg1 = (wxSlider *) 0 ;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "self", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 (arg1)->ClearSel();
13749
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 Py_INCREF(Py_None); resultobj = Py_None;
13754 return resultobj;
13755 fail:
13756 return NULL;
13757 }
13758
13759
13760 static PyObject *_wrap_Slider_GetSelEnd(PyObject *, PyObject *args, PyObject *kwargs) {
13761 PyObject *resultobj;
13762 wxSlider *arg1 = (wxSlider *) 0 ;
13763 int result;
13764 PyObject * obj0 = 0 ;
13765 char *kwnames[] = {
13766 (char *) "self", NULL
13767 };
13768
13769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail;
13770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13772 {
13773 PyThreadState* __tstate = wxPyBeginAllowThreads();
13774 result = (int)((wxSlider const *)arg1)->GetSelEnd();
13775
13776 wxPyEndAllowThreads(__tstate);
13777 if (PyErr_Occurred()) SWIG_fail;
13778 }
13779 resultobj = SWIG_From_int((int)result);
13780 return resultobj;
13781 fail:
13782 return NULL;
13783 }
13784
13785
13786 static PyObject *_wrap_Slider_GetSelStart(PyObject *, PyObject *args, PyObject *kwargs) {
13787 PyObject *resultobj;
13788 wxSlider *arg1 = (wxSlider *) 0 ;
13789 int result;
13790 PyObject * obj0 = 0 ;
13791 char *kwnames[] = {
13792 (char *) "self", NULL
13793 };
13794
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail;
13796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 result = (int)((wxSlider const *)arg1)->GetSelStart();
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 resultobj = SWIG_From_int((int)result);
13806 return resultobj;
13807 fail:
13808 return NULL;
13809 }
13810
13811
13812 static PyObject *_wrap_Slider_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
13813 PyObject *resultobj;
13814 wxSlider *arg1 = (wxSlider *) 0 ;
13815 int arg2 ;
13816 int arg3 ;
13817 PyObject * obj0 = 0 ;
13818 PyObject * obj1 = 0 ;
13819 PyObject * obj2 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self",(char *) "min",(char *) "max", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider,
13826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13827 arg2 = (int)SWIG_As_int(obj1);
13828 if (PyErr_Occurred()) SWIG_fail;
13829 arg3 = (int)SWIG_As_int(obj2);
13830 if (PyErr_Occurred()) SWIG_fail;
13831 {
13832 PyThreadState* __tstate = wxPyBeginAllowThreads();
13833 (arg1)->SetSelection(arg2,arg3);
13834
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 Py_INCREF(Py_None); resultobj = Py_None;
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
13848 wxVisualAttributes result;
13849 PyObject * obj0 = 0 ;
13850 char *kwnames[] = {
13851 (char *) "variant", NULL
13852 };
13853
13854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
13855 if (obj0) {
13856 arg1 = (int)SWIG_As_int(obj0);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 {
13860 if (!wxPyCheckForApp()) SWIG_fail;
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1);
13863
13864 wxPyEndAllowThreads(__tstate);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 }
13867 {
13868 wxVisualAttributes * resultptr;
13869 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
13870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
13871 }
13872 return resultobj;
13873 fail:
13874 return NULL;
13875 }
13876
13877
13878 static PyObject * Slider_swigregister(PyObject *, PyObject *args) {
13879 PyObject *obj;
13880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
13881 SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj);
13882 Py_INCREF(obj);
13883 return Py_BuildValue((char *)"");
13884 }
13885 static int _wrap_ToggleButtonNameStr_set(PyObject *) {
13886 PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only.");
13887 return 1;
13888 }
13889
13890
13891 static PyObject *_wrap_ToggleButtonNameStr_get() {
13892 PyObject *pyobj;
13893
13894 {
13895 #if wxUSE_UNICODE
13896 pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13897 #else
13898 pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len());
13899 #endif
13900 }
13901 return pyobj;
13902 }
13903
13904
13905 static PyObject *_wrap_new_ToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
13906 PyObject *resultobj;
13907 wxWindow *arg1 = (wxWindow *) 0 ;
13908 int arg2 = (int) -1 ;
13909 wxString const &arg3_defvalue = wxPyEmptyString ;
13910 wxString *arg3 = (wxString *) &arg3_defvalue ;
13911 wxPoint const &arg4_defvalue = wxDefaultPosition ;
13912 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
13913 wxSize const &arg5_defvalue = wxDefaultSize ;
13914 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
13915 long arg6 = (long) 0 ;
13916 wxValidator const &arg7_defvalue = wxDefaultValidator ;
13917 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
13918 wxString const &arg8_defvalue = wxPyToggleButtonNameStr ;
13919 wxString *arg8 = (wxString *) &arg8_defvalue ;
13920 wxToggleButton *result;
13921 bool temp3 = false ;
13922 wxPoint temp4 ;
13923 wxSize temp5 ;
13924 bool temp8 = false ;
13925 PyObject * obj0 = 0 ;
13926 PyObject * obj1 = 0 ;
13927 PyObject * obj2 = 0 ;
13928 PyObject * obj3 = 0 ;
13929 PyObject * obj4 = 0 ;
13930 PyObject * obj5 = 0 ;
13931 PyObject * obj6 = 0 ;
13932 PyObject * obj7 = 0 ;
13933 char *kwnames[] = {
13934 (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
13935 };
13936
13937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
13938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
13939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13940 if (obj1) {
13941 arg2 = (int)SWIG_As_int(obj1);
13942 if (PyErr_Occurred()) SWIG_fail;
13943 }
13944 if (obj2) {
13945 {
13946 arg3 = wxString_in_helper(obj2);
13947 if (arg3 == NULL) SWIG_fail;
13948 temp3 = true;
13949 }
13950 }
13951 if (obj3) {
13952 {
13953 arg4 = &temp4;
13954 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
13955 }
13956 }
13957 if (obj4) {
13958 {
13959 arg5 = &temp5;
13960 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
13961 }
13962 }
13963 if (obj5) {
13964 arg6 = (long)SWIG_As_long(obj5);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 if (obj6) {
13968 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
13969 SWIG_POINTER_EXCEPTION | 0)) == -1)
13970 SWIG_fail;
13971 if (arg7 == NULL) {
13972 PyErr_SetString(PyExc_TypeError,"null reference");
13973 SWIG_fail;
13974 }
13975 }
13976 if (obj7) {
13977 {
13978 arg8 = wxString_in_helper(obj7);
13979 if (arg8 == NULL) SWIG_fail;
13980 temp8 = true;
13981 }
13982 }
13983 {
13984 if (!wxPyCheckForApp()) SWIG_fail;
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
13992 {
13993 if (temp3)
13994 delete arg3;
13995 }
13996 {
13997 if (temp8)
13998 delete arg8;
13999 }
14000 return resultobj;
14001 fail:
14002 {
14003 if (temp3)
14004 delete arg3;
14005 }
14006 {
14007 if (temp8)
14008 delete arg8;
14009 }
14010 return NULL;
14011 }
14012
14013
14014 static PyObject *_wrap_new_PreToggleButton(PyObject *, PyObject *args, PyObject *kwargs) {
14015 PyObject *resultobj;
14016 wxToggleButton *result;
14017 char *kwnames[] = {
14018 NULL
14019 };
14020
14021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail;
14022 {
14023 if (!wxPyCheckForApp()) SWIG_fail;
14024 PyThreadState* __tstate = wxPyBeginAllowThreads();
14025 result = (wxToggleButton *)new wxToggleButton();
14026
14027 wxPyEndAllowThreads(__tstate);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 }
14030 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1);
14031 return resultobj;
14032 fail:
14033 return NULL;
14034 }
14035
14036
14037 static PyObject *_wrap_ToggleButton_Create(PyObject *, PyObject *args, PyObject *kwargs) {
14038 PyObject *resultobj;
14039 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14040 wxWindow *arg2 = (wxWindow *) 0 ;
14041 int arg3 = (int) -1 ;
14042 wxString const &arg4_defvalue = wxPyEmptyString ;
14043 wxString *arg4 = (wxString *) &arg4_defvalue ;
14044 wxPoint const &arg5_defvalue = wxDefaultPosition ;
14045 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
14046 wxSize const &arg6_defvalue = wxDefaultSize ;
14047 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
14048 long arg7 = (long) 0 ;
14049 wxValidator const &arg8_defvalue = wxDefaultValidator ;
14050 wxValidator *arg8 = (wxValidator *) &arg8_defvalue ;
14051 wxString const &arg9_defvalue = wxPyToggleButtonNameStr ;
14052 wxString *arg9 = (wxString *) &arg9_defvalue ;
14053 bool result;
14054 bool temp4 = false ;
14055 wxPoint temp5 ;
14056 wxSize temp6 ;
14057 bool temp9 = false ;
14058 PyObject * obj0 = 0 ;
14059 PyObject * obj1 = 0 ;
14060 PyObject * obj2 = 0 ;
14061 PyObject * obj3 = 0 ;
14062 PyObject * obj4 = 0 ;
14063 PyObject * obj5 = 0 ;
14064 PyObject * obj6 = 0 ;
14065 PyObject * obj7 = 0 ;
14066 PyObject * obj8 = 0 ;
14067 char *kwnames[] = {
14068 (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
14069 };
14070
14071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
14072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14076 if (obj2) {
14077 arg3 = (int)SWIG_As_int(obj2);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 if (obj3) {
14081 {
14082 arg4 = wxString_in_helper(obj3);
14083 if (arg4 == NULL) SWIG_fail;
14084 temp4 = true;
14085 }
14086 }
14087 if (obj4) {
14088 {
14089 arg5 = &temp5;
14090 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14091 }
14092 }
14093 if (obj5) {
14094 {
14095 arg6 = &temp6;
14096 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
14097 }
14098 }
14099 if (obj6) {
14100 arg7 = (long)SWIG_As_long(obj6);
14101 if (PyErr_Occurred()) SWIG_fail;
14102 }
14103 if (obj7) {
14104 if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator,
14105 SWIG_POINTER_EXCEPTION | 0)) == -1)
14106 SWIG_fail;
14107 if (arg8 == NULL) {
14108 PyErr_SetString(PyExc_TypeError,"null reference");
14109 SWIG_fail;
14110 }
14111 }
14112 if (obj8) {
14113 {
14114 arg9 = wxString_in_helper(obj8);
14115 if (arg9 == NULL) SWIG_fail;
14116 temp9 = true;
14117 }
14118 }
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9);
14122
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 {
14127 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14128 }
14129 {
14130 if (temp4)
14131 delete arg4;
14132 }
14133 {
14134 if (temp9)
14135 delete arg9;
14136 }
14137 return resultobj;
14138 fail:
14139 {
14140 if (temp4)
14141 delete arg4;
14142 }
14143 {
14144 if (temp9)
14145 delete arg9;
14146 }
14147 return NULL;
14148 }
14149
14150
14151 static PyObject *_wrap_ToggleButton_SetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14152 PyObject *resultobj;
14153 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14154 bool arg2 ;
14155 PyObject * obj0 = 0 ;
14156 PyObject * obj1 = 0 ;
14157 char *kwnames[] = {
14158 (char *) "self",(char *) "value", NULL
14159 };
14160
14161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail;
14162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14164 arg2 = (bool)SWIG_As_bool(obj1);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 {
14167 PyThreadState* __tstate = wxPyBeginAllowThreads();
14168 (arg1)->SetValue(arg2);
14169
14170 wxPyEndAllowThreads(__tstate);
14171 if (PyErr_Occurred()) SWIG_fail;
14172 }
14173 Py_INCREF(Py_None); resultobj = Py_None;
14174 return resultobj;
14175 fail:
14176 return NULL;
14177 }
14178
14179
14180 static PyObject *_wrap_ToggleButton_GetValue(PyObject *, PyObject *args, PyObject *kwargs) {
14181 PyObject *resultobj;
14182 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14183 bool result;
14184 PyObject * obj0 = 0 ;
14185 char *kwnames[] = {
14186 (char *) "self", NULL
14187 };
14188
14189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail;
14190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (bool)((wxToggleButton const *)arg1)->GetValue();
14195
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 {
14200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14201 }
14202 return resultobj;
14203 fail:
14204 return NULL;
14205 }
14206
14207
14208 static PyObject *_wrap_ToggleButton_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
14209 PyObject *resultobj;
14210 wxToggleButton *arg1 = (wxToggleButton *) 0 ;
14211 wxString *arg2 = 0 ;
14212 bool temp2 = false ;
14213 PyObject * obj0 = 0 ;
14214 PyObject * obj1 = 0 ;
14215 char *kwnames[] = {
14216 (char *) "self",(char *) "label", NULL
14217 };
14218
14219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail;
14220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton,
14221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14222 {
14223 arg2 = wxString_in_helper(obj1);
14224 if (arg2 == NULL) SWIG_fail;
14225 temp2 = true;
14226 }
14227 {
14228 PyThreadState* __tstate = wxPyBeginAllowThreads();
14229 (arg1)->SetLabel((wxString const &)*arg2);
14230
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 Py_INCREF(Py_None); resultobj = Py_None;
14235 {
14236 if (temp2)
14237 delete arg2;
14238 }
14239 return resultobj;
14240 fail:
14241 {
14242 if (temp2)
14243 delete arg2;
14244 }
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14252 wxVisualAttributes result;
14253 PyObject * obj0 = 0 ;
14254 char *kwnames[] = {
14255 (char *) "variant", NULL
14256 };
14257
14258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14259 if (obj0) {
14260 arg1 = (int)SWIG_As_int(obj0);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 {
14264 if (!wxPyCheckForApp()) SWIG_fail;
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1);
14267
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 {
14272 wxVisualAttributes * resultptr;
14273 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
14274 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
14275 }
14276 return resultobj;
14277 fail:
14278 return NULL;
14279 }
14280
14281
14282 static PyObject * ToggleButton_swigregister(PyObject *, PyObject *args) {
14283 PyObject *obj;
14284 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14285 SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj);
14286 Py_INCREF(obj);
14287 return Py_BuildValue((char *)"");
14288 }
14289 static int _wrap_NOTEBOOK_NAME_set(PyObject *) {
14290 PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only.");
14291 return 1;
14292 }
14293
14294
14295 static PyObject *_wrap_NOTEBOOK_NAME_get() {
14296 PyObject *pyobj;
14297
14298 {
14299 #if wxUSE_UNICODE
14300 pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14301 #else
14302 pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len());
14303 #endif
14304 }
14305 return pyobj;
14306 }
14307
14308
14309 static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *, PyObject *args, PyObject *kwargs) {
14310 PyObject *resultobj;
14311 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14312 size_t result;
14313 PyObject * obj0 = 0 ;
14314 char *kwnames[] = {
14315 (char *) "self", NULL
14316 };
14317
14318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail;
14319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount();
14324
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
14329 return resultobj;
14330 fail:
14331 return NULL;
14332 }
14333
14334
14335 static PyObject *_wrap_BookCtrl_GetPage(PyObject *, PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj;
14337 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14338 size_t arg2 ;
14339 wxWindow *result;
14340 PyObject * obj0 = 0 ;
14341 PyObject * obj1 = 0 ;
14342 char *kwnames[] = {
14343 (char *) "self",(char *) "n", NULL
14344 };
14345
14346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail;
14347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14349 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14350 if (PyErr_Occurred()) SWIG_fail;
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (wxWindow *)(arg1)->GetPage(arg2);
14354
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 {
14359 resultobj = wxPyMake_wxObject(result, 0);
14360 }
14361 return resultobj;
14362 fail:
14363 return NULL;
14364 }
14365
14366
14367 static PyObject *_wrap_BookCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14368 PyObject *resultobj;
14369 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14370 int result;
14371 PyObject * obj0 = 0 ;
14372 char *kwnames[] = {
14373 (char *) "self", NULL
14374 };
14375
14376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail;
14377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14379 {
14380 PyThreadState* __tstate = wxPyBeginAllowThreads();
14381 result = (int)((wxBookCtrl const *)arg1)->GetSelection();
14382
14383 wxPyEndAllowThreads(__tstate);
14384 if (PyErr_Occurred()) SWIG_fail;
14385 }
14386 resultobj = SWIG_From_int((int)result);
14387 return resultobj;
14388 fail:
14389 return NULL;
14390 }
14391
14392
14393 static PyObject *_wrap_BookCtrl_SetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14394 PyObject *resultobj;
14395 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14396 size_t arg2 ;
14397 wxString *arg3 = 0 ;
14398 bool result;
14399 bool temp3 = false ;
14400 PyObject * obj0 = 0 ;
14401 PyObject * obj1 = 0 ;
14402 PyObject * obj2 = 0 ;
14403 char *kwnames[] = {
14404 (char *) "self",(char *) "n",(char *) "strText", NULL
14405 };
14406
14407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail;
14408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14410 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 {
14413 arg3 = wxString_in_helper(obj2);
14414 if (arg3 == NULL) SWIG_fail;
14415 temp3 = true;
14416 }
14417 {
14418 PyThreadState* __tstate = wxPyBeginAllowThreads();
14419 result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3);
14420
14421 wxPyEndAllowThreads(__tstate);
14422 if (PyErr_Occurred()) SWIG_fail;
14423 }
14424 {
14425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14426 }
14427 {
14428 if (temp3)
14429 delete arg3;
14430 }
14431 return resultobj;
14432 fail:
14433 {
14434 if (temp3)
14435 delete arg3;
14436 }
14437 return NULL;
14438 }
14439
14440
14441 static PyObject *_wrap_BookCtrl_GetPageText(PyObject *, PyObject *args, PyObject *kwargs) {
14442 PyObject *resultobj;
14443 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14444 size_t arg2 ;
14445 wxString result;
14446 PyObject * obj0 = 0 ;
14447 PyObject * obj1 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "n", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = ((wxBookCtrl const *)arg1)->GetPageText(arg2);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 {
14465 #if wxUSE_UNICODE
14466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14467 #else
14468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14469 #endif
14470 }
14471 return resultobj;
14472 fail:
14473 return NULL;
14474 }
14475
14476
14477 static PyObject *_wrap_BookCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14478 PyObject *resultobj;
14479 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14480 wxImageList *arg2 = (wxImageList *) 0 ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 char *kwnames[] = {
14484 (char *) "self",(char *) "imageList", NULL
14485 };
14486
14487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
14488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14492 {
14493 PyThreadState* __tstate = wxPyBeginAllowThreads();
14494 (arg1)->SetImageList(arg2);
14495
14496 wxPyEndAllowThreads(__tstate);
14497 if (PyErr_Occurred()) SWIG_fail;
14498 }
14499 Py_INCREF(Py_None); resultobj = Py_None;
14500 return resultobj;
14501 fail:
14502 return NULL;
14503 }
14504
14505
14506 static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14507 PyObject *resultobj;
14508 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14509 wxImageList *arg2 = (wxImageList *) 0 ;
14510 PyObject * obj0 = 0 ;
14511 PyObject * obj1 = 0 ;
14512 char *kwnames[] = {
14513 (char *) "self",(char *) "imageList", NULL
14514 };
14515
14516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
14517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14519 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
14520 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
14521 {
14522 PyThreadState* __tstate = wxPyBeginAllowThreads();
14523 (arg1)->AssignImageList(arg2);
14524
14525 wxPyEndAllowThreads(__tstate);
14526 if (PyErr_Occurred()) SWIG_fail;
14527 }
14528 Py_INCREF(Py_None); resultobj = Py_None;
14529 return resultobj;
14530 fail:
14531 return NULL;
14532 }
14533
14534
14535 static PyObject *_wrap_BookCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
14536 PyObject *resultobj;
14537 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14538 wxImageList *result;
14539 PyObject * obj0 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList();
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 {
14555 resultobj = wxPyMake_wxObject(result, 0);
14556 }
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj;
14565 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14566 size_t arg2 ;
14567 int result;
14568 PyObject * obj0 = 0 ;
14569 PyObject * obj1 = 0 ;
14570 char *kwnames[] = {
14571 (char *) "self",(char *) "n", NULL
14572 };
14573
14574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail;
14575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14577 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2);
14582
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 resultobj = SWIG_From_int((int)result);
14587 return resultobj;
14588 fail:
14589 return NULL;
14590 }
14591
14592
14593 static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *, PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj;
14595 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14596 size_t arg2 ;
14597 int arg3 ;
14598 bool result;
14599 PyObject * obj0 = 0 ;
14600 PyObject * obj1 = 0 ;
14601 PyObject * obj2 = 0 ;
14602 char *kwnames[] = {
14603 (char *) "self",(char *) "n",(char *) "imageId", NULL
14604 };
14605
14606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
14607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14609 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14610 if (PyErr_Occurred()) SWIG_fail;
14611 arg3 = (int)SWIG_As_int(obj2);
14612 if (PyErr_Occurred()) SWIG_fail;
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 result = (bool)(arg1)->SetPageImage(arg2,arg3);
14616
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 {
14621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14622 }
14623 return resultobj;
14624 fail:
14625 return NULL;
14626 }
14627
14628
14629 static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *, PyObject *args, PyObject *kwargs) {
14630 PyObject *resultobj;
14631 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14632 wxSize *arg2 = 0 ;
14633 wxSize temp2 ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 char *kwnames[] = {
14637 (char *) "self",(char *) "size", NULL
14638 };
14639
14640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail;
14641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14643 {
14644 arg2 = &temp2;
14645 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14646 }
14647 {
14648 PyThreadState* __tstate = wxPyBeginAllowThreads();
14649 (arg1)->SetPageSize((wxSize const &)*arg2);
14650
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 Py_INCREF(Py_None); resultobj = Py_None;
14655 return resultobj;
14656 fail:
14657 return NULL;
14658 }
14659
14660
14661 static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
14662 PyObject *resultobj;
14663 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14664 wxSize *arg2 = 0 ;
14665 wxSize result;
14666 wxSize temp2 ;
14667 PyObject * obj0 = 0 ;
14668 PyObject * obj1 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self",(char *) "sizePage", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14676 {
14677 arg2 = &temp2;
14678 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14679 }
14680 {
14681 PyThreadState* __tstate = wxPyBeginAllowThreads();
14682 result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
14683
14684 wxPyEndAllowThreads(__tstate);
14685 if (PyErr_Occurred()) SWIG_fail;
14686 }
14687 {
14688 wxSize * resultptr;
14689 resultptr = new wxSize((wxSize &) result);
14690 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14691 }
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_BookCtrl_DeletePage(PyObject *, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14701 size_t arg2 ;
14702 bool result;
14703 PyObject * obj0 = 0 ;
14704 PyObject * obj1 = 0 ;
14705 char *kwnames[] = {
14706 (char *) "self",(char *) "n", NULL
14707 };
14708
14709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail;
14710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14712 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = (bool)(arg1)->DeletePage(arg2);
14717
14718 wxPyEndAllowThreads(__tstate);
14719 if (PyErr_Occurred()) SWIG_fail;
14720 }
14721 {
14722 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14723 }
14724 return resultobj;
14725 fail:
14726 return NULL;
14727 }
14728
14729
14730 static PyObject *_wrap_BookCtrl_RemovePage(PyObject *, PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj;
14732 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14733 size_t arg2 ;
14734 bool result;
14735 PyObject * obj0 = 0 ;
14736 PyObject * obj1 = 0 ;
14737 char *kwnames[] = {
14738 (char *) "self",(char *) "n", NULL
14739 };
14740
14741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail;
14742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14744 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14745 if (PyErr_Occurred()) SWIG_fail;
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 result = (bool)(arg1)->RemovePage(arg2);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 {
14754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14755 }
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj;
14764 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14765 bool result;
14766 PyObject * obj0 = 0 ;
14767 char *kwnames[] = {
14768 (char *) "self", NULL
14769 };
14770
14771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail;
14772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14774 {
14775 PyThreadState* __tstate = wxPyBeginAllowThreads();
14776 result = (bool)(arg1)->DeleteAllPages();
14777
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 {
14782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14783 }
14784 return resultobj;
14785 fail:
14786 return NULL;
14787 }
14788
14789
14790 static PyObject *_wrap_BookCtrl_AddPage(PyObject *, PyObject *args, PyObject *kwargs) {
14791 PyObject *resultobj;
14792 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14793 wxWindow *arg2 = (wxWindow *) 0 ;
14794 wxString *arg3 = 0 ;
14795 bool arg4 = (bool) false ;
14796 int arg5 = (int) -1 ;
14797 bool result;
14798 bool temp3 = false ;
14799 PyObject * obj0 = 0 ;
14800 PyObject * obj1 = 0 ;
14801 PyObject * obj2 = 0 ;
14802 PyObject * obj3 = 0 ;
14803 PyObject * obj4 = 0 ;
14804 char *kwnames[] = {
14805 (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14806 };
14807
14808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14811 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
14812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14813 {
14814 arg3 = wxString_in_helper(obj2);
14815 if (arg3 == NULL) SWIG_fail;
14816 temp3 = true;
14817 }
14818 if (obj3) {
14819 arg4 = (bool)SWIG_As_bool(obj3);
14820 if (PyErr_Occurred()) SWIG_fail;
14821 }
14822 if (obj4) {
14823 arg5 = (int)SWIG_As_int(obj4);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 {
14827 PyThreadState* __tstate = wxPyBeginAllowThreads();
14828 result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5);
14829
14830 wxPyEndAllowThreads(__tstate);
14831 if (PyErr_Occurred()) SWIG_fail;
14832 }
14833 {
14834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14835 }
14836 {
14837 if (temp3)
14838 delete arg3;
14839 }
14840 return resultobj;
14841 fail:
14842 {
14843 if (temp3)
14844 delete arg3;
14845 }
14846 return NULL;
14847 }
14848
14849
14850 static PyObject *_wrap_BookCtrl_InsertPage(PyObject *, PyObject *args, PyObject *kwargs) {
14851 PyObject *resultobj;
14852 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14853 size_t arg2 ;
14854 wxWindow *arg3 = (wxWindow *) 0 ;
14855 wxString *arg4 = 0 ;
14856 bool arg5 = (bool) false ;
14857 int arg6 = (int) -1 ;
14858 bool result;
14859 bool temp4 = false ;
14860 PyObject * obj0 = 0 ;
14861 PyObject * obj1 = 0 ;
14862 PyObject * obj2 = 0 ;
14863 PyObject * obj3 = 0 ;
14864 PyObject * obj4 = 0 ;
14865 PyObject * obj5 = 0 ;
14866 char *kwnames[] = {
14867 (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL
14868 };
14869
14870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
14871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14873 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14874 if (PyErr_Occurred()) SWIG_fail;
14875 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
14876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14877 {
14878 arg4 = wxString_in_helper(obj3);
14879 if (arg4 == NULL) SWIG_fail;
14880 temp4 = true;
14881 }
14882 if (obj4) {
14883 arg5 = (bool)SWIG_As_bool(obj4);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 if (obj5) {
14887 arg6 = (int)SWIG_As_int(obj5);
14888 if (PyErr_Occurred()) SWIG_fail;
14889 }
14890 {
14891 PyThreadState* __tstate = wxPyBeginAllowThreads();
14892 result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6);
14893
14894 wxPyEndAllowThreads(__tstate);
14895 if (PyErr_Occurred()) SWIG_fail;
14896 }
14897 {
14898 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14899 }
14900 {
14901 if (temp4)
14902 delete arg4;
14903 }
14904 return resultobj;
14905 fail:
14906 {
14907 if (temp4)
14908 delete arg4;
14909 }
14910 return NULL;
14911 }
14912
14913
14914 static PyObject *_wrap_BookCtrl_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14915 PyObject *resultobj;
14916 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14917 size_t arg2 ;
14918 int result;
14919 PyObject * obj0 = 0 ;
14920 PyObject * obj1 = 0 ;
14921 char *kwnames[] = {
14922 (char *) "self",(char *) "n", NULL
14923 };
14924
14925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail;
14926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14928 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 {
14931 PyThreadState* __tstate = wxPyBeginAllowThreads();
14932 result = (int)(arg1)->SetSelection(arg2);
14933
14934 wxPyEndAllowThreads(__tstate);
14935 if (PyErr_Occurred()) SWIG_fail;
14936 }
14937 resultobj = SWIG_From_int((int)result);
14938 return resultobj;
14939 fail:
14940 return NULL;
14941 }
14942
14943
14944 static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *, PyObject *args, PyObject *kwargs) {
14945 PyObject *resultobj;
14946 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
14947 bool arg2 = (bool) true ;
14948 PyObject * obj0 = 0 ;
14949 PyObject * obj1 = 0 ;
14950 char *kwnames[] = {
14951 (char *) "self",(char *) "forward", NULL
14952 };
14953
14954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail;
14955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
14956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14957 if (obj1) {
14958 arg2 = (bool)SWIG_As_bool(obj1);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 (arg1)->AdvanceSelection(arg2);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 Py_INCREF(Py_None); resultobj = Py_None;
14969 return resultobj;
14970 fail:
14971 return NULL;
14972 }
14973
14974
14975 static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj;
14977 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
14978 wxVisualAttributes result;
14979 PyObject * obj0 = 0 ;
14980 char *kwnames[] = {
14981 (char *) "variant", NULL
14982 };
14983
14984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
14985 if (obj0) {
14986 arg1 = (int)SWIG_As_int(obj0);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 {
14990 if (!wxPyCheckForApp()) SWIG_fail;
14991 PyThreadState* __tstate = wxPyBeginAllowThreads();
14992 result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
14993
14994 wxPyEndAllowThreads(__tstate);
14995 if (PyErr_Occurred()) SWIG_fail;
14996 }
14997 {
14998 wxVisualAttributes * resultptr;
14999 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15001 }
15002 return resultobj;
15003 fail:
15004 return NULL;
15005 }
15006
15007
15008 static PyObject * BookCtrl_swigregister(PyObject *, PyObject *args) {
15009 PyObject *obj;
15010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15011 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj);
15012 Py_INCREF(obj);
15013 return Py_BuildValue((char *)"");
15014 }
15015 static PyObject *_wrap_new_BookCtrlEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj;
15017 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15018 int arg2 = (int) 0 ;
15019 int arg3 = (int) -1 ;
15020 int arg4 = (int) -1 ;
15021 wxBookCtrlEvent *result;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 PyObject * obj2 = 0 ;
15025 PyObject * obj3 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15031 if (obj0) {
15032 arg1 = (wxEventType)SWIG_As_int(obj0);
15033 if (PyErr_Occurred()) SWIG_fail;
15034 }
15035 if (obj1) {
15036 arg2 = (int)SWIG_As_int(obj1);
15037 if (PyErr_Occurred()) SWIG_fail;
15038 }
15039 if (obj2) {
15040 arg3 = (int)SWIG_As_int(obj2);
15041 if (PyErr_Occurred()) SWIG_fail;
15042 }
15043 if (obj3) {
15044 arg4 = (int)SWIG_As_int(obj3);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 {
15048 PyThreadState* __tstate = wxPyBeginAllowThreads();
15049 result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4);
15050
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1);
15055 return resultobj;
15056 fail:
15057 return NULL;
15058 }
15059
15060
15061 static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15062 PyObject *resultobj;
15063 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15064 int result;
15065 PyObject * obj0 = 0 ;
15066 char *kwnames[] = {
15067 (char *) "self", NULL
15068 };
15069
15070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail;
15071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15073 {
15074 PyThreadState* __tstate = wxPyBeginAllowThreads();
15075 result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection();
15076
15077 wxPyEndAllowThreads(__tstate);
15078 if (PyErr_Occurred()) SWIG_fail;
15079 }
15080 resultobj = SWIG_From_int((int)result);
15081 return resultobj;
15082 fail:
15083 return NULL;
15084 }
15085
15086
15087 static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15088 PyObject *resultobj;
15089 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15090 int arg2 ;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093 char *kwnames[] = {
15094 (char *) "self",(char *) "nSel", NULL
15095 };
15096
15097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail;
15098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15100 arg2 = (int)SWIG_As_int(obj1);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 {
15103 PyThreadState* __tstate = wxPyBeginAllowThreads();
15104 (arg1)->SetSelection(arg2);
15105
15106 wxPyEndAllowThreads(__tstate);
15107 if (PyErr_Occurred()) SWIG_fail;
15108 }
15109 Py_INCREF(Py_None); resultobj = Py_None;
15110 return resultobj;
15111 fail:
15112 return NULL;
15113 }
15114
15115
15116 static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15117 PyObject *resultobj;
15118 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15119 int result;
15120 PyObject * obj0 = 0 ;
15121 char *kwnames[] = {
15122 (char *) "self", NULL
15123 };
15124
15125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail;
15126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15128 {
15129 PyThreadState* __tstate = wxPyBeginAllowThreads();
15130 result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection();
15131
15132 wxPyEndAllowThreads(__tstate);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 resultobj = SWIG_From_int((int)result);
15136 return resultobj;
15137 fail:
15138 return NULL;
15139 }
15140
15141
15142 static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *, PyObject *args, PyObject *kwargs) {
15143 PyObject *resultobj;
15144 wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ;
15145 int arg2 ;
15146 PyObject * obj0 = 0 ;
15147 PyObject * obj1 = 0 ;
15148 char *kwnames[] = {
15149 (char *) "self",(char *) "nOldSel", NULL
15150 };
15151
15152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail;
15153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent,
15154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15155 arg2 = (int)SWIG_As_int(obj1);
15156 if (PyErr_Occurred()) SWIG_fail;
15157 {
15158 PyThreadState* __tstate = wxPyBeginAllowThreads();
15159 (arg1)->SetOldSelection(arg2);
15160
15161 wxPyEndAllowThreads(__tstate);
15162 if (PyErr_Occurred()) SWIG_fail;
15163 }
15164 Py_INCREF(Py_None); resultobj = Py_None;
15165 return resultobj;
15166 fail:
15167 return NULL;
15168 }
15169
15170
15171 static PyObject * BookCtrlEvent_swigregister(PyObject *, PyObject *args) {
15172 PyObject *obj;
15173 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15174 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj);
15175 Py_INCREF(obj);
15176 return Py_BuildValue((char *)"");
15177 }
15178 static PyObject *_wrap_new_Notebook(PyObject *, PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj;
15180 wxWindow *arg1 = (wxWindow *) 0 ;
15181 int arg2 = (int) -1 ;
15182 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15183 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15184 wxSize const &arg4_defvalue = wxDefaultSize ;
15185 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15186 long arg5 = (long) 0 ;
15187 wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ;
15188 wxString *arg6 = (wxString *) &arg6_defvalue ;
15189 wxNotebook *result;
15190 wxPoint temp3 ;
15191 wxSize temp4 ;
15192 bool temp6 = false ;
15193 PyObject * obj0 = 0 ;
15194 PyObject * obj1 = 0 ;
15195 PyObject * obj2 = 0 ;
15196 PyObject * obj3 = 0 ;
15197 PyObject * obj4 = 0 ;
15198 PyObject * obj5 = 0 ;
15199 char *kwnames[] = {
15200 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15201 };
15202
15203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15206 if (obj1) {
15207 arg2 = (int)SWIG_As_int(obj1);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 if (obj2) {
15211 {
15212 arg3 = &temp3;
15213 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15214 }
15215 }
15216 if (obj3) {
15217 {
15218 arg4 = &temp4;
15219 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15220 }
15221 }
15222 if (obj4) {
15223 arg5 = (long)SWIG_As_long(obj4);
15224 if (PyErr_Occurred()) SWIG_fail;
15225 }
15226 if (obj5) {
15227 {
15228 arg6 = wxString_in_helper(obj5);
15229 if (arg6 == NULL) SWIG_fail;
15230 temp6 = true;
15231 }
15232 }
15233 {
15234 if (!wxPyCheckForApp()) SWIG_fail;
15235 PyThreadState* __tstate = wxPyBeginAllowThreads();
15236 result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15237
15238 wxPyEndAllowThreads(__tstate);
15239 if (PyErr_Occurred()) SWIG_fail;
15240 }
15241 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15242 {
15243 if (temp6)
15244 delete arg6;
15245 }
15246 return resultobj;
15247 fail:
15248 {
15249 if (temp6)
15250 delete arg6;
15251 }
15252 return NULL;
15253 }
15254
15255
15256 static PyObject *_wrap_new_PreNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
15257 PyObject *resultobj;
15258 wxNotebook *result;
15259 char *kwnames[] = {
15260 NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail;
15264 {
15265 if (!wxPyCheckForApp()) SWIG_fail;
15266 PyThreadState* __tstate = wxPyBeginAllowThreads();
15267 result = (wxNotebook *)new wxNotebook();
15268
15269 wxPyEndAllowThreads(__tstate);
15270 if (PyErr_Occurred()) SWIG_fail;
15271 }
15272 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1);
15273 return resultobj;
15274 fail:
15275 return NULL;
15276 }
15277
15278
15279 static PyObject *_wrap_Notebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15280 PyObject *resultobj;
15281 wxNotebook *arg1 = (wxNotebook *) 0 ;
15282 wxWindow *arg2 = (wxWindow *) 0 ;
15283 int arg3 = (int) -1 ;
15284 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15285 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15286 wxSize const &arg5_defvalue = wxDefaultSize ;
15287 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15288 long arg6 = (long) 0 ;
15289 wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ;
15290 wxString *arg7 = (wxString *) &arg7_defvalue ;
15291 bool result;
15292 wxPoint temp4 ;
15293 wxSize temp5 ;
15294 bool temp7 = false ;
15295 PyObject * obj0 = 0 ;
15296 PyObject * obj1 = 0 ;
15297 PyObject * obj2 = 0 ;
15298 PyObject * obj3 = 0 ;
15299 PyObject * obj4 = 0 ;
15300 PyObject * obj5 = 0 ;
15301 PyObject * obj6 = 0 ;
15302 char *kwnames[] = {
15303 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15304 };
15305
15306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15309 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15311 if (obj2) {
15312 arg3 = (int)SWIG_As_int(obj2);
15313 if (PyErr_Occurred()) SWIG_fail;
15314 }
15315 if (obj3) {
15316 {
15317 arg4 = &temp4;
15318 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15319 }
15320 }
15321 if (obj4) {
15322 {
15323 arg5 = &temp5;
15324 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15325 }
15326 }
15327 if (obj5) {
15328 arg6 = (long)SWIG_As_long(obj5);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 if (obj6) {
15332 {
15333 arg7 = wxString_in_helper(obj6);
15334 if (arg7 == NULL) SWIG_fail;
15335 temp7 = true;
15336 }
15337 }
15338 {
15339 PyThreadState* __tstate = wxPyBeginAllowThreads();
15340 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15341
15342 wxPyEndAllowThreads(__tstate);
15343 if (PyErr_Occurred()) SWIG_fail;
15344 }
15345 {
15346 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15347 }
15348 {
15349 if (temp7)
15350 delete arg7;
15351 }
15352 return resultobj;
15353 fail:
15354 {
15355 if (temp7)
15356 delete arg7;
15357 }
15358 return NULL;
15359 }
15360
15361
15362 static PyObject *_wrap_Notebook_GetRowCount(PyObject *, PyObject *args, PyObject *kwargs) {
15363 PyObject *resultobj;
15364 wxNotebook *arg1 = (wxNotebook *) 0 ;
15365 int result;
15366 PyObject * obj0 = 0 ;
15367 char *kwnames[] = {
15368 (char *) "self", NULL
15369 };
15370
15371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail;
15372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15374 {
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 result = (int)((wxNotebook const *)arg1)->GetRowCount();
15377
15378 wxPyEndAllowThreads(__tstate);
15379 if (PyErr_Occurred()) SWIG_fail;
15380 }
15381 resultobj = SWIG_From_int((int)result);
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 static PyObject *_wrap_Notebook_SetPadding(PyObject *, PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj;
15390 wxNotebook *arg1 = (wxNotebook *) 0 ;
15391 wxSize *arg2 = 0 ;
15392 wxSize temp2 ;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 char *kwnames[] = {
15396 (char *) "self",(char *) "padding", NULL
15397 };
15398
15399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail;
15400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15402 {
15403 arg2 = &temp2;
15404 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15405 }
15406 {
15407 PyThreadState* __tstate = wxPyBeginAllowThreads();
15408 (arg1)->SetPadding((wxSize const &)*arg2);
15409
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 Py_INCREF(Py_None); resultobj = Py_None;
15414 return resultobj;
15415 fail:
15416 return NULL;
15417 }
15418
15419
15420 static PyObject *_wrap_Notebook_SetTabSize(PyObject *, PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj;
15422 wxNotebook *arg1 = (wxNotebook *) 0 ;
15423 wxSize *arg2 = 0 ;
15424 wxSize temp2 ;
15425 PyObject * obj0 = 0 ;
15426 PyObject * obj1 = 0 ;
15427 char *kwnames[] = {
15428 (char *) "self",(char *) "sz", NULL
15429 };
15430
15431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail;
15432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15434 {
15435 arg2 = &temp2;
15436 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15437 }
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 (arg1)->SetTabSize((wxSize const &)*arg2);
15441
15442 wxPyEndAllowThreads(__tstate);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 Py_INCREF(Py_None); resultobj = Py_None;
15446 return resultobj;
15447 fail:
15448 return NULL;
15449 }
15450
15451
15452 static PyObject *_wrap_Notebook_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
15453 PyObject *resultobj;
15454 wxNotebook *arg1 = (wxNotebook *) 0 ;
15455 wxPoint *arg2 = 0 ;
15456 long *arg3 = (long *) 0 ;
15457 int result;
15458 wxPoint temp2 ;
15459 long temp3 ;
15460 int res3 = 0 ;
15461 PyObject * obj0 = 0 ;
15462 PyObject * obj1 = 0 ;
15463 char *kwnames[] = {
15464 (char *) "self",(char *) "pt", NULL
15465 };
15466
15467 arg3 = &temp3; res3 = SWIG_NEWOBJ;
15468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail;
15469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15471 {
15472 arg2 = &temp2;
15473 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15474 }
15475 {
15476 PyThreadState* __tstate = wxPyBeginAllowThreads();
15477 result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3);
15478
15479 wxPyEndAllowThreads(__tstate);
15480 if (PyErr_Occurred()) SWIG_fail;
15481 }
15482 resultobj = SWIG_From_int((int)result);
15483 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
15484 SWIG_From_long((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_long, 0)));
15485 return resultobj;
15486 fail:
15487 return NULL;
15488 }
15489
15490
15491 static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *, PyObject *args, PyObject *kwargs) {
15492 PyObject *resultobj;
15493 wxNotebook *arg1 = (wxNotebook *) 0 ;
15494 wxSize *arg2 = 0 ;
15495 wxSize result;
15496 wxSize temp2 ;
15497 PyObject * obj0 = 0 ;
15498 PyObject * obj1 = 0 ;
15499 char *kwnames[] = {
15500 (char *) "self",(char *) "sizePage", NULL
15501 };
15502
15503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail;
15504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15506 {
15507 arg2 = &temp2;
15508 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15509 }
15510 {
15511 PyThreadState* __tstate = wxPyBeginAllowThreads();
15512 result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2);
15513
15514 wxPyEndAllowThreads(__tstate);
15515 if (PyErr_Occurred()) SWIG_fail;
15516 }
15517 {
15518 wxSize * resultptr;
15519 resultptr = new wxSize((wxSize &) result);
15520 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15521 }
15522 return resultobj;
15523 fail:
15524 return NULL;
15525 }
15526
15527
15528 static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
15529 PyObject *resultobj;
15530 wxNotebook *arg1 = (wxNotebook *) 0 ;
15531 wxWindow *arg2 = (wxWindow *) 0 ;
15532 wxColour *arg3 = 0 ;
15533 wxColour temp3 ;
15534 PyObject * obj0 = 0 ;
15535 PyObject * obj1 = 0 ;
15536 PyObject * obj2 = 0 ;
15537 char *kwnames[] = {
15538 (char *) "self",(char *) "window",(char *) "colour", NULL
15539 };
15540
15541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail;
15542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
15543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15546 {
15547 arg3 = &temp3;
15548 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15549 }
15550 {
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3);
15553
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 Py_INCREF(Py_None); resultobj = Py_None;
15558 return resultobj;
15559 fail:
15560 return NULL;
15561 }
15562
15563
15564 static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj;
15566 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
15567 wxVisualAttributes result;
15568 PyObject * obj0 = 0 ;
15569 char *kwnames[] = {
15570 (char *) "variant", NULL
15571 };
15572
15573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
15574 if (obj0) {
15575 arg1 = (int)SWIG_As_int(obj0);
15576 if (PyErr_Occurred()) SWIG_fail;
15577 }
15578 {
15579 if (!wxPyCheckForApp()) SWIG_fail;
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1);
15582
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 {
15587 wxVisualAttributes * resultptr;
15588 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
15589 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
15590 }
15591 return resultobj;
15592 fail:
15593 return NULL;
15594 }
15595
15596
15597 static PyObject * Notebook_swigregister(PyObject *, PyObject *args) {
15598 PyObject *obj;
15599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15600 SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj);
15601 Py_INCREF(obj);
15602 return Py_BuildValue((char *)"");
15603 }
15604 static PyObject *_wrap_new_NotebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15607 int arg2 = (int) 0 ;
15608 int arg3 = (int) -1 ;
15609 int arg4 = (int) -1 ;
15610 wxNotebookEvent *result;
15611 PyObject * obj0 = 0 ;
15612 PyObject * obj1 = 0 ;
15613 PyObject * obj2 = 0 ;
15614 PyObject * obj3 = 0 ;
15615 char *kwnames[] = {
15616 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15617 };
15618
15619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15620 if (obj0) {
15621 arg1 = (wxEventType)SWIG_As_int(obj0);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 if (obj1) {
15625 arg2 = (int)SWIG_As_int(obj1);
15626 if (PyErr_Occurred()) SWIG_fail;
15627 }
15628 if (obj2) {
15629 arg3 = (int)SWIG_As_int(obj2);
15630 if (PyErr_Occurred()) SWIG_fail;
15631 }
15632 if (obj3) {
15633 arg4 = (int)SWIG_As_int(obj3);
15634 if (PyErr_Occurred()) SWIG_fail;
15635 }
15636 {
15637 PyThreadState* __tstate = wxPyBeginAllowThreads();
15638 result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4);
15639
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1);
15644 return resultobj;
15645 fail:
15646 return NULL;
15647 }
15648
15649
15650 static PyObject * NotebookEvent_swigregister(PyObject *, PyObject *args) {
15651 PyObject *obj;
15652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15653 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj);
15654 Py_INCREF(obj);
15655 return Py_BuildValue((char *)"");
15656 }
15657 static PyObject *_wrap_new_Listbook(PyObject *, PyObject *args, PyObject *kwargs) {
15658 PyObject *resultobj;
15659 wxWindow *arg1 = (wxWindow *) 0 ;
15660 int arg2 = (int) -1 ;
15661 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15662 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15663 wxSize const &arg4_defvalue = wxDefaultSize ;
15664 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15665 long arg5 = (long) 0 ;
15666 wxString const &arg6_defvalue = wxPyEmptyString ;
15667 wxString *arg6 = (wxString *) &arg6_defvalue ;
15668 wxListbook *result;
15669 wxPoint temp3 ;
15670 wxSize temp4 ;
15671 bool temp6 = false ;
15672 PyObject * obj0 = 0 ;
15673 PyObject * obj1 = 0 ;
15674 PyObject * obj2 = 0 ;
15675 PyObject * obj3 = 0 ;
15676 PyObject * obj4 = 0 ;
15677 PyObject * obj5 = 0 ;
15678 char *kwnames[] = {
15679 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15680 };
15681
15682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15685 if (obj1) {
15686 arg2 = (int)SWIG_As_int(obj1);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 if (obj2) {
15690 {
15691 arg3 = &temp3;
15692 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15693 }
15694 }
15695 if (obj3) {
15696 {
15697 arg4 = &temp4;
15698 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15699 }
15700 }
15701 if (obj4) {
15702 arg5 = (long)SWIG_As_long(obj4);
15703 if (PyErr_Occurred()) SWIG_fail;
15704 }
15705 if (obj5) {
15706 {
15707 arg6 = wxString_in_helper(obj5);
15708 if (arg6 == NULL) SWIG_fail;
15709 temp6 = true;
15710 }
15711 }
15712 {
15713 if (!wxPyCheckForApp()) SWIG_fail;
15714 PyThreadState* __tstate = wxPyBeginAllowThreads();
15715 result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
15716
15717 wxPyEndAllowThreads(__tstate);
15718 if (PyErr_Occurred()) SWIG_fail;
15719 }
15720 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15721 {
15722 if (temp6)
15723 delete arg6;
15724 }
15725 return resultobj;
15726 fail:
15727 {
15728 if (temp6)
15729 delete arg6;
15730 }
15731 return NULL;
15732 }
15733
15734
15735 static PyObject *_wrap_new_PreListbook(PyObject *, PyObject *args, PyObject *kwargs) {
15736 PyObject *resultobj;
15737 wxListbook *result;
15738 char *kwnames[] = {
15739 NULL
15740 };
15741
15742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail;
15743 {
15744 if (!wxPyCheckForApp()) SWIG_fail;
15745 PyThreadState* __tstate = wxPyBeginAllowThreads();
15746 result = (wxListbook *)new wxListbook();
15747
15748 wxPyEndAllowThreads(__tstate);
15749 if (PyErr_Occurred()) SWIG_fail;
15750 }
15751 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1);
15752 return resultobj;
15753 fail:
15754 return NULL;
15755 }
15756
15757
15758 static PyObject *_wrap_Listbook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
15759 PyObject *resultobj;
15760 wxListbook *arg1 = (wxListbook *) 0 ;
15761 wxWindow *arg2 = (wxWindow *) 0 ;
15762 int arg3 = (int) -1 ;
15763 wxPoint const &arg4_defvalue = wxDefaultPosition ;
15764 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
15765 wxSize const &arg5_defvalue = wxDefaultSize ;
15766 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
15767 long arg6 = (long) 0 ;
15768 wxString const &arg7_defvalue = wxPyEmptyString ;
15769 wxString *arg7 = (wxString *) &arg7_defvalue ;
15770 bool result;
15771 wxPoint temp4 ;
15772 wxSize temp5 ;
15773 bool temp7 = false ;
15774 PyObject * obj0 = 0 ;
15775 PyObject * obj1 = 0 ;
15776 PyObject * obj2 = 0 ;
15777 PyObject * obj3 = 0 ;
15778 PyObject * obj4 = 0 ;
15779 PyObject * obj5 = 0 ;
15780 PyObject * obj6 = 0 ;
15781 char *kwnames[] = {
15782 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15783 };
15784
15785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15790 if (obj2) {
15791 arg3 = (int)SWIG_As_int(obj2);
15792 if (PyErr_Occurred()) SWIG_fail;
15793 }
15794 if (obj3) {
15795 {
15796 arg4 = &temp4;
15797 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15798 }
15799 }
15800 if (obj4) {
15801 {
15802 arg5 = &temp5;
15803 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
15804 }
15805 }
15806 if (obj5) {
15807 arg6 = (long)SWIG_As_long(obj5);
15808 if (PyErr_Occurred()) SWIG_fail;
15809 }
15810 if (obj6) {
15811 {
15812 arg7 = wxString_in_helper(obj6);
15813 if (arg7 == NULL) SWIG_fail;
15814 temp7 = true;
15815 }
15816 }
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
15820
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 {
15825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15826 }
15827 {
15828 if (temp7)
15829 delete arg7;
15830 }
15831 return resultobj;
15832 fail:
15833 {
15834 if (temp7)
15835 delete arg7;
15836 }
15837 return NULL;
15838 }
15839
15840
15841 static PyObject *_wrap_Listbook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
15842 PyObject *resultobj;
15843 wxListbook *arg1 = (wxListbook *) 0 ;
15844 bool result;
15845 PyObject * obj0 = 0 ;
15846 char *kwnames[] = {
15847 (char *) "self", NULL
15848 };
15849
15850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail;
15851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15853 {
15854 PyThreadState* __tstate = wxPyBeginAllowThreads();
15855 result = (bool)((wxListbook const *)arg1)->IsVertical();
15856
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15862 }
15863 return resultobj;
15864 fail:
15865 return NULL;
15866 }
15867
15868
15869 static PyObject *_wrap_Listbook_GetListView(PyObject *, PyObject *args, PyObject *kwargs) {
15870 PyObject *resultobj;
15871 wxListbook *arg1 = (wxListbook *) 0 ;
15872 wxListView *result;
15873 PyObject * obj0 = 0 ;
15874 char *kwnames[] = {
15875 (char *) "self", NULL
15876 };
15877
15878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_GetListView",kwnames,&obj0)) goto fail;
15879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook,
15880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15881 {
15882 PyThreadState* __tstate = wxPyBeginAllowThreads();
15883 result = (wxListView *)(arg1)->GetListView();
15884
15885 wxPyEndAllowThreads(__tstate);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 0);
15889 return resultobj;
15890 fail:
15891 return NULL;
15892 }
15893
15894
15895 static PyObject * Listbook_swigregister(PyObject *, PyObject *args) {
15896 PyObject *obj;
15897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15898 SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj);
15899 Py_INCREF(obj);
15900 return Py_BuildValue((char *)"");
15901 }
15902 static PyObject *_wrap_new_ListbookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
15903 PyObject *resultobj;
15904 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
15905 int arg2 = (int) 0 ;
15906 int arg3 = (int) -1 ;
15907 int arg4 = (int) -1 ;
15908 wxListbookEvent *result;
15909 PyObject * obj0 = 0 ;
15910 PyObject * obj1 = 0 ;
15911 PyObject * obj2 = 0 ;
15912 PyObject * obj3 = 0 ;
15913 char *kwnames[] = {
15914 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
15915 };
15916
15917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15918 if (obj0) {
15919 arg1 = (wxEventType)SWIG_As_int(obj0);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 if (obj1) {
15923 arg2 = (int)SWIG_As_int(obj1);
15924 if (PyErr_Occurred()) SWIG_fail;
15925 }
15926 if (obj2) {
15927 arg3 = (int)SWIG_As_int(obj2);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 if (obj3) {
15931 arg4 = (int)SWIG_As_int(obj3);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 {
15935 PyThreadState* __tstate = wxPyBeginAllowThreads();
15936 result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4);
15937
15938 wxPyEndAllowThreads(__tstate);
15939 if (PyErr_Occurred()) SWIG_fail;
15940 }
15941 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1);
15942 return resultobj;
15943 fail:
15944 return NULL;
15945 }
15946
15947
15948 static PyObject * ListbookEvent_swigregister(PyObject *, PyObject *args) {
15949 PyObject *obj;
15950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15951 SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj);
15952 Py_INCREF(obj);
15953 return Py_BuildValue((char *)"");
15954 }
15955 static PyObject *_wrap_new_Choicebook(PyObject *, PyObject *args, PyObject *kwargs) {
15956 PyObject *resultobj;
15957 wxWindow *arg1 = (wxWindow *) 0 ;
15958 int arg2 ;
15959 wxPoint const &arg3_defvalue = wxDefaultPosition ;
15960 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
15961 wxSize const &arg4_defvalue = wxDefaultSize ;
15962 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
15963 long arg5 = (long) 0 ;
15964 wxString const &arg6_defvalue = wxPyEmptyString ;
15965 wxString *arg6 = (wxString *) &arg6_defvalue ;
15966 wxChoicebook *result;
15967 wxPoint temp3 ;
15968 wxSize temp4 ;
15969 bool temp6 = false ;
15970 PyObject * obj0 = 0 ;
15971 PyObject * obj1 = 0 ;
15972 PyObject * obj2 = 0 ;
15973 PyObject * obj3 = 0 ;
15974 PyObject * obj4 = 0 ;
15975 PyObject * obj5 = 0 ;
15976 char *kwnames[] = {
15977 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
15978 };
15979
15980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_Choicebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
15981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15983 arg2 = (int)SWIG_As_int(obj1);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 if (obj2) {
15986 {
15987 arg3 = &temp3;
15988 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15989 }
15990 }
15991 if (obj3) {
15992 {
15993 arg4 = &temp4;
15994 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
15995 }
15996 }
15997 if (obj4) {
15998 arg5 = (long)SWIG_As_long(obj4);
15999 if (PyErr_Occurred()) SWIG_fail;
16000 }
16001 if (obj5) {
16002 {
16003 arg6 = wxString_in_helper(obj5);
16004 if (arg6 == NULL) SWIG_fail;
16005 temp6 = true;
16006 }
16007 }
16008 {
16009 if (!wxPyCheckForApp()) SWIG_fail;
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 result = (wxChoicebook *)new wxChoicebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
16012
16013 wxPyEndAllowThreads(__tstate);
16014 if (PyErr_Occurred()) SWIG_fail;
16015 }
16016 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16017 {
16018 if (temp6)
16019 delete arg6;
16020 }
16021 return resultobj;
16022 fail:
16023 {
16024 if (temp6)
16025 delete arg6;
16026 }
16027 return NULL;
16028 }
16029
16030
16031 static PyObject *_wrap_new_PreChoicebook(PyObject *, PyObject *args, PyObject *kwargs) {
16032 PyObject *resultobj;
16033 wxChoicebook *result;
16034 char *kwnames[] = {
16035 NULL
16036 };
16037
16038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoicebook",kwnames)) goto fail;
16039 {
16040 if (!wxPyCheckForApp()) SWIG_fail;
16041 PyThreadState* __tstate = wxPyBeginAllowThreads();
16042 result = (wxChoicebook *)new wxChoicebook();
16043
16044 wxPyEndAllowThreads(__tstate);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 }
16047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebook, 1);
16048 return resultobj;
16049 fail:
16050 return NULL;
16051 }
16052
16053
16054 static PyObject *_wrap_Choicebook_Create(PyObject *, PyObject *args, PyObject *kwargs) {
16055 PyObject *resultobj;
16056 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16057 wxWindow *arg2 = (wxWindow *) 0 ;
16058 int arg3 ;
16059 wxPoint const &arg4_defvalue = wxDefaultPosition ;
16060 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
16061 wxSize const &arg5_defvalue = wxDefaultSize ;
16062 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
16063 long arg6 = (long) 0 ;
16064 wxString const &arg7_defvalue = wxPyEmptyString ;
16065 wxString *arg7 = (wxString *) &arg7_defvalue ;
16066 bool result;
16067 wxPoint temp4 ;
16068 wxSize temp5 ;
16069 bool temp7 = false ;
16070 PyObject * obj0 = 0 ;
16071 PyObject * obj1 = 0 ;
16072 PyObject * obj2 = 0 ;
16073 PyObject * obj3 = 0 ;
16074 PyObject * obj4 = 0 ;
16075 PyObject * obj5 = 0 ;
16076 PyObject * obj6 = 0 ;
16077 char *kwnames[] = {
16078 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
16079 };
16080
16081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Choicebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16084 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16086 arg3 = (int)SWIG_As_int(obj2);
16087 if (PyErr_Occurred()) SWIG_fail;
16088 if (obj3) {
16089 {
16090 arg4 = &temp4;
16091 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
16092 }
16093 }
16094 if (obj4) {
16095 {
16096 arg5 = &temp5;
16097 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
16098 }
16099 }
16100 if (obj5) {
16101 arg6 = (long)SWIG_As_long(obj5);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 if (obj6) {
16105 {
16106 arg7 = wxString_in_helper(obj6);
16107 if (arg7 == NULL) SWIG_fail;
16108 temp7 = true;
16109 }
16110 }
16111 {
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
16114
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 {
16119 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16120 }
16121 {
16122 if (temp7)
16123 delete arg7;
16124 }
16125 return resultobj;
16126 fail:
16127 {
16128 if (temp7)
16129 delete arg7;
16130 }
16131 return NULL;
16132 }
16133
16134
16135 static PyObject *_wrap_Choicebook_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
16136 PyObject *resultobj;
16137 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16138 bool result;
16139 PyObject * obj0 = 0 ;
16140 char *kwnames[] = {
16141 (char *) "self", NULL
16142 };
16143
16144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_IsVertical",kwnames,&obj0)) goto fail;
16145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16147 {
16148 PyThreadState* __tstate = wxPyBeginAllowThreads();
16149 result = (bool)((wxChoicebook const *)arg1)->IsVertical();
16150
16151 wxPyEndAllowThreads(__tstate);
16152 if (PyErr_Occurred()) SWIG_fail;
16153 }
16154 {
16155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16156 }
16157 return resultobj;
16158 fail:
16159 return NULL;
16160 }
16161
16162
16163 static PyObject *_wrap_Choicebook_DeleteAllPages(PyObject *, PyObject *args, PyObject *kwargs) {
16164 PyObject *resultobj;
16165 wxChoicebook *arg1 = (wxChoicebook *) 0 ;
16166 bool result;
16167 PyObject * obj0 = 0 ;
16168 char *kwnames[] = {
16169 (char *) "self", NULL
16170 };
16171
16172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Choicebook_DeleteAllPages",kwnames,&obj0)) goto fail;
16173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoicebook,
16174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16175 {
16176 PyThreadState* __tstate = wxPyBeginAllowThreads();
16177 result = (bool)(arg1)->DeleteAllPages();
16178
16179 wxPyEndAllowThreads(__tstate);
16180 if (PyErr_Occurred()) SWIG_fail;
16181 }
16182 {
16183 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16184 }
16185 return resultobj;
16186 fail:
16187 return NULL;
16188 }
16189
16190
16191 static PyObject * Choicebook_swigregister(PyObject *, PyObject *args) {
16192 PyObject *obj;
16193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16194 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebook, obj);
16195 Py_INCREF(obj);
16196 return Py_BuildValue((char *)"");
16197 }
16198 static PyObject *_wrap_new_ChoicebookEvent(PyObject *, PyObject *args, PyObject *kwargs) {
16199 PyObject *resultobj;
16200 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
16201 int arg2 = (int) 0 ;
16202 int arg3 = (int) -1 ;
16203 int arg4 = (int) -1 ;
16204 wxChoicebookEvent *result;
16205 PyObject * obj0 = 0 ;
16206 PyObject * obj1 = 0 ;
16207 PyObject * obj2 = 0 ;
16208 PyObject * obj3 = 0 ;
16209 char *kwnames[] = {
16210 (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL
16211 };
16212
16213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ChoicebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16214 if (obj0) {
16215 arg1 = (wxEventType)SWIG_As_int(obj0);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 if (obj1) {
16219 arg2 = (int)SWIG_As_int(obj1);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 if (obj2) {
16223 arg3 = (int)SWIG_As_int(obj2);
16224 if (PyErr_Occurred()) SWIG_fail;
16225 }
16226 if (obj3) {
16227 arg4 = (int)SWIG_As_int(obj3);
16228 if (PyErr_Occurred()) SWIG_fail;
16229 }
16230 {
16231 PyThreadState* __tstate = wxPyBeginAllowThreads();
16232 result = (wxChoicebookEvent *)new wxChoicebookEvent(arg1,arg2,arg3,arg4);
16233
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoicebookEvent, 1);
16238 return resultobj;
16239 fail:
16240 return NULL;
16241 }
16242
16243
16244 static PyObject * ChoicebookEvent_swigregister(PyObject *, PyObject *args) {
16245 PyObject *obj;
16246 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16247 SWIG_TypeClientData(SWIGTYPE_p_wxChoicebookEvent, obj);
16248 Py_INCREF(obj);
16249 return Py_BuildValue((char *)"");
16250 }
16251 static PyObject *_wrap_new_BookCtrlSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16252 PyObject *resultobj;
16253 wxBookCtrl *arg1 = (wxBookCtrl *) 0 ;
16254 wxBookCtrlSizer *result;
16255 PyObject * obj0 = 0 ;
16256 char *kwnames[] = {
16257 (char *) "nb", NULL
16258 };
16259
16260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail;
16261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl,
16262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1);
16266
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1);
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj;
16279 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16280 PyObject * obj0 = 0 ;
16281 char *kwnames[] = {
16282 (char *) "self", NULL
16283 };
16284
16285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16288 {
16289 PyThreadState* __tstate = wxPyBeginAllowThreads();
16290 (arg1)->RecalcSizes();
16291
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 Py_INCREF(Py_None); resultobj = Py_None;
16296 return resultobj;
16297 fail:
16298 return NULL;
16299 }
16300
16301
16302 static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj;
16304 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16305 wxSize result;
16306 PyObject * obj0 = 0 ;
16307 char *kwnames[] = {
16308 (char *) "self", NULL
16309 };
16310
16311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail;
16312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = (arg1)->CalcMin();
16317
16318 wxPyEndAllowThreads(__tstate);
16319 if (PyErr_Occurred()) SWIG_fail;
16320 }
16321 {
16322 wxSize * resultptr;
16323 resultptr = new wxSize((wxSize &) result);
16324 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16325 }
16326 return resultobj;
16327 fail:
16328 return NULL;
16329 }
16330
16331
16332 static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16333 PyObject *resultobj;
16334 wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ;
16335 wxBookCtrl *result;
16336 PyObject * obj0 = 0 ;
16337 char *kwnames[] = {
16338 (char *) "self", NULL
16339 };
16340
16341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail;
16342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer,
16343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (wxBookCtrl *)(arg1)->GetControl();
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0);
16352 return resultobj;
16353 fail:
16354 return NULL;
16355 }
16356
16357
16358 static PyObject * BookCtrlSizer_swigregister(PyObject *, PyObject *args) {
16359 PyObject *obj;
16360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16361 SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj);
16362 Py_INCREF(obj);
16363 return Py_BuildValue((char *)"");
16364 }
16365 static PyObject *_wrap_new_NotebookSizer(PyObject *, PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj;
16367 wxNotebook *arg1 = (wxNotebook *) 0 ;
16368 wxNotebookSizer *result;
16369 PyObject * obj0 = 0 ;
16370 char *kwnames[] = {
16371 (char *) "nb", NULL
16372 };
16373
16374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail;
16375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook,
16376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16377 {
16378 PyThreadState* __tstate = wxPyBeginAllowThreads();
16379 result = (wxNotebookSizer *)new wxNotebookSizer(arg1);
16380
16381 wxPyEndAllowThreads(__tstate);
16382 if (PyErr_Occurred()) SWIG_fail;
16383 }
16384 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1);
16385 return resultobj;
16386 fail:
16387 return NULL;
16388 }
16389
16390
16391 static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *, PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj;
16393 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail;
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 (arg1)->RecalcSizes();
16405
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 Py_INCREF(Py_None); resultobj = Py_None;
16410 return resultobj;
16411 fail:
16412 return NULL;
16413 }
16414
16415
16416 static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *, PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj;
16418 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16419 wxSize result;
16420 PyObject * obj0 = 0 ;
16421 char *kwnames[] = {
16422 (char *) "self", NULL
16423 };
16424
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail;
16426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (arg1)->CalcMin();
16431
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 {
16436 wxSize * resultptr;
16437 resultptr = new wxSize((wxSize &) result);
16438 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16439 }
16440 return resultobj;
16441 fail:
16442 return NULL;
16443 }
16444
16445
16446 static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *, PyObject *args, PyObject *kwargs) {
16447 PyObject *resultobj;
16448 wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ;
16449 wxNotebook *result;
16450 PyObject * obj0 = 0 ;
16451 char *kwnames[] = {
16452 (char *) "self", NULL
16453 };
16454
16455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail;
16456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer,
16457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16458 {
16459 PyThreadState* __tstate = wxPyBeginAllowThreads();
16460 result = (wxNotebook *)(arg1)->GetNotebook();
16461
16462 wxPyEndAllowThreads(__tstate);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 }
16465 {
16466 resultobj = wxPyMake_wxObject(result, 0);
16467 }
16468 return resultobj;
16469 fail:
16470 return NULL;
16471 }
16472
16473
16474 static PyObject * NotebookSizer_swigregister(PyObject *, PyObject *args) {
16475 PyObject *obj;
16476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16477 SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj);
16478 Py_INCREF(obj);
16479 return Py_BuildValue((char *)"");
16480 }
16481 static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
16482 PyObject *resultobj;
16483 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16484 int result;
16485 PyObject * obj0 = 0 ;
16486 char *kwnames[] = {
16487 (char *) "self", NULL
16488 };
16489
16490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail;
16491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 result = (int)(arg1)->GetId();
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 resultobj = SWIG_From_int((int)result);
16501 return resultobj;
16502 fail:
16503 return NULL;
16504 }
16505
16506
16507 static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *, PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj;
16509 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16510 wxControl *result;
16511 PyObject * obj0 = 0 ;
16512 char *kwnames[] = {
16513 (char *) "self", NULL
16514 };
16515
16516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail;
16517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 result = (wxControl *)(arg1)->GetControl();
16522
16523 wxPyEndAllowThreads(__tstate);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 {
16527 resultobj = wxPyMake_wxObject(result, 0);
16528 }
16529 return resultobj;
16530 fail:
16531 return NULL;
16532 }
16533
16534
16535 static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
16536 PyObject *resultobj;
16537 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16538 wxToolBarBase *result;
16539 PyObject * obj0 = 0 ;
16540 char *kwnames[] = {
16541 (char *) "self", NULL
16542 };
16543
16544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail;
16545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16547 {
16548 PyThreadState* __tstate = wxPyBeginAllowThreads();
16549 result = (wxToolBarBase *)(arg1)->GetToolBar();
16550
16551 wxPyEndAllowThreads(__tstate);
16552 if (PyErr_Occurred()) SWIG_fail;
16553 }
16554 {
16555 resultobj = wxPyMake_wxObject(result, 0);
16556 }
16557 return resultobj;
16558 fail:
16559 return NULL;
16560 }
16561
16562
16563 static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16566 int result;
16567 PyObject * obj0 = 0 ;
16568 char *kwnames[] = {
16569 (char *) "self", NULL
16570 };
16571
16572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail;
16573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16575 {
16576 PyThreadState* __tstate = wxPyBeginAllowThreads();
16577 result = (int)(arg1)->IsButton();
16578
16579 wxPyEndAllowThreads(__tstate);
16580 if (PyErr_Occurred()) SWIG_fail;
16581 }
16582 resultobj = SWIG_From_int((int)result);
16583 return resultobj;
16584 fail:
16585 return NULL;
16586 }
16587
16588
16589 static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *, PyObject *args, PyObject *kwargs) {
16590 PyObject *resultobj;
16591 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16592 int result;
16593 PyObject * obj0 = 0 ;
16594 char *kwnames[] = {
16595 (char *) "self", NULL
16596 };
16597
16598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail;
16599 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16600 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16601 {
16602 PyThreadState* __tstate = wxPyBeginAllowThreads();
16603 result = (int)(arg1)->IsControl();
16604
16605 wxPyEndAllowThreads(__tstate);
16606 if (PyErr_Occurred()) SWIG_fail;
16607 }
16608 resultobj = SWIG_From_int((int)result);
16609 return resultobj;
16610 fail:
16611 return NULL;
16612 }
16613
16614
16615 static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
16616 PyObject *resultobj;
16617 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16618 int result;
16619 PyObject * obj0 = 0 ;
16620 char *kwnames[] = {
16621 (char *) "self", NULL
16622 };
16623
16624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail;
16625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 result = (int)(arg1)->IsSeparator();
16630
16631 wxPyEndAllowThreads(__tstate);
16632 if (PyErr_Occurred()) SWIG_fail;
16633 }
16634 resultobj = SWIG_From_int((int)result);
16635 return resultobj;
16636 fail:
16637 return NULL;
16638 }
16639
16640
16641 static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *, PyObject *args, PyObject *kwargs) {
16642 PyObject *resultobj;
16643 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16644 int result;
16645 PyObject * obj0 = 0 ;
16646 char *kwnames[] = {
16647 (char *) "self", NULL
16648 };
16649
16650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail;
16651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16653 {
16654 PyThreadState* __tstate = wxPyBeginAllowThreads();
16655 result = (int)(arg1)->GetStyle();
16656
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 resultobj = SWIG_From_int((int)result);
16661 return resultobj;
16662 fail:
16663 return NULL;
16664 }
16665
16666
16667 static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *, PyObject *args, PyObject *kwargs) {
16668 PyObject *resultobj;
16669 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16670 int result;
16671 PyObject * obj0 = 0 ;
16672 char *kwnames[] = {
16673 (char *) "self", NULL
16674 };
16675
16676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail;
16677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16679 {
16680 PyThreadState* __tstate = wxPyBeginAllowThreads();
16681 result = (int)(arg1)->GetKind();
16682
16683 wxPyEndAllowThreads(__tstate);
16684 if (PyErr_Occurred()) SWIG_fail;
16685 }
16686 resultobj = SWIG_From_int((int)result);
16687 return resultobj;
16688 fail:
16689 return NULL;
16690 }
16691
16692
16693 static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
16694 PyObject *resultobj;
16695 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16696 bool result;
16697 PyObject * obj0 = 0 ;
16698 char *kwnames[] = {
16699 (char *) "self", NULL
16700 };
16701
16702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail;
16703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16705 {
16706 PyThreadState* __tstate = wxPyBeginAllowThreads();
16707 result = (bool)(arg1)->IsEnabled();
16708
16709 wxPyEndAllowThreads(__tstate);
16710 if (PyErr_Occurred()) SWIG_fail;
16711 }
16712 {
16713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16714 }
16715 return resultobj;
16716 fail:
16717 return NULL;
16718 }
16719
16720
16721 static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16722 PyObject *resultobj;
16723 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16724 bool result;
16725 PyObject * obj0 = 0 ;
16726 char *kwnames[] = {
16727 (char *) "self", NULL
16728 };
16729
16730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail;
16731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16733 {
16734 PyThreadState* __tstate = wxPyBeginAllowThreads();
16735 result = (bool)(arg1)->IsToggled();
16736
16737 wxPyEndAllowThreads(__tstate);
16738 if (PyErr_Occurred()) SWIG_fail;
16739 }
16740 {
16741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16742 }
16743 return resultobj;
16744 fail:
16745 return NULL;
16746 }
16747
16748
16749 static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *, PyObject *args, PyObject *kwargs) {
16750 PyObject *resultobj;
16751 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16752 bool result;
16753 PyObject * obj0 = 0 ;
16754 char *kwnames[] = {
16755 (char *) "self", NULL
16756 };
16757
16758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail;
16759 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16760 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16761 {
16762 PyThreadState* __tstate = wxPyBeginAllowThreads();
16763 result = (bool)(arg1)->CanBeToggled();
16764
16765 wxPyEndAllowThreads(__tstate);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 {
16769 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16770 }
16771 return resultobj;
16772 fail:
16773 return NULL;
16774 }
16775
16776
16777 static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16778 PyObject *resultobj;
16779 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16780 wxBitmap *result;
16781 PyObject * obj0 = 0 ;
16782 char *kwnames[] = {
16783 (char *) "self", NULL
16784 };
16785
16786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail;
16787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16789 {
16790 PyThreadState* __tstate = wxPyBeginAllowThreads();
16791 {
16792 wxBitmap const &_result_ref = (arg1)->GetNormalBitmap();
16793 result = (wxBitmap *) &_result_ref;
16794 }
16795
16796 wxPyEndAllowThreads(__tstate);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
16799 {
16800 wxBitmap* resultptr = new wxBitmap(*result);
16801 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16802 }
16803 return resultobj;
16804 fail:
16805 return NULL;
16806 }
16807
16808
16809 static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16810 PyObject *resultobj;
16811 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16812 wxBitmap *result;
16813 PyObject * obj0 = 0 ;
16814 char *kwnames[] = {
16815 (char *) "self", NULL
16816 };
16817
16818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail;
16819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16821 {
16822 PyThreadState* __tstate = wxPyBeginAllowThreads();
16823 {
16824 wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap();
16825 result = (wxBitmap *) &_result_ref;
16826 }
16827
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 {
16832 wxBitmap* resultptr = new wxBitmap(*result);
16833 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16834 }
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
16842 PyObject *resultobj;
16843 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16844 wxBitmap result;
16845 PyObject * obj0 = 0 ;
16846 char *kwnames[] = {
16847 (char *) "self", NULL
16848 };
16849
16850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail;
16851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = (arg1)->GetBitmap();
16856
16857 wxPyEndAllowThreads(__tstate);
16858 if (PyErr_Occurred()) SWIG_fail;
16859 }
16860 {
16861 wxBitmap * resultptr;
16862 resultptr = new wxBitmap((wxBitmap &) result);
16863 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
16864 }
16865 return resultobj;
16866 fail:
16867 return NULL;
16868 }
16869
16870
16871 static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
16872 PyObject *resultobj;
16873 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16874 wxString result;
16875 PyObject * obj0 = 0 ;
16876 char *kwnames[] = {
16877 (char *) "self", NULL
16878 };
16879
16880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail;
16881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16883 {
16884 PyThreadState* __tstate = wxPyBeginAllowThreads();
16885 result = (arg1)->GetLabel();
16886
16887 wxPyEndAllowThreads(__tstate);
16888 if (PyErr_Occurred()) SWIG_fail;
16889 }
16890 {
16891 #if wxUSE_UNICODE
16892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16893 #else
16894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16895 #endif
16896 }
16897 return resultobj;
16898 fail:
16899 return NULL;
16900 }
16901
16902
16903 static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16904 PyObject *resultobj;
16905 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16906 wxString result;
16907 PyObject * obj0 = 0 ;
16908 char *kwnames[] = {
16909 (char *) "self", NULL
16910 };
16911
16912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail;
16913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16915 {
16916 PyThreadState* __tstate = wxPyBeginAllowThreads();
16917 result = (arg1)->GetShortHelp();
16918
16919 wxPyEndAllowThreads(__tstate);
16920 if (PyErr_Occurred()) SWIG_fail;
16921 }
16922 {
16923 #if wxUSE_UNICODE
16924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16925 #else
16926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16927 #endif
16928 }
16929 return resultobj;
16930 fail:
16931 return NULL;
16932 }
16933
16934
16935 static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
16936 PyObject *resultobj;
16937 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16938 wxString result;
16939 PyObject * obj0 = 0 ;
16940 char *kwnames[] = {
16941 (char *) "self", NULL
16942 };
16943
16944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail;
16945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16947 {
16948 PyThreadState* __tstate = wxPyBeginAllowThreads();
16949 result = (arg1)->GetLongHelp();
16950
16951 wxPyEndAllowThreads(__tstate);
16952 if (PyErr_Occurred()) SWIG_fail;
16953 }
16954 {
16955 #if wxUSE_UNICODE
16956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16957 #else
16958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16959 #endif
16960 }
16961 return resultobj;
16962 fail:
16963 return NULL;
16964 }
16965
16966
16967 static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *, PyObject *args, PyObject *kwargs) {
16968 PyObject *resultobj;
16969 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
16970 bool arg2 ;
16971 bool result;
16972 PyObject * obj0 = 0 ;
16973 PyObject * obj1 = 0 ;
16974 char *kwnames[] = {
16975 (char *) "self",(char *) "enable", NULL
16976 };
16977
16978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail;
16979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
16980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16981 arg2 = (bool)SWIG_As_bool(obj1);
16982 if (PyErr_Occurred()) SWIG_fail;
16983 {
16984 PyThreadState* __tstate = wxPyBeginAllowThreads();
16985 result = (bool)(arg1)->Enable(arg2);
16986
16987 wxPyEndAllowThreads(__tstate);
16988 if (PyErr_Occurred()) SWIG_fail;
16989 }
16990 {
16991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16992 }
16993 return resultobj;
16994 fail:
16995 return NULL;
16996 }
16997
16998
16999 static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
17000 PyObject *resultobj;
17001 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17002 PyObject * obj0 = 0 ;
17003 char *kwnames[] = {
17004 (char *) "self", NULL
17005 };
17006
17007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail;
17008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17010 {
17011 PyThreadState* __tstate = wxPyBeginAllowThreads();
17012 (arg1)->Toggle();
17013
17014 wxPyEndAllowThreads(__tstate);
17015 if (PyErr_Occurred()) SWIG_fail;
17016 }
17017 Py_INCREF(Py_None); resultobj = Py_None;
17018 return resultobj;
17019 fail:
17020 return NULL;
17021 }
17022
17023
17024 static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
17025 PyObject *resultobj;
17026 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17027 bool arg2 ;
17028 bool result;
17029 PyObject * obj0 = 0 ;
17030 PyObject * obj1 = 0 ;
17031 char *kwnames[] = {
17032 (char *) "self",(char *) "toggle", NULL
17033 };
17034
17035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail;
17036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17038 arg2 = (bool)SWIG_As_bool(obj1);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 {
17041 PyThreadState* __tstate = wxPyBeginAllowThreads();
17042 result = (bool)(arg1)->SetToggle(arg2);
17043
17044 wxPyEndAllowThreads(__tstate);
17045 if (PyErr_Occurred()) SWIG_fail;
17046 }
17047 {
17048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17049 }
17050 return resultobj;
17051 fail:
17052 return NULL;
17053 }
17054
17055
17056 static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17057 PyObject *resultobj;
17058 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17059 wxString *arg2 = 0 ;
17060 bool result;
17061 bool temp2 = false ;
17062 PyObject * obj0 = 0 ;
17063 PyObject * obj1 = 0 ;
17064 char *kwnames[] = {
17065 (char *) "self",(char *) "help", NULL
17066 };
17067
17068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail;
17069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17071 {
17072 arg2 = wxString_in_helper(obj1);
17073 if (arg2 == NULL) SWIG_fail;
17074 temp2 = true;
17075 }
17076 {
17077 PyThreadState* __tstate = wxPyBeginAllowThreads();
17078 result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2);
17079
17080 wxPyEndAllowThreads(__tstate);
17081 if (PyErr_Occurred()) SWIG_fail;
17082 }
17083 {
17084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17085 }
17086 {
17087 if (temp2)
17088 delete arg2;
17089 }
17090 return resultobj;
17091 fail:
17092 {
17093 if (temp2)
17094 delete arg2;
17095 }
17096 return NULL;
17097 }
17098
17099
17100 static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
17101 PyObject *resultobj;
17102 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17103 wxString *arg2 = 0 ;
17104 bool result;
17105 bool temp2 = false ;
17106 PyObject * obj0 = 0 ;
17107 PyObject * obj1 = 0 ;
17108 char *kwnames[] = {
17109 (char *) "self",(char *) "help", NULL
17110 };
17111
17112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail;
17113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17115 {
17116 arg2 = wxString_in_helper(obj1);
17117 if (arg2 == NULL) SWIG_fail;
17118 temp2 = true;
17119 }
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2);
17123
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 {
17128 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17129 }
17130 {
17131 if (temp2)
17132 delete arg2;
17133 }
17134 return resultobj;
17135 fail:
17136 {
17137 if (temp2)
17138 delete arg2;
17139 }
17140 return NULL;
17141 }
17142
17143
17144 static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj;
17146 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17147 wxBitmap *arg2 = 0 ;
17148 PyObject * obj0 = 0 ;
17149 PyObject * obj1 = 0 ;
17150 char *kwnames[] = {
17151 (char *) "self",(char *) "bmp", NULL
17152 };
17153
17154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail;
17155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17158 SWIG_POINTER_EXCEPTION | 0)) == -1)
17159 SWIG_fail;
17160 if (arg2 == NULL) {
17161 PyErr_SetString(PyExc_TypeError,"null reference");
17162 SWIG_fail;
17163 }
17164 {
17165 PyThreadState* __tstate = wxPyBeginAllowThreads();
17166 (arg1)->SetNormalBitmap((wxBitmap const &)*arg2);
17167
17168 wxPyEndAllowThreads(__tstate);
17169 if (PyErr_Occurred()) SWIG_fail;
17170 }
17171 Py_INCREF(Py_None); resultobj = Py_None;
17172 return resultobj;
17173 fail:
17174 return NULL;
17175 }
17176
17177
17178 static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj;
17180 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17181 wxBitmap *arg2 = 0 ;
17182 PyObject * obj0 = 0 ;
17183 PyObject * obj1 = 0 ;
17184 char *kwnames[] = {
17185 (char *) "self",(char *) "bmp", NULL
17186 };
17187
17188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail;
17189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17191 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
17192 SWIG_POINTER_EXCEPTION | 0)) == -1)
17193 SWIG_fail;
17194 if (arg2 == NULL) {
17195 PyErr_SetString(PyExc_TypeError,"null reference");
17196 SWIG_fail;
17197 }
17198 {
17199 PyThreadState* __tstate = wxPyBeginAllowThreads();
17200 (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2);
17201
17202 wxPyEndAllowThreads(__tstate);
17203 if (PyErr_Occurred()) SWIG_fail;
17204 }
17205 Py_INCREF(Py_None); resultobj = Py_None;
17206 return resultobj;
17207 fail:
17208 return NULL;
17209 }
17210
17211
17212 static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
17213 PyObject *resultobj;
17214 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17215 wxString *arg2 = 0 ;
17216 bool temp2 = false ;
17217 PyObject * obj0 = 0 ;
17218 PyObject * obj1 = 0 ;
17219 char *kwnames[] = {
17220 (char *) "self",(char *) "label", NULL
17221 };
17222
17223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail;
17224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17226 {
17227 arg2 = wxString_in_helper(obj1);
17228 if (arg2 == NULL) SWIG_fail;
17229 temp2 = true;
17230 }
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 (arg1)->SetLabel((wxString const &)*arg2);
17234
17235 wxPyEndAllowThreads(__tstate);
17236 if (PyErr_Occurred()) SWIG_fail;
17237 }
17238 Py_INCREF(Py_None); resultobj = Py_None;
17239 {
17240 if (temp2)
17241 delete arg2;
17242 }
17243 return resultobj;
17244 fail:
17245 {
17246 if (temp2)
17247 delete arg2;
17248 }
17249 return NULL;
17250 }
17251
17252
17253 static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *, PyObject *args, PyObject *kwargs) {
17254 PyObject *resultobj;
17255 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17256 PyObject * obj0 = 0 ;
17257 char *kwnames[] = {
17258 (char *) "self", NULL
17259 };
17260
17261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail;
17262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17264 {
17265 PyThreadState* __tstate = wxPyBeginAllowThreads();
17266 (arg1)->Detach();
17267
17268 wxPyEndAllowThreads(__tstate);
17269 if (PyErr_Occurred()) SWIG_fail;
17270 }
17271 Py_INCREF(Py_None); resultobj = Py_None;
17272 return resultobj;
17273 fail:
17274 return NULL;
17275 }
17276
17277
17278 static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *, PyObject *args, PyObject *kwargs) {
17279 PyObject *resultobj;
17280 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17281 wxToolBarBase *arg2 = (wxToolBarBase *) 0 ;
17282 PyObject * obj0 = 0 ;
17283 PyObject * obj1 = 0 ;
17284 char *kwnames[] = {
17285 (char *) "self",(char *) "tbar", NULL
17286 };
17287
17288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail;
17289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase,
17292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17293 {
17294 PyThreadState* __tstate = wxPyBeginAllowThreads();
17295 (arg1)->Attach(arg2);
17296
17297 wxPyEndAllowThreads(__tstate);
17298 if (PyErr_Occurred()) SWIG_fail;
17299 }
17300 Py_INCREF(Py_None); resultobj = Py_None;
17301 return resultobj;
17302 fail:
17303 return NULL;
17304 }
17305
17306
17307 static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj;
17309 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17310 PyObject *result;
17311 PyObject * obj0 = 0 ;
17312 char *kwnames[] = {
17313 (char *) "self", NULL
17314 };
17315
17316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail;
17317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17319 {
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 result = (PyObject *)wxToolBarToolBase_GetClientData(arg1);
17322
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 resultobj = result;
17327 return resultobj;
17328 fail:
17329 return NULL;
17330 }
17331
17332
17333 static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *, PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj;
17335 wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ;
17336 PyObject *arg2 = (PyObject *) 0 ;
17337 PyObject * obj0 = 0 ;
17338 PyObject * obj1 = 0 ;
17339 char *kwnames[] = {
17340 (char *) "self",(char *) "clientData", NULL
17341 };
17342
17343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail;
17344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase,
17345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17346 arg2 = obj1;
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 wxToolBarToolBase_SetClientData(arg1,arg2);
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 Py_INCREF(Py_None); resultobj = Py_None;
17355 return resultobj;
17356 fail:
17357 return NULL;
17358 }
17359
17360
17361 static PyObject * ToolBarToolBase_swigregister(PyObject *, PyObject *args) {
17362 PyObject *obj;
17363 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17364 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj);
17365 Py_INCREF(obj);
17366 return Py_BuildValue((char *)"");
17367 }
17368 static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *, PyObject *args, PyObject *kwargs) {
17369 PyObject *resultobj;
17370 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17371 int arg2 ;
17372 wxString *arg3 = 0 ;
17373 wxBitmap *arg4 = 0 ;
17374 wxBitmap const &arg5_defvalue = wxNullBitmap ;
17375 wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ;
17376 int arg6 = (int) wxITEM_NORMAL ;
17377 wxString const &arg7_defvalue = wxPyEmptyString ;
17378 wxString *arg7 = (wxString *) &arg7_defvalue ;
17379 wxString const &arg8_defvalue = wxPyEmptyString ;
17380 wxString *arg8 = (wxString *) &arg8_defvalue ;
17381 PyObject *arg9 = (PyObject *) NULL ;
17382 wxToolBarToolBase *result;
17383 bool temp3 = false ;
17384 bool temp7 = false ;
17385 bool temp8 = false ;
17386 PyObject * obj0 = 0 ;
17387 PyObject * obj1 = 0 ;
17388 PyObject * obj2 = 0 ;
17389 PyObject * obj3 = 0 ;
17390 PyObject * obj4 = 0 ;
17391 PyObject * obj5 = 0 ;
17392 PyObject * obj6 = 0 ;
17393 PyObject * obj7 = 0 ;
17394 PyObject * obj8 = 0 ;
17395 char *kwnames[] = {
17396 (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17397 };
17398
17399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
17400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17402 arg2 = (int)SWIG_As_int(obj1);
17403 if (PyErr_Occurred()) SWIG_fail;
17404 {
17405 arg3 = wxString_in_helper(obj2);
17406 if (arg3 == NULL) SWIG_fail;
17407 temp3 = true;
17408 }
17409 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17410 SWIG_POINTER_EXCEPTION | 0)) == -1)
17411 SWIG_fail;
17412 if (arg4 == NULL) {
17413 PyErr_SetString(PyExc_TypeError,"null reference");
17414 SWIG_fail;
17415 }
17416 if (obj4) {
17417 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17418 SWIG_POINTER_EXCEPTION | 0)) == -1)
17419 SWIG_fail;
17420 if (arg5 == NULL) {
17421 PyErr_SetString(PyExc_TypeError,"null reference");
17422 SWIG_fail;
17423 }
17424 }
17425 if (obj5) {
17426 arg6 = (int)SWIG_As_int(obj5);
17427 if (PyErr_Occurred()) SWIG_fail;
17428 }
17429 if (obj6) {
17430 {
17431 arg7 = wxString_in_helper(obj6);
17432 if (arg7 == NULL) SWIG_fail;
17433 temp7 = true;
17434 }
17435 }
17436 if (obj7) {
17437 {
17438 arg8 = wxString_in_helper(obj7);
17439 if (arg8 == NULL) SWIG_fail;
17440 temp8 = true;
17441 }
17442 }
17443 if (obj8) {
17444 arg9 = obj8;
17445 }
17446 {
17447 PyThreadState* __tstate = wxPyBeginAllowThreads();
17448 result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9);
17449
17450 wxPyEndAllowThreads(__tstate);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 {
17454 resultobj = wxPyMake_wxObject(result, 0);
17455 }
17456 {
17457 if (temp3)
17458 delete arg3;
17459 }
17460 {
17461 if (temp7)
17462 delete arg7;
17463 }
17464 {
17465 if (temp8)
17466 delete arg8;
17467 }
17468 return resultobj;
17469 fail:
17470 {
17471 if (temp3)
17472 delete arg3;
17473 }
17474 {
17475 if (temp7)
17476 delete arg7;
17477 }
17478 {
17479 if (temp8)
17480 delete arg8;
17481 }
17482 return NULL;
17483 }
17484
17485
17486 static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *, PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj;
17488 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17489 size_t arg2 ;
17490 int arg3 ;
17491 wxString *arg4 = 0 ;
17492 wxBitmap *arg5 = 0 ;
17493 wxBitmap const &arg6_defvalue = wxNullBitmap ;
17494 wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ;
17495 int arg7 = (int) wxITEM_NORMAL ;
17496 wxString const &arg8_defvalue = wxPyEmptyString ;
17497 wxString *arg8 = (wxString *) &arg8_defvalue ;
17498 wxString const &arg9_defvalue = wxPyEmptyString ;
17499 wxString *arg9 = (wxString *) &arg9_defvalue ;
17500 PyObject *arg10 = (PyObject *) NULL ;
17501 wxToolBarToolBase *result;
17502 bool temp4 = false ;
17503 bool temp8 = false ;
17504 bool temp9 = false ;
17505 PyObject * obj0 = 0 ;
17506 PyObject * obj1 = 0 ;
17507 PyObject * obj2 = 0 ;
17508 PyObject * obj3 = 0 ;
17509 PyObject * obj4 = 0 ;
17510 PyObject * obj5 = 0 ;
17511 PyObject * obj6 = 0 ;
17512 PyObject * obj7 = 0 ;
17513 PyObject * obj8 = 0 ;
17514 PyObject * obj9 = 0 ;
17515 char *kwnames[] = {
17516 (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL
17517 };
17518
17519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
17520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17522 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 arg3 = (int)SWIG_As_int(obj2);
17525 if (PyErr_Occurred()) SWIG_fail;
17526 {
17527 arg4 = wxString_in_helper(obj3);
17528 if (arg4 == NULL) SWIG_fail;
17529 temp4 = true;
17530 }
17531 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap,
17532 SWIG_POINTER_EXCEPTION | 0)) == -1)
17533 SWIG_fail;
17534 if (arg5 == NULL) {
17535 PyErr_SetString(PyExc_TypeError,"null reference");
17536 SWIG_fail;
17537 }
17538 if (obj5) {
17539 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap,
17540 SWIG_POINTER_EXCEPTION | 0)) == -1)
17541 SWIG_fail;
17542 if (arg6 == NULL) {
17543 PyErr_SetString(PyExc_TypeError,"null reference");
17544 SWIG_fail;
17545 }
17546 }
17547 if (obj6) {
17548 arg7 = (int)SWIG_As_int(obj6);
17549 if (PyErr_Occurred()) SWIG_fail;
17550 }
17551 if (obj7) {
17552 {
17553 arg8 = wxString_in_helper(obj7);
17554 if (arg8 == NULL) SWIG_fail;
17555 temp8 = true;
17556 }
17557 }
17558 if (obj8) {
17559 {
17560 arg9 = wxString_in_helper(obj8);
17561 if (arg9 == NULL) SWIG_fail;
17562 temp9 = true;
17563 }
17564 }
17565 if (obj9) {
17566 arg10 = obj9;
17567 }
17568 {
17569 PyThreadState* __tstate = wxPyBeginAllowThreads();
17570 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);
17571
17572 wxPyEndAllowThreads(__tstate);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 }
17575 {
17576 resultobj = wxPyMake_wxObject(result, 0);
17577 }
17578 {
17579 if (temp4)
17580 delete arg4;
17581 }
17582 {
17583 if (temp8)
17584 delete arg8;
17585 }
17586 {
17587 if (temp9)
17588 delete arg9;
17589 }
17590 return resultobj;
17591 fail:
17592 {
17593 if (temp4)
17594 delete arg4;
17595 }
17596 {
17597 if (temp8)
17598 delete arg8;
17599 }
17600 {
17601 if (temp9)
17602 delete arg9;
17603 }
17604 return NULL;
17605 }
17606
17607
17608 static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17609 PyObject *resultobj;
17610 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17611 wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ;
17612 wxToolBarToolBase *result;
17613 PyObject * obj0 = 0 ;
17614 PyObject * obj1 = 0 ;
17615 char *kwnames[] = {
17616 (char *) "self",(char *) "tool", NULL
17617 };
17618
17619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail;
17620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17622 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase,
17623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17624 {
17625 PyThreadState* __tstate = wxPyBeginAllowThreads();
17626 result = (wxToolBarToolBase *)(arg1)->AddTool(arg2);
17627
17628 wxPyEndAllowThreads(__tstate);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 {
17632 resultobj = wxPyMake_wxObject(result, 0);
17633 }
17634 return resultobj;
17635 fail:
17636 return NULL;
17637 }
17638
17639
17640 static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *, PyObject *args, PyObject *kwargs) {
17641 PyObject *resultobj;
17642 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17643 size_t arg2 ;
17644 wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ;
17645 wxToolBarToolBase *result;
17646 PyObject * obj0 = 0 ;
17647 PyObject * obj1 = 0 ;
17648 PyObject * obj2 = 0 ;
17649 char *kwnames[] = {
17650 (char *) "self",(char *) "pos",(char *) "tool", NULL
17651 };
17652
17653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
17654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17656 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17657 if (PyErr_Occurred()) SWIG_fail;
17658 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase,
17659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17660 {
17661 PyThreadState* __tstate = wxPyBeginAllowThreads();
17662 result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3);
17663
17664 wxPyEndAllowThreads(__tstate);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 }
17667 {
17668 resultobj = wxPyMake_wxObject(result, 0);
17669 }
17670 return resultobj;
17671 fail:
17672 return NULL;
17673 }
17674
17675
17676 static PyObject *_wrap_ToolBarBase_AddControl(PyObject *, PyObject *args, PyObject *kwargs) {
17677 PyObject *resultobj;
17678 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17679 wxControl *arg2 = (wxControl *) 0 ;
17680 wxToolBarToolBase *result;
17681 PyObject * obj0 = 0 ;
17682 PyObject * obj1 = 0 ;
17683 char *kwnames[] = {
17684 (char *) "self",(char *) "control", NULL
17685 };
17686
17687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail;
17688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17690 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl,
17691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17692 {
17693 PyThreadState* __tstate = wxPyBeginAllowThreads();
17694 result = (wxToolBarToolBase *)(arg1)->AddControl(arg2);
17695
17696 wxPyEndAllowThreads(__tstate);
17697 if (PyErr_Occurred()) SWIG_fail;
17698 }
17699 {
17700 resultobj = wxPyMake_wxObject(result, 0);
17701 }
17702 return resultobj;
17703 fail:
17704 return NULL;
17705 }
17706
17707
17708 static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *, PyObject *args, PyObject *kwargs) {
17709 PyObject *resultobj;
17710 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17711 size_t arg2 ;
17712 wxControl *arg3 = (wxControl *) 0 ;
17713 wxToolBarToolBase *result;
17714 PyObject * obj0 = 0 ;
17715 PyObject * obj1 = 0 ;
17716 PyObject * obj2 = 0 ;
17717 char *kwnames[] = {
17718 (char *) "self",(char *) "pos",(char *) "control", NULL
17719 };
17720
17721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail;
17722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17724 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17725 if (PyErr_Occurred()) SWIG_fail;
17726 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl,
17727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17728 {
17729 PyThreadState* __tstate = wxPyBeginAllowThreads();
17730 result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3);
17731
17732 wxPyEndAllowThreads(__tstate);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 {
17736 resultobj = wxPyMake_wxObject(result, 0);
17737 }
17738 return resultobj;
17739 fail:
17740 return NULL;
17741 }
17742
17743
17744 static PyObject *_wrap_ToolBarBase_FindControl(PyObject *, PyObject *args, PyObject *kwargs) {
17745 PyObject *resultobj;
17746 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17747 int arg2 ;
17748 wxControl *result;
17749 PyObject * obj0 = 0 ;
17750 PyObject * obj1 = 0 ;
17751 char *kwnames[] = {
17752 (char *) "self",(char *) "id", NULL
17753 };
17754
17755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail;
17756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17758 arg2 = (int)SWIG_As_int(obj1);
17759 if (PyErr_Occurred()) SWIG_fail;
17760 {
17761 PyThreadState* __tstate = wxPyBeginAllowThreads();
17762 result = (wxControl *)(arg1)->FindControl(arg2);
17763
17764 wxPyEndAllowThreads(__tstate);
17765 if (PyErr_Occurred()) SWIG_fail;
17766 }
17767 {
17768 resultobj = wxPyMake_wxObject(result, 0);
17769 }
17770 return resultobj;
17771 fail:
17772 return NULL;
17773 }
17774
17775
17776 static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj;
17778 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17779 wxToolBarToolBase *result;
17780 PyObject * obj0 = 0 ;
17781 char *kwnames[] = {
17782 (char *) "self", NULL
17783 };
17784
17785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail;
17786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17788 {
17789 PyThreadState* __tstate = wxPyBeginAllowThreads();
17790 result = (wxToolBarToolBase *)(arg1)->AddSeparator();
17791
17792 wxPyEndAllowThreads(__tstate);
17793 if (PyErr_Occurred()) SWIG_fail;
17794 }
17795 {
17796 resultobj = wxPyMake_wxObject(result, 0);
17797 }
17798 return resultobj;
17799 fail:
17800 return NULL;
17801 }
17802
17803
17804 static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj;
17806 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17807 size_t arg2 ;
17808 wxToolBarToolBase *result;
17809 PyObject * obj0 = 0 ;
17810 PyObject * obj1 = 0 ;
17811 char *kwnames[] = {
17812 (char *) "self",(char *) "pos", NULL
17813 };
17814
17815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail;
17816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17818 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17819 if (PyErr_Occurred()) SWIG_fail;
17820 {
17821 PyThreadState* __tstate = wxPyBeginAllowThreads();
17822 result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2);
17823
17824 wxPyEndAllowThreads(__tstate);
17825 if (PyErr_Occurred()) SWIG_fail;
17826 }
17827 {
17828 resultobj = wxPyMake_wxObject(result, 0);
17829 }
17830 return resultobj;
17831 fail:
17832 return NULL;
17833 }
17834
17835
17836 static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *, PyObject *args, PyObject *kwargs) {
17837 PyObject *resultobj;
17838 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17839 int arg2 ;
17840 wxToolBarToolBase *result;
17841 PyObject * obj0 = 0 ;
17842 PyObject * obj1 = 0 ;
17843 char *kwnames[] = {
17844 (char *) "self",(char *) "id", NULL
17845 };
17846
17847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail;
17848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17850 arg2 = (int)SWIG_As_int(obj1);
17851 if (PyErr_Occurred()) SWIG_fail;
17852 {
17853 PyThreadState* __tstate = wxPyBeginAllowThreads();
17854 result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2);
17855
17856 wxPyEndAllowThreads(__tstate);
17857 if (PyErr_Occurred()) SWIG_fail;
17858 }
17859 {
17860 resultobj = wxPyMake_wxObject(result, 0);
17861 }
17862 return resultobj;
17863 fail:
17864 return NULL;
17865 }
17866
17867
17868 static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *, PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj;
17870 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17871 size_t arg2 ;
17872 bool result;
17873 PyObject * obj0 = 0 ;
17874 PyObject * obj1 = 0 ;
17875 char *kwnames[] = {
17876 (char *) "self",(char *) "pos", NULL
17877 };
17878
17879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail;
17880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17882 arg2 = (size_t)SWIG_As_unsigned_SS_long(obj1);
17883 if (PyErr_Occurred()) SWIG_fail;
17884 {
17885 PyThreadState* __tstate = wxPyBeginAllowThreads();
17886 result = (bool)(arg1)->DeleteToolByPos(arg2);
17887
17888 wxPyEndAllowThreads(__tstate);
17889 if (PyErr_Occurred()) SWIG_fail;
17890 }
17891 {
17892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17893 }
17894 return resultobj;
17895 fail:
17896 return NULL;
17897 }
17898
17899
17900 static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *, PyObject *args, PyObject *kwargs) {
17901 PyObject *resultobj;
17902 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17903 int arg2 ;
17904 bool result;
17905 PyObject * obj0 = 0 ;
17906 PyObject * obj1 = 0 ;
17907 char *kwnames[] = {
17908 (char *) "self",(char *) "id", NULL
17909 };
17910
17911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail;
17912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17914 arg2 = (int)SWIG_As_int(obj1);
17915 if (PyErr_Occurred()) SWIG_fail;
17916 {
17917 PyThreadState* __tstate = wxPyBeginAllowThreads();
17918 result = (bool)(arg1)->DeleteTool(arg2);
17919
17920 wxPyEndAllowThreads(__tstate);
17921 if (PyErr_Occurred()) SWIG_fail;
17922 }
17923 {
17924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17925 }
17926 return resultobj;
17927 fail:
17928 return NULL;
17929 }
17930
17931
17932 static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *, PyObject *args, PyObject *kwargs) {
17933 PyObject *resultobj;
17934 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17935 PyObject * obj0 = 0 ;
17936 char *kwnames[] = {
17937 (char *) "self", NULL
17938 };
17939
17940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail;
17941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 (arg1)->ClearTools();
17946
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 Py_INCREF(Py_None); resultobj = Py_None;
17951 return resultobj;
17952 fail:
17953 return NULL;
17954 }
17955
17956
17957 static PyObject *_wrap_ToolBarBase_Realize(PyObject *, PyObject *args, PyObject *kwargs) {
17958 PyObject *resultobj;
17959 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17960 bool result;
17961 PyObject * obj0 = 0 ;
17962 char *kwnames[] = {
17963 (char *) "self", NULL
17964 };
17965
17966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail;
17967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
17968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (bool)(arg1)->Realize();
17972
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 {
17977 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17978 }
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *, PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj;
17987 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
17988 int arg2 ;
17989 bool arg3 ;
17990 PyObject * obj0 = 0 ;
17991 PyObject * obj1 = 0 ;
17992 PyObject * obj2 = 0 ;
17993 char *kwnames[] = {
17994 (char *) "self",(char *) "id",(char *) "enable", NULL
17995 };
17996
17997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) 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 arg3 = (bool)SWIG_As_bool(obj2);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 (arg1)->EnableTool(arg2,arg3);
18007
18008 wxPyEndAllowThreads(__tstate);
18009 if (PyErr_Occurred()) SWIG_fail;
18010 }
18011 Py_INCREF(Py_None); resultobj = Py_None;
18012 return resultobj;
18013 fail:
18014 return NULL;
18015 }
18016
18017
18018 static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *, PyObject *args, PyObject *kwargs) {
18019 PyObject *resultobj;
18020 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18021 int arg2 ;
18022 bool arg3 ;
18023 PyObject * obj0 = 0 ;
18024 PyObject * obj1 = 0 ;
18025 PyObject * obj2 = 0 ;
18026 char *kwnames[] = {
18027 (char *) "self",(char *) "id",(char *) "toggle", NULL
18028 };
18029
18030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail;
18031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18033 arg2 = (int)SWIG_As_int(obj1);
18034 if (PyErr_Occurred()) SWIG_fail;
18035 arg3 = (bool)SWIG_As_bool(obj2);
18036 if (PyErr_Occurred()) SWIG_fail;
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 (arg1)->ToggleTool(arg2,arg3);
18040
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 Py_INCREF(Py_None); resultobj = Py_None;
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *, PyObject *args, PyObject *kwargs) {
18052 PyObject *resultobj;
18053 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18054 int arg2 ;
18055 bool arg3 ;
18056 PyObject * obj0 = 0 ;
18057 PyObject * obj1 = 0 ;
18058 PyObject * obj2 = 0 ;
18059 char *kwnames[] = {
18060 (char *) "self",(char *) "id",(char *) "toggle", NULL
18061 };
18062
18063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail;
18064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18066 arg2 = (int)SWIG_As_int(obj1);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 arg3 = (bool)SWIG_As_bool(obj2);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 {
18071 PyThreadState* __tstate = wxPyBeginAllowThreads();
18072 (arg1)->SetToggle(arg2,arg3);
18073
18074 wxPyEndAllowThreads(__tstate);
18075 if (PyErr_Occurred()) SWIG_fail;
18076 }
18077 Py_INCREF(Py_None); resultobj = Py_None;
18078 return resultobj;
18079 fail:
18080 return NULL;
18081 }
18082
18083
18084 static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18085 PyObject *resultobj;
18086 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18087 int arg2 ;
18088 PyObject *result;
18089 PyObject * obj0 = 0 ;
18090 PyObject * obj1 = 0 ;
18091 char *kwnames[] = {
18092 (char *) "self",(char *) "id", NULL
18093 };
18094
18095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail;
18096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18098 arg2 = (int)SWIG_As_int(obj1);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2);
18103
18104 wxPyEndAllowThreads(__tstate);
18105 if (PyErr_Occurred()) SWIG_fail;
18106 }
18107 resultobj = result;
18108 return resultobj;
18109 fail:
18110 return NULL;
18111 }
18112
18113
18114 static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *, PyObject *args, PyObject *kwargs) {
18115 PyObject *resultobj;
18116 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18117 int arg2 ;
18118 PyObject *arg3 = (PyObject *) 0 ;
18119 PyObject * obj0 = 0 ;
18120 PyObject * obj1 = 0 ;
18121 PyObject * obj2 = 0 ;
18122 char *kwnames[] = {
18123 (char *) "self",(char *) "id",(char *) "clientData", NULL
18124 };
18125
18126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail;
18127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18129 arg2 = (int)SWIG_As_int(obj1);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 arg3 = obj2;
18132 {
18133 PyThreadState* __tstate = wxPyBeginAllowThreads();
18134 wxToolBarBase_SetToolClientData(arg1,arg2,arg3);
18135
18136 wxPyEndAllowThreads(__tstate);
18137 if (PyErr_Occurred()) SWIG_fail;
18138 }
18139 Py_INCREF(Py_None); resultobj = Py_None;
18140 return resultobj;
18141 fail:
18142 return NULL;
18143 }
18144
18145
18146 static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *, PyObject *args, PyObject *kwargs) {
18147 PyObject *resultobj;
18148 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18149 int arg2 ;
18150 int result;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 char *kwnames[] = {
18154 (char *) "self",(char *) "id", NULL
18155 };
18156
18157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail;
18158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18160 arg2 = (int)SWIG_As_int(obj1);
18161 if (PyErr_Occurred()) SWIG_fail;
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2);
18165
18166 wxPyEndAllowThreads(__tstate);
18167 if (PyErr_Occurred()) SWIG_fail;
18168 }
18169 resultobj = SWIG_From_int((int)result);
18170 return resultobj;
18171 fail:
18172 return NULL;
18173 }
18174
18175
18176 static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *, PyObject *args, PyObject *kwargs) {
18177 PyObject *resultobj;
18178 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18179 int arg2 ;
18180 bool result;
18181 PyObject * obj0 = 0 ;
18182 PyObject * obj1 = 0 ;
18183 char *kwnames[] = {
18184 (char *) "self",(char *) "id", NULL
18185 };
18186
18187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail;
18188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18190 arg2 = (int)SWIG_As_int(obj1);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 {
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 result = (bool)(arg1)->GetToolState(arg2);
18195
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 {
18200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18201 }
18202 return resultobj;
18203 fail:
18204 return NULL;
18205 }
18206
18207
18208 static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *, PyObject *args, PyObject *kwargs) {
18209 PyObject *resultobj;
18210 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18211 int arg2 ;
18212 bool result;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 char *kwnames[] = {
18216 (char *) "self",(char *) "id", NULL
18217 };
18218
18219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail;
18220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18222 arg2 = (int)SWIG_As_int(obj1);
18223 if (PyErr_Occurred()) SWIG_fail;
18224 {
18225 PyThreadState* __tstate = wxPyBeginAllowThreads();
18226 result = (bool)(arg1)->GetToolEnabled(arg2);
18227
18228 wxPyEndAllowThreads(__tstate);
18229 if (PyErr_Occurred()) SWIG_fail;
18230 }
18231 {
18232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18233 }
18234 return resultobj;
18235 fail:
18236 return NULL;
18237 }
18238
18239
18240 static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj;
18242 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18243 int arg2 ;
18244 wxString *arg3 = 0 ;
18245 bool temp3 = false ;
18246 PyObject * obj0 = 0 ;
18247 PyObject * obj1 = 0 ;
18248 PyObject * obj2 = 0 ;
18249 char *kwnames[] = {
18250 (char *) "self",(char *) "id",(char *) "helpString", NULL
18251 };
18252
18253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18256 arg2 = (int)SWIG_As_int(obj1);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 {
18259 arg3 = wxString_in_helper(obj2);
18260 if (arg3 == NULL) SWIG_fail;
18261 temp3 = true;
18262 }
18263 {
18264 PyThreadState* __tstate = wxPyBeginAllowThreads();
18265 (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3);
18266
18267 wxPyEndAllowThreads(__tstate);
18268 if (PyErr_Occurred()) SWIG_fail;
18269 }
18270 Py_INCREF(Py_None); resultobj = Py_None;
18271 {
18272 if (temp3)
18273 delete arg3;
18274 }
18275 return resultobj;
18276 fail:
18277 {
18278 if (temp3)
18279 delete arg3;
18280 }
18281 return NULL;
18282 }
18283
18284
18285 static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj;
18287 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18288 int arg2 ;
18289 wxString result;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self",(char *) "id", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 arg2 = (int)SWIG_As_int(obj1);
18300 if (PyErr_Occurred()) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 result = (arg1)->GetToolShortHelp(arg2);
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 {
18309 #if wxUSE_UNICODE
18310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18311 #else
18312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18313 #endif
18314 }
18315 return resultobj;
18316 fail:
18317 return NULL;
18318 }
18319
18320
18321 static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18322 PyObject *resultobj;
18323 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18324 int arg2 ;
18325 wxString *arg3 = 0 ;
18326 bool temp3 = false ;
18327 PyObject * obj0 = 0 ;
18328 PyObject * obj1 = 0 ;
18329 PyObject * obj2 = 0 ;
18330 char *kwnames[] = {
18331 (char *) "self",(char *) "id",(char *) "helpString", NULL
18332 };
18333
18334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
18335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18337 arg2 = (int)SWIG_As_int(obj1);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 {
18340 arg3 = wxString_in_helper(obj2);
18341 if (arg3 == NULL) SWIG_fail;
18342 temp3 = true;
18343 }
18344 {
18345 PyThreadState* __tstate = wxPyBeginAllowThreads();
18346 (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3);
18347
18348 wxPyEndAllowThreads(__tstate);
18349 if (PyErr_Occurred()) SWIG_fail;
18350 }
18351 Py_INCREF(Py_None); resultobj = Py_None;
18352 {
18353 if (temp3)
18354 delete arg3;
18355 }
18356 return resultobj;
18357 fail:
18358 {
18359 if (temp3)
18360 delete arg3;
18361 }
18362 return NULL;
18363 }
18364
18365
18366 static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *, PyObject *args, PyObject *kwargs) {
18367 PyObject *resultobj;
18368 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18369 int arg2 ;
18370 wxString result;
18371 PyObject * obj0 = 0 ;
18372 PyObject * obj1 = 0 ;
18373 char *kwnames[] = {
18374 (char *) "self",(char *) "id", NULL
18375 };
18376
18377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail;
18378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18380 arg2 = (int)SWIG_As_int(obj1);
18381 if (PyErr_Occurred()) SWIG_fail;
18382 {
18383 PyThreadState* __tstate = wxPyBeginAllowThreads();
18384 result = (arg1)->GetToolLongHelp(arg2);
18385
18386 wxPyEndAllowThreads(__tstate);
18387 if (PyErr_Occurred()) SWIG_fail;
18388 }
18389 {
18390 #if wxUSE_UNICODE
18391 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18392 #else
18393 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18394 #endif
18395 }
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *, PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj;
18404 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18405 int arg2 ;
18406 int arg3 ;
18407 PyObject * obj0 = 0 ;
18408 PyObject * obj1 = 0 ;
18409 PyObject * obj2 = 0 ;
18410 char *kwnames[] = {
18411 (char *) "self",(char *) "x",(char *) "y", NULL
18412 };
18413
18414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
18415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18417 arg2 = (int)SWIG_As_int(obj1);
18418 if (PyErr_Occurred()) SWIG_fail;
18419 arg3 = (int)SWIG_As_int(obj2);
18420 if (PyErr_Occurred()) SWIG_fail;
18421 {
18422 PyThreadState* __tstate = wxPyBeginAllowThreads();
18423 (arg1)->SetMargins(arg2,arg3);
18424
18425 wxPyEndAllowThreads(__tstate);
18426 if (PyErr_Occurred()) SWIG_fail;
18427 }
18428 Py_INCREF(Py_None); resultobj = Py_None;
18429 return resultobj;
18430 fail:
18431 return NULL;
18432 }
18433
18434
18435 static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18436 PyObject *resultobj;
18437 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18438 wxSize *arg2 = 0 ;
18439 wxSize temp2 ;
18440 PyObject * obj0 = 0 ;
18441 PyObject * obj1 = 0 ;
18442 char *kwnames[] = {
18443 (char *) "self",(char *) "size", NULL
18444 };
18445
18446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail;
18447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18449 {
18450 arg2 = &temp2;
18451 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18452 }
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 (arg1)->SetMargins((wxSize const &)*arg2);
18456
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 Py_INCREF(Py_None); resultobj = Py_None;
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj;
18469 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18470 int arg2 ;
18471 PyObject * obj0 = 0 ;
18472 PyObject * obj1 = 0 ;
18473 char *kwnames[] = {
18474 (char *) "self",(char *) "packing", NULL
18475 };
18476
18477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail;
18478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18480 arg2 = (int)SWIG_As_int(obj1);
18481 if (PyErr_Occurred()) SWIG_fail;
18482 {
18483 PyThreadState* __tstate = wxPyBeginAllowThreads();
18484 (arg1)->SetToolPacking(arg2);
18485
18486 wxPyEndAllowThreads(__tstate);
18487 if (PyErr_Occurred()) SWIG_fail;
18488 }
18489 Py_INCREF(Py_None); resultobj = Py_None;
18490 return resultobj;
18491 fail:
18492 return NULL;
18493 }
18494
18495
18496 static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18497 PyObject *resultobj;
18498 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18499 int arg2 ;
18500 PyObject * obj0 = 0 ;
18501 PyObject * obj1 = 0 ;
18502 char *kwnames[] = {
18503 (char *) "self",(char *) "separation", NULL
18504 };
18505
18506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail;
18507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18509 arg2 = (int)SWIG_As_int(obj1);
18510 if (PyErr_Occurred()) SWIG_fail;
18511 {
18512 PyThreadState* __tstate = wxPyBeginAllowThreads();
18513 (arg1)->SetToolSeparation(arg2);
18514
18515 wxPyEndAllowThreads(__tstate);
18516 if (PyErr_Occurred()) SWIG_fail;
18517 }
18518 Py_INCREF(Py_None); resultobj = Py_None;
18519 return resultobj;
18520 fail:
18521 return NULL;
18522 }
18523
18524
18525 static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18526 PyObject *resultobj;
18527 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18528 wxSize result;
18529 PyObject * obj0 = 0 ;
18530 char *kwnames[] = {
18531 (char *) "self", NULL
18532 };
18533
18534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail;
18535 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18537 {
18538 PyThreadState* __tstate = wxPyBeginAllowThreads();
18539 result = (arg1)->GetToolMargins();
18540
18541 wxPyEndAllowThreads(__tstate);
18542 if (PyErr_Occurred()) SWIG_fail;
18543 }
18544 {
18545 wxSize * resultptr;
18546 resultptr = new wxSize((wxSize &) result);
18547 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18548 }
18549 return resultobj;
18550 fail:
18551 return NULL;
18552 }
18553
18554
18555 static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *, PyObject *args, PyObject *kwargs) {
18556 PyObject *resultobj;
18557 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18558 wxSize result;
18559 PyObject * obj0 = 0 ;
18560 char *kwnames[] = {
18561 (char *) "self", NULL
18562 };
18563
18564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail;
18565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18567 {
18568 PyThreadState* __tstate = wxPyBeginAllowThreads();
18569 result = (arg1)->GetMargins();
18570
18571 wxPyEndAllowThreads(__tstate);
18572 if (PyErr_Occurred()) SWIG_fail;
18573 }
18574 {
18575 wxSize * resultptr;
18576 resultptr = new wxSize((wxSize &) result);
18577 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18578 }
18579 return resultobj;
18580 fail:
18581 return NULL;
18582 }
18583
18584
18585 static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *, PyObject *args, PyObject *kwargs) {
18586 PyObject *resultobj;
18587 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18588 int result;
18589 PyObject * obj0 = 0 ;
18590 char *kwnames[] = {
18591 (char *) "self", NULL
18592 };
18593
18594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail;
18595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18597 {
18598 PyThreadState* __tstate = wxPyBeginAllowThreads();
18599 result = (int)(arg1)->GetToolPacking();
18600
18601 wxPyEndAllowThreads(__tstate);
18602 if (PyErr_Occurred()) SWIG_fail;
18603 }
18604 resultobj = SWIG_From_int((int)result);
18605 return resultobj;
18606 fail:
18607 return NULL;
18608 }
18609
18610
18611 static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *, PyObject *args, PyObject *kwargs) {
18612 PyObject *resultobj;
18613 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18614 int result;
18615 PyObject * obj0 = 0 ;
18616 char *kwnames[] = {
18617 (char *) "self", NULL
18618 };
18619
18620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail;
18621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18623 {
18624 PyThreadState* __tstate = wxPyBeginAllowThreads();
18625 result = (int)(arg1)->GetToolSeparation();
18626
18627 wxPyEndAllowThreads(__tstate);
18628 if (PyErr_Occurred()) SWIG_fail;
18629 }
18630 resultobj = SWIG_From_int((int)result);
18631 return resultobj;
18632 fail:
18633 return NULL;
18634 }
18635
18636
18637 static PyObject *_wrap_ToolBarBase_SetRows(PyObject *, PyObject *args, PyObject *kwargs) {
18638 PyObject *resultobj;
18639 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18640 int arg2 ;
18641 PyObject * obj0 = 0 ;
18642 PyObject * obj1 = 0 ;
18643 char *kwnames[] = {
18644 (char *) "self",(char *) "nRows", NULL
18645 };
18646
18647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail;
18648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18650 arg2 = (int)SWIG_As_int(obj1);
18651 if (PyErr_Occurred()) SWIG_fail;
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 (arg1)->SetRows(arg2);
18655
18656 wxPyEndAllowThreads(__tstate);
18657 if (PyErr_Occurred()) SWIG_fail;
18658 }
18659 Py_INCREF(Py_None); resultobj = Py_None;
18660 return resultobj;
18661 fail:
18662 return NULL;
18663 }
18664
18665
18666 static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *, PyObject *args, PyObject *kwargs) {
18667 PyObject *resultobj;
18668 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18669 int arg2 ;
18670 int arg3 ;
18671 PyObject * obj0 = 0 ;
18672 PyObject * obj1 = 0 ;
18673 PyObject * obj2 = 0 ;
18674 char *kwnames[] = {
18675 (char *) "self",(char *) "rows",(char *) "cols", NULL
18676 };
18677
18678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail;
18679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18681 arg2 = (int)SWIG_As_int(obj1);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 arg3 = (int)SWIG_As_int(obj2);
18684 if (PyErr_Occurred()) SWIG_fail;
18685 {
18686 PyThreadState* __tstate = wxPyBeginAllowThreads();
18687 (arg1)->SetMaxRowsCols(arg2,arg3);
18688
18689 wxPyEndAllowThreads(__tstate);
18690 if (PyErr_Occurred()) SWIG_fail;
18691 }
18692 Py_INCREF(Py_None); resultobj = Py_None;
18693 return resultobj;
18694 fail:
18695 return NULL;
18696 }
18697
18698
18699 static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *, PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj;
18701 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18702 int result;
18703 PyObject * obj0 = 0 ;
18704 char *kwnames[] = {
18705 (char *) "self", NULL
18706 };
18707
18708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail;
18709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18711 {
18712 PyThreadState* __tstate = wxPyBeginAllowThreads();
18713 result = (int)(arg1)->GetMaxRows();
18714
18715 wxPyEndAllowThreads(__tstate);
18716 if (PyErr_Occurred()) SWIG_fail;
18717 }
18718 resultobj = SWIG_From_int((int)result);
18719 return resultobj;
18720 fail:
18721 return NULL;
18722 }
18723
18724
18725 static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *, PyObject *args, PyObject *kwargs) {
18726 PyObject *resultobj;
18727 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18728 int result;
18729 PyObject * obj0 = 0 ;
18730 char *kwnames[] = {
18731 (char *) "self", NULL
18732 };
18733
18734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail;
18735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 result = (int)(arg1)->GetMaxCols();
18740
18741 wxPyEndAllowThreads(__tstate);
18742 if (PyErr_Occurred()) SWIG_fail;
18743 }
18744 resultobj = SWIG_From_int((int)result);
18745 return resultobj;
18746 fail:
18747 return NULL;
18748 }
18749
18750
18751 static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18752 PyObject *resultobj;
18753 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18754 wxSize *arg2 = 0 ;
18755 wxSize temp2 ;
18756 PyObject * obj0 = 0 ;
18757 PyObject * obj1 = 0 ;
18758 char *kwnames[] = {
18759 (char *) "self",(char *) "size", NULL
18760 };
18761
18762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail;
18763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18765 {
18766 arg2 = &temp2;
18767 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
18768 }
18769 {
18770 PyThreadState* __tstate = wxPyBeginAllowThreads();
18771 (arg1)->SetToolBitmapSize((wxSize const &)*arg2);
18772
18773 wxPyEndAllowThreads(__tstate);
18774 if (PyErr_Occurred()) SWIG_fail;
18775 }
18776 Py_INCREF(Py_None); resultobj = Py_None;
18777 return resultobj;
18778 fail:
18779 return NULL;
18780 }
18781
18782
18783 static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *, PyObject *args, PyObject *kwargs) {
18784 PyObject *resultobj;
18785 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18786 wxSize result;
18787 PyObject * obj0 = 0 ;
18788 char *kwnames[] = {
18789 (char *) "self", NULL
18790 };
18791
18792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail;
18793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18795 {
18796 PyThreadState* __tstate = wxPyBeginAllowThreads();
18797 result = (arg1)->GetToolBitmapSize();
18798
18799 wxPyEndAllowThreads(__tstate);
18800 if (PyErr_Occurred()) SWIG_fail;
18801 }
18802 {
18803 wxSize * resultptr;
18804 resultptr = new wxSize((wxSize &) result);
18805 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18806 }
18807 return resultobj;
18808 fail:
18809 return NULL;
18810 }
18811
18812
18813 static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *, PyObject *args, PyObject *kwargs) {
18814 PyObject *resultobj;
18815 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18816 wxSize result;
18817 PyObject * obj0 = 0 ;
18818 char *kwnames[] = {
18819 (char *) "self", NULL
18820 };
18821
18822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail;
18823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18825 {
18826 PyThreadState* __tstate = wxPyBeginAllowThreads();
18827 result = (arg1)->GetToolSize();
18828
18829 wxPyEndAllowThreads(__tstate);
18830 if (PyErr_Occurred()) SWIG_fail;
18831 }
18832 {
18833 wxSize * resultptr;
18834 resultptr = new wxSize((wxSize &) result);
18835 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
18836 }
18837 return resultobj;
18838 fail:
18839 return NULL;
18840 }
18841
18842
18843 static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
18844 PyObject *resultobj;
18845 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18846 int arg2 ;
18847 int arg3 ;
18848 wxToolBarToolBase *result;
18849 PyObject * obj0 = 0 ;
18850 PyObject * obj1 = 0 ;
18851 PyObject * obj2 = 0 ;
18852 char *kwnames[] = {
18853 (char *) "self",(char *) "x",(char *) "y", NULL
18854 };
18855
18856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
18857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18859 arg2 = (int)SWIG_As_int(obj1);
18860 if (PyErr_Occurred()) SWIG_fail;
18861 arg3 = (int)SWIG_As_int(obj2);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
18866
18867 wxPyEndAllowThreads(__tstate);
18868 if (PyErr_Occurred()) SWIG_fail;
18869 }
18870 {
18871 resultobj = wxPyMake_wxObject(result, 0);
18872 }
18873 return resultobj;
18874 fail:
18875 return NULL;
18876 }
18877
18878
18879 static PyObject *_wrap_ToolBarBase_FindById(PyObject *, PyObject *args, PyObject *kwargs) {
18880 PyObject *resultobj;
18881 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18882 int arg2 ;
18883 wxToolBarToolBase *result;
18884 PyObject * obj0 = 0 ;
18885 PyObject * obj1 = 0 ;
18886 char *kwnames[] = {
18887 (char *) "self",(char *) "toolid", NULL
18888 };
18889
18890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail;
18891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18893 arg2 = (int)SWIG_As_int(obj1);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 {
18896 PyThreadState* __tstate = wxPyBeginAllowThreads();
18897 result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2);
18898
18899 wxPyEndAllowThreads(__tstate);
18900 if (PyErr_Occurred()) SWIG_fail;
18901 }
18902 {
18903 resultobj = wxPyMake_wxObject(result, 0);
18904 }
18905 return resultobj;
18906 fail:
18907 return NULL;
18908 }
18909
18910
18911 static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *, PyObject *args, PyObject *kwargs) {
18912 PyObject *resultobj;
18913 wxToolBarBase *arg1 = (wxToolBarBase *) 0 ;
18914 bool result;
18915 PyObject * obj0 = 0 ;
18916 char *kwnames[] = {
18917 (char *) "self", NULL
18918 };
18919
18920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail;
18921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase,
18922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 result = (bool)(arg1)->IsVertical();
18926
18927 wxPyEndAllowThreads(__tstate);
18928 if (PyErr_Occurred()) SWIG_fail;
18929 }
18930 {
18931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18932 }
18933 return resultobj;
18934 fail:
18935 return NULL;
18936 }
18937
18938
18939 static PyObject * ToolBarBase_swigregister(PyObject *, PyObject *args) {
18940 PyObject *obj;
18941 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18942 SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj);
18943 Py_INCREF(obj);
18944 return Py_BuildValue((char *)"");
18945 }
18946 static PyObject *_wrap_new_ToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
18947 PyObject *resultobj;
18948 wxWindow *arg1 = (wxWindow *) 0 ;
18949 int arg2 = (int) -1 ;
18950 wxPoint const &arg3_defvalue = wxDefaultPosition ;
18951 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
18952 wxSize const &arg4_defvalue = wxDefaultSize ;
18953 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
18954 long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
18955 wxString const &arg6_defvalue = wxPyToolBarNameStr ;
18956 wxString *arg6 = (wxString *) &arg6_defvalue ;
18957 wxToolBar *result;
18958 wxPoint temp3 ;
18959 wxSize temp4 ;
18960 bool temp6 = false ;
18961 PyObject * obj0 = 0 ;
18962 PyObject * obj1 = 0 ;
18963 PyObject * obj2 = 0 ;
18964 PyObject * obj3 = 0 ;
18965 PyObject * obj4 = 0 ;
18966 PyObject * obj5 = 0 ;
18967 char *kwnames[] = {
18968 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
18969 };
18970
18971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
18973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18974 if (obj1) {
18975 arg2 = (int)SWIG_As_int(obj1);
18976 if (PyErr_Occurred()) SWIG_fail;
18977 }
18978 if (obj2) {
18979 {
18980 arg3 = &temp3;
18981 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18982 }
18983 }
18984 if (obj3) {
18985 {
18986 arg4 = &temp4;
18987 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
18988 }
18989 }
18990 if (obj4) {
18991 arg5 = (long)SWIG_As_long(obj4);
18992 if (PyErr_Occurred()) SWIG_fail;
18993 }
18994 if (obj5) {
18995 {
18996 arg6 = wxString_in_helper(obj5);
18997 if (arg6 == NULL) SWIG_fail;
18998 temp6 = true;
18999 }
19000 }
19001 {
19002 if (!wxPyCheckForApp()) SWIG_fail;
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6);
19005
19006 wxPyEndAllowThreads(__tstate);
19007 if (PyErr_Occurred()) SWIG_fail;
19008 }
19009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19010 {
19011 if (temp6)
19012 delete arg6;
19013 }
19014 return resultobj;
19015 fail:
19016 {
19017 if (temp6)
19018 delete arg6;
19019 }
19020 return NULL;
19021 }
19022
19023
19024 static PyObject *_wrap_new_PreToolBar(PyObject *, PyObject *args, PyObject *kwargs) {
19025 PyObject *resultobj;
19026 wxToolBar *result;
19027 char *kwnames[] = {
19028 NULL
19029 };
19030
19031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail;
19032 {
19033 if (!wxPyCheckForApp()) SWIG_fail;
19034 PyThreadState* __tstate = wxPyBeginAllowThreads();
19035 result = (wxToolBar *)new wxToolBar();
19036
19037 wxPyEndAllowThreads(__tstate);
19038 if (PyErr_Occurred()) SWIG_fail;
19039 }
19040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1);
19041 return resultobj;
19042 fail:
19043 return NULL;
19044 }
19045
19046
19047 static PyObject *_wrap_ToolBar_Create(PyObject *, PyObject *args, PyObject *kwargs) {
19048 PyObject *resultobj;
19049 wxToolBar *arg1 = (wxToolBar *) 0 ;
19050 wxWindow *arg2 = (wxWindow *) 0 ;
19051 int arg3 = (int) -1 ;
19052 wxPoint const &arg4_defvalue = wxDefaultPosition ;
19053 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
19054 wxSize const &arg5_defvalue = wxDefaultSize ;
19055 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
19056 long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ;
19057 wxString const &arg7_defvalue = wxPyToolBarNameStr ;
19058 wxString *arg7 = (wxString *) &arg7_defvalue ;
19059 bool result;
19060 wxPoint temp4 ;
19061 wxSize temp5 ;
19062 bool temp7 = false ;
19063 PyObject * obj0 = 0 ;
19064 PyObject * obj1 = 0 ;
19065 PyObject * obj2 = 0 ;
19066 PyObject * obj3 = 0 ;
19067 PyObject * obj4 = 0 ;
19068 PyObject * obj5 = 0 ;
19069 PyObject * obj6 = 0 ;
19070 char *kwnames[] = {
19071 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL
19072 };
19073
19074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
19075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19077 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
19078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19079 if (obj2) {
19080 arg3 = (int)SWIG_As_int(obj2);
19081 if (PyErr_Occurred()) SWIG_fail;
19082 }
19083 if (obj3) {
19084 {
19085 arg4 = &temp4;
19086 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
19087 }
19088 }
19089 if (obj4) {
19090 {
19091 arg5 = &temp5;
19092 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
19093 }
19094 }
19095 if (obj5) {
19096 arg6 = (long)SWIG_As_long(obj5);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 if (obj6) {
19100 {
19101 arg7 = wxString_in_helper(obj6);
19102 if (arg7 == NULL) SWIG_fail;
19103 temp7 = true;
19104 }
19105 }
19106 {
19107 PyThreadState* __tstate = wxPyBeginAllowThreads();
19108 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7);
19109
19110 wxPyEndAllowThreads(__tstate);
19111 if (PyErr_Occurred()) SWIG_fail;
19112 }
19113 {
19114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19115 }
19116 {
19117 if (temp7)
19118 delete arg7;
19119 }
19120 return resultobj;
19121 fail:
19122 {
19123 if (temp7)
19124 delete arg7;
19125 }
19126 return NULL;
19127 }
19128
19129
19130 static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *, PyObject *args, PyObject *kwargs) {
19131 PyObject *resultobj;
19132 wxToolBar *arg1 = (wxToolBar *) 0 ;
19133 int arg2 ;
19134 int arg3 ;
19135 wxToolBarToolBase *result;
19136 PyObject * obj0 = 0 ;
19137 PyObject * obj1 = 0 ;
19138 PyObject * obj2 = 0 ;
19139 char *kwnames[] = {
19140 (char *) "self",(char *) "x",(char *) "y", NULL
19141 };
19142
19143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
19144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar,
19145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19146 arg2 = (int)SWIG_As_int(obj1);
19147 if (PyErr_Occurred()) SWIG_fail;
19148 arg3 = (int)SWIG_As_int(obj2);
19149 if (PyErr_Occurred()) SWIG_fail;
19150 {
19151 PyThreadState* __tstate = wxPyBeginAllowThreads();
19152 result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3);
19153
19154 wxPyEndAllowThreads(__tstate);
19155 if (PyErr_Occurred()) SWIG_fail;
19156 }
19157 {
19158 resultobj = wxPyMake_wxObject(result, 0);
19159 }
19160 return resultobj;
19161 fail:
19162 return NULL;
19163 }
19164
19165
19166 static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19167 PyObject *resultobj;
19168 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
19169 wxVisualAttributes result;
19170 PyObject * obj0 = 0 ;
19171 char *kwnames[] = {
19172 (char *) "variant", NULL
19173 };
19174
19175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
19176 if (obj0) {
19177 arg1 = (int)SWIG_As_int(obj0);
19178 if (PyErr_Occurred()) SWIG_fail;
19179 }
19180 {
19181 if (!wxPyCheckForApp()) SWIG_fail;
19182 PyThreadState* __tstate = wxPyBeginAllowThreads();
19183 result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1);
19184
19185 wxPyEndAllowThreads(__tstate);
19186 if (PyErr_Occurred()) SWIG_fail;
19187 }
19188 {
19189 wxVisualAttributes * resultptr;
19190 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
19191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
19192 }
19193 return resultobj;
19194 fail:
19195 return NULL;
19196 }
19197
19198
19199 static PyObject * ToolBar_swigregister(PyObject *, PyObject *args) {
19200 PyObject *obj;
19201 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19202 SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj);
19203 Py_INCREF(obj);
19204 return Py_BuildValue((char *)"");
19205 }
19206 static int _wrap_ListCtrlNameStr_set(PyObject *) {
19207 PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only.");
19208 return 1;
19209 }
19210
19211
19212 static PyObject *_wrap_ListCtrlNameStr_get() {
19213 PyObject *pyobj;
19214
19215 {
19216 #if wxUSE_UNICODE
19217 pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19218 #else
19219 pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len());
19220 #endif
19221 }
19222 return pyobj;
19223 }
19224
19225
19226 static PyObject *_wrap_new_ListItemAttr(PyObject *, PyObject *args, PyObject *kwargs) {
19227 PyObject *resultobj;
19228 wxColour const &arg1_defvalue = wxNullColour ;
19229 wxColour *arg1 = (wxColour *) &arg1_defvalue ;
19230 wxColour const &arg2_defvalue = wxNullColour ;
19231 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
19232 wxFont const &arg3_defvalue = wxNullFont ;
19233 wxFont *arg3 = (wxFont *) &arg3_defvalue ;
19234 wxListItemAttr *result;
19235 wxColour temp1 ;
19236 wxColour temp2 ;
19237 PyObject * obj0 = 0 ;
19238 PyObject * obj1 = 0 ;
19239 PyObject * obj2 = 0 ;
19240 char *kwnames[] = {
19241 (char *) "colText",(char *) "colBack",(char *) "font", NULL
19242 };
19243
19244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail;
19245 if (obj0) {
19246 {
19247 arg1 = &temp1;
19248 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
19249 }
19250 }
19251 if (obj1) {
19252 {
19253 arg2 = &temp2;
19254 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19255 }
19256 }
19257 if (obj2) {
19258 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
19259 SWIG_POINTER_EXCEPTION | 0)) == -1)
19260 SWIG_fail;
19261 if (arg3 == NULL) {
19262 PyErr_SetString(PyExc_TypeError,"null reference");
19263 SWIG_fail;
19264 }
19265 }
19266 {
19267 PyThreadState* __tstate = wxPyBeginAllowThreads();
19268 result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3);
19269
19270 wxPyEndAllowThreads(__tstate);
19271 if (PyErr_Occurred()) SWIG_fail;
19272 }
19273 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1);
19274 return resultobj;
19275 fail:
19276 return NULL;
19277 }
19278
19279
19280 static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19281 PyObject *resultobj;
19282 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19283 wxColour *arg2 = 0 ;
19284 wxColour temp2 ;
19285 PyObject * obj0 = 0 ;
19286 PyObject * obj1 = 0 ;
19287 char *kwnames[] = {
19288 (char *) "self",(char *) "colText", NULL
19289 };
19290
19291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19294 {
19295 arg2 = &temp2;
19296 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19297 }
19298 {
19299 PyThreadState* __tstate = wxPyBeginAllowThreads();
19300 (arg1)->SetTextColour((wxColour const &)*arg2);
19301
19302 wxPyEndAllowThreads(__tstate);
19303 if (PyErr_Occurred()) SWIG_fail;
19304 }
19305 Py_INCREF(Py_None); resultobj = Py_None;
19306 return resultobj;
19307 fail:
19308 return NULL;
19309 }
19310
19311
19312 static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19313 PyObject *resultobj;
19314 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19315 wxColour *arg2 = 0 ;
19316 wxColour temp2 ;
19317 PyObject * obj0 = 0 ;
19318 PyObject * obj1 = 0 ;
19319 char *kwnames[] = {
19320 (char *) "self",(char *) "colBack", NULL
19321 };
19322
19323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
19324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19326 {
19327 arg2 = &temp2;
19328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19329 }
19330 {
19331 PyThreadState* __tstate = wxPyBeginAllowThreads();
19332 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
19333
19334 wxPyEndAllowThreads(__tstate);
19335 if (PyErr_Occurred()) SWIG_fail;
19336 }
19337 Py_INCREF(Py_None); resultobj = Py_None;
19338 return resultobj;
19339 fail:
19340 return NULL;
19341 }
19342
19343
19344 static PyObject *_wrap_ListItemAttr_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19345 PyObject *resultobj;
19346 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19347 wxFont *arg2 = 0 ;
19348 PyObject * obj0 = 0 ;
19349 PyObject * obj1 = 0 ;
19350 char *kwnames[] = {
19351 (char *) "self",(char *) "font", NULL
19352 };
19353
19354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail;
19355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
19358 SWIG_POINTER_EXCEPTION | 0)) == -1)
19359 SWIG_fail;
19360 if (arg2 == NULL) {
19361 PyErr_SetString(PyExc_TypeError,"null reference");
19362 SWIG_fail;
19363 }
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 (arg1)->SetFont((wxFont const &)*arg2);
19367
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 Py_INCREF(Py_None); resultobj = Py_None;
19372 return resultobj;
19373 fail:
19374 return NULL;
19375 }
19376
19377
19378 static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19379 PyObject *resultobj;
19380 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19381 bool result;
19382 PyObject * obj0 = 0 ;
19383 char *kwnames[] = {
19384 (char *) "self", NULL
19385 };
19386
19387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail;
19388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19390 {
19391 PyThreadState* __tstate = wxPyBeginAllowThreads();
19392 result = (bool)(arg1)->HasTextColour();
19393
19394 wxPyEndAllowThreads(__tstate);
19395 if (PyErr_Occurred()) SWIG_fail;
19396 }
19397 {
19398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19399 }
19400 return resultobj;
19401 fail:
19402 return NULL;
19403 }
19404
19405
19406 static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19407 PyObject *resultobj;
19408 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19409 bool result;
19410 PyObject * obj0 = 0 ;
19411 char *kwnames[] = {
19412 (char *) "self", NULL
19413 };
19414
19415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail;
19416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = (bool)(arg1)->HasBackgroundColour();
19421
19422 wxPyEndAllowThreads(__tstate);
19423 if (PyErr_Occurred()) SWIG_fail;
19424 }
19425 {
19426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19427 }
19428 return resultobj;
19429 fail:
19430 return NULL;
19431 }
19432
19433
19434 static PyObject *_wrap_ListItemAttr_HasFont(PyObject *, PyObject *args, PyObject *kwargs) {
19435 PyObject *resultobj;
19436 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19437 bool result;
19438 PyObject * obj0 = 0 ;
19439 char *kwnames[] = {
19440 (char *) "self", NULL
19441 };
19442
19443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail;
19444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19446 {
19447 PyThreadState* __tstate = wxPyBeginAllowThreads();
19448 result = (bool)(arg1)->HasFont();
19449
19450 wxPyEndAllowThreads(__tstate);
19451 if (PyErr_Occurred()) SWIG_fail;
19452 }
19453 {
19454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19455 }
19456 return resultobj;
19457 fail:
19458 return NULL;
19459 }
19460
19461
19462 static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19463 PyObject *resultobj;
19464 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19465 wxColour result;
19466 PyObject * obj0 = 0 ;
19467 char *kwnames[] = {
19468 (char *) "self", NULL
19469 };
19470
19471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail;
19472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19474 {
19475 PyThreadState* __tstate = wxPyBeginAllowThreads();
19476 result = (arg1)->GetTextColour();
19477
19478 wxPyEndAllowThreads(__tstate);
19479 if (PyErr_Occurred()) SWIG_fail;
19480 }
19481 {
19482 wxColour * resultptr;
19483 resultptr = new wxColour((wxColour &) result);
19484 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19485 }
19486 return resultobj;
19487 fail:
19488 return NULL;
19489 }
19490
19491
19492 static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
19493 PyObject *resultobj;
19494 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19495 wxColour result;
19496 PyObject * obj0 = 0 ;
19497 char *kwnames[] = {
19498 (char *) "self", NULL
19499 };
19500
19501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail;
19502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19504 {
19505 PyThreadState* __tstate = wxPyBeginAllowThreads();
19506 result = (arg1)->GetBackgroundColour();
19507
19508 wxPyEndAllowThreads(__tstate);
19509 if (PyErr_Occurred()) SWIG_fail;
19510 }
19511 {
19512 wxColour * resultptr;
19513 resultptr = new wxColour((wxColour &) result);
19514 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
19515 }
19516 return resultobj;
19517 fail:
19518 return NULL;
19519 }
19520
19521
19522 static PyObject *_wrap_ListItemAttr_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
19523 PyObject *resultobj;
19524 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19525 wxFont result;
19526 PyObject * obj0 = 0 ;
19527 char *kwnames[] = {
19528 (char *) "self", NULL
19529 };
19530
19531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail;
19532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19534 {
19535 PyThreadState* __tstate = wxPyBeginAllowThreads();
19536 result = (arg1)->GetFont();
19537
19538 wxPyEndAllowThreads(__tstate);
19539 if (PyErr_Occurred()) SWIG_fail;
19540 }
19541 {
19542 wxFont * resultptr;
19543 resultptr = new wxFont((wxFont &) result);
19544 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
19545 }
19546 return resultobj;
19547 fail:
19548 return NULL;
19549 }
19550
19551
19552 static PyObject *_wrap_ListItemAttr_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
19553 PyObject *resultobj;
19554 wxListItemAttr *arg1 = (wxListItemAttr *) 0 ;
19555 PyObject * obj0 = 0 ;
19556 char *kwnames[] = {
19557 (char *) "self", NULL
19558 };
19559
19560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail;
19561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr,
19562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19563 {
19564 PyThreadState* __tstate = wxPyBeginAllowThreads();
19565 wxListItemAttr_Destroy(arg1);
19566
19567 wxPyEndAllowThreads(__tstate);
19568 if (PyErr_Occurred()) SWIG_fail;
19569 }
19570 Py_INCREF(Py_None); resultobj = Py_None;
19571 return resultobj;
19572 fail:
19573 return NULL;
19574 }
19575
19576
19577 static PyObject * ListItemAttr_swigregister(PyObject *, PyObject *args) {
19578 PyObject *obj;
19579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19580 SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj);
19581 Py_INCREF(obj);
19582 return Py_BuildValue((char *)"");
19583 }
19584 static PyObject *_wrap_new_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19585 PyObject *resultobj;
19586 wxListItem *result;
19587 char *kwnames[] = {
19588 NULL
19589 };
19590
19591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail;
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 result = (wxListItem *)new wxListItem();
19595
19596 wxPyEndAllowThreads(__tstate);
19597 if (PyErr_Occurred()) SWIG_fail;
19598 }
19599 {
19600 resultobj = wxPyMake_wxObject(result, 1);
19601 }
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 static PyObject *_wrap_delete_ListItem(PyObject *, PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj;
19610 wxListItem *arg1 = (wxListItem *) 0 ;
19611 PyObject * obj0 = 0 ;
19612 char *kwnames[] = {
19613 (char *) "self", NULL
19614 };
19615
19616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail;
19617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19619 {
19620 PyThreadState* __tstate = wxPyBeginAllowThreads();
19621 delete arg1;
19622
19623 wxPyEndAllowThreads(__tstate);
19624 if (PyErr_Occurred()) SWIG_fail;
19625 }
19626 Py_INCREF(Py_None); resultobj = Py_None;
19627 return resultobj;
19628 fail:
19629 return NULL;
19630 }
19631
19632
19633 static PyObject *_wrap_ListItem_Clear(PyObject *, PyObject *args, PyObject *kwargs) {
19634 PyObject *resultobj;
19635 wxListItem *arg1 = (wxListItem *) 0 ;
19636 PyObject * obj0 = 0 ;
19637 char *kwnames[] = {
19638 (char *) "self", NULL
19639 };
19640
19641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail;
19642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19644 {
19645 PyThreadState* __tstate = wxPyBeginAllowThreads();
19646 (arg1)->Clear();
19647
19648 wxPyEndAllowThreads(__tstate);
19649 if (PyErr_Occurred()) SWIG_fail;
19650 }
19651 Py_INCREF(Py_None); resultobj = Py_None;
19652 return resultobj;
19653 fail:
19654 return NULL;
19655 }
19656
19657
19658 static PyObject *_wrap_ListItem_ClearAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
19659 PyObject *resultobj;
19660 wxListItem *arg1 = (wxListItem *) 0 ;
19661 PyObject * obj0 = 0 ;
19662 char *kwnames[] = {
19663 (char *) "self", NULL
19664 };
19665
19666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail;
19667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19669 {
19670 PyThreadState* __tstate = wxPyBeginAllowThreads();
19671 (arg1)->ClearAttributes();
19672
19673 wxPyEndAllowThreads(__tstate);
19674 if (PyErr_Occurred()) SWIG_fail;
19675 }
19676 Py_INCREF(Py_None); resultobj = Py_None;
19677 return resultobj;
19678 fail:
19679 return NULL;
19680 }
19681
19682
19683 static PyObject *_wrap_ListItem_SetMask(PyObject *, PyObject *args, PyObject *kwargs) {
19684 PyObject *resultobj;
19685 wxListItem *arg1 = (wxListItem *) 0 ;
19686 long arg2 ;
19687 PyObject * obj0 = 0 ;
19688 PyObject * obj1 = 0 ;
19689 char *kwnames[] = {
19690 (char *) "self",(char *) "mask", NULL
19691 };
19692
19693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail;
19694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19696 arg2 = (long)SWIG_As_long(obj1);
19697 if (PyErr_Occurred()) SWIG_fail;
19698 {
19699 PyThreadState* __tstate = wxPyBeginAllowThreads();
19700 (arg1)->SetMask(arg2);
19701
19702 wxPyEndAllowThreads(__tstate);
19703 if (PyErr_Occurred()) SWIG_fail;
19704 }
19705 Py_INCREF(Py_None); resultobj = Py_None;
19706 return resultobj;
19707 fail:
19708 return NULL;
19709 }
19710
19711
19712 static PyObject *_wrap_ListItem_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
19713 PyObject *resultobj;
19714 wxListItem *arg1 = (wxListItem *) 0 ;
19715 long arg2 ;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19718 char *kwnames[] = {
19719 (char *) "self",(char *) "id", NULL
19720 };
19721
19722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail;
19723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19725 arg2 = (long)SWIG_As_long(obj1);
19726 if (PyErr_Occurred()) SWIG_fail;
19727 {
19728 PyThreadState* __tstate = wxPyBeginAllowThreads();
19729 (arg1)->SetId(arg2);
19730
19731 wxPyEndAllowThreads(__tstate);
19732 if (PyErr_Occurred()) SWIG_fail;
19733 }
19734 Py_INCREF(Py_None); resultobj = Py_None;
19735 return resultobj;
19736 fail:
19737 return NULL;
19738 }
19739
19740
19741 static PyObject *_wrap_ListItem_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
19742 PyObject *resultobj;
19743 wxListItem *arg1 = (wxListItem *) 0 ;
19744 int arg2 ;
19745 PyObject * obj0 = 0 ;
19746 PyObject * obj1 = 0 ;
19747 char *kwnames[] = {
19748 (char *) "self",(char *) "col", NULL
19749 };
19750
19751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail;
19752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19754 arg2 = (int)SWIG_As_int(obj1);
19755 if (PyErr_Occurred()) SWIG_fail;
19756 {
19757 PyThreadState* __tstate = wxPyBeginAllowThreads();
19758 (arg1)->SetColumn(arg2);
19759
19760 wxPyEndAllowThreads(__tstate);
19761 if (PyErr_Occurred()) SWIG_fail;
19762 }
19763 Py_INCREF(Py_None); resultobj = Py_None;
19764 return resultobj;
19765 fail:
19766 return NULL;
19767 }
19768
19769
19770 static PyObject *_wrap_ListItem_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
19771 PyObject *resultobj;
19772 wxListItem *arg1 = (wxListItem *) 0 ;
19773 long arg2 ;
19774 PyObject * obj0 = 0 ;
19775 PyObject * obj1 = 0 ;
19776 char *kwnames[] = {
19777 (char *) "self",(char *) "state", NULL
19778 };
19779
19780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail;
19781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19783 arg2 = (long)SWIG_As_long(obj1);
19784 if (PyErr_Occurred()) SWIG_fail;
19785 {
19786 PyThreadState* __tstate = wxPyBeginAllowThreads();
19787 (arg1)->SetState(arg2);
19788
19789 wxPyEndAllowThreads(__tstate);
19790 if (PyErr_Occurred()) SWIG_fail;
19791 }
19792 Py_INCREF(Py_None); resultobj = Py_None;
19793 return resultobj;
19794 fail:
19795 return NULL;
19796 }
19797
19798
19799 static PyObject *_wrap_ListItem_SetStateMask(PyObject *, PyObject *args, PyObject *kwargs) {
19800 PyObject *resultobj;
19801 wxListItem *arg1 = (wxListItem *) 0 ;
19802 long arg2 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 char *kwnames[] = {
19806 (char *) "self",(char *) "stateMask", NULL
19807 };
19808
19809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail;
19810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19812 arg2 = (long)SWIG_As_long(obj1);
19813 if (PyErr_Occurred()) SWIG_fail;
19814 {
19815 PyThreadState* __tstate = wxPyBeginAllowThreads();
19816 (arg1)->SetStateMask(arg2);
19817
19818 wxPyEndAllowThreads(__tstate);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 Py_INCREF(Py_None); resultobj = Py_None;
19822 return resultobj;
19823 fail:
19824 return NULL;
19825 }
19826
19827
19828 static PyObject *_wrap_ListItem_SetText(PyObject *, PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj;
19830 wxListItem *arg1 = (wxListItem *) 0 ;
19831 wxString *arg2 = 0 ;
19832 bool temp2 = false ;
19833 PyObject * obj0 = 0 ;
19834 PyObject * obj1 = 0 ;
19835 char *kwnames[] = {
19836 (char *) "self",(char *) "text", NULL
19837 };
19838
19839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail;
19840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19842 {
19843 arg2 = wxString_in_helper(obj1);
19844 if (arg2 == NULL) SWIG_fail;
19845 temp2 = true;
19846 }
19847 {
19848 PyThreadState* __tstate = wxPyBeginAllowThreads();
19849 (arg1)->SetText((wxString const &)*arg2);
19850
19851 wxPyEndAllowThreads(__tstate);
19852 if (PyErr_Occurred()) SWIG_fail;
19853 }
19854 Py_INCREF(Py_None); resultobj = Py_None;
19855 {
19856 if (temp2)
19857 delete arg2;
19858 }
19859 return resultobj;
19860 fail:
19861 {
19862 if (temp2)
19863 delete arg2;
19864 }
19865 return NULL;
19866 }
19867
19868
19869 static PyObject *_wrap_ListItem_SetImage(PyObject *, PyObject *args, PyObject *kwargs) {
19870 PyObject *resultobj;
19871 wxListItem *arg1 = (wxListItem *) 0 ;
19872 int arg2 ;
19873 PyObject * obj0 = 0 ;
19874 PyObject * obj1 = 0 ;
19875 char *kwnames[] = {
19876 (char *) "self",(char *) "image", NULL
19877 };
19878
19879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail;
19880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19882 arg2 = (int)SWIG_As_int(obj1);
19883 if (PyErr_Occurred()) SWIG_fail;
19884 {
19885 PyThreadState* __tstate = wxPyBeginAllowThreads();
19886 (arg1)->SetImage(arg2);
19887
19888 wxPyEndAllowThreads(__tstate);
19889 if (PyErr_Occurred()) SWIG_fail;
19890 }
19891 Py_INCREF(Py_None); resultobj = Py_None;
19892 return resultobj;
19893 fail:
19894 return NULL;
19895 }
19896
19897
19898 static PyObject *_wrap_ListItem_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
19899 PyObject *resultobj;
19900 wxListItem *arg1 = (wxListItem *) 0 ;
19901 long arg2 ;
19902 PyObject * obj0 = 0 ;
19903 PyObject * obj1 = 0 ;
19904 char *kwnames[] = {
19905 (char *) "self",(char *) "data", NULL
19906 };
19907
19908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail;
19909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19911 arg2 = (long)SWIG_As_long(obj1);
19912 if (PyErr_Occurred()) SWIG_fail;
19913 {
19914 PyThreadState* __tstate = wxPyBeginAllowThreads();
19915 (arg1)->SetData(arg2);
19916
19917 wxPyEndAllowThreads(__tstate);
19918 if (PyErr_Occurred()) SWIG_fail;
19919 }
19920 Py_INCREF(Py_None); resultobj = Py_None;
19921 return resultobj;
19922 fail:
19923 return NULL;
19924 }
19925
19926
19927 static PyObject *_wrap_ListItem_SetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
19928 PyObject *resultobj;
19929 wxListItem *arg1 = (wxListItem *) 0 ;
19930 int arg2 ;
19931 PyObject * obj0 = 0 ;
19932 PyObject * obj1 = 0 ;
19933 char *kwnames[] = {
19934 (char *) "self",(char *) "width", NULL
19935 };
19936
19937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail;
19938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19940 arg2 = (int)SWIG_As_int(obj1);
19941 if (PyErr_Occurred()) SWIG_fail;
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 (arg1)->SetWidth(arg2);
19945
19946 wxPyEndAllowThreads(__tstate);
19947 if (PyErr_Occurred()) SWIG_fail;
19948 }
19949 Py_INCREF(Py_None); resultobj = Py_None;
19950 return resultobj;
19951 fail:
19952 return NULL;
19953 }
19954
19955
19956 static PyObject *_wrap_ListItem_SetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
19957 PyObject *resultobj;
19958 wxListItem *arg1 = (wxListItem *) 0 ;
19959 int arg2 ;
19960 PyObject * obj0 = 0 ;
19961 PyObject * obj1 = 0 ;
19962 char *kwnames[] = {
19963 (char *) "self",(char *) "align", NULL
19964 };
19965
19966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail;
19967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19969 arg2 = (int)SWIG_As_int(obj1);
19970 if (PyErr_Occurred()) SWIG_fail;
19971 {
19972 PyThreadState* __tstate = wxPyBeginAllowThreads();
19973 (arg1)->SetAlign((wxListColumnFormat )arg2);
19974
19975 wxPyEndAllowThreads(__tstate);
19976 if (PyErr_Occurred()) SWIG_fail;
19977 }
19978 Py_INCREF(Py_None); resultobj = Py_None;
19979 return resultobj;
19980 fail:
19981 return NULL;
19982 }
19983
19984
19985 static PyObject *_wrap_ListItem_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
19986 PyObject *resultobj;
19987 wxListItem *arg1 = (wxListItem *) 0 ;
19988 wxColour *arg2 = 0 ;
19989 wxColour temp2 ;
19990 PyObject * obj0 = 0 ;
19991 PyObject * obj1 = 0 ;
19992 char *kwnames[] = {
19993 (char *) "self",(char *) "colText", NULL
19994 };
19995
19996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
19997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
19998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19999 {
20000 arg2 = &temp2;
20001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20002 }
20003 {
20004 PyThreadState* __tstate = wxPyBeginAllowThreads();
20005 (arg1)->SetTextColour((wxColour const &)*arg2);
20006
20007 wxPyEndAllowThreads(__tstate);
20008 if (PyErr_Occurred()) SWIG_fail;
20009 }
20010 Py_INCREF(Py_None); resultobj = Py_None;
20011 return resultobj;
20012 fail:
20013 return NULL;
20014 }
20015
20016
20017 static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20018 PyObject *resultobj;
20019 wxListItem *arg1 = (wxListItem *) 0 ;
20020 wxColour *arg2 = 0 ;
20021 wxColour temp2 ;
20022 PyObject * obj0 = 0 ;
20023 PyObject * obj1 = 0 ;
20024 char *kwnames[] = {
20025 (char *) "self",(char *) "colBack", NULL
20026 };
20027
20028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
20029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20031 {
20032 arg2 = &temp2;
20033 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
20034 }
20035 {
20036 PyThreadState* __tstate = wxPyBeginAllowThreads();
20037 (arg1)->SetBackgroundColour((wxColour const &)*arg2);
20038
20039 wxPyEndAllowThreads(__tstate);
20040 if (PyErr_Occurred()) SWIG_fail;
20041 }
20042 Py_INCREF(Py_None); resultobj = Py_None;
20043 return resultobj;
20044 fail:
20045 return NULL;
20046 }
20047
20048
20049 static PyObject *_wrap_ListItem_SetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20050 PyObject *resultobj;
20051 wxListItem *arg1 = (wxListItem *) 0 ;
20052 wxFont *arg2 = 0 ;
20053 PyObject * obj0 = 0 ;
20054 PyObject * obj1 = 0 ;
20055 char *kwnames[] = {
20056 (char *) "self",(char *) "font", NULL
20057 };
20058
20059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail;
20060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20062 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
20063 SWIG_POINTER_EXCEPTION | 0)) == -1)
20064 SWIG_fail;
20065 if (arg2 == NULL) {
20066 PyErr_SetString(PyExc_TypeError,"null reference");
20067 SWIG_fail;
20068 }
20069 {
20070 PyThreadState* __tstate = wxPyBeginAllowThreads();
20071 (arg1)->SetFont((wxFont const &)*arg2);
20072
20073 wxPyEndAllowThreads(__tstate);
20074 if (PyErr_Occurred()) SWIG_fail;
20075 }
20076 Py_INCREF(Py_None); resultobj = Py_None;
20077 return resultobj;
20078 fail:
20079 return NULL;
20080 }
20081
20082
20083 static PyObject *_wrap_ListItem_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
20084 PyObject *resultobj;
20085 wxListItem *arg1 = (wxListItem *) 0 ;
20086 long result;
20087 PyObject * obj0 = 0 ;
20088 char *kwnames[] = {
20089 (char *) "self", NULL
20090 };
20091
20092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail;
20093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20095 {
20096 PyThreadState* __tstate = wxPyBeginAllowThreads();
20097 result = (long)(arg1)->GetMask();
20098
20099 wxPyEndAllowThreads(__tstate);
20100 if (PyErr_Occurred()) SWIG_fail;
20101 }
20102 resultobj = SWIG_From_long((long)result);
20103 return resultobj;
20104 fail:
20105 return NULL;
20106 }
20107
20108
20109 static PyObject *_wrap_ListItem_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
20110 PyObject *resultobj;
20111 wxListItem *arg1 = (wxListItem *) 0 ;
20112 long result;
20113 PyObject * obj0 = 0 ;
20114 char *kwnames[] = {
20115 (char *) "self", NULL
20116 };
20117
20118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail;
20119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20121 {
20122 PyThreadState* __tstate = wxPyBeginAllowThreads();
20123 result = (long)(arg1)->GetId();
20124
20125 wxPyEndAllowThreads(__tstate);
20126 if (PyErr_Occurred()) SWIG_fail;
20127 }
20128 resultobj = SWIG_From_long((long)result);
20129 return resultobj;
20130 fail:
20131 return NULL;
20132 }
20133
20134
20135 static PyObject *_wrap_ListItem_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
20136 PyObject *resultobj;
20137 wxListItem *arg1 = (wxListItem *) 0 ;
20138 int result;
20139 PyObject * obj0 = 0 ;
20140 char *kwnames[] = {
20141 (char *) "self", NULL
20142 };
20143
20144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail;
20145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20147 {
20148 PyThreadState* __tstate = wxPyBeginAllowThreads();
20149 result = (int)(arg1)->GetColumn();
20150
20151 wxPyEndAllowThreads(__tstate);
20152 if (PyErr_Occurred()) SWIG_fail;
20153 }
20154 resultobj = SWIG_From_int((int)result);
20155 return resultobj;
20156 fail:
20157 return NULL;
20158 }
20159
20160
20161 static PyObject *_wrap_ListItem_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
20162 PyObject *resultobj;
20163 wxListItem *arg1 = (wxListItem *) 0 ;
20164 long result;
20165 PyObject * obj0 = 0 ;
20166 char *kwnames[] = {
20167 (char *) "self", NULL
20168 };
20169
20170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail;
20171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = (long)(arg1)->GetState();
20176
20177 wxPyEndAllowThreads(__tstate);
20178 if (PyErr_Occurred()) SWIG_fail;
20179 }
20180 resultobj = SWIG_From_long((long)result);
20181 return resultobj;
20182 fail:
20183 return NULL;
20184 }
20185
20186
20187 static PyObject *_wrap_ListItem_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
20188 PyObject *resultobj;
20189 wxListItem *arg1 = (wxListItem *) 0 ;
20190 wxString *result;
20191 PyObject * obj0 = 0 ;
20192 char *kwnames[] = {
20193 (char *) "self", NULL
20194 };
20195
20196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail;
20197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20199 {
20200 PyThreadState* __tstate = wxPyBeginAllowThreads();
20201 {
20202 wxString const &_result_ref = (arg1)->GetText();
20203 result = (wxString *) &_result_ref;
20204 }
20205
20206 wxPyEndAllowThreads(__tstate);
20207 if (PyErr_Occurred()) SWIG_fail;
20208 }
20209 {
20210 #if wxUSE_UNICODE
20211 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20212 #else
20213 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20214 #endif
20215 }
20216 return resultobj;
20217 fail:
20218 return NULL;
20219 }
20220
20221
20222 static PyObject *_wrap_ListItem_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
20223 PyObject *resultobj;
20224 wxListItem *arg1 = (wxListItem *) 0 ;
20225 int result;
20226 PyObject * obj0 = 0 ;
20227 char *kwnames[] = {
20228 (char *) "self", NULL
20229 };
20230
20231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail;
20232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20234 {
20235 PyThreadState* __tstate = wxPyBeginAllowThreads();
20236 result = (int)(arg1)->GetImage();
20237
20238 wxPyEndAllowThreads(__tstate);
20239 if (PyErr_Occurred()) SWIG_fail;
20240 }
20241 resultobj = SWIG_From_int((int)result);
20242 return resultobj;
20243 fail:
20244 return NULL;
20245 }
20246
20247
20248 static PyObject *_wrap_ListItem_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
20249 PyObject *resultobj;
20250 wxListItem *arg1 = (wxListItem *) 0 ;
20251 long result;
20252 PyObject * obj0 = 0 ;
20253 char *kwnames[] = {
20254 (char *) "self", NULL
20255 };
20256
20257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail;
20258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20260 {
20261 PyThreadState* __tstate = wxPyBeginAllowThreads();
20262 result = (long)(arg1)->GetData();
20263
20264 wxPyEndAllowThreads(__tstate);
20265 if (PyErr_Occurred()) SWIG_fail;
20266 }
20267 resultobj = SWIG_From_long((long)result);
20268 return resultobj;
20269 fail:
20270 return NULL;
20271 }
20272
20273
20274 static PyObject *_wrap_ListItem_GetWidth(PyObject *, PyObject *args, PyObject *kwargs) {
20275 PyObject *resultobj;
20276 wxListItem *arg1 = (wxListItem *) 0 ;
20277 int result;
20278 PyObject * obj0 = 0 ;
20279 char *kwnames[] = {
20280 (char *) "self", NULL
20281 };
20282
20283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail;
20284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20286 {
20287 PyThreadState* __tstate = wxPyBeginAllowThreads();
20288 result = (int)(arg1)->GetWidth();
20289
20290 wxPyEndAllowThreads(__tstate);
20291 if (PyErr_Occurred()) SWIG_fail;
20292 }
20293 resultobj = SWIG_From_int((int)result);
20294 return resultobj;
20295 fail:
20296 return NULL;
20297 }
20298
20299
20300 static PyObject *_wrap_ListItem_GetAlign(PyObject *, PyObject *args, PyObject *kwargs) {
20301 PyObject *resultobj;
20302 wxListItem *arg1 = (wxListItem *) 0 ;
20303 int result;
20304 PyObject * obj0 = 0 ;
20305 char *kwnames[] = {
20306 (char *) "self", NULL
20307 };
20308
20309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail;
20310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 result = (int)(arg1)->GetAlign();
20315
20316 wxPyEndAllowThreads(__tstate);
20317 if (PyErr_Occurred()) SWIG_fail;
20318 }
20319 resultobj = SWIG_From_int((int)result);
20320 return resultobj;
20321 fail:
20322 return NULL;
20323 }
20324
20325
20326 static PyObject *_wrap_ListItem_GetAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20327 PyObject *resultobj;
20328 wxListItem *arg1 = (wxListItem *) 0 ;
20329 wxListItemAttr *result;
20330 PyObject * obj0 = 0 ;
20331 char *kwnames[] = {
20332 (char *) "self", NULL
20333 };
20334
20335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail;
20336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20338 {
20339 PyThreadState* __tstate = wxPyBeginAllowThreads();
20340 result = (wxListItemAttr *)(arg1)->GetAttributes();
20341
20342 wxPyEndAllowThreads(__tstate);
20343 if (PyErr_Occurred()) SWIG_fail;
20344 }
20345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0);
20346 return resultobj;
20347 fail:
20348 return NULL;
20349 }
20350
20351
20352 static PyObject *_wrap_ListItem_HasAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
20353 PyObject *resultobj;
20354 wxListItem *arg1 = (wxListItem *) 0 ;
20355 bool result;
20356 PyObject * obj0 = 0 ;
20357 char *kwnames[] = {
20358 (char *) "self", NULL
20359 };
20360
20361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail;
20362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20364 {
20365 PyThreadState* __tstate = wxPyBeginAllowThreads();
20366 result = (bool)(arg1)->HasAttributes();
20367
20368 wxPyEndAllowThreads(__tstate);
20369 if (PyErr_Occurred()) SWIG_fail;
20370 }
20371 {
20372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20373 }
20374 return resultobj;
20375 fail:
20376 return NULL;
20377 }
20378
20379
20380 static PyObject *_wrap_ListItem_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
20381 PyObject *resultobj;
20382 wxListItem *arg1 = (wxListItem *) 0 ;
20383 wxColour result;
20384 PyObject * obj0 = 0 ;
20385 char *kwnames[] = {
20386 (char *) "self", NULL
20387 };
20388
20389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail;
20390 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20391 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20392 {
20393 PyThreadState* __tstate = wxPyBeginAllowThreads();
20394 result = ((wxListItem const *)arg1)->GetTextColour();
20395
20396 wxPyEndAllowThreads(__tstate);
20397 if (PyErr_Occurred()) SWIG_fail;
20398 }
20399 {
20400 wxColour * resultptr;
20401 resultptr = new wxColour((wxColour &) result);
20402 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20403 }
20404 return resultobj;
20405 fail:
20406 return NULL;
20407 }
20408
20409
20410 static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
20411 PyObject *resultobj;
20412 wxListItem *arg1 = (wxListItem *) 0 ;
20413 wxColour result;
20414 PyObject * obj0 = 0 ;
20415 char *kwnames[] = {
20416 (char *) "self", NULL
20417 };
20418
20419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail;
20420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20422 {
20423 PyThreadState* __tstate = wxPyBeginAllowThreads();
20424 result = ((wxListItem const *)arg1)->GetBackgroundColour();
20425
20426 wxPyEndAllowThreads(__tstate);
20427 if (PyErr_Occurred()) SWIG_fail;
20428 }
20429 {
20430 wxColour * resultptr;
20431 resultptr = new wxColour((wxColour &) result);
20432 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
20433 }
20434 return resultobj;
20435 fail:
20436 return NULL;
20437 }
20438
20439
20440 static PyObject *_wrap_ListItem_GetFont(PyObject *, PyObject *args, PyObject *kwargs) {
20441 PyObject *resultobj;
20442 wxListItem *arg1 = (wxListItem *) 0 ;
20443 wxFont result;
20444 PyObject * obj0 = 0 ;
20445 char *kwnames[] = {
20446 (char *) "self", NULL
20447 };
20448
20449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail;
20450 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20451 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20452 {
20453 PyThreadState* __tstate = wxPyBeginAllowThreads();
20454 result = ((wxListItem const *)arg1)->GetFont();
20455
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 {
20460 wxFont * resultptr;
20461 resultptr = new wxFont((wxFont &) result);
20462 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
20463 }
20464 return resultobj;
20465 fail:
20466 return NULL;
20467 }
20468
20469
20470 static PyObject *_wrap_ListItem_m_mask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20471 PyObject *resultobj;
20472 wxListItem *arg1 = (wxListItem *) 0 ;
20473 long arg2 ;
20474 PyObject * obj0 = 0 ;
20475 PyObject * obj1 = 0 ;
20476 char *kwnames[] = {
20477 (char *) "self",(char *) "m_mask", NULL
20478 };
20479
20480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail;
20481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20483 arg2 = (long)SWIG_As_long(obj1);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 if (arg1) (arg1)->m_mask = arg2;
20486
20487 Py_INCREF(Py_None); resultobj = Py_None;
20488 return resultobj;
20489 fail:
20490 return NULL;
20491 }
20492
20493
20494 static PyObject *_wrap_ListItem_m_mask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20495 PyObject *resultobj;
20496 wxListItem *arg1 = (wxListItem *) 0 ;
20497 long result;
20498 PyObject * obj0 = 0 ;
20499 char *kwnames[] = {
20500 (char *) "self", NULL
20501 };
20502
20503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail;
20504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20506 result = (long) ((arg1)->m_mask);
20507
20508 resultobj = SWIG_From_long((long)result);
20509 return resultobj;
20510 fail:
20511 return NULL;
20512 }
20513
20514
20515 static PyObject *_wrap_ListItem_m_itemId_set(PyObject *, PyObject *args, PyObject *kwargs) {
20516 PyObject *resultobj;
20517 wxListItem *arg1 = (wxListItem *) 0 ;
20518 long arg2 ;
20519 PyObject * obj0 = 0 ;
20520 PyObject * obj1 = 0 ;
20521 char *kwnames[] = {
20522 (char *) "self",(char *) "m_itemId", NULL
20523 };
20524
20525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail;
20526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20528 arg2 = (long)SWIG_As_long(obj1);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 if (arg1) (arg1)->m_itemId = arg2;
20531
20532 Py_INCREF(Py_None); resultobj = Py_None;
20533 return resultobj;
20534 fail:
20535 return NULL;
20536 }
20537
20538
20539 static PyObject *_wrap_ListItem_m_itemId_get(PyObject *, PyObject *args, PyObject *kwargs) {
20540 PyObject *resultobj;
20541 wxListItem *arg1 = (wxListItem *) 0 ;
20542 long result;
20543 PyObject * obj0 = 0 ;
20544 char *kwnames[] = {
20545 (char *) "self", NULL
20546 };
20547
20548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail;
20549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20551 result = (long) ((arg1)->m_itemId);
20552
20553 resultobj = SWIG_From_long((long)result);
20554 return resultobj;
20555 fail:
20556 return NULL;
20557 }
20558
20559
20560 static PyObject *_wrap_ListItem_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
20561 PyObject *resultobj;
20562 wxListItem *arg1 = (wxListItem *) 0 ;
20563 int arg2 ;
20564 PyObject * obj0 = 0 ;
20565 PyObject * obj1 = 0 ;
20566 char *kwnames[] = {
20567 (char *) "self",(char *) "m_col", NULL
20568 };
20569
20570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail;
20571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20573 arg2 = (int)SWIG_As_int(obj1);
20574 if (PyErr_Occurred()) SWIG_fail;
20575 if (arg1) (arg1)->m_col = arg2;
20576
20577 Py_INCREF(Py_None); resultobj = Py_None;
20578 return resultobj;
20579 fail:
20580 return NULL;
20581 }
20582
20583
20584 static PyObject *_wrap_ListItem_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
20585 PyObject *resultobj;
20586 wxListItem *arg1 = (wxListItem *) 0 ;
20587 int result;
20588 PyObject * obj0 = 0 ;
20589 char *kwnames[] = {
20590 (char *) "self", NULL
20591 };
20592
20593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail;
20594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20596 result = (int) ((arg1)->m_col);
20597
20598 resultobj = SWIG_From_int((int)result);
20599 return resultobj;
20600 fail:
20601 return NULL;
20602 }
20603
20604
20605 static PyObject *_wrap_ListItem_m_state_set(PyObject *, PyObject *args, PyObject *kwargs) {
20606 PyObject *resultobj;
20607 wxListItem *arg1 = (wxListItem *) 0 ;
20608 long arg2 ;
20609 PyObject * obj0 = 0 ;
20610 PyObject * obj1 = 0 ;
20611 char *kwnames[] = {
20612 (char *) "self",(char *) "m_state", NULL
20613 };
20614
20615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail;
20616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20618 arg2 = (long)SWIG_As_long(obj1);
20619 if (PyErr_Occurred()) SWIG_fail;
20620 if (arg1) (arg1)->m_state = arg2;
20621
20622 Py_INCREF(Py_None); resultobj = Py_None;
20623 return resultobj;
20624 fail:
20625 return NULL;
20626 }
20627
20628
20629 static PyObject *_wrap_ListItem_m_state_get(PyObject *, PyObject *args, PyObject *kwargs) {
20630 PyObject *resultobj;
20631 wxListItem *arg1 = (wxListItem *) 0 ;
20632 long result;
20633 PyObject * obj0 = 0 ;
20634 char *kwnames[] = {
20635 (char *) "self", NULL
20636 };
20637
20638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail;
20639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20641 result = (long) ((arg1)->m_state);
20642
20643 resultobj = SWIG_From_long((long)result);
20644 return resultobj;
20645 fail:
20646 return NULL;
20647 }
20648
20649
20650 static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *, PyObject *args, PyObject *kwargs) {
20651 PyObject *resultobj;
20652 wxListItem *arg1 = (wxListItem *) 0 ;
20653 long arg2 ;
20654 PyObject * obj0 = 0 ;
20655 PyObject * obj1 = 0 ;
20656 char *kwnames[] = {
20657 (char *) "self",(char *) "m_stateMask", NULL
20658 };
20659
20660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail;
20661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20663 arg2 = (long)SWIG_As_long(obj1);
20664 if (PyErr_Occurred()) SWIG_fail;
20665 if (arg1) (arg1)->m_stateMask = arg2;
20666
20667 Py_INCREF(Py_None); resultobj = Py_None;
20668 return resultobj;
20669 fail:
20670 return NULL;
20671 }
20672
20673
20674 static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *, PyObject *args, PyObject *kwargs) {
20675 PyObject *resultobj;
20676 wxListItem *arg1 = (wxListItem *) 0 ;
20677 long result;
20678 PyObject * obj0 = 0 ;
20679 char *kwnames[] = {
20680 (char *) "self", NULL
20681 };
20682
20683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail;
20684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20686 result = (long) ((arg1)->m_stateMask);
20687
20688 resultobj = SWIG_From_long((long)result);
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 static PyObject *_wrap_ListItem_m_text_set(PyObject *, PyObject *args, PyObject *kwargs) {
20696 PyObject *resultobj;
20697 wxListItem *arg1 = (wxListItem *) 0 ;
20698 wxString *arg2 = (wxString *) 0 ;
20699 bool temp2 = false ;
20700 PyObject * obj0 = 0 ;
20701 PyObject * obj1 = 0 ;
20702 char *kwnames[] = {
20703 (char *) "self",(char *) "m_text", NULL
20704 };
20705
20706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail;
20707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20709 {
20710 arg2 = wxString_in_helper(obj1);
20711 if (arg2 == NULL) SWIG_fail;
20712 temp2 = true;
20713 }
20714 if (arg1) (arg1)->m_text = *arg2;
20715
20716 Py_INCREF(Py_None); resultobj = Py_None;
20717 {
20718 if (temp2)
20719 delete arg2;
20720 }
20721 return resultobj;
20722 fail:
20723 {
20724 if (temp2)
20725 delete arg2;
20726 }
20727 return NULL;
20728 }
20729
20730
20731 static PyObject *_wrap_ListItem_m_text_get(PyObject *, PyObject *args, PyObject *kwargs) {
20732 PyObject *resultobj;
20733 wxListItem *arg1 = (wxListItem *) 0 ;
20734 wxString *result;
20735 PyObject * obj0 = 0 ;
20736 char *kwnames[] = {
20737 (char *) "self", NULL
20738 };
20739
20740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail;
20741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20743 result = (wxString *)& ((arg1)->m_text);
20744
20745 {
20746 #if wxUSE_UNICODE
20747 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
20748 #else
20749 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
20750 #endif
20751 }
20752 return resultobj;
20753 fail:
20754 return NULL;
20755 }
20756
20757
20758 static PyObject *_wrap_ListItem_m_image_set(PyObject *, PyObject *args, PyObject *kwargs) {
20759 PyObject *resultobj;
20760 wxListItem *arg1 = (wxListItem *) 0 ;
20761 int arg2 ;
20762 PyObject * obj0 = 0 ;
20763 PyObject * obj1 = 0 ;
20764 char *kwnames[] = {
20765 (char *) "self",(char *) "m_image", NULL
20766 };
20767
20768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail;
20769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20771 arg2 = (int)SWIG_As_int(obj1);
20772 if (PyErr_Occurred()) SWIG_fail;
20773 if (arg1) (arg1)->m_image = arg2;
20774
20775 Py_INCREF(Py_None); resultobj = Py_None;
20776 return resultobj;
20777 fail:
20778 return NULL;
20779 }
20780
20781
20782 static PyObject *_wrap_ListItem_m_image_get(PyObject *, PyObject *args, PyObject *kwargs) {
20783 PyObject *resultobj;
20784 wxListItem *arg1 = (wxListItem *) 0 ;
20785 int result;
20786 PyObject * obj0 = 0 ;
20787 char *kwnames[] = {
20788 (char *) "self", NULL
20789 };
20790
20791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail;
20792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20794 result = (int) ((arg1)->m_image);
20795
20796 resultobj = SWIG_From_int((int)result);
20797 return resultobj;
20798 fail:
20799 return NULL;
20800 }
20801
20802
20803 static PyObject *_wrap_ListItem_m_data_set(PyObject *, PyObject *args, PyObject *kwargs) {
20804 PyObject *resultobj;
20805 wxListItem *arg1 = (wxListItem *) 0 ;
20806 long arg2 ;
20807 PyObject * obj0 = 0 ;
20808 PyObject * obj1 = 0 ;
20809 char *kwnames[] = {
20810 (char *) "self",(char *) "m_data", NULL
20811 };
20812
20813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail;
20814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20816 arg2 = (long)SWIG_As_long(obj1);
20817 if (PyErr_Occurred()) SWIG_fail;
20818 if (arg1) (arg1)->m_data = arg2;
20819
20820 Py_INCREF(Py_None); resultobj = Py_None;
20821 return resultobj;
20822 fail:
20823 return NULL;
20824 }
20825
20826
20827 static PyObject *_wrap_ListItem_m_data_get(PyObject *, PyObject *args, PyObject *kwargs) {
20828 PyObject *resultobj;
20829 wxListItem *arg1 = (wxListItem *) 0 ;
20830 long result;
20831 PyObject * obj0 = 0 ;
20832 char *kwnames[] = {
20833 (char *) "self", NULL
20834 };
20835
20836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail;
20837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20839 result = (long) ((arg1)->m_data);
20840
20841 resultobj = SWIG_From_long((long)result);
20842 return resultobj;
20843 fail:
20844 return NULL;
20845 }
20846
20847
20848 static PyObject *_wrap_ListItem_m_format_set(PyObject *, PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj;
20850 wxListItem *arg1 = (wxListItem *) 0 ;
20851 int arg2 ;
20852 PyObject * obj0 = 0 ;
20853 PyObject * obj1 = 0 ;
20854 char *kwnames[] = {
20855 (char *) "self",(char *) "m_format", NULL
20856 };
20857
20858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail;
20859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20861 arg2 = (int)SWIG_As_int(obj1);
20862 if (PyErr_Occurred()) SWIG_fail;
20863 if (arg1) (arg1)->m_format = arg2;
20864
20865 Py_INCREF(Py_None); resultobj = Py_None;
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 static PyObject *_wrap_ListItem_m_format_get(PyObject *, PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj;
20874 wxListItem *arg1 = (wxListItem *) 0 ;
20875 int result;
20876 PyObject * obj0 = 0 ;
20877 char *kwnames[] = {
20878 (char *) "self", NULL
20879 };
20880
20881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail;
20882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20884 result = (int) ((arg1)->m_format);
20885
20886 resultobj = SWIG_From_int((int)result);
20887 return resultobj;
20888 fail:
20889 return NULL;
20890 }
20891
20892
20893 static PyObject *_wrap_ListItem_m_width_set(PyObject *, PyObject *args, PyObject *kwargs) {
20894 PyObject *resultobj;
20895 wxListItem *arg1 = (wxListItem *) 0 ;
20896 int arg2 ;
20897 PyObject * obj0 = 0 ;
20898 PyObject * obj1 = 0 ;
20899 char *kwnames[] = {
20900 (char *) "self",(char *) "m_width", NULL
20901 };
20902
20903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail;
20904 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20905 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20906 arg2 = (int)SWIG_As_int(obj1);
20907 if (PyErr_Occurred()) SWIG_fail;
20908 if (arg1) (arg1)->m_width = arg2;
20909
20910 Py_INCREF(Py_None); resultobj = Py_None;
20911 return resultobj;
20912 fail:
20913 return NULL;
20914 }
20915
20916
20917 static PyObject *_wrap_ListItem_m_width_get(PyObject *, PyObject *args, PyObject *kwargs) {
20918 PyObject *resultobj;
20919 wxListItem *arg1 = (wxListItem *) 0 ;
20920 int result;
20921 PyObject * obj0 = 0 ;
20922 char *kwnames[] = {
20923 (char *) "self", NULL
20924 };
20925
20926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail;
20927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem,
20928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20929 result = (int) ((arg1)->m_width);
20930
20931 resultobj = SWIG_From_int((int)result);
20932 return resultobj;
20933 fail:
20934 return NULL;
20935 }
20936
20937
20938 static PyObject * ListItem_swigregister(PyObject *, PyObject *args) {
20939 PyObject *obj;
20940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
20941 SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj);
20942 Py_INCREF(obj);
20943 return Py_BuildValue((char *)"");
20944 }
20945 static PyObject *_wrap_new_ListEvent(PyObject *, PyObject *args, PyObject *kwargs) {
20946 PyObject *resultobj;
20947 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
20948 int arg2 = (int) 0 ;
20949 wxListEvent *result;
20950 PyObject * obj0 = 0 ;
20951 PyObject * obj1 = 0 ;
20952 char *kwnames[] = {
20953 (char *) "commandType",(char *) "id", NULL
20954 };
20955
20956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail;
20957 if (obj0) {
20958 arg1 = (wxEventType)SWIG_As_int(obj0);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 if (obj1) {
20962 arg2 = (int)SWIG_As_int(obj1);
20963 if (PyErr_Occurred()) SWIG_fail;
20964 }
20965 {
20966 PyThreadState* __tstate = wxPyBeginAllowThreads();
20967 result = (wxListEvent *)new wxListEvent(arg1,arg2);
20968
20969 wxPyEndAllowThreads(__tstate);
20970 if (PyErr_Occurred()) SWIG_fail;
20971 }
20972 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1);
20973 return resultobj;
20974 fail:
20975 return NULL;
20976 }
20977
20978
20979 static PyObject *_wrap_ListEvent_m_code_set(PyObject *, PyObject *args, PyObject *kwargs) {
20980 PyObject *resultobj;
20981 wxListEvent *arg1 = (wxListEvent *) 0 ;
20982 int arg2 ;
20983 PyObject * obj0 = 0 ;
20984 PyObject * obj1 = 0 ;
20985 char *kwnames[] = {
20986 (char *) "self",(char *) "m_code", NULL
20987 };
20988
20989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail;
20990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
20991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
20992 arg2 = (int)SWIG_As_int(obj1);
20993 if (PyErr_Occurred()) SWIG_fail;
20994 if (arg1) (arg1)->m_code = arg2;
20995
20996 Py_INCREF(Py_None); resultobj = Py_None;
20997 return resultobj;
20998 fail:
20999 return NULL;
21000 }
21001
21002
21003 static PyObject *_wrap_ListEvent_m_code_get(PyObject *, PyObject *args, PyObject *kwargs) {
21004 PyObject *resultobj;
21005 wxListEvent *arg1 = (wxListEvent *) 0 ;
21006 int result;
21007 PyObject * obj0 = 0 ;
21008 char *kwnames[] = {
21009 (char *) "self", NULL
21010 };
21011
21012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail;
21013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21015 result = (int) ((arg1)->m_code);
21016
21017 resultobj = SWIG_From_int((int)result);
21018 return resultobj;
21019 fail:
21020 return NULL;
21021 }
21022
21023
21024 static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21025 PyObject *resultobj;
21026 wxListEvent *arg1 = (wxListEvent *) 0 ;
21027 long arg2 ;
21028 PyObject * obj0 = 0 ;
21029 PyObject * obj1 = 0 ;
21030 char *kwnames[] = {
21031 (char *) "self",(char *) "m_oldItemIndex", NULL
21032 };
21033
21034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21037 arg2 = (long)SWIG_As_long(obj1);
21038 if (PyErr_Occurred()) SWIG_fail;
21039 if (arg1) (arg1)->m_oldItemIndex = arg2;
21040
21041 Py_INCREF(Py_None); resultobj = Py_None;
21042 return resultobj;
21043 fail:
21044 return NULL;
21045 }
21046
21047
21048 static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21049 PyObject *resultobj;
21050 wxListEvent *arg1 = (wxListEvent *) 0 ;
21051 long result;
21052 PyObject * obj0 = 0 ;
21053 char *kwnames[] = {
21054 (char *) "self", NULL
21055 };
21056
21057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail;
21058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21060 result = (long) ((arg1)->m_oldItemIndex);
21061
21062 resultobj = SWIG_From_long((long)result);
21063 return resultobj;
21064 fail:
21065 return NULL;
21066 }
21067
21068
21069 static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *, PyObject *args, PyObject *kwargs) {
21070 PyObject *resultobj;
21071 wxListEvent *arg1 = (wxListEvent *) 0 ;
21072 long arg2 ;
21073 PyObject * obj0 = 0 ;
21074 PyObject * obj1 = 0 ;
21075 char *kwnames[] = {
21076 (char *) "self",(char *) "m_itemIndex", NULL
21077 };
21078
21079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail;
21080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21082 arg2 = (long)SWIG_As_long(obj1);
21083 if (PyErr_Occurred()) SWIG_fail;
21084 if (arg1) (arg1)->m_itemIndex = arg2;
21085
21086 Py_INCREF(Py_None); resultobj = Py_None;
21087 return resultobj;
21088 fail:
21089 return NULL;
21090 }
21091
21092
21093 static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *, PyObject *args, PyObject *kwargs) {
21094 PyObject *resultobj;
21095 wxListEvent *arg1 = (wxListEvent *) 0 ;
21096 long result;
21097 PyObject * obj0 = 0 ;
21098 char *kwnames[] = {
21099 (char *) "self", NULL
21100 };
21101
21102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail;
21103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21105 result = (long) ((arg1)->m_itemIndex);
21106
21107 resultobj = SWIG_From_long((long)result);
21108 return resultobj;
21109 fail:
21110 return NULL;
21111 }
21112
21113
21114 static PyObject *_wrap_ListEvent_m_col_set(PyObject *, PyObject *args, PyObject *kwargs) {
21115 PyObject *resultobj;
21116 wxListEvent *arg1 = (wxListEvent *) 0 ;
21117 int arg2 ;
21118 PyObject * obj0 = 0 ;
21119 PyObject * obj1 = 0 ;
21120 char *kwnames[] = {
21121 (char *) "self",(char *) "m_col", NULL
21122 };
21123
21124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail;
21125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21127 arg2 = (int)SWIG_As_int(obj1);
21128 if (PyErr_Occurred()) SWIG_fail;
21129 if (arg1) (arg1)->m_col = arg2;
21130
21131 Py_INCREF(Py_None); resultobj = Py_None;
21132 return resultobj;
21133 fail:
21134 return NULL;
21135 }
21136
21137
21138 static PyObject *_wrap_ListEvent_m_col_get(PyObject *, PyObject *args, PyObject *kwargs) {
21139 PyObject *resultobj;
21140 wxListEvent *arg1 = (wxListEvent *) 0 ;
21141 int result;
21142 PyObject * obj0 = 0 ;
21143 char *kwnames[] = {
21144 (char *) "self", NULL
21145 };
21146
21147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail;
21148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21150 result = (int) ((arg1)->m_col);
21151
21152 resultobj = SWIG_From_int((int)result);
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *, PyObject *args, PyObject *kwargs) {
21160 PyObject *resultobj;
21161 wxListEvent *arg1 = (wxListEvent *) 0 ;
21162 wxPoint *arg2 = (wxPoint *) 0 ;
21163 PyObject * obj0 = 0 ;
21164 PyObject * obj1 = 0 ;
21165 char *kwnames[] = {
21166 (char *) "self",(char *) "m_pointDrag", NULL
21167 };
21168
21169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail;
21170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint,
21173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21174 if (arg1) (arg1)->m_pointDrag = *arg2;
21175
21176 Py_INCREF(Py_None); resultobj = Py_None;
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *, PyObject *args, PyObject *kwargs) {
21184 PyObject *resultobj;
21185 wxListEvent *arg1 = (wxListEvent *) 0 ;
21186 wxPoint *result;
21187 PyObject * obj0 = 0 ;
21188 char *kwnames[] = {
21189 (char *) "self", NULL
21190 };
21191
21192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail;
21193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21195 result = (wxPoint *)& ((arg1)->m_pointDrag);
21196
21197 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0);
21198 return resultobj;
21199 fail:
21200 return NULL;
21201 }
21202
21203
21204 static PyObject *_wrap_ListEvent_m_item_get(PyObject *, PyObject *args, PyObject *kwargs) {
21205 PyObject *resultobj;
21206 wxListEvent *arg1 = (wxListEvent *) 0 ;
21207 wxListItem *result;
21208 PyObject * obj0 = 0 ;
21209 char *kwnames[] = {
21210 (char *) "self", NULL
21211 };
21212
21213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail;
21214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21216 result = (wxListItem *)& ((arg1)->m_item);
21217
21218 {
21219 resultobj = wxPyMake_wxObject(result, 0);
21220 }
21221 return resultobj;
21222 fail:
21223 return NULL;
21224 }
21225
21226
21227 static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
21228 PyObject *resultobj;
21229 wxListEvent *arg1 = (wxListEvent *) 0 ;
21230 int result;
21231 PyObject * obj0 = 0 ;
21232 char *kwnames[] = {
21233 (char *) "self", NULL
21234 };
21235
21236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail;
21237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = (int)(arg1)->GetKeyCode();
21242
21243 wxPyEndAllowThreads(__tstate);
21244 if (PyErr_Occurred()) SWIG_fail;
21245 }
21246 resultobj = SWIG_From_int((int)result);
21247 return resultobj;
21248 fail:
21249 return NULL;
21250 }
21251
21252
21253 static PyObject *_wrap_ListEvent_GetIndex(PyObject *, PyObject *args, PyObject *kwargs) {
21254 PyObject *resultobj;
21255 wxListEvent *arg1 = (wxListEvent *) 0 ;
21256 long result;
21257 PyObject * obj0 = 0 ;
21258 char *kwnames[] = {
21259 (char *) "self", NULL
21260 };
21261
21262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail;
21263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21265 {
21266 PyThreadState* __tstate = wxPyBeginAllowThreads();
21267 result = (long)(arg1)->GetIndex();
21268
21269 wxPyEndAllowThreads(__tstate);
21270 if (PyErr_Occurred()) SWIG_fail;
21271 }
21272 resultobj = SWIG_From_long((long)result);
21273 return resultobj;
21274 fail:
21275 return NULL;
21276 }
21277
21278
21279 static PyObject *_wrap_ListEvent_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21280 PyObject *resultobj;
21281 wxListEvent *arg1 = (wxListEvent *) 0 ;
21282 int result;
21283 PyObject * obj0 = 0 ;
21284 char *kwnames[] = {
21285 (char *) "self", NULL
21286 };
21287
21288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail;
21289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21291 {
21292 PyThreadState* __tstate = wxPyBeginAllowThreads();
21293 result = (int)(arg1)->GetColumn();
21294
21295 wxPyEndAllowThreads(__tstate);
21296 if (PyErr_Occurred()) SWIG_fail;
21297 }
21298 resultobj = SWIG_From_int((int)result);
21299 return resultobj;
21300 fail:
21301 return NULL;
21302 }
21303
21304
21305 static PyObject *_wrap_ListEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
21306 PyObject *resultobj;
21307 wxListEvent *arg1 = (wxListEvent *) 0 ;
21308 wxPoint result;
21309 PyObject * obj0 = 0 ;
21310 char *kwnames[] = {
21311 (char *) "self", NULL
21312 };
21313
21314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail;
21315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21317 {
21318 PyThreadState* __tstate = wxPyBeginAllowThreads();
21319 result = (arg1)->GetPoint();
21320
21321 wxPyEndAllowThreads(__tstate);
21322 if (PyErr_Occurred()) SWIG_fail;
21323 }
21324 {
21325 wxPoint * resultptr;
21326 resultptr = new wxPoint((wxPoint &) result);
21327 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
21328 }
21329 return resultobj;
21330 fail:
21331 return NULL;
21332 }
21333
21334
21335 static PyObject *_wrap_ListEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
21336 PyObject *resultobj;
21337 wxListEvent *arg1 = (wxListEvent *) 0 ;
21338 wxString *result;
21339 PyObject * obj0 = 0 ;
21340 char *kwnames[] = {
21341 (char *) "self", NULL
21342 };
21343
21344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail;
21345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21347 {
21348 PyThreadState* __tstate = wxPyBeginAllowThreads();
21349 {
21350 wxString const &_result_ref = (arg1)->GetLabel();
21351 result = (wxString *) &_result_ref;
21352 }
21353
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 {
21358 #if wxUSE_UNICODE
21359 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21360 #else
21361 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21362 #endif
21363 }
21364 return resultobj;
21365 fail:
21366 return NULL;
21367 }
21368
21369
21370 static PyObject *_wrap_ListEvent_GetText(PyObject *, PyObject *args, PyObject *kwargs) {
21371 PyObject *resultobj;
21372 wxListEvent *arg1 = (wxListEvent *) 0 ;
21373 wxString *result;
21374 PyObject * obj0 = 0 ;
21375 char *kwnames[] = {
21376 (char *) "self", NULL
21377 };
21378
21379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail;
21380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21382 {
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 {
21385 wxString const &_result_ref = (arg1)->GetText();
21386 result = (wxString *) &_result_ref;
21387 }
21388
21389 wxPyEndAllowThreads(__tstate);
21390 if (PyErr_Occurred()) SWIG_fail;
21391 }
21392 {
21393 #if wxUSE_UNICODE
21394 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
21395 #else
21396 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
21397 #endif
21398 }
21399 return resultobj;
21400 fail:
21401 return NULL;
21402 }
21403
21404
21405 static PyObject *_wrap_ListEvent_GetImage(PyObject *, PyObject *args, PyObject *kwargs) {
21406 PyObject *resultobj;
21407 wxListEvent *arg1 = (wxListEvent *) 0 ;
21408 int result;
21409 PyObject * obj0 = 0 ;
21410 char *kwnames[] = {
21411 (char *) "self", NULL
21412 };
21413
21414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail;
21415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21417 {
21418 PyThreadState* __tstate = wxPyBeginAllowThreads();
21419 result = (int)(arg1)->GetImage();
21420
21421 wxPyEndAllowThreads(__tstate);
21422 if (PyErr_Occurred()) SWIG_fail;
21423 }
21424 resultobj = SWIG_From_int((int)result);
21425 return resultobj;
21426 fail:
21427 return NULL;
21428 }
21429
21430
21431 static PyObject *_wrap_ListEvent_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
21432 PyObject *resultobj;
21433 wxListEvent *arg1 = (wxListEvent *) 0 ;
21434 long result;
21435 PyObject * obj0 = 0 ;
21436 char *kwnames[] = {
21437 (char *) "self", NULL
21438 };
21439
21440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail;
21441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21443 {
21444 PyThreadState* __tstate = wxPyBeginAllowThreads();
21445 result = (long)(arg1)->GetData();
21446
21447 wxPyEndAllowThreads(__tstate);
21448 if (PyErr_Occurred()) SWIG_fail;
21449 }
21450 resultobj = SWIG_From_long((long)result);
21451 return resultobj;
21452 fail:
21453 return NULL;
21454 }
21455
21456
21457 static PyObject *_wrap_ListEvent_GetMask(PyObject *, PyObject *args, PyObject *kwargs) {
21458 PyObject *resultobj;
21459 wxListEvent *arg1 = (wxListEvent *) 0 ;
21460 long result;
21461 PyObject * obj0 = 0 ;
21462 char *kwnames[] = {
21463 (char *) "self", NULL
21464 };
21465
21466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail;
21467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21469 {
21470 PyThreadState* __tstate = wxPyBeginAllowThreads();
21471 result = (long)(arg1)->GetMask();
21472
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 resultobj = SWIG_From_long((long)result);
21477 return resultobj;
21478 fail:
21479 return NULL;
21480 }
21481
21482
21483 static PyObject *_wrap_ListEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
21484 PyObject *resultobj;
21485 wxListEvent *arg1 = (wxListEvent *) 0 ;
21486 wxListItem *result;
21487 PyObject * obj0 = 0 ;
21488 char *kwnames[] = {
21489 (char *) "self", NULL
21490 };
21491
21492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail;
21493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21495 {
21496 PyThreadState* __tstate = wxPyBeginAllowThreads();
21497 {
21498 wxListItem const &_result_ref = (arg1)->GetItem();
21499 result = (wxListItem *) &_result_ref;
21500 }
21501
21502 wxPyEndAllowThreads(__tstate);
21503 if (PyErr_Occurred()) SWIG_fail;
21504 }
21505 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0);
21506 return resultobj;
21507 fail:
21508 return NULL;
21509 }
21510
21511
21512 static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *, PyObject *args, PyObject *kwargs) {
21513 PyObject *resultobj;
21514 wxListEvent *arg1 = (wxListEvent *) 0 ;
21515 long result;
21516 PyObject * obj0 = 0 ;
21517 char *kwnames[] = {
21518 (char *) "self", NULL
21519 };
21520
21521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail;
21522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = (long)(arg1)->GetCacheFrom();
21527
21528 wxPyEndAllowThreads(__tstate);
21529 if (PyErr_Occurred()) SWIG_fail;
21530 }
21531 resultobj = SWIG_From_long((long)result);
21532 return resultobj;
21533 fail:
21534 return NULL;
21535 }
21536
21537
21538 static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *, PyObject *args, PyObject *kwargs) {
21539 PyObject *resultobj;
21540 wxListEvent *arg1 = (wxListEvent *) 0 ;
21541 long result;
21542 PyObject * obj0 = 0 ;
21543 char *kwnames[] = {
21544 (char *) "self", NULL
21545 };
21546
21547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail;
21548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21550 {
21551 PyThreadState* __tstate = wxPyBeginAllowThreads();
21552 result = (long)(arg1)->GetCacheTo();
21553
21554 wxPyEndAllowThreads(__tstate);
21555 if (PyErr_Occurred()) SWIG_fail;
21556 }
21557 resultobj = SWIG_From_long((long)result);
21558 return resultobj;
21559 fail:
21560 return NULL;
21561 }
21562
21563
21564 static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
21565 PyObject *resultobj;
21566 wxListEvent *arg1 = (wxListEvent *) 0 ;
21567 bool result;
21568 PyObject * obj0 = 0 ;
21569 char *kwnames[] = {
21570 (char *) "self", NULL
21571 };
21572
21573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
21574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = (bool)((wxListEvent const *)arg1)->IsEditCancelled();
21579
21580 wxPyEndAllowThreads(__tstate);
21581 if (PyErr_Occurred()) SWIG_fail;
21582 }
21583 {
21584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21585 }
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
21593 PyObject *resultobj;
21594 wxListEvent *arg1 = (wxListEvent *) 0 ;
21595 bool arg2 ;
21596 PyObject * obj0 = 0 ;
21597 PyObject * obj1 = 0 ;
21598 char *kwnames[] = {
21599 (char *) "self",(char *) "editCancelled", NULL
21600 };
21601
21602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
21603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent,
21604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21605 arg2 = (bool)SWIG_As_bool(obj1);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 {
21608 PyThreadState* __tstate = wxPyBeginAllowThreads();
21609 (arg1)->SetEditCanceled(arg2);
21610
21611 wxPyEndAllowThreads(__tstate);
21612 if (PyErr_Occurred()) SWIG_fail;
21613 }
21614 Py_INCREF(Py_None); resultobj = Py_None;
21615 return resultobj;
21616 fail:
21617 return NULL;
21618 }
21619
21620
21621 static PyObject * ListEvent_swigregister(PyObject *, PyObject *args) {
21622 PyObject *obj;
21623 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
21624 SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj);
21625 Py_INCREF(obj);
21626 return Py_BuildValue((char *)"");
21627 }
21628 static PyObject *_wrap_new_ListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21629 PyObject *resultobj;
21630 wxWindow *arg1 = (wxWindow *) 0 ;
21631 int arg2 = (int) -1 ;
21632 wxPoint const &arg3_defvalue = wxDefaultPosition ;
21633 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
21634 wxSize const &arg4_defvalue = wxDefaultSize ;
21635 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
21636 long arg5 = (long) wxLC_ICON ;
21637 wxValidator const &arg6_defvalue = wxDefaultValidator ;
21638 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
21639 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
21640 wxString *arg7 = (wxString *) &arg7_defvalue ;
21641 wxPyListCtrl *result;
21642 wxPoint temp3 ;
21643 wxSize temp4 ;
21644 bool temp7 = false ;
21645 PyObject * obj0 = 0 ;
21646 PyObject * obj1 = 0 ;
21647 PyObject * obj2 = 0 ;
21648 PyObject * obj3 = 0 ;
21649 PyObject * obj4 = 0 ;
21650 PyObject * obj5 = 0 ;
21651 PyObject * obj6 = 0 ;
21652 char *kwnames[] = {
21653 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21654 };
21655
21656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
21657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
21658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21659 if (obj1) {
21660 arg2 = (int)SWIG_As_int(obj1);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 if (obj2) {
21664 {
21665 arg3 = &temp3;
21666 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
21667 }
21668 }
21669 if (obj3) {
21670 {
21671 arg4 = &temp4;
21672 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
21673 }
21674 }
21675 if (obj4) {
21676 arg5 = (long)SWIG_As_long(obj4);
21677 if (PyErr_Occurred()) SWIG_fail;
21678 }
21679 if (obj5) {
21680 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
21681 SWIG_POINTER_EXCEPTION | 0)) == -1)
21682 SWIG_fail;
21683 if (arg6 == NULL) {
21684 PyErr_SetString(PyExc_TypeError,"null reference");
21685 SWIG_fail;
21686 }
21687 }
21688 if (obj6) {
21689 {
21690 arg7 = wxString_in_helper(obj6);
21691 if (arg7 == NULL) SWIG_fail;
21692 temp7 = true;
21693 }
21694 }
21695 {
21696 if (!wxPyCheckForApp()) SWIG_fail;
21697 PyThreadState* __tstate = wxPyBeginAllowThreads();
21698 result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
21699
21700 wxPyEndAllowThreads(__tstate);
21701 if (PyErr_Occurred()) SWIG_fail;
21702 }
21703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21704 {
21705 if (temp7)
21706 delete arg7;
21707 }
21708 return resultobj;
21709 fail:
21710 {
21711 if (temp7)
21712 delete arg7;
21713 }
21714 return NULL;
21715 }
21716
21717
21718 static PyObject *_wrap_new_PreListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
21719 PyObject *resultobj;
21720 wxPyListCtrl *result;
21721 char *kwnames[] = {
21722 NULL
21723 };
21724
21725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail;
21726 {
21727 if (!wxPyCheckForApp()) SWIG_fail;
21728 PyThreadState* __tstate = wxPyBeginAllowThreads();
21729 result = (wxPyListCtrl *)new wxPyListCtrl();
21730
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1);
21735 return resultobj;
21736 fail:
21737 return NULL;
21738 }
21739
21740
21741 static PyObject *_wrap_ListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj;
21743 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21744 wxWindow *arg2 = (wxWindow *) 0 ;
21745 int arg3 = (int) -1 ;
21746 wxPoint const &arg4_defvalue = wxDefaultPosition ;
21747 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
21748 wxSize const &arg5_defvalue = wxDefaultSize ;
21749 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
21750 long arg6 = (long) wxLC_ICON ;
21751 wxValidator const &arg7_defvalue = wxDefaultValidator ;
21752 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
21753 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
21754 wxString *arg8 = (wxString *) &arg8_defvalue ;
21755 bool result;
21756 wxPoint temp4 ;
21757 wxSize temp5 ;
21758 bool temp8 = false ;
21759 PyObject * obj0 = 0 ;
21760 PyObject * obj1 = 0 ;
21761 PyObject * obj2 = 0 ;
21762 PyObject * obj3 = 0 ;
21763 PyObject * obj4 = 0 ;
21764 PyObject * obj5 = 0 ;
21765 PyObject * obj6 = 0 ;
21766 PyObject * obj7 = 0 ;
21767 char *kwnames[] = {
21768 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
21769 };
21770
21771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
21772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21774 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
21775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21776 if (obj2) {
21777 arg3 = (int)SWIG_As_int(obj2);
21778 if (PyErr_Occurred()) SWIG_fail;
21779 }
21780 if (obj3) {
21781 {
21782 arg4 = &temp4;
21783 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
21784 }
21785 }
21786 if (obj4) {
21787 {
21788 arg5 = &temp5;
21789 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
21790 }
21791 }
21792 if (obj5) {
21793 arg6 = (long)SWIG_As_long(obj5);
21794 if (PyErr_Occurred()) SWIG_fail;
21795 }
21796 if (obj6) {
21797 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
21798 SWIG_POINTER_EXCEPTION | 0)) == -1)
21799 SWIG_fail;
21800 if (arg7 == NULL) {
21801 PyErr_SetString(PyExc_TypeError,"null reference");
21802 SWIG_fail;
21803 }
21804 }
21805 if (obj7) {
21806 {
21807 arg8 = wxString_in_helper(obj7);
21808 if (arg8 == NULL) SWIG_fail;
21809 temp8 = true;
21810 }
21811 }
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
21815
21816 wxPyEndAllowThreads(__tstate);
21817 if (PyErr_Occurred()) SWIG_fail;
21818 }
21819 {
21820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21821 }
21822 {
21823 if (temp8)
21824 delete arg8;
21825 }
21826 return resultobj;
21827 fail:
21828 {
21829 if (temp8)
21830 delete arg8;
21831 }
21832 return NULL;
21833 }
21834
21835
21836 static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
21837 PyObject *resultobj;
21838 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21839 PyObject *arg2 = (PyObject *) 0 ;
21840 PyObject *arg3 = (PyObject *) 0 ;
21841 PyObject * obj0 = 0 ;
21842 PyObject * obj1 = 0 ;
21843 PyObject * obj2 = 0 ;
21844 char *kwnames[] = {
21845 (char *) "self",(char *) "self",(char *) "_class", NULL
21846 };
21847
21848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
21849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21851 arg2 = obj1;
21852 arg3 = obj2;
21853 {
21854 PyThreadState* __tstate = wxPyBeginAllowThreads();
21855 (arg1)->_setCallbackInfo(arg2,arg3);
21856
21857 wxPyEndAllowThreads(__tstate);
21858 if (PyErr_Occurred()) SWIG_fail;
21859 }
21860 Py_INCREF(Py_None); resultobj = Py_None;
21861 return resultobj;
21862 fail:
21863 return NULL;
21864 }
21865
21866
21867 static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21868 PyObject *resultobj;
21869 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21870 wxColour *arg2 = 0 ;
21871 bool result;
21872 wxColour temp2 ;
21873 PyObject * obj0 = 0 ;
21874 PyObject * obj1 = 0 ;
21875 char *kwnames[] = {
21876 (char *) "self",(char *) "col", NULL
21877 };
21878
21879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail;
21880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21882 {
21883 arg2 = &temp2;
21884 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21885 }
21886 {
21887 PyThreadState* __tstate = wxPyBeginAllowThreads();
21888 result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2);
21889
21890 wxPyEndAllowThreads(__tstate);
21891 if (PyErr_Occurred()) SWIG_fail;
21892 }
21893 {
21894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21895 }
21896 return resultobj;
21897 fail:
21898 return NULL;
21899 }
21900
21901
21902 static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
21903 PyObject *resultobj;
21904 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21905 wxColour *arg2 = 0 ;
21906 bool result;
21907 wxColour temp2 ;
21908 PyObject * obj0 = 0 ;
21909 PyObject * obj1 = 0 ;
21910 char *kwnames[] = {
21911 (char *) "self",(char *) "col", NULL
21912 };
21913
21914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
21915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21917 {
21918 arg2 = &temp2;
21919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21920 }
21921 {
21922 PyThreadState* __tstate = wxPyBeginAllowThreads();
21923 result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2);
21924
21925 wxPyEndAllowThreads(__tstate);
21926 if (PyErr_Occurred()) SWIG_fail;
21927 }
21928 {
21929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21930 }
21931 return resultobj;
21932 fail:
21933 return NULL;
21934 }
21935
21936
21937 static PyObject *_wrap_ListCtrl_GetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21938 PyObject *resultobj;
21939 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21940 int arg2 ;
21941 wxListItem *result;
21942 PyObject * obj0 = 0 ;
21943 PyObject * obj1 = 0 ;
21944 char *kwnames[] = {
21945 (char *) "self",(char *) "col", NULL
21946 };
21947
21948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail;
21949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21951 arg2 = (int)SWIG_As_int(obj1);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2);
21956
21957 wxPyEndAllowThreads(__tstate);
21958 if (PyErr_Occurred()) SWIG_fail;
21959 }
21960 {
21961 resultobj = wxPyMake_wxObject(result, 0);
21962 }
21963 return resultobj;
21964 fail:
21965 return NULL;
21966 }
21967
21968
21969 static PyObject *_wrap_ListCtrl_SetColumn(PyObject *, PyObject *args, PyObject *kwargs) {
21970 PyObject *resultobj;
21971 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
21972 int arg2 ;
21973 wxListItem *arg3 = 0 ;
21974 bool result;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 PyObject * obj2 = 0 ;
21978 char *kwnames[] = {
21979 (char *) "self",(char *) "col",(char *) "item", NULL
21980 };
21981
21982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail;
21983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
21984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
21985 arg2 = (int)SWIG_As_int(obj1);
21986 if (PyErr_Occurred()) SWIG_fail;
21987 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
21988 SWIG_POINTER_EXCEPTION | 0)) == -1)
21989 SWIG_fail;
21990 if (arg3 == NULL) {
21991 PyErr_SetString(PyExc_TypeError,"null reference");
21992 SWIG_fail;
21993 }
21994 {
21995 PyThreadState* __tstate = wxPyBeginAllowThreads();
21996 result = (bool)(arg1)->SetColumn(arg2,*arg3);
21997
21998 wxPyEndAllowThreads(__tstate);
21999 if (PyErr_Occurred()) SWIG_fail;
22000 }
22001 {
22002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22003 }
22004 return resultobj;
22005 fail:
22006 return NULL;
22007 }
22008
22009
22010 static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22011 PyObject *resultobj;
22012 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22013 int arg2 ;
22014 int result;
22015 PyObject * obj0 = 0 ;
22016 PyObject * obj1 = 0 ;
22017 char *kwnames[] = {
22018 (char *) "self",(char *) "col", NULL
22019 };
22020
22021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail;
22022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22024 arg2 = (int)SWIG_As_int(obj1);
22025 if (PyErr_Occurred()) SWIG_fail;
22026 {
22027 PyThreadState* __tstate = wxPyBeginAllowThreads();
22028 result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2);
22029
22030 wxPyEndAllowThreads(__tstate);
22031 if (PyErr_Occurred()) SWIG_fail;
22032 }
22033 resultobj = SWIG_From_int((int)result);
22034 return resultobj;
22035 fail:
22036 return NULL;
22037 }
22038
22039
22040 static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *, PyObject *args, PyObject *kwargs) {
22041 PyObject *resultobj;
22042 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22043 int arg2 ;
22044 int arg3 ;
22045 bool result;
22046 PyObject * obj0 = 0 ;
22047 PyObject * obj1 = 0 ;
22048 PyObject * obj2 = 0 ;
22049 char *kwnames[] = {
22050 (char *) "self",(char *) "col",(char *) "width", NULL
22051 };
22052
22053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail;
22054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22056 arg2 = (int)SWIG_As_int(obj1);
22057 if (PyErr_Occurred()) SWIG_fail;
22058 arg3 = (int)SWIG_As_int(obj2);
22059 if (PyErr_Occurred()) SWIG_fail;
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = (bool)(arg1)->SetColumnWidth(arg2,arg3);
22063
22064 wxPyEndAllowThreads(__tstate);
22065 if (PyErr_Occurred()) SWIG_fail;
22066 }
22067 {
22068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22069 }
22070 return resultobj;
22071 fail:
22072 return NULL;
22073 }
22074
22075
22076 static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *, PyObject *args, PyObject *kwargs) {
22077 PyObject *resultobj;
22078 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22079 int result;
22080 PyObject * obj0 = 0 ;
22081 char *kwnames[] = {
22082 (char *) "self", NULL
22083 };
22084
22085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail;
22086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage();
22091
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_From_int((int)result);
22096 return resultobj;
22097 fail:
22098 return NULL;
22099 }
22100
22101
22102 static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *, PyObject *args, PyObject *kwargs) {
22103 PyObject *resultobj;
22104 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22105 wxRect result;
22106 PyObject * obj0 = 0 ;
22107 char *kwnames[] = {
22108 (char *) "self", NULL
22109 };
22110
22111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail;
22112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22114 {
22115 PyThreadState* __tstate = wxPyBeginAllowThreads();
22116 result = ((wxPyListCtrl const *)arg1)->GetViewRect();
22117
22118 wxPyEndAllowThreads(__tstate);
22119 if (PyErr_Occurred()) SWIG_fail;
22120 }
22121 {
22122 wxRect * resultptr;
22123 resultptr = new wxRect((wxRect &) result);
22124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22125 }
22126 return resultobj;
22127 fail:
22128 return NULL;
22129 }
22130
22131
22132 static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
22133 PyObject *resultobj;
22134 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22135 wxTextCtrl *result;
22136 PyObject * obj0 = 0 ;
22137 char *kwnames[] = {
22138 (char *) "self", NULL
22139 };
22140
22141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail;
22142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22144 {
22145 PyThreadState* __tstate = wxPyBeginAllowThreads();
22146 result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl();
22147
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 resultobj = wxPyMake_wxObject(result, 0);
22153 }
22154 return resultobj;
22155 fail:
22156 return NULL;
22157 }
22158
22159
22160 static PyObject *_wrap_ListCtrl_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22161 PyObject *resultobj;
22162 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22163 long arg2 ;
22164 int arg3 = (int) 0 ;
22165 wxListItem *result;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168 PyObject * obj2 = 0 ;
22169 char *kwnames[] = {
22170 (char *) "self",(char *) "itemId",(char *) "col", NULL
22171 };
22172
22173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
22174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22176 arg2 = (long)SWIG_As_long(obj1);
22177 if (PyErr_Occurred()) SWIG_fail;
22178 if (obj2) {
22179 arg3 = (int)SWIG_As_int(obj2);
22180 if (PyErr_Occurred()) SWIG_fail;
22181 }
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3);
22185
22186 wxPyEndAllowThreads(__tstate);
22187 if (PyErr_Occurred()) SWIG_fail;
22188 }
22189 {
22190 resultobj = wxPyMake_wxObject(result, 0);
22191 }
22192 return resultobj;
22193 fail:
22194 return NULL;
22195 }
22196
22197
22198 static PyObject *_wrap_ListCtrl_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
22199 PyObject *resultobj;
22200 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22201 wxListItem *arg2 = 0 ;
22202 bool result;
22203 PyObject * obj0 = 0 ;
22204 PyObject * obj1 = 0 ;
22205 char *kwnames[] = {
22206 (char *) "self",(char *) "info", NULL
22207 };
22208
22209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail;
22210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22212 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
22213 SWIG_POINTER_EXCEPTION | 0)) == -1)
22214 SWIG_fail;
22215 if (arg2 == NULL) {
22216 PyErr_SetString(PyExc_TypeError,"null reference");
22217 SWIG_fail;
22218 }
22219 {
22220 PyThreadState* __tstate = wxPyBeginAllowThreads();
22221 result = (bool)(arg1)->SetItem(*arg2);
22222
22223 wxPyEndAllowThreads(__tstate);
22224 if (PyErr_Occurred()) SWIG_fail;
22225 }
22226 {
22227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22228 }
22229 return resultobj;
22230 fail:
22231 return NULL;
22232 }
22233
22234
22235 static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
22236 PyObject *resultobj;
22237 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22238 long arg2 ;
22239 int arg3 ;
22240 wxString *arg4 = 0 ;
22241 int arg5 = (int) -1 ;
22242 long result;
22243 bool temp4 = false ;
22244 PyObject * obj0 = 0 ;
22245 PyObject * obj1 = 0 ;
22246 PyObject * obj2 = 0 ;
22247 PyObject * obj3 = 0 ;
22248 PyObject * obj4 = 0 ;
22249 char *kwnames[] = {
22250 (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL
22251 };
22252
22253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
22254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22256 arg2 = (long)SWIG_As_long(obj1);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 arg3 = (int)SWIG_As_int(obj2);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 {
22261 arg4 = wxString_in_helper(obj3);
22262 if (arg4 == NULL) SWIG_fail;
22263 temp4 = true;
22264 }
22265 if (obj4) {
22266 arg5 = (int)SWIG_As_int(obj4);
22267 if (PyErr_Occurred()) SWIG_fail;
22268 }
22269 {
22270 PyThreadState* __tstate = wxPyBeginAllowThreads();
22271 result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5);
22272
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 resultobj = SWIG_From_long((long)result);
22277 {
22278 if (temp4)
22279 delete arg4;
22280 }
22281 return resultobj;
22282 fail:
22283 {
22284 if (temp4)
22285 delete arg4;
22286 }
22287 return NULL;
22288 }
22289
22290
22291 static PyObject *_wrap_ListCtrl_GetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22292 PyObject *resultobj;
22293 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22294 long arg2 ;
22295 long arg3 ;
22296 int result;
22297 PyObject * obj0 = 0 ;
22298 PyObject * obj1 = 0 ;
22299 PyObject * obj2 = 0 ;
22300 char *kwnames[] = {
22301 (char *) "self",(char *) "item",(char *) "stateMask", NULL
22302 };
22303
22304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail;
22305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22307 arg2 = (long)SWIG_As_long(obj1);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 arg3 = (long)SWIG_As_long(obj2);
22310 if (PyErr_Occurred()) SWIG_fail;
22311 {
22312 PyThreadState* __tstate = wxPyBeginAllowThreads();
22313 result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3);
22314
22315 wxPyEndAllowThreads(__tstate);
22316 if (PyErr_Occurred()) SWIG_fail;
22317 }
22318 resultobj = SWIG_From_int((int)result);
22319 return resultobj;
22320 fail:
22321 return NULL;
22322 }
22323
22324
22325 static PyObject *_wrap_ListCtrl_SetItemState(PyObject *, PyObject *args, PyObject *kwargs) {
22326 PyObject *resultobj;
22327 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22328 long arg2 ;
22329 long arg3 ;
22330 long arg4 ;
22331 bool result;
22332 PyObject * obj0 = 0 ;
22333 PyObject * obj1 = 0 ;
22334 PyObject * obj2 = 0 ;
22335 PyObject * obj3 = 0 ;
22336 char *kwnames[] = {
22337 (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL
22338 };
22339
22340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22343 arg2 = (long)SWIG_As_long(obj1);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 arg3 = (long)SWIG_As_long(obj2);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 arg4 = (long)SWIG_As_long(obj3);
22348 if (PyErr_Occurred()) SWIG_fail;
22349 {
22350 PyThreadState* __tstate = wxPyBeginAllowThreads();
22351 result = (bool)(arg1)->SetItemState(arg2,arg3,arg4);
22352
22353 wxPyEndAllowThreads(__tstate);
22354 if (PyErr_Occurred()) SWIG_fail;
22355 }
22356 {
22357 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22358 }
22359 return resultobj;
22360 fail:
22361 return NULL;
22362 }
22363
22364
22365 static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
22366 PyObject *resultobj;
22367 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22368 long arg2 ;
22369 int arg3 ;
22370 int arg4 ;
22371 bool result;
22372 PyObject * obj0 = 0 ;
22373 PyObject * obj1 = 0 ;
22374 PyObject * obj2 = 0 ;
22375 PyObject * obj3 = 0 ;
22376 char *kwnames[] = {
22377 (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL
22378 };
22379
22380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22383 arg2 = (long)SWIG_As_long(obj1);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 arg3 = (int)SWIG_As_int(obj2);
22386 if (PyErr_Occurred()) SWIG_fail;
22387 arg4 = (int)SWIG_As_int(obj3);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 {
22390 PyThreadState* __tstate = wxPyBeginAllowThreads();
22391 result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4);
22392
22393 wxPyEndAllowThreads(__tstate);
22394 if (PyErr_Occurred()) SWIG_fail;
22395 }
22396 {
22397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22398 }
22399 return resultobj;
22400 fail:
22401 return NULL;
22402 }
22403
22404
22405 static PyObject *_wrap_ListCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22406 PyObject *resultobj;
22407 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22408 long arg2 ;
22409 wxString result;
22410 PyObject * obj0 = 0 ;
22411 PyObject * obj1 = 0 ;
22412 char *kwnames[] = {
22413 (char *) "self",(char *) "item", NULL
22414 };
22415
22416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
22417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22419 arg2 = (long)SWIG_As_long(obj1);
22420 if (PyErr_Occurred()) SWIG_fail;
22421 {
22422 PyThreadState* __tstate = wxPyBeginAllowThreads();
22423 result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2);
22424
22425 wxPyEndAllowThreads(__tstate);
22426 if (PyErr_Occurred()) SWIG_fail;
22427 }
22428 {
22429 #if wxUSE_UNICODE
22430 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22431 #else
22432 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22433 #endif
22434 }
22435 return resultobj;
22436 fail:
22437 return NULL;
22438 }
22439
22440
22441 static PyObject *_wrap_ListCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
22442 PyObject *resultobj;
22443 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22444 long arg2 ;
22445 wxString *arg3 = 0 ;
22446 bool temp3 = false ;
22447 PyObject * obj0 = 0 ;
22448 PyObject * obj1 = 0 ;
22449 PyObject * obj2 = 0 ;
22450 char *kwnames[] = {
22451 (char *) "self",(char *) "item",(char *) "str", NULL
22452 };
22453
22454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
22455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22457 arg2 = (long)SWIG_As_long(obj1);
22458 if (PyErr_Occurred()) SWIG_fail;
22459 {
22460 arg3 = wxString_in_helper(obj2);
22461 if (arg3 == NULL) SWIG_fail;
22462 temp3 = true;
22463 }
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 (arg1)->SetItemText(arg2,(wxString const &)*arg3);
22467
22468 wxPyEndAllowThreads(__tstate);
22469 if (PyErr_Occurred()) SWIG_fail;
22470 }
22471 Py_INCREF(Py_None); resultobj = Py_None;
22472 {
22473 if (temp3)
22474 delete arg3;
22475 }
22476 return resultobj;
22477 fail:
22478 {
22479 if (temp3)
22480 delete arg3;
22481 }
22482 return NULL;
22483 }
22484
22485
22486 static PyObject *_wrap_ListCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22487 PyObject *resultobj;
22488 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22489 long arg2 ;
22490 long result;
22491 PyObject * obj0 = 0 ;
22492 PyObject * obj1 = 0 ;
22493 char *kwnames[] = {
22494 (char *) "self",(char *) "item", NULL
22495 };
22496
22497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
22498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22500 arg2 = (long)SWIG_As_long(obj1);
22501 if (PyErr_Occurred()) SWIG_fail;
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2);
22505
22506 wxPyEndAllowThreads(__tstate);
22507 if (PyErr_Occurred()) SWIG_fail;
22508 }
22509 resultobj = SWIG_From_long((long)result);
22510 return resultobj;
22511 fail:
22512 return NULL;
22513 }
22514
22515
22516 static PyObject *_wrap_ListCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
22517 PyObject *resultobj;
22518 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22519 long arg2 ;
22520 long arg3 ;
22521 bool result;
22522 PyObject * obj0 = 0 ;
22523 PyObject * obj1 = 0 ;
22524 PyObject * obj2 = 0 ;
22525 char *kwnames[] = {
22526 (char *) "self",(char *) "item",(char *) "data", NULL
22527 };
22528
22529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
22530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22532 arg2 = (long)SWIG_As_long(obj1);
22533 if (PyErr_Occurred()) SWIG_fail;
22534 arg3 = (long)SWIG_As_long(obj2);
22535 if (PyErr_Occurred()) SWIG_fail;
22536 {
22537 PyThreadState* __tstate = wxPyBeginAllowThreads();
22538 result = (bool)(arg1)->SetItemData(arg2,arg3);
22539
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 {
22544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22545 }
22546 return resultobj;
22547 fail:
22548 return NULL;
22549 }
22550
22551
22552 static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22553 PyObject *resultobj;
22554 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22555 long arg2 ;
22556 wxPoint result;
22557 PyObject * obj0 = 0 ;
22558 PyObject * obj1 = 0 ;
22559 char *kwnames[] = {
22560 (char *) "self",(char *) "item", NULL
22561 };
22562
22563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail;
22564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22566 arg2 = (long)SWIG_As_long(obj1);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 {
22569 PyThreadState* __tstate = wxPyBeginAllowThreads();
22570 result = wxPyListCtrl_GetItemPosition(arg1,arg2);
22571
22572 wxPyEndAllowThreads(__tstate);
22573 if (PyErr_Occurred()) SWIG_fail;
22574 }
22575 {
22576 wxPoint * resultptr;
22577 resultptr = new wxPoint((wxPoint &) result);
22578 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
22579 }
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *, PyObject *args, PyObject *kwargs) {
22587 PyObject *resultobj;
22588 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22589 long arg2 ;
22590 int arg3 = (int) wxLIST_RECT_BOUNDS ;
22591 wxRect result;
22592 PyObject * obj0 = 0 ;
22593 PyObject * obj1 = 0 ;
22594 PyObject * obj2 = 0 ;
22595 char *kwnames[] = {
22596 (char *) "self",(char *) "item",(char *) "code", NULL
22597 };
22598
22599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
22600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22602 arg2 = (long)SWIG_As_long(obj1);
22603 if (PyErr_Occurred()) SWIG_fail;
22604 if (obj2) {
22605 arg3 = (int)SWIG_As_int(obj2);
22606 if (PyErr_Occurred()) SWIG_fail;
22607 }
22608 {
22609 PyThreadState* __tstate = wxPyBeginAllowThreads();
22610 result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3);
22611
22612 wxPyEndAllowThreads(__tstate);
22613 if (PyErr_Occurred()) SWIG_fail;
22614 }
22615 {
22616 wxRect * resultptr;
22617 resultptr = new wxRect((wxRect &) result);
22618 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
22619 }
22620 return resultobj;
22621 fail:
22622 return NULL;
22623 }
22624
22625
22626 static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *, PyObject *args, PyObject *kwargs) {
22627 PyObject *resultobj;
22628 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22629 long arg2 ;
22630 wxPoint *arg3 = 0 ;
22631 bool result;
22632 wxPoint temp3 ;
22633 PyObject * obj0 = 0 ;
22634 PyObject * obj1 = 0 ;
22635 PyObject * obj2 = 0 ;
22636 char *kwnames[] = {
22637 (char *) "self",(char *) "item",(char *) "pos", NULL
22638 };
22639
22640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail;
22641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22643 arg2 = (long)SWIG_As_long(obj1);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 {
22646 arg3 = &temp3;
22647 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
22648 }
22649 {
22650 PyThreadState* __tstate = wxPyBeginAllowThreads();
22651 result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3);
22652
22653 wxPyEndAllowThreads(__tstate);
22654 if (PyErr_Occurred()) SWIG_fail;
22655 }
22656 {
22657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22658 }
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22666 PyObject *resultobj;
22667 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22668 int result;
22669 PyObject * obj0 = 0 ;
22670 char *kwnames[] = {
22671 (char *) "self", NULL
22672 };
22673
22674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail;
22675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22677 {
22678 PyThreadState* __tstate = wxPyBeginAllowThreads();
22679 result = (int)((wxPyListCtrl const *)arg1)->GetItemCount();
22680
22681 wxPyEndAllowThreads(__tstate);
22682 if (PyErr_Occurred()) SWIG_fail;
22683 }
22684 resultobj = SWIG_From_int((int)result);
22685 return resultobj;
22686 fail:
22687 return NULL;
22688 }
22689
22690
22691 static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *, PyObject *args, PyObject *kwargs) {
22692 PyObject *resultobj;
22693 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22694 int result;
22695 PyObject * obj0 = 0 ;
22696 char *kwnames[] = {
22697 (char *) "self", NULL
22698 };
22699
22700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail;
22701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22703 {
22704 PyThreadState* __tstate = wxPyBeginAllowThreads();
22705 result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount();
22706
22707 wxPyEndAllowThreads(__tstate);
22708 if (PyErr_Occurred()) SWIG_fail;
22709 }
22710 resultobj = SWIG_From_int((int)result);
22711 return resultobj;
22712 fail:
22713 return NULL;
22714 }
22715
22716
22717 static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
22718 PyObject *resultobj;
22719 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22720 wxSize result;
22721 PyObject * obj0 = 0 ;
22722 char *kwnames[] = {
22723 (char *) "self", NULL
22724 };
22725
22726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail;
22727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22729 {
22730 PyThreadState* __tstate = wxPyBeginAllowThreads();
22731 result = ((wxPyListCtrl const *)arg1)->GetItemSpacing();
22732
22733 wxPyEndAllowThreads(__tstate);
22734 if (PyErr_Occurred()) SWIG_fail;
22735 }
22736 {
22737 wxSize * resultptr;
22738 resultptr = new wxSize((wxSize &) result);
22739 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
22740 }
22741 return resultobj;
22742 fail:
22743 return NULL;
22744 }
22745
22746
22747 static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
22748 PyObject *resultobj;
22749 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22750 int result;
22751 PyObject * obj0 = 0 ;
22752 char *kwnames[] = {
22753 (char *) "self", NULL
22754 };
22755
22756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail;
22757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22759 {
22760 PyThreadState* __tstate = wxPyBeginAllowThreads();
22761 result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount();
22762
22763 wxPyEndAllowThreads(__tstate);
22764 if (PyErr_Occurred()) SWIG_fail;
22765 }
22766 resultobj = SWIG_From_int((int)result);
22767 return resultobj;
22768 fail:
22769 return NULL;
22770 }
22771
22772
22773 static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22774 PyObject *resultobj;
22775 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22776 wxColour result;
22777 PyObject * obj0 = 0 ;
22778 char *kwnames[] = {
22779 (char *) "self", NULL
22780 };
22781
22782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail;
22783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22785 {
22786 PyThreadState* __tstate = wxPyBeginAllowThreads();
22787 result = ((wxPyListCtrl const *)arg1)->GetTextColour();
22788
22789 wxPyEndAllowThreads(__tstate);
22790 if (PyErr_Occurred()) SWIG_fail;
22791 }
22792 {
22793 wxColour * resultptr;
22794 resultptr = new wxColour((wxColour &) result);
22795 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
22796 }
22797 return resultobj;
22798 fail:
22799 return NULL;
22800 }
22801
22802
22803 static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
22804 PyObject *resultobj;
22805 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22806 wxColour *arg2 = 0 ;
22807 wxColour temp2 ;
22808 PyObject * obj0 = 0 ;
22809 PyObject * obj1 = 0 ;
22810 char *kwnames[] = {
22811 (char *) "self",(char *) "col", NULL
22812 };
22813
22814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail;
22815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22817 {
22818 arg2 = &temp2;
22819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22820 }
22821 {
22822 PyThreadState* __tstate = wxPyBeginAllowThreads();
22823 (arg1)->SetTextColour((wxColour const &)*arg2);
22824
22825 wxPyEndAllowThreads(__tstate);
22826 if (PyErr_Occurred()) SWIG_fail;
22827 }
22828 Py_INCREF(Py_None); resultobj = Py_None;
22829 return resultobj;
22830 fail:
22831 return NULL;
22832 }
22833
22834
22835 static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *, PyObject *args, PyObject *kwargs) {
22836 PyObject *resultobj;
22837 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22838 long result;
22839 PyObject * obj0 = 0 ;
22840 char *kwnames[] = {
22841 (char *) "self", NULL
22842 };
22843
22844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail;
22845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (long)((wxPyListCtrl const *)arg1)->GetTopItem();
22850
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 resultobj = SWIG_From_long((long)result);
22855 return resultobj;
22856 fail:
22857 return NULL;
22858 }
22859
22860
22861 static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *, PyObject *args, PyObject *kwargs) {
22862 PyObject *resultobj;
22863 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22864 long arg2 ;
22865 bool arg3 = (bool) true ;
22866 PyObject * obj0 = 0 ;
22867 PyObject * obj1 = 0 ;
22868 PyObject * obj2 = 0 ;
22869 char *kwnames[] = {
22870 (char *) "self",(char *) "style",(char *) "add", NULL
22871 };
22872
22873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail;
22874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22876 arg2 = (long)SWIG_As_long(obj1);
22877 if (PyErr_Occurred()) SWIG_fail;
22878 if (obj2) {
22879 arg3 = (bool)SWIG_As_bool(obj2);
22880 if (PyErr_Occurred()) SWIG_fail;
22881 }
22882 {
22883 PyThreadState* __tstate = wxPyBeginAllowThreads();
22884 (arg1)->SetSingleStyle(arg2,arg3);
22885
22886 wxPyEndAllowThreads(__tstate);
22887 if (PyErr_Occurred()) SWIG_fail;
22888 }
22889 Py_INCREF(Py_None); resultobj = Py_None;
22890 return resultobj;
22891 fail:
22892 return NULL;
22893 }
22894
22895
22896 static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *, PyObject *args, PyObject *kwargs) {
22897 PyObject *resultobj;
22898 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22899 long arg2 ;
22900 PyObject * obj0 = 0 ;
22901 PyObject * obj1 = 0 ;
22902 char *kwnames[] = {
22903 (char *) "self",(char *) "style", NULL
22904 };
22905
22906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail;
22907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22909 arg2 = (long)SWIG_As_long(obj1);
22910 if (PyErr_Occurred()) SWIG_fail;
22911 {
22912 PyThreadState* __tstate = wxPyBeginAllowThreads();
22913 (arg1)->SetWindowStyleFlag(arg2);
22914
22915 wxPyEndAllowThreads(__tstate);
22916 if (PyErr_Occurred()) SWIG_fail;
22917 }
22918 Py_INCREF(Py_None); resultobj = Py_None;
22919 return resultobj;
22920 fail:
22921 return NULL;
22922 }
22923
22924
22925 static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *, PyObject *args, PyObject *kwargs) {
22926 PyObject *resultobj;
22927 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22928 long arg2 ;
22929 int arg3 = (int) wxLIST_NEXT_ALL ;
22930 int arg4 = (int) wxLIST_STATE_DONTCARE ;
22931 long result;
22932 PyObject * obj0 = 0 ;
22933 PyObject * obj1 = 0 ;
22934 PyObject * obj2 = 0 ;
22935 PyObject * obj3 = 0 ;
22936 char *kwnames[] = {
22937 (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL
22938 };
22939
22940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
22941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22943 arg2 = (long)SWIG_As_long(obj1);
22944 if (PyErr_Occurred()) SWIG_fail;
22945 if (obj2) {
22946 arg3 = (int)SWIG_As_int(obj2);
22947 if (PyErr_Occurred()) SWIG_fail;
22948 }
22949 if (obj3) {
22950 arg4 = (int)SWIG_As_int(obj3);
22951 if (PyErr_Occurred()) SWIG_fail;
22952 }
22953 {
22954 PyThreadState* __tstate = wxPyBeginAllowThreads();
22955 result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4);
22956
22957 wxPyEndAllowThreads(__tstate);
22958 if (PyErr_Occurred()) SWIG_fail;
22959 }
22960 resultobj = SWIG_From_long((long)result);
22961 return resultobj;
22962 fail:
22963 return NULL;
22964 }
22965
22966
22967 static PyObject *_wrap_ListCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
22968 PyObject *resultobj;
22969 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
22970 int arg2 ;
22971 wxImageList *result;
22972 PyObject * obj0 = 0 ;
22973 PyObject * obj1 = 0 ;
22974 char *kwnames[] = {
22975 (char *) "self",(char *) "which", NULL
22976 };
22977
22978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail;
22979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
22980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
22981 arg2 = (int)SWIG_As_int(obj1);
22982 if (PyErr_Occurred()) SWIG_fail;
22983 {
22984 PyThreadState* __tstate = wxPyBeginAllowThreads();
22985 result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2);
22986
22987 wxPyEndAllowThreads(__tstate);
22988 if (PyErr_Occurred()) SWIG_fail;
22989 }
22990 {
22991 resultobj = wxPyMake_wxObject(result, 0);
22992 }
22993 return resultobj;
22994 fail:
22995 return NULL;
22996 }
22997
22998
22999 static PyObject *_wrap_ListCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23000 PyObject *resultobj;
23001 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23002 wxImageList *arg2 = (wxImageList *) 0 ;
23003 int arg3 ;
23004 PyObject * obj0 = 0 ;
23005 PyObject * obj1 = 0 ;
23006 PyObject * obj2 = 0 ;
23007 char *kwnames[] = {
23008 (char *) "self",(char *) "imageList",(char *) "which", NULL
23009 };
23010
23011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23016 arg3 = (int)SWIG_As_int(obj2);
23017 if (PyErr_Occurred()) SWIG_fail;
23018 {
23019 PyThreadState* __tstate = wxPyBeginAllowThreads();
23020 (arg1)->SetImageList(arg2,arg3);
23021
23022 wxPyEndAllowThreads(__tstate);
23023 if (PyErr_Occurred()) SWIG_fail;
23024 }
23025 Py_INCREF(Py_None); resultobj = Py_None;
23026 return resultobj;
23027 fail:
23028 return NULL;
23029 }
23030
23031
23032 static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
23033 PyObject *resultobj;
23034 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23035 wxImageList *arg2 = (wxImageList *) 0 ;
23036 int arg3 ;
23037 PyObject * obj0 = 0 ;
23038 PyObject * obj1 = 0 ;
23039 PyObject * obj2 = 0 ;
23040 char *kwnames[] = {
23041 (char *) "self",(char *) "imageList",(char *) "which", NULL
23042 };
23043
23044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
23048 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
23049 arg3 = (int)SWIG_As_int(obj2);
23050 if (PyErr_Occurred()) SWIG_fail;
23051 {
23052 PyThreadState* __tstate = wxPyBeginAllowThreads();
23053 (arg1)->AssignImageList(arg2,arg3);
23054
23055 wxPyEndAllowThreads(__tstate);
23056 if (PyErr_Occurred()) SWIG_fail;
23057 }
23058 Py_INCREF(Py_None); resultobj = Py_None;
23059 return resultobj;
23060 fail:
23061 return NULL;
23062 }
23063
23064
23065 static PyObject *_wrap_ListCtrl_InReportView(PyObject *, PyObject *args, PyObject *kwargs) {
23066 PyObject *resultobj;
23067 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23068 bool result;
23069 PyObject * obj0 = 0 ;
23070 char *kwnames[] = {
23071 (char *) "self", NULL
23072 };
23073
23074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail;
23075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23077 {
23078 PyThreadState* __tstate = wxPyBeginAllowThreads();
23079 result = (bool)((wxPyListCtrl const *)arg1)->InReportView();
23080
23081 wxPyEndAllowThreads(__tstate);
23082 if (PyErr_Occurred()) SWIG_fail;
23083 }
23084 {
23085 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23086 }
23087 return resultobj;
23088 fail:
23089 return NULL;
23090 }
23091
23092
23093 static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *, PyObject *args, PyObject *kwargs) {
23094 PyObject *resultobj;
23095 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23096 bool result;
23097 PyObject * obj0 = 0 ;
23098 char *kwnames[] = {
23099 (char *) "self", NULL
23100 };
23101
23102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail;
23103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual();
23108
23109 wxPyEndAllowThreads(__tstate);
23110 if (PyErr_Occurred()) SWIG_fail;
23111 }
23112 {
23113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23114 }
23115 return resultobj;
23116 fail:
23117 return NULL;
23118 }
23119
23120
23121 static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *, PyObject *args, PyObject *kwargs) {
23122 PyObject *resultobj;
23123 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23124 long arg2 ;
23125 PyObject * obj0 = 0 ;
23126 PyObject * obj1 = 0 ;
23127 char *kwnames[] = {
23128 (char *) "self",(char *) "item", NULL
23129 };
23130
23131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail;
23132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23134 arg2 = (long)SWIG_As_long(obj1);
23135 if (PyErr_Occurred()) SWIG_fail;
23136 {
23137 PyThreadState* __tstate = wxPyBeginAllowThreads();
23138 (arg1)->RefreshItem(arg2);
23139
23140 wxPyEndAllowThreads(__tstate);
23141 if (PyErr_Occurred()) SWIG_fail;
23142 }
23143 Py_INCREF(Py_None); resultobj = Py_None;
23144 return resultobj;
23145 fail:
23146 return NULL;
23147 }
23148
23149
23150 static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *, PyObject *args, PyObject *kwargs) {
23151 PyObject *resultobj;
23152 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23153 long arg2 ;
23154 long arg3 ;
23155 PyObject * obj0 = 0 ;
23156 PyObject * obj1 = 0 ;
23157 PyObject * obj2 = 0 ;
23158 char *kwnames[] = {
23159 (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL
23160 };
23161
23162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail;
23163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23165 arg2 = (long)SWIG_As_long(obj1);
23166 if (PyErr_Occurred()) SWIG_fail;
23167 arg3 = (long)SWIG_As_long(obj2);
23168 if (PyErr_Occurred()) SWIG_fail;
23169 {
23170 PyThreadState* __tstate = wxPyBeginAllowThreads();
23171 (arg1)->RefreshItems(arg2,arg3);
23172
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 Py_INCREF(Py_None); resultobj = Py_None;
23177 return resultobj;
23178 fail:
23179 return NULL;
23180 }
23181
23182
23183 static PyObject *_wrap_ListCtrl_Arrange(PyObject *, PyObject *args, PyObject *kwargs) {
23184 PyObject *resultobj;
23185 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23186 int arg2 = (int) wxLIST_ALIGN_DEFAULT ;
23187 bool result;
23188 PyObject * obj0 = 0 ;
23189 PyObject * obj1 = 0 ;
23190 char *kwnames[] = {
23191 (char *) "self",(char *) "flag", NULL
23192 };
23193
23194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail;
23195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23197 if (obj1) {
23198 arg2 = (int)SWIG_As_int(obj1);
23199 if (PyErr_Occurred()) SWIG_fail;
23200 }
23201 {
23202 PyThreadState* __tstate = wxPyBeginAllowThreads();
23203 result = (bool)(arg1)->Arrange(arg2);
23204
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 {
23209 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23210 }
23211 return resultobj;
23212 fail:
23213 return NULL;
23214 }
23215
23216
23217 static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *, PyObject *args, PyObject *kwargs) {
23218 PyObject *resultobj;
23219 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23220 long arg2 ;
23221 bool result;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char *kwnames[] = {
23225 (char *) "self",(char *) "item", NULL
23226 };
23227
23228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail;
23229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23231 arg2 = (long)SWIG_As_long(obj1);
23232 if (PyErr_Occurred()) SWIG_fail;
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 result = (bool)(arg1)->DeleteItem(arg2);
23236
23237 wxPyEndAllowThreads(__tstate);
23238 if (PyErr_Occurred()) SWIG_fail;
23239 }
23240 {
23241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23242 }
23243 return resultobj;
23244 fail:
23245 return NULL;
23246 }
23247
23248
23249 static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
23250 PyObject *resultobj;
23251 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23252 bool result;
23253 PyObject * obj0 = 0 ;
23254 char *kwnames[] = {
23255 (char *) "self", NULL
23256 };
23257
23258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
23259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23261 {
23262 PyThreadState* __tstate = wxPyBeginAllowThreads();
23263 result = (bool)(arg1)->DeleteAllItems();
23264
23265 wxPyEndAllowThreads(__tstate);
23266 if (PyErr_Occurred()) SWIG_fail;
23267 }
23268 {
23269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23270 }
23271 return resultobj;
23272 fail:
23273 return NULL;
23274 }
23275
23276
23277 static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23278 PyObject *resultobj;
23279 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23280 int arg2 ;
23281 bool result;
23282 PyObject * obj0 = 0 ;
23283 PyObject * obj1 = 0 ;
23284 char *kwnames[] = {
23285 (char *) "self",(char *) "col", NULL
23286 };
23287
23288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail;
23289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23291 arg2 = (int)SWIG_As_int(obj1);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (bool)(arg1)->DeleteColumn(arg2);
23296
23297 wxPyEndAllowThreads(__tstate);
23298 if (PyErr_Occurred()) SWIG_fail;
23299 }
23300 {
23301 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23302 }
23303 return resultobj;
23304 fail:
23305 return NULL;
23306 }
23307
23308
23309 static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *, PyObject *args, PyObject *kwargs) {
23310 PyObject *resultobj;
23311 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23312 bool result;
23313 PyObject * obj0 = 0 ;
23314 char *kwnames[] = {
23315 (char *) "self", NULL
23316 };
23317
23318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail;
23319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = (bool)(arg1)->DeleteAllColumns();
23324
23325 wxPyEndAllowThreads(__tstate);
23326 if (PyErr_Occurred()) SWIG_fail;
23327 }
23328 {
23329 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23330 }
23331 return resultobj;
23332 fail:
23333 return NULL;
23334 }
23335
23336
23337 static PyObject *_wrap_ListCtrl_ClearAll(PyObject *, PyObject *args, PyObject *kwargs) {
23338 PyObject *resultobj;
23339 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23340 PyObject * obj0 = 0 ;
23341 char *kwnames[] = {
23342 (char *) "self", NULL
23343 };
23344
23345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail;
23346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23348 {
23349 PyThreadState* __tstate = wxPyBeginAllowThreads();
23350 (arg1)->ClearAll();
23351
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 Py_INCREF(Py_None); resultobj = Py_None;
23356 return resultobj;
23357 fail:
23358 return NULL;
23359 }
23360
23361
23362 static PyObject *_wrap_ListCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23363 PyObject *resultobj;
23364 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23365 long arg2 ;
23366 wxTextCtrl *result;
23367 PyObject * obj0 = 0 ;
23368 PyObject * obj1 = 0 ;
23369 char *kwnames[] = {
23370 (char *) "self",(char *) "item", NULL
23371 };
23372
23373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
23374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23376 arg2 = (long)SWIG_As_long(obj1);
23377 if (PyErr_Occurred()) SWIG_fail;
23378 {
23379 PyThreadState* __tstate = wxPyBeginAllowThreads();
23380 result = (wxTextCtrl *)(arg1)->EditLabel(arg2);
23381
23382 wxPyEndAllowThreads(__tstate);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 }
23385 {
23386 resultobj = wxPyMake_wxObject(result, 0);
23387 }
23388 return resultobj;
23389 fail:
23390 return NULL;
23391 }
23392
23393
23394 static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj;
23396 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23397 bool arg2 ;
23398 bool result;
23399 PyObject * obj0 = 0 ;
23400 PyObject * obj1 = 0 ;
23401 char *kwnames[] = {
23402 (char *) "self",(char *) "cancel", NULL
23403 };
23404
23405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail;
23406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23408 arg2 = (bool)SWIG_As_bool(obj1);
23409 if (PyErr_Occurred()) SWIG_fail;
23410 {
23411 PyThreadState* __tstate = wxPyBeginAllowThreads();
23412 result = (bool)(arg1)->EndEditLabel(arg2);
23413
23414 wxPyEndAllowThreads(__tstate);
23415 if (PyErr_Occurred()) SWIG_fail;
23416 }
23417 {
23418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23419 }
23420 return resultobj;
23421 fail:
23422 return NULL;
23423 }
23424
23425
23426 static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
23427 PyObject *resultobj;
23428 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23429 long arg2 ;
23430 bool result;
23431 PyObject * obj0 = 0 ;
23432 PyObject * obj1 = 0 ;
23433 char *kwnames[] = {
23434 (char *) "self",(char *) "item", NULL
23435 };
23436
23437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
23438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23440 arg2 = (long)SWIG_As_long(obj1);
23441 if (PyErr_Occurred()) SWIG_fail;
23442 {
23443 PyThreadState* __tstate = wxPyBeginAllowThreads();
23444 result = (bool)(arg1)->EnsureVisible(arg2);
23445
23446 wxPyEndAllowThreads(__tstate);
23447 if (PyErr_Occurred()) SWIG_fail;
23448 }
23449 {
23450 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23451 }
23452 return resultobj;
23453 fail:
23454 return NULL;
23455 }
23456
23457
23458 static PyObject *_wrap_ListCtrl_FindItem(PyObject *, PyObject *args, PyObject *kwargs) {
23459 PyObject *resultobj;
23460 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23461 long arg2 ;
23462 wxString *arg3 = 0 ;
23463 bool arg4 = (bool) false ;
23464 long result;
23465 bool temp3 = false ;
23466 PyObject * obj0 = 0 ;
23467 PyObject * obj1 = 0 ;
23468 PyObject * obj2 = 0 ;
23469 PyObject * obj3 = 0 ;
23470 char *kwnames[] = {
23471 (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL
23472 };
23473
23474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23477 arg2 = (long)SWIG_As_long(obj1);
23478 if (PyErr_Occurred()) SWIG_fail;
23479 {
23480 arg3 = wxString_in_helper(obj2);
23481 if (arg3 == NULL) SWIG_fail;
23482 temp3 = true;
23483 }
23484 if (obj3) {
23485 arg4 = (bool)SWIG_As_bool(obj3);
23486 if (PyErr_Occurred()) SWIG_fail;
23487 }
23488 {
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4);
23491
23492 wxPyEndAllowThreads(__tstate);
23493 if (PyErr_Occurred()) SWIG_fail;
23494 }
23495 resultobj = SWIG_From_long((long)result);
23496 {
23497 if (temp3)
23498 delete arg3;
23499 }
23500 return resultobj;
23501 fail:
23502 {
23503 if (temp3)
23504 delete arg3;
23505 }
23506 return NULL;
23507 }
23508
23509
23510 static PyObject *_wrap_ListCtrl_FindItemData(PyObject *, PyObject *args, PyObject *kwargs) {
23511 PyObject *resultobj;
23512 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23513 long arg2 ;
23514 long arg3 ;
23515 long result;
23516 PyObject * obj0 = 0 ;
23517 PyObject * obj1 = 0 ;
23518 PyObject * obj2 = 0 ;
23519 char *kwnames[] = {
23520 (char *) "self",(char *) "start",(char *) "data", NULL
23521 };
23522
23523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
23524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23526 arg2 = (long)SWIG_As_long(obj1);
23527 if (PyErr_Occurred()) SWIG_fail;
23528 arg3 = (long)SWIG_As_long(obj2);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 {
23531 PyThreadState* __tstate = wxPyBeginAllowThreads();
23532 result = (long)(arg1)->FindItem(arg2,arg3);
23533
23534 wxPyEndAllowThreads(__tstate);
23535 if (PyErr_Occurred()) SWIG_fail;
23536 }
23537 resultobj = SWIG_From_long((long)result);
23538 return resultobj;
23539 fail:
23540 return NULL;
23541 }
23542
23543
23544 static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *, PyObject *args, PyObject *kwargs) {
23545 PyObject *resultobj;
23546 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23547 long arg2 ;
23548 wxPoint *arg3 = 0 ;
23549 int arg4 ;
23550 long result;
23551 wxPoint temp3 ;
23552 PyObject * obj0 = 0 ;
23553 PyObject * obj1 = 0 ;
23554 PyObject * obj2 = 0 ;
23555 PyObject * obj3 = 0 ;
23556 char *kwnames[] = {
23557 (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL
23558 };
23559
23560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23563 arg2 = (long)SWIG_As_long(obj1);
23564 if (PyErr_Occurred()) SWIG_fail;
23565 {
23566 arg3 = &temp3;
23567 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
23568 }
23569 arg4 = (int)SWIG_As_int(obj3);
23570 if (PyErr_Occurred()) SWIG_fail;
23571 {
23572 PyThreadState* __tstate = wxPyBeginAllowThreads();
23573 result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4);
23574
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 resultobj = SWIG_From_long((long)result);
23579 return resultobj;
23580 fail:
23581 return NULL;
23582 }
23583
23584
23585 static PyObject *_wrap_ListCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
23586 PyObject *resultobj;
23587 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23588 wxPoint *arg2 = 0 ;
23589 int *arg3 = 0 ;
23590 long result;
23591 wxPoint temp2 ;
23592 int temp3 ;
23593 int res3 = 0 ;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 char *kwnames[] = {
23597 (char *) "self",(char *) "point", NULL
23598 };
23599
23600 arg3 = &temp3; res3 = SWIG_NEWOBJ;
23601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
23602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23604 {
23605 arg2 = &temp2;
23606 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23607 }
23608 {
23609 PyThreadState* __tstate = wxPyBeginAllowThreads();
23610 result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3);
23611
23612 wxPyEndAllowThreads(__tstate);
23613 if (PyErr_Occurred()) SWIG_fail;
23614 }
23615 resultobj = SWIG_From_long((long)result);
23616 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
23617 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
23618 return resultobj;
23619 fail:
23620 return NULL;
23621 }
23622
23623
23624 static PyObject *_wrap_ListCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
23625 PyObject *resultobj;
23626 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23627 wxListItem *arg2 = 0 ;
23628 long result;
23629 PyObject * obj0 = 0 ;
23630 PyObject * obj1 = 0 ;
23631 char *kwnames[] = {
23632 (char *) "self",(char *) "info", NULL
23633 };
23634
23635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail;
23636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem,
23639 SWIG_POINTER_EXCEPTION | 0)) == -1)
23640 SWIG_fail;
23641 if (arg2 == NULL) {
23642 PyErr_SetString(PyExc_TypeError,"null reference");
23643 SWIG_fail;
23644 }
23645 {
23646 PyThreadState* __tstate = wxPyBeginAllowThreads();
23647 result = (long)(arg1)->InsertItem(*arg2);
23648
23649 wxPyEndAllowThreads(__tstate);
23650 if (PyErr_Occurred()) SWIG_fail;
23651 }
23652 resultobj = SWIG_From_long((long)result);
23653 return resultobj;
23654 fail:
23655 return NULL;
23656 }
23657
23658
23659 static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23660 PyObject *resultobj;
23661 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23662 long arg2 ;
23663 wxString *arg3 = 0 ;
23664 long result;
23665 bool temp3 = false ;
23666 PyObject * obj0 = 0 ;
23667 PyObject * obj1 = 0 ;
23668 PyObject * obj2 = 0 ;
23669 char *kwnames[] = {
23670 (char *) "self",(char *) "index",(char *) "label", NULL
23671 };
23672
23673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23676 arg2 = (long)SWIG_As_long(obj1);
23677 if (PyErr_Occurred()) SWIG_fail;
23678 {
23679 arg3 = wxString_in_helper(obj2);
23680 if (arg3 == NULL) SWIG_fail;
23681 temp3 = true;
23682 }
23683 {
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
23685 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3);
23686
23687 wxPyEndAllowThreads(__tstate);
23688 if (PyErr_Occurred()) SWIG_fail;
23689 }
23690 resultobj = SWIG_From_long((long)result);
23691 {
23692 if (temp3)
23693 delete arg3;
23694 }
23695 return resultobj;
23696 fail:
23697 {
23698 if (temp3)
23699 delete arg3;
23700 }
23701 return NULL;
23702 }
23703
23704
23705 static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *, PyObject *args, PyObject *kwargs) {
23706 PyObject *resultobj;
23707 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23708 long arg2 ;
23709 int arg3 ;
23710 long result;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 PyObject * obj2 = 0 ;
23714 char *kwnames[] = {
23715 (char *) "self",(char *) "index",(char *) "imageIndex", NULL
23716 };
23717
23718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
23719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23721 arg2 = (long)SWIG_As_long(obj1);
23722 if (PyErr_Occurred()) SWIG_fail;
23723 arg3 = (int)SWIG_As_int(obj2);
23724 if (PyErr_Occurred()) SWIG_fail;
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 result = (long)(arg1)->InsertItem(arg2,arg3);
23728
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 resultobj = SWIG_From_long((long)result);
23733 return resultobj;
23734 fail:
23735 return NULL;
23736 }
23737
23738
23739 static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *, PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj;
23741 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23742 long arg2 ;
23743 wxString *arg3 = 0 ;
23744 int arg4 ;
23745 long result;
23746 bool temp3 = false ;
23747 PyObject * obj0 = 0 ;
23748 PyObject * obj1 = 0 ;
23749 PyObject * obj2 = 0 ;
23750 PyObject * obj3 = 0 ;
23751 char *kwnames[] = {
23752 (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL
23753 };
23754
23755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
23756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23758 arg2 = (long)SWIG_As_long(obj1);
23759 if (PyErr_Occurred()) SWIG_fail;
23760 {
23761 arg3 = wxString_in_helper(obj2);
23762 if (arg3 == NULL) SWIG_fail;
23763 temp3 = true;
23764 }
23765 arg4 = (int)SWIG_As_int(obj3);
23766 if (PyErr_Occurred()) SWIG_fail;
23767 {
23768 PyThreadState* __tstate = wxPyBeginAllowThreads();
23769 result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4);
23770
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_From_long((long)result);
23775 {
23776 if (temp3)
23777 delete arg3;
23778 }
23779 return resultobj;
23780 fail:
23781 {
23782 if (temp3)
23783 delete arg3;
23784 }
23785 return NULL;
23786 }
23787
23788
23789 static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *, PyObject *args, PyObject *kwargs) {
23790 PyObject *resultobj;
23791 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23792 long arg2 ;
23793 wxListItem *arg3 = 0 ;
23794 long result;
23795 PyObject * obj0 = 0 ;
23796 PyObject * obj1 = 0 ;
23797 PyObject * obj2 = 0 ;
23798 char *kwnames[] = {
23799 (char *) "self",(char *) "col",(char *) "info", NULL
23800 };
23801
23802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
23803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23805 arg2 = (long)SWIG_As_long(obj1);
23806 if (PyErr_Occurred()) SWIG_fail;
23807 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem,
23808 SWIG_POINTER_EXCEPTION | 0)) == -1)
23809 SWIG_fail;
23810 if (arg3 == NULL) {
23811 PyErr_SetString(PyExc_TypeError,"null reference");
23812 SWIG_fail;
23813 }
23814 {
23815 PyThreadState* __tstate = wxPyBeginAllowThreads();
23816 result = (long)(arg1)->InsertColumn(arg2,*arg3);
23817
23818 wxPyEndAllowThreads(__tstate);
23819 if (PyErr_Occurred()) SWIG_fail;
23820 }
23821 resultobj = SWIG_From_long((long)result);
23822 return resultobj;
23823 fail:
23824 return NULL;
23825 }
23826
23827
23828 static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *, PyObject *args, PyObject *kwargs) {
23829 PyObject *resultobj;
23830 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23831 long arg2 ;
23832 wxString *arg3 = 0 ;
23833 int arg4 = (int) wxLIST_FORMAT_LEFT ;
23834 int arg5 = (int) -1 ;
23835 long result;
23836 bool temp3 = false ;
23837 PyObject * obj0 = 0 ;
23838 PyObject * obj1 = 0 ;
23839 PyObject * obj2 = 0 ;
23840 PyObject * obj3 = 0 ;
23841 PyObject * obj4 = 0 ;
23842 char *kwnames[] = {
23843 (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL
23844 };
23845
23846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
23847 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23849 arg2 = (long)SWIG_As_long(obj1);
23850 if (PyErr_Occurred()) SWIG_fail;
23851 {
23852 arg3 = wxString_in_helper(obj2);
23853 if (arg3 == NULL) SWIG_fail;
23854 temp3 = true;
23855 }
23856 if (obj3) {
23857 arg4 = (int)SWIG_As_int(obj3);
23858 if (PyErr_Occurred()) SWIG_fail;
23859 }
23860 if (obj4) {
23861 arg5 = (int)SWIG_As_int(obj4);
23862 if (PyErr_Occurred()) SWIG_fail;
23863 }
23864 {
23865 PyThreadState* __tstate = wxPyBeginAllowThreads();
23866 result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5);
23867
23868 wxPyEndAllowThreads(__tstate);
23869 if (PyErr_Occurred()) SWIG_fail;
23870 }
23871 resultobj = SWIG_From_long((long)result);
23872 {
23873 if (temp3)
23874 delete arg3;
23875 }
23876 return resultobj;
23877 fail:
23878 {
23879 if (temp3)
23880 delete arg3;
23881 }
23882 return NULL;
23883 }
23884
23885
23886 static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *, PyObject *args, PyObject *kwargs) {
23887 PyObject *resultobj;
23888 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23889 long arg2 ;
23890 PyObject * obj0 = 0 ;
23891 PyObject * obj1 = 0 ;
23892 char *kwnames[] = {
23893 (char *) "self",(char *) "count", NULL
23894 };
23895
23896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail;
23897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23899 arg2 = (long)SWIG_As_long(obj1);
23900 if (PyErr_Occurred()) SWIG_fail;
23901 {
23902 PyThreadState* __tstate = wxPyBeginAllowThreads();
23903 (arg1)->SetItemCount(arg2);
23904
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 Py_INCREF(Py_None); resultobj = Py_None;
23909 return resultobj;
23910 fail:
23911 return NULL;
23912 }
23913
23914
23915 static PyObject *_wrap_ListCtrl_ScrollList(PyObject *, PyObject *args, PyObject *kwargs) {
23916 PyObject *resultobj;
23917 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23918 int arg2 ;
23919 int arg3 ;
23920 bool result;
23921 PyObject * obj0 = 0 ;
23922 PyObject * obj1 = 0 ;
23923 PyObject * obj2 = 0 ;
23924 char *kwnames[] = {
23925 (char *) "self",(char *) "dx",(char *) "dy", NULL
23926 };
23927
23928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail;
23929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23931 arg2 = (int)SWIG_As_int(obj1);
23932 if (PyErr_Occurred()) SWIG_fail;
23933 arg3 = (int)SWIG_As_int(obj2);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 {
23936 PyThreadState* __tstate = wxPyBeginAllowThreads();
23937 result = (bool)(arg1)->ScrollList(arg2,arg3);
23938
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 {
23943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23944 }
23945 return resultobj;
23946 fail:
23947 return NULL;
23948 }
23949
23950
23951 static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23952 PyObject *resultobj;
23953 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23954 long arg2 ;
23955 wxColour *arg3 = 0 ;
23956 wxColour temp3 ;
23957 PyObject * obj0 = 0 ;
23958 PyObject * obj1 = 0 ;
23959 PyObject * obj2 = 0 ;
23960 char *kwnames[] = {
23961 (char *) "self",(char *) "item",(char *) "col", NULL
23962 };
23963
23964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
23965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
23966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
23967 arg2 = (long)SWIG_As_long(obj1);
23968 if (PyErr_Occurred()) SWIG_fail;
23969 {
23970 arg3 = &temp3;
23971 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23972 }
23973 {
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3);
23976
23977 wxPyEndAllowThreads(__tstate);
23978 if (PyErr_Occurred()) SWIG_fail;
23979 }
23980 Py_INCREF(Py_None); resultobj = Py_None;
23981 return resultobj;
23982 fail:
23983 return NULL;
23984 }
23985
23986
23987 static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
23988 PyObject *resultobj;
23989 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
23990 long arg2 ;
23991 wxColour result;
23992 PyObject * obj0 = 0 ;
23993 PyObject * obj1 = 0 ;
23994 char *kwnames[] = {
23995 (char *) "self",(char *) "item", NULL
23996 };
23997
23998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
23999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24001 arg2 = (long)SWIG_As_long(obj1);
24002 if (PyErr_Occurred()) SWIG_fail;
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2);
24006
24007 wxPyEndAllowThreads(__tstate);
24008 if (PyErr_Occurred()) SWIG_fail;
24009 }
24010 {
24011 wxColour * resultptr;
24012 resultptr = new wxColour((wxColour &) result);
24013 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24014 }
24015 return resultobj;
24016 fail:
24017 return NULL;
24018 }
24019
24020
24021 static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24022 PyObject *resultobj;
24023 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24024 long arg2 ;
24025 wxColour *arg3 = 0 ;
24026 wxColour temp3 ;
24027 PyObject * obj0 = 0 ;
24028 PyObject * obj1 = 0 ;
24029 PyObject * obj2 = 0 ;
24030 char *kwnames[] = {
24031 (char *) "self",(char *) "item",(char *) "col", NULL
24032 };
24033
24034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
24035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24037 arg2 = (long)SWIG_As_long(obj1);
24038 if (PyErr_Occurred()) SWIG_fail;
24039 {
24040 arg3 = &temp3;
24041 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24042 }
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3);
24046
24047 wxPyEndAllowThreads(__tstate);
24048 if (PyErr_Occurred()) SWIG_fail;
24049 }
24050 Py_INCREF(Py_None); resultobj = Py_None;
24051 return resultobj;
24052 fail:
24053 return NULL;
24054 }
24055
24056
24057 static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
24058 PyObject *resultobj;
24059 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24060 long arg2 ;
24061 wxColour result;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24064 char *kwnames[] = {
24065 (char *) "self",(char *) "item", NULL
24066 };
24067
24068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
24069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24071 arg2 = (long)SWIG_As_long(obj1);
24072 if (PyErr_Occurred()) SWIG_fail;
24073 {
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2);
24076
24077 wxPyEndAllowThreads(__tstate);
24078 if (PyErr_Occurred()) SWIG_fail;
24079 }
24080 {
24081 wxColour * resultptr;
24082 resultptr = new wxColour((wxColour &) result);
24083 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
24084 }
24085 return resultobj;
24086 fail:
24087 return NULL;
24088 }
24089
24090
24091 static PyObject *_wrap_ListCtrl_SortItems(PyObject *, PyObject *args, PyObject *kwargs) {
24092 PyObject *resultobj;
24093 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24094 PyObject *arg2 = (PyObject *) 0 ;
24095 bool result;
24096 PyObject * obj0 = 0 ;
24097 PyObject * obj1 = 0 ;
24098 char *kwnames[] = {
24099 (char *) "self",(char *) "func", NULL
24100 };
24101
24102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail;
24103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24105 arg2 = obj1;
24106 {
24107 PyThreadState* __tstate = wxPyBeginAllowThreads();
24108 result = (bool)wxPyListCtrl_SortItems(arg1,arg2);
24109
24110 wxPyEndAllowThreads(__tstate);
24111 if (PyErr_Occurred()) SWIG_fail;
24112 }
24113 {
24114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24115 }
24116 return resultobj;
24117 fail:
24118 return NULL;
24119 }
24120
24121
24122 static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *, PyObject *args, PyObject *kwargs) {
24123 PyObject *resultobj;
24124 wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ;
24125 wxWindow *result;
24126 PyObject * obj0 = 0 ;
24127 char *kwnames[] = {
24128 (char *) "self", NULL
24129 };
24130
24131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail;
24132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
24133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24134 {
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1);
24137
24138 wxPyEndAllowThreads(__tstate);
24139 if (PyErr_Occurred()) SWIG_fail;
24140 }
24141 {
24142 resultobj = wxPyMake_wxObject(result, 0);
24143 }
24144 return resultobj;
24145 fail:
24146 return NULL;
24147 }
24148
24149
24150 static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
24151 PyObject *resultobj;
24152 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
24153 wxVisualAttributes result;
24154 PyObject * obj0 = 0 ;
24155 char *kwnames[] = {
24156 (char *) "variant", NULL
24157 };
24158
24159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
24160 if (obj0) {
24161 arg1 = (int)SWIG_As_int(obj0);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 {
24165 if (!wxPyCheckForApp()) SWIG_fail;
24166 PyThreadState* __tstate = wxPyBeginAllowThreads();
24167 result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
24168
24169 wxPyEndAllowThreads(__tstate);
24170 if (PyErr_Occurred()) SWIG_fail;
24171 }
24172 {
24173 wxVisualAttributes * resultptr;
24174 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
24175 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
24176 }
24177 return resultobj;
24178 fail:
24179 return NULL;
24180 }
24181
24182
24183 static PyObject * ListCtrl_swigregister(PyObject *, PyObject *args) {
24184 PyObject *obj;
24185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24186 SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj);
24187 Py_INCREF(obj);
24188 return Py_BuildValue((char *)"");
24189 }
24190 static PyObject *_wrap_new_ListView(PyObject *, PyObject *args, PyObject *kwargs) {
24191 PyObject *resultobj;
24192 wxWindow *arg1 = (wxWindow *) 0 ;
24193 int arg2 = (int) -1 ;
24194 wxPoint const &arg3_defvalue = wxDefaultPosition ;
24195 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
24196 wxSize const &arg4_defvalue = wxDefaultSize ;
24197 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
24198 long arg5 = (long) wxLC_REPORT ;
24199 wxValidator const &arg6_defvalue = wxDefaultValidator ;
24200 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
24201 wxString const &arg7_defvalue = wxPyListCtrlNameStr ;
24202 wxString *arg7 = (wxString *) &arg7_defvalue ;
24203 wxListView *result;
24204 wxPoint temp3 ;
24205 wxSize temp4 ;
24206 bool temp7 = false ;
24207 PyObject * obj0 = 0 ;
24208 PyObject * obj1 = 0 ;
24209 PyObject * obj2 = 0 ;
24210 PyObject * obj3 = 0 ;
24211 PyObject * obj4 = 0 ;
24212 PyObject * obj5 = 0 ;
24213 PyObject * obj6 = 0 ;
24214 char *kwnames[] = {
24215 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24216 };
24217
24218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
24219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
24220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24221 if (obj1) {
24222 arg2 = (int)SWIG_As_int(obj1);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 if (obj2) {
24226 {
24227 arg3 = &temp3;
24228 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
24229 }
24230 }
24231 if (obj3) {
24232 {
24233 arg4 = &temp4;
24234 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24235 }
24236 }
24237 if (obj4) {
24238 arg5 = (long)SWIG_As_long(obj4);
24239 if (PyErr_Occurred()) SWIG_fail;
24240 }
24241 if (obj5) {
24242 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
24243 SWIG_POINTER_EXCEPTION | 0)) == -1)
24244 SWIG_fail;
24245 if (arg6 == NULL) {
24246 PyErr_SetString(PyExc_TypeError,"null reference");
24247 SWIG_fail;
24248 }
24249 }
24250 if (obj6) {
24251 {
24252 arg7 = wxString_in_helper(obj6);
24253 if (arg7 == NULL) SWIG_fail;
24254 temp7 = true;
24255 }
24256 }
24257 {
24258 if (!wxPyCheckForApp()) SWIG_fail;
24259 PyThreadState* __tstate = wxPyBeginAllowThreads();
24260 result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
24261
24262 wxPyEndAllowThreads(__tstate);
24263 if (PyErr_Occurred()) SWIG_fail;
24264 }
24265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24266 {
24267 if (temp7)
24268 delete arg7;
24269 }
24270 return resultobj;
24271 fail:
24272 {
24273 if (temp7)
24274 delete arg7;
24275 }
24276 return NULL;
24277 }
24278
24279
24280 static PyObject *_wrap_new_PreListView(PyObject *, PyObject *args, PyObject *kwargs) {
24281 PyObject *resultobj;
24282 wxListView *result;
24283 char *kwnames[] = {
24284 NULL
24285 };
24286
24287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail;
24288 {
24289 if (!wxPyCheckForApp()) SWIG_fail;
24290 PyThreadState* __tstate = wxPyBeginAllowThreads();
24291 result = (wxListView *)new wxListView();
24292
24293 wxPyEndAllowThreads(__tstate);
24294 if (PyErr_Occurred()) SWIG_fail;
24295 }
24296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1);
24297 return resultobj;
24298 fail:
24299 return NULL;
24300 }
24301
24302
24303 static PyObject *_wrap_ListView_Create(PyObject *, PyObject *args, PyObject *kwargs) {
24304 PyObject *resultobj;
24305 wxListView *arg1 = (wxListView *) 0 ;
24306 wxWindow *arg2 = (wxWindow *) 0 ;
24307 int arg3 = (int) -1 ;
24308 wxPoint const &arg4_defvalue = wxDefaultPosition ;
24309 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
24310 wxSize const &arg5_defvalue = wxDefaultSize ;
24311 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
24312 long arg6 = (long) wxLC_REPORT ;
24313 wxValidator const &arg7_defvalue = wxDefaultValidator ;
24314 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
24315 wxString const &arg8_defvalue = wxPyListCtrlNameStr ;
24316 wxString *arg8 = (wxString *) &arg8_defvalue ;
24317 bool result;
24318 wxPoint temp4 ;
24319 wxSize temp5 ;
24320 bool temp8 = false ;
24321 PyObject * obj0 = 0 ;
24322 PyObject * obj1 = 0 ;
24323 PyObject * obj2 = 0 ;
24324 PyObject * obj3 = 0 ;
24325 PyObject * obj4 = 0 ;
24326 PyObject * obj5 = 0 ;
24327 PyObject * obj6 = 0 ;
24328 PyObject * obj7 = 0 ;
24329 char *kwnames[] = {
24330 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
24331 };
24332
24333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
24334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24336 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
24337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24338 if (obj2) {
24339 arg3 = (int)SWIG_As_int(obj2);
24340 if (PyErr_Occurred()) SWIG_fail;
24341 }
24342 if (obj3) {
24343 {
24344 arg4 = &temp4;
24345 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
24346 }
24347 }
24348 if (obj4) {
24349 {
24350 arg5 = &temp5;
24351 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
24352 }
24353 }
24354 if (obj5) {
24355 arg6 = (long)SWIG_As_long(obj5);
24356 if (PyErr_Occurred()) SWIG_fail;
24357 }
24358 if (obj6) {
24359 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
24360 SWIG_POINTER_EXCEPTION | 0)) == -1)
24361 SWIG_fail;
24362 if (arg7 == NULL) {
24363 PyErr_SetString(PyExc_TypeError,"null reference");
24364 SWIG_fail;
24365 }
24366 }
24367 if (obj7) {
24368 {
24369 arg8 = wxString_in_helper(obj7);
24370 if (arg8 == NULL) SWIG_fail;
24371 temp8 = true;
24372 }
24373 }
24374 {
24375 PyThreadState* __tstate = wxPyBeginAllowThreads();
24376 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
24377
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 {
24382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24383 }
24384 {
24385 if (temp8)
24386 delete arg8;
24387 }
24388 return resultobj;
24389 fail:
24390 {
24391 if (temp8)
24392 delete arg8;
24393 }
24394 return NULL;
24395 }
24396
24397
24398 static PyObject *_wrap_ListView_Select(PyObject *, PyObject *args, PyObject *kwargs) {
24399 PyObject *resultobj;
24400 wxListView *arg1 = (wxListView *) 0 ;
24401 long arg2 ;
24402 bool arg3 = (bool) true ;
24403 PyObject * obj0 = 0 ;
24404 PyObject * obj1 = 0 ;
24405 PyObject * obj2 = 0 ;
24406 char *kwnames[] = {
24407 (char *) "self",(char *) "n",(char *) "on", NULL
24408 };
24409
24410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail;
24411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24413 arg2 = (long)SWIG_As_long(obj1);
24414 if (PyErr_Occurred()) SWIG_fail;
24415 if (obj2) {
24416 arg3 = (bool)SWIG_As_bool(obj2);
24417 if (PyErr_Occurred()) SWIG_fail;
24418 }
24419 {
24420 PyThreadState* __tstate = wxPyBeginAllowThreads();
24421 (arg1)->Select(arg2,arg3);
24422
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 Py_INCREF(Py_None); resultobj = Py_None;
24427 return resultobj;
24428 fail:
24429 return NULL;
24430 }
24431
24432
24433 static PyObject *_wrap_ListView_Focus(PyObject *, PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj;
24435 wxListView *arg1 = (wxListView *) 0 ;
24436 long arg2 ;
24437 PyObject * obj0 = 0 ;
24438 PyObject * obj1 = 0 ;
24439 char *kwnames[] = {
24440 (char *) "self",(char *) "index", NULL
24441 };
24442
24443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail;
24444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24446 arg2 = (long)SWIG_As_long(obj1);
24447 if (PyErr_Occurred()) SWIG_fail;
24448 {
24449 PyThreadState* __tstate = wxPyBeginAllowThreads();
24450 (arg1)->Focus(arg2);
24451
24452 wxPyEndAllowThreads(__tstate);
24453 if (PyErr_Occurred()) SWIG_fail;
24454 }
24455 Py_INCREF(Py_None); resultobj = Py_None;
24456 return resultobj;
24457 fail:
24458 return NULL;
24459 }
24460
24461
24462 static PyObject *_wrap_ListView_GetFocusedItem(PyObject *, PyObject *args, PyObject *kwargs) {
24463 PyObject *resultobj;
24464 wxListView *arg1 = (wxListView *) 0 ;
24465 long result;
24466 PyObject * obj0 = 0 ;
24467 char *kwnames[] = {
24468 (char *) "self", NULL
24469 };
24470
24471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail;
24472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (long)((wxListView const *)arg1)->GetFocusedItem();
24477
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 resultobj = SWIG_From_long((long)result);
24482 return resultobj;
24483 fail:
24484 return NULL;
24485 }
24486
24487
24488 static PyObject *_wrap_ListView_GetNextSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj;
24490 wxListView *arg1 = (wxListView *) 0 ;
24491 long arg2 ;
24492 long result;
24493 PyObject * obj0 = 0 ;
24494 PyObject * obj1 = 0 ;
24495 char *kwnames[] = {
24496 (char *) "self",(char *) "item", NULL
24497 };
24498
24499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail;
24500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24502 arg2 = (long)SWIG_As_long(obj1);
24503 if (PyErr_Occurred()) SWIG_fail;
24504 {
24505 PyThreadState* __tstate = wxPyBeginAllowThreads();
24506 result = (long)((wxListView const *)arg1)->GetNextSelected(arg2);
24507
24508 wxPyEndAllowThreads(__tstate);
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 resultobj = SWIG_From_long((long)result);
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 static PyObject *_wrap_ListView_GetFirstSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24519 PyObject *resultobj;
24520 wxListView *arg1 = (wxListView *) 0 ;
24521 long result;
24522 PyObject * obj0 = 0 ;
24523 char *kwnames[] = {
24524 (char *) "self", NULL
24525 };
24526
24527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail;
24528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24530 {
24531 PyThreadState* __tstate = wxPyBeginAllowThreads();
24532 result = (long)((wxListView const *)arg1)->GetFirstSelected();
24533
24534 wxPyEndAllowThreads(__tstate);
24535 if (PyErr_Occurred()) SWIG_fail;
24536 }
24537 resultobj = SWIG_From_long((long)result);
24538 return resultobj;
24539 fail:
24540 return NULL;
24541 }
24542
24543
24544 static PyObject *_wrap_ListView_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
24545 PyObject *resultobj;
24546 wxListView *arg1 = (wxListView *) 0 ;
24547 long arg2 ;
24548 bool result;
24549 PyObject * obj0 = 0 ;
24550 PyObject * obj1 = 0 ;
24551 char *kwnames[] = {
24552 (char *) "self",(char *) "index", NULL
24553 };
24554
24555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail;
24556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24558 arg2 = (long)SWIG_As_long(obj1);
24559 if (PyErr_Occurred()) SWIG_fail;
24560 {
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (bool)(arg1)->IsSelected(arg2);
24563
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 {
24568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24569 }
24570 return resultobj;
24571 fail:
24572 return NULL;
24573 }
24574
24575
24576 static PyObject *_wrap_ListView_SetColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24577 PyObject *resultobj;
24578 wxListView *arg1 = (wxListView *) 0 ;
24579 int arg2 ;
24580 int arg3 ;
24581 PyObject * obj0 = 0 ;
24582 PyObject * obj1 = 0 ;
24583 PyObject * obj2 = 0 ;
24584 char *kwnames[] = {
24585 (char *) "self",(char *) "col",(char *) "image", NULL
24586 };
24587
24588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
24589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24591 arg2 = (int)SWIG_As_int(obj1);
24592 if (PyErr_Occurred()) SWIG_fail;
24593 arg3 = (int)SWIG_As_int(obj2);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 (arg1)->SetColumnImage(arg2,arg3);
24598
24599 wxPyEndAllowThreads(__tstate);
24600 if (PyErr_Occurred()) SWIG_fail;
24601 }
24602 Py_INCREF(Py_None); resultobj = Py_None;
24603 return resultobj;
24604 fail:
24605 return NULL;
24606 }
24607
24608
24609 static PyObject *_wrap_ListView_ClearColumnImage(PyObject *, PyObject *args, PyObject *kwargs) {
24610 PyObject *resultobj;
24611 wxListView *arg1 = (wxListView *) 0 ;
24612 int arg2 ;
24613 PyObject * obj0 = 0 ;
24614 PyObject * obj1 = 0 ;
24615 char *kwnames[] = {
24616 (char *) "self",(char *) "col", NULL
24617 };
24618
24619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail;
24620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView,
24621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24622 arg2 = (int)SWIG_As_int(obj1);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 {
24625 PyThreadState* __tstate = wxPyBeginAllowThreads();
24626 (arg1)->ClearColumnImage(arg2);
24627
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 Py_INCREF(Py_None); resultobj = Py_None;
24632 return resultobj;
24633 fail:
24634 return NULL;
24635 }
24636
24637
24638 static PyObject * ListView_swigregister(PyObject *, PyObject *args) {
24639 PyObject *obj;
24640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24641 SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj);
24642 Py_INCREF(obj);
24643 return Py_BuildValue((char *)"");
24644 }
24645 static int _wrap_TreeCtrlNameStr_set(PyObject *) {
24646 PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only.");
24647 return 1;
24648 }
24649
24650
24651 static PyObject *_wrap_TreeCtrlNameStr_get() {
24652 PyObject *pyobj;
24653
24654 {
24655 #if wxUSE_UNICODE
24656 pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24657 #else
24658 pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len());
24659 #endif
24660 }
24661 return pyobj;
24662 }
24663
24664
24665 static PyObject *_wrap_new_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24666 PyObject *resultobj;
24667 wxTreeItemId *result;
24668 char *kwnames[] = {
24669 NULL
24670 };
24671
24672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail;
24673 {
24674 PyThreadState* __tstate = wxPyBeginAllowThreads();
24675 result = (wxTreeItemId *)new wxTreeItemId();
24676
24677 wxPyEndAllowThreads(__tstate);
24678 if (PyErr_Occurred()) SWIG_fail;
24679 }
24680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1);
24681 return resultobj;
24682 fail:
24683 return NULL;
24684 }
24685
24686
24687 static PyObject *_wrap_delete_TreeItemId(PyObject *, PyObject *args, PyObject *kwargs) {
24688 PyObject *resultobj;
24689 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24690 PyObject * obj0 = 0 ;
24691 char *kwnames[] = {
24692 (char *) "self", NULL
24693 };
24694
24695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail;
24696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24698 {
24699 PyThreadState* __tstate = wxPyBeginAllowThreads();
24700 delete arg1;
24701
24702 wxPyEndAllowThreads(__tstate);
24703 if (PyErr_Occurred()) SWIG_fail;
24704 }
24705 Py_INCREF(Py_None); resultobj = Py_None;
24706 return resultobj;
24707 fail:
24708 return NULL;
24709 }
24710
24711
24712 static PyObject *_wrap_TreeItemId_IsOk(PyObject *, PyObject *args, PyObject *kwargs) {
24713 PyObject *resultobj;
24714 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24715 bool result;
24716 PyObject * obj0 = 0 ;
24717 char *kwnames[] = {
24718 (char *) "self", NULL
24719 };
24720
24721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail;
24722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 result = (bool)((wxTreeItemId const *)arg1)->IsOk();
24727
24728 wxPyEndAllowThreads(__tstate);
24729 if (PyErr_Occurred()) SWIG_fail;
24730 }
24731 {
24732 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24733 }
24734 return resultobj;
24735 fail:
24736 return NULL;
24737 }
24738
24739
24740 static PyObject *_wrap_TreeItemId___eq__(PyObject *, PyObject *args, PyObject *kwargs) {
24741 PyObject *resultobj;
24742 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24743 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24744 bool result;
24745 PyObject * obj0 = 0 ;
24746 PyObject * obj1 = 0 ;
24747 char *kwnames[] = {
24748 (char *) "self",(char *) "other", NULL
24749 };
24750
24751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail;
24752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24754 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2);
24759
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 {
24764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24765 }
24766 return resultobj;
24767 fail:
24768 return NULL;
24769 }
24770
24771
24772 static PyObject *_wrap_TreeItemId___ne__(PyObject *, PyObject *args, PyObject *kwargs) {
24773 PyObject *resultobj;
24774 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24775 wxTreeItemId *arg2 = (wxTreeItemId *) 0 ;
24776 bool result;
24777 PyObject * obj0 = 0 ;
24778 PyObject * obj1 = 0 ;
24779 char *kwnames[] = {
24780 (char *) "self",(char *) "other", NULL
24781 };
24782
24783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail;
24784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24786 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2);
24791
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 {
24796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24797 }
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *, PyObject *args, PyObject *kwargs) {
24805 PyObject *resultobj;
24806 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24807 void *arg2 = (void *) 0 ;
24808 PyObject * obj0 = 0 ;
24809 PyObject * obj1 = 0 ;
24810 char *kwnames[] = {
24811 (char *) "self",(char *) "m_pItem", NULL
24812 };
24813
24814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail;
24815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24817 if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
24818 if (arg1) (arg1)->m_pItem = arg2;
24819
24820 Py_INCREF(Py_None); resultobj = Py_None;
24821 return resultobj;
24822 fail:
24823 return NULL;
24824 }
24825
24826
24827 static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *, PyObject *args, PyObject *kwargs) {
24828 PyObject *resultobj;
24829 wxTreeItemId *arg1 = (wxTreeItemId *) 0 ;
24830 void *result;
24831 PyObject * obj0 = 0 ;
24832 char *kwnames[] = {
24833 (char *) "self", NULL
24834 };
24835
24836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail;
24837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId,
24838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24839 result = (void *) ((arg1)->m_pItem);
24840
24841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0);
24842 return resultobj;
24843 fail:
24844 return NULL;
24845 }
24846
24847
24848 static PyObject * TreeItemId_swigregister(PyObject *, PyObject *args) {
24849 PyObject *obj;
24850 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
24851 SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj);
24852 Py_INCREF(obj);
24853 return Py_BuildValue((char *)"");
24854 }
24855 static PyObject *_wrap_new_TreeItemData(PyObject *, PyObject *args, PyObject *kwargs) {
24856 PyObject *resultobj;
24857 PyObject *arg1 = (PyObject *) NULL ;
24858 wxPyTreeItemData *result;
24859 PyObject * obj0 = 0 ;
24860 char *kwnames[] = {
24861 (char *) "obj", NULL
24862 };
24863
24864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail;
24865 if (obj0) {
24866 arg1 = obj0;
24867 }
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1);
24871
24872 wxPyEndAllowThreads(__tstate);
24873 if (PyErr_Occurred()) SWIG_fail;
24874 }
24875 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1);
24876 return resultobj;
24877 fail:
24878 return NULL;
24879 }
24880
24881
24882 static PyObject *_wrap_TreeItemData_GetData(PyObject *, PyObject *args, PyObject *kwargs) {
24883 PyObject *resultobj;
24884 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24885 PyObject *result;
24886 PyObject * obj0 = 0 ;
24887 char *kwnames[] = {
24888 (char *) "self", NULL
24889 };
24890
24891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail;
24892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24894 {
24895 PyThreadState* __tstate = wxPyBeginAllowThreads();
24896 result = (PyObject *)(arg1)->GetData();
24897
24898 wxPyEndAllowThreads(__tstate);
24899 if (PyErr_Occurred()) SWIG_fail;
24900 }
24901 resultobj = result;
24902 return resultobj;
24903 fail:
24904 return NULL;
24905 }
24906
24907
24908 static PyObject *_wrap_TreeItemData_SetData(PyObject *, PyObject *args, PyObject *kwargs) {
24909 PyObject *resultobj;
24910 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24911 PyObject *arg2 = (PyObject *) 0 ;
24912 PyObject * obj0 = 0 ;
24913 PyObject * obj1 = 0 ;
24914 char *kwnames[] = {
24915 (char *) "self",(char *) "obj", NULL
24916 };
24917
24918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail;
24919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24921 arg2 = obj1;
24922 {
24923 PyThreadState* __tstate = wxPyBeginAllowThreads();
24924 (arg1)->SetData(arg2);
24925
24926 wxPyEndAllowThreads(__tstate);
24927 if (PyErr_Occurred()) SWIG_fail;
24928 }
24929 Py_INCREF(Py_None); resultobj = Py_None;
24930 return resultobj;
24931 fail:
24932 return NULL;
24933 }
24934
24935
24936 static PyObject *_wrap_TreeItemData_GetId(PyObject *, PyObject *args, PyObject *kwargs) {
24937 PyObject *resultobj;
24938 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24939 wxTreeItemId *result;
24940 PyObject * obj0 = 0 ;
24941 char *kwnames[] = {
24942 (char *) "self", NULL
24943 };
24944
24945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail;
24946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24948 {
24949 PyThreadState* __tstate = wxPyBeginAllowThreads();
24950 {
24951 wxTreeItemId const &_result_ref = (arg1)->GetId();
24952 result = (wxTreeItemId *) &_result_ref;
24953 }
24954
24955 wxPyEndAllowThreads(__tstate);
24956 if (PyErr_Occurred()) SWIG_fail;
24957 }
24958 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0);
24959 return resultobj;
24960 fail:
24961 return NULL;
24962 }
24963
24964
24965 static PyObject *_wrap_TreeItemData_SetId(PyObject *, PyObject *args, PyObject *kwargs) {
24966 PyObject *resultobj;
24967 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
24968 wxTreeItemId *arg2 = 0 ;
24969 PyObject * obj0 = 0 ;
24970 PyObject * obj1 = 0 ;
24971 char *kwnames[] = {
24972 (char *) "self",(char *) "id", NULL
24973 };
24974
24975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail;
24976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
24977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
24978 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
24979 SWIG_POINTER_EXCEPTION | 0)) == -1)
24980 SWIG_fail;
24981 if (arg2 == NULL) {
24982 PyErr_SetString(PyExc_TypeError,"null reference");
24983 SWIG_fail;
24984 }
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 (arg1)->SetId((wxTreeItemId const &)*arg2);
24988
24989 wxPyEndAllowThreads(__tstate);
24990 if (PyErr_Occurred()) SWIG_fail;
24991 }
24992 Py_INCREF(Py_None); resultobj = Py_None;
24993 return resultobj;
24994 fail:
24995 return NULL;
24996 }
24997
24998
24999 static PyObject *_wrap_TreeItemData_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
25000 PyObject *resultobj;
25001 wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ;
25002 PyObject * obj0 = 0 ;
25003 char *kwnames[] = {
25004 (char *) "self", NULL
25005 };
25006
25007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail;
25008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData,
25009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25010 {
25011 PyThreadState* __tstate = wxPyBeginAllowThreads();
25012 wxPyTreeItemData_Destroy(arg1);
25013
25014 wxPyEndAllowThreads(__tstate);
25015 if (PyErr_Occurred()) SWIG_fail;
25016 }
25017 Py_INCREF(Py_None); resultobj = Py_None;
25018 return resultobj;
25019 fail:
25020 return NULL;
25021 }
25022
25023
25024 static PyObject * TreeItemData_swigregister(PyObject *, PyObject *args) {
25025 PyObject *obj;
25026 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25027 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj);
25028 Py_INCREF(obj);
25029 return Py_BuildValue((char *)"");
25030 }
25031 static PyObject *_wrap_new_TreeEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25032 PyObject *resultobj;
25033 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
25034 int arg2 = (int) 0 ;
25035 wxTreeEvent *result;
25036 PyObject * obj0 = 0 ;
25037 PyObject * obj1 = 0 ;
25038 char *kwnames[] = {
25039 (char *) "commandType",(char *) "id", NULL
25040 };
25041
25042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail;
25043 if (obj0) {
25044 arg1 = (wxEventType)SWIG_As_int(obj0);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 if (obj1) {
25048 arg2 = (int)SWIG_As_int(obj1);
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 {
25052 PyThreadState* __tstate = wxPyBeginAllowThreads();
25053 result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2);
25054
25055 wxPyEndAllowThreads(__tstate);
25056 if (PyErr_Occurred()) SWIG_fail;
25057 }
25058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1);
25059 return resultobj;
25060 fail:
25061 return NULL;
25062 }
25063
25064
25065 static PyObject *_wrap_TreeEvent_GetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25066 PyObject *resultobj;
25067 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25068 wxTreeItemId result;
25069 PyObject * obj0 = 0 ;
25070 char *kwnames[] = {
25071 (char *) "self", NULL
25072 };
25073
25074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail;
25075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25077 {
25078 PyThreadState* __tstate = wxPyBeginAllowThreads();
25079 result = ((wxTreeEvent const *)arg1)->GetItem();
25080
25081 wxPyEndAllowThreads(__tstate);
25082 if (PyErr_Occurred()) SWIG_fail;
25083 }
25084 {
25085 wxTreeItemId * resultptr;
25086 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25087 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25088 }
25089 return resultobj;
25090 fail:
25091 return NULL;
25092 }
25093
25094
25095 static PyObject *_wrap_TreeEvent_SetItem(PyObject *, PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj;
25097 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25098 wxTreeItemId *arg2 = 0 ;
25099 PyObject * obj0 = 0 ;
25100 PyObject * obj1 = 0 ;
25101 char *kwnames[] = {
25102 (char *) "self",(char *) "item", NULL
25103 };
25104
25105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail;
25106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25108 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25109 SWIG_POINTER_EXCEPTION | 0)) == -1)
25110 SWIG_fail;
25111 if (arg2 == NULL) {
25112 PyErr_SetString(PyExc_TypeError,"null reference");
25113 SWIG_fail;
25114 }
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 (arg1)->SetItem((wxTreeItemId const &)*arg2);
25118
25119 wxPyEndAllowThreads(__tstate);
25120 if (PyErr_Occurred()) SWIG_fail;
25121 }
25122 Py_INCREF(Py_None); resultobj = Py_None;
25123 return resultobj;
25124 fail:
25125 return NULL;
25126 }
25127
25128
25129 static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25130 PyObject *resultobj;
25131 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25132 wxTreeItemId result;
25133 PyObject * obj0 = 0 ;
25134 char *kwnames[] = {
25135 (char *) "self", NULL
25136 };
25137
25138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail;
25139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25141 {
25142 PyThreadState* __tstate = wxPyBeginAllowThreads();
25143 result = ((wxTreeEvent const *)arg1)->GetOldItem();
25144
25145 wxPyEndAllowThreads(__tstate);
25146 if (PyErr_Occurred()) SWIG_fail;
25147 }
25148 {
25149 wxTreeItemId * resultptr;
25150 resultptr = new wxTreeItemId((wxTreeItemId &) result);
25151 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
25152 }
25153 return resultobj;
25154 fail:
25155 return NULL;
25156 }
25157
25158
25159 static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *, PyObject *args, PyObject *kwargs) {
25160 PyObject *resultobj;
25161 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25162 wxTreeItemId *arg2 = 0 ;
25163 PyObject * obj0 = 0 ;
25164 PyObject * obj1 = 0 ;
25165 char *kwnames[] = {
25166 (char *) "self",(char *) "item", NULL
25167 };
25168
25169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail;
25170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25172 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
25173 SWIG_POINTER_EXCEPTION | 0)) == -1)
25174 SWIG_fail;
25175 if (arg2 == NULL) {
25176 PyErr_SetString(PyExc_TypeError,"null reference");
25177 SWIG_fail;
25178 }
25179 {
25180 PyThreadState* __tstate = wxPyBeginAllowThreads();
25181 (arg1)->SetOldItem((wxTreeItemId const &)*arg2);
25182
25183 wxPyEndAllowThreads(__tstate);
25184 if (PyErr_Occurred()) SWIG_fail;
25185 }
25186 Py_INCREF(Py_None); resultobj = Py_None;
25187 return resultobj;
25188 fail:
25189 return NULL;
25190 }
25191
25192
25193 static PyObject *_wrap_TreeEvent_GetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25194 PyObject *resultobj;
25195 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25196 wxPoint result;
25197 PyObject * obj0 = 0 ;
25198 char *kwnames[] = {
25199 (char *) "self", NULL
25200 };
25201
25202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail;
25203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25205 {
25206 PyThreadState* __tstate = wxPyBeginAllowThreads();
25207 result = ((wxTreeEvent const *)arg1)->GetPoint();
25208
25209 wxPyEndAllowThreads(__tstate);
25210 if (PyErr_Occurred()) SWIG_fail;
25211 }
25212 {
25213 wxPoint * resultptr;
25214 resultptr = new wxPoint((wxPoint &) result);
25215 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
25216 }
25217 return resultobj;
25218 fail:
25219 return NULL;
25220 }
25221
25222
25223 static PyObject *_wrap_TreeEvent_SetPoint(PyObject *, PyObject *args, PyObject *kwargs) {
25224 PyObject *resultobj;
25225 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25226 wxPoint *arg2 = 0 ;
25227 wxPoint temp2 ;
25228 PyObject * obj0 = 0 ;
25229 PyObject * obj1 = 0 ;
25230 char *kwnames[] = {
25231 (char *) "self",(char *) "pt", NULL
25232 };
25233
25234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail;
25235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25237 {
25238 arg2 = &temp2;
25239 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
25240 }
25241 {
25242 PyThreadState* __tstate = wxPyBeginAllowThreads();
25243 (arg1)->SetPoint((wxPoint const &)*arg2);
25244
25245 wxPyEndAllowThreads(__tstate);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 Py_INCREF(Py_None); resultobj = Py_None;
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj;
25257 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25258 wxKeyEvent *result;
25259 PyObject * obj0 = 0 ;
25260 char *kwnames[] = {
25261 (char *) "self", NULL
25262 };
25263
25264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail;
25265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25267 {
25268 PyThreadState* __tstate = wxPyBeginAllowThreads();
25269 {
25270 wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent();
25271 result = (wxKeyEvent *) &_result_ref;
25272 }
25273
25274 wxPyEndAllowThreads(__tstate);
25275 if (PyErr_Occurred()) SWIG_fail;
25276 }
25277 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0);
25278 return resultobj;
25279 fail:
25280 return NULL;
25281 }
25282
25283
25284 static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *, PyObject *args, PyObject *kwargs) {
25285 PyObject *resultobj;
25286 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25287 int result;
25288 PyObject * obj0 = 0 ;
25289 char *kwnames[] = {
25290 (char *) "self", NULL
25291 };
25292
25293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail;
25294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25296 {
25297 PyThreadState* __tstate = wxPyBeginAllowThreads();
25298 result = (int)((wxTreeEvent const *)arg1)->GetKeyCode();
25299
25300 wxPyEndAllowThreads(__tstate);
25301 if (PyErr_Occurred()) SWIG_fail;
25302 }
25303 resultobj = SWIG_From_int((int)result);
25304 return resultobj;
25305 fail:
25306 return NULL;
25307 }
25308
25309
25310 static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *, PyObject *args, PyObject *kwargs) {
25311 PyObject *resultobj;
25312 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25313 wxKeyEvent *arg2 = 0 ;
25314 PyObject * obj0 = 0 ;
25315 PyObject * obj1 = 0 ;
25316 char *kwnames[] = {
25317 (char *) "self",(char *) "evt", NULL
25318 };
25319
25320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail;
25321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25323 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent,
25324 SWIG_POINTER_EXCEPTION | 0)) == -1)
25325 SWIG_fail;
25326 if (arg2 == NULL) {
25327 PyErr_SetString(PyExc_TypeError,"null reference");
25328 SWIG_fail;
25329 }
25330 {
25331 PyThreadState* __tstate = wxPyBeginAllowThreads();
25332 (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2);
25333
25334 wxPyEndAllowThreads(__tstate);
25335 if (PyErr_Occurred()) SWIG_fail;
25336 }
25337 Py_INCREF(Py_None); resultobj = Py_None;
25338 return resultobj;
25339 fail:
25340 return NULL;
25341 }
25342
25343
25344 static PyObject *_wrap_TreeEvent_GetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25345 PyObject *resultobj;
25346 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25347 wxString *result;
25348 PyObject * obj0 = 0 ;
25349 char *kwnames[] = {
25350 (char *) "self", NULL
25351 };
25352
25353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail;
25354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25356 {
25357 PyThreadState* __tstate = wxPyBeginAllowThreads();
25358 {
25359 wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel();
25360 result = (wxString *) &_result_ref;
25361 }
25362
25363 wxPyEndAllowThreads(__tstate);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 {
25367 #if wxUSE_UNICODE
25368 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25369 #else
25370 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25371 #endif
25372 }
25373 return resultobj;
25374 fail:
25375 return NULL;
25376 }
25377
25378
25379 static PyObject *_wrap_TreeEvent_SetLabel(PyObject *, PyObject *args, PyObject *kwargs) {
25380 PyObject *resultobj;
25381 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25382 wxString *arg2 = 0 ;
25383 bool temp2 = false ;
25384 PyObject * obj0 = 0 ;
25385 PyObject * obj1 = 0 ;
25386 char *kwnames[] = {
25387 (char *) "self",(char *) "label", NULL
25388 };
25389
25390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail;
25391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25393 {
25394 arg2 = wxString_in_helper(obj1);
25395 if (arg2 == NULL) SWIG_fail;
25396 temp2 = true;
25397 }
25398 {
25399 PyThreadState* __tstate = wxPyBeginAllowThreads();
25400 (arg1)->SetLabel((wxString const &)*arg2);
25401
25402 wxPyEndAllowThreads(__tstate);
25403 if (PyErr_Occurred()) SWIG_fail;
25404 }
25405 Py_INCREF(Py_None); resultobj = Py_None;
25406 {
25407 if (temp2)
25408 delete arg2;
25409 }
25410 return resultobj;
25411 fail:
25412 {
25413 if (temp2)
25414 delete arg2;
25415 }
25416 return NULL;
25417 }
25418
25419
25420 static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *, PyObject *args, PyObject *kwargs) {
25421 PyObject *resultobj;
25422 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25423 bool result;
25424 PyObject * obj0 = 0 ;
25425 char *kwnames[] = {
25426 (char *) "self", NULL
25427 };
25428
25429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail;
25430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25432 {
25433 PyThreadState* __tstate = wxPyBeginAllowThreads();
25434 result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled();
25435
25436 wxPyEndAllowThreads(__tstate);
25437 if (PyErr_Occurred()) SWIG_fail;
25438 }
25439 {
25440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25441 }
25442 return resultobj;
25443 fail:
25444 return NULL;
25445 }
25446
25447
25448 static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *, PyObject *args, PyObject *kwargs) {
25449 PyObject *resultobj;
25450 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25451 bool arg2 ;
25452 PyObject * obj0 = 0 ;
25453 PyObject * obj1 = 0 ;
25454 char *kwnames[] = {
25455 (char *) "self",(char *) "editCancelled", NULL
25456 };
25457
25458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail;
25459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25461 arg2 = (bool)SWIG_As_bool(obj1);
25462 if (PyErr_Occurred()) SWIG_fail;
25463 {
25464 PyThreadState* __tstate = wxPyBeginAllowThreads();
25465 (arg1)->SetEditCanceled(arg2);
25466
25467 wxPyEndAllowThreads(__tstate);
25468 if (PyErr_Occurred()) SWIG_fail;
25469 }
25470 Py_INCREF(Py_None); resultobj = Py_None;
25471 return resultobj;
25472 fail:
25473 return NULL;
25474 }
25475
25476
25477 static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *, PyObject *args, PyObject *kwargs) {
25478 PyObject *resultobj;
25479 wxTreeEvent *arg1 = (wxTreeEvent *) 0 ;
25480 wxString *arg2 = 0 ;
25481 bool temp2 = false ;
25482 PyObject * obj0 = 0 ;
25483 PyObject * obj1 = 0 ;
25484 char *kwnames[] = {
25485 (char *) "self",(char *) "toolTip", NULL
25486 };
25487
25488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail;
25489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent,
25490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25491 {
25492 arg2 = wxString_in_helper(obj1);
25493 if (arg2 == NULL) SWIG_fail;
25494 temp2 = true;
25495 }
25496 {
25497 PyThreadState* __tstate = wxPyBeginAllowThreads();
25498 (arg1)->SetToolTip((wxString const &)*arg2);
25499
25500 wxPyEndAllowThreads(__tstate);
25501 if (PyErr_Occurred()) SWIG_fail;
25502 }
25503 Py_INCREF(Py_None); resultobj = Py_None;
25504 {
25505 if (temp2)
25506 delete arg2;
25507 }
25508 return resultobj;
25509 fail:
25510 {
25511 if (temp2)
25512 delete arg2;
25513 }
25514 return NULL;
25515 }
25516
25517
25518 static PyObject * TreeEvent_swigregister(PyObject *, PyObject *args) {
25519 PyObject *obj;
25520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
25521 SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj);
25522 Py_INCREF(obj);
25523 return Py_BuildValue((char *)"");
25524 }
25525 static PyObject *_wrap_new_TreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25526 PyObject *resultobj;
25527 wxWindow *arg1 = (wxWindow *) 0 ;
25528 int arg2 = (int) -1 ;
25529 wxPoint const &arg3_defvalue = wxDefaultPosition ;
25530 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
25531 wxSize const &arg4_defvalue = wxDefaultSize ;
25532 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
25533 long arg5 = (long) wxTR_DEFAULT_STYLE ;
25534 wxValidator const &arg6_defvalue = wxDefaultValidator ;
25535 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
25536 wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ;
25537 wxString *arg7 = (wxString *) &arg7_defvalue ;
25538 wxPyTreeCtrl *result;
25539 wxPoint temp3 ;
25540 wxSize temp4 ;
25541 bool temp7 = false ;
25542 PyObject * obj0 = 0 ;
25543 PyObject * obj1 = 0 ;
25544 PyObject * obj2 = 0 ;
25545 PyObject * obj3 = 0 ;
25546 PyObject * obj4 = 0 ;
25547 PyObject * obj5 = 0 ;
25548 PyObject * obj6 = 0 ;
25549 char *kwnames[] = {
25550 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25551 };
25552
25553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
25554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
25555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25556 if (obj1) {
25557 arg2 = (int)SWIG_As_int(obj1);
25558 if (PyErr_Occurred()) SWIG_fail;
25559 }
25560 if (obj2) {
25561 {
25562 arg3 = &temp3;
25563 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
25564 }
25565 }
25566 if (obj3) {
25567 {
25568 arg4 = &temp4;
25569 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25570 }
25571 }
25572 if (obj4) {
25573 arg5 = (long)SWIG_As_long(obj4);
25574 if (PyErr_Occurred()) SWIG_fail;
25575 }
25576 if (obj5) {
25577 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
25578 SWIG_POINTER_EXCEPTION | 0)) == -1)
25579 SWIG_fail;
25580 if (arg6 == NULL) {
25581 PyErr_SetString(PyExc_TypeError,"null reference");
25582 SWIG_fail;
25583 }
25584 }
25585 if (obj6) {
25586 {
25587 arg7 = wxString_in_helper(obj6);
25588 if (arg7 == NULL) SWIG_fail;
25589 temp7 = true;
25590 }
25591 }
25592 {
25593 if (!wxPyCheckForApp()) SWIG_fail;
25594 PyThreadState* __tstate = wxPyBeginAllowThreads();
25595 result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
25596
25597 wxPyEndAllowThreads(__tstate);
25598 if (PyErr_Occurred()) SWIG_fail;
25599 }
25600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25601 {
25602 if (temp7)
25603 delete arg7;
25604 }
25605 return resultobj;
25606 fail:
25607 {
25608 if (temp7)
25609 delete arg7;
25610 }
25611 return NULL;
25612 }
25613
25614
25615 static PyObject *_wrap_new_PreTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
25616 PyObject *resultobj;
25617 wxPyTreeCtrl *result;
25618 char *kwnames[] = {
25619 NULL
25620 };
25621
25622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail;
25623 {
25624 if (!wxPyCheckForApp()) SWIG_fail;
25625 PyThreadState* __tstate = wxPyBeginAllowThreads();
25626 result = (wxPyTreeCtrl *)new wxPyTreeCtrl();
25627
25628 wxPyEndAllowThreads(__tstate);
25629 if (PyErr_Occurred()) SWIG_fail;
25630 }
25631 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1);
25632 return resultobj;
25633 fail:
25634 return NULL;
25635 }
25636
25637
25638 static PyObject *_wrap_TreeCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
25639 PyObject *resultobj;
25640 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25641 wxWindow *arg2 = (wxWindow *) 0 ;
25642 int arg3 = (int) -1 ;
25643 wxPoint const &arg4_defvalue = wxDefaultPosition ;
25644 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
25645 wxSize const &arg5_defvalue = wxDefaultSize ;
25646 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
25647 long arg6 = (long) wxTR_DEFAULT_STYLE ;
25648 wxValidator const &arg7_defvalue = wxDefaultValidator ;
25649 wxValidator *arg7 = (wxValidator *) &arg7_defvalue ;
25650 wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ;
25651 wxString *arg8 = (wxString *) &arg8_defvalue ;
25652 bool result;
25653 wxPoint temp4 ;
25654 wxSize temp5 ;
25655 bool temp8 = false ;
25656 PyObject * obj0 = 0 ;
25657 PyObject * obj1 = 0 ;
25658 PyObject * obj2 = 0 ;
25659 PyObject * obj3 = 0 ;
25660 PyObject * obj4 = 0 ;
25661 PyObject * obj5 = 0 ;
25662 PyObject * obj6 = 0 ;
25663 PyObject * obj7 = 0 ;
25664 char *kwnames[] = {
25665 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
25666 };
25667
25668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
25669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
25672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25673 if (obj2) {
25674 arg3 = (int)SWIG_As_int(obj2);
25675 if (PyErr_Occurred()) SWIG_fail;
25676 }
25677 if (obj3) {
25678 {
25679 arg4 = &temp4;
25680 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
25681 }
25682 }
25683 if (obj4) {
25684 {
25685 arg5 = &temp5;
25686 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
25687 }
25688 }
25689 if (obj5) {
25690 arg6 = (long)SWIG_As_long(obj5);
25691 if (PyErr_Occurred()) SWIG_fail;
25692 }
25693 if (obj6) {
25694 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator,
25695 SWIG_POINTER_EXCEPTION | 0)) == -1)
25696 SWIG_fail;
25697 if (arg7 == NULL) {
25698 PyErr_SetString(PyExc_TypeError,"null reference");
25699 SWIG_fail;
25700 }
25701 }
25702 if (obj7) {
25703 {
25704 arg8 = wxString_in_helper(obj7);
25705 if (arg8 == NULL) SWIG_fail;
25706 temp8 = true;
25707 }
25708 }
25709 {
25710 PyThreadState* __tstate = wxPyBeginAllowThreads();
25711 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8);
25712
25713 wxPyEndAllowThreads(__tstate);
25714 if (PyErr_Occurred()) SWIG_fail;
25715 }
25716 {
25717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
25718 }
25719 {
25720 if (temp8)
25721 delete arg8;
25722 }
25723 return resultobj;
25724 fail:
25725 {
25726 if (temp8)
25727 delete arg8;
25728 }
25729 return NULL;
25730 }
25731
25732
25733 static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
25734 PyObject *resultobj;
25735 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25736 PyObject *arg2 = (PyObject *) 0 ;
25737 PyObject *arg3 = (PyObject *) 0 ;
25738 PyObject * obj0 = 0 ;
25739 PyObject * obj1 = 0 ;
25740 PyObject * obj2 = 0 ;
25741 char *kwnames[] = {
25742 (char *) "self",(char *) "self",(char *) "_class", NULL
25743 };
25744
25745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
25746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25748 arg2 = obj1;
25749 arg3 = obj2;
25750 {
25751 PyThreadState* __tstate = wxPyBeginAllowThreads();
25752 (arg1)->_setCallbackInfo(arg2,arg3);
25753
25754 wxPyEndAllowThreads(__tstate);
25755 if (PyErr_Occurred()) SWIG_fail;
25756 }
25757 Py_INCREF(Py_None); resultobj = Py_None;
25758 return resultobj;
25759 fail:
25760 return NULL;
25761 }
25762
25763
25764 static PyObject *_wrap_TreeCtrl_GetCount(PyObject *, PyObject *args, PyObject *kwargs) {
25765 PyObject *resultobj;
25766 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25767 size_t result;
25768 PyObject * obj0 = 0 ;
25769 char *kwnames[] = {
25770 (char *) "self", NULL
25771 };
25772
25773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail;
25774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25776 {
25777 PyThreadState* __tstate = wxPyBeginAllowThreads();
25778 result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount();
25779
25780 wxPyEndAllowThreads(__tstate);
25781 if (PyErr_Occurred()) SWIG_fail;
25782 }
25783 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
25784 return resultobj;
25785 fail:
25786 return NULL;
25787 }
25788
25789
25790 static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25791 PyObject *resultobj;
25792 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25793 unsigned int result;
25794 PyObject * obj0 = 0 ;
25795 char *kwnames[] = {
25796 (char *) "self", NULL
25797 };
25798
25799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail;
25800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25802 {
25803 PyThreadState* __tstate = wxPyBeginAllowThreads();
25804 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent();
25805
25806 wxPyEndAllowThreads(__tstate);
25807 if (PyErr_Occurred()) SWIG_fail;
25808 }
25809 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25810 return resultobj;
25811 fail:
25812 return NULL;
25813 }
25814
25815
25816 static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *, PyObject *args, PyObject *kwargs) {
25817 PyObject *resultobj;
25818 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25819 unsigned int arg2 ;
25820 PyObject * obj0 = 0 ;
25821 PyObject * obj1 = 0 ;
25822 char *kwnames[] = {
25823 (char *) "self",(char *) "indent", NULL
25824 };
25825
25826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail;
25827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25829 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25830 if (PyErr_Occurred()) SWIG_fail;
25831 {
25832 PyThreadState* __tstate = wxPyBeginAllowThreads();
25833 (arg1)->SetIndent(arg2);
25834
25835 wxPyEndAllowThreads(__tstate);
25836 if (PyErr_Occurred()) SWIG_fail;
25837 }
25838 Py_INCREF(Py_None); resultobj = Py_None;
25839 return resultobj;
25840 fail:
25841 return NULL;
25842 }
25843
25844
25845 static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25846 PyObject *resultobj;
25847 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25848 unsigned int result;
25849 PyObject * obj0 = 0 ;
25850 char *kwnames[] = {
25851 (char *) "self", NULL
25852 };
25853
25854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail;
25855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25857 {
25858 PyThreadState* __tstate = wxPyBeginAllowThreads();
25859 result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing();
25860
25861 wxPyEndAllowThreads(__tstate);
25862 if (PyErr_Occurred()) SWIG_fail;
25863 }
25864 resultobj = SWIG_From_unsigned_SS_int((unsigned int)result);
25865 return resultobj;
25866 fail:
25867 return NULL;
25868 }
25869
25870
25871 static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *, PyObject *args, PyObject *kwargs) {
25872 PyObject *resultobj;
25873 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25874 unsigned int arg2 ;
25875 PyObject * obj0 = 0 ;
25876 PyObject * obj1 = 0 ;
25877 char *kwnames[] = {
25878 (char *) "self",(char *) "spacing", NULL
25879 };
25880
25881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail;
25882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25884 arg2 = (unsigned int)SWIG_As_unsigned_SS_int(obj1);
25885 if (PyErr_Occurred()) SWIG_fail;
25886 {
25887 PyThreadState* __tstate = wxPyBeginAllowThreads();
25888 (arg1)->SetSpacing(arg2);
25889
25890 wxPyEndAllowThreads(__tstate);
25891 if (PyErr_Occurred()) SWIG_fail;
25892 }
25893 Py_INCREF(Py_None); resultobj = Py_None;
25894 return resultobj;
25895 fail:
25896 return NULL;
25897 }
25898
25899
25900 static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25901 PyObject *resultobj;
25902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25903 wxImageList *result;
25904 PyObject * obj0 = 0 ;
25905 char *kwnames[] = {
25906 (char *) "self", NULL
25907 };
25908
25909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail;
25910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25912 {
25913 PyThreadState* __tstate = wxPyBeginAllowThreads();
25914 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList();
25915
25916 wxPyEndAllowThreads(__tstate);
25917 if (PyErr_Occurred()) SWIG_fail;
25918 }
25919 {
25920 resultobj = wxPyMake_wxObject(result, 0);
25921 }
25922 return resultobj;
25923 fail:
25924 return NULL;
25925 }
25926
25927
25928 static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25929 PyObject *resultobj;
25930 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25931 wxImageList *result;
25932 PyObject * obj0 = 0 ;
25933 char *kwnames[] = {
25934 (char *) "self", NULL
25935 };
25936
25937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail;
25938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25940 {
25941 PyThreadState* __tstate = wxPyBeginAllowThreads();
25942 result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList();
25943
25944 wxPyEndAllowThreads(__tstate);
25945 if (PyErr_Occurred()) SWIG_fail;
25946 }
25947 {
25948 resultobj = wxPyMake_wxObject(result, 0);
25949 }
25950 return resultobj;
25951 fail:
25952 return NULL;
25953 }
25954
25955
25956 static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25957 PyObject *resultobj;
25958 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25959 wxImageList *arg2 = (wxImageList *) 0 ;
25960 PyObject * obj0 = 0 ;
25961 PyObject * obj1 = 0 ;
25962 char *kwnames[] = {
25963 (char *) "self",(char *) "imageList", NULL
25964 };
25965
25966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail;
25967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25969 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25971 {
25972 PyThreadState* __tstate = wxPyBeginAllowThreads();
25973 (arg1)->SetImageList(arg2);
25974
25975 wxPyEndAllowThreads(__tstate);
25976 if (PyErr_Occurred()) SWIG_fail;
25977 }
25978 Py_INCREF(Py_None); resultobj = Py_None;
25979 return resultobj;
25980 fail:
25981 return NULL;
25982 }
25983
25984
25985 static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
25986 PyObject *resultobj;
25987 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
25988 wxImageList *arg2 = (wxImageList *) 0 ;
25989 PyObject * obj0 = 0 ;
25990 PyObject * obj1 = 0 ;
25991 char *kwnames[] = {
25992 (char *) "self",(char *) "imageList", NULL
25993 };
25994
25995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail;
25996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
25997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
25998 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
25999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26000 {
26001 PyThreadState* __tstate = wxPyBeginAllowThreads();
26002 (arg1)->SetStateImageList(arg2);
26003
26004 wxPyEndAllowThreads(__tstate);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 Py_INCREF(Py_None); resultobj = Py_None;
26008 return resultobj;
26009 fail:
26010 return NULL;
26011 }
26012
26013
26014 static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26015 PyObject *resultobj;
26016 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26017 wxImageList *arg2 = (wxImageList *) 0 ;
26018 PyObject * obj0 = 0 ;
26019 PyObject * obj1 = 0 ;
26020 char *kwnames[] = {
26021 (char *) "self",(char *) "imageList", NULL
26022 };
26023
26024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail;
26025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26027 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26028 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26029 {
26030 PyThreadState* __tstate = wxPyBeginAllowThreads();
26031 (arg1)->AssignImageList(arg2);
26032
26033 wxPyEndAllowThreads(__tstate);
26034 if (PyErr_Occurred()) SWIG_fail;
26035 }
26036 Py_INCREF(Py_None); resultobj = Py_None;
26037 return resultobj;
26038 fail:
26039 return NULL;
26040 }
26041
26042
26043 static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *, PyObject *args, PyObject *kwargs) {
26044 PyObject *resultobj;
26045 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26046 wxImageList *arg2 = (wxImageList *) 0 ;
26047 PyObject * obj0 = 0 ;
26048 PyObject * obj1 = 0 ;
26049 char *kwnames[] = {
26050 (char *) "self",(char *) "imageList", NULL
26051 };
26052
26053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail;
26054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26056 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList,
26057 SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail;
26058 {
26059 PyThreadState* __tstate = wxPyBeginAllowThreads();
26060 (arg1)->AssignStateImageList(arg2);
26061
26062 wxPyEndAllowThreads(__tstate);
26063 if (PyErr_Occurred()) SWIG_fail;
26064 }
26065 Py_INCREF(Py_None); resultobj = Py_None;
26066 return resultobj;
26067 fail:
26068 return NULL;
26069 }
26070
26071
26072 static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26073 PyObject *resultobj;
26074 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26075 wxTreeItemId *arg2 = 0 ;
26076 wxString result;
26077 PyObject * obj0 = 0 ;
26078 PyObject * obj1 = 0 ;
26079 char *kwnames[] = {
26080 (char *) "self",(char *) "item", NULL
26081 };
26082
26083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail;
26084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26086 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26087 SWIG_POINTER_EXCEPTION | 0)) == -1)
26088 SWIG_fail;
26089 if (arg2 == NULL) {
26090 PyErr_SetString(PyExc_TypeError,"null reference");
26091 SWIG_fail;
26092 }
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2);
26096
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 {
26101 #if wxUSE_UNICODE
26102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
26103 #else
26104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
26105 #endif
26106 }
26107 return resultobj;
26108 fail:
26109 return NULL;
26110 }
26111
26112
26113 static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26114 PyObject *resultobj;
26115 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26116 wxTreeItemId *arg2 = 0 ;
26117 int arg3 = (int) wxTreeItemIcon_Normal ;
26118 int result;
26119 PyObject * obj0 = 0 ;
26120 PyObject * obj1 = 0 ;
26121 PyObject * obj2 = 0 ;
26122 char *kwnames[] = {
26123 (char *) "self",(char *) "item",(char *) "which", NULL
26124 };
26125
26126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
26127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26129 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26130 SWIG_POINTER_EXCEPTION | 0)) == -1)
26131 SWIG_fail;
26132 if (arg2 == NULL) {
26133 PyErr_SetString(PyExc_TypeError,"null reference");
26134 SWIG_fail;
26135 }
26136 if (obj2) {
26137 arg3 = (int)SWIG_As_int(obj2);
26138 if (PyErr_Occurred()) SWIG_fail;
26139 }
26140 {
26141 PyThreadState* __tstate = wxPyBeginAllowThreads();
26142 result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3);
26143
26144 wxPyEndAllowThreads(__tstate);
26145 if (PyErr_Occurred()) SWIG_fail;
26146 }
26147 resultobj = SWIG_From_int((int)result);
26148 return resultobj;
26149 fail:
26150 return NULL;
26151 }
26152
26153
26154 static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26155 PyObject *resultobj;
26156 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26157 wxTreeItemId *arg2 = 0 ;
26158 wxPyTreeItemData *result;
26159 PyObject * obj0 = 0 ;
26160 PyObject * obj1 = 0 ;
26161 char *kwnames[] = {
26162 (char *) "self",(char *) "item", NULL
26163 };
26164
26165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail;
26166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26168 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26169 SWIG_POINTER_EXCEPTION | 0)) == -1)
26170 SWIG_fail;
26171 if (arg2 == NULL) {
26172 PyErr_SetString(PyExc_TypeError,"null reference");
26173 SWIG_fail;
26174 }
26175 {
26176 PyThreadState* __tstate = wxPyBeginAllowThreads();
26177 result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2);
26178
26179 wxPyEndAllowThreads(__tstate);
26180 if (PyErr_Occurred()) SWIG_fail;
26181 }
26182 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0);
26183 return resultobj;
26184 fail:
26185 return NULL;
26186 }
26187
26188
26189 static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26190 PyObject *resultobj;
26191 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26192 wxTreeItemId *arg2 = 0 ;
26193 PyObject *result;
26194 PyObject * obj0 = 0 ;
26195 PyObject * obj1 = 0 ;
26196 char *kwnames[] = {
26197 (char *) "self",(char *) "item", NULL
26198 };
26199
26200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail;
26201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26203 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26204 SWIG_POINTER_EXCEPTION | 0)) == -1)
26205 SWIG_fail;
26206 if (arg2 == NULL) {
26207 PyErr_SetString(PyExc_TypeError,"null reference");
26208 SWIG_fail;
26209 }
26210 {
26211 PyThreadState* __tstate = wxPyBeginAllowThreads();
26212 result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2);
26213
26214 wxPyEndAllowThreads(__tstate);
26215 if (PyErr_Occurred()) SWIG_fail;
26216 }
26217 resultobj = result;
26218 return resultobj;
26219 fail:
26220 return NULL;
26221 }
26222
26223
26224 static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26225 PyObject *resultobj;
26226 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26227 wxTreeItemId *arg2 = 0 ;
26228 wxColour result;
26229 PyObject * obj0 = 0 ;
26230 PyObject * obj1 = 0 ;
26231 char *kwnames[] = {
26232 (char *) "self",(char *) "item", NULL
26233 };
26234
26235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail;
26236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26239 SWIG_POINTER_EXCEPTION | 0)) == -1)
26240 SWIG_fail;
26241 if (arg2 == NULL) {
26242 PyErr_SetString(PyExc_TypeError,"null reference");
26243 SWIG_fail;
26244 }
26245 {
26246 PyThreadState* __tstate = wxPyBeginAllowThreads();
26247 result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2);
26248
26249 wxPyEndAllowThreads(__tstate);
26250 if (PyErr_Occurred()) SWIG_fail;
26251 }
26252 {
26253 wxColour * resultptr;
26254 resultptr = new wxColour((wxColour &) result);
26255 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26256 }
26257 return resultobj;
26258 fail:
26259 return NULL;
26260 }
26261
26262
26263 static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26264 PyObject *resultobj;
26265 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26266 wxTreeItemId *arg2 = 0 ;
26267 wxColour result;
26268 PyObject * obj0 = 0 ;
26269 PyObject * obj1 = 0 ;
26270 char *kwnames[] = {
26271 (char *) "self",(char *) "item", NULL
26272 };
26273
26274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail;
26275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26277 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26278 SWIG_POINTER_EXCEPTION | 0)) == -1)
26279 SWIG_fail;
26280 if (arg2 == NULL) {
26281 PyErr_SetString(PyExc_TypeError,"null reference");
26282 SWIG_fail;
26283 }
26284 {
26285 PyThreadState* __tstate = wxPyBeginAllowThreads();
26286 result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2);
26287
26288 wxPyEndAllowThreads(__tstate);
26289 if (PyErr_Occurred()) SWIG_fail;
26290 }
26291 {
26292 wxColour * resultptr;
26293 resultptr = new wxColour((wxColour &) result);
26294 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
26295 }
26296 return resultobj;
26297 fail:
26298 return NULL;
26299 }
26300
26301
26302 static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26303 PyObject *resultobj;
26304 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26305 wxTreeItemId *arg2 = 0 ;
26306 wxFont result;
26307 PyObject * obj0 = 0 ;
26308 PyObject * obj1 = 0 ;
26309 char *kwnames[] = {
26310 (char *) "self",(char *) "item", NULL
26311 };
26312
26313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail;
26314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26316 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26317 SWIG_POINTER_EXCEPTION | 0)) == -1)
26318 SWIG_fail;
26319 if (arg2 == NULL) {
26320 PyErr_SetString(PyExc_TypeError,"null reference");
26321 SWIG_fail;
26322 }
26323 {
26324 PyThreadState* __tstate = wxPyBeginAllowThreads();
26325 result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2);
26326
26327 wxPyEndAllowThreads(__tstate);
26328 if (PyErr_Occurred()) SWIG_fail;
26329 }
26330 {
26331 wxFont * resultptr;
26332 resultptr = new wxFont((wxFont &) result);
26333 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1);
26334 }
26335 return resultobj;
26336 fail:
26337 return NULL;
26338 }
26339
26340
26341 static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *, PyObject *args, PyObject *kwargs) {
26342 PyObject *resultobj;
26343 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26344 wxTreeItemId *arg2 = 0 ;
26345 wxString *arg3 = 0 ;
26346 bool temp3 = false ;
26347 PyObject * obj0 = 0 ;
26348 PyObject * obj1 = 0 ;
26349 PyObject * obj2 = 0 ;
26350 char *kwnames[] = {
26351 (char *) "self",(char *) "item",(char *) "text", NULL
26352 };
26353
26354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail;
26355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26357 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26358 SWIG_POINTER_EXCEPTION | 0)) == -1)
26359 SWIG_fail;
26360 if (arg2 == NULL) {
26361 PyErr_SetString(PyExc_TypeError,"null reference");
26362 SWIG_fail;
26363 }
26364 {
26365 arg3 = wxString_in_helper(obj2);
26366 if (arg3 == NULL) SWIG_fail;
26367 temp3 = true;
26368 }
26369 {
26370 PyThreadState* __tstate = wxPyBeginAllowThreads();
26371 (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3);
26372
26373 wxPyEndAllowThreads(__tstate);
26374 if (PyErr_Occurred()) SWIG_fail;
26375 }
26376 Py_INCREF(Py_None); resultobj = Py_None;
26377 {
26378 if (temp3)
26379 delete arg3;
26380 }
26381 return resultobj;
26382 fail:
26383 {
26384 if (temp3)
26385 delete arg3;
26386 }
26387 return NULL;
26388 }
26389
26390
26391 static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *, PyObject *args, PyObject *kwargs) {
26392 PyObject *resultobj;
26393 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26394 wxTreeItemId *arg2 = 0 ;
26395 int arg3 ;
26396 int arg4 = (int) wxTreeItemIcon_Normal ;
26397 PyObject * obj0 = 0 ;
26398 PyObject * obj1 = 0 ;
26399 PyObject * obj2 = 0 ;
26400 PyObject * obj3 = 0 ;
26401 char *kwnames[] = {
26402 (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL
26403 };
26404
26405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
26406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26408 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26409 SWIG_POINTER_EXCEPTION | 0)) == -1)
26410 SWIG_fail;
26411 if (arg2 == NULL) {
26412 PyErr_SetString(PyExc_TypeError,"null reference");
26413 SWIG_fail;
26414 }
26415 arg3 = (int)SWIG_As_int(obj2);
26416 if (PyErr_Occurred()) SWIG_fail;
26417 if (obj3) {
26418 arg4 = (int)SWIG_As_int(obj3);
26419 if (PyErr_Occurred()) SWIG_fail;
26420 }
26421 {
26422 PyThreadState* __tstate = wxPyBeginAllowThreads();
26423 (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4);
26424
26425 wxPyEndAllowThreads(__tstate);
26426 if (PyErr_Occurred()) SWIG_fail;
26427 }
26428 Py_INCREF(Py_None); resultobj = Py_None;
26429 return resultobj;
26430 fail:
26431 return NULL;
26432 }
26433
26434
26435 static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *, PyObject *args, PyObject *kwargs) {
26436 PyObject *resultobj;
26437 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26438 wxTreeItemId *arg2 = 0 ;
26439 wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ;
26440 PyObject * obj0 = 0 ;
26441 PyObject * obj1 = 0 ;
26442 PyObject * obj2 = 0 ;
26443 char *kwnames[] = {
26444 (char *) "self",(char *) "item",(char *) "data", NULL
26445 };
26446
26447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26451 SWIG_POINTER_EXCEPTION | 0)) == -1)
26452 SWIG_fail;
26453 if (arg2 == NULL) {
26454 PyErr_SetString(PyExc_TypeError,"null reference");
26455 SWIG_fail;
26456 }
26457 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData,
26458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26459 {
26460 PyThreadState* __tstate = wxPyBeginAllowThreads();
26461 wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3);
26462
26463 wxPyEndAllowThreads(__tstate);
26464 if (PyErr_Occurred()) SWIG_fail;
26465 }
26466 Py_INCREF(Py_None); resultobj = Py_None;
26467 return resultobj;
26468 fail:
26469 return NULL;
26470 }
26471
26472
26473 static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *, PyObject *args, PyObject *kwargs) {
26474 PyObject *resultobj;
26475 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26476 wxTreeItemId *arg2 = 0 ;
26477 PyObject *arg3 = (PyObject *) 0 ;
26478 PyObject * obj0 = 0 ;
26479 PyObject * obj1 = 0 ;
26480 PyObject * obj2 = 0 ;
26481 char *kwnames[] = {
26482 (char *) "self",(char *) "item",(char *) "obj", NULL
26483 };
26484
26485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail;
26486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26488 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26489 SWIG_POINTER_EXCEPTION | 0)) == -1)
26490 SWIG_fail;
26491 if (arg2 == NULL) {
26492 PyErr_SetString(PyExc_TypeError,"null reference");
26493 SWIG_fail;
26494 }
26495 arg3 = obj2;
26496 {
26497 PyThreadState* __tstate = wxPyBeginAllowThreads();
26498 wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3);
26499
26500 wxPyEndAllowThreads(__tstate);
26501 if (PyErr_Occurred()) SWIG_fail;
26502 }
26503 Py_INCREF(Py_None); resultobj = Py_None;
26504 return resultobj;
26505 fail:
26506 return NULL;
26507 }
26508
26509
26510 static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26511 PyObject *resultobj;
26512 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26513 wxTreeItemId *arg2 = 0 ;
26514 bool arg3 = (bool) true ;
26515 PyObject * obj0 = 0 ;
26516 PyObject * obj1 = 0 ;
26517 PyObject * obj2 = 0 ;
26518 char *kwnames[] = {
26519 (char *) "self",(char *) "item",(char *) "has", NULL
26520 };
26521
26522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail;
26523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26525 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26526 SWIG_POINTER_EXCEPTION | 0)) == -1)
26527 SWIG_fail;
26528 if (arg2 == NULL) {
26529 PyErr_SetString(PyExc_TypeError,"null reference");
26530 SWIG_fail;
26531 }
26532 if (obj2) {
26533 arg3 = (bool)SWIG_As_bool(obj2);
26534 if (PyErr_Occurred()) SWIG_fail;
26535 }
26536 {
26537 PyThreadState* __tstate = wxPyBeginAllowThreads();
26538 (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3);
26539
26540 wxPyEndAllowThreads(__tstate);
26541 if (PyErr_Occurred()) SWIG_fail;
26542 }
26543 Py_INCREF(Py_None); resultobj = Py_None;
26544 return resultobj;
26545 fail:
26546 return NULL;
26547 }
26548
26549
26550 static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *, PyObject *args, PyObject *kwargs) {
26551 PyObject *resultobj;
26552 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26553 wxTreeItemId *arg2 = 0 ;
26554 bool arg3 = (bool) true ;
26555 PyObject * obj0 = 0 ;
26556 PyObject * obj1 = 0 ;
26557 PyObject * obj2 = 0 ;
26558 char *kwnames[] = {
26559 (char *) "self",(char *) "item",(char *) "bold", NULL
26560 };
26561
26562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail;
26563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26565 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26566 SWIG_POINTER_EXCEPTION | 0)) == -1)
26567 SWIG_fail;
26568 if (arg2 == NULL) {
26569 PyErr_SetString(PyExc_TypeError,"null reference");
26570 SWIG_fail;
26571 }
26572 if (obj2) {
26573 arg3 = (bool)SWIG_As_bool(obj2);
26574 if (PyErr_Occurred()) SWIG_fail;
26575 }
26576 {
26577 PyThreadState* __tstate = wxPyBeginAllowThreads();
26578 (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3);
26579
26580 wxPyEndAllowThreads(__tstate);
26581 if (PyErr_Occurred()) SWIG_fail;
26582 }
26583 Py_INCREF(Py_None); resultobj = Py_None;
26584 return resultobj;
26585 fail:
26586 return NULL;
26587 }
26588
26589
26590 static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *, PyObject *args, PyObject *kwargs) {
26591 PyObject *resultobj;
26592 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26593 wxTreeItemId *arg2 = 0 ;
26594 bool arg3 = (bool) true ;
26595 PyObject * obj0 = 0 ;
26596 PyObject * obj1 = 0 ;
26597 PyObject * obj2 = 0 ;
26598 char *kwnames[] = {
26599 (char *) "self",(char *) "item",(char *) "highlight", NULL
26600 };
26601
26602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail;
26603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26605 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26606 SWIG_POINTER_EXCEPTION | 0)) == -1)
26607 SWIG_fail;
26608 if (arg2 == NULL) {
26609 PyErr_SetString(PyExc_TypeError,"null reference");
26610 SWIG_fail;
26611 }
26612 if (obj2) {
26613 arg3 = (bool)SWIG_As_bool(obj2);
26614 if (PyErr_Occurred()) SWIG_fail;
26615 }
26616 {
26617 PyThreadState* __tstate = wxPyBeginAllowThreads();
26618 (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3);
26619
26620 wxPyEndAllowThreads(__tstate);
26621 if (PyErr_Occurred()) SWIG_fail;
26622 }
26623 Py_INCREF(Py_None); resultobj = Py_None;
26624 return resultobj;
26625 fail:
26626 return NULL;
26627 }
26628
26629
26630 static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *, PyObject *args, PyObject *kwargs) {
26631 PyObject *resultobj;
26632 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26633 wxTreeItemId *arg2 = 0 ;
26634 wxColour *arg3 = 0 ;
26635 wxColour temp3 ;
26636 PyObject * obj0 = 0 ;
26637 PyObject * obj1 = 0 ;
26638 PyObject * obj2 = 0 ;
26639 char *kwnames[] = {
26640 (char *) "self",(char *) "item",(char *) "col", NULL
26641 };
26642
26643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26645 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26646 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26647 SWIG_POINTER_EXCEPTION | 0)) == -1)
26648 SWIG_fail;
26649 if (arg2 == NULL) {
26650 PyErr_SetString(PyExc_TypeError,"null reference");
26651 SWIG_fail;
26652 }
26653 {
26654 arg3 = &temp3;
26655 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26656 }
26657 {
26658 PyThreadState* __tstate = wxPyBeginAllowThreads();
26659 (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26660
26661 wxPyEndAllowThreads(__tstate);
26662 if (PyErr_Occurred()) SWIG_fail;
26663 }
26664 Py_INCREF(Py_None); resultobj = Py_None;
26665 return resultobj;
26666 fail:
26667 return NULL;
26668 }
26669
26670
26671 static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *, PyObject *args, PyObject *kwargs) {
26672 PyObject *resultobj;
26673 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26674 wxTreeItemId *arg2 = 0 ;
26675 wxColour *arg3 = 0 ;
26676 wxColour temp3 ;
26677 PyObject * obj0 = 0 ;
26678 PyObject * obj1 = 0 ;
26679 PyObject * obj2 = 0 ;
26680 char *kwnames[] = {
26681 (char *) "self",(char *) "item",(char *) "col", NULL
26682 };
26683
26684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
26685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26687 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26688 SWIG_POINTER_EXCEPTION | 0)) == -1)
26689 SWIG_fail;
26690 if (arg2 == NULL) {
26691 PyErr_SetString(PyExc_TypeError,"null reference");
26692 SWIG_fail;
26693 }
26694 {
26695 arg3 = &temp3;
26696 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26697 }
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3);
26701
26702 wxPyEndAllowThreads(__tstate);
26703 if (PyErr_Occurred()) SWIG_fail;
26704 }
26705 Py_INCREF(Py_None); resultobj = Py_None;
26706 return resultobj;
26707 fail:
26708 return NULL;
26709 }
26710
26711
26712 static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *, PyObject *args, PyObject *kwargs) {
26713 PyObject *resultobj;
26714 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26715 wxTreeItemId *arg2 = 0 ;
26716 wxFont *arg3 = 0 ;
26717 PyObject * obj0 = 0 ;
26718 PyObject * obj1 = 0 ;
26719 PyObject * obj2 = 0 ;
26720 char *kwnames[] = {
26721 (char *) "self",(char *) "item",(char *) "font", NULL
26722 };
26723
26724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail;
26725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26727 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26728 SWIG_POINTER_EXCEPTION | 0)) == -1)
26729 SWIG_fail;
26730 if (arg2 == NULL) {
26731 PyErr_SetString(PyExc_TypeError,"null reference");
26732 SWIG_fail;
26733 }
26734 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont,
26735 SWIG_POINTER_EXCEPTION | 0)) == -1)
26736 SWIG_fail;
26737 if (arg3 == NULL) {
26738 PyErr_SetString(PyExc_TypeError,"null reference");
26739 SWIG_fail;
26740 }
26741 {
26742 PyThreadState* __tstate = wxPyBeginAllowThreads();
26743 (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3);
26744
26745 wxPyEndAllowThreads(__tstate);
26746 if (PyErr_Occurred()) SWIG_fail;
26747 }
26748 Py_INCREF(Py_None); resultobj = Py_None;
26749 return resultobj;
26750 fail:
26751 return NULL;
26752 }
26753
26754
26755 static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *, PyObject *args, PyObject *kwargs) {
26756 PyObject *resultobj;
26757 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26758 wxTreeItemId *arg2 = 0 ;
26759 bool result;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 char *kwnames[] = {
26763 (char *) "self",(char *) "item", NULL
26764 };
26765
26766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail;
26767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26769 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26770 SWIG_POINTER_EXCEPTION | 0)) == -1)
26771 SWIG_fail;
26772 if (arg2 == NULL) {
26773 PyErr_SetString(PyExc_TypeError,"null reference");
26774 SWIG_fail;
26775 }
26776 {
26777 PyThreadState* __tstate = wxPyBeginAllowThreads();
26778 result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2);
26779
26780 wxPyEndAllowThreads(__tstate);
26781 if (PyErr_Occurred()) SWIG_fail;
26782 }
26783 {
26784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26785 }
26786 return resultobj;
26787 fail:
26788 return NULL;
26789 }
26790
26791
26792 static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *, PyObject *args, PyObject *kwargs) {
26793 PyObject *resultobj;
26794 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26795 wxTreeItemId *arg2 = 0 ;
26796 bool result;
26797 PyObject * obj0 = 0 ;
26798 PyObject * obj1 = 0 ;
26799 char *kwnames[] = {
26800 (char *) "self",(char *) "item", NULL
26801 };
26802
26803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail;
26804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26806 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26807 SWIG_POINTER_EXCEPTION | 0)) == -1)
26808 SWIG_fail;
26809 if (arg2 == NULL) {
26810 PyErr_SetString(PyExc_TypeError,"null reference");
26811 SWIG_fail;
26812 }
26813 {
26814 PyThreadState* __tstate = wxPyBeginAllowThreads();
26815 result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2);
26816
26817 wxPyEndAllowThreads(__tstate);
26818 if (PyErr_Occurred()) SWIG_fail;
26819 }
26820 {
26821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26822 }
26823 return resultobj;
26824 fail:
26825 return NULL;
26826 }
26827
26828
26829 static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *, PyObject *args, PyObject *kwargs) {
26830 PyObject *resultobj;
26831 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26832 wxTreeItemId *arg2 = 0 ;
26833 bool result;
26834 PyObject * obj0 = 0 ;
26835 PyObject * obj1 = 0 ;
26836 char *kwnames[] = {
26837 (char *) "self",(char *) "item", NULL
26838 };
26839
26840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail;
26841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26843 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26844 SWIG_POINTER_EXCEPTION | 0)) == -1)
26845 SWIG_fail;
26846 if (arg2 == NULL) {
26847 PyErr_SetString(PyExc_TypeError,"null reference");
26848 SWIG_fail;
26849 }
26850 {
26851 PyThreadState* __tstate = wxPyBeginAllowThreads();
26852 result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2);
26853
26854 wxPyEndAllowThreads(__tstate);
26855 if (PyErr_Occurred()) SWIG_fail;
26856 }
26857 {
26858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26859 }
26860 return resultobj;
26861 fail:
26862 return NULL;
26863 }
26864
26865
26866 static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *, PyObject *args, PyObject *kwargs) {
26867 PyObject *resultobj;
26868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26869 wxTreeItemId *arg2 = 0 ;
26870 bool result;
26871 PyObject * obj0 = 0 ;
26872 PyObject * obj1 = 0 ;
26873 char *kwnames[] = {
26874 (char *) "self",(char *) "item", NULL
26875 };
26876
26877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail;
26878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26880 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26881 SWIG_POINTER_EXCEPTION | 0)) == -1)
26882 SWIG_fail;
26883 if (arg2 == NULL) {
26884 PyErr_SetString(PyExc_TypeError,"null reference");
26885 SWIG_fail;
26886 }
26887 {
26888 PyThreadState* __tstate = wxPyBeginAllowThreads();
26889 result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2);
26890
26891 wxPyEndAllowThreads(__tstate);
26892 if (PyErr_Occurred()) SWIG_fail;
26893 }
26894 {
26895 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26896 }
26897 return resultobj;
26898 fail:
26899 return NULL;
26900 }
26901
26902
26903 static PyObject *_wrap_TreeCtrl_IsBold(PyObject *, PyObject *args, PyObject *kwargs) {
26904 PyObject *resultobj;
26905 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26906 wxTreeItemId *arg2 = 0 ;
26907 bool result;
26908 PyObject * obj0 = 0 ;
26909 PyObject * obj1 = 0 ;
26910 char *kwnames[] = {
26911 (char *) "self",(char *) "item", NULL
26912 };
26913
26914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail;
26915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26917 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26918 SWIG_POINTER_EXCEPTION | 0)) == -1)
26919 SWIG_fail;
26920 if (arg2 == NULL) {
26921 PyErr_SetString(PyExc_TypeError,"null reference");
26922 SWIG_fail;
26923 }
26924 {
26925 PyThreadState* __tstate = wxPyBeginAllowThreads();
26926 result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2);
26927
26928 wxPyEndAllowThreads(__tstate);
26929 if (PyErr_Occurred()) SWIG_fail;
26930 }
26931 {
26932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26933 }
26934 return resultobj;
26935 fail:
26936 return NULL;
26937 }
26938
26939
26940 static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *, PyObject *args, PyObject *kwargs) {
26941 PyObject *resultobj;
26942 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26943 wxTreeItemId *arg2 = 0 ;
26944 bool arg3 = (bool) true ;
26945 size_t result;
26946 PyObject * obj0 = 0 ;
26947 PyObject * obj1 = 0 ;
26948 PyObject * obj2 = 0 ;
26949 char *kwnames[] = {
26950 (char *) "self",(char *) "item",(char *) "recursively", NULL
26951 };
26952
26953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail;
26954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26956 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
26957 SWIG_POINTER_EXCEPTION | 0)) == -1)
26958 SWIG_fail;
26959 if (arg2 == NULL) {
26960 PyErr_SetString(PyExc_TypeError,"null reference");
26961 SWIG_fail;
26962 }
26963 if (obj2) {
26964 arg3 = (bool)SWIG_As_bool(obj2);
26965 if (PyErr_Occurred()) SWIG_fail;
26966 }
26967 {
26968 PyThreadState* __tstate = wxPyBeginAllowThreads();
26969 result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3);
26970
26971 wxPyEndAllowThreads(__tstate);
26972 if (PyErr_Occurred()) SWIG_fail;
26973 }
26974 resultobj = SWIG_From_unsigned_SS_long((unsigned long)result);
26975 return resultobj;
26976 fail:
26977 return NULL;
26978 }
26979
26980
26981 static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *, PyObject *args, PyObject *kwargs) {
26982 PyObject *resultobj;
26983 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
26984 wxTreeItemId result;
26985 PyObject * obj0 = 0 ;
26986 char *kwnames[] = {
26987 (char *) "self", NULL
26988 };
26989
26990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail;
26991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
26992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
26993 {
26994 PyThreadState* __tstate = wxPyBeginAllowThreads();
26995 result = ((wxPyTreeCtrl const *)arg1)->GetRootItem();
26996
26997 wxPyEndAllowThreads(__tstate);
26998 if (PyErr_Occurred()) SWIG_fail;
26999 }
27000 {
27001 wxTreeItemId * resultptr;
27002 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27003 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27004 }
27005 return resultobj;
27006 fail:
27007 return NULL;
27008 }
27009
27010
27011 static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *, PyObject *args, PyObject *kwargs) {
27012 PyObject *resultobj;
27013 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27014 wxTreeItemId result;
27015 PyObject * obj0 = 0 ;
27016 char *kwnames[] = {
27017 (char *) "self", NULL
27018 };
27019
27020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail;
27021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27023 {
27024 PyThreadState* __tstate = wxPyBeginAllowThreads();
27025 result = ((wxPyTreeCtrl const *)arg1)->GetSelection();
27026
27027 wxPyEndAllowThreads(__tstate);
27028 if (PyErr_Occurred()) SWIG_fail;
27029 }
27030 {
27031 wxTreeItemId * resultptr;
27032 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27033 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27034 }
27035 return resultobj;
27036 fail:
27037 return NULL;
27038 }
27039
27040
27041 static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *, PyObject *args, PyObject *kwargs) {
27042 PyObject *resultobj;
27043 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27044 PyObject *result;
27045 PyObject * obj0 = 0 ;
27046 char *kwnames[] = {
27047 (char *) "self", NULL
27048 };
27049
27050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail;
27051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27053 {
27054 PyThreadState* __tstate = wxPyBeginAllowThreads();
27055 result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1);
27056
27057 wxPyEndAllowThreads(__tstate);
27058 if (PyErr_Occurred()) SWIG_fail;
27059 }
27060 resultobj = result;
27061 return resultobj;
27062 fail:
27063 return NULL;
27064 }
27065
27066
27067 static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *, PyObject *args, PyObject *kwargs) {
27068 PyObject *resultobj;
27069 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27070 wxTreeItemId *arg2 = 0 ;
27071 wxTreeItemId result;
27072 PyObject * obj0 = 0 ;
27073 PyObject * obj1 = 0 ;
27074 char *kwnames[] = {
27075 (char *) "self",(char *) "item", NULL
27076 };
27077
27078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail;
27079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27082 SWIG_POINTER_EXCEPTION | 0)) == -1)
27083 SWIG_fail;
27084 if (arg2 == NULL) {
27085 PyErr_SetString(PyExc_TypeError,"null reference");
27086 SWIG_fail;
27087 }
27088 {
27089 PyThreadState* __tstate = wxPyBeginAllowThreads();
27090 result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2);
27091
27092 wxPyEndAllowThreads(__tstate);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 }
27095 {
27096 wxTreeItemId * resultptr;
27097 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27098 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27099 }
27100 return resultobj;
27101 fail:
27102 return NULL;
27103 }
27104
27105
27106 static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *, PyObject *args, PyObject *kwargs) {
27107 PyObject *resultobj;
27108 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27109 wxTreeItemId *arg2 = 0 ;
27110 PyObject *result;
27111 PyObject * obj0 = 0 ;
27112 PyObject * obj1 = 0 ;
27113 char *kwnames[] = {
27114 (char *) "self",(char *) "item", NULL
27115 };
27116
27117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail;
27118 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27119 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27120 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27121 SWIG_POINTER_EXCEPTION | 0)) == -1)
27122 SWIG_fail;
27123 if (arg2 == NULL) {
27124 PyErr_SetString(PyExc_TypeError,"null reference");
27125 SWIG_fail;
27126 }
27127 {
27128 PyThreadState* __tstate = wxPyBeginAllowThreads();
27129 result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2);
27130
27131 wxPyEndAllowThreads(__tstate);
27132 if (PyErr_Occurred()) SWIG_fail;
27133 }
27134 resultobj = result;
27135 return resultobj;
27136 fail:
27137 return NULL;
27138 }
27139
27140
27141 static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *, PyObject *args, PyObject *kwargs) {
27142 PyObject *resultobj;
27143 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27144 wxTreeItemId *arg2 = 0 ;
27145 void *arg3 = (void *) 0 ;
27146 PyObject *result;
27147 PyObject * obj0 = 0 ;
27148 PyObject * obj1 = 0 ;
27149 PyObject * obj2 = 0 ;
27150 char *kwnames[] = {
27151 (char *) "self",(char *) "item",(char *) "cookie", NULL
27152 };
27153
27154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
27155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27157 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27158 SWIG_POINTER_EXCEPTION | 0)) == -1)
27159 SWIG_fail;
27160 if (arg2 == NULL) {
27161 PyErr_SetString(PyExc_TypeError,"null reference");
27162 SWIG_fail;
27163 }
27164 if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27165 {
27166 PyThreadState* __tstate = wxPyBeginAllowThreads();
27167 result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3);
27168
27169 wxPyEndAllowThreads(__tstate);
27170 if (PyErr_Occurred()) SWIG_fail;
27171 }
27172 resultobj = result;
27173 return resultobj;
27174 fail:
27175 return NULL;
27176 }
27177
27178
27179 static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *, PyObject *args, PyObject *kwargs) {
27180 PyObject *resultobj;
27181 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27182 wxTreeItemId *arg2 = 0 ;
27183 wxTreeItemId result;
27184 PyObject * obj0 = 0 ;
27185 PyObject * obj1 = 0 ;
27186 char *kwnames[] = {
27187 (char *) "self",(char *) "item", NULL
27188 };
27189
27190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail;
27191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27193 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27194 SWIG_POINTER_EXCEPTION | 0)) == -1)
27195 SWIG_fail;
27196 if (arg2 == NULL) {
27197 PyErr_SetString(PyExc_TypeError,"null reference");
27198 SWIG_fail;
27199 }
27200 {
27201 PyThreadState* __tstate = wxPyBeginAllowThreads();
27202 result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2);
27203
27204 wxPyEndAllowThreads(__tstate);
27205 if (PyErr_Occurred()) SWIG_fail;
27206 }
27207 {
27208 wxTreeItemId * resultptr;
27209 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27210 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27211 }
27212 return resultobj;
27213 fail:
27214 return NULL;
27215 }
27216
27217
27218 static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27219 PyObject *resultobj;
27220 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27221 wxTreeItemId *arg2 = 0 ;
27222 wxTreeItemId result;
27223 PyObject * obj0 = 0 ;
27224 PyObject * obj1 = 0 ;
27225 char *kwnames[] = {
27226 (char *) "self",(char *) "item", NULL
27227 };
27228
27229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail;
27230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27233 SWIG_POINTER_EXCEPTION | 0)) == -1)
27234 SWIG_fail;
27235 if (arg2 == NULL) {
27236 PyErr_SetString(PyExc_TypeError,"null reference");
27237 SWIG_fail;
27238 }
27239 {
27240 PyThreadState* __tstate = wxPyBeginAllowThreads();
27241 result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2);
27242
27243 wxPyEndAllowThreads(__tstate);
27244 if (PyErr_Occurred()) SWIG_fail;
27245 }
27246 {
27247 wxTreeItemId * resultptr;
27248 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27249 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27250 }
27251 return resultobj;
27252 fail:
27253 return NULL;
27254 }
27255
27256
27257 static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *, PyObject *args, PyObject *kwargs) {
27258 PyObject *resultobj;
27259 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27260 wxTreeItemId *arg2 = 0 ;
27261 wxTreeItemId result;
27262 PyObject * obj0 = 0 ;
27263 PyObject * obj1 = 0 ;
27264 char *kwnames[] = {
27265 (char *) "self",(char *) "item", NULL
27266 };
27267
27268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail;
27269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27271 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27272 SWIG_POINTER_EXCEPTION | 0)) == -1)
27273 SWIG_fail;
27274 if (arg2 == NULL) {
27275 PyErr_SetString(PyExc_TypeError,"null reference");
27276 SWIG_fail;
27277 }
27278 {
27279 PyThreadState* __tstate = wxPyBeginAllowThreads();
27280 result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2);
27281
27282 wxPyEndAllowThreads(__tstate);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 {
27286 wxTreeItemId * resultptr;
27287 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27288 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27289 }
27290 return resultobj;
27291 fail:
27292 return NULL;
27293 }
27294
27295
27296 static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *, PyObject *args, PyObject *kwargs) {
27297 PyObject *resultobj;
27298 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27299 wxTreeItemId result;
27300 PyObject * obj0 = 0 ;
27301 char *kwnames[] = {
27302 (char *) "self", NULL
27303 };
27304
27305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail;
27306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27308 {
27309 PyThreadState* __tstate = wxPyBeginAllowThreads();
27310 result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem();
27311
27312 wxPyEndAllowThreads(__tstate);
27313 if (PyErr_Occurred()) SWIG_fail;
27314 }
27315 {
27316 wxTreeItemId * resultptr;
27317 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27318 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27319 }
27320 return resultobj;
27321 fail:
27322 return NULL;
27323 }
27324
27325
27326 static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27327 PyObject *resultobj;
27328 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27329 wxTreeItemId *arg2 = 0 ;
27330 wxTreeItemId result;
27331 PyObject * obj0 = 0 ;
27332 PyObject * obj1 = 0 ;
27333 char *kwnames[] = {
27334 (char *) "self",(char *) "item", NULL
27335 };
27336
27337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail;
27338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27341 SWIG_POINTER_EXCEPTION | 0)) == -1)
27342 SWIG_fail;
27343 if (arg2 == NULL) {
27344 PyErr_SetString(PyExc_TypeError,"null reference");
27345 SWIG_fail;
27346 }
27347 {
27348 PyThreadState* __tstate = wxPyBeginAllowThreads();
27349 result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2);
27350
27351 wxPyEndAllowThreads(__tstate);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 {
27355 wxTreeItemId * resultptr;
27356 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27357 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27358 }
27359 return resultobj;
27360 fail:
27361 return NULL;
27362 }
27363
27364
27365 static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *, PyObject *args, PyObject *kwargs) {
27366 PyObject *resultobj;
27367 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27368 wxTreeItemId *arg2 = 0 ;
27369 wxTreeItemId result;
27370 PyObject * obj0 = 0 ;
27371 PyObject * obj1 = 0 ;
27372 char *kwnames[] = {
27373 (char *) "self",(char *) "item", NULL
27374 };
27375
27376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail;
27377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27380 SWIG_POINTER_EXCEPTION | 0)) == -1)
27381 SWIG_fail;
27382 if (arg2 == NULL) {
27383 PyErr_SetString(PyExc_TypeError,"null reference");
27384 SWIG_fail;
27385 }
27386 {
27387 PyThreadState* __tstate = wxPyBeginAllowThreads();
27388 result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2);
27389
27390 wxPyEndAllowThreads(__tstate);
27391 if (PyErr_Occurred()) SWIG_fail;
27392 }
27393 {
27394 wxTreeItemId * resultptr;
27395 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27396 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27397 }
27398 return resultobj;
27399 fail:
27400 return NULL;
27401 }
27402
27403
27404 static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *, PyObject *args, PyObject *kwargs) {
27405 PyObject *resultobj;
27406 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27407 wxString *arg2 = 0 ;
27408 int arg3 = (int) -1 ;
27409 int arg4 = (int) -1 ;
27410 wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ;
27411 wxTreeItemId result;
27412 bool temp2 = false ;
27413 PyObject * obj0 = 0 ;
27414 PyObject * obj1 = 0 ;
27415 PyObject * obj2 = 0 ;
27416 PyObject * obj3 = 0 ;
27417 PyObject * obj4 = 0 ;
27418 char *kwnames[] = {
27419 (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27420 };
27421
27422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
27423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27425 {
27426 arg2 = wxString_in_helper(obj1);
27427 if (arg2 == NULL) SWIG_fail;
27428 temp2 = true;
27429 }
27430 if (obj2) {
27431 arg3 = (int)SWIG_As_int(obj2);
27432 if (PyErr_Occurred()) SWIG_fail;
27433 }
27434 if (obj3) {
27435 arg4 = (int)SWIG_As_int(obj3);
27436 if (PyErr_Occurred()) SWIG_fail;
27437 }
27438 if (obj4) {
27439 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData,
27440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27441 }
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5);
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 {
27450 wxTreeItemId * resultptr;
27451 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27452 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27453 }
27454 {
27455 if (temp2)
27456 delete arg2;
27457 }
27458 return resultobj;
27459 fail:
27460 {
27461 if (temp2)
27462 delete arg2;
27463 }
27464 return NULL;
27465 }
27466
27467
27468 static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *, PyObject *args, PyObject *kwargs) {
27469 PyObject *resultobj;
27470 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27471 wxTreeItemId *arg2 = 0 ;
27472 wxString *arg3 = 0 ;
27473 int arg4 = (int) -1 ;
27474 int arg5 = (int) -1 ;
27475 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27476 wxTreeItemId result;
27477 bool temp3 = false ;
27478 PyObject * obj0 = 0 ;
27479 PyObject * obj1 = 0 ;
27480 PyObject * obj2 = 0 ;
27481 PyObject * obj3 = 0 ;
27482 PyObject * obj4 = 0 ;
27483 PyObject * obj5 = 0 ;
27484 char *kwnames[] = {
27485 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27486 };
27487
27488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27491 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27492 SWIG_POINTER_EXCEPTION | 0)) == -1)
27493 SWIG_fail;
27494 if (arg2 == NULL) {
27495 PyErr_SetString(PyExc_TypeError,"null reference");
27496 SWIG_fail;
27497 }
27498 {
27499 arg3 = wxString_in_helper(obj2);
27500 if (arg3 == NULL) SWIG_fail;
27501 temp3 = true;
27502 }
27503 if (obj3) {
27504 arg4 = (int)SWIG_As_int(obj3);
27505 if (PyErr_Occurred()) SWIG_fail;
27506 }
27507 if (obj4) {
27508 arg5 = (int)SWIG_As_int(obj4);
27509 if (PyErr_Occurred()) SWIG_fail;
27510 }
27511 if (obj5) {
27512 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27514 }
27515 {
27516 PyThreadState* __tstate = wxPyBeginAllowThreads();
27517 result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27518
27519 wxPyEndAllowThreads(__tstate);
27520 if (PyErr_Occurred()) SWIG_fail;
27521 }
27522 {
27523 wxTreeItemId * resultptr;
27524 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27525 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27526 }
27527 {
27528 if (temp3)
27529 delete arg3;
27530 }
27531 return resultobj;
27532 fail:
27533 {
27534 if (temp3)
27535 delete arg3;
27536 }
27537 return NULL;
27538 }
27539
27540
27541 static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *, PyObject *args, PyObject *kwargs) {
27542 PyObject *resultobj;
27543 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27544 wxTreeItemId *arg2 = 0 ;
27545 wxTreeItemId *arg3 = 0 ;
27546 wxString *arg4 = 0 ;
27547 int arg5 = (int) -1 ;
27548 int arg6 = (int) -1 ;
27549 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27550 wxTreeItemId result;
27551 bool temp4 = false ;
27552 PyObject * obj0 = 0 ;
27553 PyObject * obj1 = 0 ;
27554 PyObject * obj2 = 0 ;
27555 PyObject * obj3 = 0 ;
27556 PyObject * obj4 = 0 ;
27557 PyObject * obj5 = 0 ;
27558 PyObject * obj6 = 0 ;
27559 char *kwnames[] = {
27560 (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27561 };
27562
27563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
27564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27567 SWIG_POINTER_EXCEPTION | 0)) == -1)
27568 SWIG_fail;
27569 if (arg2 == NULL) {
27570 PyErr_SetString(PyExc_TypeError,"null reference");
27571 SWIG_fail;
27572 }
27573 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId,
27574 SWIG_POINTER_EXCEPTION | 0)) == -1)
27575 SWIG_fail;
27576 if (arg3 == NULL) {
27577 PyErr_SetString(PyExc_TypeError,"null reference");
27578 SWIG_fail;
27579 }
27580 {
27581 arg4 = wxString_in_helper(obj3);
27582 if (arg4 == NULL) SWIG_fail;
27583 temp4 = true;
27584 }
27585 if (obj4) {
27586 arg5 = (int)SWIG_As_int(obj4);
27587 if (PyErr_Occurred()) SWIG_fail;
27588 }
27589 if (obj5) {
27590 arg6 = (int)SWIG_As_int(obj5);
27591 if (PyErr_Occurred()) SWIG_fail;
27592 }
27593 if (obj6) {
27594 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27596 }
27597 {
27598 PyThreadState* __tstate = wxPyBeginAllowThreads();
27599 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27600
27601 wxPyEndAllowThreads(__tstate);
27602 if (PyErr_Occurred()) SWIG_fail;
27603 }
27604 {
27605 wxTreeItemId * resultptr;
27606 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27607 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27608 }
27609 {
27610 if (temp4)
27611 delete arg4;
27612 }
27613 return resultobj;
27614 fail:
27615 {
27616 if (temp4)
27617 delete arg4;
27618 }
27619 return NULL;
27620 }
27621
27622
27623 static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *, PyObject *args, PyObject *kwargs) {
27624 PyObject *resultobj;
27625 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27626 wxTreeItemId *arg2 = 0 ;
27627 size_t arg3 ;
27628 wxString *arg4 = 0 ;
27629 int arg5 = (int) -1 ;
27630 int arg6 = (int) -1 ;
27631 wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ;
27632 wxTreeItemId result;
27633 bool temp4 = false ;
27634 PyObject * obj0 = 0 ;
27635 PyObject * obj1 = 0 ;
27636 PyObject * obj2 = 0 ;
27637 PyObject * obj3 = 0 ;
27638 PyObject * obj4 = 0 ;
27639 PyObject * obj5 = 0 ;
27640 PyObject * obj6 = 0 ;
27641 char *kwnames[] = {
27642 (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27643 };
27644
27645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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 arg3 = (size_t)SWIG_As_unsigned_SS_long(obj2);
27656 if (PyErr_Occurred()) SWIG_fail;
27657 {
27658 arg4 = wxString_in_helper(obj3);
27659 if (arg4 == NULL) SWIG_fail;
27660 temp4 = true;
27661 }
27662 if (obj4) {
27663 arg5 = (int)SWIG_As_int(obj4);
27664 if (PyErr_Occurred()) SWIG_fail;
27665 }
27666 if (obj5) {
27667 arg6 = (int)SWIG_As_int(obj5);
27668 if (PyErr_Occurred()) SWIG_fail;
27669 }
27670 if (obj6) {
27671 if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData,
27672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27673 }
27674 {
27675 PyThreadState* __tstate = wxPyBeginAllowThreads();
27676 result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7);
27677
27678 wxPyEndAllowThreads(__tstate);
27679 if (PyErr_Occurred()) SWIG_fail;
27680 }
27681 {
27682 wxTreeItemId * resultptr;
27683 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27684 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27685 }
27686 {
27687 if (temp4)
27688 delete arg4;
27689 }
27690 return resultobj;
27691 fail:
27692 {
27693 if (temp4)
27694 delete arg4;
27695 }
27696 return NULL;
27697 }
27698
27699
27700 static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *, PyObject *args, PyObject *kwargs) {
27701 PyObject *resultobj;
27702 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27703 wxTreeItemId *arg2 = 0 ;
27704 wxString *arg3 = 0 ;
27705 int arg4 = (int) -1 ;
27706 int arg5 = (int) -1 ;
27707 wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ;
27708 wxTreeItemId result;
27709 bool temp3 = false ;
27710 PyObject * obj0 = 0 ;
27711 PyObject * obj1 = 0 ;
27712 PyObject * obj2 = 0 ;
27713 PyObject * obj3 = 0 ;
27714 PyObject * obj4 = 0 ;
27715 PyObject * obj5 = 0 ;
27716 char *kwnames[] = {
27717 (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL
27718 };
27719
27720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
27721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27723 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27724 SWIG_POINTER_EXCEPTION | 0)) == -1)
27725 SWIG_fail;
27726 if (arg2 == NULL) {
27727 PyErr_SetString(PyExc_TypeError,"null reference");
27728 SWIG_fail;
27729 }
27730 {
27731 arg3 = wxString_in_helper(obj2);
27732 if (arg3 == NULL) SWIG_fail;
27733 temp3 = true;
27734 }
27735 if (obj3) {
27736 arg4 = (int)SWIG_As_int(obj3);
27737 if (PyErr_Occurred()) SWIG_fail;
27738 }
27739 if (obj4) {
27740 arg5 = (int)SWIG_As_int(obj4);
27741 if (PyErr_Occurred()) SWIG_fail;
27742 }
27743 if (obj5) {
27744 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData,
27745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27746 }
27747 {
27748 PyThreadState* __tstate = wxPyBeginAllowThreads();
27749 result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6);
27750
27751 wxPyEndAllowThreads(__tstate);
27752 if (PyErr_Occurred()) SWIG_fail;
27753 }
27754 {
27755 wxTreeItemId * resultptr;
27756 resultptr = new wxTreeItemId((wxTreeItemId &) result);
27757 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
27758 }
27759 {
27760 if (temp3)
27761 delete arg3;
27762 }
27763 return resultobj;
27764 fail:
27765 {
27766 if (temp3)
27767 delete arg3;
27768 }
27769 return NULL;
27770 }
27771
27772
27773 static PyObject *_wrap_TreeCtrl_Delete(PyObject *, PyObject *args, PyObject *kwargs) {
27774 PyObject *resultobj;
27775 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27776 wxTreeItemId *arg2 = 0 ;
27777 PyObject * obj0 = 0 ;
27778 PyObject * obj1 = 0 ;
27779 char *kwnames[] = {
27780 (char *) "self",(char *) "item", NULL
27781 };
27782
27783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail;
27784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27786 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27787 SWIG_POINTER_EXCEPTION | 0)) == -1)
27788 SWIG_fail;
27789 if (arg2 == NULL) {
27790 PyErr_SetString(PyExc_TypeError,"null reference");
27791 SWIG_fail;
27792 }
27793 {
27794 PyThreadState* __tstate = wxPyBeginAllowThreads();
27795 (arg1)->Delete((wxTreeItemId const &)*arg2);
27796
27797 wxPyEndAllowThreads(__tstate);
27798 if (PyErr_Occurred()) SWIG_fail;
27799 }
27800 Py_INCREF(Py_None); resultobj = Py_None;
27801 return resultobj;
27802 fail:
27803 return NULL;
27804 }
27805
27806
27807 static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *, PyObject *args, PyObject *kwargs) {
27808 PyObject *resultobj;
27809 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27810 wxTreeItemId *arg2 = 0 ;
27811 PyObject * obj0 = 0 ;
27812 PyObject * obj1 = 0 ;
27813 char *kwnames[] = {
27814 (char *) "self",(char *) "item", NULL
27815 };
27816
27817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail;
27818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27821 SWIG_POINTER_EXCEPTION | 0)) == -1)
27822 SWIG_fail;
27823 if (arg2 == NULL) {
27824 PyErr_SetString(PyExc_TypeError,"null reference");
27825 SWIG_fail;
27826 }
27827 {
27828 PyThreadState* __tstate = wxPyBeginAllowThreads();
27829 (arg1)->DeleteChildren((wxTreeItemId const &)*arg2);
27830
27831 wxPyEndAllowThreads(__tstate);
27832 if (PyErr_Occurred()) SWIG_fail;
27833 }
27834 Py_INCREF(Py_None); resultobj = Py_None;
27835 return resultobj;
27836 fail:
27837 return NULL;
27838 }
27839
27840
27841 static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *, PyObject *args, PyObject *kwargs) {
27842 PyObject *resultobj;
27843 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27844 PyObject * obj0 = 0 ;
27845 char *kwnames[] = {
27846 (char *) "self", NULL
27847 };
27848
27849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail;
27850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27852 {
27853 PyThreadState* __tstate = wxPyBeginAllowThreads();
27854 (arg1)->DeleteAllItems();
27855
27856 wxPyEndAllowThreads(__tstate);
27857 if (PyErr_Occurred()) SWIG_fail;
27858 }
27859 Py_INCREF(Py_None); resultobj = Py_None;
27860 return resultobj;
27861 fail:
27862 return NULL;
27863 }
27864
27865
27866 static PyObject *_wrap_TreeCtrl_Expand(PyObject *, PyObject *args, PyObject *kwargs) {
27867 PyObject *resultobj;
27868 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27869 wxTreeItemId *arg2 = 0 ;
27870 PyObject * obj0 = 0 ;
27871 PyObject * obj1 = 0 ;
27872 char *kwnames[] = {
27873 (char *) "self",(char *) "item", NULL
27874 };
27875
27876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail;
27877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27879 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27880 SWIG_POINTER_EXCEPTION | 0)) == -1)
27881 SWIG_fail;
27882 if (arg2 == NULL) {
27883 PyErr_SetString(PyExc_TypeError,"null reference");
27884 SWIG_fail;
27885 }
27886 {
27887 PyThreadState* __tstate = wxPyBeginAllowThreads();
27888 (arg1)->Expand((wxTreeItemId const &)*arg2);
27889
27890 wxPyEndAllowThreads(__tstate);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 Py_INCREF(Py_None); resultobj = Py_None;
27894 return resultobj;
27895 fail:
27896 return NULL;
27897 }
27898
27899
27900 static PyObject *_wrap_TreeCtrl_Collapse(PyObject *, PyObject *args, PyObject *kwargs) {
27901 PyObject *resultobj;
27902 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27903 wxTreeItemId *arg2 = 0 ;
27904 PyObject * obj0 = 0 ;
27905 PyObject * obj1 = 0 ;
27906 char *kwnames[] = {
27907 (char *) "self",(char *) "item", NULL
27908 };
27909
27910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail;
27911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27913 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27914 SWIG_POINTER_EXCEPTION | 0)) == -1)
27915 SWIG_fail;
27916 if (arg2 == NULL) {
27917 PyErr_SetString(PyExc_TypeError,"null reference");
27918 SWIG_fail;
27919 }
27920 {
27921 PyThreadState* __tstate = wxPyBeginAllowThreads();
27922 (arg1)->Collapse((wxTreeItemId const &)*arg2);
27923
27924 wxPyEndAllowThreads(__tstate);
27925 if (PyErr_Occurred()) SWIG_fail;
27926 }
27927 Py_INCREF(Py_None); resultobj = Py_None;
27928 return resultobj;
27929 fail:
27930 return NULL;
27931 }
27932
27933
27934 static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *, PyObject *args, PyObject *kwargs) {
27935 PyObject *resultobj;
27936 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27937 wxTreeItemId *arg2 = 0 ;
27938 PyObject * obj0 = 0 ;
27939 PyObject * obj1 = 0 ;
27940 char *kwnames[] = {
27941 (char *) "self",(char *) "item", NULL
27942 };
27943
27944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail;
27945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27947 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27948 SWIG_POINTER_EXCEPTION | 0)) == -1)
27949 SWIG_fail;
27950 if (arg2 == NULL) {
27951 PyErr_SetString(PyExc_TypeError,"null reference");
27952 SWIG_fail;
27953 }
27954 {
27955 PyThreadState* __tstate = wxPyBeginAllowThreads();
27956 (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2);
27957
27958 wxPyEndAllowThreads(__tstate);
27959 if (PyErr_Occurred()) SWIG_fail;
27960 }
27961 Py_INCREF(Py_None); resultobj = Py_None;
27962 return resultobj;
27963 fail:
27964 return NULL;
27965 }
27966
27967
27968 static PyObject *_wrap_TreeCtrl_Toggle(PyObject *, PyObject *args, PyObject *kwargs) {
27969 PyObject *resultobj;
27970 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
27971 wxTreeItemId *arg2 = 0 ;
27972 PyObject * obj0 = 0 ;
27973 PyObject * obj1 = 0 ;
27974 char *kwnames[] = {
27975 (char *) "self",(char *) "item", NULL
27976 };
27977
27978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail;
27979 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
27980 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
27981 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
27982 SWIG_POINTER_EXCEPTION | 0)) == -1)
27983 SWIG_fail;
27984 if (arg2 == NULL) {
27985 PyErr_SetString(PyExc_TypeError,"null reference");
27986 SWIG_fail;
27987 }
27988 {
27989 PyThreadState* __tstate = wxPyBeginAllowThreads();
27990 (arg1)->Toggle((wxTreeItemId const &)*arg2);
27991
27992 wxPyEndAllowThreads(__tstate);
27993 if (PyErr_Occurred()) SWIG_fail;
27994 }
27995 Py_INCREF(Py_None); resultobj = Py_None;
27996 return resultobj;
27997 fail:
27998 return NULL;
27999 }
28000
28001
28002 static PyObject *_wrap_TreeCtrl_Unselect(PyObject *, PyObject *args, PyObject *kwargs) {
28003 PyObject *resultobj;
28004 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28005 PyObject * obj0 = 0 ;
28006 char *kwnames[] = {
28007 (char *) "self", NULL
28008 };
28009
28010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail;
28011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28013 {
28014 PyThreadState* __tstate = wxPyBeginAllowThreads();
28015 (arg1)->Unselect();
28016
28017 wxPyEndAllowThreads(__tstate);
28018 if (PyErr_Occurred()) SWIG_fail;
28019 }
28020 Py_INCREF(Py_None); resultobj = Py_None;
28021 return resultobj;
28022 fail:
28023 return NULL;
28024 }
28025
28026
28027 static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28028 PyObject *resultobj;
28029 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28030 wxTreeItemId *arg2 = 0 ;
28031 PyObject * obj0 = 0 ;
28032 PyObject * obj1 = 0 ;
28033 char *kwnames[] = {
28034 (char *) "self",(char *) "item", NULL
28035 };
28036
28037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail;
28038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28041 SWIG_POINTER_EXCEPTION | 0)) == -1)
28042 SWIG_fail;
28043 if (arg2 == NULL) {
28044 PyErr_SetString(PyExc_TypeError,"null reference");
28045 SWIG_fail;
28046 }
28047 {
28048 PyThreadState* __tstate = wxPyBeginAllowThreads();
28049 (arg1)->UnselectItem((wxTreeItemId const &)*arg2);
28050
28051 wxPyEndAllowThreads(__tstate);
28052 if (PyErr_Occurred()) SWIG_fail;
28053 }
28054 Py_INCREF(Py_None); resultobj = Py_None;
28055 return resultobj;
28056 fail:
28057 return NULL;
28058 }
28059
28060
28061 static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *, PyObject *args, PyObject *kwargs) {
28062 PyObject *resultobj;
28063 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28064 PyObject * obj0 = 0 ;
28065 char *kwnames[] = {
28066 (char *) "self", NULL
28067 };
28068
28069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail;
28070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28072 {
28073 PyThreadState* __tstate = wxPyBeginAllowThreads();
28074 (arg1)->UnselectAll();
28075
28076 wxPyEndAllowThreads(__tstate);
28077 if (PyErr_Occurred()) SWIG_fail;
28078 }
28079 Py_INCREF(Py_None); resultobj = Py_None;
28080 return resultobj;
28081 fail:
28082 return NULL;
28083 }
28084
28085
28086 static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *, PyObject *args, PyObject *kwargs) {
28087 PyObject *resultobj;
28088 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28089 wxTreeItemId *arg2 = 0 ;
28090 bool arg3 = (bool) true ;
28091 PyObject * obj0 = 0 ;
28092 PyObject * obj1 = 0 ;
28093 PyObject * obj2 = 0 ;
28094 char *kwnames[] = {
28095 (char *) "self",(char *) "item",(char *) "select", NULL
28096 };
28097
28098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail;
28099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28101 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28102 SWIG_POINTER_EXCEPTION | 0)) == -1)
28103 SWIG_fail;
28104 if (arg2 == NULL) {
28105 PyErr_SetString(PyExc_TypeError,"null reference");
28106 SWIG_fail;
28107 }
28108 if (obj2) {
28109 arg3 = (bool)SWIG_As_bool(obj2);
28110 if (PyErr_Occurred()) SWIG_fail;
28111 }
28112 {
28113 PyThreadState* __tstate = wxPyBeginAllowThreads();
28114 (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3);
28115
28116 wxPyEndAllowThreads(__tstate);
28117 if (PyErr_Occurred()) SWIG_fail;
28118 }
28119 Py_INCREF(Py_None); resultobj = Py_None;
28120 return resultobj;
28121 fail:
28122 return NULL;
28123 }
28124
28125
28126 static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *, PyObject *args, PyObject *kwargs) {
28127 PyObject *resultobj;
28128 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28129 wxTreeItemId *arg2 = 0 ;
28130 PyObject * obj0 = 0 ;
28131 PyObject * obj1 = 0 ;
28132 char *kwnames[] = {
28133 (char *) "self",(char *) "item", NULL
28134 };
28135
28136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail;
28137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28140 SWIG_POINTER_EXCEPTION | 0)) == -1)
28141 SWIG_fail;
28142 if (arg2 == NULL) {
28143 PyErr_SetString(PyExc_TypeError,"null reference");
28144 SWIG_fail;
28145 }
28146 {
28147 PyThreadState* __tstate = wxPyBeginAllowThreads();
28148 (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2);
28149
28150 wxPyEndAllowThreads(__tstate);
28151 if (PyErr_Occurred()) SWIG_fail;
28152 }
28153 Py_INCREF(Py_None); resultobj = Py_None;
28154 return resultobj;
28155 fail:
28156 return NULL;
28157 }
28158
28159
28160 static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *, PyObject *args, PyObject *kwargs) {
28161 PyObject *resultobj;
28162 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28163 wxTreeItemId *arg2 = 0 ;
28164 PyObject * obj0 = 0 ;
28165 PyObject * obj1 = 0 ;
28166 char *kwnames[] = {
28167 (char *) "self",(char *) "item", NULL
28168 };
28169
28170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail;
28171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28173 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28174 SWIG_POINTER_EXCEPTION | 0)) == -1)
28175 SWIG_fail;
28176 if (arg2 == NULL) {
28177 PyErr_SetString(PyExc_TypeError,"null reference");
28178 SWIG_fail;
28179 }
28180 {
28181 PyThreadState* __tstate = wxPyBeginAllowThreads();
28182 (arg1)->EnsureVisible((wxTreeItemId const &)*arg2);
28183
28184 wxPyEndAllowThreads(__tstate);
28185 if (PyErr_Occurred()) SWIG_fail;
28186 }
28187 Py_INCREF(Py_None); resultobj = Py_None;
28188 return resultobj;
28189 fail:
28190 return NULL;
28191 }
28192
28193
28194 static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *, PyObject *args, PyObject *kwargs) {
28195 PyObject *resultobj;
28196 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28197 wxTreeItemId *arg2 = 0 ;
28198 PyObject * obj0 = 0 ;
28199 PyObject * obj1 = 0 ;
28200 char *kwnames[] = {
28201 (char *) "self",(char *) "item", NULL
28202 };
28203
28204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail;
28205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28207 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28208 SWIG_POINTER_EXCEPTION | 0)) == -1)
28209 SWIG_fail;
28210 if (arg2 == NULL) {
28211 PyErr_SetString(PyExc_TypeError,"null reference");
28212 SWIG_fail;
28213 }
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 (arg1)->ScrollTo((wxTreeItemId const &)*arg2);
28217
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 Py_INCREF(Py_None); resultobj = Py_None;
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28229 PyObject *resultobj;
28230 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28231 wxTreeItemId *arg2 = 0 ;
28232 PyObject * obj0 = 0 ;
28233 PyObject * obj1 = 0 ;
28234 char *kwnames[] = {
28235 (char *) "self",(char *) "item", NULL
28236 };
28237
28238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail;
28239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28242 SWIG_POINTER_EXCEPTION | 0)) == -1)
28243 SWIG_fail;
28244 if (arg2 == NULL) {
28245 PyErr_SetString(PyExc_TypeError,"null reference");
28246 SWIG_fail;
28247 }
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 (arg1)->EditLabel((wxTreeItemId const &)*arg2);
28251
28252 wxPyEndAllowThreads(__tstate);
28253 if (PyErr_Occurred()) SWIG_fail;
28254 }
28255 Py_INCREF(Py_None); resultobj = Py_None;
28256 return resultobj;
28257 fail:
28258 return NULL;
28259 }
28260
28261
28262 static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *, PyObject *args, PyObject *kwargs) {
28263 PyObject *resultobj;
28264 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28265 wxTextCtrl *result;
28266 PyObject * obj0 = 0 ;
28267 char *kwnames[] = {
28268 (char *) "self", NULL
28269 };
28270
28271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail;
28272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28274 {
28275 PyThreadState* __tstate = wxPyBeginAllowThreads();
28276 result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl();
28277
28278 wxPyEndAllowThreads(__tstate);
28279 if (PyErr_Occurred()) SWIG_fail;
28280 }
28281 {
28282 resultobj = wxPyMake_wxObject(result, 0);
28283 }
28284 return resultobj;
28285 fail:
28286 return NULL;
28287 }
28288
28289
28290 static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *, PyObject *args, PyObject *kwargs) {
28291 PyObject *resultobj;
28292 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28293 wxTreeItemId *arg2 = 0 ;
28294 bool arg3 = (bool) false ;
28295 PyObject * obj0 = 0 ;
28296 PyObject * obj1 = 0 ;
28297 PyObject * obj2 = 0 ;
28298 char *kwnames[] = {
28299 (char *) "self",(char *) "item",(char *) "discardChanges", NULL
28300 };
28301
28302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail;
28303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28306 SWIG_POINTER_EXCEPTION | 0)) == -1)
28307 SWIG_fail;
28308 if (arg2 == NULL) {
28309 PyErr_SetString(PyExc_TypeError,"null reference");
28310 SWIG_fail;
28311 }
28312 if (obj2) {
28313 arg3 = (bool)SWIG_As_bool(obj2);
28314 if (PyErr_Occurred()) SWIG_fail;
28315 }
28316 {
28317 PyThreadState* __tstate = wxPyBeginAllowThreads();
28318 (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3);
28319
28320 wxPyEndAllowThreads(__tstate);
28321 if (PyErr_Occurred()) SWIG_fail;
28322 }
28323 Py_INCREF(Py_None); resultobj = Py_None;
28324 return resultobj;
28325 fail:
28326 return NULL;
28327 }
28328
28329
28330 static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *, PyObject *args, PyObject *kwargs) {
28331 PyObject *resultobj;
28332 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28333 wxTreeItemId *arg2 = 0 ;
28334 PyObject * obj0 = 0 ;
28335 PyObject * obj1 = 0 ;
28336 char *kwnames[] = {
28337 (char *) "self",(char *) "item", NULL
28338 };
28339
28340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail;
28341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28344 SWIG_POINTER_EXCEPTION | 0)) == -1)
28345 SWIG_fail;
28346 if (arg2 == NULL) {
28347 PyErr_SetString(PyExc_TypeError,"null reference");
28348 SWIG_fail;
28349 }
28350 {
28351 PyThreadState* __tstate = wxPyBeginAllowThreads();
28352 (arg1)->SortChildren((wxTreeItemId const &)*arg2);
28353
28354 wxPyEndAllowThreads(__tstate);
28355 if (PyErr_Occurred()) SWIG_fail;
28356 }
28357 Py_INCREF(Py_None); resultobj = Py_None;
28358 return resultobj;
28359 fail:
28360 return NULL;
28361 }
28362
28363
28364 static PyObject *_wrap_TreeCtrl_HitTest(PyObject *, PyObject *args, PyObject *kwargs) {
28365 PyObject *resultobj;
28366 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28367 wxPoint *arg2 = 0 ;
28368 int *arg3 = 0 ;
28369 wxTreeItemId result;
28370 wxPoint temp2 ;
28371 int temp3 ;
28372 int res3 = 0 ;
28373 PyObject * obj0 = 0 ;
28374 PyObject * obj1 = 0 ;
28375 char *kwnames[] = {
28376 (char *) "self",(char *) "point", NULL
28377 };
28378
28379 arg3 = &temp3; res3 = SWIG_NEWOBJ;
28380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail;
28381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28383 {
28384 arg2 = &temp2;
28385 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28386 }
28387 {
28388 PyThreadState* __tstate = wxPyBeginAllowThreads();
28389 result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3);
28390
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 {
28395 wxTreeItemId * resultptr;
28396 resultptr = new wxTreeItemId((wxTreeItemId &) result);
28397 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
28398 }
28399 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
28400 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
28401 return resultobj;
28402 fail:
28403 return NULL;
28404 }
28405
28406
28407 static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *, PyObject *args, PyObject *kwargs) {
28408 PyObject *resultobj;
28409 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28410 wxTreeItemId *arg2 = 0 ;
28411 bool arg3 = (bool) false ;
28412 PyObject *result;
28413 PyObject * obj0 = 0 ;
28414 PyObject * obj1 = 0 ;
28415 PyObject * obj2 = 0 ;
28416 char *kwnames[] = {
28417 (char *) "self",(char *) "item",(char *) "textOnly", NULL
28418 };
28419
28420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
28421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28423 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28424 SWIG_POINTER_EXCEPTION | 0)) == -1)
28425 SWIG_fail;
28426 if (arg2 == NULL) {
28427 PyErr_SetString(PyExc_TypeError,"null reference");
28428 SWIG_fail;
28429 }
28430 if (obj2) {
28431 arg3 = (bool)SWIG_As_bool(obj2);
28432 if (PyErr_Occurred()) SWIG_fail;
28433 }
28434 {
28435 PyThreadState* __tstate = wxPyBeginAllowThreads();
28436 result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3);
28437
28438 wxPyEndAllowThreads(__tstate);
28439 if (PyErr_Occurred()) SWIG_fail;
28440 }
28441 resultobj = result;
28442 return resultobj;
28443 fail:
28444 return NULL;
28445 }
28446
28447
28448 static PyObject *_wrap_TreeCtrl_SetState(PyObject *, PyObject *args, PyObject *kwargs) {
28449 PyObject *resultobj;
28450 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28451 wxTreeItemId *arg2 = 0 ;
28452 int arg3 ;
28453 PyObject * obj0 = 0 ;
28454 PyObject * obj1 = 0 ;
28455 PyObject * obj2 = 0 ;
28456 char *kwnames[] = {
28457 (char *) "self",(char *) "node",(char *) "state", NULL
28458 };
28459
28460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail;
28461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28464 SWIG_POINTER_EXCEPTION | 0)) == -1)
28465 SWIG_fail;
28466 if (arg2 == NULL) {
28467 PyErr_SetString(PyExc_TypeError,"null reference");
28468 SWIG_fail;
28469 }
28470 arg3 = (int)SWIG_As_int(obj2);
28471 if (PyErr_Occurred()) SWIG_fail;
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 (arg1)->SetState((wxTreeItemId const &)*arg2,arg3);
28475
28476 wxPyEndAllowThreads(__tstate);
28477 if (PyErr_Occurred()) SWIG_fail;
28478 }
28479 Py_INCREF(Py_None); resultobj = Py_None;
28480 return resultobj;
28481 fail:
28482 return NULL;
28483 }
28484
28485
28486 static PyObject *_wrap_TreeCtrl_GetState(PyObject *, PyObject *args, PyObject *kwargs) {
28487 PyObject *resultobj;
28488 wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ;
28489 wxTreeItemId *arg2 = 0 ;
28490 int result;
28491 PyObject * obj0 = 0 ;
28492 PyObject * obj1 = 0 ;
28493 char *kwnames[] = {
28494 (char *) "self",(char *) "node", NULL
28495 };
28496
28497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail;
28498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
28499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
28501 SWIG_POINTER_EXCEPTION | 0)) == -1)
28502 SWIG_fail;
28503 if (arg2 == NULL) {
28504 PyErr_SetString(PyExc_TypeError,"null reference");
28505 SWIG_fail;
28506 }
28507 {
28508 PyThreadState* __tstate = wxPyBeginAllowThreads();
28509 result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2);
28510
28511 wxPyEndAllowThreads(__tstate);
28512 if (PyErr_Occurred()) SWIG_fail;
28513 }
28514 resultobj = SWIG_From_int((int)result);
28515 return resultobj;
28516 fail:
28517 return NULL;
28518 }
28519
28520
28521 static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
28522 PyObject *resultobj;
28523 int arg1 = (int) wxWINDOW_VARIANT_NORMAL ;
28524 wxVisualAttributes result;
28525 PyObject * obj0 = 0 ;
28526 char *kwnames[] = {
28527 (char *) "variant", NULL
28528 };
28529
28530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail;
28531 if (obj0) {
28532 arg1 = (int)SWIG_As_int(obj0);
28533 if (PyErr_Occurred()) SWIG_fail;
28534 }
28535 {
28536 if (!wxPyCheckForApp()) SWIG_fail;
28537 PyThreadState* __tstate = wxPyBeginAllowThreads();
28538 result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1);
28539
28540 wxPyEndAllowThreads(__tstate);
28541 if (PyErr_Occurred()) SWIG_fail;
28542 }
28543 {
28544 wxVisualAttributes * resultptr;
28545 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
28546 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
28547 }
28548 return resultobj;
28549 fail:
28550 return NULL;
28551 }
28552
28553
28554 static PyObject * TreeCtrl_swigregister(PyObject *, PyObject *args) {
28555 PyObject *obj;
28556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
28557 SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj);
28558 Py_INCREF(obj);
28559 return Py_BuildValue((char *)"");
28560 }
28561 static int _wrap_DirDialogDefaultFolderStr_set(PyObject *) {
28562 PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only.");
28563 return 1;
28564 }
28565
28566
28567 static PyObject *_wrap_DirDialogDefaultFolderStr_get() {
28568 PyObject *pyobj;
28569
28570 {
28571 #if wxUSE_UNICODE
28572 pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28573 #else
28574 pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len());
28575 #endif
28576 }
28577 return pyobj;
28578 }
28579
28580
28581 static PyObject *_wrap_new_GenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28582 PyObject *resultobj;
28583 wxWindow *arg1 = (wxWindow *) 0 ;
28584 int arg2 = (int) (int)-1 ;
28585 wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ;
28586 wxString *arg3 = (wxString *) &arg3_defvalue ;
28587 wxPoint const &arg4_defvalue = wxDefaultPosition ;
28588 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
28589 wxSize const &arg5_defvalue = wxDefaultSize ;
28590 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
28591 long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28592 wxString const &arg7_defvalue = wxPyEmptyString ;
28593 wxString *arg7 = (wxString *) &arg7_defvalue ;
28594 int arg8 = (int) 0 ;
28595 wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ;
28596 wxString *arg9 = (wxString *) &arg9_defvalue ;
28597 wxGenericDirCtrl *result;
28598 bool temp3 = false ;
28599 wxPoint temp4 ;
28600 wxSize temp5 ;
28601 bool temp7 = false ;
28602 bool temp9 = false ;
28603 PyObject * obj0 = 0 ;
28604 PyObject * obj1 = 0 ;
28605 PyObject * obj2 = 0 ;
28606 PyObject * obj3 = 0 ;
28607 PyObject * obj4 = 0 ;
28608 PyObject * obj5 = 0 ;
28609 PyObject * obj6 = 0 ;
28610 PyObject * obj7 = 0 ;
28611 PyObject * obj8 = 0 ;
28612 char *kwnames[] = {
28613 (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28614 };
28615
28616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail;
28617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
28618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28619 if (obj1) {
28620 arg2 = (int)SWIG_As_int(obj1);
28621 if (PyErr_Occurred()) SWIG_fail;
28622 }
28623 if (obj2) {
28624 {
28625 arg3 = wxString_in_helper(obj2);
28626 if (arg3 == NULL) SWIG_fail;
28627 temp3 = true;
28628 }
28629 }
28630 if (obj3) {
28631 {
28632 arg4 = &temp4;
28633 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28634 }
28635 }
28636 if (obj4) {
28637 {
28638 arg5 = &temp5;
28639 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
28640 }
28641 }
28642 if (obj5) {
28643 arg6 = (long)SWIG_As_long(obj5);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 if (obj6) {
28647 {
28648 arg7 = wxString_in_helper(obj6);
28649 if (arg7 == NULL) SWIG_fail;
28650 temp7 = true;
28651 }
28652 }
28653 if (obj7) {
28654 arg8 = (int)SWIG_As_int(obj7);
28655 if (PyErr_Occurred()) SWIG_fail;
28656 }
28657 if (obj8) {
28658 {
28659 arg9 = wxString_in_helper(obj8);
28660 if (arg9 == NULL) SWIG_fail;
28661 temp9 = true;
28662 }
28663 }
28664 {
28665 if (!wxPyCheckForApp()) SWIG_fail;
28666 PyThreadState* __tstate = wxPyBeginAllowThreads();
28667 result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9);
28668
28669 wxPyEndAllowThreads(__tstate);
28670 if (PyErr_Occurred()) SWIG_fail;
28671 }
28672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28673 {
28674 if (temp3)
28675 delete arg3;
28676 }
28677 {
28678 if (temp7)
28679 delete arg7;
28680 }
28681 {
28682 if (temp9)
28683 delete arg9;
28684 }
28685 return resultobj;
28686 fail:
28687 {
28688 if (temp3)
28689 delete arg3;
28690 }
28691 {
28692 if (temp7)
28693 delete arg7;
28694 }
28695 {
28696 if (temp9)
28697 delete arg9;
28698 }
28699 return NULL;
28700 }
28701
28702
28703 static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
28704 PyObject *resultobj;
28705 wxGenericDirCtrl *result;
28706 char *kwnames[] = {
28707 NULL
28708 };
28709
28710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail;
28711 {
28712 if (!wxPyCheckForApp()) SWIG_fail;
28713 PyThreadState* __tstate = wxPyBeginAllowThreads();
28714 result = (wxGenericDirCtrl *)new wxGenericDirCtrl();
28715
28716 wxPyEndAllowThreads(__tstate);
28717 if (PyErr_Occurred()) SWIG_fail;
28718 }
28719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1);
28720 return resultobj;
28721 fail:
28722 return NULL;
28723 }
28724
28725
28726 static PyObject *_wrap_GenericDirCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
28727 PyObject *resultobj;
28728 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28729 wxWindow *arg2 = (wxWindow *) 0 ;
28730 int arg3 = (int) (int)-1 ;
28731 wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ;
28732 wxString *arg4 = (wxString *) &arg4_defvalue ;
28733 wxPoint const &arg5_defvalue = wxDefaultPosition ;
28734 wxPoint *arg5 = (wxPoint *) &arg5_defvalue ;
28735 wxSize const &arg6_defvalue = wxDefaultSize ;
28736 wxSize *arg6 = (wxSize *) &arg6_defvalue ;
28737 long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ;
28738 wxString const &arg8_defvalue = wxPyEmptyString ;
28739 wxString *arg8 = (wxString *) &arg8_defvalue ;
28740 int arg9 = (int) 0 ;
28741 wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ;
28742 wxString *arg10 = (wxString *) &arg10_defvalue ;
28743 bool result;
28744 bool temp4 = false ;
28745 wxPoint temp5 ;
28746 wxSize temp6 ;
28747 bool temp8 = false ;
28748 bool temp10 = false ;
28749 PyObject * obj0 = 0 ;
28750 PyObject * obj1 = 0 ;
28751 PyObject * obj2 = 0 ;
28752 PyObject * obj3 = 0 ;
28753 PyObject * obj4 = 0 ;
28754 PyObject * obj5 = 0 ;
28755 PyObject * obj6 = 0 ;
28756 PyObject * obj7 = 0 ;
28757 PyObject * obj8 = 0 ;
28758 PyObject * obj9 = 0 ;
28759 char *kwnames[] = {
28760 (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL
28761 };
28762
28763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail;
28764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28766 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
28767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28768 if (obj2) {
28769 arg3 = (int)SWIG_As_int(obj2);
28770 if (PyErr_Occurred()) SWIG_fail;
28771 }
28772 if (obj3) {
28773 {
28774 arg4 = wxString_in_helper(obj3);
28775 if (arg4 == NULL) SWIG_fail;
28776 temp4 = true;
28777 }
28778 }
28779 if (obj4) {
28780 {
28781 arg5 = &temp5;
28782 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
28783 }
28784 }
28785 if (obj5) {
28786 {
28787 arg6 = &temp6;
28788 if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail;
28789 }
28790 }
28791 if (obj6) {
28792 arg7 = (long)SWIG_As_long(obj6);
28793 if (PyErr_Occurred()) SWIG_fail;
28794 }
28795 if (obj7) {
28796 {
28797 arg8 = wxString_in_helper(obj7);
28798 if (arg8 == NULL) SWIG_fail;
28799 temp8 = true;
28800 }
28801 }
28802 if (obj8) {
28803 arg9 = (int)SWIG_As_int(obj8);
28804 if (PyErr_Occurred()) SWIG_fail;
28805 }
28806 if (obj9) {
28807 {
28808 arg10 = wxString_in_helper(obj9);
28809 if (arg10 == NULL) SWIG_fail;
28810 temp10 = true;
28811 }
28812 }
28813 {
28814 PyThreadState* __tstate = wxPyBeginAllowThreads();
28815 result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10);
28816
28817 wxPyEndAllowThreads(__tstate);
28818 if (PyErr_Occurred()) SWIG_fail;
28819 }
28820 {
28821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28822 }
28823 {
28824 if (temp4)
28825 delete arg4;
28826 }
28827 {
28828 if (temp8)
28829 delete arg8;
28830 }
28831 {
28832 if (temp10)
28833 delete arg10;
28834 }
28835 return resultobj;
28836 fail:
28837 {
28838 if (temp4)
28839 delete arg4;
28840 }
28841 {
28842 if (temp8)
28843 delete arg8;
28844 }
28845 {
28846 if (temp10)
28847 delete arg10;
28848 }
28849 return NULL;
28850 }
28851
28852
28853 static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *, PyObject *args, PyObject *kwargs) {
28854 PyObject *resultobj;
28855 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28856 wxString *arg2 = 0 ;
28857 bool result;
28858 bool temp2 = false ;
28859 PyObject * obj0 = 0 ;
28860 PyObject * obj1 = 0 ;
28861 char *kwnames[] = {
28862 (char *) "self",(char *) "path", NULL
28863 };
28864
28865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail;
28866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28868 {
28869 arg2 = wxString_in_helper(obj1);
28870 if (arg2 == NULL) SWIG_fail;
28871 temp2 = true;
28872 }
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 result = (bool)(arg1)->ExpandPath((wxString const &)*arg2);
28876
28877 wxPyEndAllowThreads(__tstate);
28878 if (PyErr_Occurred()) SWIG_fail;
28879 }
28880 {
28881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28882 }
28883 {
28884 if (temp2)
28885 delete arg2;
28886 }
28887 return resultobj;
28888 fail:
28889 {
28890 if (temp2)
28891 delete arg2;
28892 }
28893 return NULL;
28894 }
28895
28896
28897 static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28898 PyObject *resultobj;
28899 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28900 wxString result;
28901 PyObject * obj0 = 0 ;
28902 char *kwnames[] = {
28903 (char *) "self", NULL
28904 };
28905
28906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail;
28907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28909 {
28910 PyThreadState* __tstate = wxPyBeginAllowThreads();
28911 result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath();
28912
28913 wxPyEndAllowThreads(__tstate);
28914 if (PyErr_Occurred()) SWIG_fail;
28915 }
28916 {
28917 #if wxUSE_UNICODE
28918 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28919 #else
28920 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28921 #endif
28922 }
28923 return resultobj;
28924 fail:
28925 return NULL;
28926 }
28927
28928
28929 static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *, PyObject *args, PyObject *kwargs) {
28930 PyObject *resultobj;
28931 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28932 wxString *arg2 = 0 ;
28933 bool temp2 = false ;
28934 PyObject * obj0 = 0 ;
28935 PyObject * obj1 = 0 ;
28936 char *kwnames[] = {
28937 (char *) "self",(char *) "path", NULL
28938 };
28939
28940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail;
28941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28943 {
28944 arg2 = wxString_in_helper(obj1);
28945 if (arg2 == NULL) SWIG_fail;
28946 temp2 = true;
28947 }
28948 {
28949 PyThreadState* __tstate = wxPyBeginAllowThreads();
28950 (arg1)->SetDefaultPath((wxString const &)*arg2);
28951
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 Py_INCREF(Py_None); resultobj = Py_None;
28956 {
28957 if (temp2)
28958 delete arg2;
28959 }
28960 return resultobj;
28961 fail:
28962 {
28963 if (temp2)
28964 delete arg2;
28965 }
28966 return NULL;
28967 }
28968
28969
28970 static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *, PyObject *args, PyObject *kwargs) {
28971 PyObject *resultobj;
28972 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
28973 wxString result;
28974 PyObject * obj0 = 0 ;
28975 char *kwnames[] = {
28976 (char *) "self", NULL
28977 };
28978
28979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail;
28980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
28981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
28982 {
28983 PyThreadState* __tstate = wxPyBeginAllowThreads();
28984 result = ((wxGenericDirCtrl const *)arg1)->GetPath();
28985
28986 wxPyEndAllowThreads(__tstate);
28987 if (PyErr_Occurred()) SWIG_fail;
28988 }
28989 {
28990 #if wxUSE_UNICODE
28991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28992 #else
28993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28994 #endif
28995 }
28996 return resultobj;
28997 fail:
28998 return NULL;
28999 }
29000
29001
29002 static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *, PyObject *args, PyObject *kwargs) {
29003 PyObject *resultobj;
29004 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29005 wxString result;
29006 PyObject * obj0 = 0 ;
29007 char *kwnames[] = {
29008 (char *) "self", NULL
29009 };
29010
29011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail;
29012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29014 {
29015 PyThreadState* __tstate = wxPyBeginAllowThreads();
29016 result = ((wxGenericDirCtrl const *)arg1)->GetFilePath();
29017
29018 wxPyEndAllowThreads(__tstate);
29019 if (PyErr_Occurred()) SWIG_fail;
29020 }
29021 {
29022 #if wxUSE_UNICODE
29023 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29024 #else
29025 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29026 #endif
29027 }
29028 return resultobj;
29029 fail:
29030 return NULL;
29031 }
29032
29033
29034 static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *, PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj;
29036 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29037 wxString *arg2 = 0 ;
29038 bool temp2 = false ;
29039 PyObject * obj0 = 0 ;
29040 PyObject * obj1 = 0 ;
29041 char *kwnames[] = {
29042 (char *) "self",(char *) "path", NULL
29043 };
29044
29045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail;
29046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29048 {
29049 arg2 = wxString_in_helper(obj1);
29050 if (arg2 == NULL) SWIG_fail;
29051 temp2 = true;
29052 }
29053 {
29054 PyThreadState* __tstate = wxPyBeginAllowThreads();
29055 (arg1)->SetPath((wxString const &)*arg2);
29056
29057 wxPyEndAllowThreads(__tstate);
29058 if (PyErr_Occurred()) SWIG_fail;
29059 }
29060 Py_INCREF(Py_None); resultobj = Py_None;
29061 {
29062 if (temp2)
29063 delete arg2;
29064 }
29065 return resultobj;
29066 fail:
29067 {
29068 if (temp2)
29069 delete arg2;
29070 }
29071 return NULL;
29072 }
29073
29074
29075 static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29076 PyObject *resultobj;
29077 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29078 bool arg2 ;
29079 PyObject * obj0 = 0 ;
29080 PyObject * obj1 = 0 ;
29081 char *kwnames[] = {
29082 (char *) "self",(char *) "show", NULL
29083 };
29084
29085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail;
29086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29088 arg2 = (bool)SWIG_As_bool(obj1);
29089 if (PyErr_Occurred()) SWIG_fail;
29090 {
29091 PyThreadState* __tstate = wxPyBeginAllowThreads();
29092 (arg1)->ShowHidden(arg2);
29093
29094 wxPyEndAllowThreads(__tstate);
29095 if (PyErr_Occurred()) SWIG_fail;
29096 }
29097 Py_INCREF(Py_None); resultobj = Py_None;
29098 return resultobj;
29099 fail:
29100 return NULL;
29101 }
29102
29103
29104 static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *, PyObject *args, PyObject *kwargs) {
29105 PyObject *resultobj;
29106 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29107 bool result;
29108 PyObject * obj0 = 0 ;
29109 char *kwnames[] = {
29110 (char *) "self", NULL
29111 };
29112
29113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail;
29114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29116 {
29117 PyThreadState* __tstate = wxPyBeginAllowThreads();
29118 result = (bool)(arg1)->GetShowHidden();
29119
29120 wxPyEndAllowThreads(__tstate);
29121 if (PyErr_Occurred()) SWIG_fail;
29122 }
29123 {
29124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29125 }
29126 return resultobj;
29127 fail:
29128 return NULL;
29129 }
29130
29131
29132 static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj;
29134 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29135 wxString result;
29136 PyObject * obj0 = 0 ;
29137 char *kwnames[] = {
29138 (char *) "self", NULL
29139 };
29140
29141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail;
29142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29144 {
29145 PyThreadState* __tstate = wxPyBeginAllowThreads();
29146 result = ((wxGenericDirCtrl const *)arg1)->GetFilter();
29147
29148 wxPyEndAllowThreads(__tstate);
29149 if (PyErr_Occurred()) SWIG_fail;
29150 }
29151 {
29152 #if wxUSE_UNICODE
29153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29154 #else
29155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29156 #endif
29157 }
29158 return resultobj;
29159 fail:
29160 return NULL;
29161 }
29162
29163
29164 static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *, PyObject *args, PyObject *kwargs) {
29165 PyObject *resultobj;
29166 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29167 wxString *arg2 = 0 ;
29168 bool temp2 = false ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 char *kwnames[] = {
29172 (char *) "self",(char *) "filter", NULL
29173 };
29174
29175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail;
29176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29178 {
29179 arg2 = wxString_in_helper(obj1);
29180 if (arg2 == NULL) SWIG_fail;
29181 temp2 = true;
29182 }
29183 {
29184 PyThreadState* __tstate = wxPyBeginAllowThreads();
29185 (arg1)->SetFilter((wxString const &)*arg2);
29186
29187 wxPyEndAllowThreads(__tstate);
29188 if (PyErr_Occurred()) SWIG_fail;
29189 }
29190 Py_INCREF(Py_None); resultobj = Py_None;
29191 {
29192 if (temp2)
29193 delete arg2;
29194 }
29195 return resultobj;
29196 fail:
29197 {
29198 if (temp2)
29199 delete arg2;
29200 }
29201 return NULL;
29202 }
29203
29204
29205 static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29206 PyObject *resultobj;
29207 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29208 int result;
29209 PyObject * obj0 = 0 ;
29210 char *kwnames[] = {
29211 (char *) "self", NULL
29212 };
29213
29214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail;
29215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29217 {
29218 PyThreadState* __tstate = wxPyBeginAllowThreads();
29219 result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex();
29220
29221 wxPyEndAllowThreads(__tstate);
29222 if (PyErr_Occurred()) SWIG_fail;
29223 }
29224 resultobj = SWIG_From_int((int)result);
29225 return resultobj;
29226 fail:
29227 return NULL;
29228 }
29229
29230
29231 static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *, PyObject *args, PyObject *kwargs) {
29232 PyObject *resultobj;
29233 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29234 int arg2 ;
29235 PyObject * obj0 = 0 ;
29236 PyObject * obj1 = 0 ;
29237 char *kwnames[] = {
29238 (char *) "self",(char *) "n", NULL
29239 };
29240
29241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail;
29242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29244 arg2 = (int)SWIG_As_int(obj1);
29245 if (PyErr_Occurred()) SWIG_fail;
29246 {
29247 PyThreadState* __tstate = wxPyBeginAllowThreads();
29248 (arg1)->SetFilterIndex(arg2);
29249
29250 wxPyEndAllowThreads(__tstate);
29251 if (PyErr_Occurred()) SWIG_fail;
29252 }
29253 Py_INCREF(Py_None); resultobj = Py_None;
29254 return resultobj;
29255 fail:
29256 return NULL;
29257 }
29258
29259
29260 static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *, PyObject *args, PyObject *kwargs) {
29261 PyObject *resultobj;
29262 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29263 wxTreeItemId result;
29264 PyObject * obj0 = 0 ;
29265 char *kwnames[] = {
29266 (char *) "self", NULL
29267 };
29268
29269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail;
29270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29272 {
29273 PyThreadState* __tstate = wxPyBeginAllowThreads();
29274 result = (arg1)->GetRootId();
29275
29276 wxPyEndAllowThreads(__tstate);
29277 if (PyErr_Occurred()) SWIG_fail;
29278 }
29279 {
29280 wxTreeItemId * resultptr;
29281 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29282 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29283 }
29284 return resultobj;
29285 fail:
29286 return NULL;
29287 }
29288
29289
29290 static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29291 PyObject *resultobj;
29292 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29293 wxPyTreeCtrl *result;
29294 PyObject * obj0 = 0 ;
29295 char *kwnames[] = {
29296 (char *) "self", NULL
29297 };
29298
29299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail;
29300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29302 {
29303 PyThreadState* __tstate = wxPyBeginAllowThreads();
29304 result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl();
29305
29306 wxPyEndAllowThreads(__tstate);
29307 if (PyErr_Occurred()) SWIG_fail;
29308 }
29309 {
29310 resultobj = wxPyMake_wxObject(result, 0);
29311 }
29312 return resultobj;
29313 fail:
29314 return NULL;
29315 }
29316
29317
29318 static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29319 PyObject *resultobj;
29320 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29321 wxDirFilterListCtrl *result;
29322 PyObject * obj0 = 0 ;
29323 char *kwnames[] = {
29324 (char *) "self", NULL
29325 };
29326
29327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail;
29328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl();
29333
29334 wxPyEndAllowThreads(__tstate);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0);
29338 return resultobj;
29339 fail:
29340 return NULL;
29341 }
29342
29343
29344 static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *, PyObject *args, PyObject *kwargs) {
29345 PyObject *resultobj;
29346 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29347 wxTreeItemId arg2 ;
29348 wxString *arg3 = 0 ;
29349 bool *arg4 = 0 ;
29350 wxTreeItemId result;
29351 wxTreeItemId *argp2 ;
29352 bool temp3 = false ;
29353 bool temp4 ;
29354 int res4 = 0 ;
29355 PyObject * obj0 = 0 ;
29356 PyObject * obj1 = 0 ;
29357 PyObject * obj2 = 0 ;
29358 char *kwnames[] = {
29359 (char *) "self",(char *) "parentId",(char *) "path", NULL
29360 };
29361
29362 arg4 = &temp4; res4 = SWIG_NEWOBJ;
29363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail;
29364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29366 if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId,
29367 SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail;
29368 arg2 = *argp2;
29369 {
29370 arg3 = wxString_in_helper(obj2);
29371 if (arg3 == NULL) SWIG_fail;
29372 temp3 = true;
29373 }
29374 {
29375 PyThreadState* __tstate = wxPyBeginAllowThreads();
29376 result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4);
29377
29378 wxPyEndAllowThreads(__tstate);
29379 if (PyErr_Occurred()) SWIG_fail;
29380 }
29381 {
29382 wxTreeItemId * resultptr;
29383 resultptr = new wxTreeItemId((wxTreeItemId &) result);
29384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1);
29385 }
29386 resultobj = t_output_helper(resultobj, ((res4 == SWIG_NEWOBJ) ?
29387 SWIG_From_bool((*arg4)) : SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_bool, 0)));
29388 {
29389 if (temp3)
29390 delete arg3;
29391 }
29392 return resultobj;
29393 fail:
29394 {
29395 if (temp3)
29396 delete arg3;
29397 }
29398 return NULL;
29399 }
29400
29401
29402 static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *, PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj;
29404 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29405 PyObject * obj0 = 0 ;
29406 char *kwnames[] = {
29407 (char *) "self", NULL
29408 };
29409
29410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail;
29411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29413 {
29414 PyThreadState* __tstate = wxPyBeginAllowThreads();
29415 (arg1)->DoResize();
29416
29417 wxPyEndAllowThreads(__tstate);
29418 if (PyErr_Occurred()) SWIG_fail;
29419 }
29420 Py_INCREF(Py_None); resultobj = Py_None;
29421 return resultobj;
29422 fail:
29423 return NULL;
29424 }
29425
29426
29427 static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *, PyObject *args, PyObject *kwargs) {
29428 PyObject *resultobj;
29429 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29430 PyObject * obj0 = 0 ;
29431 char *kwnames[] = {
29432 (char *) "self", NULL
29433 };
29434
29435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail;
29436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29438 {
29439 PyThreadState* __tstate = wxPyBeginAllowThreads();
29440 (arg1)->ReCreateTree();
29441
29442 wxPyEndAllowThreads(__tstate);
29443 if (PyErr_Occurred()) SWIG_fail;
29444 }
29445 Py_INCREF(Py_None); resultobj = Py_None;
29446 return resultobj;
29447 fail:
29448 return NULL;
29449 }
29450
29451
29452 static PyObject * GenericDirCtrl_swigregister(PyObject *, PyObject *args) {
29453 PyObject *obj;
29454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29455 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj);
29456 Py_INCREF(obj);
29457 return Py_BuildValue((char *)"");
29458 }
29459 static PyObject *_wrap_new_DirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29460 PyObject *resultobj;
29461 wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ;
29462 int arg2 = (int) (int)-1 ;
29463 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29464 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29465 wxSize const &arg4_defvalue = wxDefaultSize ;
29466 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29467 long arg5 = (long) 0 ;
29468 wxDirFilterListCtrl *result;
29469 wxPoint temp3 ;
29470 wxSize temp4 ;
29471 PyObject * obj0 = 0 ;
29472 PyObject * obj1 = 0 ;
29473 PyObject * obj2 = 0 ;
29474 PyObject * obj3 = 0 ;
29475 PyObject * obj4 = 0 ;
29476 char *kwnames[] = {
29477 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29478 };
29479
29480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl,
29482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29483 if (obj1) {
29484 arg2 = (int)SWIG_As_int(obj1);
29485 if (PyErr_Occurred()) SWIG_fail;
29486 }
29487 if (obj2) {
29488 {
29489 arg3 = &temp3;
29490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29491 }
29492 }
29493 if (obj3) {
29494 {
29495 arg4 = &temp4;
29496 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29497 }
29498 }
29499 if (obj4) {
29500 arg5 = (long)SWIG_As_long(obj4);
29501 if (PyErr_Occurred()) SWIG_fail;
29502 }
29503 {
29504 if (!wxPyCheckForApp()) SWIG_fail;
29505 PyThreadState* __tstate = wxPyBeginAllowThreads();
29506 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
29507
29508 wxPyEndAllowThreads(__tstate);
29509 if (PyErr_Occurred()) SWIG_fail;
29510 }
29511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29512 return resultobj;
29513 fail:
29514 return NULL;
29515 }
29516
29517
29518 static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *, PyObject *args, PyObject *kwargs) {
29519 PyObject *resultobj;
29520 wxDirFilterListCtrl *result;
29521 char *kwnames[] = {
29522 NULL
29523 };
29524
29525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail;
29526 {
29527 if (!wxPyCheckForApp()) SWIG_fail;
29528 PyThreadState* __tstate = wxPyBeginAllowThreads();
29529 result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl();
29530
29531 wxPyEndAllowThreads(__tstate);
29532 if (PyErr_Occurred()) SWIG_fail;
29533 }
29534 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1);
29535 return resultobj;
29536 fail:
29537 return NULL;
29538 }
29539
29540
29541 static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *, PyObject *args, PyObject *kwargs) {
29542 PyObject *resultobj;
29543 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29544 wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ;
29545 int arg3 = (int) (int)-1 ;
29546 wxPoint const &arg4_defvalue = wxDefaultPosition ;
29547 wxPoint *arg4 = (wxPoint *) &arg4_defvalue ;
29548 wxSize const &arg5_defvalue = wxDefaultSize ;
29549 wxSize *arg5 = (wxSize *) &arg5_defvalue ;
29550 long arg6 = (long) 0 ;
29551 bool result;
29552 wxPoint temp4 ;
29553 wxSize temp5 ;
29554 PyObject * obj0 = 0 ;
29555 PyObject * obj1 = 0 ;
29556 PyObject * obj2 = 0 ;
29557 PyObject * obj3 = 0 ;
29558 PyObject * obj4 = 0 ;
29559 PyObject * obj5 = 0 ;
29560 char *kwnames[] = {
29561 (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
29562 };
29563
29564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl,
29568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29569 if (obj2) {
29570 arg3 = (int)SWIG_As_int(obj2);
29571 if (PyErr_Occurred()) SWIG_fail;
29572 }
29573 if (obj3) {
29574 {
29575 arg4 = &temp4;
29576 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
29577 }
29578 }
29579 if (obj4) {
29580 {
29581 arg5 = &temp5;
29582 if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail;
29583 }
29584 }
29585 if (obj5) {
29586 arg6 = (long)SWIG_As_long(obj5);
29587 if (PyErr_Occurred()) SWIG_fail;
29588 }
29589 {
29590 PyThreadState* __tstate = wxPyBeginAllowThreads();
29591 result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6);
29592
29593 wxPyEndAllowThreads(__tstate);
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 {
29597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29598 }
29599 return resultobj;
29600 fail:
29601 return NULL;
29602 }
29603
29604
29605 static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *, PyObject *args, PyObject *kwargs) {
29606 PyObject *resultobj;
29607 wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ;
29608 wxString *arg2 = 0 ;
29609 int arg3 ;
29610 bool temp2 = false ;
29611 PyObject * obj0 = 0 ;
29612 PyObject * obj1 = 0 ;
29613 PyObject * obj2 = 0 ;
29614 char *kwnames[] = {
29615 (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL
29616 };
29617
29618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail;
29619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl,
29620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29621 {
29622 arg2 = wxString_in_helper(obj1);
29623 if (arg2 == NULL) SWIG_fail;
29624 temp2 = true;
29625 }
29626 arg3 = (int)SWIG_As_int(obj2);
29627 if (PyErr_Occurred()) SWIG_fail;
29628 {
29629 PyThreadState* __tstate = wxPyBeginAllowThreads();
29630 (arg1)->FillFilterList((wxString const &)*arg2,arg3);
29631
29632 wxPyEndAllowThreads(__tstate);
29633 if (PyErr_Occurred()) SWIG_fail;
29634 }
29635 Py_INCREF(Py_None); resultobj = Py_None;
29636 {
29637 if (temp2)
29638 delete arg2;
29639 }
29640 return resultobj;
29641 fail:
29642 {
29643 if (temp2)
29644 delete arg2;
29645 }
29646 return NULL;
29647 }
29648
29649
29650 static PyObject * DirFilterListCtrl_swigregister(PyObject *, PyObject *args) {
29651 PyObject *obj;
29652 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
29653 SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj);
29654 Py_INCREF(obj);
29655 return Py_BuildValue((char *)"");
29656 }
29657 static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29658 PyObject *resultobj;
29659 wxWindow *arg1 = (wxWindow *) 0 ;
29660 int arg2 = (int) (int)-1 ;
29661 wxPoint const &arg3_defvalue = wxDefaultPosition ;
29662 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
29663 wxSize const &arg4_defvalue = wxDefaultSize ;
29664 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
29665 long arg5 = (long) 0 ;
29666 wxValidator const &arg6_defvalue = wxDefaultValidator ;
29667 wxValidator *arg6 = (wxValidator *) &arg6_defvalue ;
29668 wxString const &arg7_defvalue = wxPyControlNameStr ;
29669 wxString *arg7 = (wxString *) &arg7_defvalue ;
29670 wxPyControl *result;
29671 wxPoint temp3 ;
29672 wxSize temp4 ;
29673 bool temp7 = false ;
29674 PyObject * obj0 = 0 ;
29675 PyObject * obj1 = 0 ;
29676 PyObject * obj2 = 0 ;
29677 PyObject * obj3 = 0 ;
29678 PyObject * obj4 = 0 ;
29679 PyObject * obj5 = 0 ;
29680 PyObject * obj6 = 0 ;
29681 char *kwnames[] = {
29682 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL
29683 };
29684
29685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
29686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
29687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29688 if (obj1) {
29689 arg2 = (int)SWIG_As_int(obj1);
29690 if (PyErr_Occurred()) SWIG_fail;
29691 }
29692 if (obj2) {
29693 {
29694 arg3 = &temp3;
29695 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29696 }
29697 }
29698 if (obj3) {
29699 {
29700 arg4 = &temp4;
29701 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
29702 }
29703 }
29704 if (obj4) {
29705 arg5 = (long)SWIG_As_long(obj4);
29706 if (PyErr_Occurred()) SWIG_fail;
29707 }
29708 if (obj5) {
29709 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator,
29710 SWIG_POINTER_EXCEPTION | 0)) == -1)
29711 SWIG_fail;
29712 if (arg6 == NULL) {
29713 PyErr_SetString(PyExc_TypeError,"null reference");
29714 SWIG_fail;
29715 }
29716 }
29717 if (obj6) {
29718 {
29719 arg7 = wxString_in_helper(obj6);
29720 if (arg7 == NULL) SWIG_fail;
29721 temp7 = true;
29722 }
29723 }
29724 {
29725 if (!wxPyCheckForApp()) SWIG_fail;
29726 PyThreadState* __tstate = wxPyBeginAllowThreads();
29727 result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7);
29728
29729 wxPyEndAllowThreads(__tstate);
29730 if (PyErr_Occurred()) SWIG_fail;
29731 }
29732 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29733 {
29734 if (temp7)
29735 delete arg7;
29736 }
29737 return resultobj;
29738 fail:
29739 {
29740 if (temp7)
29741 delete arg7;
29742 }
29743 return NULL;
29744 }
29745
29746
29747 static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
29748 PyObject *resultobj;
29749 wxPyControl *result;
29750 char *kwnames[] = {
29751 NULL
29752 };
29753
29754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
29755 {
29756 if (!wxPyCheckForApp()) SWIG_fail;
29757 PyThreadState* __tstate = wxPyBeginAllowThreads();
29758 result = (wxPyControl *)new wxPyControl();
29759
29760 wxPyEndAllowThreads(__tstate);
29761 if (PyErr_Occurred()) SWIG_fail;
29762 }
29763 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
29764 return resultobj;
29765 fail:
29766 return NULL;
29767 }
29768
29769
29770 static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
29771 PyObject *resultobj;
29772 wxPyControl *arg1 = (wxPyControl *) 0 ;
29773 PyObject *arg2 = (PyObject *) 0 ;
29774 PyObject *arg3 = (PyObject *) 0 ;
29775 PyObject * obj0 = 0 ;
29776 PyObject * obj1 = 0 ;
29777 PyObject * obj2 = 0 ;
29778 char *kwnames[] = {
29779 (char *) "self",(char *) "self",(char *) "_class", NULL
29780 };
29781
29782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail;
29783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29785 arg2 = obj1;
29786 arg3 = obj2;
29787 {
29788 PyThreadState* __tstate = wxPyBeginAllowThreads();
29789 (arg1)->_setCallbackInfo(arg2,arg3);
29790
29791 wxPyEndAllowThreads(__tstate);
29792 if (PyErr_Occurred()) SWIG_fail;
29793 }
29794 Py_INCREF(Py_None); resultobj = Py_None;
29795 return resultobj;
29796 fail:
29797 return NULL;
29798 }
29799
29800
29801 static PyObject *_wrap_PyControl_SetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
29802 PyObject *resultobj;
29803 wxPyControl *arg1 = (wxPyControl *) 0 ;
29804 wxSize *arg2 = 0 ;
29805 wxSize temp2 ;
29806 PyObject * obj0 = 0 ;
29807 PyObject * obj1 = 0 ;
29808 char *kwnames[] = {
29809 (char *) "self",(char *) "size", NULL
29810 };
29811
29812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail;
29813 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29814 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29815 {
29816 arg2 = &temp2;
29817 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
29818 }
29819 {
29820 PyThreadState* __tstate = wxPyBeginAllowThreads();
29821 (arg1)->SetBestSize((wxSize const &)*arg2);
29822
29823 wxPyEndAllowThreads(__tstate);
29824 if (PyErr_Occurred()) SWIG_fail;
29825 }
29826 Py_INCREF(Py_None); resultobj = Py_None;
29827 return resultobj;
29828 fail:
29829 return NULL;
29830 }
29831
29832
29833 static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *, PyObject *args, PyObject *kwargs) {
29834 PyObject *resultobj;
29835 wxPyControl *arg1 = (wxPyControl *) 0 ;
29836 int arg2 ;
29837 int arg3 ;
29838 int arg4 ;
29839 int arg5 ;
29840 PyObject * obj0 = 0 ;
29841 PyObject * obj1 = 0 ;
29842 PyObject * obj2 = 0 ;
29843 PyObject * obj3 = 0 ;
29844 PyObject * obj4 = 0 ;
29845 char *kwnames[] = {
29846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29847 };
29848
29849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
29850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29852 arg2 = (int)SWIG_As_int(obj1);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 arg3 = (int)SWIG_As_int(obj2);
29855 if (PyErr_Occurred()) SWIG_fail;
29856 arg4 = (int)SWIG_As_int(obj3);
29857 if (PyErr_Occurred()) SWIG_fail;
29858 arg5 = (int)SWIG_As_int(obj4);
29859 if (PyErr_Occurred()) SWIG_fail;
29860 {
29861 PyThreadState* __tstate = wxPyBeginAllowThreads();
29862 (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5);
29863
29864 wxPyEndAllowThreads(__tstate);
29865 if (PyErr_Occurred()) SWIG_fail;
29866 }
29867 Py_INCREF(Py_None); resultobj = Py_None;
29868 return resultobj;
29869 fail:
29870 return NULL;
29871 }
29872
29873
29874 static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29875 PyObject *resultobj;
29876 wxPyControl *arg1 = (wxPyControl *) 0 ;
29877 int arg2 ;
29878 int arg3 ;
29879 int arg4 ;
29880 int arg5 ;
29881 int arg6 = (int) wxSIZE_AUTO ;
29882 PyObject * obj0 = 0 ;
29883 PyObject * obj1 = 0 ;
29884 PyObject * obj2 = 0 ;
29885 PyObject * obj3 = 0 ;
29886 PyObject * obj4 = 0 ;
29887 PyObject * obj5 = 0 ;
29888 char *kwnames[] = {
29889 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL
29890 };
29891
29892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
29893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29895 arg2 = (int)SWIG_As_int(obj1);
29896 if (PyErr_Occurred()) SWIG_fail;
29897 arg3 = (int)SWIG_As_int(obj2);
29898 if (PyErr_Occurred()) SWIG_fail;
29899 arg4 = (int)SWIG_As_int(obj3);
29900 if (PyErr_Occurred()) SWIG_fail;
29901 arg5 = (int)SWIG_As_int(obj4);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 if (obj5) {
29904 arg6 = (int)SWIG_As_int(obj5);
29905 if (PyErr_Occurred()) SWIG_fail;
29906 }
29907 {
29908 PyThreadState* __tstate = wxPyBeginAllowThreads();
29909 (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6);
29910
29911 wxPyEndAllowThreads(__tstate);
29912 if (PyErr_Occurred()) SWIG_fail;
29913 }
29914 Py_INCREF(Py_None); resultobj = Py_None;
29915 return resultobj;
29916 fail:
29917 return NULL;
29918 }
29919
29920
29921 static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
29922 PyObject *resultobj;
29923 wxPyControl *arg1 = (wxPyControl *) 0 ;
29924 int arg2 ;
29925 int arg3 ;
29926 PyObject * obj0 = 0 ;
29927 PyObject * obj1 = 0 ;
29928 PyObject * obj2 = 0 ;
29929 char *kwnames[] = {
29930 (char *) "self",(char *) "width",(char *) "height", NULL
29931 };
29932
29933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29936 arg2 = (int)SWIG_As_int(obj1);
29937 if (PyErr_Occurred()) SWIG_fail;
29938 arg3 = (int)SWIG_As_int(obj2);
29939 if (PyErr_Occurred()) SWIG_fail;
29940 {
29941 PyThreadState* __tstate = wxPyBeginAllowThreads();
29942 (arg1)->base_DoSetClientSize(arg2,arg3);
29943
29944 wxPyEndAllowThreads(__tstate);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 Py_INCREF(Py_None); resultobj = Py_None;
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj;
29956 wxPyControl *arg1 = (wxPyControl *) 0 ;
29957 int arg2 ;
29958 int arg3 ;
29959 PyObject * obj0 = 0 ;
29960 PyObject * obj1 = 0 ;
29961 PyObject * obj2 = 0 ;
29962 char *kwnames[] = {
29963 (char *) "self",(char *) "x",(char *) "y", NULL
29964 };
29965
29966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
29967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
29968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
29969 arg2 = (int)SWIG_As_int(obj1);
29970 if (PyErr_Occurred()) SWIG_fail;
29971 arg3 = (int)SWIG_As_int(obj2);
29972 if (PyErr_Occurred()) SWIG_fail;
29973 {
29974 PyThreadState* __tstate = wxPyBeginAllowThreads();
29975 (arg1)->base_DoSetVirtualSize(arg2,arg3);
29976
29977 wxPyEndAllowThreads(__tstate);
29978 if (PyErr_Occurred()) SWIG_fail;
29979 }
29980 Py_INCREF(Py_None); resultobj = Py_None;
29981 return resultobj;
29982 fail:
29983 return NULL;
29984 }
29985
29986
29987 static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *, PyObject *args, PyObject *kwargs) {
29988 PyObject *resultobj;
29989 wxPyControl *arg1 = (wxPyControl *) 0 ;
29990 int *arg2 = (int *) 0 ;
29991 int *arg3 = (int *) 0 ;
29992 int temp2 ;
29993 int res2 = 0 ;
29994 int temp3 ;
29995 int res3 = 0 ;
29996 PyObject * obj0 = 0 ;
29997 char *kwnames[] = {
29998 (char *) "self", NULL
29999 };
30000
30001 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30002 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail;
30004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30006 {
30007 PyThreadState* __tstate = wxPyBeginAllowThreads();
30008 ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3);
30009
30010 wxPyEndAllowThreads(__tstate);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 Py_INCREF(Py_None); resultobj = Py_None;
30014 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30015 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30016 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30017 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30018 return resultobj;
30019 fail:
30020 return NULL;
30021 }
30022
30023
30024 static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *, PyObject *args, PyObject *kwargs) {
30025 PyObject *resultobj;
30026 wxPyControl *arg1 = (wxPyControl *) 0 ;
30027 int *arg2 = (int *) 0 ;
30028 int *arg3 = (int *) 0 ;
30029 int temp2 ;
30030 int res2 = 0 ;
30031 int temp3 ;
30032 int res3 = 0 ;
30033 PyObject * obj0 = 0 ;
30034 char *kwnames[] = {
30035 (char *) "self", NULL
30036 };
30037
30038 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30039 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail;
30041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30043 {
30044 PyThreadState* __tstate = wxPyBeginAllowThreads();
30045 ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3);
30046
30047 wxPyEndAllowThreads(__tstate);
30048 if (PyErr_Occurred()) SWIG_fail;
30049 }
30050 Py_INCREF(Py_None); resultobj = Py_None;
30051 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30052 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30053 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30054 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30055 return resultobj;
30056 fail:
30057 return NULL;
30058 }
30059
30060
30061 static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30062 PyObject *resultobj;
30063 wxPyControl *arg1 = (wxPyControl *) 0 ;
30064 int *arg2 = (int *) 0 ;
30065 int *arg3 = (int *) 0 ;
30066 int temp2 ;
30067 int res2 = 0 ;
30068 int temp3 ;
30069 int res3 = 0 ;
30070 PyObject * obj0 = 0 ;
30071 char *kwnames[] = {
30072 (char *) "self", NULL
30073 };
30074
30075 arg2 = &temp2; res2 = SWIG_NEWOBJ;
30076 arg3 = &temp3; res3 = SWIG_NEWOBJ;
30077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail;
30078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30080 {
30081 PyThreadState* __tstate = wxPyBeginAllowThreads();
30082 ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3);
30083
30084 wxPyEndAllowThreads(__tstate);
30085 if (PyErr_Occurred()) SWIG_fail;
30086 }
30087 Py_INCREF(Py_None); resultobj = Py_None;
30088 resultobj = t_output_helper(resultobj, ((res2 == SWIG_NEWOBJ) ?
30089 SWIG_From_int((*arg2)) : SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, 0)));
30090 resultobj = t_output_helper(resultobj, ((res3 == SWIG_NEWOBJ) ?
30091 SWIG_From_int((*arg3)) : SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, 0)));
30092 return resultobj;
30093 fail:
30094 return NULL;
30095 }
30096
30097
30098 static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *, PyObject *args, PyObject *kwargs) {
30099 PyObject *resultobj;
30100 wxPyControl *arg1 = (wxPyControl *) 0 ;
30101 wxSize result;
30102 PyObject * obj0 = 0 ;
30103 char *kwnames[] = {
30104 (char *) "self", NULL
30105 };
30106
30107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail;
30108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30110 {
30111 PyThreadState* __tstate = wxPyBeginAllowThreads();
30112 result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize();
30113
30114 wxPyEndAllowThreads(__tstate);
30115 if (PyErr_Occurred()) SWIG_fail;
30116 }
30117 {
30118 wxSize * resultptr;
30119 resultptr = new wxSize((wxSize &) result);
30120 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30121 }
30122 return resultobj;
30123 fail:
30124 return NULL;
30125 }
30126
30127
30128 static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *, PyObject *args, PyObject *kwargs) {
30129 PyObject *resultobj;
30130 wxPyControl *arg1 = (wxPyControl *) 0 ;
30131 wxSize result;
30132 PyObject * obj0 = 0 ;
30133 char *kwnames[] = {
30134 (char *) "self", NULL
30135 };
30136
30137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail;
30138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30140 {
30141 PyThreadState* __tstate = wxPyBeginAllowThreads();
30142 result = ((wxPyControl const *)arg1)->base_DoGetBestSize();
30143
30144 wxPyEndAllowThreads(__tstate);
30145 if (PyErr_Occurred()) SWIG_fail;
30146 }
30147 {
30148 wxSize * resultptr;
30149 resultptr = new wxSize((wxSize &) result);
30150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30151 }
30152 return resultobj;
30153 fail:
30154 return NULL;
30155 }
30156
30157
30158 static PyObject *_wrap_PyControl_base_InitDialog(PyObject *, PyObject *args, PyObject *kwargs) {
30159 PyObject *resultobj;
30160 wxPyControl *arg1 = (wxPyControl *) 0 ;
30161 PyObject * obj0 = 0 ;
30162 char *kwnames[] = {
30163 (char *) "self", NULL
30164 };
30165
30166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail;
30167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30169 {
30170 PyThreadState* __tstate = wxPyBeginAllowThreads();
30171 (arg1)->base_InitDialog();
30172
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 Py_INCREF(Py_None); resultobj = Py_None;
30177 return resultobj;
30178 fail:
30179 return NULL;
30180 }
30181
30182
30183 static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj;
30185 wxPyControl *arg1 = (wxPyControl *) 0 ;
30186 bool result;
30187 PyObject * obj0 = 0 ;
30188 char *kwnames[] = {
30189 (char *) "self", NULL
30190 };
30191
30192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail;
30193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30195 {
30196 PyThreadState* __tstate = wxPyBeginAllowThreads();
30197 result = (bool)(arg1)->base_TransferDataToWindow();
30198
30199 wxPyEndAllowThreads(__tstate);
30200 if (PyErr_Occurred()) SWIG_fail;
30201 }
30202 {
30203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30204 }
30205 return resultobj;
30206 fail:
30207 return NULL;
30208 }
30209
30210
30211 static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
30212 PyObject *resultobj;
30213 wxPyControl *arg1 = (wxPyControl *) 0 ;
30214 bool result;
30215 PyObject * obj0 = 0 ;
30216 char *kwnames[] = {
30217 (char *) "self", NULL
30218 };
30219
30220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail;
30221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30223 {
30224 PyThreadState* __tstate = wxPyBeginAllowThreads();
30225 result = (bool)(arg1)->base_TransferDataFromWindow();
30226
30227 wxPyEndAllowThreads(__tstate);
30228 if (PyErr_Occurred()) SWIG_fail;
30229 }
30230 {
30231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30232 }
30233 return resultobj;
30234 fail:
30235 return NULL;
30236 }
30237
30238
30239 static PyObject *_wrap_PyControl_base_Validate(PyObject *, PyObject *args, PyObject *kwargs) {
30240 PyObject *resultobj;
30241 wxPyControl *arg1 = (wxPyControl *) 0 ;
30242 bool result;
30243 PyObject * obj0 = 0 ;
30244 char *kwnames[] = {
30245 (char *) "self", NULL
30246 };
30247
30248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail;
30249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30251 {
30252 PyThreadState* __tstate = wxPyBeginAllowThreads();
30253 result = (bool)(arg1)->base_Validate();
30254
30255 wxPyEndAllowThreads(__tstate);
30256 if (PyErr_Occurred()) SWIG_fail;
30257 }
30258 {
30259 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30260 }
30261 return resultobj;
30262 fail:
30263 return NULL;
30264 }
30265
30266
30267 static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *, PyObject *args, PyObject *kwargs) {
30268 PyObject *resultobj;
30269 wxPyControl *arg1 = (wxPyControl *) 0 ;
30270 bool result;
30271 PyObject * obj0 = 0 ;
30272 char *kwnames[] = {
30273 (char *) "self", NULL
30274 };
30275
30276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail;
30277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30279 {
30280 PyThreadState* __tstate = wxPyBeginAllowThreads();
30281 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus();
30282
30283 wxPyEndAllowThreads(__tstate);
30284 if (PyErr_Occurred()) SWIG_fail;
30285 }
30286 {
30287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30288 }
30289 return resultobj;
30290 fail:
30291 return NULL;
30292 }
30293
30294
30295 static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *, PyObject *args, PyObject *kwargs) {
30296 PyObject *resultobj;
30297 wxPyControl *arg1 = (wxPyControl *) 0 ;
30298 bool result;
30299 PyObject * obj0 = 0 ;
30300 char *kwnames[] = {
30301 (char *) "self", NULL
30302 };
30303
30304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail;
30305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30307 {
30308 PyThreadState* __tstate = wxPyBeginAllowThreads();
30309 result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard();
30310
30311 wxPyEndAllowThreads(__tstate);
30312 if (PyErr_Occurred()) SWIG_fail;
30313 }
30314 {
30315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30316 }
30317 return resultobj;
30318 fail:
30319 return NULL;
30320 }
30321
30322
30323 static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *, PyObject *args, PyObject *kwargs) {
30324 PyObject *resultobj;
30325 wxPyControl *arg1 = (wxPyControl *) 0 ;
30326 wxSize result;
30327 PyObject * obj0 = 0 ;
30328 char *kwnames[] = {
30329 (char *) "self", NULL
30330 };
30331
30332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail;
30333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30335 {
30336 PyThreadState* __tstate = wxPyBeginAllowThreads();
30337 result = ((wxPyControl const *)arg1)->base_GetMaxSize();
30338
30339 wxPyEndAllowThreads(__tstate);
30340 if (PyErr_Occurred()) SWIG_fail;
30341 }
30342 {
30343 wxSize * resultptr;
30344 resultptr = new wxSize((wxSize &) result);
30345 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
30346 }
30347 return resultobj;
30348 fail:
30349 return NULL;
30350 }
30351
30352
30353 static PyObject *_wrap_PyControl_base_AddChild(PyObject *, PyObject *args, PyObject *kwargs) {
30354 PyObject *resultobj;
30355 wxPyControl *arg1 = (wxPyControl *) 0 ;
30356 wxWindow *arg2 = (wxWindow *) 0 ;
30357 PyObject * obj0 = 0 ;
30358 PyObject * obj1 = 0 ;
30359 char *kwnames[] = {
30360 (char *) "self",(char *) "child", NULL
30361 };
30362
30363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail;
30364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30366 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30368 {
30369 PyThreadState* __tstate = wxPyBeginAllowThreads();
30370 (arg1)->base_AddChild(arg2);
30371
30372 wxPyEndAllowThreads(__tstate);
30373 if (PyErr_Occurred()) SWIG_fail;
30374 }
30375 Py_INCREF(Py_None); resultobj = Py_None;
30376 return resultobj;
30377 fail:
30378 return NULL;
30379 }
30380
30381
30382 static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, PyObject *kwargs) {
30383 PyObject *resultobj;
30384 wxPyControl *arg1 = (wxPyControl *) 0 ;
30385 wxWindow *arg2 = (wxWindow *) 0 ;
30386 PyObject * obj0 = 0 ;
30387 PyObject * obj1 = 0 ;
30388 char *kwnames[] = {
30389 (char *) "self",(char *) "child", NULL
30390 };
30391
30392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail;
30393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30397 {
30398 PyThreadState* __tstate = wxPyBeginAllowThreads();
30399 (arg1)->base_RemoveChild(arg2);
30400
30401 wxPyEndAllowThreads(__tstate);
30402 if (PyErr_Occurred()) SWIG_fail;
30403 }
30404 Py_INCREF(Py_None); resultobj = Py_None;
30405 return resultobj;
30406 fail:
30407 return NULL;
30408 }
30409
30410
30411 static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
30412 PyObject *resultobj;
30413 wxPyControl *arg1 = (wxPyControl *) 0 ;
30414 bool result;
30415 PyObject * obj0 = 0 ;
30416 char *kwnames[] = {
30417 (char *) "self", NULL
30418 };
30419
30420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
30421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30423 {
30424 PyThreadState* __tstate = wxPyBeginAllowThreads();
30425 result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours();
30426
30427 wxPyEndAllowThreads(__tstate);
30428 if (PyErr_Occurred()) SWIG_fail;
30429 }
30430 {
30431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30432 }
30433 return resultobj;
30434 fail:
30435 return NULL;
30436 }
30437
30438
30439 static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
30440 PyObject *resultobj;
30441 wxPyControl *arg1 = (wxPyControl *) 0 ;
30442 wxColour *arg2 = 0 ;
30443 wxColour temp2 ;
30444 PyObject * obj0 = 0 ;
30445 PyObject * obj1 = 0 ;
30446 char *kwnames[] = {
30447 (char *) "self",(char *) "c", NULL
30448 };
30449
30450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
30451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30453 {
30454 arg2 = &temp2;
30455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30456 }
30457 {
30458 PyThreadState* __tstate = wxPyBeginAllowThreads();
30459 (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
30460
30461 wxPyEndAllowThreads(__tstate);
30462 if (PyErr_Occurred()) SWIG_fail;
30463 }
30464 Py_INCREF(Py_None); resultobj = Py_None;
30465 return resultobj;
30466 fail:
30467 return NULL;
30468 }
30469
30470
30471 static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *, PyObject *args, PyObject *kwargs) {
30472 PyObject *resultobj;
30473 wxPyControl *arg1 = (wxPyControl *) 0 ;
30474 wxVisualAttributes result;
30475 PyObject * obj0 = 0 ;
30476 char *kwnames[] = {
30477 (char *) "self", NULL
30478 };
30479
30480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail;
30481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
30482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30483 {
30484 PyThreadState* __tstate = wxPyBeginAllowThreads();
30485 result = (arg1)->base_GetDefaultAttributes();
30486
30487 wxPyEndAllowThreads(__tstate);
30488 if (PyErr_Occurred()) SWIG_fail;
30489 }
30490 {
30491 wxVisualAttributes * resultptr;
30492 resultptr = new wxVisualAttributes((wxVisualAttributes &) result);
30493 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1);
30494 }
30495 return resultobj;
30496 fail:
30497 return NULL;
30498 }
30499
30500
30501 static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
30502 PyObject *obj;
30503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30504 SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj);
30505 Py_INCREF(obj);
30506 return Py_BuildValue((char *)"");
30507 }
30508 static PyObject *_wrap_new_HelpEvent(PyObject *, PyObject *args, PyObject *kwargs) {
30509 PyObject *resultobj;
30510 wxEventType arg1 = (wxEventType) wxEVT_NULL ;
30511 int arg2 = (int) 0 ;
30512 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30513 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30514 wxHelpEvent *result;
30515 wxPoint temp3 ;
30516 PyObject * obj0 = 0 ;
30517 PyObject * obj1 = 0 ;
30518 PyObject * obj2 = 0 ;
30519 char *kwnames[] = {
30520 (char *) "type",(char *) "winid",(char *) "pt", NULL
30521 };
30522
30523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail;
30524 if (obj0) {
30525 arg1 = (wxEventType)SWIG_As_int(obj0);
30526 if (PyErr_Occurred()) SWIG_fail;
30527 }
30528 if (obj1) {
30529 arg2 = (int)SWIG_As_int(obj1);
30530 if (PyErr_Occurred()) SWIG_fail;
30531 }
30532 if (obj2) {
30533 {
30534 arg3 = &temp3;
30535 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30536 }
30537 }
30538 {
30539 PyThreadState* __tstate = wxPyBeginAllowThreads();
30540 result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3);
30541
30542 wxPyEndAllowThreads(__tstate);
30543 if (PyErr_Occurred()) SWIG_fail;
30544 }
30545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1);
30546 return resultobj;
30547 fail:
30548 return NULL;
30549 }
30550
30551
30552 static PyObject *_wrap_HelpEvent_GetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30553 PyObject *resultobj;
30554 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30555 wxPoint result;
30556 PyObject * obj0 = 0 ;
30557 char *kwnames[] = {
30558 (char *) "self", NULL
30559 };
30560
30561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail;
30562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30564 {
30565 PyThreadState* __tstate = wxPyBeginAllowThreads();
30566 result = ((wxHelpEvent const *)arg1)->GetPosition();
30567
30568 wxPyEndAllowThreads(__tstate);
30569 if (PyErr_Occurred()) SWIG_fail;
30570 }
30571 {
30572 wxPoint * resultptr;
30573 resultptr = new wxPoint((wxPoint &) result);
30574 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
30575 }
30576 return resultobj;
30577 fail:
30578 return NULL;
30579 }
30580
30581
30582 static PyObject *_wrap_HelpEvent_SetPosition(PyObject *, PyObject *args, PyObject *kwargs) {
30583 PyObject *resultobj;
30584 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30585 wxPoint *arg2 = 0 ;
30586 wxPoint temp2 ;
30587 PyObject * obj0 = 0 ;
30588 PyObject * obj1 = 0 ;
30589 char *kwnames[] = {
30590 (char *) "self",(char *) "pos", NULL
30591 };
30592
30593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail;
30594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30596 {
30597 arg2 = &temp2;
30598 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
30599 }
30600 {
30601 PyThreadState* __tstate = wxPyBeginAllowThreads();
30602 (arg1)->SetPosition((wxPoint const &)*arg2);
30603
30604 wxPyEndAllowThreads(__tstate);
30605 if (PyErr_Occurred()) SWIG_fail;
30606 }
30607 Py_INCREF(Py_None); resultobj = Py_None;
30608 return resultobj;
30609 fail:
30610 return NULL;
30611 }
30612
30613
30614 static PyObject *_wrap_HelpEvent_GetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30615 PyObject *resultobj;
30616 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30617 wxString *result;
30618 PyObject * obj0 = 0 ;
30619 char *kwnames[] = {
30620 (char *) "self", NULL
30621 };
30622
30623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail;
30624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30626 {
30627 PyThreadState* __tstate = wxPyBeginAllowThreads();
30628 {
30629 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink();
30630 result = (wxString *) &_result_ref;
30631 }
30632
30633 wxPyEndAllowThreads(__tstate);
30634 if (PyErr_Occurred()) SWIG_fail;
30635 }
30636 {
30637 #if wxUSE_UNICODE
30638 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30639 #else
30640 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30641 #endif
30642 }
30643 return resultobj;
30644 fail:
30645 return NULL;
30646 }
30647
30648
30649 static PyObject *_wrap_HelpEvent_SetLink(PyObject *, PyObject *args, PyObject *kwargs) {
30650 PyObject *resultobj;
30651 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30652 wxString *arg2 = 0 ;
30653 bool temp2 = false ;
30654 PyObject * obj0 = 0 ;
30655 PyObject * obj1 = 0 ;
30656 char *kwnames[] = {
30657 (char *) "self",(char *) "link", NULL
30658 };
30659
30660 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail;
30661 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30662 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30663 {
30664 arg2 = wxString_in_helper(obj1);
30665 if (arg2 == NULL) SWIG_fail;
30666 temp2 = true;
30667 }
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 (arg1)->SetLink((wxString const &)*arg2);
30671
30672 wxPyEndAllowThreads(__tstate);
30673 if (PyErr_Occurred()) SWIG_fail;
30674 }
30675 Py_INCREF(Py_None); resultobj = Py_None;
30676 {
30677 if (temp2)
30678 delete arg2;
30679 }
30680 return resultobj;
30681 fail:
30682 {
30683 if (temp2)
30684 delete arg2;
30685 }
30686 return NULL;
30687 }
30688
30689
30690 static PyObject *_wrap_HelpEvent_GetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30691 PyObject *resultobj;
30692 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30693 wxString *result;
30694 PyObject * obj0 = 0 ;
30695 char *kwnames[] = {
30696 (char *) "self", NULL
30697 };
30698
30699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail;
30700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30702 {
30703 PyThreadState* __tstate = wxPyBeginAllowThreads();
30704 {
30705 wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget();
30706 result = (wxString *) &_result_ref;
30707 }
30708
30709 wxPyEndAllowThreads(__tstate);
30710 if (PyErr_Occurred()) SWIG_fail;
30711 }
30712 {
30713 #if wxUSE_UNICODE
30714 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30715 #else
30716 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30717 #endif
30718 }
30719 return resultobj;
30720 fail:
30721 return NULL;
30722 }
30723
30724
30725 static PyObject *_wrap_HelpEvent_SetTarget(PyObject *, PyObject *args, PyObject *kwargs) {
30726 PyObject *resultobj;
30727 wxHelpEvent *arg1 = (wxHelpEvent *) 0 ;
30728 wxString *arg2 = 0 ;
30729 bool temp2 = false ;
30730 PyObject * obj0 = 0 ;
30731 PyObject * obj1 = 0 ;
30732 char *kwnames[] = {
30733 (char *) "self",(char *) "target", NULL
30734 };
30735
30736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail;
30737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent,
30738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30739 {
30740 arg2 = wxString_in_helper(obj1);
30741 if (arg2 == NULL) SWIG_fail;
30742 temp2 = true;
30743 }
30744 {
30745 PyThreadState* __tstate = wxPyBeginAllowThreads();
30746 (arg1)->SetTarget((wxString const &)*arg2);
30747
30748 wxPyEndAllowThreads(__tstate);
30749 if (PyErr_Occurred()) SWIG_fail;
30750 }
30751 Py_INCREF(Py_None); resultobj = Py_None;
30752 {
30753 if (temp2)
30754 delete arg2;
30755 }
30756 return resultobj;
30757 fail:
30758 {
30759 if (temp2)
30760 delete arg2;
30761 }
30762 return NULL;
30763 }
30764
30765
30766 static PyObject * HelpEvent_swigregister(PyObject *, PyObject *args) {
30767 PyObject *obj;
30768 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30769 SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj);
30770 Py_INCREF(obj);
30771 return Py_BuildValue((char *)"");
30772 }
30773 static PyObject *_wrap_new_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30774 PyObject *resultobj;
30775 wxWindow *arg1 = (wxWindow *) NULL ;
30776 bool arg2 = (bool) true ;
30777 wxContextHelp *result;
30778 PyObject * obj0 = 0 ;
30779 PyObject * obj1 = 0 ;
30780 char *kwnames[] = {
30781 (char *) "window",(char *) "doNow", NULL
30782 };
30783
30784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail;
30785 if (obj0) {
30786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30788 }
30789 if (obj1) {
30790 arg2 = (bool)SWIG_As_bool(obj1);
30791 if (PyErr_Occurred()) SWIG_fail;
30792 }
30793 {
30794 if (!wxPyCheckForApp()) SWIG_fail;
30795 PyThreadState* __tstate = wxPyBeginAllowThreads();
30796 result = (wxContextHelp *)new wxContextHelp(arg1,arg2);
30797
30798 wxPyEndAllowThreads(__tstate);
30799 if (PyErr_Occurred()) SWIG_fail;
30800 }
30801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1);
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 static PyObject *_wrap_delete_ContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30809 PyObject *resultobj;
30810 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30811 PyObject * obj0 = 0 ;
30812 char *kwnames[] = {
30813 (char *) "self", NULL
30814 };
30815
30816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail;
30817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30819 {
30820 PyThreadState* __tstate = wxPyBeginAllowThreads();
30821 delete arg1;
30822
30823 wxPyEndAllowThreads(__tstate);
30824 if (PyErr_Occurred()) SWIG_fail;
30825 }
30826 Py_INCREF(Py_None); resultobj = Py_None;
30827 return resultobj;
30828 fail:
30829 return NULL;
30830 }
30831
30832
30833 static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30834 PyObject *resultobj;
30835 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30836 wxWindow *arg2 = (wxWindow *) NULL ;
30837 bool result;
30838 PyObject * obj0 = 0 ;
30839 PyObject * obj1 = 0 ;
30840 char *kwnames[] = {
30841 (char *) "self",(char *) "window", NULL
30842 };
30843
30844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail;
30845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30847 if (obj1) {
30848 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
30849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30850 }
30851 {
30852 PyThreadState* __tstate = wxPyBeginAllowThreads();
30853 result = (bool)(arg1)->BeginContextHelp(arg2);
30854
30855 wxPyEndAllowThreads(__tstate);
30856 if (PyErr_Occurred()) SWIG_fail;
30857 }
30858 {
30859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30860 }
30861 return resultobj;
30862 fail:
30863 return NULL;
30864 }
30865
30866
30867 static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *, PyObject *args, PyObject *kwargs) {
30868 PyObject *resultobj;
30869 wxContextHelp *arg1 = (wxContextHelp *) 0 ;
30870 bool result;
30871 PyObject * obj0 = 0 ;
30872 char *kwnames[] = {
30873 (char *) "self", NULL
30874 };
30875
30876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail;
30877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp,
30878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30879 {
30880 PyThreadState* __tstate = wxPyBeginAllowThreads();
30881 result = (bool)(arg1)->EndContextHelp();
30882
30883 wxPyEndAllowThreads(__tstate);
30884 if (PyErr_Occurred()) SWIG_fail;
30885 }
30886 {
30887 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30888 }
30889 return resultobj;
30890 fail:
30891 return NULL;
30892 }
30893
30894
30895 static PyObject * ContextHelp_swigregister(PyObject *, PyObject *args) {
30896 PyObject *obj;
30897 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30898 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj);
30899 Py_INCREF(obj);
30900 return Py_BuildValue((char *)"");
30901 }
30902 static PyObject *_wrap_new_ContextHelpButton(PyObject *, PyObject *args, PyObject *kwargs) {
30903 PyObject *resultobj;
30904 wxWindow *arg1 = (wxWindow *) 0 ;
30905 int arg2 = (int) wxID_CONTEXT_HELP ;
30906 wxPoint const &arg3_defvalue = wxDefaultPosition ;
30907 wxPoint *arg3 = (wxPoint *) &arg3_defvalue ;
30908 wxSize const &arg4_defvalue = wxDefaultSize ;
30909 wxSize *arg4 = (wxSize *) &arg4_defvalue ;
30910 long arg5 = (long) wxBU_AUTODRAW ;
30911 wxContextHelpButton *result;
30912 wxPoint temp3 ;
30913 wxSize temp4 ;
30914 PyObject * obj0 = 0 ;
30915 PyObject * obj1 = 0 ;
30916 PyObject * obj2 = 0 ;
30917 PyObject * obj3 = 0 ;
30918 PyObject * obj4 = 0 ;
30919 char *kwnames[] = {
30920 (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL
30921 };
30922
30923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
30924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
30925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30926 if (obj1) {
30927 arg2 = (int)SWIG_As_int(obj1);
30928 if (PyErr_Occurred()) SWIG_fail;
30929 }
30930 if (obj2) {
30931 {
30932 arg3 = &temp3;
30933 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
30934 }
30935 }
30936 if (obj3) {
30937 {
30938 arg4 = &temp4;
30939 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30940 }
30941 }
30942 if (obj4) {
30943 arg5 = (long)SWIG_As_long(obj4);
30944 if (PyErr_Occurred()) SWIG_fail;
30945 }
30946 {
30947 if (!wxPyCheckForApp()) SWIG_fail;
30948 PyThreadState* __tstate = wxPyBeginAllowThreads();
30949 result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5);
30950
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1);
30955 return resultobj;
30956 fail:
30957 return NULL;
30958 }
30959
30960
30961 static PyObject * ContextHelpButton_swigregister(PyObject *, PyObject *args) {
30962 PyObject *obj;
30963 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
30964 SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj);
30965 Py_INCREF(obj);
30966 return Py_BuildValue((char *)"");
30967 }
30968 static PyObject *_wrap_HelpProvider_Set(PyObject *, PyObject *args, PyObject *kwargs) {
30969 PyObject *resultobj;
30970 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
30971 wxHelpProvider *result;
30972 PyObject * obj0 = 0 ;
30973 char *kwnames[] = {
30974 (char *) "helpProvider", NULL
30975 };
30976
30977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail;
30978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
30979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
30980 {
30981 PyThreadState* __tstate = wxPyBeginAllowThreads();
30982 result = (wxHelpProvider *)wxHelpProvider::Set(arg1);
30983
30984 wxPyEndAllowThreads(__tstate);
30985 if (PyErr_Occurred()) SWIG_fail;
30986 }
30987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
30988 return resultobj;
30989 fail:
30990 return NULL;
30991 }
30992
30993
30994 static PyObject *_wrap_HelpProvider_Get(PyObject *, PyObject *args, PyObject *kwargs) {
30995 PyObject *resultobj;
30996 wxHelpProvider *result;
30997 char *kwnames[] = {
30998 NULL
30999 };
31000
31001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail;
31002 {
31003 PyThreadState* __tstate = wxPyBeginAllowThreads();
31004 result = (wxHelpProvider *)wxHelpProvider::Get();
31005
31006 wxPyEndAllowThreads(__tstate);
31007 if (PyErr_Occurred()) SWIG_fail;
31008 }
31009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0);
31010 return resultobj;
31011 fail:
31012 return NULL;
31013 }
31014
31015
31016 static PyObject *_wrap_HelpProvider_GetHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31017 PyObject *resultobj;
31018 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31019 wxWindow *arg2 = (wxWindow *) 0 ;
31020 wxString result;
31021 PyObject * obj0 = 0 ;
31022 PyObject * obj1 = 0 ;
31023 char *kwnames[] = {
31024 (char *) "self",(char *) "window", NULL
31025 };
31026
31027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail;
31028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31032 {
31033 PyThreadState* __tstate = wxPyBeginAllowThreads();
31034 result = (arg1)->GetHelp((wxWindow const *)arg2);
31035
31036 wxPyEndAllowThreads(__tstate);
31037 if (PyErr_Occurred()) SWIG_fail;
31038 }
31039 {
31040 #if wxUSE_UNICODE
31041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31042 #else
31043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31044 #endif
31045 }
31046 return resultobj;
31047 fail:
31048 return NULL;
31049 }
31050
31051
31052 static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31053 PyObject *resultobj;
31054 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31055 wxWindow *arg2 = (wxWindow *) 0 ;
31056 bool result;
31057 PyObject * obj0 = 0 ;
31058 PyObject * obj1 = 0 ;
31059 char *kwnames[] = {
31060 (char *) "self",(char *) "window", NULL
31061 };
31062
31063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail;
31064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31066 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31068 {
31069 PyThreadState* __tstate = wxPyBeginAllowThreads();
31070 result = (bool)(arg1)->ShowHelp(arg2);
31071
31072 wxPyEndAllowThreads(__tstate);
31073 if (PyErr_Occurred()) SWIG_fail;
31074 }
31075 {
31076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31077 }
31078 return resultobj;
31079 fail:
31080 return NULL;
31081 }
31082
31083
31084 static PyObject *_wrap_HelpProvider_AddHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31085 PyObject *resultobj;
31086 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31087 wxWindow *arg2 = (wxWindow *) 0 ;
31088 wxString *arg3 = 0 ;
31089 bool temp3 = false ;
31090 PyObject * obj0 = 0 ;
31091 PyObject * obj1 = 0 ;
31092 PyObject * obj2 = 0 ;
31093 char *kwnames[] = {
31094 (char *) "self",(char *) "window",(char *) "text", NULL
31095 };
31096
31097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail;
31098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31100 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31101 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31102 {
31103 arg3 = wxString_in_helper(obj2);
31104 if (arg3 == NULL) SWIG_fail;
31105 temp3 = true;
31106 }
31107 {
31108 PyThreadState* __tstate = wxPyBeginAllowThreads();
31109 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31110
31111 wxPyEndAllowThreads(__tstate);
31112 if (PyErr_Occurred()) SWIG_fail;
31113 }
31114 Py_INCREF(Py_None); resultobj = Py_None;
31115 {
31116 if (temp3)
31117 delete arg3;
31118 }
31119 return resultobj;
31120 fail:
31121 {
31122 if (temp3)
31123 delete arg3;
31124 }
31125 return NULL;
31126 }
31127
31128
31129 static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *, PyObject *args, PyObject *kwargs) {
31130 PyObject *resultobj;
31131 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31132 int arg2 ;
31133 wxString *arg3 = 0 ;
31134 bool temp3 = false ;
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 PyObject * obj2 = 0 ;
31138 char *kwnames[] = {
31139 (char *) "self",(char *) "id",(char *) "text", NULL
31140 };
31141
31142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail;
31143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31145 arg2 = (int)SWIG_As_int(obj1);
31146 if (PyErr_Occurred()) SWIG_fail;
31147 {
31148 arg3 = wxString_in_helper(obj2);
31149 if (arg3 == NULL) SWIG_fail;
31150 temp3 = true;
31151 }
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 (arg1)->AddHelp(arg2,(wxString const &)*arg3);
31155
31156 wxPyEndAllowThreads(__tstate);
31157 if (PyErr_Occurred()) SWIG_fail;
31158 }
31159 Py_INCREF(Py_None); resultobj = Py_None;
31160 {
31161 if (temp3)
31162 delete arg3;
31163 }
31164 return resultobj;
31165 fail:
31166 {
31167 if (temp3)
31168 delete arg3;
31169 }
31170 return NULL;
31171 }
31172
31173
31174 static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *, PyObject *args, PyObject *kwargs) {
31175 PyObject *resultobj;
31176 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31177 wxWindow *arg2 = (wxWindow *) 0 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 char *kwnames[] = {
31181 (char *) "self",(char *) "window", NULL
31182 };
31183
31184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail;
31185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
31188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31189 {
31190 PyThreadState* __tstate = wxPyBeginAllowThreads();
31191 (arg1)->RemoveHelp(arg2);
31192
31193 wxPyEndAllowThreads(__tstate);
31194 if (PyErr_Occurred()) SWIG_fail;
31195 }
31196 Py_INCREF(Py_None); resultobj = Py_None;
31197 return resultobj;
31198 fail:
31199 return NULL;
31200 }
31201
31202
31203 static PyObject *_wrap_HelpProvider_Destroy(PyObject *, PyObject *args, PyObject *kwargs) {
31204 PyObject *resultobj;
31205 wxHelpProvider *arg1 = (wxHelpProvider *) 0 ;
31206 PyObject * obj0 = 0 ;
31207 char *kwnames[] = {
31208 (char *) "self", NULL
31209 };
31210
31211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail;
31212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider,
31213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31214 {
31215 PyThreadState* __tstate = wxPyBeginAllowThreads();
31216 wxHelpProvider_Destroy(arg1);
31217
31218 wxPyEndAllowThreads(__tstate);
31219 if (PyErr_Occurred()) SWIG_fail;
31220 }
31221 Py_INCREF(Py_None); resultobj = Py_None;
31222 return resultobj;
31223 fail:
31224 return NULL;
31225 }
31226
31227
31228 static PyObject * HelpProvider_swigregister(PyObject *, PyObject *args) {
31229 PyObject *obj;
31230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31231 SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj);
31232 Py_INCREF(obj);
31233 return Py_BuildValue((char *)"");
31234 }
31235 static PyObject *_wrap_new_SimpleHelpProvider(PyObject *, PyObject *args, PyObject *kwargs) {
31236 PyObject *resultobj;
31237 wxSimpleHelpProvider *result;
31238 char *kwnames[] = {
31239 NULL
31240 };
31241
31242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail;
31243 {
31244 PyThreadState* __tstate = wxPyBeginAllowThreads();
31245 result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider();
31246
31247 wxPyEndAllowThreads(__tstate);
31248 if (PyErr_Occurred()) SWIG_fail;
31249 }
31250 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1);
31251 return resultobj;
31252 fail:
31253 return NULL;
31254 }
31255
31256
31257 static PyObject * SimpleHelpProvider_swigregister(PyObject *, PyObject *args) {
31258 PyObject *obj;
31259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31260 SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj);
31261 Py_INCREF(obj);
31262 return Py_BuildValue((char *)"");
31263 }
31264 static PyObject *_wrap_new_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31265 PyObject *resultobj;
31266 wxBitmap *arg1 = 0 ;
31267 wxCursor const &arg2_defvalue = wxNullCursor ;
31268 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31269 wxGenericDragImage *result;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 char *kwnames[] = {
31273 (char *) "image",(char *) "cursor", NULL
31274 };
31275
31276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail;
31277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
31278 SWIG_POINTER_EXCEPTION | 0)) == -1)
31279 SWIG_fail;
31280 if (arg1 == NULL) {
31281 PyErr_SetString(PyExc_TypeError,"null reference");
31282 SWIG_fail;
31283 }
31284 if (obj1) {
31285 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31286 SWIG_POINTER_EXCEPTION | 0)) == -1)
31287 SWIG_fail;
31288 if (arg2 == NULL) {
31289 PyErr_SetString(PyExc_TypeError,"null reference");
31290 SWIG_fail;
31291 }
31292 }
31293 {
31294 if (!wxPyCheckForApp()) SWIG_fail;
31295 PyThreadState* __tstate = wxPyBeginAllowThreads();
31296 result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2);
31297
31298 wxPyEndAllowThreads(__tstate);
31299 if (PyErr_Occurred()) SWIG_fail;
31300 }
31301 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31302 return resultobj;
31303 fail:
31304 return NULL;
31305 }
31306
31307
31308 static PyObject *_wrap_new_DragIcon(PyObject *, PyObject *args, PyObject *kwargs) {
31309 PyObject *resultobj;
31310 wxIcon *arg1 = 0 ;
31311 wxCursor const &arg2_defvalue = wxNullCursor ;
31312 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31313 wxGenericDragImage *result;
31314 PyObject * obj0 = 0 ;
31315 PyObject * obj1 = 0 ;
31316 char *kwnames[] = {
31317 (char *) "image",(char *) "cursor", NULL
31318 };
31319
31320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail;
31321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
31322 SWIG_POINTER_EXCEPTION | 0)) == -1)
31323 SWIG_fail;
31324 if (arg1 == NULL) {
31325 PyErr_SetString(PyExc_TypeError,"null reference");
31326 SWIG_fail;
31327 }
31328 if (obj1) {
31329 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31330 SWIG_POINTER_EXCEPTION | 0)) == -1)
31331 SWIG_fail;
31332 if (arg2 == NULL) {
31333 PyErr_SetString(PyExc_TypeError,"null reference");
31334 SWIG_fail;
31335 }
31336 }
31337 {
31338 if (!wxPyCheckForApp()) SWIG_fail;
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2);
31341
31342 wxPyEndAllowThreads(__tstate);
31343 if (PyErr_Occurred()) SWIG_fail;
31344 }
31345 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31346 return resultobj;
31347 fail:
31348 return NULL;
31349 }
31350
31351
31352 static PyObject *_wrap_new_DragString(PyObject *, PyObject *args, PyObject *kwargs) {
31353 PyObject *resultobj;
31354 wxString *arg1 = 0 ;
31355 wxCursor const &arg2_defvalue = wxNullCursor ;
31356 wxCursor *arg2 = (wxCursor *) &arg2_defvalue ;
31357 wxGenericDragImage *result;
31358 bool temp1 = false ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 char *kwnames[] = {
31362 (char *) "str",(char *) "cursor", NULL
31363 };
31364
31365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail;
31366 {
31367 arg1 = wxString_in_helper(obj0);
31368 if (arg1 == NULL) SWIG_fail;
31369 temp1 = true;
31370 }
31371 if (obj1) {
31372 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
31373 SWIG_POINTER_EXCEPTION | 0)) == -1)
31374 SWIG_fail;
31375 if (arg2 == NULL) {
31376 PyErr_SetString(PyExc_TypeError,"null reference");
31377 SWIG_fail;
31378 }
31379 }
31380 {
31381 if (!wxPyCheckForApp()) SWIG_fail;
31382 PyThreadState* __tstate = wxPyBeginAllowThreads();
31383 result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2);
31384
31385 wxPyEndAllowThreads(__tstate);
31386 if (PyErr_Occurred()) SWIG_fail;
31387 }
31388 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31389 {
31390 if (temp1)
31391 delete arg1;
31392 }
31393 return resultobj;
31394 fail:
31395 {
31396 if (temp1)
31397 delete arg1;
31398 }
31399 return NULL;
31400 }
31401
31402
31403 static PyObject *_wrap_new_DragTreeItem(PyObject *, PyObject *args, PyObject *kwargs) {
31404 PyObject *resultobj;
31405 wxPyTreeCtrl *arg1 = 0 ;
31406 wxTreeItemId *arg2 = 0 ;
31407 wxGenericDragImage *result;
31408 PyObject * obj0 = 0 ;
31409 PyObject * obj1 = 0 ;
31410 char *kwnames[] = {
31411 (char *) "treeCtrl",(char *) "id", NULL
31412 };
31413
31414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail;
31415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl,
31416 SWIG_POINTER_EXCEPTION | 0)) == -1)
31417 SWIG_fail;
31418 if (arg1 == NULL) {
31419 PyErr_SetString(PyExc_TypeError,"null reference");
31420 SWIG_fail;
31421 }
31422 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId,
31423 SWIG_POINTER_EXCEPTION | 0)) == -1)
31424 SWIG_fail;
31425 if (arg2 == NULL) {
31426 PyErr_SetString(PyExc_TypeError,"null reference");
31427 SWIG_fail;
31428 }
31429 {
31430 if (!wxPyCheckForApp()) SWIG_fail;
31431 PyThreadState* __tstate = wxPyBeginAllowThreads();
31432 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2);
31433
31434 wxPyEndAllowThreads(__tstate);
31435 if (PyErr_Occurred()) SWIG_fail;
31436 }
31437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31438 return resultobj;
31439 fail:
31440 return NULL;
31441 }
31442
31443
31444 static PyObject *_wrap_new_DragListItem(PyObject *, PyObject *args, PyObject *kwargs) {
31445 PyObject *resultobj;
31446 wxPyListCtrl *arg1 = 0 ;
31447 long arg2 ;
31448 wxGenericDragImage *result;
31449 PyObject * obj0 = 0 ;
31450 PyObject * obj1 = 0 ;
31451 char *kwnames[] = {
31452 (char *) "listCtrl",(char *) "id", NULL
31453 };
31454
31455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail;
31456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl,
31457 SWIG_POINTER_EXCEPTION | 0)) == -1)
31458 SWIG_fail;
31459 if (arg1 == NULL) {
31460 PyErr_SetString(PyExc_TypeError,"null reference");
31461 SWIG_fail;
31462 }
31463 arg2 = (long)SWIG_As_long(obj1);
31464 if (PyErr_Occurred()) SWIG_fail;
31465 {
31466 if (!wxPyCheckForApp()) SWIG_fail;
31467 PyThreadState* __tstate = wxPyBeginAllowThreads();
31468 result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2);
31469
31470 wxPyEndAllowThreads(__tstate);
31471 if (PyErr_Occurred()) SWIG_fail;
31472 }
31473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1);
31474 return resultobj;
31475 fail:
31476 return NULL;
31477 }
31478
31479
31480 static PyObject *_wrap_delete_DragImage(PyObject *, PyObject *args, PyObject *kwargs) {
31481 PyObject *resultobj;
31482 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31483 PyObject * obj0 = 0 ;
31484 char *kwnames[] = {
31485 (char *) "self", NULL
31486 };
31487
31488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail;
31489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31491 {
31492 PyThreadState* __tstate = wxPyBeginAllowThreads();
31493 delete arg1;
31494
31495 wxPyEndAllowThreads(__tstate);
31496 if (PyErr_Occurred()) SWIG_fail;
31497 }
31498 Py_INCREF(Py_None); resultobj = Py_None;
31499 return resultobj;
31500 fail:
31501 return NULL;
31502 }
31503
31504
31505 static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *, PyObject *args, PyObject *kwargs) {
31506 PyObject *resultobj;
31507 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31508 wxBitmap *arg2 = (wxBitmap *) 0 ;
31509 PyObject * obj0 = 0 ;
31510 PyObject * obj1 = 0 ;
31511 char *kwnames[] = {
31512 (char *) "self",(char *) "bitmap", NULL
31513 };
31514
31515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail;
31516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31518 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
31519 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31520 {
31521 PyThreadState* __tstate = wxPyBeginAllowThreads();
31522 (arg1)->SetBackingBitmap(arg2);
31523
31524 wxPyEndAllowThreads(__tstate);
31525 if (PyErr_Occurred()) SWIG_fail;
31526 }
31527 Py_INCREF(Py_None); resultobj = Py_None;
31528 return resultobj;
31529 fail:
31530 return NULL;
31531 }
31532
31533
31534 static PyObject *_wrap_DragImage_BeginDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31535 PyObject *resultobj;
31536 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31537 wxPoint *arg2 = 0 ;
31538 wxWindow *arg3 = (wxWindow *) 0 ;
31539 bool arg4 = (bool) false ;
31540 wxRect *arg5 = (wxRect *) NULL ;
31541 bool result;
31542 wxPoint temp2 ;
31543 PyObject * obj0 = 0 ;
31544 PyObject * obj1 = 0 ;
31545 PyObject * obj2 = 0 ;
31546 PyObject * obj3 = 0 ;
31547 PyObject * obj4 = 0 ;
31548 char *kwnames[] = {
31549 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL
31550 };
31551
31552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31555 {
31556 arg2 = &temp2;
31557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31558 }
31559 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31561 if (obj3) {
31562 arg4 = (bool)SWIG_As_bool(obj3);
31563 if (PyErr_Occurred()) SWIG_fail;
31564 }
31565 if (obj4) {
31566 if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect,
31567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31568 }
31569 {
31570 PyThreadState* __tstate = wxPyBeginAllowThreads();
31571 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5);
31572
31573 wxPyEndAllowThreads(__tstate);
31574 if (PyErr_Occurred()) SWIG_fail;
31575 }
31576 {
31577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31578 }
31579 return resultobj;
31580 fail:
31581 return NULL;
31582 }
31583
31584
31585 static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *, PyObject *args, PyObject *kwargs) {
31586 PyObject *resultobj;
31587 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31588 wxPoint *arg2 = 0 ;
31589 wxWindow *arg3 = (wxWindow *) 0 ;
31590 wxWindow *arg4 = (wxWindow *) 0 ;
31591 bool result;
31592 wxPoint temp2 ;
31593 PyObject * obj0 = 0 ;
31594 PyObject * obj1 = 0 ;
31595 PyObject * obj2 = 0 ;
31596 PyObject * obj3 = 0 ;
31597 char *kwnames[] = {
31598 (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL
31599 };
31600
31601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
31602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31604 {
31605 arg2 = &temp2;
31606 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31607 }
31608 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow,
31609 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31610 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow,
31611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31612 {
31613 PyThreadState* __tstate = wxPyBeginAllowThreads();
31614 result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4);
31615
31616 wxPyEndAllowThreads(__tstate);
31617 if (PyErr_Occurred()) SWIG_fail;
31618 }
31619 {
31620 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31621 }
31622 return resultobj;
31623 fail:
31624 return NULL;
31625 }
31626
31627
31628 static PyObject *_wrap_DragImage_EndDrag(PyObject *, PyObject *args, PyObject *kwargs) {
31629 PyObject *resultobj;
31630 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31631 bool result;
31632 PyObject * obj0 = 0 ;
31633 char *kwnames[] = {
31634 (char *) "self", NULL
31635 };
31636
31637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail;
31638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31640 {
31641 PyThreadState* __tstate = wxPyBeginAllowThreads();
31642 result = (bool)(arg1)->EndDrag();
31643
31644 wxPyEndAllowThreads(__tstate);
31645 if (PyErr_Occurred()) SWIG_fail;
31646 }
31647 {
31648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31649 }
31650 return resultobj;
31651 fail:
31652 return NULL;
31653 }
31654
31655
31656 static PyObject *_wrap_DragImage_Move(PyObject *, PyObject *args, PyObject *kwargs) {
31657 PyObject *resultobj;
31658 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31659 wxPoint *arg2 = 0 ;
31660 bool result;
31661 wxPoint temp2 ;
31662 PyObject * obj0 = 0 ;
31663 PyObject * obj1 = 0 ;
31664 char *kwnames[] = {
31665 (char *) "self",(char *) "pt", NULL
31666 };
31667
31668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail;
31669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31671 {
31672 arg2 = &temp2;
31673 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31674 }
31675 {
31676 PyThreadState* __tstate = wxPyBeginAllowThreads();
31677 result = (bool)(arg1)->Move((wxPoint const &)*arg2);
31678
31679 wxPyEndAllowThreads(__tstate);
31680 if (PyErr_Occurred()) SWIG_fail;
31681 }
31682 {
31683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31684 }
31685 return resultobj;
31686 fail:
31687 return NULL;
31688 }
31689
31690
31691 static PyObject *_wrap_DragImage_Show(PyObject *, PyObject *args, PyObject *kwargs) {
31692 PyObject *resultobj;
31693 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31694 bool result;
31695 PyObject * obj0 = 0 ;
31696 char *kwnames[] = {
31697 (char *) "self", NULL
31698 };
31699
31700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail;
31701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31702 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31703 {
31704 PyThreadState* __tstate = wxPyBeginAllowThreads();
31705 result = (bool)(arg1)->Show();
31706
31707 wxPyEndAllowThreads(__tstate);
31708 if (PyErr_Occurred()) SWIG_fail;
31709 }
31710 {
31711 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31712 }
31713 return resultobj;
31714 fail:
31715 return NULL;
31716 }
31717
31718
31719 static PyObject *_wrap_DragImage_Hide(PyObject *, PyObject *args, PyObject *kwargs) {
31720 PyObject *resultobj;
31721 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31722 bool result;
31723 PyObject * obj0 = 0 ;
31724 char *kwnames[] = {
31725 (char *) "self", NULL
31726 };
31727
31728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail;
31729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31731 {
31732 PyThreadState* __tstate = wxPyBeginAllowThreads();
31733 result = (bool)(arg1)->Hide();
31734
31735 wxPyEndAllowThreads(__tstate);
31736 if (PyErr_Occurred()) SWIG_fail;
31737 }
31738 {
31739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31740 }
31741 return resultobj;
31742 fail:
31743 return NULL;
31744 }
31745
31746
31747 static PyObject *_wrap_DragImage_GetImageRect(PyObject *, PyObject *args, PyObject *kwargs) {
31748 PyObject *resultobj;
31749 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31750 wxPoint *arg2 = 0 ;
31751 wxRect result;
31752 wxPoint temp2 ;
31753 PyObject * obj0 = 0 ;
31754 PyObject * obj1 = 0 ;
31755 char *kwnames[] = {
31756 (char *) "self",(char *) "pos", NULL
31757 };
31758
31759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail;
31760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31762 {
31763 arg2 = &temp2;
31764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31765 }
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2);
31769
31770 wxPyEndAllowThreads(__tstate);
31771 if (PyErr_Occurred()) SWIG_fail;
31772 }
31773 {
31774 wxRect * resultptr;
31775 resultptr = new wxRect((wxRect &) result);
31776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
31777 }
31778 return resultobj;
31779 fail:
31780 return NULL;
31781 }
31782
31783
31784 static PyObject *_wrap_DragImage_DoDrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31785 PyObject *resultobj;
31786 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31787 wxDC *arg2 = 0 ;
31788 wxPoint *arg3 = 0 ;
31789 bool result;
31790 wxPoint temp3 ;
31791 PyObject * obj0 = 0 ;
31792 PyObject * obj1 = 0 ;
31793 PyObject * obj2 = 0 ;
31794 char *kwnames[] = {
31795 (char *) "self",(char *) "dc",(char *) "pos", NULL
31796 };
31797
31798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail;
31799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31801 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31802 SWIG_POINTER_EXCEPTION | 0)) == -1)
31803 SWIG_fail;
31804 if (arg2 == NULL) {
31805 PyErr_SetString(PyExc_TypeError,"null reference");
31806 SWIG_fail;
31807 }
31808 {
31809 arg3 = &temp3;
31810 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31811 }
31812 {
31813 PyThreadState* __tstate = wxPyBeginAllowThreads();
31814 result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3);
31815
31816 wxPyEndAllowThreads(__tstate);
31817 if (PyErr_Occurred()) SWIG_fail;
31818 }
31819 {
31820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31821 }
31822 return resultobj;
31823 fail:
31824 return NULL;
31825 }
31826
31827
31828 static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *, PyObject *args, PyObject *kwargs) {
31829 PyObject *resultobj;
31830 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31831 wxDC *arg2 = 0 ;
31832 wxMemoryDC *arg3 = 0 ;
31833 wxRect *arg4 = 0 ;
31834 wxRect *arg5 = 0 ;
31835 bool result;
31836 wxRect temp4 ;
31837 wxRect temp5 ;
31838 PyObject * obj0 = 0 ;
31839 PyObject * obj1 = 0 ;
31840 PyObject * obj2 = 0 ;
31841 PyObject * obj3 = 0 ;
31842 PyObject * obj4 = 0 ;
31843 char *kwnames[] = {
31844 (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL
31845 };
31846
31847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31850 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
31851 SWIG_POINTER_EXCEPTION | 0)) == -1)
31852 SWIG_fail;
31853 if (arg2 == NULL) {
31854 PyErr_SetString(PyExc_TypeError,"null reference");
31855 SWIG_fail;
31856 }
31857 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC,
31858 SWIG_POINTER_EXCEPTION | 0)) == -1)
31859 SWIG_fail;
31860 if (arg3 == NULL) {
31861 PyErr_SetString(PyExc_TypeError,"null reference");
31862 SWIG_fail;
31863 }
31864 {
31865 arg4 = &temp4;
31866 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31867 }
31868 {
31869 arg5 = &temp5;
31870 if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail;
31871 }
31872 {
31873 PyThreadState* __tstate = wxPyBeginAllowThreads();
31874 result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5);
31875
31876 wxPyEndAllowThreads(__tstate);
31877 if (PyErr_Occurred()) SWIG_fail;
31878 }
31879 {
31880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31881 }
31882 return resultobj;
31883 fail:
31884 return NULL;
31885 }
31886
31887
31888 static PyObject *_wrap_DragImage_RedrawImage(PyObject *, PyObject *args, PyObject *kwargs) {
31889 PyObject *resultobj;
31890 wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ;
31891 wxPoint *arg2 = 0 ;
31892 wxPoint *arg3 = 0 ;
31893 bool arg4 ;
31894 bool arg5 ;
31895 bool result;
31896 wxPoint temp2 ;
31897 wxPoint temp3 ;
31898 PyObject * obj0 = 0 ;
31899 PyObject * obj1 = 0 ;
31900 PyObject * obj2 = 0 ;
31901 PyObject * obj3 = 0 ;
31902 PyObject * obj4 = 0 ;
31903 char *kwnames[] = {
31904 (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL
31905 };
31906
31907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
31908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage,
31909 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
31910 {
31911 arg2 = &temp2;
31912 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
31913 }
31914 {
31915 arg3 = &temp3;
31916 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
31917 }
31918 arg4 = (bool)SWIG_As_bool(obj3);
31919 if (PyErr_Occurred()) SWIG_fail;
31920 arg5 = (bool)SWIG_As_bool(obj4);
31921 if (PyErr_Occurred()) SWIG_fail;
31922 {
31923 PyThreadState* __tstate = wxPyBeginAllowThreads();
31924 result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5);
31925
31926 wxPyEndAllowThreads(__tstate);
31927 if (PyErr_Occurred()) SWIG_fail;
31928 }
31929 {
31930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31931 }
31932 return resultobj;
31933 fail:
31934 return NULL;
31935 }
31936
31937
31938 static PyObject * DragImage_swigregister(PyObject *, PyObject *args) {
31939 PyObject *obj;
31940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
31941 SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj);
31942 Py_INCREF(obj);
31943 return Py_BuildValue((char *)"");
31944 }
31945 static PyMethodDef SwigMethods[] = {
31946 { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS, NULL },
31947 { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS, NULL },
31948 { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31949 { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS, NULL },
31950 { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
31951 { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31952 { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS, NULL },
31953 { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31954 { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS, NULL },
31955 { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31956 { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31957 { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31958 { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31959 { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31960 { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS, NULL },
31961 { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS, NULL },
31962 { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS, NULL },
31963 { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS, NULL },
31964 { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
31965 { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS, NULL },
31966 { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS, NULL },
31967 { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS, NULL },
31968 { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31969 { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS, NULL },
31970 { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31971 { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31972 { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
31973 { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31974 { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31975 { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS, NULL },
31976 { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS, NULL },
31977 { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS, NULL },
31978 { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31979 { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS, NULL },
31980 { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS, NULL },
31981 { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS, NULL },
31982 { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31983 { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31984 { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
31985 { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
31986 { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
31987 { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS, NULL },
31988 { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31989 { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS, NULL },
31990 { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
31991 { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31992 { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
31993 { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
31994 { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
31995 { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
31996 { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31997 { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
31998 { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
31999 { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32000 { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32001 { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS, NULL },
32002 { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32003 { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32004 { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32005 { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32006 { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32007 { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32008 { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS, NULL },
32009 { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS, NULL },
32010 { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS, NULL },
32011 { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32012 { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32013 { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32014 { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32015 { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32016 { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32017 { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32018 { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32019 { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32020 { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS, NULL },
32021 { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32022 { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS, NULL },
32023 { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32024 { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS, NULL },
32025 { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32026 { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32027 { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS, NULL },
32028 { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32029 { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS, NULL },
32030 { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32031 { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32032 { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS, NULL },
32033 { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32034 { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS, NULL },
32035 { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32036 { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS, NULL },
32037 { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32038 { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32039 { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS, NULL },
32040 { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32041 { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32042 { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32043 { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32044 { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32045 { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32046 { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32047 { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS, NULL },
32048 { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32049 { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32050 { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32051 { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS, NULL },
32052 { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS, NULL },
32053 { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32054 { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32055 { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32056 { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32057 { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS, NULL },
32058 { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32059 { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32060 { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32061 { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS, NULL },
32062 { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS, NULL },
32063 { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32064 { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32065 { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS, NULL },
32066 { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32067 { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32068 { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32069 { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32070 { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS, NULL },
32071 { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32072 { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS, NULL },
32073 { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32074 { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS, NULL },
32075 { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS, NULL },
32076 { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS, NULL },
32077 { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32078 { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS, NULL },
32079 { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS, NULL },
32080 { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32081 { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32082 { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS, NULL },
32083 { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32084 { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32085 { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32086 { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32087 { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32088 { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32089 { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32090 { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32091 { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32092 { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32093 { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32094 { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32095 { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32096 { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32097 { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32098 { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32099 { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32100 { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32101 { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32102 { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS, NULL },
32103 { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS, NULL },
32104 { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32105 { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32106 { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32107 { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS, NULL },
32108 { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS, NULL },
32109 { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS, NULL },
32110 { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS, NULL },
32111 { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32112 { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32113 { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32114 { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32115 { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32116 { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32117 { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS, NULL },
32118 { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS, NULL },
32119 { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS, NULL },
32120 { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS, NULL },
32121 { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32122 { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS, NULL },
32123 { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS, NULL },
32124 { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32125 { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32126 { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32127 { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS, NULL },
32128 { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS, NULL },
32129 { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL },
32130 { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL },
32131 { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS, NULL },
32132 { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS, NULL },
32133 { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS, NULL },
32134 { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS, NULL },
32135 { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS, NULL },
32136 { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS, NULL },
32137 { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32138 { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32139 { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32140 { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32141 { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32142 { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS, NULL },
32143 { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32144 { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32145 { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS, NULL },
32146 { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS, NULL },
32147 { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS, NULL },
32148 { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS, NULL },
32149 { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS, NULL },
32150 { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS, NULL },
32151 { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS, NULL },
32152 { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS, NULL },
32153 { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS, NULL },
32154 { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS, NULL },
32155 { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS, NULL },
32156 { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32157 { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32158 { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32159 { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32160 { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32161 { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32162 { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS, NULL },
32163 { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
32164 { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS, NULL },
32165 { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS, NULL },
32166 { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32167 { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32168 { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS, NULL },
32169 { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32170 { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32171 { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS, NULL },
32172 { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32173 { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS, NULL },
32174 { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32175 { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS, NULL },
32176 { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32177 { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32178 { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS, NULL },
32179 { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32180 { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32181 { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32182 { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32183 { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS, NULL },
32184 { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32185 { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS, NULL },
32186 { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32187 { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS, NULL },
32188 { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32189 { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32190 { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32191 { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32192 { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32193 { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32194 { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32195 { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32196 { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32197 { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32198 { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS, NULL },
32199 { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32200 { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32201 { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32202 { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32203 { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32204 { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS, NULL },
32205 { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32206 { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32207 { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32208 { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32209 { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32210 { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS, NULL },
32211 { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32212 { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32213 { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32214 { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS, NULL },
32215 { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32216 { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS, NULL },
32217 { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32218 { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32219 { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32220 { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32221 { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32222 { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32223 { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS, NULL },
32224 { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS, NULL },
32225 { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS, NULL },
32226 { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS, NULL },
32227 { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS, NULL },
32228 { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32229 { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32230 { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32231 { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32232 { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS, NULL },
32233 { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32234 { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS, NULL },
32235 { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32236 { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32237 { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32238 { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32239 { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS, NULL },
32240 { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS, NULL },
32241 { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS, NULL },
32242 { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32243 { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32244 { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32245 { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS, NULL },
32246 { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32247 { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32248 { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS, NULL },
32249 { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS, NULL },
32250 { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32251 { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32252 { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS, NULL },
32253 { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32254 { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32255 { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS, NULL },
32256 { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32257 { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS, NULL },
32258 { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS, NULL },
32259 { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS, NULL },
32260 { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS, NULL },
32261 { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS, NULL },
32262 { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS, NULL },
32263 { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32264 { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32265 { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS, NULL },
32266 { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32267 { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS, NULL },
32268 { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32269 { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32270 { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS, NULL },
32271 { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32272 { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32273 { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS, NULL },
32274 { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS, NULL },
32275 { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS, NULL },
32276 { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32277 { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32278 { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS, NULL },
32279 { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32280 { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32281 { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32282 { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32283 { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS, NULL },
32284 { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS, NULL },
32285 { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32286 { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS, NULL },
32287 { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS, NULL },
32288 { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32289 { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS, NULL },
32290 { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS, NULL },
32291 { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32292 { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32293 { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32294 { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS, NULL },
32295 { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32296 { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32297 { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32298 { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32299 { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32300 { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS, NULL },
32301 { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS, NULL },
32302 { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32303 { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32304 { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS, NULL },
32305 { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS, NULL },
32306 { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS, NULL },
32307 { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32308 { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS, NULL },
32309 { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32310 { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32311 { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS, NULL },
32312 { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32313 { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS, NULL },
32314 { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS, NULL },
32315 { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS, NULL },
32316 { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32317 { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32318 { (char *)"Listbook_GetListView", (PyCFunction) _wrap_Listbook_GetListView, METH_VARARGS | METH_KEYWORDS, NULL },
32319 { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS, NULL },
32320 { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32321 { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS, NULL },
32322 { (char *)"new_Choicebook", (PyCFunction) _wrap_new_Choicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32323 { (char *)"new_PreChoicebook", (PyCFunction) _wrap_new_PreChoicebook, METH_VARARGS | METH_KEYWORDS, NULL },
32324 { (char *)"Choicebook_Create", (PyCFunction) _wrap_Choicebook_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32325 { (char *)"Choicebook_IsVertical", (PyCFunction) _wrap_Choicebook_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32326 { (char *)"Choicebook_DeleteAllPages", (PyCFunction) _wrap_Choicebook_DeleteAllPages, METH_VARARGS | METH_KEYWORDS, NULL },
32327 { (char *)"Choicebook_swigregister", Choicebook_swigregister, METH_VARARGS, NULL },
32328 { (char *)"new_ChoicebookEvent", (PyCFunction) _wrap_new_ChoicebookEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32329 { (char *)"ChoicebookEvent_swigregister", ChoicebookEvent_swigregister, METH_VARARGS, NULL },
32330 { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32331 { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32332 { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32333 { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32334 { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS, NULL },
32335 { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS, NULL },
32336 { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS, NULL },
32337 { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS, NULL },
32338 { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS, NULL },
32339 { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS, NULL },
32340 { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32341 { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS, NULL },
32342 { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32343 { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS, NULL },
32344 { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS, NULL },
32345 { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32346 { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32347 { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS, NULL },
32348 { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32349 { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32350 { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS, NULL },
32351 { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32352 { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32353 { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32354 { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32355 { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32356 { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32357 { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS, NULL },
32358 { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32359 { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32360 { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32361 { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32362 { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32363 { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32364 { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32365 { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS, NULL },
32366 { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS, NULL },
32367 { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32368 { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32369 { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS, NULL },
32370 { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS, NULL },
32371 { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS, NULL },
32372 { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32373 { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS, NULL },
32374 { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS, NULL },
32375 { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS, NULL },
32376 { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS, NULL },
32377 { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32378 { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS, NULL },
32379 { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS, NULL },
32380 { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS, NULL },
32381 { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS, NULL },
32382 { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS, NULL },
32383 { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS, NULL },
32384 { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS, NULL },
32385 { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS, NULL },
32386 { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS, NULL },
32387 { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32388 { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS, NULL },
32389 { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS, NULL },
32390 { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS, NULL },
32391 { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS, NULL },
32392 { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32393 { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32394 { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32395 { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32396 { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL },
32397 { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32398 { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32399 { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32400 { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32401 { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS, NULL },
32402 { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS, NULL },
32403 { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS, NULL },
32404 { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS, NULL },
32405 { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS, NULL },
32406 { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS, NULL },
32407 { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS, NULL },
32408 { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32409 { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS, NULL },
32410 { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS, NULL },
32411 { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32412 { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS, NULL },
32413 { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS, NULL },
32414 { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS, NULL },
32415 { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32416 { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS, NULL },
32417 { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32418 { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32419 { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32420 { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS, NULL },
32421 { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS, NULL },
32422 { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32423 { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32424 { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32425 { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32426 { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32427 { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS, NULL },
32428 { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32429 { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32430 { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32431 { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32432 { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS, NULL },
32433 { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32434 { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32435 { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS, NULL },
32436 { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32437 { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32438 { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32439 { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32440 { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32441 { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS, NULL },
32442 { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS, NULL },
32443 { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32444 { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32445 { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32446 { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32447 { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32448 { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32449 { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32450 { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32451 { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32452 { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32453 { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32454 { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32455 { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32456 { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32457 { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32458 { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS, NULL },
32459 { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32460 { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32461 { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32462 { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32463 { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS, NULL },
32464 { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32465 { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32466 { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS, NULL },
32467 { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS, NULL },
32468 { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32469 { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32470 { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS, NULL },
32471 { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS, NULL },
32472 { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS, NULL },
32473 { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS, NULL },
32474 { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS, NULL },
32475 { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS, NULL },
32476 { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS, NULL },
32477 { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS, NULL },
32478 { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS, NULL },
32479 { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS, NULL },
32480 { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS, NULL },
32481 { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS, NULL },
32482 { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS, NULL },
32483 { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS, NULL },
32484 { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS, NULL },
32485 { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32486 { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS, NULL },
32487 { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS, NULL },
32488 { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32489 { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32490 { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS, NULL },
32491 { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS, NULL },
32492 { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS, NULL },
32493 { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS, NULL },
32494 { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS, NULL },
32495 { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS, NULL },
32496 { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS, NULL },
32497 { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32498 { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32499 { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32500 { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32501 { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32502 { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS, NULL },
32503 { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS, NULL },
32504 { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32505 { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS, NULL },
32506 { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32507 { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS, NULL },
32508 { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS, NULL },
32509 { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32510 { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32511 { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS, NULL },
32512 { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32513 { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32514 { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32515 { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32516 { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32517 { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32518 { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32519 { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32520 { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32521 { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS, NULL },
32522 { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS, NULL },
32523 { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS, NULL },
32524 { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32525 { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32526 { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32527 { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32528 { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32529 { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS, NULL },
32530 { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32531 { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32532 { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32533 { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32534 { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32535 { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32536 { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS, NULL },
32537 { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32538 { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32539 { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS, NULL },
32540 { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32541 { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32542 { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32543 { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32544 { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS, NULL },
32545 { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS, NULL },
32546 { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS, NULL },
32547 { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS, NULL },
32548 { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32549 { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32550 { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32551 { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS, NULL },
32552 { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS, NULL },
32553 { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS, NULL },
32554 { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS, NULL },
32555 { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS, NULL },
32556 { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS, NULL },
32557 { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32558 { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32559 { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS, NULL },
32560 { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS, NULL },
32561 { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32562 { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32563 { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32564 { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS, NULL },
32565 { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32566 { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS, NULL },
32567 { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32568 { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32569 { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32570 { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS, NULL },
32571 { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS, NULL },
32572 { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32573 { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS, NULL },
32574 { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS, NULL },
32575 { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS, NULL },
32576 { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32577 { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32578 { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32579 { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32580 { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS, NULL },
32581 { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32582 { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32583 { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS, NULL },
32584 { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS, NULL },
32585 { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS, NULL },
32586 { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32587 { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS, NULL },
32588 { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS, NULL },
32589 { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS, NULL },
32590 { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32591 { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32592 { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32593 { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32594 { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS, NULL },
32595 { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS, NULL },
32596 { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32597 { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS, NULL },
32598 { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS, NULL },
32599 { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS, NULL },
32600 { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS, NULL },
32601 { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS, NULL },
32602 { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS, NULL },
32603 { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS, NULL },
32604 { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32605 { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS, NULL },
32606 { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS, NULL },
32607 { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS, NULL },
32608 { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS, NULL },
32609 { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32610 { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS, NULL },
32611 { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32612 { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32613 { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS, NULL },
32614 { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32615 { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS, NULL },
32616 { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32617 { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS, NULL },
32618 { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32619 { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS, NULL },
32620 { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32621 { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32622 { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32623 { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS, NULL },
32624 { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS, NULL },
32625 { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS, NULL },
32626 { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS, NULL },
32627 { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32628 { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32629 { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32630 { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32631 { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS, NULL },
32632 { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32633 { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS, NULL },
32634 { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32635 { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS, NULL },
32636 { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32637 { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32638 { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32639 { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32640 { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32641 { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS, NULL },
32642 { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32643 { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32644 { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32645 { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32646 { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32647 { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32648 { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32649 { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS, NULL },
32650 { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS, NULL },
32651 { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS, NULL },
32652 { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS, NULL },
32653 { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32654 { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS, NULL },
32655 { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS, NULL },
32656 { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS, NULL },
32657 { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS, NULL },
32658 { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS, NULL },
32659 { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32660 { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32661 { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS, NULL },
32662 { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS, NULL },
32663 { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS, NULL },
32664 { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS, NULL },
32665 { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS, NULL },
32666 { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32667 { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS, NULL },
32668 { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS, NULL },
32669 { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS, NULL },
32670 { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS, NULL },
32671 { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS, NULL },
32672 { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32673 { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS, NULL },
32674 { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS, NULL },
32675 { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32676 { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32677 { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS, NULL },
32678 { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS, NULL },
32679 { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS, NULL },
32680 { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS, NULL },
32681 { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS, NULL },
32682 { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS, NULL },
32683 { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32684 { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS, NULL },
32685 { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS, NULL },
32686 { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS, NULL },
32687 { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS, NULL },
32688 { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS, NULL },
32689 { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS, NULL },
32690 { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32691 { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS, NULL },
32692 { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS, NULL },
32693 { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS, NULL },
32694 { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS, NULL },
32695 { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS, NULL },
32696 { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32697 { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS, NULL },
32698 { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS, NULL },
32699 { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS, NULL },
32700 { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS, NULL },
32701 { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS, NULL },
32702 { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS, NULL },
32703 { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS, NULL },
32704 { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32705 { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS, NULL },
32706 { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32707 { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32708 { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32709 { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS, NULL },
32710 { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32711 { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS, NULL },
32712 { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32713 { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS, NULL },
32714 { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS, NULL },
32715 { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32716 { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS, NULL },
32717 { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32718 { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS, NULL },
32719 { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32720 { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS, NULL },
32721 { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS, NULL },
32722 { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32723 { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32724 { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS, NULL },
32725 { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS, NULL },
32726 { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS, NULL },
32727 { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS, NULL },
32728 { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32729 { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS, NULL },
32730 { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS, NULL },
32731 { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
32732 { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
32733 { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32734 { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
32735 { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
32736 { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32737 { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32738 { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32739 { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32740 { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32741 { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS, NULL },
32742 { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS, NULL },
32743 { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32744 { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS, NULL },
32745 { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS, NULL },
32746 { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS, NULL },
32747 { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32748 { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32749 { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS, NULL },
32750 { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS, NULL },
32751 { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS, NULL },
32752 { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
32753 { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
32754 { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
32755 { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
32756 { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
32757 { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS, NULL },
32758 { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
32759 { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
32760 { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32761 { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS, NULL },
32762 { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32763 { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS, NULL },
32764 { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32765 { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS, NULL },
32766 { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS, NULL },
32767 { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32768 { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32769 { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32770 { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32771 { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS, NULL },
32772 { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS, NULL },
32773 { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS, NULL },
32774 { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS, NULL },
32775 { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS, NULL },
32776 { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32777 { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32778 { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32779 { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS, NULL },
32780 { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS, NULL },
32781 { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS, NULL },
32782 { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS, NULL },
32783 { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS, NULL },
32784 { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS, NULL },
32785 { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32786 { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS, NULL },
32787 { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS, NULL },
32788 { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS, NULL },
32789 { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS, NULL },
32790 { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS, NULL },
32791 { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS, NULL },
32792 { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32793 { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS, NULL },
32794 { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS, NULL },
32795 { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS, NULL },
32796 { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS, NULL },
32797 { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS, NULL },
32798 { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS, NULL },
32799 { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32800 { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS, NULL },
32801 { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS, NULL },
32802 { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS, NULL },
32803 { NULL, NULL, 0, NULL }
32804 };
32805
32806
32807 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
32808
32809 static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) {
32810 return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32811 }
32812 static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) {
32813 return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x));
32814 }
32815 static void *_p_wxChoicebookEventTo_p_wxBookCtrlEvent(void *x) {
32816 return (void *)((wxBookCtrlEvent *) ((wxChoicebookEvent *) x));
32817 }
32818 static void *_p_wxBoxSizerTo_p_wxSizer(void *x) {
32819 return (void *)((wxSizer *) ((wxBoxSizer *) x));
32820 }
32821 static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) {
32822 return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x));
32823 }
32824 static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) {
32825 return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
32826 }
32827 static void *_p_wxGridSizerTo_p_wxSizer(void *x) {
32828 return (void *)((wxSizer *) ((wxGridSizer *) x));
32829 }
32830 static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) {
32831 return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x));
32832 }
32833 static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) {
32834 return (void *)((wxSizer *) ((wxNotebookSizer *) x));
32835 }
32836 static void *_p_wxPySizerTo_p_wxSizer(void *x) {
32837 return (void *)((wxSizer *) ((wxPySizer *) x));
32838 }
32839 static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) {
32840 return (void *)((wxSizer *) ((wxBookCtrlSizer *) x));
32841 }
32842 static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) {
32843 return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x));
32844 }
32845 static void *_p_wxMenuEventTo_p_wxEvent(void *x) {
32846 return (void *)((wxEvent *) ((wxMenuEvent *) x));
32847 }
32848 static void *_p_wxCloseEventTo_p_wxEvent(void *x) {
32849 return (void *)((wxEvent *) ((wxCloseEvent *) x));
32850 }
32851 static void *_p_wxMouseEventTo_p_wxEvent(void *x) {
32852 return (void *)((wxEvent *) ((wxMouseEvent *) x));
32853 }
32854 static void *_p_wxEraseEventTo_p_wxEvent(void *x) {
32855 return (void *)((wxEvent *) ((wxEraseEvent *) x));
32856 }
32857 static void *_p_wxTreeEventTo_p_wxEvent(void *x) {
32858 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
32859 }
32860 static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) {
32861 return (void *)((wxEvent *) ((wxSetCursorEvent *) x));
32862 }
32863 static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) {
32864 return (void *)((wxEvent *) ((wxInitDialogEvent *) x));
32865 }
32866 static void *_p_wxScrollEventTo_p_wxEvent(void *x) {
32867 return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x));
32868 }
32869 static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) {
32870 return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x));
32871 }
32872 static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) {
32873 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
32874 }
32875 static void *_p_wxPyEventTo_p_wxEvent(void *x) {
32876 return (void *)((wxEvent *) ((wxPyEvent *) x));
32877 }
32878 static void *_p_wxNotifyEventTo_p_wxEvent(void *x) {
32879 return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x));
32880 }
32881 static void *_p_wxListEventTo_p_wxEvent(void *x) {
32882 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
32883 }
32884 static void *_p_wxNotebookEventTo_p_wxEvent(void *x) {
32885 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
32886 }
32887 static void *_p_wxListbookEventTo_p_wxEvent(void *x) {
32888 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
32889 }
32890 static void *_p_wxChoicebookEventTo_p_wxEvent(void *x) {
32891 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x));
32892 }
32893 static void *_p_wxHelpEventTo_p_wxEvent(void *x) {
32894 return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x));
32895 }
32896 static void *_p_wxIdleEventTo_p_wxEvent(void *x) {
32897 return (void *)((wxEvent *) ((wxIdleEvent *) x));
32898 }
32899 static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) {
32900 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x));
32901 }
32902 static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) {
32903 return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x));
32904 }
32905 static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) {
32906 return (void *)((wxEvent *) ((wxMaximizeEvent *) x));
32907 }
32908 static void *_p_wxIconizeEventTo_p_wxEvent(void *x) {
32909 return (void *)((wxEvent *) ((wxIconizeEvent *) x));
32910 }
32911 static void *_p_wxActivateEventTo_p_wxEvent(void *x) {
32912 return (void *)((wxEvent *) ((wxActivateEvent *) x));
32913 }
32914 static void *_p_wxSizeEventTo_p_wxEvent(void *x) {
32915 return (void *)((wxEvent *) ((wxSizeEvent *) x));
32916 }
32917 static void *_p_wxMoveEventTo_p_wxEvent(void *x) {
32918 return (void *)((wxEvent *) ((wxMoveEvent *) x));
32919 }
32920 static void *_p_wxPaintEventTo_p_wxEvent(void *x) {
32921 return (void *)((wxEvent *) ((wxPaintEvent *) x));
32922 }
32923 static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) {
32924 return (void *)((wxEvent *) ((wxNcPaintEvent *) x));
32925 }
32926 static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) {
32927 return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x));
32928 }
32929 static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) {
32930 return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x));
32931 }
32932 static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) {
32933 return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x));
32934 }
32935 static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) {
32936 return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x));
32937 }
32938 static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) {
32939 return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x));
32940 }
32941 static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) {
32942 return (void *)((wxEvent *) ((wxDropFilesEvent *) x));
32943 }
32944 static void *_p_wxFocusEventTo_p_wxEvent(void *x) {
32945 return (void *)((wxEvent *) ((wxFocusEvent *) x));
32946 }
32947 static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) {
32948 return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x));
32949 }
32950 static void *_p_wxShowEventTo_p_wxEvent(void *x) {
32951 return (void *)((wxEvent *) ((wxShowEvent *) x));
32952 }
32953 static void *_p_wxCommandEventTo_p_wxEvent(void *x) {
32954 return (void *)((wxEvent *) ((wxCommandEvent *) x));
32955 }
32956 static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) {
32957 return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x));
32958 }
32959 static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) {
32960 return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x));
32961 }
32962 static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) {
32963 return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x));
32964 }
32965 static void *_p_wxKeyEventTo_p_wxEvent(void *x) {
32966 return (void *)((wxEvent *) ((wxKeyEvent *) x));
32967 }
32968 static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) {
32969 return (void *)((wxEvent *) ((wxScrollWinEvent *) x));
32970 }
32971 static void *_p_wxSpinEventTo_p_wxEvent(void *x) {
32972 return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
32973 }
32974 static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) {
32975 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
32976 }
32977 static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) {
32978 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
32979 }
32980 static void *_p_wxChoiceTo_p_wxItemContainer(void *x) {
32981 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x));
32982 }
32983 static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) {
32984 return (void *)((wxItemContainer *) ((wxControlWithItems *) x));
32985 }
32986 static void *_p_wxListBoxTo_p_wxItemContainer(void *x) {
32987 return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x));
32988 }
32989 static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) {
32990 return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
32991 }
32992 static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) {
32993 return (void *)((wxPyListCtrl *) ((wxListView *) x));
32994 }
32995 static void *_p_wxBookCtrlTo_p_wxControl(void *x) {
32996 return (void *)((wxControl *) ((wxBookCtrl *) x));
32997 }
32998 static void *_p_wxToolBarTo_p_wxControl(void *x) {
32999 return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x));
33000 }
33001 static void *_p_wxToggleButtonTo_p_wxControl(void *x) {
33002 return (void *)((wxControl *) ((wxToggleButton *) x));
33003 }
33004 static void *_p_wxRadioButtonTo_p_wxControl(void *x) {
33005 return (void *)((wxControl *) ((wxRadioButton *) x));
33006 }
33007 static void *_p_wxPyControlTo_p_wxControl(void *x) {
33008 return (void *)((wxControl *) ((wxPyControl *) x));
33009 }
33010 static void *_p_wxToolBarBaseTo_p_wxControl(void *x) {
33011 return (void *)((wxControl *) ((wxToolBarBase *) x));
33012 }
33013 static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) {
33014 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33015 }
33016 static void *_p_wxPyListCtrlTo_p_wxControl(void *x) {
33017 return (void *)((wxControl *) ((wxPyListCtrl *) x));
33018 }
33019 static void *_p_wxComboBoxTo_p_wxControl(void *x) {
33020 return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33021 }
33022 static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) {
33023 return (void *)((wxControl *) ((wxGenericDirCtrl *) x));
33024 }
33025 static void *_p_wxScrollBarTo_p_wxControl(void *x) {
33026 return (void *)((wxControl *) ((wxScrollBar *) x));
33027 }
33028 static void *_p_wxControlWithItemsTo_p_wxControl(void *x) {
33029 return (void *)((wxControl *) ((wxControlWithItems *) x));
33030 }
33031 static void *_p_wxGaugeTo_p_wxControl(void *x) {
33032 return (void *)((wxControl *) ((wxGauge *) x));
33033 }
33034 static void *_p_wxStaticLineTo_p_wxControl(void *x) {
33035 return (void *)((wxControl *) ((wxStaticLine *) x));
33036 }
33037 static void *_p_wxChoicebookTo_p_wxControl(void *x) {
33038 return (void *)((wxControl *) (wxBookCtrl *) ((wxChoicebook *) x));
33039 }
33040 static void *_p_wxListbookTo_p_wxControl(void *x) {
33041 return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x));
33042 }
33043 static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) {
33044 return (void *)((wxControl *) ((wxPyTreeCtrl *) x));
33045 }
33046 static void *_p_wxCheckBoxTo_p_wxControl(void *x) {
33047 return (void *)((wxControl *) ((wxCheckBox *) x));
33048 }
33049 static void *_p_wxRadioBoxTo_p_wxControl(void *x) {
33050 return (void *)((wxControl *) ((wxRadioBox *) x));
33051 }
33052 static void *_p_wxChoiceTo_p_wxControl(void *x) {
33053 return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x));
33054 }
33055 static void *_p_wxListBoxTo_p_wxControl(void *x) {
33056 return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x));
33057 }
33058 static void *_p_wxCheckListBoxTo_p_wxControl(void *x) {
33059 return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33060 }
33061 static void *_p_wxListViewTo_p_wxControl(void *x) {
33062 return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x));
33063 }
33064 static void *_p_wxNotebookTo_p_wxControl(void *x) {
33065 return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x));
33066 }
33067 static void *_p_wxStaticBitmapTo_p_wxControl(void *x) {
33068 return (void *)((wxControl *) ((wxStaticBitmap *) x));
33069 }
33070 static void *_p_wxSpinCtrlTo_p_wxControl(void *x) {
33071 return (void *)((wxControl *) ((wxSpinCtrl *) x));
33072 }
33073 static void *_p_wxStaticTextTo_p_wxControl(void *x) {
33074 return (void *)((wxControl *) ((wxStaticText *) x));
33075 }
33076 static void *_p_wxStaticBoxTo_p_wxControl(void *x) {
33077 return (void *)((wxControl *) ((wxStaticBox *) x));
33078 }
33079 static void *_p_wxSliderTo_p_wxControl(void *x) {
33080 return (void *)((wxControl *) ((wxSlider *) x));
33081 }
33082 static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) {
33083 return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33084 }
33085 static void *_p_wxSpinButtonTo_p_wxControl(void *x) {
33086 return (void *)((wxControl *) ((wxSpinButton *) x));
33087 }
33088 static void *_p_wxButtonTo_p_wxControl(void *x) {
33089 return (void *)((wxControl *) ((wxButton *) x));
33090 }
33091 static void *_p_wxBitmapButtonTo_p_wxControl(void *x) {
33092 return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x));
33093 }
33094 static void *_p_wxTextCtrlTo_p_wxControl(void *x) {
33095 return (void *)((wxControl *) ((wxTextCtrl *) x));
33096 }
33097 static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) {
33098 return (void *)((wxToolBarBase *) ((wxToolBar *) x));
33099 }
33100 static void *_p_wxComboBoxTo_p_wxChoice(void *x) {
33101 return (void *)((wxChoice *) ((wxComboBox *) x));
33102 }
33103 static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) {
33104 return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x));
33105 }
33106 static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) {
33107 return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x));
33108 }
33109 static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) {
33110 return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33111 }
33112 static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) {
33113 return (void *)((wxNotifyEvent *) ((wxListEvent *) x));
33114 }
33115 static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) {
33116 return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x));
33117 }
33118 static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) {
33119 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33120 }
33121 static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) {
33122 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x));
33123 }
33124 static void *_p_wxChoicebookEventTo_p_wxNotifyEvent(void *x) {
33125 return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxChoicebookEvent *) x));
33126 }
33127 static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) {
33128 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x));
33129 }
33130 static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) {
33131 return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x));
33132 }
33133 static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) {
33134 return (void *)((wxEvtHandler *) ((wxValidator *) x));
33135 }
33136 static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) {
33137 return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x));
33138 }
33139 static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) {
33140 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33141 }
33142 static void *_p_wxMenuTo_p_wxEvtHandler(void *x) {
33143 return (void *)((wxEvtHandler *) ((wxMenu *) x));
33144 }
33145 static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) {
33146 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x));
33147 }
33148 static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) {
33149 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x));
33150 }
33151 static void *_p_wxWindowTo_p_wxEvtHandler(void *x) {
33152 return (void *)((wxEvtHandler *) ((wxWindow *) x));
33153 }
33154 static void *_p_wxControlTo_p_wxEvtHandler(void *x) {
33155 return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x));
33156 }
33157 static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) {
33158 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33159 }
33160 static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) {
33161 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33162 }
33163 static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) {
33164 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33165 }
33166 static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) {
33167 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33168 }
33169 static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) {
33170 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x));
33171 }
33172 static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) {
33173 return (void *)((wxEvtHandler *) ((wxPyApp *) x));
33174 }
33175 static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) {
33176 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33177 }
33178 static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) {
33179 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x));
33180 }
33181 static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) {
33182 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33183 }
33184 static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) {
33185 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x));
33186 }
33187 static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) {
33188 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x));
33189 }
33190 static void *_p_wxChoicebookTo_p_wxEvtHandler(void *x) {
33191 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxChoicebook *) x));
33192 }
33193 static void *_p_wxListbookTo_p_wxEvtHandler(void *x) {
33194 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33195 }
33196 static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) {
33197 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33198 }
33199 static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) {
33200 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x));
33201 }
33202 static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) {
33203 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x));
33204 }
33205 static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) {
33206 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33207 }
33208 static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) {
33209 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33210 }
33211 static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) {
33212 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33213 }
33214 static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) {
33215 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33216 }
33217 static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) {
33218 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33219 }
33220 static void *_p_wxListViewTo_p_wxEvtHandler(void *x) {
33221 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33222 }
33223 static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) {
33224 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33225 }
33226 static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) {
33227 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x));
33228 }
33229 static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) {
33230 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x));
33231 }
33232 static void *_p_wxSliderTo_p_wxEvtHandler(void *x) {
33233 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x));
33234 }
33235 static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) {
33236 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x));
33237 }
33238 static void *_p_wxButtonTo_p_wxEvtHandler(void *x) {
33239 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x));
33240 }
33241 static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) {
33242 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33243 }
33244 static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) {
33245 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33246 }
33247 static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) {
33248 return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33249 }
33250 static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) {
33251 return (void *)((wxListBox *) ((wxCheckListBox *) x));
33252 }
33253 static void *_p_wxChoicebookTo_p_wxBookCtrl(void *x) {
33254 return (void *)((wxBookCtrl *) ((wxChoicebook *) x));
33255 }
33256 static void *_p_wxListbookTo_p_wxBookCtrl(void *x) {
33257 return (void *)((wxBookCtrl *) ((wxListbook *) x));
33258 }
33259 static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) {
33260 return (void *)((wxBookCtrl *) ((wxNotebook *) x));
33261 }
33262 static void *_p_wxBitmapButtonTo_p_wxButton(void *x) {
33263 return (void *)((wxButton *) ((wxBitmapButton *) x));
33264 }
33265 static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) {
33266 return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x));
33267 }
33268 static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) {
33269 return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x));
33270 }
33271 static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) {
33272 return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x));
33273 }
33274 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
33275 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
33276 }
33277 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
33278 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
33279 }
33280 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
33281 return (void *)((wxObject *) ((wxSizerItem *) x));
33282 }
33283 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
33284 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
33285 }
33286 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
33287 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
33288 }
33289 static void *_p_wxTextUrlEventTo_p_wxObject(void *x) {
33290 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x));
33291 }
33292 static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) {
33293 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33294 }
33295 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
33296 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
33297 }
33298 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
33299 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
33300 }
33301 static void *_p_wxSizerTo_p_wxObject(void *x) {
33302 return (void *)((wxObject *) ((wxSizer *) x));
33303 }
33304 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
33305 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
33306 }
33307 static void *_p_wxCheckBoxTo_p_wxObject(void *x) {
33308 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x));
33309 }
33310 static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) {
33311 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x));
33312 }
33313 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
33314 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
33315 }
33316 static void *_p_wxEventTo_p_wxObject(void *x) {
33317 return (void *)((wxObject *) ((wxEvent *) x));
33318 }
33319 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
33320 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
33321 }
33322 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
33323 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
33324 }
33325 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
33326 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
33327 }
33328 static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) {
33329 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x));
33330 }
33331 static void *_p_wxPyListCtrlTo_p_wxObject(void *x) {
33332 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x));
33333 }
33334 static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) {
33335 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33336 }
33337 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
33338 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
33339 }
33340 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
33341 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
33342 }
33343 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
33344 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
33345 }
33346 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
33347 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
33348 }
33349 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
33350 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
33351 }
33352 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
33353 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
33354 }
33355 static void *_p_wxStaticLineTo_p_wxObject(void *x) {
33356 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x));
33357 }
33358 static void *_p_wxControlTo_p_wxObject(void *x) {
33359 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
33360 }
33361 static void *_p_wxPyControlTo_p_wxObject(void *x) {
33362 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x));
33363 }
33364 static void *_p_wxGaugeTo_p_wxObject(void *x) {
33365 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x));
33366 }
33367 static void *_p_wxRadioButtonTo_p_wxObject(void *x) {
33368 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x));
33369 }
33370 static void *_p_wxToggleButtonTo_p_wxObject(void *x) {
33371 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x));
33372 }
33373 static void *_p_wxToolBarBaseTo_p_wxObject(void *x) {
33374 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x));
33375 }
33376 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
33377 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
33378 }
33379 static void *_p_wxChoiceTo_p_wxObject(void *x) {
33380 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33381 }
33382 static void *_p_wxFSFileTo_p_wxObject(void *x) {
33383 return (void *)((wxObject *) ((wxFSFile *) x));
33384 }
33385 static void *_p_wxPySizerTo_p_wxObject(void *x) {
33386 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
33387 }
33388 static void *_p_wxListViewTo_p_wxObject(void *x) {
33389 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33390 }
33391 static void *_p_wxTextCtrlTo_p_wxObject(void *x) {
33392 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x));
33393 }
33394 static void *_p_wxNotebookTo_p_wxObject(void *x) {
33395 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33396 }
33397 static void *_p_wxPyEventTo_p_wxObject(void *x) {
33398 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
33399 }
33400 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
33401 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
33402 }
33403 static void *_p_wxChoicebookTo_p_wxObject(void *x) {
33404 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxChoicebook *) x));
33405 }
33406 static void *_p_wxListbookTo_p_wxObject(void *x) {
33407 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33408 }
33409 static void *_p_wxShowEventTo_p_wxObject(void *x) {
33410 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
33411 }
33412 static void *_p_wxStaticBitmapTo_p_wxObject(void *x) {
33413 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x));
33414 }
33415 static void *_p_wxSliderTo_p_wxObject(void *x) {
33416 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x));
33417 }
33418 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
33419 return (void *)((wxObject *) ((wxMenuItem *) x));
33420 }
33421 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
33422 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
33423 }
33424 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
33425 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
33426 }
33427 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
33428 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
33429 }
33430 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
33431 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
33432 }
33433 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
33434 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
33435 }
33436 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
33437 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
33438 }
33439 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
33440 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
33441 }
33442 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
33443 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
33444 }
33445 static void *_p_wxStaticBoxTo_p_wxObject(void *x) {
33446 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x));
33447 }
33448 static void *_p_wxContextHelpTo_p_wxObject(void *x) {
33449 return (void *)((wxObject *) ((wxContextHelp *) x));
33450 }
33451 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
33452 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
33453 }
33454 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
33455 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
33456 }
33457 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
33458 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
33459 }
33460 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
33461 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
33462 }
33463 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
33464 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
33465 }
33466 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
33467 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
33468 }
33469 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
33470 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
33471 }
33472 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
33473 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
33474 }
33475 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
33476 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
33477 }
33478 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
33479 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
33480 }
33481 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
33482 return (void *)((wxObject *) ((wxImageHandler *) x));
33483 }
33484 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
33485 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
33486 }
33487 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
33488 return (void *)((wxObject *) ((wxEvtHandler *) x));
33489 }
33490 static void *_p_wxListEventTo_p_wxObject(void *x) {
33491 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x));
33492 }
33493 static void *_p_wxListBoxTo_p_wxObject(void *x) {
33494 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33495 }
33496 static void *_p_wxCheckListBoxTo_p_wxObject(void *x) {
33497 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33498 }
33499 static void *_p_wxBookCtrlTo_p_wxObject(void *x) {
33500 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x));
33501 }
33502 static void *_p_wxButtonTo_p_wxObject(void *x) {
33503 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x));
33504 }
33505 static void *_p_wxBitmapButtonTo_p_wxObject(void *x) {
33506 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x));
33507 }
33508 static void *_p_wxSpinButtonTo_p_wxObject(void *x) {
33509 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x));
33510 }
33511 static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) {
33512 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33513 }
33514 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
33515 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
33516 }
33517 static void *_p_wxScrollBarTo_p_wxObject(void *x) {
33518 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x));
33519 }
33520 static void *_p_wxRadioBoxTo_p_wxObject(void *x) {
33521 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x));
33522 }
33523 static void *_p_wxComboBoxTo_p_wxObject(void *x) {
33524 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33525 }
33526 static void *_p_wxHelpEventTo_p_wxObject(void *x) {
33527 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x));
33528 }
33529 static void *_p_wxListItemTo_p_wxObject(void *x) {
33530 return (void *)((wxObject *) ((wxListItem *) x));
33531 }
33532 static void *_p_wxImageTo_p_wxObject(void *x) {
33533 return (void *)((wxObject *) ((wxImage *) x));
33534 }
33535 static void *_p_wxNotebookSizerTo_p_wxObject(void *x) {
33536 return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x));
33537 }
33538 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
33539 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
33540 }
33541 static void *_p_wxSpinEventTo_p_wxObject(void *x) {
33542 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x));
33543 }
33544 static void *_p_wxGenericDragImageTo_p_wxObject(void *x) {
33545 return (void *)((wxObject *) ((wxGenericDragImage *) x));
33546 }
33547 static void *_p_wxSpinCtrlTo_p_wxObject(void *x) {
33548 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x));
33549 }
33550 static void *_p_wxNotebookEventTo_p_wxObject(void *x) {
33551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33552 }
33553 static void *_p_wxListbookEventTo_p_wxObject(void *x) {
33554 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33555 }
33556 static void *_p_wxChoicebookEventTo_p_wxObject(void *x) {
33557 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x));
33558 }
33559 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
33560 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33561 }
33562 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
33563 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
33564 }
33565 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
33566 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
33567 }
33568 static void *_p_wxWindowTo_p_wxObject(void *x) {
33569 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
33570 }
33571 static void *_p_wxMenuTo_p_wxObject(void *x) {
33572 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
33573 }
33574 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
33575 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
33576 }
33577 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
33578 return (void *)((wxObject *) ((wxFileSystem *) x));
33579 }
33580 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
33581 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
33582 }
33583 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
33584 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
33585 }
33586 static void *_p_wxPyAppTo_p_wxObject(void *x) {
33587 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
33588 }
33589 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
33590 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
33591 }
33592 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
33593 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
33594 }
33595 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
33596 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
33597 }
33598 static void *_p_wxTreeEventTo_p_wxObject(void *x) {
33599 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x));
33600 }
33601 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
33602 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
33603 }
33604 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
33605 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
33606 }
33607 static void *_p_wxStaticTextTo_p_wxObject(void *x) {
33608 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x));
33609 }
33610 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
33611 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
33612 }
33613 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
33614 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
33615 }
33616 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
33617 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
33618 }
33619 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
33620 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
33621 }
33622 static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) {
33623 return (void *)((wxObject *) ((wxToolBarToolBase *) x));
33624 }
33625 static void *_p_wxToolBarTo_p_wxObject(void *x) {
33626 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33627 }
33628 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
33629 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
33630 }
33631 static void *_p_wxValidatorTo_p_wxObject(void *x) {
33632 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
33633 }
33634 static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) {
33635 return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x));
33636 }
33637 static void *_p_wxBookCtrlTo_p_wxWindow(void *x) {
33638 return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x));
33639 }
33640 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
33641 return (void *)((wxWindow *) ((wxMenuBar *) x));
33642 }
33643 static void *_p_wxToolBarTo_p_wxWindow(void *x) {
33644 return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x));
33645 }
33646 static void *_p_wxToggleButtonTo_p_wxWindow(void *x) {
33647 return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x));
33648 }
33649 static void *_p_wxRadioButtonTo_p_wxWindow(void *x) {
33650 return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x));
33651 }
33652 static void *_p_wxControlTo_p_wxWindow(void *x) {
33653 return (void *)((wxWindow *) ((wxControl *) x));
33654 }
33655 static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) {
33656 return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x));
33657 }
33658 static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) {
33659 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x));
33660 }
33661 static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) {
33662 return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x));
33663 }
33664 static void *_p_wxComboBoxTo_p_wxWindow(void *x) {
33665 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x));
33666 }
33667 static void *_p_wxPyControlTo_p_wxWindow(void *x) {
33668 return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x));
33669 }
33670 static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) {
33671 return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x));
33672 }
33673 static void *_p_wxScrollBarTo_p_wxWindow(void *x) {
33674 return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x));
33675 }
33676 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
33677 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
33678 }
33679 static void *_p_wxGaugeTo_p_wxWindow(void *x) {
33680 return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x));
33681 }
33682 static void *_p_wxStaticLineTo_p_wxWindow(void *x) {
33683 return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x));
33684 }
33685 static void *_p_wxChoicebookTo_p_wxWindow(void *x) {
33686 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxChoicebook *) x));
33687 }
33688 static void *_p_wxListbookTo_p_wxWindow(void *x) {
33689 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x));
33690 }
33691 static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) {
33692 return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x));
33693 }
33694 static void *_p_wxCheckBoxTo_p_wxWindow(void *x) {
33695 return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x));
33696 }
33697 static void *_p_wxRadioBoxTo_p_wxWindow(void *x) {
33698 return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x));
33699 }
33700 static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) {
33701 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x));
33702 }
33703 static void *_p_wxChoiceTo_p_wxWindow(void *x) {
33704 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x));
33705 }
33706 static void *_p_wxListBoxTo_p_wxWindow(void *x) {
33707 return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x));
33708 }
33709 static void *_p_wxListViewTo_p_wxWindow(void *x) {
33710 return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x));
33711 }
33712 static void *_p_wxNotebookTo_p_wxWindow(void *x) {
33713 return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x));
33714 }
33715 static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) {
33716 return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x));
33717 }
33718 static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) {
33719 return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x));
33720 }
33721 static void *_p_wxStaticTextTo_p_wxWindow(void *x) {
33722 return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x));
33723 }
33724 static void *_p_wxStaticBoxTo_p_wxWindow(void *x) {
33725 return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x));
33726 }
33727 static void *_p_wxSliderTo_p_wxWindow(void *x) {
33728 return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x));
33729 }
33730 static void *_p_wxSpinButtonTo_p_wxWindow(void *x) {
33731 return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x));
33732 }
33733 static void *_p_wxButtonTo_p_wxWindow(void *x) {
33734 return (void *)((wxWindow *) (wxControl *) ((wxButton *) x));
33735 }
33736 static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) {
33737 return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x));
33738 }
33739 static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) {
33740 return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x));
33741 }
33742 static void *_p_wxTextCtrlTo_p_wxWindow(void *x) {
33743 return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x));
33744 }
33745 static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) {
33746 return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x));
33747 }
33748 static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) {
33749 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x));
33750 }
33751 static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) {
33752 return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x));
33753 }
33754 static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) {
33755 return (void *)((wxCommandEvent *) ((wxScrollEvent *) x));
33756 }
33757 static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) {
33758 return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x));
33759 }
33760 static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) {
33761 return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x));
33762 }
33763 static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) {
33764 return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x));
33765 }
33766 static void *_p_wxChoicebookEventTo_p_wxCommandEvent(void *x) {
33767 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxChoicebookEvent *) x));
33768 }
33769 static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) {
33770 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x));
33771 }
33772 static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) {
33773 return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x));
33774 }
33775 static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) {
33776 return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x));
33777 }
33778 static void *_p_wxListEventTo_p_wxCommandEvent(void *x) {
33779 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x));
33780 }
33781 static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) {
33782 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x));
33783 }
33784 static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) {
33785 return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x));
33786 }
33787 static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) {
33788 return (void *)((wxCommandEvent *) ((wxHelpEvent *) x));
33789 }
33790 static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) {
33791 return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x));
33792 }
33793 static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) {
33794 return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x));
33795 }
33796 static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) {
33797 return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x));
33798 }
33799 static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) {
33800 return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x));
33801 }
33802 static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) {
33803 return (void *)((wxControlWithItems *) ((wxChoice *) x));
33804 }
33805 static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) {
33806 return (void *)((wxControlWithItems *) ((wxListBox *) x));
33807 }
33808 static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) {
33809 return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x));
33810 }
33811 static void *_p_wxPyValidatorTo_p_wxValidator(void *x) {
33812 return (void *)((wxValidator *) ((wxPyValidator *) x));
33813 }
33814 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}};
33815 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},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33816 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}};
33817 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}};
33818 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}};
33819 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_wxChoicebookEvent", _p_wxChoicebookEventTo_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_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33820 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}};
33821 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}};
33822 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}};
33823 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}};
33824 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}};
33825 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}};
33826 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}};
33827 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_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33828 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}};
33829 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}};
33830 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}};
33831 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}};
33832 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}};
33833 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}};
33834 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}};
33835 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}};
33836 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}};
33837 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}};
33838 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}};
33839 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}};
33840 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}};
33841 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}};
33842 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}};
33843 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}};
33844 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}};
33845 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}};
33846 static swig_type_info _swigt__p_wxChoicebook[] = {{"_p_wxChoicebook", 0, "wxChoicebook *", 0, 0, 0, 0},{"_p_wxChoicebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33847 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_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33848 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}};
33849 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}};
33850 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}};
33851 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}};
33852 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}};
33853 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}};
33854 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}};
33855 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}};
33856 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_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33857 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}};
33858 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}};
33859 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}};
33860 static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxBookCtrl, 0, 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}};
33861 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}};
33862 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}};
33863 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}};
33864 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}};
33865 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}};
33866 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}};
33867 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}};
33868 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}};
33869 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}};
33870 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}};
33871 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}};
33872 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}};
33873 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}};
33874 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}};
33875 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}};
33876 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}};
33877 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}};
33878 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}};
33879 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}};
33880 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}};
33881 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}};
33882 static swig_type_info _swigt__p_wxChoicebookEvent[] = {{"_p_wxChoicebookEvent", 0, "wxChoicebookEvent *", 0, 0, 0, 0},{"_p_wxChoicebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33883 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}};
33884 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}};
33885 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_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_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_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoicebookEvent", _p_wxChoicebookEventTo_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}};
33886 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}};
33887 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}};
33888 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_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoicebook", _p_wxChoicebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
33889 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}};
33890 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}};
33891 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}};
33892 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}};
33893 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_wxChoicebookEvent", _p_wxChoicebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_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}};
33894 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}};
33895 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}};
33896 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}};
33897 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}};
33898 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}};
33899 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}};
33900 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}};
33901
33902 static swig_type_info *swig_types_initial[] = {
33903 _swigt__p_wxTextUrlEvent,
33904 _swigt__p_wxBookCtrlEvent,
33905 _swigt__p_wxSizer,
33906 _swigt__p_wxCheckBox,
33907 _swigt__p_wxPyTreeCtrl,
33908 _swigt__p_wxEvent,
33909 _swigt__p_wxGenericDirCtrl,
33910 _swigt__p_bool,
33911 _swigt__p_wxPyTreeItemData,
33912 _swigt__p_wxItemContainer,
33913 _swigt__p_wxPyListCtrl,
33914 _swigt__p_wxDirFilterListCtrl,
33915 _swigt__p_wxStaticLine,
33916 _swigt__p_wxControl,
33917 _swigt__p_wxPyControl,
33918 _swigt__p_wxGauge,
33919 _swigt__p_wxToolBarBase,
33920 _swigt__p_wxFont,
33921 _swigt__p_wxToggleButton,
33922 _swigt__p_wxRadioButton,
33923 _swigt__p_wxChoice,
33924 _swigt__p_wxMemoryDC,
33925 _swigt__p_wxListItemAttr,
33926 _swigt__p_void,
33927 _swigt__p_int,
33928 _swigt__p_wxSize,
33929 _swigt__p_wxDC,
33930 _swigt__p_wxListView,
33931 _swigt__p_wxIcon,
33932 _swigt__p_wxVisualAttributes,
33933 _swigt__p_wxTextCtrl,
33934 _swigt__p_wxNotebook,
33935 _swigt__p_wxChoicebook,
33936 _swigt__p_wxNotifyEvent,
33937 _swigt__p_wxArrayString,
33938 _swigt__p_wxListbook,
33939 _swigt__p_wxStaticBitmap,
33940 _swigt__p_wxSlider,
33941 _swigt__p_wxStaticBox,
33942 _swigt__p_wxArrayInt,
33943 _swigt__p_wxContextHelp,
33944 _swigt__p_long,
33945 _swigt__p_wxEvtHandler,
33946 _swigt__p_wxListEvent,
33947 _swigt__p_wxCheckListBox,
33948 _swigt__p_wxListBox,
33949 _swigt__p_wxBookCtrl,
33950 _swigt__p_wxSpinButton,
33951 _swigt__p_wxButton,
33952 _swigt__p_wxBitmapButton,
33953 _swigt__p_wxRect,
33954 _swigt__p_wxContextHelpButton,
33955 _swigt__p_wxRadioBox,
33956 _swigt__p_wxScrollBar,
33957 _swigt__p_char,
33958 _swigt__p_wxTreeItemId,
33959 _swigt__p_wxComboBox,
33960 _swigt__p_wxHelpEvent,
33961 _swigt__p_wxListItem,
33962 _swigt__p_wxNotebookSizer,
33963 _swigt__p_wxSpinEvent,
33964 _swigt__p_wxGenericDragImage,
33965 _swigt__p_wxSpinCtrl,
33966 _swigt__p_wxImageList,
33967 _swigt__p_wxHelpProvider,
33968 _swigt__p_wxTextAttr,
33969 _swigt__p_wxSimpleHelpProvider,
33970 _swigt__p_wxPoint,
33971 _swigt__p_wxChoicebookEvent,
33972 _swigt__p_wxListbookEvent,
33973 _swigt__p_wxNotebookEvent,
33974 _swigt__p_wxObject,
33975 _swigt__p_wxCursor,
33976 _swigt__p_wxKeyEvent,
33977 _swigt__p_wxWindow,
33978 _swigt__p_wxString,
33979 _swigt__p_wxBitmap,
33980 _swigt__p_wxTreeEvent,
33981 _swigt__p_wxMouseEvent,
33982 _swigt__p_wxCommandEvent,
33983 _swigt__p_wxStaticText,
33984 _swigt__p_wxControlWithItems,
33985 _swigt__p_wxToolBarToolBase,
33986 _swigt__p_wxColour,
33987 _swigt__p_wxToolBar,
33988 _swigt__p_wxBookCtrlSizer,
33989 _swigt__p_wxValidator,
33990 0
33991 };
33992
33993
33994 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
33995
33996 static swig_const_info swig_const_table[] = {
33997 {0, 0, 0, 0.0, 0, 0}};
33998
33999 #ifdef __cplusplus
34000 }
34001 #endif
34002
34003 #ifdef __cplusplus
34004 extern "C"
34005 #endif
34006 SWIGEXPORT(void) SWIG_init(void) {
34007 static PyObject *SWIG_globals = 0;
34008 static int typeinit = 0;
34009 PyObject *m, *d;
34010 int i;
34011 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
34012 m = Py_InitModule((char *) SWIG_name, SwigMethods);
34013 d = PyModule_GetDict(m);
34014
34015 if (!typeinit) {
34016 for (i = 0; swig_types_initial[i]; i++) {
34017 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
34018 }
34019 typeinit = 1;
34020 }
34021 SWIG_InstallConstants(d,swig_const_table);
34022
34023 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
34024 SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set);
34025 PyDict_SetItemString(d,"BU_LEFT", SWIG_From_int((int)wxBU_LEFT));
34026 PyDict_SetItemString(d,"BU_TOP", SWIG_From_int((int)wxBU_TOP));
34027 PyDict_SetItemString(d,"BU_RIGHT", SWIG_From_int((int)wxBU_RIGHT));
34028 PyDict_SetItemString(d,"BU_BOTTOM", SWIG_From_int((int)wxBU_BOTTOM));
34029 PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_From_int((int)wxBU_EXACTFIT));
34030 PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_From_int((int)wxBU_AUTODRAW));
34031 SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set);
34032 PyDict_SetItemString(d,"CHK_2STATE", SWIG_From_int((int)wxCHK_2STATE));
34033 PyDict_SetItemString(d,"CHK_3STATE", SWIG_From_int((int)wxCHK_3STATE));
34034 PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_From_int((int)wxCHK_ALLOW_3RD_STATE_FOR_USER));
34035 PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_From_int((int)wxCHK_UNCHECKED));
34036 PyDict_SetItemString(d,"CHK_CHECKED", SWIG_From_int((int)wxCHK_CHECKED));
34037 PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_From_int((int)wxCHK_UNDETERMINED));
34038 SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set);
34039 SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set);
34040 SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set);
34041 PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_From_int((int)wxGA_HORIZONTAL));
34042 PyDict_SetItemString(d,"GA_VERTICAL", SWIG_From_int((int)wxGA_VERTICAL));
34043 PyDict_SetItemString(d,"GA_SMOOTH", SWIG_From_int((int)wxGA_SMOOTH));
34044 PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_From_int((int)wxGA_PROGRESSBAR));
34045 SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set);
34046 SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set);
34047 SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set);
34048 SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set);
34049 SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set);
34050 PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_From_int((int)wxTE_NO_VSCROLL));
34051 PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_From_int((int)wxTE_AUTO_SCROLL));
34052 PyDict_SetItemString(d,"TE_READONLY", SWIG_From_int((int)wxTE_READONLY));
34053 PyDict_SetItemString(d,"TE_MULTILINE", SWIG_From_int((int)wxTE_MULTILINE));
34054 PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_From_int((int)wxTE_PROCESS_TAB));
34055 PyDict_SetItemString(d,"TE_LEFT", SWIG_From_int((int)wxTE_LEFT));
34056 PyDict_SetItemString(d,"TE_CENTER", SWIG_From_int((int)wxTE_CENTER));
34057 PyDict_SetItemString(d,"TE_RIGHT", SWIG_From_int((int)wxTE_RIGHT));
34058 PyDict_SetItemString(d,"TE_CENTRE", SWIG_From_int((int)wxTE_CENTRE));
34059 PyDict_SetItemString(d,"TE_RICH", SWIG_From_int((int)wxTE_RICH));
34060 PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_From_int((int)wxTE_PROCESS_ENTER));
34061 PyDict_SetItemString(d,"TE_PASSWORD", SWIG_From_int((int)wxTE_PASSWORD));
34062 PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_From_int((int)wxTE_AUTO_URL));
34063 PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_From_int((int)wxTE_NOHIDESEL));
34064 PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_From_int((int)wxTE_DONTWRAP));
34065 PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_From_int((int)wxTE_LINEWRAP));
34066 PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_From_int((int)wxTE_WORDWRAP));
34067 PyDict_SetItemString(d,"TE_RICH2", SWIG_From_int((int)wxTE_RICH2));
34068 PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_From_int((int)wxTEXT_ALIGNMENT_DEFAULT));
34069 PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_From_int((int)wxTEXT_ALIGNMENT_LEFT));
34070 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTRE));
34071 PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_From_int((int)wxTEXT_ALIGNMENT_CENTER));
34072 PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_From_int((int)wxTEXT_ALIGNMENT_RIGHT));
34073 PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_From_int((int)wxTEXT_ALIGNMENT_JUSTIFIED));
34074 PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_TEXT_COLOUR));
34075 PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_From_int((int)wxTEXT_ATTR_BACKGROUND_COLOUR));
34076 PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_From_int((int)wxTEXT_ATTR_FONT_FACE));
34077 PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_From_int((int)wxTEXT_ATTR_FONT_SIZE));
34078 PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_From_int((int)wxTEXT_ATTR_FONT_WEIGHT));
34079 PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_From_int((int)wxTEXT_ATTR_FONT_ITALIC));
34080 PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_From_int((int)wxTEXT_ATTR_FONT_UNDERLINE));
34081 PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_From_int((int)wxTEXT_ATTR_FONT));
34082 PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_From_int((int)wxTEXT_ATTR_ALIGNMENT));
34083 PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_LEFT_INDENT));
34084 PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_From_int((int)wxTEXT_ATTR_RIGHT_INDENT));
34085 PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_From_int((int)wxTEXT_ATTR_TABS));
34086 PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_From_int((int)wxTE_HT_UNKNOWN));
34087 PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_From_int((int)wxTE_HT_BEFORE));
34088 PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_From_int((int)wxTE_HT_ON_TEXT));
34089 PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_From_int((int)wxTE_HT_BELOW));
34090 PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_From_int((int)wxTE_HT_BEYOND));
34091 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED));
34092 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER));
34093 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL));
34094 PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN));
34095 SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set);
34096 SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set);
34097 SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set);
34098 PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_From_int((int)wxSP_HORIZONTAL));
34099 PyDict_SetItemString(d,"SP_VERTICAL", SWIG_From_int((int)wxSP_VERTICAL));
34100 PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_From_int((int)wxSP_ARROW_KEYS));
34101 PyDict_SetItemString(d,"SP_WRAP", SWIG_From_int((int)wxSP_WRAP));
34102 PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED));
34103 SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set);
34104 SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set);
34105 SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set);
34106 SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set);
34107 PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED));
34108 SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set);
34109 PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_From_int((int)wxNB_FIXEDWIDTH));
34110 PyDict_SetItemString(d,"NB_TOP", SWIG_From_int((int)wxNB_TOP));
34111 PyDict_SetItemString(d,"NB_LEFT", SWIG_From_int((int)wxNB_LEFT));
34112 PyDict_SetItemString(d,"NB_RIGHT", SWIG_From_int((int)wxNB_RIGHT));
34113 PyDict_SetItemString(d,"NB_BOTTOM", SWIG_From_int((int)wxNB_BOTTOM));
34114 PyDict_SetItemString(d,"NB_MULTILINE", SWIG_From_int((int)wxNB_MULTILINE));
34115 PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_From_int((int)wxNB_HITTEST_NOWHERE));
34116 PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_From_int((int)wxNB_HITTEST_ONICON));
34117 PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_From_int((int)wxNB_HITTEST_ONLABEL));
34118 PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_From_int((int)wxNB_HITTEST_ONITEM));
34119 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED));
34120 PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING));
34121 PyDict_SetItemString(d,"LB_DEFAULT", SWIG_From_int((int)wxLB_DEFAULT));
34122 PyDict_SetItemString(d,"LB_TOP", SWIG_From_int((int)wxLB_TOP));
34123 PyDict_SetItemString(d,"LB_BOTTOM", SWIG_From_int((int)wxLB_BOTTOM));
34124 PyDict_SetItemString(d,"LB_LEFT", SWIG_From_int((int)wxLB_LEFT));
34125 PyDict_SetItemString(d,"LB_RIGHT", SWIG_From_int((int)wxLB_RIGHT));
34126 PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_From_int((int)wxLB_ALIGN_MASK));
34127 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED));
34128 PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING));
34129 PyDict_SetItemString(d,"CHB_DEFAULT", SWIG_From_int((int)wxCHB_DEFAULT));
34130 PyDict_SetItemString(d,"CHB_TOP", SWIG_From_int((int)wxCHB_TOP));
34131 PyDict_SetItemString(d,"CHB_BOTTOM", SWIG_From_int((int)wxCHB_BOTTOM));
34132 PyDict_SetItemString(d,"CHB_LEFT", SWIG_From_int((int)wxCHB_LEFT));
34133 PyDict_SetItemString(d,"CHB_RIGHT", SWIG_From_int((int)wxCHB_RIGHT));
34134 PyDict_SetItemString(d,"CHB_ALIGN_MASK", SWIG_From_int((int)wxCHB_ALIGN_MASK));
34135 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED));
34136 PyDict_SetItemString(d, "wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING));
34137 PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_From_int((int)wxTOOL_STYLE_BUTTON));
34138 PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_From_int((int)wxTOOL_STYLE_SEPARATOR));
34139 PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_From_int((int)wxTOOL_STYLE_CONTROL));
34140 PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_From_int((int)wxTB_HORIZONTAL));
34141 PyDict_SetItemString(d,"TB_VERTICAL", SWIG_From_int((int)wxTB_VERTICAL));
34142 PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_From_int((int)wxTB_3DBUTTONS));
34143 PyDict_SetItemString(d,"TB_FLAT", SWIG_From_int((int)wxTB_FLAT));
34144 PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_From_int((int)wxTB_DOCKABLE));
34145 PyDict_SetItemString(d,"TB_NOICONS", SWIG_From_int((int)wxTB_NOICONS));
34146 PyDict_SetItemString(d,"TB_TEXT", SWIG_From_int((int)wxTB_TEXT));
34147 PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_From_int((int)wxTB_NODIVIDER));
34148 PyDict_SetItemString(d,"TB_NOALIGN", SWIG_From_int((int)wxTB_NOALIGN));
34149 PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_From_int((int)wxTB_HORZ_LAYOUT));
34150 PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_From_int((int)wxTB_HORZ_TEXT));
34151 SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set);
34152 PyDict_SetItemString(d,"LC_VRULES", SWIG_From_int((int)wxLC_VRULES));
34153 PyDict_SetItemString(d,"LC_HRULES", SWIG_From_int((int)wxLC_HRULES));
34154 PyDict_SetItemString(d,"LC_ICON", SWIG_From_int((int)wxLC_ICON));
34155 PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_From_int((int)wxLC_SMALL_ICON));
34156 PyDict_SetItemString(d,"LC_LIST", SWIG_From_int((int)wxLC_LIST));
34157 PyDict_SetItemString(d,"LC_REPORT", SWIG_From_int((int)wxLC_REPORT));
34158 PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_From_int((int)wxLC_ALIGN_TOP));
34159 PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_From_int((int)wxLC_ALIGN_LEFT));
34160 PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_From_int((int)wxLC_AUTOARRANGE));
34161 PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_From_int((int)wxLC_VIRTUAL));
34162 PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_From_int((int)wxLC_EDIT_LABELS));
34163 PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_From_int((int)wxLC_NO_HEADER));
34164 PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_From_int((int)wxLC_NO_SORT_HEADER));
34165 PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_From_int((int)wxLC_SINGLE_SEL));
34166 PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_From_int((int)wxLC_SORT_ASCENDING));
34167 PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_From_int((int)wxLC_SORT_DESCENDING));
34168 PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_From_int((int)wxLC_MASK_TYPE));
34169 PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_From_int((int)wxLC_MASK_ALIGN));
34170 PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_From_int((int)wxLC_MASK_SORT));
34171 PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_From_int((int)wxLIST_MASK_STATE));
34172 PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_From_int((int)wxLIST_MASK_TEXT));
34173 PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_From_int((int)wxLIST_MASK_IMAGE));
34174 PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_From_int((int)wxLIST_MASK_DATA));
34175 PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_From_int((int)wxLIST_SET_ITEM));
34176 PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_From_int((int)wxLIST_MASK_WIDTH));
34177 PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_From_int((int)wxLIST_MASK_FORMAT));
34178 PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_From_int((int)wxLIST_STATE_DONTCARE));
34179 PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_From_int((int)wxLIST_STATE_DROPHILITED));
34180 PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_From_int((int)wxLIST_STATE_FOCUSED));
34181 PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_From_int((int)wxLIST_STATE_SELECTED));
34182 PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_From_int((int)wxLIST_STATE_CUT));
34183 PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_From_int((int)wxLIST_STATE_DISABLED));
34184 PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_From_int((int)wxLIST_STATE_FILTERED));
34185 PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_From_int((int)wxLIST_STATE_INUSE));
34186 PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_From_int((int)wxLIST_STATE_PICKED));
34187 PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_From_int((int)wxLIST_STATE_SOURCE));
34188 PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_From_int((int)wxLIST_HITTEST_ABOVE));
34189 PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_From_int((int)wxLIST_HITTEST_BELOW));
34190 PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_From_int((int)wxLIST_HITTEST_NOWHERE));
34191 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMICON));
34192 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxLIST_HITTEST_ONITEMLABEL));
34193 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxLIST_HITTEST_ONITEMRIGHT));
34194 PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxLIST_HITTEST_ONITEMSTATEICON));
34195 PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_From_int((int)wxLIST_HITTEST_TOLEFT));
34196 PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_From_int((int)wxLIST_HITTEST_TORIGHT));
34197 PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_From_int((int)wxLIST_HITTEST_ONITEM));
34198 PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_From_int((int)wxLIST_NEXT_ABOVE));
34199 PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_From_int((int)wxLIST_NEXT_ALL));
34200 PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_From_int((int)wxLIST_NEXT_BELOW));
34201 PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_From_int((int)wxLIST_NEXT_LEFT));
34202 PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_From_int((int)wxLIST_NEXT_RIGHT));
34203 PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_From_int((int)wxLIST_ALIGN_DEFAULT));
34204 PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_From_int((int)wxLIST_ALIGN_LEFT));
34205 PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_From_int((int)wxLIST_ALIGN_TOP));
34206 PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_From_int((int)wxLIST_ALIGN_SNAP_TO_GRID));
34207 PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_From_int((int)wxLIST_FORMAT_LEFT));
34208 PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_From_int((int)wxLIST_FORMAT_RIGHT));
34209 PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_From_int((int)wxLIST_FORMAT_CENTRE));
34210 PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_From_int((int)wxLIST_FORMAT_CENTER));
34211 PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_From_int((int)wxLIST_AUTOSIZE));
34212 PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_From_int((int)wxLIST_AUTOSIZE_USEHEADER));
34213 PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_From_int((int)wxLIST_RECT_BOUNDS));
34214 PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_From_int((int)wxLIST_RECT_ICON));
34215 PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_From_int((int)wxLIST_RECT_LABEL));
34216 PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_From_int((int)wxLIST_FIND_UP));
34217 PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_From_int((int)wxLIST_FIND_DOWN));
34218 PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_From_int((int)wxLIST_FIND_LEFT));
34219 PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_From_int((int)wxLIST_FIND_RIGHT));
34220 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG));
34221 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG));
34222 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT));
34223 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT));
34224 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM));
34225 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS));
34226 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO));
34227 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO));
34228 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED));
34229 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED));
34230 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN));
34231 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM));
34232 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK));
34233 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK));
34234 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK));
34235 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED));
34236 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT));
34237 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK));
34238 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG));
34239 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING));
34240 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG));
34241 PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED));
34242
34243 // Map renamed classes back to their common name for OOR
34244 wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl");
34245
34246 SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set);
34247 PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_From_int((int)wxTR_NO_BUTTONS));
34248 PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_From_int((int)wxTR_HAS_BUTTONS));
34249 PyDict_SetItemString(d,"TR_NO_LINES", SWIG_From_int((int)wxTR_NO_LINES));
34250 PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_From_int((int)wxTR_LINES_AT_ROOT));
34251 PyDict_SetItemString(d,"TR_SINGLE", SWIG_From_int((int)wxTR_SINGLE));
34252 PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_From_int((int)wxTR_MULTIPLE));
34253 PyDict_SetItemString(d,"TR_EXTENDED", SWIG_From_int((int)wxTR_EXTENDED));
34254 PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_From_int((int)wxTR_HAS_VARIABLE_ROW_HEIGHT));
34255 PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_From_int((int)wxTR_EDIT_LABELS));
34256 PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_From_int((int)wxTR_HIDE_ROOT));
34257 PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_From_int((int)wxTR_ROW_LINES));
34258 PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_From_int((int)wxTR_FULL_ROW_HIGHLIGHT));
34259 PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_From_int((int)wxTR_DEFAULT_STYLE));
34260 PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_From_int((int)wxTR_TWIST_BUTTONS));
34261 PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_From_int((int)wxTR_MAC_BUTTONS));
34262 PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_From_int((int)wxTR_AQUA_BUTTONS));
34263 PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_From_int((int)wxTreeItemIcon_Normal));
34264 PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_From_int((int)wxTreeItemIcon_Selected));
34265 PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_From_int((int)wxTreeItemIcon_Expanded));
34266 PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_From_int((int)wxTreeItemIcon_SelectedExpanded));
34267 PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_From_int((int)wxTreeItemIcon_Max));
34268 PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_From_int((int)wxTREE_HITTEST_ABOVE));
34269 PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_From_int((int)wxTREE_HITTEST_BELOW));
34270 PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_From_int((int)wxTREE_HITTEST_NOWHERE));
34271 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMBUTTON));
34272 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMICON));
34273 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMINDENT));
34274 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLABEL));
34275 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_From_int((int)wxTREE_HITTEST_ONITEMRIGHT));
34276 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_From_int((int)wxTREE_HITTEST_ONITEMSTATEICON));
34277 PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_From_int((int)wxTREE_HITTEST_TOLEFT));
34278 PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_From_int((int)wxTREE_HITTEST_TORIGHT));
34279 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMUPPERPART));
34280 PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_From_int((int)wxTREE_HITTEST_ONITEMLOWERPART));
34281 PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_From_int((int)wxTREE_HITTEST_ONITEM));
34282 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG));
34283 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG));
34284 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT));
34285 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT));
34286 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM));
34287 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO));
34288 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO));
34289 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED));
34290 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING));
34291 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED));
34292 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING));
34293 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED));
34294 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING));
34295 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN));
34296 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED));
34297 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK));
34298 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK));
34299 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG));
34300 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK));
34301 PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP));
34302
34303 // Map renamed classes back to their common name for OOR
34304 wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData");
34305 wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl");
34306
34307 SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set);
34308 PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_From_int((int)wxDIRCTRL_DIR_ONLY));
34309 PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_From_int((int)wxDIRCTRL_SELECT_FIRST));
34310 PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_From_int((int)wxDIRCTRL_SHOW_FILTERS));
34311 PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_From_int((int)wxDIRCTRL_3D_INTERNAL));
34312 PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_From_int((int)wxDIRCTRL_EDIT_LABELS));
34313 PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_From_int((int)wxFRAME_EX_CONTEXTHELP));
34314 PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_From_int((int)wxDIALOG_EX_CONTEXTHELP));
34315 PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP));
34316 PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP));
34317
34318 wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage");
34319
34320 }
34321